36.5 MB
/srv/reproducible-results/rbuild-debian/r-b-build.snkFhYLF/b1/rustc-web_1.78.0+dfsg1-2~deb12u3_amd64.changes vs.
/srv/reproducible-results/rbuild-debian/r-b-build.snkFhYLF/b2/rustc-web_1.78.0+dfsg1-2~deb12u3_amd64.changes
2.04 KB
Files
    
Offset 1, 18 lines modifiedOffset 1, 18 lines modified
  
1 ·9341158ddc09baa8d8fa7dcd0e433653·66934500·debug·optional·cargo-web-dbgsym_1.78.0+dfsg1-2~deb12u3_amd64.deb1 ·9341158ddc09baa8d8fa7dcd0e433653·66934500·debug·optional·cargo-web-dbgsym_1.78.0+dfsg1-2~deb12u3_amd64.deb
2 ·a18480fbacd18f0e9ded738a713fa6ee·4104568·doc·optional·cargo-web-doc_1.78.0+dfsg1-2~deb12u3_all.deb2 ·a18480fbacd18f0e9ded738a713fa6ee·4104568·doc·optional·cargo-web-doc_1.78.0+dfsg1-2~deb12u3_all.deb
3 ·12fa4f6edc60a7d3fe4369025d29d25f·6104840·devel·optional·cargo-web_1.78.0+dfsg1-2~deb12u3_amd64.deb3 ·12fa4f6edc60a7d3fe4369025d29d25f·6104840·devel·optional·cargo-web_1.78.0+dfsg1-2~deb12u3_amd64.deb
4 ·c3bfdd1a05c57003ceb9d3fa2cf5d24e·231766268·debug·optional·libstd-rust-web-1.78-dbgsym_1.78.0+dfsg1-2~deb12u3_amd64.deb4 ·c3bfdd1a05c57003ceb9d3fa2cf5d24e·231766268·debug·optional·libstd-rust-web-1.78-dbgsym_1.78.0+dfsg1-2~deb12u3_amd64.deb
5 ·ce9f3e8ece6769ac93e4b2133856e7da·19605860·libs·optional·libstd-rust-web-1.78_1.78.0+dfsg1-2~deb12u3_amd64.deb5 ·ce9f3e8ece6769ac93e4b2133856e7da·19605860·libs·optional·libstd-rust-web-1.78_1.78.0+dfsg1-2~deb12u3_amd64.deb
6 ·c47c1789c944761d8daa58379ddea6f9·41755692·libdevel·optional·libstd-rust-web-dev-windows_1.78.0+dfsg1-2~deb12u3_amd64.deb6 ·57e970f0441459184c9b020b36a2ff82·41756300·libdevel·optional·libstd-rust-web-dev-windows_1.78.0+dfsg1-2~deb12u3_amd64.deb
7 ·d6a52cd71f34a7dae3c1ef530b8dfc75·37240536·libdevel·optional·libstd-rust-web-dev_1.78.0+dfsg1-2~deb12u3_amd64.deb7 ·d6a52cd71f34a7dae3c1ef530b8dfc75·37240536·libdevel·optional·libstd-rust-web-dev_1.78.0+dfsg1-2~deb12u3_amd64.deb
8 ·e6b17ff62e8f518e68116b6c8a6aca6f·49661392·debug·optional·rust-web-clippy-dbgsym_1.78.0+dfsg1-2~deb12u3_amd64.deb8 ·e6b17ff62e8f518e68116b6c8a6aca6f·49661392·debug·optional·rust-web-clippy-dbgsym_1.78.0+dfsg1-2~deb12u3_amd64.deb
9 ·ddbbe1990abd28c44f2080beb432ffc4·2629040·devel·optional·rust-web-clippy_1.78.0+dfsg1-2~deb12u3_amd64.deb9 ·ddbbe1990abd28c44f2080beb432ffc4·2629040·devel·optional·rust-web-clippy_1.78.0+dfsg1-2~deb12u3_amd64.deb
10 ·d9087ec5244ec15ceee7c3a7c3e4d863·20197408·doc·optional·rust-web-doc_1.78.0+dfsg1-2~deb12u3_all.deb10 ·81fa4f181d2f52497c5d53a697afd0cd·20034604·doc·optional·rust-web-doc_1.78.0+dfsg1-2~deb12u3_all.deb
11 ·01c40e2d9b7a3b468d95804c0414fe8c·225528·devel·optional·rust-web-gdb_1.78.0+dfsg1-2~deb12u3_all.deb11 ·01c40e2d9b7a3b468d95804c0414fe8c·225528·devel·optional·rust-web-gdb_1.78.0+dfsg1-2~deb12u3_all.deb
12 ·574d84dcae44861fd1830c230fc278e2·225740·devel·optional·rust-web-lldb_1.78.0+dfsg1-2~deb12u3_all.deb12 ·574d84dcae44861fd1830c230fc278e2·225740·devel·optional·rust-web-lldb_1.78.0+dfsg1-2~deb12u3_all.deb
13 ·8416b90db1a1c047c5277c7fde636bd7·21434860·devel·optional·rust-web-src_1.78.0+dfsg1-2~deb12u3_all.deb13 ·8416b90db1a1c047c5277c7fde636bd7·21434860·devel·optional·rust-web-src_1.78.0+dfsg1-2~deb12u3_all.deb
14 ·748bf967708f46d98f2d0a34fc67b7e4·28614052·debug·optional·rustc-web-dbgsym_1.78.0+dfsg1-2~deb12u3_amd64.deb14 ·748bf967708f46d98f2d0a34fc67b7e4·28614052·debug·optional·rustc-web-dbgsym_1.78.0+dfsg1-2~deb12u3_amd64.deb
15 ·5f59754b5010e24d510949183922c3d6·3237360·devel·optional·rustc-web_1.78.0+dfsg1-2~deb12u3_amd64.deb15 ·5f59754b5010e24d510949183922c3d6·3237360·devel·optional·rustc-web_1.78.0+dfsg1-2~deb12u3_amd64.deb
16 ·e2f5c19e6bc656825a484ba52e47b39b·21707264·debug·optional·rustfmt-web-dbgsym_1.78.0+dfsg1-2~deb12u3_amd64.deb16 ·e2f5c19e6bc656825a484ba52e47b39b·21707264·debug·optional·rustfmt-web-dbgsym_1.78.0+dfsg1-2~deb12u3_amd64.deb
17 ·b4d53fe56e4cdeaa6c9f353d83825fd8·2061132·devel·optional·rustfmt-web_1.78.0+dfsg1-2~deb12u3_amd64.deb17 ·b4d53fe56e4cdeaa6c9f353d83825fd8·2061132·devel·optional·rustfmt-web_1.78.0+dfsg1-2~deb12u3_amd64.deb
259 KB
libstd-rust-web-dev-windows_1.78.0+dfsg1-2~deb12u3_amd64.deb
367 B
file list
    
Offset 1, 3 lines modifiedOffset 1, 3 lines modified
1 -rw-r--r--···0········0········0········4·2024-08-28·14:44:23.000000·debian-binary1 -rw-r--r--···0········0········0········4·2024-08-28·14:44:23.000000·debian-binary
2 -rw-r--r--···0········0········0·····2356·2024-08-28·14:44:23.000000·control.tar.xz2 -rw-r--r--···0········0········0·····2356·2024-08-28·14:44:23.000000·control.tar.xz
3 -rw-r--r--···0········0········0·41753144·2024-08-28·14:44:23.000000·data.tar.xz3 -rw-r--r--···0········0········0·41753752·2024-08-28·14:44:23.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
258 KB
data.tar.xz
258 KB
data.tar
14.5 KB
./usr/lib/rustlib/x86_64-pc-windows-gnu/lib/libstd-77bb723fc58ce3d1.rlib
6.85 KB
nm -s {}
error from `nm -s {}`: nm: std-77bb723fc58ce3d1.std.9f917a5e7a74ff1-cgu.00.rcgu.o: no symbols nm: std-77bb723fc58ce3d1.std.9f917a5e7a74ff1-cgu.01.rcgu.o: no symbols nm: std-77bb723fc58ce3d1.std.9f917a5e7a74ff1-cgu.02.rcgu.o: no symbols nm: std-77bb723fc58ce3d1.std.9f917a5e7a74ff1-cgu.03.rcgu.o: no symbols nm: std-77bb723fc58ce3d1.std.9f917a5e7a74ff1-cgu.04.rcgu.o: no symbols nm: std-77bb723fc58ce3d1.std.9f917a5e7a74ff1-cgu.05.rcgu.o: no symbols nm: std-77bb723fc58ce3d1.std.9f917a5e7a74ff1-cgu.06.rcgu.o: no symbols nm: std-77bb723fc58ce3d1.std.9f917a5e7a74ff1-cgu.07.rcgu.o: no symbols nm: std-77bb723fc58ce3d1.std.9f917a5e7a74ff1-cgu.08.rcgu.o: no symbols nm: std-77bb723fc58ce3d1.std.9f917a5e7a74ff1-cgu.09.rcgu.o: no symbols nm: std-77bb723fc58ce3d1.std.9f917a5e7a74ff1-cgu.10.rcgu.o: no symbols nm: std-77bb723fc58ce3d1.std.9f917a5e7a74ff1-cgu.11.rcgu.o: no symbols nm: std-77bb723fc58ce3d1.std.9f917a5e7a74ff1-cgu.12.rcgu.o: no symbols nm: std-77bb723fc58ce3d1.std.9f917a5e7a74ff1-cgu.13.rcgu.o: no symbols nm: std-77bb723fc58ce3d1.std.9f917a5e7a74ff1-cgu.14.rcgu.o: no symbols nm: std-77bb723fc58ce3d1.std.9f917a5e7a74ff1-cgu.15.rcgu.o: no symbols
    
Offset 2290, 20 lines modifiedOffset 2290, 20 lines modified
2290 __imp_anon.5188eecf01c48ed8fcadadd01fcebeeb.104.llvm.10386673973210777259·in·std-77bb723fc58ce3d1.std.9f917a5e7a74ff1-cgu.15.rcgu.o2290 __imp_anon.5188eecf01c48ed8fcadadd01fcebeeb.104.llvm.10386673973210777259·in·std-77bb723fc58ce3d1.std.9f917a5e7a74ff1-cgu.15.rcgu.o
2291 __imp_anon.5188eecf01c48ed8fcadadd01fcebeeb.106.llvm.10386673973210777259·in·std-77bb723fc58ce3d1.std.9f917a5e7a74ff1-cgu.15.rcgu.o2291 __imp_anon.5188eecf01c48ed8fcadadd01fcebeeb.106.llvm.10386673973210777259·in·std-77bb723fc58ce3d1.std.9f917a5e7a74ff1-cgu.15.rcgu.o
2292 __imp__ZN3std3sys3pal7windows4time12perf_counter9frequency9FREQUENCY17hb6767d30e4f028d6E.0.llvm.10386673973210777259·in·std-77bb723fc58ce3d1.std.9f917a5e7a74ff1-cgu.15.rcgu.o2292 __imp__ZN3std3sys3pal7windows4time12perf_counter9frequency9FREQUENCY17hb6767d30e4f028d6E.0.llvm.10386673973210777259·in·std-77bb723fc58ce3d1.std.9f917a5e7a74ff1-cgu.15.rcgu.o
2293 __imp_anon.5188eecf01c48ed8fcadadd01fcebeeb.107.llvm.10386673973210777259·in·std-77bb723fc58ce3d1.std.9f917a5e7a74ff1-cgu.15.rcgu.o2293 __imp_anon.5188eecf01c48ed8fcadadd01fcebeeb.107.llvm.10386673973210777259·in·std-77bb723fc58ce3d1.std.9f917a5e7a74ff1-cgu.15.rcgu.o
2294 _ZN4core3ptr117drop_in_place$LT$std..sys_common..backtrace.._print_fmt..$u7b$$u7b$closure$u7d$$u7d$..$u7b$$u7b$closure$u7d$$u7d$$GT$17hc088a82a0fb7ebbfE.llvm.10386673973210777259·in·std-77bb723fc58ce3d1.std.9f917a5e7a74ff1-cgu.15.rcgu.o2294 _ZN4core3ptr117drop_in_place$LT$std..sys_common..backtrace.._print_fmt..$u7b$$u7b$closure$u7d$$u7d$..$u7b$$u7b$closure$u7d$$u7d$$GT$17hc088a82a0fb7ebbfE.llvm.10386673973210777259·in·std-77bb723fc58ce3d1.std.9f917a5e7a74ff1-cgu.15.rcgu.o
2295 _ZN4core3ptr24drop_in_place$LT$i64$GT$17h92640e010cd0fa93E.llvm.10386673973210777259·in·std-77bb723fc58ce3d1.std.9f917a5e7a74ff1-cgu.15.rcgu.o2295 _ZN4core3ptr24drop_in_place$LT$i64$GT$17h92640e010cd0fa93E.llvm.10386673973210777259·in·std-77bb723fc58ce3d1.std.9f917a5e7a74ff1-cgu.15.rcgu.o
2296 _ZN3std3env7vars_os17h3b0b2c18e0b600f6E·in·std-77bb723fc58ce3d1.std.9f917a5e7a74ff1-cgu.15.rcgu.o2296 _ZN3std3env7vars_os17h3b0b2c18e0b600f6E·in·std-77bb723fc58ce3d1.std.9f917a5e7a74ff1-cgu.15.rcgu.o
2297 ___tmp_rustcEEj9Ch_bcryptprimitives_lib_iname·in·bcryptprimitives.dllt.o2297 ___tmp_rustcRtCTVS_bcryptprimitives_lib_iname·in·bcryptprimitives.dllt.o
2298 _head__tmp_rustcEEj9Ch_bcryptprimitives_lib·in·bcryptprimitives.dllh.o2298 _head__tmp_rustcRtCTVS_bcryptprimitives_lib·in·bcryptprimitives.dllh.o
2299 ProcessPrng·in·bcryptprimitives.dlls00000.o2299 ProcessPrng·in·bcryptprimitives.dlls00000.o
2300 __imp_ProcessPrng·in·bcryptprimitives.dlls00000.o2300 __imp_ProcessPrng·in·bcryptprimitives.dlls00000.o
2301 ___tmp_rustcEEj9Ch_api_ms_win_core_synch_l1_2_0_lib_iname·in·api-ms-win-core-synch-l1-2-0.dllt.o2301 ___tmp_rustcRtCTVS_api_ms_win_core_synch_l1_2_0_lib_iname·in·api-ms-win-core-synch-l1-2-0.dllt.o
2302 _head__tmp_rustcEEj9Ch_api_ms_win_core_synch_l1_2_0_lib·in·api-ms-win-core-synch-l1-2-0.dllh.o2302 _head__tmp_rustcRtCTVS_api_ms_win_core_synch_l1_2_0_lib·in·api-ms-win-core-synch-l1-2-0.dllh.o
2303 WakeByAddressSingle·in·api-ms-win-core-synch-l1-2-0.dlls00002.o2303 WakeByAddressSingle·in·api-ms-win-core-synch-l1-2-0.dlls00002.o
2304 __imp_WakeByAddressSingle·in·api-ms-win-core-synch-l1-2-0.dlls00002.o2304 __imp_WakeByAddressSingle·in·api-ms-win-core-synch-l1-2-0.dlls00002.o
2305 WakeByAddressAll·in·api-ms-win-core-synch-l1-2-0.dlls00001.o2305 WakeByAddressAll·in·api-ms-win-core-synch-l1-2-0.dlls00001.o
2306 __imp_WakeByAddressAll·in·api-ms-win-core-synch-l1-2-0.dlls00001.o2306 __imp_WakeByAddressAll·in·api-ms-win-core-synch-l1-2-0.dlls00001.o
2307 WaitOnAddress·in·api-ms-win-core-synch-l1-2-0.dlls00000.o2307 WaitOnAddress·in·api-ms-win-core-synch-l1-2-0.dlls00000.o
2308 __imp_WaitOnAddress·in·api-ms-win-core-synch-l1-2-0.dlls00000.o2308 __imp_WaitOnAddress·in·api-ms-win-core-synch-l1-2-0.dlls00000.o
  
Offset 2361, 89 lines modifiedOffset 2361, 89 lines modified
2361 bcryptprimitives.dllt.o:2361 bcryptprimitives.dllt.o:
2362 0000000000000000·b·.bss2362 0000000000000000·b·.bss
2363 0000000000000000·d·.data2363 0000000000000000·d·.data
2364 0000000000000000·i·.idata$42364 0000000000000000·i·.idata$4
2365 0000000000000000·i·.idata$52365 0000000000000000·i·.idata$5
2366 0000000000000000·i·.idata$72366 0000000000000000·i·.idata$7
2367 0000000000000000·t·.text2367 0000000000000000·t·.text
2368 0000000000000000·I·___tmp_rustcEEj9Ch_bcryptprimitives_lib_iname2368 0000000000000000·I·___tmp_rustcRtCTVS_bcryptprimitives_lib_iname
  
2369 bcryptprimitives.dllh.o:2369 bcryptprimitives.dllh.o:
2370 0000000000000000·b·.bss2370 0000000000000000·b·.bss
2371 0000000000000000·d·.data2371 0000000000000000·d·.data
2372 0000000000000000·i·.idata$22372 0000000000000000·i·.idata$2
2373 0000000000000000·i·.idata$42373 0000000000000000·i·.idata$4
2374 0000000000000000·i·.idata$52374 0000000000000000·i·.idata$5
2375 0000000000000000·t·.text2375 0000000000000000·t·.text
2376 ·················U·___tmp_rustcEEj9Ch_bcryptprimitives_lib_iname2376 ·················U·___tmp_rustcRtCTVS_bcryptprimitives_lib_iname
2377 0000000000000000·I·_head__tmp_rustcEEj9Ch_bcryptprimitives_lib2377 0000000000000000·I·_head__tmp_rustcRtCTVS_bcryptprimitives_lib
2378 0000000000000000·i·fthunk2378 0000000000000000·i·fthunk
2379 0000000000000000·i·hname2379 0000000000000000·i·hname
  
2380 bcryptprimitives.dlls00000.o:2380 bcryptprimitives.dlls00000.o:
2381 0000000000000000·b·.bss2381 0000000000000000·b·.bss
2382 0000000000000000·d·.data2382 0000000000000000·d·.data
2383 0000000000000000·i·.idata$42383 0000000000000000·i·.idata$4
2384 0000000000000000·i·.idata$52384 0000000000000000·i·.idata$5
2385 0000000000000000·i·.idata$62385 0000000000000000·i·.idata$6
2386 0000000000000000·i·.idata$72386 0000000000000000·i·.idata$7
2387 0000000000000000·t·.text2387 0000000000000000·t·.text
2388 0000000000000000·T·ProcessPrng2388 0000000000000000·T·ProcessPrng
2389 0000000000000000·I·__imp_ProcessPrng2389 0000000000000000·I·__imp_ProcessPrng
2390 ·················U·_head__tmp_rustcEEj9Ch_bcryptprimitives_lib2390 ·················U·_head__tmp_rustcRtCTVS_bcryptprimitives_lib
  
2391 api-ms-win-core-synch-l1-2-0.dllt.o:2391 api-ms-win-core-synch-l1-2-0.dllt.o:
2392 0000000000000000·b·.bss2392 0000000000000000·b·.bss
2393 0000000000000000·d·.data2393 0000000000000000·d·.data
2394 0000000000000000·i·.idata$42394 0000000000000000·i·.idata$4
2395 0000000000000000·i·.idata$52395 0000000000000000·i·.idata$5
2396 0000000000000000·i·.idata$72396 0000000000000000·i·.idata$7
2397 0000000000000000·t·.text2397 0000000000000000·t·.text
2398 0000000000000000·I·___tmp_rustcEEj9Ch_api_ms_win_core_synch_l1_2_0_lib_iname2398 0000000000000000·I·___tmp_rustcRtCTVS_api_ms_win_core_synch_l1_2_0_lib_iname
  
2399 api-ms-win-core-synch-l1-2-0.dllh.o:2399 api-ms-win-core-synch-l1-2-0.dllh.o:
2400 0000000000000000·b·.bss2400 0000000000000000·b·.bss
2401 0000000000000000·d·.data2401 0000000000000000·d·.data
2402 0000000000000000·i·.idata$22402 0000000000000000·i·.idata$2
2403 0000000000000000·i·.idata$42403 0000000000000000·i·.idata$4
2404 0000000000000000·i·.idata$52404 0000000000000000·i·.idata$5
2405 0000000000000000·t·.text2405 0000000000000000·t·.text
2406 ·················U·___tmp_rustcEEj9Ch_api_ms_win_core_synch_l1_2_0_lib_iname2406 ·················U·___tmp_rustcRtCTVS_api_ms_win_core_synch_l1_2_0_lib_iname
2407 0000000000000000·I·_head__tmp_rustcEEj9Ch_api_ms_win_core_synch_l1_2_0_lib2407 0000000000000000·I·_head__tmp_rustcRtCTVS_api_ms_win_core_synch_l1_2_0_lib
2408 0000000000000000·i·fthunk2408 0000000000000000·i·fthunk
2409 0000000000000000·i·hname2409 0000000000000000·i·hname
  
2410 api-ms-win-core-synch-l1-2-0.dlls00002.o:2410 api-ms-win-core-synch-l1-2-0.dlls00002.o:
2411 0000000000000000·b·.bss2411 0000000000000000·b·.bss
2412 0000000000000000·d·.data2412 0000000000000000·d·.data
2413 0000000000000000·i·.idata$42413 0000000000000000·i·.idata$4
2414 0000000000000000·i·.idata$52414 0000000000000000·i·.idata$5
2415 0000000000000000·i·.idata$62415 0000000000000000·i·.idata$6
2416 0000000000000000·i·.idata$72416 0000000000000000·i·.idata$7
2417 0000000000000000·t·.text2417 0000000000000000·t·.text
2418 0000000000000000·T·WakeByAddressSingle2418 0000000000000000·T·WakeByAddressSingle
2419 0000000000000000·I·__imp_WakeByAddressSingle2419 0000000000000000·I·__imp_WakeByAddressSingle
2420 ·················U·_head__tmp_rustcEEj9Ch_api_ms_win_core_synch_l1_2_0_lib2420 ·················U·_head__tmp_rustcRtCTVS_api_ms_win_core_synch_l1_2_0_lib
  
2421 api-ms-win-core-synch-l1-2-0.dlls00001.o:2421 api-ms-win-core-synch-l1-2-0.dlls00001.o:
2422 0000000000000000·b·.bss2422 0000000000000000·b·.bss
2423 0000000000000000·d·.data2423 0000000000000000·d·.data
2424 0000000000000000·i·.idata$42424 0000000000000000·i·.idata$4
2425 0000000000000000·i·.idata$52425 0000000000000000·i·.idata$5
2426 0000000000000000·i·.idata$62426 0000000000000000·i·.idata$6
2427 0000000000000000·i·.idata$72427 0000000000000000·i·.idata$7
2428 0000000000000000·t·.text2428 0000000000000000·t·.text
2429 0000000000000000·T·WakeByAddressAll2429 0000000000000000·T·WakeByAddressAll
2430 0000000000000000·I·__imp_WakeByAddressAll2430 0000000000000000·I·__imp_WakeByAddressAll
2431 ·················U·_head__tmp_rustcEEj9Ch_api_ms_win_core_synch_l1_2_0_lib2431 ·················U·_head__tmp_rustcRtCTVS_api_ms_win_core_synch_l1_2_0_lib
  
2432 api-ms-win-core-synch-l1-2-0.dlls00000.o:2432 api-ms-win-core-synch-l1-2-0.dlls00000.o:
2433 0000000000000000·b·.bss2433 0000000000000000·b·.bss
2434 0000000000000000·d·.data2434 0000000000000000·d·.data
2435 0000000000000000·i·.idata$42435 0000000000000000·i·.idata$4
2436 0000000000000000·i·.idata$52436 0000000000000000·i·.idata$5
2437 0000000000000000·i·.idata$62437 0000000000000000·i·.idata$6
2438 0000000000000000·i·.idata$72438 0000000000000000·i·.idata$7
2439 0000000000000000·t·.text2439 0000000000000000·t·.text
2440 0000000000000000·T·WaitOnAddress2440 0000000000000000·T·WaitOnAddress
2441 0000000000000000·I·__imp_WaitOnAddress2441 0000000000000000·I·__imp_WaitOnAddress
2442 ·················U·_head__tmp_rustcEEj9Ch_api_ms_win_core_synch_l1_2_0_lib2442 ·················U·_head__tmp_rustcRtCTVS_api_ms_win_core_synch_l1_2_0_lib
821 B
bcryptprimitives.dllt.o
    
Offset 30, 10 lines modifiedOffset 30, 10 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·3200·0000·5f5f··..........2...__00000230:·0000·0000·0600·0000·0200·3200·0000·5f5f··..........2...__
00000240:·5f74·6d70·5f72·7573·7463·4545·6a39·4368··_tmp_rustcEEj9Ch00000240:·5f74·6d70·5f72·7573·7463·5274·4354·5653··_tmp_rustcRtCTVS
00000250:·5f62·6372·7970·7470·7269·6d69·7469·7665··_bcryptprimitive00000250:·5f62·6372·7970·7470·7269·6d69·7469·7665··_bcryptprimitive
00000260:·735f·6c69·625f·696e·616d·6500············s_lib_iname.00000260:·735f·6c69·625f·696e·616d·6500············s_lib_iname.
1.06 KB
bcryptprimitives.dllh.o
    
Offset 32, 13 lines modifiedOffset 32, 13 lines modified
000001f0:·2432·0000·0000·0400·0000·0301·1400·0000··$2..............000001f0:·2432·0000·0000·0400·0000·0301·1400·0000··$2..............
00000200:·0300·0000·0000·0000·0000·0000·0000·2e69··...............i00000200:·0300·0000·0000·0000·0000·0000·0000·2e69··...............i
00000210:·6461·7461·2434·0000·0000·0600·0000·0300··data$4..........00000210:·6461·7461·2434·0000·0000·0600·0000·0300··data$4..........
00000220:·2e69·6461·7461·2435·0000·0000·0500·0000··.idata$5........00000220:·2e69·6461·7461·2435·0000·0000·0500·0000··.idata$5........
00000230:·0300·0000·0000·0400·0000·0000·0000·0400··................00000230:·0300·0000·0000·0400·0000·0000·0000·0400··................
00000240:·0000·0200·0000·0000·3000·0000·0000·0000··........0.......00000240:·0000·0200·0000·0000·3000·0000·0000·0000··........0.......
00000250:·0000·0000·0200·5e00·0000·5f68·6561·645f··......^..._head_00000250:·0000·0000·0200·5e00·0000·5f68·6561·645f··......^..._head_
00000260:·5f74·6d70·5f72·7573·7463·4545·6a39·4368··_tmp_rustcEEj9Ch00000260:·5f74·6d70·5f72·7573·7463·5274·4354·5653··_tmp_rustcRtCTVS
00000270:·5f62·6372·7970·7470·7269·6d69·7469·7665··_bcryptprimitive00000270:·5f62·6372·7970·7470·7269·6d69·7469·7665··_bcryptprimitive
00000280:·735f·6c69·6200·5f5f·5f74·6d70·5f72·7573··s_lib.___tmp_rus00000280:·735f·6c69·6200·5f5f·5f74·6d70·5f72·7573··s_lib.___tmp_rus
00000290:·7463·4545·6a39·4368·5f62·6372·7970·7470··tcEEj9Ch_bcryptp00000290:·7463·5274·4354·5653·5f62·6372·7970·7470··tcRtCTVS_bcryptp
000002a0:·7269·6d69·7469·7665·735f·6c69·625f·696e··rimitives_lib_in000002a0:·7269·6d69·7469·7665·735f·6c69·625f·696e··rimitives_lib_in
000002b0:·616d·6500································ame.000002b0:·616d·6500································ame.
821 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·4e00·0000·5072·6f63·6573·7350··....N...ProcessP00000230:·0000·0200·4e00·0000·5072·6f63·6573·7350··....N...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·4545·6a39·4368·5f62·6372··_rustcEEj9Ch_bcr00000260:·5f72·7573·7463·5274·4354·5653·5f62·6372··_rustcRtCTVS_bcr
00000270:·7970·7470·7269·6d69·7469·7665·735f·6c69··yptprimitives_li00000270:·7970·7470·7269·6d69·7469·7665·735f·6c69··yptprimitives_li
00000280:·6200·····································b.00000280:·6200·····································b.
906 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·3e00·0000·5f5f·5f74·6d70··......>...___tmp00000240:·0600·0000·0200·3e00·0000·5f5f·5f74·6d70··......>...___tmp
00000250:·5f72·7573·7463·4545·6a39·4368·5f61·7069··_rustcEEj9Ch_api00000250:·5f72·7573·7463·5274·4354·5653·5f61·7069··_rustcRtCTVS_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·6c69·625f·696e··ch_l1_2_0_lib_in00000270:·6368·5f6c·315f·325f·305f·6c69·625f·696e··ch_l1_2_0_lib_in
00000280:·616d·6500································ame.00000280:·616d·6500································ame.
1.23 KB
api-ms-win-core-synch-l1-2-0.dllh.o
    
Offset 32, 14 lines modifiedOffset 32, 14 lines modified
000001f0:·2432·0000·0000·0400·0000·0301·1400·0000··$2..............000001f0:·2432·0000·0000·0400·0000·0301·1400·0000··$2..............
00000200:·0300·0000·0000·0000·0000·0000·0000·2e69··...............i00000200:·0300·0000·0000·0000·0000·0000·0000·2e69··...............i
00000210:·6461·7461·2434·0000·0000·0600·0000·0300··data$4..........00000210:·6461·7461·2434·0000·0000·0600·0000·0300··data$4..........
00000220:·2e69·6461·7461·2435·0000·0000·0500·0000··.idata$5........00000220:·2e69·6461·7461·2435·0000·0000·0500·0000··.idata$5........
00000230:·0300·0000·0000·0400·0000·0000·0000·0400··................00000230:·0300·0000·0000·0400·0000·0000·0000·0400··................
00000240:·0000·0200·0000·0000·3c00·0000·0000·0000··........<.......00000240:·0000·0200·0000·0000·3c00·0000·0000·0000··........<.......
00000250:·0000·0000·0200·7600·0000·5f68·6561·645f··......v..._head_00000250:·0000·0000·0200·7600·0000·5f68·6561·645f··......v..._head_
00000260:·5f74·6d70·5f72·7573·7463·4545·6a39·4368··_tmp_rustcEEj9Ch00000260:·5f74·6d70·5f72·7573·7463·5274·4354·5653··_tmp_rustcRtCTVS
00000270:·5f61·7069·5f6d·735f·7769·6e5f·636f·7265··_api_ms_win_core00000270:·5f61·7069·5f6d·735f·7769·6e5f·636f·7265··_api_ms_win_core
00000280:·5f73·796e·6368·5f6c·315f·325f·305f·6c69··_synch_l1_2_0_li00000280:·5f73·796e·6368·5f6c·315f·325f·305f·6c69··_synch_l1_2_0_li
00000290:·6200·5f5f·5f74·6d70·5f72·7573·7463·4545··b.___tmp_rustcEE00000290:·6200·5f5f·5f74·6d70·5f72·7573·7463·5274··b.___tmp_rustcRt
000002a0:·6a39·4368·5f61·7069·5f6d·735f·7769·6e5f··j9Ch_api_ms_win_000002a0:·4354·5653·5f61·7069·5f6d·735f·7769·6e5f··CTVS_api_ms_win_
000002b0:·636f·7265·5f73·796e·6368·5f6c·315f·325f··core_synch_l1_2_000002b0:·636f·7265·5f73·796e·6368·5f6c·315f·325f··core_synch_l1_2_
000002c0:·305f·6c69·625f·696e·616d·6500············0_lib_iname.000002c0:·305f·6c69·625f·696e·616d·6500············0_lib_iname.
987 B
api-ms-win-core-synch-l1-2-0.dlls00002.o
    
Offset 33, 11 lines modifiedOffset 33, 11 lines modified
00000200:·0700·0000·0300·0000·0000·0400·0000·0000··................00000200:·0700·0000·0300·0000·0000·0400·0000·0000··................
00000210:·0000·0100·0000·0200·0000·0000·1800·0000··................00000210:·0000·0100·0000·0200·0000·0000·1800·0000··................
00000220:·0000·0000·0500·0000·0200·0000·0000·3200··..............2.00000220:·0000·0000·0500·0000·0200·0000·0000·3200··..............2.
00000230:·0000·0000·0000·0000·0000·0200·6a00·0000··............j...00000230:·0000·0000·0000·0000·0000·0200·6a00·0000··............j...
00000240:·5761·6b65·4279·4164·6472·6573·7353·696e··WakeByAddressSin00000240:·5761·6b65·4279·4164·6472·6573·7353·696e··WakeByAddressSin
00000250:·676c·6500·5f5f·696d·705f·5761·6b65·4279··gle.__imp_WakeBy00000250:·676c·6500·5f5f·696d·705f·5761·6b65·4279··gle.__imp_WakeBy
00000260:·4164·6472·6573·7353·696e·676c·6500·5f68··AddressSingle._h00000260:·4164·6472·6573·7353·696e·676c·6500·5f68··AddressSingle._h
00000270:·6561·645f·5f74·6d70·5f72·7573·7463·4545··ead__tmp_rustcEE00000270:·6561·645f·5f74·6d70·5f72·7573·7463·5274··ead__tmp_rustcRt
00000280:·6a39·4368·5f61·7069·5f6d·735f·7769·6e5f··j9Ch_api_ms_win_00000280:·4354·5653·5f61·7069·5f6d·735f·7769·6e5f··CTVS_api_ms_win_
00000290:·636f·7265·5f73·796e·6368·5f6c·315f·325f··core_synch_l1_2_00000290:·636f·7265·5f73·796e·6368·5f6c·315f·325f··core_synch_l1_2_
000002a0:·305f·6c69·6200···························0_lib.000002a0:·305f·6c69·6200···························0_lib.
855 B
api-ms-win-core-synch-l1-2-0.dlls00001.o
    
Offset 33, 10 lines modifiedOffset 33, 10 lines modified
00000200:·0300·0000·0000·0400·0000·0000·0000·0100··................00000200:·0300·0000·0000·0400·0000·0000·0000·0100··................
00000210:·0000·0200·0000·0000·1500·0000·0000·0000··................00000210:·0000·0200·0000·0000·1500·0000·0000·0000··................
00000220:·0500·0000·0200·0000·0000·2c00·0000·0000··..........,.....00000220:·0500·0000·0200·0000·0000·2c00·0000·0000··..........,.....
00000230:·0000·0000·0000·0200·6400·0000·5761·6b65··........d...Wake00000230:·0000·0000·0000·0200·6400·0000·5761·6b65··........d...Wake
00000240:·4279·4164·6472·6573·7341·6c6c·005f·5f69··ByAddressAll.__i00000240:·4279·4164·6472·6573·7341·6c6c·005f·5f69··ByAddressAll.__i
00000250:·6d70·5f57·616b·6542·7941·6464·7265·7373··mp_WakeByAddress00000250:·6d70·5f57·616b·6542·7941·6464·7265·7373··mp_WakeByAddress
00000260:·416c·6c00·5f68·6561·645f·5f74·6d70·5f72··All._head__tmp_r00000260:·416c·6c00·5f68·6561·645f·5f74·6d70·5f72··All._head__tmp_r
00000270:·7573·7463·4545·6a39·4368·5f61·7069·5f6d··ustcEEj9Ch_api_m00000270:·7573·7463·5274·4354·5653·5f61·7069·5f6d··ustcRtCTVS_api_m
00000280:·735f·7769·6e5f·636f·7265·5f73·796e·6368··s_win_core_synch00000280:·735f·7769·6e5f·636f·7265·5f73·796e·6368··s_win_core_synch
00000290:·5f6c·315f·325f·305f·6c69·6200············_l1_2_0_lib.00000290:·5f6c·315f·325f·305f·6c69·6200············_l1_2_0_lib.
914 B
api-ms-win-core-synch-l1-2-0.dlls00000.o
    
Offset 32, 11 lines modifiedOffset 32, 11 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·1200·0000·0000·0000·0500·0000··................00000210:·0000·0000·1200·0000·0000·0000·0500·0000··................
00000220:·0200·0000·0000·2600·0000·0000·0000·0000··......&.........00000220:·0200·0000·0000·2600·0000·0000·0000·0000··......&.........
00000230:·0000·0200·5e00·0000·5761·6974·4f6e·4164··....^...WaitOnAd00000230:·0000·0200·5e00·0000·5761·6974·4f6e·4164··....^...WaitOnAd
00000240:·6472·6573·7300·5f5f·696d·705f·5761·6974··dress.__imp_Wait00000240:·6472·6573·7300·5f5f·696d·705f·5761·6974··dress.__imp_Wait
00000250:·4f6e·4164·6472·6573·7300·5f68·6561·645f··OnAddress._head_00000250:·4f6e·4164·6472·6573·7300·5f68·6561·645f··OnAddress._head_
00000260:·5f74·6d70·5f72·7573·7463·4545·6a39·4368··_tmp_rustcEEj9Ch00000260:·5f74·6d70·5f72·7573·7463·5274·4354·5653··_tmp_rustcRtCTVS
00000270:·5f61·7069·5f6d·735f·7769·6e5f·636f·7265··_api_ms_win_core00000270:·5f61·7069·5f6d·735f·7769·6e5f·636f·7265··_api_ms_win_core
00000280:·5f73·796e·6368·5f6c·315f·325f·305f·6c69··_synch_l1_2_0_li00000280:·5f73·796e·6368·5f6c·315f·325f·305f·6c69··_synch_l1_2_0_li
00000290:·6200·····································b.00000290:·6200·····································b.
244 KB
./usr/lib/rustlib/x86_64-pc-windows-gnu/lib/std-77bb723fc58ce3d1.dll
244 KB
objdump
Max HTML report size reached
36.3 MB
rust-web-doc_1.78.0+dfsg1-2~deb12u3_all.deb
452 B
file list
    
Offset 1, 3 lines modifiedOffset 1, 3 lines modified
1 -rw-r--r--···0········0········0········4·2024-08-28·14:44:23.000000·debian-binary1 -rw-r--r--···0········0········0········4·2024-08-28·14:44:23.000000·debian-binary
2 -rw-r--r--···0········0········0···763180·2024-08-28·14:44:23.000000·control.tar.xz2 -rw-r--r--···0········0········0···763236·2024-08-28·14:44:23.000000·control.tar.xz
3 -rw-r--r--···0········0········0·19434036·2024-08-28·14:44:23.000000·data.tar.xz3 -rw-r--r--···0········0········0·19271176·2024-08-28·14:44:23.000000·data.tar.xz
656 B
control.tar.xz
628 B
control.tar
558 B
./control
    
Offset 1, 13 lines modifiedOffset 1, 13 lines modified
1 Package:·rust-web-doc1 Package:·rust-web-doc
2 Source:·rustc-web2 Source:·rustc-web
3 Version:·1.78.0+dfsg1-2~deb12u33 Version:·1.78.0+dfsg1-2~deb12u3
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:·5675916 Installed-Size:·569595
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-web-doc8 Recommends:·cargo-web-doc
9 Conflicts:·rust-doc,·rust-mozilla-doc9 Conflicts:·rust-doc,·rust-mozilla-doc
10 Section:·doc10 Section:·doc
11 Priority:·optional11 Priority:·optional
12 Homepage:·http://www.rust-lang.org/12 Homepage:·http://www.rust-lang.org/
13 Description:·Rust·systems·programming·language·-·Documentation13 Description:·Rust·systems·programming·language·-·Documentation
48.0 B
./md5sums
30.0 B
./md5sums
Files differ
36.3 MB
data.tar.xz
36.3 MB
data.tar
119 KB
file list
    
Offset 10, 53 lines modifiedOffset 10, 53 lines modified
10 -rw-r--r--···0·root·········(0)·root·········(0)·····8565·2024-08-28·14:44:23.000000·./usr/share/doc/rust-web-doc/changelog.Debian.gz10 -rw-r--r--···0·root·········(0)·root·········(0)·····8565·2024-08-28·14:44:23.000000·./usr/share/doc/rust-web-doc/changelog.Debian.gz
11 -rw-r--r--···0·root·········(0)·root·········(0)···181976·2024-04-29·14:03:23.000000·./usr/share/doc/rust-web-doc/changelog.gz11 -rw-r--r--···0·root·········(0)·root·········(0)···181976·2024-04-29·14:03:23.000000·./usr/share/doc/rust-web-doc/changelog.gz
12 -rw-r--r--···0·root·········(0)·root·········(0)···120683·2024-06-24·05:36:38.000000·./usr/share/doc/rust-web-doc/copyright12 -rw-r--r--···0·root·········(0)·root·········(0)···120683·2024-06-24·05:36:38.000000·./usr/share/doc/rust-web-doc/copyright
13 drwxr-xr-x···0·root·········(0)·root·········(0)········0·2024-08-28·14:44:23.000000·./usr/share/doc/rust-web-doc/html/13 drwxr-xr-x···0·root·········(0)·root·········(0)········0·2024-08-28·14:44:23.000000·./usr/share/doc/rust-web-doc/html/
14 drwxr-xr-x···0·root·········(0)·root·········(0)········0·2024-08-28·14:44:23.000000·./usr/share/doc/rust-web-doc/html/alloc/14 drwxr-xr-x···0·root·········(0)·root·········(0)········0·2024-08-28·14:44:23.000000·./usr/share/doc/rust-web-doc/html/alloc/
15 -rw-r--r--···0·root·········(0)·root·········(0)····19220·2024-08-28·14:44:23.000000·./usr/share/doc/rust-web-doc/html/alloc/all.html15 -rw-r--r--···0·root·········(0)·root·········(0)····19220·2024-08-28·14:44:23.000000·./usr/share/doc/rust-web-doc/html/alloc/all.html
16 drwxr-xr-x···0·root·········(0)·root·········(0)········0·2024-08-28·14:44:23.000000·./usr/share/doc/rust-web-doc/html/alloc/alloc/16 drwxr-xr-x···0·root·········(0)·root·········(0)········0·2024-08-28·14:44:23.000000·./usr/share/doc/rust-web-doc/html/alloc/alloc/
17 -rw-r--r--···0·root·········(0)·root·········(0)·····7113·2024-08-28·14:44:23.000000·./usr/share/doc/rust-web-doc/html/alloc/alloc/fn.alloc.html17 -rw-r--r--···0·root·········(0)·root·········(0)·····7167·2024-08-28·14:44:23.000000·./usr/share/doc/rust-web-doc/html/alloc/alloc/fn.alloc.html
18 -rw-r--r--···0·root·········(0)·root·········(0)·····6856·2024-08-28·14:44:23.000000·./usr/share/doc/rust-web-doc/html/alloc/alloc/fn.alloc_zeroed.html18 -rw-r--r--···0·root·········(0)·root·········(0)·····6910·2024-08-28·14:44:23.000000·./usr/share/doc/rust-web-doc/html/alloc/alloc/fn.alloc_zeroed.html
19 -rw-r--r--···0·root·········(0)·root·········(0)·····5688·2024-08-28·14:44:23.000000·./usr/share/doc/rust-web-doc/html/alloc/alloc/fn.dealloc.html19 -rw-r--r--···0·root·········(0)·root·········(0)·····5742·2024-08-28·14:44:23.000000·./usr/share/doc/rust-web-doc/html/alloc/alloc/fn.dealloc.html
20 -rw-r--r--···0·root·········(0)·root·········(0)·····6352·2024-08-28·14:44:23.000000·./usr/share/doc/rust-web-doc/html/alloc/alloc/fn.handle_alloc_error.html20 -rw-r--r--···0·root·········(0)·root·········(0)·····6433·2024-08-28·14:44:23.000000·./usr/share/doc/rust-web-doc/html/alloc/alloc/fn.handle_alloc_error.html
21 -rw-r--r--···0·root·········(0)·root·········(0)·····5906·2024-08-28·14:44:23.000000·./usr/share/doc/rust-web-doc/html/alloc/alloc/fn.realloc.html21 -rw-r--r--···0·root·········(0)·root·········(0)·····6041·2024-08-28·14:44:23.000000·./usr/share/doc/rust-web-doc/html/alloc/alloc/fn.realloc.html
22 -rw-r--r--···0·root·········(0)·root·········(0)·····8501·2024-08-28·14:44:23.000000·./usr/share/doc/rust-web-doc/html/alloc/alloc/index.html22 -rw-r--r--···0·root·········(0)·root·········(0)·····8501·2024-08-28·14:44:23.000000·./usr/share/doc/rust-web-doc/html/alloc/alloc/index.html
23 -rw-r--r--···0·root·········(0)·root·········(0)······209·2024-08-28·14:44:23.000000·./usr/share/doc/rust-web-doc/html/alloc/alloc/sidebar-items1.78.0.js23 -rw-r--r--···0·root·········(0)·root·········(0)······209·2024-08-28·14:44:23.000000·./usr/share/doc/rust-web-doc/html/alloc/alloc/sidebar-items1.78.0.js
24 -rw-r--r--···0·root·········(0)·root·········(0)····35478·2024-08-28·14:44:23.000000·./usr/share/doc/rust-web-doc/html/alloc/alloc/struct.AllocError.html24 -rw-r--r--···0·root·········(0)·root·········(0)····38367·2024-08-28·14:44:23.000000·./usr/share/doc/rust-web-doc/html/alloc/alloc/struct.AllocError.html
25 -rw-r--r--···0·root·········(0)·root·········(0)····37581·2024-08-28·14:44:23.000000·./usr/share/doc/rust-web-doc/html/alloc/alloc/struct.Global.html25 -rw-r--r--···0·root·········(0)·root·········(0)····40146·2024-08-28·14:44:23.000000·./usr/share/doc/rust-web-doc/html/alloc/alloc/struct.Global.html
26 -rw-r--r--···0·root·········(0)·root·········(0)····55924·2024-08-28·14:44:23.000000·./usr/share/doc/rust-web-doc/html/alloc/alloc/struct.Layout.html26 -rw-r--r--···0·root·········(0)·root·········(0)····59812·2024-08-28·14:44:23.000000·./usr/share/doc/rust-web-doc/html/alloc/alloc/struct.Layout.html
27 -rw-r--r--···0·root·········(0)·root·········(0)····36744·2024-08-28·14:44:23.000000·./usr/share/doc/rust-web-doc/html/alloc/alloc/struct.LayoutError.html27 -rw-r--r--···0·root·········(0)·root·········(0)····39633·2024-08-28·14:44:23.000000·./usr/share/doc/rust-web-doc/html/alloc/alloc/struct.LayoutError.html
28 -rw-r--r--···0·root·········(0)·root·········(0)····34558·2024-08-28·14:44:23.000000·./usr/share/doc/rust-web-doc/html/alloc/alloc/trait.Allocator.html28 -rw-r--r--···0·root·········(0)·root·········(0)····36286·2024-08-28·14:44:23.000000·./usr/share/doc/rust-web-doc/html/alloc/alloc/trait.Allocator.html
29 -rw-r--r--···0·root·········(0)·root·········(0)····24449·2024-08-28·14:44:23.000000·./usr/share/doc/rust-web-doc/html/alloc/alloc/trait.GlobalAlloc.html29 -rw-r--r--···0·root·········(0)·root·········(0)····25178·2024-08-28·14:44:23.000000·./usr/share/doc/rust-web-doc/html/alloc/alloc/trait.GlobalAlloc.html
30 -rw-r--r--···0·root·········(0)·root·········(0)·····5114·2024-08-28·14:44:23.000000·./usr/share/doc/rust-web-doc/html/alloc/alloc/type.LayoutErr.html30 -rw-r--r--···0·root·········(0)·root·········(0)·····5141·2024-08-28·14:44:23.000000·./usr/share/doc/rust-web-doc/html/alloc/alloc/type.LayoutErr.html
31 drwxr-xr-x···0·root·········(0)·root·········(0)········0·2024-08-28·14:44:23.000000·./usr/share/doc/rust-web-doc/html/alloc/borrow/31 drwxr-xr-x···0·root·········(0)·root·········(0)········0·2024-08-28·14:44:23.000000·./usr/share/doc/rust-web-doc/html/alloc/borrow/
32 -rw-r--r--···0·root·········(0)·root·········(0)···165792·2024-08-28·14:44:23.000000·./usr/share/doc/rust-web-doc/html/alloc/borrow/enum.Cow.html32 -rw-r--r--···0·root·········(0)·root·········(0)···177969·2024-08-28·14:44:23.000000·./usr/share/doc/rust-web-doc/html/alloc/borrow/enum.Cow.html
33 -rw-r--r--···0·root·········(0)·root·········(0)·····5657·2024-08-28·14:44:23.000000·./usr/share/doc/rust-web-doc/html/alloc/borrow/index.html33 -rw-r--r--···0·root·········(0)·root·········(0)·····5657·2024-08-28·14:44:23.000000·./usr/share/doc/rust-web-doc/html/alloc/borrow/index.html
34 -rw-r--r--···0·root·········(0)·root·········(0)·······81·2024-08-28·14:44:23.000000·./usr/share/doc/rust-web-doc/html/alloc/borrow/sidebar-items1.78.0.js34 -rw-r--r--···0·root·········(0)·root·········(0)·······81·2024-08-28·14:44:23.000000·./usr/share/doc/rust-web-doc/html/alloc/borrow/sidebar-items1.78.0.js
35 -rw-r--r--···0·root·········(0)·root·········(0)····24087·2024-08-28·14:44:23.000000·./usr/share/doc/rust-web-doc/html/alloc/borrow/trait.Borrow.html35 -rw-r--r--···0·root·········(0)·root·········(0)····24816·2024-08-28·14:44:23.000000·./usr/share/doc/rust-web-doc/html/alloc/borrow/trait.Borrow.html
36 -rw-r--r--···0·root·········(0)·root·········(0)····11464·2024-08-28·14:44:23.000000·./usr/share/doc/rust-web-doc/html/alloc/borrow/trait.BorrowMut.html36 -rw-r--r--···0·root·········(0)·root·········(0)····11923·2024-08-28·14:44:23.000000·./usr/share/doc/rust-web-doc/html/alloc/borrow/trait.BorrowMut.html
37 -rw-r--r--···0·root·········(0)·root·········(0)····14320·2024-08-28·14:44:23.000000·./usr/share/doc/rust-web-doc/html/alloc/borrow/trait.ToOwned.html37 -rw-r--r--···0·root·········(0)·root·········(0)····14482·2024-08-28·14:44:23.000000·./usr/share/doc/rust-web-doc/html/alloc/borrow/trait.ToOwned.html
38 drwxr-xr-x···0·root·········(0)·root·········(0)········0·2024-08-28·14:44:23.000000·./usr/share/doc/rust-web-doc/html/alloc/boxed/38 drwxr-xr-x···0·root·········(0)·root·········(0)········0·2024-08-28·14:44:23.000000·./usr/share/doc/rust-web-doc/html/alloc/boxed/
39 -rw-r--r--···0·root·········(0)·root·········(0)····15351·2024-08-28·14:44:23.000000·./usr/share/doc/rust-web-doc/html/alloc/boxed/index.html39 -rw-r--r--···0·root·········(0)·root·········(0)····15432·2024-08-28·14:44:23.000000·./usr/share/doc/rust-web-doc/html/alloc/boxed/index.html
40 -rw-r--r--···0·root·········(0)·root·········(0)·······52·2024-08-28·14:44:23.000000·./usr/share/doc/rust-web-doc/html/alloc/boxed/sidebar-items1.78.0.js40 -rw-r--r--···0·root·········(0)·root·········(0)·······52·2024-08-28·14:44:23.000000·./usr/share/doc/rust-web-doc/html/alloc/boxed/sidebar-items1.78.0.js
41 -rw-r--r--···0·root·········(0)·root·········(0)···449983·2024-08-28·14:44:23.000000·./usr/share/doc/rust-web-doc/html/alloc/boxed/struct.Box.html41 -rw-r--r--···0·root·········(0)·root·········(0)···487351·2024-08-28·14:44:23.000000·./usr/share/doc/rust-web-doc/html/alloc/boxed/struct.Box.html
42 -rw-r--r--···0·root·········(0)·root·········(0)····42115·2024-08-28·14:44:23.000000·./usr/share/doc/rust-web-doc/html/alloc/boxed/struct.ThinBox.html42 -rw-r--r--···0·root·········(0)·root·········(0)····44950·2024-08-28·14:44:23.000000·./usr/share/doc/rust-web-doc/html/alloc/boxed/struct.ThinBox.html
43 drwxr-xr-x···0·root·········(0)·root·········(0)········0·2024-08-28·14:44:23.000000·./usr/share/doc/rust-web-doc/html/alloc/boxed/thin/43 drwxr-xr-x···0·root·········(0)·root·········(0)········0·2024-08-28·14:44:23.000000·./usr/share/doc/rust-web-doc/html/alloc/boxed/thin/
44 -rw-r--r--···0·root·········(0)·root·········(0)······432·2024-08-28·14:44:23.000000·./usr/share/doc/rust-web-doc/html/alloc/boxed/thin/struct.ThinBox.html44 -rw-r--r--···0·root·········(0)·root·········(0)······432·2024-08-28·14:44:23.000000·./usr/share/doc/rust-web-doc/html/alloc/boxed/thin/struct.ThinBox.html
45 drwxr-xr-x···0·root·········(0)·root·········(0)········0·2024-08-28·14:44:23.000000·./usr/share/doc/rust-web-doc/html/alloc/collections/45 drwxr-xr-x···0·root·········(0)·root·········(0)········0·2024-08-28·14:44:23.000000·./usr/share/doc/rust-web-doc/html/alloc/collections/
46 drwxr-xr-x···0·root·········(0)·root·········(0)········0·2024-08-28·14:44:23.000000·./usr/share/doc/rust-web-doc/html/alloc/collections/binary_heap/46 drwxr-xr-x···0·root·········(0)·root·········(0)········0·2024-08-28·14:44:23.000000·./usr/share/doc/rust-web-doc/html/alloc/collections/binary_heap/
47 -rw-r--r--···0·root·········(0)·root·········(0)····20331·2024-08-28·14:44:23.000000·./usr/share/doc/rust-web-doc/html/alloc/collections/binary_heap/index.html47 -rw-r--r--···0·root·········(0)·root·········(0)····20331·2024-08-28·14:44:23.000000·./usr/share/doc/rust-web-doc/html/alloc/collections/binary_heap/index.html
48 -rw-r--r--···0·root·········(0)·root·········(0)······116·2024-08-28·14:44:23.000000·./usr/share/doc/rust-web-doc/html/alloc/collections/binary_heap/sidebar-items1.78.0.js48 -rw-r--r--···0·root·········(0)·root·········(0)······116·2024-08-28·14:44:23.000000·./usr/share/doc/rust-web-doc/html/alloc/collections/binary_heap/sidebar-items1.78.0.js
49 -rw-r--r--···0·root·········(0)·root·········(0)···123398·2024-08-28·14:44:23.000000·./usr/share/doc/rust-web-doc/html/alloc/collections/binary_heap/struct.BinaryHeap.html49 -rw-r--r--···0·root·········(0)·root·········(0)···127502·2024-08-28·14:44:23.000000·./usr/share/doc/rust-web-doc/html/alloc/collections/binary_heap/struct.BinaryHeap.html
50 -rw-r--r--···0·root·········(0)·root·········(0)···149373·2024-08-28·14:44:23.000000·./usr/share/doc/rust-web-doc/html/alloc/collections/binary_heap/struct.Drain.html50 -rw-r--r--···0·root·········(0)·root·········(0)···166629·2024-08-28·14:44:23.000000·./usr/share/doc/rust-web-doc/html/alloc/collections/binary_heap/struct.Drain.html
51 -rw-r--r--···0·root·········(0)·root·········(0)···139001·2024-08-28·14:44:23.000000·./usr/share/doc/rust-web-doc/html/alloc/collections/binary_heap/struct.DrainSorted.html51 -rw-r--r--···0·root·········(0)·root·········(0)···154865·2024-08-28·14:44:23.000000·./usr/share/doc/rust-web-doc/html/alloc/collections/binary_heap/struct.DrainSorted.html
52 -rw-r--r--···0·root·········(0)·root·········(0)···154699·2024-08-28·14:44:23.000000·./usr/share/doc/rust-web-doc/html/alloc/collections/binary_heap/struct.IntoIter.html52 -rw-r--r--···0·root·········(0)·root·········(0)···172435·2024-08-28·14:44:23.000000·./usr/share/doc/rust-web-doc/html/alloc/collections/binary_heap/struct.IntoIter.html
53 -rw-r--r--···0·root·········(0)·root·········(0)···143314·2024-08-28·14:44:23.000000·./usr/share/doc/rust-web-doc/html/alloc/collections/binary_heap/struct.IntoIterSorted.html53 -rw-r--r--···0·root·········(0)·root·········(0)···159490·2024-08-28·14:44:23.000000·./usr/share/doc/rust-web-doc/html/alloc/collections/binary_heap/struct.IntoIterSorted.html
54 -rw-r--r--···0·root·········(0)·root·········(0)···148465·2024-08-28·14:44:23.000000·./usr/share/doc/rust-web-doc/html/alloc/collections/binary_heap/struct.Iter.html54 -rw-r--r--···0·root·········(0)·root·········(0)···165985·2024-08-28·14:44:23.000000·./usr/share/doc/rust-web-doc/html/alloc/collections/binary_heap/struct.Iter.html
55 -rw-r--r--···0·root·········(0)·root·········(0)····29522·2024-08-28·14:44:23.000000·./usr/share/doc/rust-web-doc/html/alloc/collections/binary_heap/struct.PeekMut.html55 -rw-r--r--···0·root·········(0)·root·········(0)····31298·2024-08-28·14:44:23.000000·./usr/share/doc/rust-web-doc/html/alloc/collections/binary_heap/struct.PeekMut.html
56 drwxr-xr-x···0·root·········(0)·root·········(0)········0·2024-08-28·14:44:23.000000·./usr/share/doc/rust-web-doc/html/alloc/collections/btree/56 drwxr-xr-x···0·root·········(0)·root·········(0)········0·2024-08-28·14:44:23.000000·./usr/share/doc/rust-web-doc/html/alloc/collections/btree/
57 drwxr-xr-x···0·root·········(0)·root·········(0)········0·2024-08-28·14:44:23.000000·./usr/share/doc/rust-web-doc/html/alloc/collections/btree/map/57 drwxr-xr-x···0·root·········(0)·root·········(0)········0·2024-08-28·14:44:23.000000·./usr/share/doc/rust-web-doc/html/alloc/collections/btree/map/
58 drwxr-xr-x···0·root·········(0)·root·········(0)········0·2024-08-28·14:44:23.000000·./usr/share/doc/rust-web-doc/html/alloc/collections/btree/map/entry/58 drwxr-xr-x···0·root·········(0)·root·········(0)········0·2024-08-28·14:44:23.000000·./usr/share/doc/rust-web-doc/html/alloc/collections/btree/map/entry/
59 -rw-r--r--···0·root·········(0)·root·········(0)······504·2024-08-28·14:44:23.000000·./usr/share/doc/rust-web-doc/html/alloc/collections/btree/map/entry/enum.Entry.html59 -rw-r--r--···0·root·········(0)·root·········(0)······504·2024-08-28·14:44:23.000000·./usr/share/doc/rust-web-doc/html/alloc/collections/btree/map/entry/enum.Entry.html
60 -rw-r--r--···0·root·········(0)·root·········(0)······544·2024-08-28·14:44:23.000000·./usr/share/doc/rust-web-doc/html/alloc/collections/btree/map/entry/struct.OccupiedEntry.html60 -rw-r--r--···0·root·········(0)·root·········(0)······544·2024-08-28·14:44:23.000000·./usr/share/doc/rust-web-doc/html/alloc/collections/btree/map/entry/struct.OccupiedEntry.html
61 -rw-r--r--···0·root·········(0)·root·········(0)······544·2024-08-28·14:44:23.000000·./usr/share/doc/rust-web-doc/html/alloc/collections/btree/map/entry/struct.OccupiedError.html61 -rw-r--r--···0·root·········(0)·root·········(0)······544·2024-08-28·14:44:23.000000·./usr/share/doc/rust-web-doc/html/alloc/collections/btree/map/entry/struct.OccupiedError.html
62 -rw-r--r--···0·root·········(0)·root·········(0)······536·2024-08-28·14:44:23.000000·./usr/share/doc/rust-web-doc/html/alloc/collections/btree/map/entry/struct.VacantEntry.html62 -rw-r--r--···0·root·········(0)·root·········(0)······536·2024-08-28·14:44:23.000000·./usr/share/doc/rust-web-doc/html/alloc/collections/btree/map/entry/struct.VacantEntry.html
Offset 83, 255 lines modifiedOffset 83, 255 lines modified
83 -rw-r--r--···0·root·········(0)·root·········(0)······528·2024-08-28·14:44:23.000000·./usr/share/doc/rust-web-doc/html/alloc/collections/btree/set/struct.Intersection.html83 -rw-r--r--···0·root·········(0)·root·········(0)······528·2024-08-28·14:44:23.000000·./usr/share/doc/rust-web-doc/html/alloc/collections/btree/set/struct.Intersection.html
84 -rw-r--r--···0·root·········(0)·root·········(0)······512·2024-08-28·14:44:23.000000·./usr/share/doc/rust-web-doc/html/alloc/collections/btree/set/struct.IntoIter.html84 -rw-r--r--···0·root·········(0)·root·········(0)······512·2024-08-28·14:44:23.000000·./usr/share/doc/rust-web-doc/html/alloc/collections/btree/set/struct.IntoIter.html
85 -rw-r--r--···0·root·········(0)·root·········(0)······496·2024-08-28·14:44:23.000000·./usr/share/doc/rust-web-doc/html/alloc/collections/btree/set/struct.Iter.html85 -rw-r--r--···0·root·········(0)·root·········(0)······496·2024-08-28·14:44:23.000000·./usr/share/doc/rust-web-doc/html/alloc/collections/btree/set/struct.Iter.html
86 -rw-r--r--···0·root·········(0)·root·········(0)······500·2024-08-28·14:44:23.000000·./usr/share/doc/rust-web-doc/html/alloc/collections/btree/set/struct.Range.html86 -rw-r--r--···0·root·········(0)·root·········(0)······500·2024-08-28·14:44:23.000000·./usr/share/doc/rust-web-doc/html/alloc/collections/btree/set/struct.Range.html
87 -rw-r--r--···0·root·········(0)·root·········(0)······556·2024-08-28·14:44:23.000000·./usr/share/doc/rust-web-doc/html/alloc/collections/btree/set/struct.SymmetricDifference.html87 -rw-r--r--···0·root·········(0)·root·········(0)······556·2024-08-28·14:44:23.000000·./usr/share/doc/rust-web-doc/html/alloc/collections/btree/set/struct.SymmetricDifference.html
88 -rw-r--r--···0·root·········(0)·root·········(0)······500·2024-08-28·14:44:23.000000·./usr/share/doc/rust-web-doc/html/alloc/collections/btree/set/struct.Union.html88 -rw-r--r--···0·root·········(0)·root·········(0)······500·2024-08-28·14:44:23.000000·./usr/share/doc/rust-web-doc/html/alloc/collections/btree/set/struct.Union.html
89 drwxr-xr-x···0·root·········(0)·root·········(0)········0·2024-08-28·14:44:23.000000·./usr/share/doc/rust-web-doc/html/alloc/collections/btree_map/89 drwxr-xr-x···0·root·········(0)·root·········(0)········0·2024-08-28·14:44:23.000000·./usr/share/doc/rust-web-doc/html/alloc/collections/btree_map/
90 -rw-r--r--···0·root·········(0)·root·········(0)····38707·2024-08-28·14:44:23.000000·./usr/share/doc/rust-web-doc/html/alloc/collections/btree_map/enum.Entry.html90 -rw-r--r--···0·root·········(0)·root·········(0)····40699·2024-08-28·14:44:23.000000·./usr/share/doc/rust-web-doc/html/alloc/collections/btree_map/enum.Entry.html
91 -rw-r--r--···0·root·········(0)·root·········(0)····11206·2024-08-28·14:44:23.000000·./usr/share/doc/rust-web-doc/html/alloc/collections/btree_map/index.html91 -rw-r--r--···0·root·········(0)·root·········(0)····11206·2024-08-28·14:44:23.000000·./usr/share/doc/rust-web-doc/html/alloc/collections/btree_map/index.html
92 -rw-r--r--···0·root·········(0)·root·········(0)······277·2024-08-28·14:44:23.000000·./usr/share/doc/rust-web-doc/html/alloc/collections/btree_map/sidebar-items1.78.0.js92 -rw-r--r--···0·root·········(0)·root·········(0)······277·2024-08-28·14:44:23.000000·./usr/share/doc/rust-web-doc/html/alloc/collections/btree_map/sidebar-items1.78.0.js
93 -rw-r--r--···0·root·········(0)·root·········(0)···202416·2024-08-28·14:44:23.000000·./usr/share/doc/rust-web-doc/html/alloc/collections/btree_map/struct.BTreeMap.html93 -rw-r--r--···0·root·········(0)·root·········(0)···212304·2024-08-28·14:44:23.000000·./usr/share/doc/rust-web-doc/html/alloc/collections/btree_map/struct.BTreeMap.html
94 -rw-r--r--···0·root·········(0)·root·········(0)····32520·2024-08-28·14:44:23.000000·./usr/share/doc/rust-web-doc/html/alloc/collections/btree_map/struct.Cursor.html94 -rw-r--r--···0·root·········(0)·root·········(0)····34464·2024-08-28·14:44:23.000000·./usr/share/doc/rust-web-doc/html/alloc/collections/btree_map/struct.Cursor.html
95 -rw-r--r--···0·root·········(0)·root·········(0)····40536·2024-08-28·14:44:23.000000·./usr/share/doc/rust-web-doc/html/alloc/collections/btree_map/struct.CursorMut.html95 -rw-r--r--···0·root·········(0)·root·········(0)····42576·2024-08-28·14:44:23.000000·./usr/share/doc/rust-web-doc/html/alloc/collections/btree_map/struct.CursorMut.html
96 -rw-r--r--···0·root·········(0)·root·········(0)····39724·2024-08-28·14:44:23.000000·./usr/share/doc/rust-web-doc/html/alloc/collections/btree_map/struct.CursorMutKey.html96 -rw-r--r--···0·root·········(0)·root·········(0)····41764·2024-08-28·14:44:23.000000·./usr/share/doc/rust-web-doc/html/alloc/collections/btree_map/struct.CursorMutKey.html
97 -rw-r--r--···0·root·········(0)·root·········(0)···134595·2024-08-28·14:44:23.000000·./usr/share/doc/rust-web-doc/html/alloc/collections/btree_map/struct.ExtractIf.html97 -rw-r--r--···0·root·········(0)·root·········(0)···150675·2024-08-28·14:44:23.000000·./usr/share/doc/rust-web-doc/html/alloc/collections/btree_map/struct.ExtractIf.html
98 -rw-r--r--···0·root·········(0)·root·········(0)···150904·2024-08-28·14:44:23.000000·./usr/share/doc/rust-web-doc/html/alloc/collections/btree_map/struct.IntoIter.html98 -rw-r--r--···0·root·········(0)·root·········(0)···168736·2024-08-28·14:44:23.000000·./usr/share/doc/rust-web-doc/html/alloc/collections/btree_map/struct.IntoIter.html
99 -rw-r--r--···0·root·········(0)·root·········(0)···152747·2024-08-28·14:44:23.000000·./usr/share/doc/rust-web-doc/html/alloc/collections/btree_map/struct.IntoKeys.html99 -rw-r--r--···0·root·········(0)·root·········(0)···170483·2024-08-28·14:44:23.000000·./usr/share/doc/rust-web-doc/html/alloc/collections/btree_map/struct.IntoKeys.html
100 -rw-r--r--···0·root·········(0)·root·········(0)···151269·2024-08-28·14:44:23.000000·./usr/share/doc/rust-web-doc/html/alloc/collections/btree_map/struct.IntoValues.html100 -rw-r--r--···0·root·········(0)·root·········(0)···168813·2024-08-28·14:44:23.000000·./usr/share/doc/rust-web-doc/html/alloc/collections/btree_map/struct.IntoValues.html
101 -rw-r--r--···0·root·········(0)·root·········(0)···153811·2024-08-28·14:44:23.000000·./usr/share/doc/rust-web-doc/html/alloc/collections/btree_map/struct.Iter.html101 -rw-r--r--···0·root·········(0)·root·········(0)···171955·2024-08-28·14:44:23.000000·./usr/share/doc/rust-web-doc/html/alloc/collections/btree_map/struct.Iter.html
102 -rw-r--r--···0·root·········(0)·root·········(0)···148637·2024-08-28·14:44:23.000000·./usr/share/doc/rust-web-doc/html/alloc/collections/btree_map/struct.IterMut.html102 -rw-r--r--···0·root·········(0)·root·········(0)···166373·2024-08-28·14:44:23.000000·./usr/share/doc/rust-web-doc/html/alloc/collections/btree_map/struct.IterMut.html
103 -rw-r--r--···0·root·········(0)·root·········(0)···153007·2024-08-28·14:44:23.000000·./usr/share/doc/rust-web-doc/html/alloc/collections/btree_map/struct.Keys.html103 -rw-r--r--···0·root·········(0)·root·········(0)···170959·2024-08-28·14:44:23.000000·./usr/share/doc/rust-web-doc/html/alloc/collections/btree_map/struct.Keys.html
104 -rw-r--r--···0·root·········(0)·root·········(0)····39521·2024-08-28·14:44:23.000000·./usr/share/doc/rust-web-doc/html/alloc/collections/btree_map/struct.OccupiedEntry.html104 -rw-r--r--···0·root·········(0)·root·········(0)····41273·2024-08-28·14:44:23.000000·./usr/share/doc/rust-web-doc/html/alloc/collections/btree_map/struct.OccupiedEntry.html
105 -rw-r--r--···0·root·········(0)·root·········(0)····33958·2024-08-28·14:44:23.000000·./usr/share/doc/rust-web-doc/html/alloc/collections/btree_map/struct.OccupiedError.html105 -rw-r--r--···0·root·········(0)·root·········(0)····36094·2024-08-28·14:44:23.000000·./usr/share/doc/rust-web-doc/html/alloc/collections/btree_map/struct.OccupiedError.html
106 -rw-r--r--···0·root·········(0)·root·········(0)···152603·2024-08-28·14:44:23.000000·./usr/share/doc/rust-web-doc/html/alloc/collections/btree_map/struct.Range.html106 -rw-r--r--···0·root·········(0)·root·········(0)···170315·2024-08-28·14:44:23.000000·./usr/share/doc/rust-web-doc/html/alloc/collections/btree_map/struct.Range.html
107 -rw-r--r--···0·root·········(0)·root·········(0)···145304·2024-08-28·14:44:23.000000·./usr/share/doc/rust-web-doc/html/alloc/collections/btree_map/struct.RangeMut.html107 -rw-r--r--···0·root·········(0)·root·········(0)···162560·2024-08-28·14:44:23.000000·./usr/share/doc/rust-web-doc/html/alloc/collections/btree_map/struct.RangeMut.html
108 -rw-r--r--···0·root·········(0)·root·········(0)····36485·2024-08-28·14:44:23.000000·./usr/share/doc/rust-web-doc/html/alloc/collections/btree_map/struct.UnorderedKeyError.html108 -rw-r--r--···0·root·········(0)·root·········(0)····38621·2024-08-28·14:44:23.000000·./usr/share/doc/rust-web-doc/html/alloc/collections/btree_map/struct.UnorderedKeyError.html
109 -rw-r--r--···0·root·········(0)·root·········(0)····29936·2024-08-28·14:44:23.000000·./usr/share/doc/rust-web-doc/html/alloc/collections/btree_map/struct.VacantEntry.html109 -rw-r--r--···0·root·········(0)·root·········(0)····31664·2024-08-28·14:44:23.000000·./usr/share/doc/rust-web-doc/html/alloc/collections/btree_map/struct.VacantEntry.html
110 -rw-r--r--···0·root·········(0)·root·········(0)···151225·2024-08-28·14:44:23.000000·./usr/share/doc/rust-web-doc/html/alloc/collections/btree_map/struct.Values.html110 -rw-r--r--···0·root·········(0)·root·········(0)···168889·2024-08-28·14:44:23.000000·./usr/share/doc/rust-web-doc/html/alloc/collections/btree_map/struct.Values.html
111 -rw-r--r--···0·root·········(0)·root·········(0)···146827·2024-08-28·14:44:23.000000·./usr/share/doc/rust-web-doc/html/alloc/collections/btree_map/struct.ValuesMut.html111 -rw-r--r--···0·root·········(0)·root·········(0)···164035·2024-08-28·14:44:23.000000·./usr/share/doc/rust-web-doc/html/alloc/collections/btree_map/struct.ValuesMut.html
112 drwxr-xr-x···0·root·········(0)·root·········(0)········0·2024-08-28·14:44:23.000000·./usr/share/doc/rust-web-doc/html/alloc/collections/btree_set/112 drwxr-xr-x···0·root·········(0)·root·········(0)········0·2024-08-28·14:44:23.000000·./usr/share/doc/rust-web-doc/html/alloc/collections/btree_set/
113 -rw-r--r--···0·root·········(0)·root·········(0)·····7246·2024-08-28·14:44:23.000000·./usr/share/doc/rust-web-doc/html/alloc/collections/btree_set/index.html113 -rw-r--r--···0·root·········(0)·root·········(0)·····7246·2024-08-28·14:44:23.000000·./usr/share/doc/rust-web-doc/html/alloc/collections/btree_set/index.html
114 -rw-r--r--···0·root·········(0)·root·········(0)······143·2024-08-28·14:44:23.000000·./usr/share/doc/rust-web-doc/html/alloc/collections/btree_set/sidebar-items1.78.0.js114 -rw-r--r--···0·root·········(0)·root·········(0)······143·2024-08-28·14:44:23.000000·./usr/share/doc/rust-web-doc/html/alloc/collections/btree_set/sidebar-items1.78.0.js
115 -rw-r--r--···0·root·········(0)·root·········(0)···156736·2024-08-28·14:44:23.000000·./usr/share/doc/rust-web-doc/html/alloc/collections/btree_set/struct.BTreeSet.html115 -rw-r--r--···0·root·········(0)·root·········(0)···164704·2024-08-28·14:44:23.000000·./usr/share/doc/rust-web-doc/html/alloc/collections/btree_set/struct.BTreeSet.html
116 -rw-r--r--···0·root·········(0)·root·········(0)···136107·2024-08-28·14:44:23.000000·./usr/share/doc/rust-web-doc/html/alloc/collections/btree_set/struct.Difference.html116 -rw-r--r--···0·root·········(0)·root·········(0)···152187·2024-08-28·14:44:23.000000·./usr/share/doc/rust-web-doc/html/alloc/collections/btree_set/struct.Difference.html
117 -rw-r--r--···0·root·········(0)·root·········(0)···133979·2024-08-28·14:44:23.000000·./usr/share/doc/rust-web-doc/html/alloc/collections/btree_set/struct.ExtractIf.html117 -rw-r--r--···0·root·········(0)·root·········(0)···149891·2024-08-28·14:44:23.000000·./usr/share/doc/rust-web-doc/html/alloc/collections/btree_set/struct.ExtractIf.html
118 -rw-r--r--···0·root·········(0)·root·········(0)···136245·2024-08-28·14:44:23.000000·./usr/share/doc/rust-web-doc/html/alloc/collections/btree_set/struct.Intersection.html118 -rw-r--r--···0·root·········(0)·root·········(0)···152325·2024-08-28·14:44:23.000000·./usr/share/doc/rust-web-doc/html/alloc/collections/btree_set/struct.Intersection.html
119 -rw-r--r--···0·root·········(0)·root·········(0)···148228·2024-08-28·14:44:23.000000·./usr/share/doc/rust-web-doc/html/alloc/collections/btree_set/struct.IntoIter.html119 -rw-r--r--···0·root·········(0)·root·········(0)···165772·2024-08-28·14:44:23.000000·./usr/share/doc/rust-web-doc/html/alloc/collections/btree_set/struct.IntoIter.html
120 -rw-r--r--···0·root·········(0)·root·········(0)···152263·2024-08-28·14:44:23.000000·./usr/share/doc/rust-web-doc/html/alloc/collections/btree_set/struct.Iter.html120 -rw-r--r--···0·root·········(0)·root·········(0)···170119·2024-08-28·14:44:23.000000·./usr/share/doc/rust-web-doc/html/alloc/collections/btree_set/struct.Iter.html
121 -rw-r--r--···0·root·········(0)·root·········(0)···151095·2024-08-28·14:44:23.000000·./usr/share/doc/rust-web-doc/html/alloc/collections/btree_set/struct.Range.html121 -rw-r--r--···0·root·········(0)·root·········(0)···168519·2024-08-28·14:44:23.000000·./usr/share/doc/rust-web-doc/html/alloc/collections/btree_set/struct.Range.html
122 -rw-r--r--···0·root·········(0)·root·········(0)···134845·2024-08-28·14:44:23.000000·./usr/share/doc/rust-web-doc/html/alloc/collections/btree_set/struct.SymmetricDifference.html122 -rw-r--r--···0·root·········(0)·root·········(0)···150709·2024-08-28·14:44:23.000000·./usr/share/doc/rust-web-doc/html/alloc/collections/btree_set/struct.SymmetricDifference.html
123 -rw-r--r--···0·root·········(0)·root·········(0)···133874·2024-08-28·14:44:23.000000·./usr/share/doc/rust-web-doc/html/alloc/collections/btree_set/struct.Union.html123 -rw-r--r--···0·root·········(0)·root·········(0)···149738·2024-08-28·14:44:23.000000·./usr/share/doc/rust-web-doc/html/alloc/collections/btree_set/struct.Union.html
124 -rw-r--r--···0·root·········(0)·root·········(0)····33657·2024-08-28·14:44:23.000000·./usr/share/doc/rust-web-doc/html/alloc/collections/enum.TryReserveErrorKind.html124 -rw-r--r--···0·root·········(0)·root·········(0)····35655·2024-08-28·14:44:23.000000·./usr/share/doc/rust-web-doc/html/alloc/collections/enum.TryReserveErrorKind.html
125 -rw-r--r--···0·root·········(0)·root·········(0)·····7964·2024-08-28·14:44:23.000000·./usr/share/doc/rust-web-doc/html/alloc/collections/index.html125 -rw-r--r--···0·root·········(0)·root·········(0)·····7964·2024-08-28·14:44:23.000000·./usr/share/doc/rust-web-doc/html/alloc/collections/index.html
126 drwxr-xr-x···0·root·········(0)·root·········(0)········0·2024-08-28·14:44:23.000000·./usr/share/doc/rust-web-doc/html/alloc/collections/linked_list/126 drwxr-xr-x···0·root·········(0)·root·········(0)········0·2024-08-28·14:44:23.000000·./usr/share/doc/rust-web-doc/html/alloc/collections/linked_list/
127 -rw-r--r--···0·root·········(0)·root·········(0)·····7262·2024-08-28·14:44:23.000000·./usr/share/doc/rust-web-doc/html/alloc/collections/linked_list/index.html127 -rw-r--r--···0·root·········(0)·root·········(0)·····7262·2024-08-28·14:44:23.000000·./usr/share/doc/rust-web-doc/html/alloc/collections/linked_list/index.html
128 -rw-r--r--···0·root·········(0)·root·········(0)······110·2024-08-28·14:44:23.000000·./usr/share/doc/rust-web-doc/html/alloc/collections/linked_list/sidebar-items1.78.0.js128 -rw-r--r--···0·root·········(0)·root·········(0)······110·2024-08-28·14:44:23.000000·./usr/share/doc/rust-web-doc/html/alloc/collections/linked_list/sidebar-items1.78.0.js
129 -rw-r--r--···0·root·········(0)·root·········(0)····36916·2024-08-28·14:44:23.000000·./usr/share/doc/rust-web-doc/html/alloc/collections/linked_list/struct.Cursor.html129 -rw-r--r--···0·root·········(0)·root·········(0)····38860·2024-08-28·14:44:23.000000·./usr/share/doc/rust-web-doc/html/alloc/collections/linked_list/struct.Cursor.html
130 -rw-r--r--···0·root·········(0)·root·········(0)····52206·2024-08-28·14:44:23.000000·./usr/share/doc/rust-web-doc/html/alloc/collections/linked_list/struct.CursorMut.html130 -rw-r--r--···0·root·········(0)·root·········(0)····54150·2024-08-28·14:44:23.000000·./usr/share/doc/rust-web-doc/html/alloc/collections/linked_list/struct.CursorMut.html
131 -rw-r--r--···0·root·········(0)·root·········(0)···131589·2024-08-28·14:44:23.000000·./usr/share/doc/rust-web-doc/html/alloc/collections/linked_list/struct.ExtractIf.html131 -rw-r--r--···0·root·········(0)·root·········(0)···147117·2024-08-28·14:44:23.000000·./usr/share/doc/rust-web-doc/html/alloc/collections/linked_list/struct.ExtractIf.html
132 -rw-r--r--···0·root·········(0)·root·········(0)···152977·2024-08-28·14:44:23.000000·./usr/share/doc/rust-web-doc/html/alloc/collections/linked_list/struct.IntoIter.html132 -rw-r--r--···0·root·········(0)·root·········(0)···170689·2024-08-28·14:44:23.000000·./usr/share/doc/rust-web-doc/html/alloc/collections/linked_list/struct.IntoIter.html
133 -rw-r--r--···0·root·········(0)·root·········(0)···150367·2024-08-28·14:44:23.000000·./usr/share/doc/rust-web-doc/html/alloc/collections/linked_list/struct.Iter.html133 -rw-r--r--···0·root·········(0)·root·········(0)···167959·2024-08-28·14:44:23.000000·./usr/share/doc/rust-web-doc/html/alloc/collections/linked_list/struct.Iter.html
134 -rw-r--r--···0·root·········(0)·root·········(0)···144852·2024-08-28·14:44:23.000000·./usr/share/doc/rust-web-doc/html/alloc/collections/linked_list/struct.IterMut.html134 -rw-r--r--···0·root·········(0)·root·········(0)···162084·2024-08-28·14:44:23.000000·./usr/share/doc/rust-web-doc/html/alloc/collections/linked_list/struct.IterMut.html
135 -rw-r--r--···0·root·········(0)·root·········(0)···124914·2024-08-28·14:44:23.000000·./usr/share/doc/rust-web-doc/html/alloc/collections/linked_list/struct.LinkedList.html135 -rw-r--r--···0·root·········(0)·root·········(0)···130770·2024-08-28·14:44:23.000000·./usr/share/doc/rust-web-doc/html/alloc/collections/linked_list/struct.LinkedList.html
136 -rw-r--r--···0·root·········(0)·root·········(0)······157·2024-08-28·14:44:23.000000·./usr/share/doc/rust-web-doc/html/alloc/collections/sidebar-items1.78.0.js136 -rw-r--r--···0·root·········(0)·root·········(0)······157·2024-08-28·14:44:23.000000·./usr/share/doc/rust-web-doc/html/alloc/collections/sidebar-items1.78.0.js
137 -rw-r--r--···0·root·········(0)·root·········(0)····38061·2024-08-28·14:44:23.000000·./usr/share/doc/rust-web-doc/html/alloc/collections/struct.TryReserveError.html137 -rw-r--r--···0·root·········(0)·root·········(0)····40572·2024-08-28·14:44:23.000000·./usr/share/doc/rust-web-doc/html/alloc/collections/struct.TryReserveError.html
138 drwxr-xr-x···0·root·········(0)·root·········(0)········0·2024-08-28·14:44:23.000000·./usr/share/doc/rust-web-doc/html/alloc/collections/vec_deque/138 drwxr-xr-x···0·root·········(0)·root·········(0)········0·2024-08-28·14:44:23.000000·./usr/share/doc/rust-web-doc/html/alloc/collections/vec_deque/
139 drwxr-xr-x···0·root·········(0)·root·········(0)········0·2024-08-28·14:44:23.000000·./usr/share/doc/rust-web-doc/html/alloc/collections/vec_deque/drain/139 drwxr-xr-x···0·root·········(0)·root·········(0)········0·2024-08-28·14:44:23.000000·./usr/share/doc/rust-web-doc/html/alloc/collections/vec_deque/drain/
140 -rw-r--r--···0·root·········(0)·root·········(0)······500·2024-08-28·14:44:23.000000·./usr/share/doc/rust-web-doc/html/alloc/collections/vec_deque/drain/struct.Drain.html140 -rw-r--r--···0·root·········(0)·root·········(0)······500·2024-08-28·14:44:23.000000·./usr/share/doc/rust-web-doc/html/alloc/collections/vec_deque/drain/struct.Drain.html
141 -rw-r--r--···0·root·········(0)·root·········(0)·····6447·2024-08-28·14:44:23.000000·./usr/share/doc/rust-web-doc/html/alloc/collections/vec_deque/index.html141 -rw-r--r--···0·root·········(0)·root·········(0)·····6447·2024-08-28·14:44:23.000000·./usr/share/doc/rust-web-doc/html/alloc/collections/vec_deque/index.html
142 drwxr-xr-x···0·root·········(0)·root·········(0)········0·2024-08-28·14:44:23.000000·./usr/share/doc/rust-web-doc/html/alloc/collections/vec_deque/into_iter/142 drwxr-xr-x···0·root·········(0)·root·········(0)········0·2024-08-28·14:44:23.000000·./usr/share/doc/rust-web-doc/html/alloc/collections/vec_deque/into_iter/
143 -rw-r--r--···0·root·········(0)·root·········(0)······512·2024-08-28·14:44:23.000000·./usr/share/doc/rust-web-doc/html/alloc/collections/vec_deque/into_iter/struct.IntoIter.html143 -rw-r--r--···0·root·········(0)·root·········(0)······512·2024-08-28·14:44:23.000000·./usr/share/doc/rust-web-doc/html/alloc/collections/vec_deque/into_iter/struct.IntoIter.html
144 drwxr-xr-x···0·root·········(0)·root·········(0)········0·2024-08-28·14:44:23.000000·./usr/share/doc/rust-web-doc/html/alloc/collections/vec_deque/iter/144 drwxr-xr-x···0·root·········(0)·root·········(0)········0·2024-08-28·14:44:23.000000·./usr/share/doc/rust-web-doc/html/alloc/collections/vec_deque/iter/
145 -rw-r--r--···0·root·········(0)·root·········(0)······496·2024-08-28·14:44:23.000000·./usr/share/doc/rust-web-doc/html/alloc/collections/vec_deque/iter/struct.Iter.html145 -rw-r--r--···0·root·········(0)·root·········(0)······496·2024-08-28·14:44:23.000000·./usr/share/doc/rust-web-doc/html/alloc/collections/vec_deque/iter/struct.Iter.html
146 drwxr-xr-x···0·root·········(0)·root·········(0)········0·2024-08-28·14:44:23.000000·./usr/share/doc/rust-web-doc/html/alloc/collections/vec_deque/iter_mut/146 drwxr-xr-x···0·root·········(0)·root·········(0)········0·2024-08-28·14:44:23.000000·./usr/share/doc/rust-web-doc/html/alloc/collections/vec_deque/iter_mut/
147 -rw-r--r--···0·root·········(0)·root·········(0)······508·2024-08-28·14:44:23.000000·./usr/share/doc/rust-web-doc/html/alloc/collections/vec_deque/iter_mut/struct.IterMut.html147 -rw-r--r--···0·root·········(0)·root·········(0)······508·2024-08-28·14:44:23.000000·./usr/share/doc/rust-web-doc/html/alloc/collections/vec_deque/iter_mut/struct.IterMut.html
148 -rw-r--r--···0·root·········(0)·root·········(0)·······83·2024-08-28·14:44:23.000000·./usr/share/doc/rust-web-doc/html/alloc/collections/vec_deque/sidebar-items1.78.0.js148 -rw-r--r--···0·root·········(0)·root·········(0)·······83·2024-08-28·14:44:23.000000·./usr/share/doc/rust-web-doc/html/alloc/collections/vec_deque/sidebar-items1.78.0.js
149 -rw-r--r--···0·root·········(0)·root·········(0)···149446·2024-08-28·14:44:23.000000·./usr/share/doc/rust-web-doc/html/alloc/collections/vec_deque/struct.Drain.html149 -rw-r--r--···0·root·········(0)·root·········(0)···166774·2024-08-28·14:44:23.000000·./usr/share/doc/rust-web-doc/html/alloc/collections/vec_deque/struct.Drain.html
150 -rw-r--r--···0·root·········(0)·root·········(0)···150761·2024-08-28·14:44:23.000000·./usr/share/doc/rust-web-doc/html/alloc/collections/vec_deque/struct.IntoIter.html150 -rw-r--r--···0·root·········(0)·root·········(0)···168041·2024-08-28·14:44:23.000000·./usr/share/doc/rust-web-doc/html/alloc/collections/vec_deque/struct.IntoIter.html
151 -rw-r--r--···0·root·········(0)·root·········(0)···148399·2024-08-28·14:44:23.000000·./usr/share/doc/rust-web-doc/html/alloc/collections/vec_deque/struct.Iter.html151 -rw-r--r--···0·root·········(0)·root·········(0)···165679·2024-08-28·14:44:23.000000·./usr/share/doc/rust-web-doc/html/alloc/collections/vec_deque/struct.Iter.html
152 -rw-r--r--···0·root·········(0)·root·········(0)···143470·2024-08-28·14:44:23.000000·./usr/share/doc/rust-web-doc/html/alloc/collections/vec_deque/struct.IterMut.html152 -rw-r--r--···0·root·········(0)·root·········(0)···160366·2024-08-28·14:44:23.000000·./usr/share/doc/rust-web-doc/html/alloc/collections/vec_deque/struct.IterMut.html
153 -rw-r--r--···0·root·········(0)·root·········(0)···231680·2024-08-28·14:44:23.000000·./usr/share/doc/rust-web-doc/html/alloc/collections/vec_deque/struct.VecDeque.html153 -rw-r--r--···0·root·········(0)·root·········(0)···241064·2024-08-28·14:44:23.000000·./usr/share/doc/rust-web-doc/html/alloc/collections/vec_deque/struct.VecDeque.html
154 drwxr-xr-x···0·root·········(0)·root·········(0)········0·2024-08-28·14:44:23.000000·./usr/share/doc/rust-web-doc/html/alloc/ffi/154 drwxr-xr-x···0·root·········(0)·root·········(0)········0·2024-08-28·14:44:23.000000·./usr/share/doc/rust-web-doc/html/alloc/ffi/
155 drwxr-xr-x···0·root·········(0)·root·········(0)········0·2024-08-28·14:44:23.000000·./usr/share/doc/rust-web-doc/html/alloc/ffi/c_str/155 drwxr-xr-x···0·root·········(0)·root·········(0)········0·2024-08-28·14:44:23.000000·./usr/share/doc/rust-web-doc/html/alloc/ffi/c_str/
Max diff block lines reached; 89786/121534 bytes (73.88%) of diff not shown.
7.43 KB
./usr/share/doc/rust-web-doc/html/alloc/alloc/fn.alloc.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="Allocate·memory·with·the·global·allocator."><title>alloc·in·alloc::alloc·-·Rust</title><script>·if·(window.location.protocol·!==·"file:")·document.write(`<link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/SourceSerif4-Regular-46f98efaafac5295.ttf.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/FiraSans-Regular-018c141bf0843ffd.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/FiraSans-Medium-8f9a781e4970d388.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/SourceCodePro-Regular-562dcc5011b6de7d.ttf.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/SourceCodePro-Semibold-d899c5a5c4aeb14a.ttf.woff2">`)</script><link·rel="stylesheet"·href="../../static.files/normalize-76eba96aa4d2e634.css"><link·rel="stylesheet"·href="../../static.files/rustdoc-35f9e32502181f1e.css"><meta·name="rustdoc-vars"·data-root-path="../../"·data-static-root-path="../../static.files/"·data-current-crate="alloc"·data-themes=""·data-resource-suffix="1.78.0"·data-rustdoc-version="1.78.0"·data-channel="1.78.0"·data-search-js="search-42d8da7a6b9792c2.js"·data-settings-js="settings-4313503d2e1961c2.js"·><script·src="../../static.files/storage-4c98445ec4002617.js"></script><script·defer·src="sidebar-items1.78.0.js"></script><script·defer·src="../../static.files/main-12cf3b4f4f9dc36d.js"></script><noscript><link·rel="stylesheet"·href="../../static.files/noscript-04d5337699b92874.css"></noscript><link·rel="alternate·icon"·type="image/png"·href="../../static.files/favicon-16x16-8b506e7a72182f1c.png"><link·rel="alternate·icon"·type="image/png"·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.78.0</span></h2></div><div·class="sidebar-elems"><h2><a·href="index.html">In·alloc::alloc</a></h2></div></nav><div·class="sidebar-resizer"></div>1 <!DOCTYPE·html><html·lang="en"><head><meta·charset="utf-8"><meta·name="viewport"·content="width=device-width,·initial-scale=1.0"><meta·name="generator"·content="rustdoc"><meta·name="description"·content="Allocate·memory·with·the·global·allocator."><title>alloc·in·alloc::alloc·-·Rust</title><script>·if·(window.location.protocol·!==·"file:")·document.write(`<link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/SourceSerif4-Regular-46f98efaafac5295.ttf.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/FiraSans-Regular-018c141bf0843ffd.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/FiraSans-Medium-8f9a781e4970d388.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/SourceCodePro-Regular-562dcc5011b6de7d.ttf.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/SourceCodePro-Semibold-d899c5a5c4aeb14a.ttf.woff2">`)</script><link·rel="stylesheet"·href="../../static.files/normalize-76eba96aa4d2e634.css"><link·rel="stylesheet"·href="../../static.files/rustdoc-35f9e32502181f1e.css"><meta·name="rustdoc-vars"·data-root-path="../../"·data-static-root-path="../../static.files/"·data-current-crate="alloc"·data-themes=""·data-resource-suffix="1.78.0"·data-rustdoc-version="1.78.0"·data-channel="1.78.0"·data-search-js="search-42d8da7a6b9792c2.js"·data-settings-js="settings-4313503d2e1961c2.js"·><script·src="../../static.files/storage-4c98445ec4002617.js"></script><script·defer·src="sidebar-items1.78.0.js"></script><script·defer·src="../../static.files/main-12cf3b4f4f9dc36d.js"></script><noscript><link·rel="stylesheet"·href="../../static.files/noscript-04d5337699b92874.css"></noscript><link·rel="alternate·icon"·type="image/png"·href="../../static.files/favicon-16x16-8b506e7a72182f1c.png"><link·rel="alternate·icon"·type="image/png"·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.78.0</span></h2></div><div·class="sidebar-elems"><h2><a·href="index.html">In·alloc::alloc</a></h2></div></nav><div·class="sidebar-resizer"></div>
2 ····<main><div·class="width-limiter"><nav·class="sub"><form·class="search-form"><span></span><div·id="sidebar-button"·tabindex="-1"><a·href="../../alloc/all.html"·title="show·sidebar"></a></div><input·class="search-input"·name="search"·aria-label="Run·search·in·the·documentation"·autocomplete="off"·spellcheck="false"·placeholder="Click·or·press·‘S’·to·search,·‘?’·for·more·options…"·type="search"><div·id="help-button"·tabindex="-1"><a·href="../../help.html"·title="help">?</a></div><div·id="settings-menu"·tabindex="-1"><a·href="../../settings.html"·title="settings"><img·width="22"·height="22"·alt="Change·settings"·src="../../static.files/wheel-7b819b6101059cd0.svg"></a></div></form></nav><section·id="main-content"·class="content"><div·class="main-heading"><h1>Function·<a·href="../index.html">alloc</a>::<wbr><a·href="index.html">alloc</a>::<wbr><a·class="fn"·href="#">alloc</a><button·id="copy-path"·title="Copy·item·path·to·clipboard"><img·src="../../static.files/clipboard-7571035ce49a181d.svg"·width="19"·height="18"·alt="Copy·item·path"></button></h1><span·class="out-of-band"><span·class="since"·title="Stable·since·Rust·version·1.28.0">1.28.0</span>···<a·class="src"·href="../../src/alloc/alloc.rs.html#94-102">source</a>···<button·id="toggle-all-docs"·title="collapse·all·docs">[<span>&#x2212;</span>]</button></span></div><pre·class="rust·item-decl"><code>pub·unsafe·fn·alloc(layout:·<a·class="struct"·href="struct.Layout.html"·title="struct·alloc::alloc::Layout">Layout</a>)·-&gt;·<a·class="primitive"·href="../../core/primitive.pointer.html">*mut·</a><a·class="primitive"·href="../../core/primitive.u8.html">u8</a></code></pre><details·class="toggle·top-doc"·open><summary·class="hideme"><span>Expand·description</span></summary><div·class="docblock"><p>Allocate·memory·with·the·global·allocator.</p>2 ····<main><div·class="width-limiter"><nav·class="sub"><form·class="search-form"><span></span><div·id="sidebar-button"·tabindex="-1"><a·href="../../alloc/all.html"·title="show·sidebar"></a></div><input·class="search-input"·name="search"·aria-label="Run·search·in·the·documentation"·autocomplete="off"·spellcheck="false"·placeholder="Click·or·press·‘S’·to·search,·‘?’·for·more·options…"·type="search"><div·id="help-button"·tabindex="-1"><a·href="../../help.html"·title="help">?</a></div><div·id="settings-menu"·tabindex="-1"><a·href="../../settings.html"·title="settings"><img·width="22"·height="22"·alt="Change·settings"·src="../../static.files/wheel-7b819b6101059cd0.svg"></a></div></form></nav><section·id="main-content"·class="content"><div·class="main-heading"><h1>Function·<a·href="../index.html">alloc</a>::<wbr><a·href="index.html">alloc</a>::<wbr><a·class="fn"·href="#">alloc</a><button·id="copy-path"·title="Copy·item·path·to·clipboard"><img·src="../../static.files/clipboard-7571035ce49a181d.svg"·width="19"·height="18"·alt="Copy·item·path"></button></h1><span·class="out-of-band"><span·class="since"·title="Stable·since·Rust·version·1.28.0">1.28.0</span>···<a·class="src"·href="../../src/alloc/alloc.rs.html#94-102">source</a>···<button·id="toggle-all-docs"·title="collapse·all·docs">[<span>&#x2212;</span>]</button></span></div><pre·class="rust·item-decl"><code>pub·unsafe·fn·alloc(layout:·<a·class="struct"·href="struct.Layout.html"·title="struct·alloc::alloc::Layout">Layout</a>)·-&gt;·<a·class="primitive"·href="https://doc.rust-lang.org/1.78.0/core/primitive.pointer.html">*mut·</a><a·class="primitive"·href="https://doc.rust-lang.org/1.78.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>Allocate·memory·with·the·global·allocator.</p>
3 <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>·method3 <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
4 of·the·allocator·registered·with·the·<code>#[global_allocator]</code>·attribute4 of·the·allocator·registered·with·the·<code>#[global_allocator]</code>·attribute
5 if·there·is·one,·or·the·<code>std</code>·crate’s·default.</p>5 if·there·is·one,·or·the·<code>std</code>·crate’s·default.</p>
6 <p>This·function·is·expected·to·be·deprecated·in·favor·of·the·<code>alloc</code>·method6 <p>This·function·is·expected·to·be·deprecated·in·favor·of·the·<code>alloc</code>·method
7 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 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>
8 <h2·id="safety"><a·class="doc-anchor"·href="#safety">§</a>Safety</h2>8 <h2·id="safety"><a·class="doc-anchor"·href="#safety">§</a>Safety</h2>
9 <p>See·<a·href="trait.GlobalAlloc.html#tymethod.alloc"·title="method·alloc::alloc::GlobalAlloc::alloc"><code>GlobalAlloc::alloc</code></a>.</p>9 <p>See·<a·href="trait.GlobalAlloc.html#tymethod.alloc"·title="method·alloc::alloc::GlobalAlloc::alloc"><code>GlobalAlloc::alloc</code></a>.</p>
7.58 KB
./usr/share/doc/rust-web-doc/html/alloc/alloc/fn.alloc_zeroed.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="Allocate·zero-initialized·memory·with·the·global·allocator."><title>alloc_zeroed·in·alloc::alloc·-·Rust</title><script>·if·(window.location.protocol·!==·"file:")·document.write(`<link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/SourceSerif4-Regular-46f98efaafac5295.ttf.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/FiraSans-Regular-018c141bf0843ffd.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/FiraSans-Medium-8f9a781e4970d388.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/SourceCodePro-Regular-562dcc5011b6de7d.ttf.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/SourceCodePro-Semibold-d899c5a5c4aeb14a.ttf.woff2">`)</script><link·rel="stylesheet"·href="../../static.files/normalize-76eba96aa4d2e634.css"><link·rel="stylesheet"·href="../../static.files/rustdoc-35f9e32502181f1e.css"><meta·name="rustdoc-vars"·data-root-path="../../"·data-static-root-path="../../static.files/"·data-current-crate="alloc"·data-themes=""·data-resource-suffix="1.78.0"·data-rustdoc-version="1.78.0"·data-channel="1.78.0"·data-search-js="search-42d8da7a6b9792c2.js"·data-settings-js="settings-4313503d2e1961c2.js"·><script·src="../../static.files/storage-4c98445ec4002617.js"></script><script·defer·src="sidebar-items1.78.0.js"></script><script·defer·src="../../static.files/main-12cf3b4f4f9dc36d.js"></script><noscript><link·rel="stylesheet"·href="../../static.files/noscript-04d5337699b92874.css"></noscript><link·rel="alternate·icon"·type="image/png"·href="../../static.files/favicon-16x16-8b506e7a72182f1c.png"><link·rel="alternate·icon"·type="image/png"·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.78.0</span></h2></div><div·class="sidebar-elems"><h2><a·href="index.html">In·alloc::alloc</a></h2></div></nav><div·class="sidebar-resizer"></div>1 <!DOCTYPE·html><html·lang="en"><head><meta·charset="utf-8"><meta·name="viewport"·content="width=device-width,·initial-scale=1.0"><meta·name="generator"·content="rustdoc"><meta·name="description"·content="Allocate·zero-initialized·memory·with·the·global·allocator."><title>alloc_zeroed·in·alloc::alloc·-·Rust</title><script>·if·(window.location.protocol·!==·"file:")·document.write(`<link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/SourceSerif4-Regular-46f98efaafac5295.ttf.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/FiraSans-Regular-018c141bf0843ffd.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/FiraSans-Medium-8f9a781e4970d388.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/SourceCodePro-Regular-562dcc5011b6de7d.ttf.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/SourceCodePro-Semibold-d899c5a5c4aeb14a.ttf.woff2">`)</script><link·rel="stylesheet"·href="../../static.files/normalize-76eba96aa4d2e634.css"><link·rel="stylesheet"·href="../../static.files/rustdoc-35f9e32502181f1e.css"><meta·name="rustdoc-vars"·data-root-path="../../"·data-static-root-path="../../static.files/"·data-current-crate="alloc"·data-themes=""·data-resource-suffix="1.78.0"·data-rustdoc-version="1.78.0"·data-channel="1.78.0"·data-search-js="search-42d8da7a6b9792c2.js"·data-settings-js="settings-4313503d2e1961c2.js"·><script·src="../../static.files/storage-4c98445ec4002617.js"></script><script·defer·src="sidebar-items1.78.0.js"></script><script·defer·src="../../static.files/main-12cf3b4f4f9dc36d.js"></script><noscript><link·rel="stylesheet"·href="../../static.files/noscript-04d5337699b92874.css"></noscript><link·rel="alternate·icon"·type="image/png"·href="../../static.files/favicon-16x16-8b506e7a72182f1c.png"><link·rel="alternate·icon"·type="image/png"·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.78.0</span></h2></div><div·class="sidebar-elems"><h2><a·href="index.html">In·alloc::alloc</a></h2></div></nav><div·class="sidebar-resizer"></div>
2 ····<main><div·class="width-limiter"><nav·class="sub"><form·class="search-form"><span></span><div·id="sidebar-button"·tabindex="-1"><a·href="../../alloc/all.html"·title="show·sidebar"></a></div><input·class="search-input"·name="search"·aria-label="Run·search·in·the·documentation"·autocomplete="off"·spellcheck="false"·placeholder="Click·or·press·‘S’·to·search,·‘?’·for·more·options…"·type="search"><div·id="help-button"·tabindex="-1"><a·href="../../help.html"·title="help">?</a></div><div·id="settings-menu"·tabindex="-1"><a·href="../../settings.html"·title="settings"><img·width="22"·height="22"·alt="Change·settings"·src="../../static.files/wheel-7b819b6101059cd0.svg"></a></div></form></nav><section·id="main-content"·class="content"><div·class="main-heading"><h1>Function·<a·href="../index.html">alloc</a>::<wbr><a·href="index.html">alloc</a>::<wbr><a·class="fn"·href="#">alloc_zeroed</a><button·id="copy-path"·title="Copy·item·path·to·clipboard"><img·src="../../static.files/clipboard-7571035ce49a181d.svg"·width="19"·height="18"·alt="Copy·item·path"></button></h1><span·class="out-of-band"><span·class="since"·title="Stable·since·Rust·version·1.28.0">1.28.0</span>···<a·class="src"·href="../../src/alloc/alloc.rs.html#171-173">source</a>···<button·id="toggle-all-docs"·title="collapse·all·docs">[<span>&#x2212;</span>]</button></span></div><pre·class="rust·item-decl"><code>pub·unsafe·fn·alloc_zeroed(layout:·<a·class="struct"·href="struct.Layout.html"·title="struct·alloc::alloc::Layout">Layout</a>)·-&gt;·<a·class="primitive"·href="../../core/primitive.pointer.html">*mut·</a><a·class="primitive"·href="../../core/primitive.u8.html">u8</a></code></pre><details·class="toggle·top-doc"·open><summary·class="hideme"><span>Expand·description</span></summary><div·class="docblock"><p>Allocate·zero-initialized·memory·with·the·global·allocator.</p>2 ····<main><div·class="width-limiter"><nav·class="sub"><form·class="search-form"><span></span><div·id="sidebar-button"·tabindex="-1"><a·href="../../alloc/all.html"·title="show·sidebar"></a></div><input·class="search-input"·name="search"·aria-label="Run·search·in·the·documentation"·autocomplete="off"·spellcheck="false"·placeholder="Click·or·press·‘S’·to·search,·‘?’·for·more·options…"·type="search"><div·id="help-button"·tabindex="-1"><a·href="../../help.html"·title="help">?</a></div><div·id="settings-menu"·tabindex="-1"><a·href="../../settings.html"·title="settings"><img·width="22"·height="22"·alt="Change·settings"·src="../../static.files/wheel-7b819b6101059cd0.svg"></a></div></form></nav><section·id="main-content"·class="content"><div·class="main-heading"><h1>Function·<a·href="../index.html">alloc</a>::<wbr><a·href="index.html">alloc</a>::<wbr><a·class="fn"·href="#">alloc_zeroed</a><button·id="copy-path"·title="Copy·item·path·to·clipboard"><img·src="../../static.files/clipboard-7571035ce49a181d.svg"·width="19"·height="18"·alt="Copy·item·path"></button></h1><span·class="out-of-band"><span·class="since"·title="Stable·since·Rust·version·1.28.0">1.28.0</span>···<a·class="src"·href="../../src/alloc/alloc.rs.html#171-173">source</a>···<button·id="toggle-all-docs"·title="collapse·all·docs">[<span>&#x2212;</span>]</button></span></div><pre·class="rust·item-decl"><code>pub·unsafe·fn·alloc_zeroed(layout:·<a·class="struct"·href="struct.Layout.html"·title="struct·alloc::alloc::Layout">Layout</a>)·-&gt;·<a·class="primitive"·href="https://doc.rust-lang.org/1.78.0/core/primitive.pointer.html">*mut·</a><a·class="primitive"·href="https://doc.rust-lang.org/1.78.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>Allocate·zero-initialized·memory·with·the·global·allocator.</p>
3 <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>·method3 <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
4 of·the·allocator·registered·with·the·<code>#[global_allocator]</code>·attribute4 of·the·allocator·registered·with·the·<code>#[global_allocator]</code>·attribute
5 if·there·is·one,·or·the·<code>std</code>·crate’s·default.</p>5 if·there·is·one,·or·the·<code>std</code>·crate’s·default.</p>
6 <p>This·function·is·expected·to·be·deprecated·in·favor·of·the·<code>alloc_zeroed</code>·method6 <p>This·function·is·expected·to·be·deprecated·in·favor·of·the·<code>alloc_zeroed</code>·method
7 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 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>
8 <h2·id="safety"><a·class="doc-anchor"·href="#safety">§</a>Safety</h2>8 <h2·id="safety"><a·class="doc-anchor"·href="#safety">§</a>Safety</h2>
9 <p>See·<a·href="trait.GlobalAlloc.html#method.alloc_zeroed"·title="method·alloc::alloc::GlobalAlloc::alloc_zeroed"><code>GlobalAlloc::alloc_zeroed</code></a>.</p>9 <p>See·<a·href="trait.GlobalAlloc.html#method.alloc_zeroed"·title="method·alloc::alloc::GlobalAlloc::alloc_zeroed"><code>GlobalAlloc::alloc_zeroed</code></a>.</p>
7.47 KB
./usr/share/doc/rust-web-doc/html/alloc/alloc/fn.dealloc.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="Deallocate·memory·with·the·global·allocator."><title>dealloc·in·alloc::alloc·-·Rust</title><script>·if·(window.location.protocol·!==·"file:")·document.write(`<link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/SourceSerif4-Regular-46f98efaafac5295.ttf.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/FiraSans-Regular-018c141bf0843ffd.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/FiraSans-Medium-8f9a781e4970d388.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/SourceCodePro-Regular-562dcc5011b6de7d.ttf.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/SourceCodePro-Semibold-d899c5a5c4aeb14a.ttf.woff2">`)</script><link·rel="stylesheet"·href="../../static.files/normalize-76eba96aa4d2e634.css"><link·rel="stylesheet"·href="../../static.files/rustdoc-35f9e32502181f1e.css"><meta·name="rustdoc-vars"·data-root-path="../../"·data-static-root-path="../../static.files/"·data-current-crate="alloc"·data-themes=""·data-resource-suffix="1.78.0"·data-rustdoc-version="1.78.0"·data-channel="1.78.0"·data-search-js="search-42d8da7a6b9792c2.js"·data-settings-js="settings-4313503d2e1961c2.js"·><script·src="../../static.files/storage-4c98445ec4002617.js"></script><script·defer·src="sidebar-items1.78.0.js"></script><script·defer·src="../../static.files/main-12cf3b4f4f9dc36d.js"></script><noscript><link·rel="stylesheet"·href="../../static.files/noscript-04d5337699b92874.css"></noscript><link·rel="alternate·icon"·type="image/png"·href="../../static.files/favicon-16x16-8b506e7a72182f1c.png"><link·rel="alternate·icon"·type="image/png"·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.78.0</span></h2></div><div·class="sidebar-elems"><h2><a·href="index.html">In·alloc::alloc</a></h2></div></nav><div·class="sidebar-resizer"></div>1 <!DOCTYPE·html><html·lang="en"><head><meta·charset="utf-8"><meta·name="viewport"·content="width=device-width,·initial-scale=1.0"><meta·name="generator"·content="rustdoc"><meta·name="description"·content="Deallocate·memory·with·the·global·allocator."><title>dealloc·in·alloc::alloc·-·Rust</title><script>·if·(window.location.protocol·!==·"file:")·document.write(`<link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/SourceSerif4-Regular-46f98efaafac5295.ttf.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/FiraSans-Regular-018c141bf0843ffd.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/FiraSans-Medium-8f9a781e4970d388.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/SourceCodePro-Regular-562dcc5011b6de7d.ttf.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/SourceCodePro-Semibold-d899c5a5c4aeb14a.ttf.woff2">`)</script><link·rel="stylesheet"·href="../../static.files/normalize-76eba96aa4d2e634.css"><link·rel="stylesheet"·href="../../static.files/rustdoc-35f9e32502181f1e.css"><meta·name="rustdoc-vars"·data-root-path="../../"·data-static-root-path="../../static.files/"·data-current-crate="alloc"·data-themes=""·data-resource-suffix="1.78.0"·data-rustdoc-version="1.78.0"·data-channel="1.78.0"·data-search-js="search-42d8da7a6b9792c2.js"·data-settings-js="settings-4313503d2e1961c2.js"·><script·src="../../static.files/storage-4c98445ec4002617.js"></script><script·defer·src="sidebar-items1.78.0.js"></script><script·defer·src="../../static.files/main-12cf3b4f4f9dc36d.js"></script><noscript><link·rel="stylesheet"·href="../../static.files/noscript-04d5337699b92874.css"></noscript><link·rel="alternate·icon"·type="image/png"·href="../../static.files/favicon-16x16-8b506e7a72182f1c.png"><link·rel="alternate·icon"·type="image/png"·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.78.0</span></h2></div><div·class="sidebar-elems"><h2><a·href="index.html">In·alloc::alloc</a></h2></div></nav><div·class="sidebar-resizer"></div>
2 ····<main><div·class="width-limiter"><nav·class="sub"><form·class="search-form"><span></span><div·id="sidebar-button"·tabindex="-1"><a·href="../../alloc/all.html"·title="show·sidebar"></a></div><input·class="search-input"·name="search"·aria-label="Run·search·in·the·documentation"·autocomplete="off"·spellcheck="false"·placeholder="Click·or·press·‘S’·to·search,·‘?’·for·more·options…"·type="search"><div·id="help-button"·tabindex="-1"><a·href="../../help.html"·title="help">?</a></div><div·id="settings-menu"·tabindex="-1"><a·href="../../settings.html"·title="settings"><img·width="22"·height="22"·alt="Change·settings"·src="../../static.files/wheel-7b819b6101059cd0.svg"></a></div></form></nav><section·id="main-content"·class="content"><div·class="main-heading"><h1>Function·<a·href="../index.html">alloc</a>::<wbr><a·href="index.html">alloc</a>::<wbr><a·class="fn"·href="#">dealloc</a><button·id="copy-path"·title="Copy·item·path·to·clipboard"><img·src="../../static.files/clipboard-7571035ce49a181d.svg"·width="19"·height="18"·alt="Copy·item·path"></button></h1><span·class="out-of-band"><span·class="since"·title="Stable·since·Rust·version·1.28.0">1.28.0</span>···<a·class="src"·href="../../src/alloc/alloc.rs.html#118-120">source</a>···<button·id="toggle-all-docs"·title="collapse·all·docs">[<span>&#x2212;</span>]</button></span></div><pre·class="rust·item-decl"><code>pub·unsafe·fn·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>Deallocate·memory·with·the·global·allocator.</p>2 ····<main><div·class="width-limiter"><nav·class="sub"><form·class="search-form"><span></span><div·id="sidebar-button"·tabindex="-1"><a·href="../../alloc/all.html"·title="show·sidebar"></a></div><input·class="search-input"·name="search"·aria-label="Run·search·in·the·documentation"·autocomplete="off"·spellcheck="false"·placeholder="Click·or·press·‘S’·to·search,·‘?’·for·more·options…"·type="search"><div·id="help-button"·tabindex="-1"><a·href="../../help.html"·title="help">?</a></div><div·id="settings-menu"·tabindex="-1"><a·href="../../settings.html"·title="settings"><img·width="22"·height="22"·alt="Change·settings"·src="../../static.files/wheel-7b819b6101059cd0.svg"></a></div></form></nav><section·id="main-content"·class="content"><div·class="main-heading"><h1>Function·<a·href="../index.html">alloc</a>::<wbr><a·href="index.html">alloc</a>::<wbr><a·class="fn"·href="#">dealloc</a><button·id="copy-path"·title="Copy·item·path·to·clipboard"><img·src="../../static.files/clipboard-7571035ce49a181d.svg"·width="19"·height="18"·alt="Copy·item·path"></button></h1><span·class="out-of-band"><span·class="since"·title="Stable·since·Rust·version·1.28.0">1.28.0</span>···<a·class="src"·href="../../src/alloc/alloc.rs.html#118-120">source</a>···<button·id="toggle-all-docs"·title="collapse·all·docs">[<span>&#x2212;</span>]</button></span></div><pre·class="rust·item-decl"><code>pub·unsafe·fn·dealloc(ptr:·<a·class="primitive"·href="https://doc.rust-lang.org/1.78.0/core/primitive.pointer.html">*mut·</a><a·class="primitive"·href="https://doc.rust-lang.org/1.78.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>Deallocate·memory·with·the·global·allocator.</p>
3 <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>·method3 <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
4 of·the·allocator·registered·with·the·<code>#[global_allocator]</code>·attribute4 of·the·allocator·registered·with·the·<code>#[global_allocator]</code>·attribute
5 if·there·is·one,·or·the·<code>std</code>·crate’s·default.</p>5 if·there·is·one,·or·the·<code>std</code>·crate’s·default.</p>
6 <p>This·function·is·expected·to·be·deprecated·in·favor·of·the·<code>dealloc</code>·method6 <p>This·function·is·expected·to·be·deprecated·in·favor·of·the·<code>dealloc</code>·method
7 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 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>
8 <h2·id="safety"><a·class="doc-anchor"·href="#safety">§</a>Safety</h2>8 <h2·id="safety"><a·class="doc-anchor"·href="#safety">§</a>Safety</h2>
9 <p>See·<a·href="trait.GlobalAlloc.html#tymethod.dealloc"·title="method·alloc::alloc::GlobalAlloc::dealloc"><code>GlobalAlloc::dealloc</code></a>.</p>9 <p>See·<a·href="trait.GlobalAlloc.html#tymethod.dealloc"·title="method·alloc::alloc::GlobalAlloc::dealloc"><code>GlobalAlloc::dealloc</code></a>.</p>
8.67 KB
./usr/share/doc/rust-web-doc/html/alloc/alloc/fn.handle_alloc_error.html
    
Offset 1, 23 lines modifiedOffset 1, 23 lines modified
1 <!DOCTYPE·html><html·lang="en"><head><meta·charset="utf-8"><meta·name="viewport"·content="width=device-width,·initial-scale=1.0"><meta·name="generator"·content="rustdoc"><meta·name="description"·content="Signal·a·memory·allocation·error."><title>handle_alloc_error·in·alloc::alloc·-·Rust</title><script>·if·(window.location.protocol·!==·"file:")·document.write(`<link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/SourceSerif4-Regular-46f98efaafac5295.ttf.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/FiraSans-Regular-018c141bf0843ffd.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/FiraSans-Medium-8f9a781e4970d388.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/SourceCodePro-Regular-562dcc5011b6de7d.ttf.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/SourceCodePro-Semibold-d899c5a5c4aeb14a.ttf.woff2">`)</script><link·rel="stylesheet"·href="../../static.files/normalize-76eba96aa4d2e634.css"><link·rel="stylesheet"·href="../../static.files/rustdoc-35f9e32502181f1e.css"><meta·name="rustdoc-vars"·data-root-path="../../"·data-static-root-path="../../static.files/"·data-current-crate="alloc"·data-themes=""·data-resource-suffix="1.78.0"·data-rustdoc-version="1.78.0"·data-channel="1.78.0"·data-search-js="search-42d8da7a6b9792c2.js"·data-settings-js="settings-4313503d2e1961c2.js"·><script·src="../../static.files/storage-4c98445ec4002617.js"></script><script·defer·src="sidebar-items1.78.0.js"></script><script·defer·src="../../static.files/main-12cf3b4f4f9dc36d.js"></script><noscript><link·rel="stylesheet"·href="../../static.files/noscript-04d5337699b92874.css"></noscript><link·rel="alternate·icon"·type="image/png"·href="../../static.files/favicon-16x16-8b506e7a72182f1c.png"><link·rel="alternate·icon"·type="image/png"·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.78.0</span></h2></div><div·class="sidebar-elems"><h2><a·href="index.html">In·alloc::alloc</a></h2></div></nav><div·class="sidebar-resizer"></div>1 <!DOCTYPE·html><html·lang="en"><head><meta·charset="utf-8"><meta·name="viewport"·content="width=device-width,·initial-scale=1.0"><meta·name="generator"·content="rustdoc"><meta·name="description"·content="Signal·a·memory·allocation·error."><title>handle_alloc_error·in·alloc::alloc·-·Rust</title><script>·if·(window.location.protocol·!==·"file:")·document.write(`<link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/SourceSerif4-Regular-46f98efaafac5295.ttf.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/FiraSans-Regular-018c141bf0843ffd.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/FiraSans-Medium-8f9a781e4970d388.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/SourceCodePro-Regular-562dcc5011b6de7d.ttf.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/SourceCodePro-Semibold-d899c5a5c4aeb14a.ttf.woff2">`)</script><link·rel="stylesheet"·href="../../static.files/normalize-76eba96aa4d2e634.css"><link·rel="stylesheet"·href="../../static.files/rustdoc-35f9e32502181f1e.css"><meta·name="rustdoc-vars"·data-root-path="../../"·data-static-root-path="../../static.files/"·data-current-crate="alloc"·data-themes=""·data-resource-suffix="1.78.0"·data-rustdoc-version="1.78.0"·data-channel="1.78.0"·data-search-js="search-42d8da7a6b9792c2.js"·data-settings-js="settings-4313503d2e1961c2.js"·><script·src="../../static.files/storage-4c98445ec4002617.js"></script><script·defer·src="sidebar-items1.78.0.js"></script><script·defer·src="../../static.files/main-12cf3b4f4f9dc36d.js"></script><noscript><link·rel="stylesheet"·href="../../static.files/noscript-04d5337699b92874.css"></noscript><link·rel="alternate·icon"·type="image/png"·href="../../static.files/favicon-16x16-8b506e7a72182f1c.png"><link·rel="alternate·icon"·type="image/png"·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.78.0</span></h2></div><div·class="sidebar-elems"><h2><a·href="index.html">In·alloc::alloc</a></h2></div></nav><div·class="sidebar-resizer"></div>
2 ····<main><div·class="width-limiter"><nav·class="sub"><form·class="search-form"><span></span><div·id="sidebar-button"·tabindex="-1"><a·href="../../alloc/all.html"·title="show·sidebar"></a></div><input·class="search-input"·name="search"·aria-label="Run·search·in·the·documentation"·autocomplete="off"·spellcheck="false"·placeholder="Click·or·press·‘S’·to·search,·‘?’·for·more·options…"·type="search"><div·id="help-button"·tabindex="-1"><a·href="../../help.html"·title="help">?</a></div><div·id="settings-menu"·tabindex="-1"><a·href="../../settings.html"·title="settings"><img·width="22"·height="22"·alt="Change·settings"·src="../../static.files/wheel-7b819b6101059cd0.svg"></a></div></form></nav><section·id="main-content"·class="content"><div·class="main-heading"><h1>Function·<a·href="../index.html">alloc</a>::<wbr><a·href="index.html">alloc</a>::<wbr><a·class="fn"·href="#">handle_alloc_error</a><button·id="copy-path"·title="Copy·item·path·to·clipboard"><img·src="../../static.files/clipboard-7571035ce49a181d.svg"·width="19"·height="18"·alt="Copy·item·path"></button></h1><span·class="out-of-band"><span·class="since"·title="Stable·since·Rust·version·1.28.0,·const·unstable">1.28.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#377-397">source</a>···<button·id="toggle-all-docs"·title="collapse·all·docs">[<span>&#x2212;</span>]</button></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>Signal·a·memory·allocation·error.</p>2 ····<main><div·class="width-limiter"><nav·class="sub"><form·class="search-form"><span></span><div·id="sidebar-button"·tabindex="-1"><a·href="../../alloc/all.html"·title="show·sidebar"></a></div><input·class="search-input"·name="search"·aria-label="Run·search·in·the·documentation"·autocomplete="off"·spellcheck="false"·placeholder="Click·or·press·‘S’·to·search,·‘?’·for·more·options…"·type="search"><div·id="help-button"·tabindex="-1"><a·href="../../help.html"·title="help">?</a></div><div·id="settings-menu"·tabindex="-1"><a·href="../../settings.html"·title="settings"><img·width="22"·height="22"·alt="Change·settings"·src="../../static.files/wheel-7b819b6101059cd0.svg"></a></div></form></nav><section·id="main-content"·class="content"><div·class="main-heading"><h1>Function·<a·href="../index.html">alloc</a>::<wbr><a·href="index.html">alloc</a>::<wbr><a·class="fn"·href="#">handle_alloc_error</a><button·id="copy-path"·title="Copy·item·path·to·clipboard"><img·src="../../static.files/clipboard-7571035ce49a181d.svg"·width="19"·height="18"·alt="Copy·item·path"></button></h1><span·class="out-of-band"><span·class="since"·title="Stable·since·Rust·version·1.28.0,·const·unstable">1.28.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#377-397">source</a>···<button·id="toggle-all-docs"·title="collapse·all·docs">[<span>&#x2212;</span>]</button></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.78.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>Signal·a·memory·allocation·error.</p>
3 <p>Callers·of·memory·allocation·APIs·wishing·to·cease·execution3 <p>Callers·of·memory·allocation·APIs·wishing·to·cease·execution
4 in·response·to·an·allocation·error·are·encouraged·to·call·this·function,4 in·response·to·an·allocation·error·are·encouraged·to·call·this·function,
5 rather·than·directly·invoking·<a·href="../../core/macro.panic.html"·title="macro·core::panic"><code>panic!</code></a>·or·similar.</p>5 rather·than·directly·invoking·<a·href="https://doc.rust-lang.org/1.78.0/core/macro.panic.html"·title="macro·core::panic"><code>panic!</code></a>·or·similar.</p>
6 <p>This·function·is·guaranteed·to·diverge·(not·return·normally·with·a·value),·but·depending·on6 <p>This·function·is·guaranteed·to·diverge·(not·return·normally·with·a·value),·but·depending·on
7 global·configuration,·it·may·either·panic·(resulting·in·unwinding·or·aborting·as·per7 global·configuration,·it·may·either·panic·(resulting·in·unwinding·or·aborting·as·per
8 configuration·for·all·panics),·or·abort·the·process·(with·no·unwinding).</p>8 configuration·for·all·panics),·or·abort·the·process·(with·no·unwinding).</p>
9 <p>The·default·behavior·is:</p>9 <p>The·default·behavior·is:</p>
10 <ul>10 <ul>
11 <li>11 <li>
12 <p>If·the·binary·links·against·<code>std</code>·(typically·the·case),·then12 <p>If·the·binary·links·against·<code>std</code>·(typically·the·case),·then
13 print·a·message·to·standard·error·and·abort·the·process.13 print·a·message·to·standard·error·and·abort·the·process.
14 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 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>.
15 Future·versions·of·Rust·may·panic·by·default·instead.</p>15 Future·versions·of·Rust·may·panic·by·default·instead.</p>
16 </li>16 </li>
17 <li>17 <li>
18 <p>If·the·binary·does·not·link·against·<code>std</code>·(all·of·its·crates·are·marked18 <p>If·the·binary·does·not·link·against·<code>std</code>·(all·of·its·crates·are·marked
19 <a·href="https://doc.rust-lang.org/reference/names/preludes.html#the-no_std-attribute"><code>#![no_std]</code></a>),·then·call·<a·href="../../core/macro.panic.html"·title="macro·core::panic"><code>panic!</code></a>·with·a·message.19 <a·href="https://doc.rust-lang.org/reference/names/preludes.html#the-no_std-attribute"><code>#![no_std]</code></a>),·then·call·<a·href="https://doc.rust-lang.org/1.78.0/core/macro.panic.html"·title="macro·core::panic"><code>panic!</code></a>·with·a·message.
20 <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 <a·href="https://doc.rust-lang.org/reference/runtime.html#the-panic_handler-attribute">The·panic·handler</a>·applies·as·to·any·panic.</p>
21 </li>21 </li>
22 </ul>22 </ul>
23 </div></details></section></div></main></body></html>23 </div></details></section></div></main></body></html>
7.98 KB
./usr/share/doc/rust-web-doc/html/alloc/alloc/fn.realloc.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="Reallocate·memory·with·the·global·allocator."><title>realloc·in·alloc::alloc·-·Rust</title><script>·if·(window.location.protocol·!==·"file:")·document.write(`<link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/SourceSerif4-Regular-46f98efaafac5295.ttf.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/FiraSans-Regular-018c141bf0843ffd.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/FiraSans-Medium-8f9a781e4970d388.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/SourceCodePro-Regular-562dcc5011b6de7d.ttf.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/SourceCodePro-Semibold-d899c5a5c4aeb14a.ttf.woff2">`)</script><link·rel="stylesheet"·href="../../static.files/normalize-76eba96aa4d2e634.css"><link·rel="stylesheet"·href="../../static.files/rustdoc-35f9e32502181f1e.css"><meta·name="rustdoc-vars"·data-root-path="../../"·data-static-root-path="../../static.files/"·data-current-crate="alloc"·data-themes=""·data-resource-suffix="1.78.0"·data-rustdoc-version="1.78.0"·data-channel="1.78.0"·data-search-js="search-42d8da7a6b9792c2.js"·data-settings-js="settings-4313503d2e1961c2.js"·><script·src="../../static.files/storage-4c98445ec4002617.js"></script><script·defer·src="sidebar-items1.78.0.js"></script><script·defer·src="../../static.files/main-12cf3b4f4f9dc36d.js"></script><noscript><link·rel="stylesheet"·href="../../static.files/noscript-04d5337699b92874.css"></noscript><link·rel="alternate·icon"·type="image/png"·href="../../static.files/favicon-16x16-8b506e7a72182f1c.png"><link·rel="alternate·icon"·type="image/png"·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.78.0</span></h2></div><div·class="sidebar-elems"><h2><a·href="index.html">In·alloc::alloc</a></h2></div></nav><div·class="sidebar-resizer"></div>1 <!DOCTYPE·html><html·lang="en"><head><meta·charset="utf-8"><meta·name="viewport"·content="width=device-width,·initial-scale=1.0"><meta·name="generator"·content="rustdoc"><meta·name="description"·content="Reallocate·memory·with·the·global·allocator."><title>realloc·in·alloc::alloc·-·Rust</title><script>·if·(window.location.protocol·!==·"file:")·document.write(`<link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/SourceSerif4-Regular-46f98efaafac5295.ttf.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/FiraSans-Regular-018c141bf0843ffd.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/FiraSans-Medium-8f9a781e4970d388.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/SourceCodePro-Regular-562dcc5011b6de7d.ttf.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/SourceCodePro-Semibold-d899c5a5c4aeb14a.ttf.woff2">`)</script><link·rel="stylesheet"·href="../../static.files/normalize-76eba96aa4d2e634.css"><link·rel="stylesheet"·href="../../static.files/rustdoc-35f9e32502181f1e.css"><meta·name="rustdoc-vars"·data-root-path="../../"·data-static-root-path="../../static.files/"·data-current-crate="alloc"·data-themes=""·data-resource-suffix="1.78.0"·data-rustdoc-version="1.78.0"·data-channel="1.78.0"·data-search-js="search-42d8da7a6b9792c2.js"·data-settings-js="settings-4313503d2e1961c2.js"·><script·src="../../static.files/storage-4c98445ec4002617.js"></script><script·defer·src="sidebar-items1.78.0.js"></script><script·defer·src="../../static.files/main-12cf3b4f4f9dc36d.js"></script><noscript><link·rel="stylesheet"·href="../../static.files/noscript-04d5337699b92874.css"></noscript><link·rel="alternate·icon"·type="image/png"·href="../../static.files/favicon-16x16-8b506e7a72182f1c.png"><link·rel="alternate·icon"·type="image/png"·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.78.0</span></h2></div><div·class="sidebar-elems"><h2><a·href="index.html">In·alloc::alloc</a></h2></div></nav><div·class="sidebar-resizer"></div>
2 ····<main><div·class="width-limiter"><nav·class="sub"><form·class="search-form"><span></span><div·id="sidebar-button"·tabindex="-1"><a·href="../../alloc/all.html"·title="show·sidebar"></a></div><input·class="search-input"·name="search"·aria-label="Run·search·in·the·documentation"·autocomplete="off"·spellcheck="false"·placeholder="Click·or·press·‘S’·to·search,·‘?’·for·more·options…"·type="search"><div·id="help-button"·tabindex="-1"><a·href="../../help.html"·title="help">?</a></div><div·id="settings-menu"·tabindex="-1"><a·href="../../settings.html"·title="settings"><img·width="22"·height="22"·alt="Change·settings"·src="../../static.files/wheel-7b819b6101059cd0.svg"></a></div></form></nav><section·id="main-content"·class="content"><div·class="main-heading"><h1>Function·<a·href="../index.html">alloc</a>::<wbr><a·href="index.html">alloc</a>::<wbr><a·class="fn"·href="#">realloc</a><button·id="copy-path"·title="Copy·item·path·to·clipboard"><img·src="../../static.files/clipboard-7571035ce49a181d.svg"·width="19"·height="18"·alt="Copy·item·path"></button></h1><span·class="out-of-band"><span·class="since"·title="Stable·since·Rust·version·1.28.0">1.28.0</span>···<a·class="src"·href="../../src/alloc/alloc.rs.html#137-139">source</a>···<button·id="toggle-all-docs"·title="collapse·all·docs">[<span>&#x2212;</span>]</button></span></div><pre·class="rust·item-decl"><code>pub·unsafe·fn·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>Reallocate·memory·with·the·global·allocator.</p>2 ····<main><div·class="width-limiter"><nav·class="sub"><form·class="search-form"><span></span><div·id="sidebar-button"·tabindex="-1"><a·href="../../alloc/all.html"·title="show·sidebar"></a></div><input·class="search-input"·name="search"·aria-label="Run·search·in·the·documentation"·autocomplete="off"·spellcheck="false"·placeholder="Click·or·press·‘S’·to·search,·‘?’·for·more·options…"·type="search"><div·id="help-button"·tabindex="-1"><a·href="../../help.html"·title="help">?</a></div><div·id="settings-menu"·tabindex="-1"><a·href="../../settings.html"·title="settings"><img·width="22"·height="22"·alt="Change·settings"·src="../../static.files/wheel-7b819b6101059cd0.svg"></a></div></form></nav><section·id="main-content"·class="content"><div·class="main-heading"><h1>Function·<a·href="../index.html">alloc</a>::<wbr><a·href="index.html">alloc</a>::<wbr><a·class="fn"·href="#">realloc</a><button·id="copy-path"·title="Copy·item·path·to·clipboard"><img·src="../../static.files/clipboard-7571035ce49a181d.svg"·width="19"·height="18"·alt="Copy·item·path"></button></h1><span·class="out-of-band"><span·class="since"·title="Stable·since·Rust·version·1.28.0">1.28.0</span>···<a·class="src"·href="../../src/alloc/alloc.rs.html#137-139">source</a>···<button·id="toggle-all-docs"·title="collapse·all·docs">[<span>&#x2212;</span>]</button></span></div><pre·class="rust·item-decl"><code>pub·unsafe·fn·realloc(ptr:·<a·class="primitive"·href="https://doc.rust-lang.org/1.78.0/core/primitive.pointer.html">*mut·</a><a·class="primitive"·href="https://doc.rust-lang.org/1.78.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:·a2bc2469eea2ae46a71c133c58795a027274f5b7381a0313d793c9e0e4c6f152·...·]/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>Reallocate·memory·with·the·global·allocator.</p>
3 <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>·method3 <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
4 of·the·allocator·registered·with·the·<code>#[global_allocator]</code>·attribute4 of·the·allocator·registered·with·the·<code>#[global_allocator]</code>·attribute
5 if·there·is·one,·or·the·<code>std</code>·crate’s·default.</p>5 if·there·is·one,·or·the·<code>std</code>·crate’s·default.</p>
6 <p>This·function·is·expected·to·be·deprecated·in·favor·of·the·<code>realloc</code>·method6 <p>This·function·is·expected·to·be·deprecated·in·favor·of·the·<code>realloc</code>·method
7 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 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>
8 <h2·id="safety"><a·class="doc-anchor"·href="#safety">§</a>Safety</h2>8 <h2·id="safety"><a·class="doc-anchor"·href="#safety">§</a>Safety</h2>
9 <p>See·<a·href="trait.GlobalAlloc.html#method.realloc"·title="method·alloc::alloc::GlobalAlloc::realloc"><code>GlobalAlloc::realloc</code></a>.</p>9 <p>See·<a·href="trait.GlobalAlloc.html#method.realloc"·title="method·alloc::alloc::GlobalAlloc::realloc"><code>GlobalAlloc::realloc</code></a>.</p>
66.8 KB
./usr/share/doc/rust-web-doc/html/alloc/alloc/struct.AllocError.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·`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.write(`<link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/SourceSerif4-Regular-46f98efaafac5295.ttf.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/FiraSans-Regular-018c141bf0843ffd.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/FiraSans-Medium-8f9a781e4970d388.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/SourceCodePro-Regular-562dcc5011b6de7d.ttf.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/SourceCodePro-Semibold-d899c5a5c4aeb14a.ttf.woff2">`)</script><link·rel="stylesheet"·href="../../static.files/normalize-76eba96aa4d2e634.css"><link·rel="stylesheet"·href="../../static.files/rustdoc-35f9e32502181f1e.css"><meta·name="rustdoc-vars"·data-root-path="../../"·data-static-root-path="../../static.files/"·data-current-crate="alloc"·data-themes=""·data-resource-suffix="1.78.0"·data-rustdoc-version="1.78.0"·data-channel="1.78.0"·data-search-js="search-42d8da7a6b9792c2.js"·data-settings-js="settings-4313503d2e1961c2.js"·><script·src="../../static.files/storage-4c98445ec4002617.js"></script><script·defer·src="sidebar-items1.78.0.js"></script><script·defer·src="../../static.files/main-12cf3b4f4f9dc36d.js"></script><noscript><link·rel="stylesheet"·href="../../static.files/noscript-04d5337699b92874.css"></noscript><link·rel="alternate·icon"·type="image/png"·href="../../static.files/favicon-16x16-8b506e7a72182f1c.png"><link·rel="alternate·icon"·type="image/png"·href="../../static.files/favicon-32x32-422f7d1d52889060.png"><link·rel="icon"·type="image/svg+xml"·href="../../static.files/favicon-2c020d218678b618.svg"></head><body·class="rustdoc·struct"><!--[if·lte·IE·11]><div·class="warning">This·old·browser·is·unsupported·and·will·most·likely·display·funky·things.</div><![endif]--><nav·class="mobile-topbar"><button·class="sidebar-menu-toggle"·title="show·sidebar"></button><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-151179464ae7ed46.svg"·alt=""></a></nav><nav·class="sidebar"><div·class="sidebar-crate"><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-151179464ae7ed46.svg"·alt="logo"></a><h2><a·href="../../alloc/index.html">alloc</a><span·class="version">1.78.0</span></h2></div><h2·class="location"><a·href="#">AllocError</a></h2><div·class="sidebar-elems"><section><h3><a·href="#trait-implementations">Trait·Implementations</a></h3><ul·class="block·trait-implementation"><li><a·href="#impl-Clone-for-AllocError">Clone</a></li><li><a·href="#impl-Copy-for-AllocError">Copy</a></li><li><a·href="#impl-Debug-for-AllocError">Debug</a></li><li><a·href="#impl-Display-for-AllocError">Display</a></li><li><a·href="#impl-Eq-for-AllocError">Eq</a></li><li><a·href="#impl-Error-for-AllocError">Error</a></li><li><a·href="#impl-PartialEq-for-AllocError">PartialEq</a></li><li><a·href="#impl-StructuralPartialEq-for-AllocError">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">Freeze</a></li><li><a·href="#impl-RefUnwindSafe-for-AllocError">RefUnwindSafe</a></li><li><a·href="#impl-Send-for-AllocError">Send</a></li><li><a·href="#impl-Sync-for-AllocError">Sync</a></li><li><a·href="#impl-Unpin-for-AllocError">Unpin</a></li><li><a·href="#impl-UnwindSafe-for-AllocError">UnwindSafe</a></li></ul><h3><a·href="#blanket-implementations">Blanket·Implementations</a></h3><ul·class="block·blanket-implementation"><li><a·href="#impl-Any-for-T">Any</a></li><li><a·href="#impl-Borrow%3CT%3E-for-T">Borrow&lt;T&gt;</a></li><li><a·href="#impl-BorrowMut%3CT%3E-for-T">BorrowMut&lt;T&gt;</a></li><li><a·href="#impl-From%3CT%3E-for-T">From&lt;T&gt;</a></li><li><a·href="#impl-Into%3CU%3E-for-T">Into&lt;U&gt;</a></li><li><a·href="#impl-ToOwned-for-T">ToOwned</a></li><li><a·href="#impl-ToString-for-T">ToString</a></li><li><a·href="#impl-TryFrom%3CU%3E-for-T">TryFrom&lt;U&gt;</a></li><li><a·href="#impl-TryInto%3CU%3E-for-T">TryInto&lt;U&gt;</a></li></ul></section><h2><a·href="index.html">In·alloc::alloc</a></h2></div></nav><div·class="sidebar-resizer"></div>1 <!DOCTYPE·html><html·lang="en"><head><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.write(`<link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/SourceSerif4-Regular-46f98efaafac5295.ttf.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/FiraSans-Regular-018c141bf0843ffd.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/FiraSans-Medium-8f9a781e4970d388.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/SourceCodePro-Regular-562dcc5011b6de7d.ttf.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/SourceCodePro-Semibold-d899c5a5c4aeb14a.ttf.woff2">`)</script><link·rel="stylesheet"·href="../../static.files/normalize-76eba96aa4d2e634.css"><link·rel="stylesheet"·href="../../static.files/rustdoc-35f9e32502181f1e.css"><meta·name="rustdoc-vars"·data-root-path="../../"·data-static-root-path="../../static.files/"·data-current-crate="alloc"·data-themes=""·data-resource-suffix="1.78.0"·data-rustdoc-version="1.78.0"·data-channel="1.78.0"·data-search-js="search-42d8da7a6b9792c2.js"·data-settings-js="settings-4313503d2e1961c2.js"·><script·src="../../static.files/storage-4c98445ec4002617.js"></script><script·defer·src="sidebar-items1.78.0.js"></script><script·defer·src="../../static.files/main-12cf3b4f4f9dc36d.js"></script><noscript><link·rel="stylesheet"·href="../../static.files/noscript-04d5337699b92874.css"></noscript><link·rel="alternate·icon"·type="image/png"·href="../../static.files/favicon-16x16-8b506e7a72182f1c.png"><link·rel="alternate·icon"·type="image/png"·href="../../static.files/favicon-32x32-422f7d1d52889060.png"><link·rel="icon"·type="image/svg+xml"·href="../../static.files/favicon-2c020d218678b618.svg"></head><body·class="rustdoc·struct"><!--[if·lte·IE·11]><div·class="warning">This·old·browser·is·unsupported·and·will·most·likely·display·funky·things.</div><![endif]--><nav·class="mobile-topbar"><button·class="sidebar-menu-toggle"·title="show·sidebar"></button><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-151179464ae7ed46.svg"·alt=""></a></nav><nav·class="sidebar"><div·class="sidebar-crate"><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-151179464ae7ed46.svg"·alt="logo"></a><h2><a·href="../../alloc/index.html">alloc</a><span·class="version">1.78.0</span></h2></div><h2·class="location"><a·href="#">AllocError</a></h2><div·class="sidebar-elems"><section><h3><a·href="#trait-implementations">Trait·Implementations</a></h3><ul·class="block·trait-implementation"><li><a·href="#impl-Clone-for-AllocError">Clone</a></li><li><a·href="#impl-Copy-for-AllocError">Copy</a></li><li><a·href="#impl-Debug-for-AllocError">Debug</a></li><li><a·href="#impl-Display-for-AllocError">Display</a></li><li><a·href="#impl-Eq-for-AllocError">Eq</a></li><li><a·href="#impl-Error-for-AllocError">Error</a></li><li><a·href="#impl-PartialEq-for-AllocError">PartialEq</a></li><li><a·href="#impl-StructuralPartialEq-for-AllocError">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">Freeze</a></li><li><a·href="#impl-RefUnwindSafe-for-AllocError">RefUnwindSafe</a></li><li><a·href="#impl-Send-for-AllocError">Send</a></li><li><a·href="#impl-Sync-for-AllocError">Sync</a></li><li><a·href="#impl-Unpin-for-AllocError">Unpin</a></li><li><a·href="#impl-UnwindSafe-for-AllocError">UnwindSafe</a></li></ul><h3><a·href="#blanket-implementations">Blanket·Implementations</a></h3><ul·class="block·blanket-implementation"><li><a·href="#impl-Any-for-T">Any</a></li><li><a·href="#impl-Borrow%3CT%3E-for-T">Borrow&lt;T&gt;</a></li><li><a·href="#impl-BorrowMut%3CT%3E-for-T">BorrowMut&lt;T&gt;</a></li><li><a·href="#impl-From%3CT%3E-for-T">From&lt;T&gt;</a></li><li><a·href="#impl-Into%3CU%3E-for-T">Into&lt;U&gt;</a></li><li><a·href="#impl-ToOwned-for-T">ToOwned</a></li><li><a·href="#impl-ToString-for-T">ToString</a></li><li><a·href="#impl-TryFrom%3CU%3E-for-T">TryFrom&lt;U&gt;</a></li><li><a·href="#impl-TryInto%3CU%3E-for-T">TryInto&lt;U&gt;</a></li></ul></section><h2><a·href="index.html">In·alloc::alloc</a></h2></div></nav><div·class="sidebar-resizer"></div>
2 ····<main><div·class="width-limiter"><nav·class="sub"><form·class="search-form"><span></span><div·id="sidebar-button"·tabindex="-1"><a·href="../../alloc/all.html"·title="show·sidebar"></a></div><input·class="search-input"·name="search"·aria-label="Run·search·in·the·documentation"·autocomplete="off"·spellcheck="false"·placeholder="Click·or·press·‘S’·to·search,·‘?’·for·more·options…"·type="search"><div·id="help-button"·tabindex="-1"><a·href="../../help.html"·title="help">?</a></div><div·id="settings-menu"·tabindex="-1"><a·href="../../settings.html"·title="settings"><img·width="22"·height="22"·alt="Change·settings"·src="../../static.files/wheel-7b819b6101059cd0.svg"></a></div></form></nav><section·id="main-content"·class="content"><div·class="main-heading"><h1>Struct·<a·href="../index.html">alloc</a>::<wbr><a·href="index.html">alloc</a>::<wbr><a·class="struct"·href="#">AllocError</a><button·id="copy-path"·title="Copy·item·path·to·clipboard"><img·src="../../static.files/clipboard-7571035ce49a181d.svg"·width="19"·height="18"·alt="Copy·item·path"></button></h1><span·class="out-of-band"><a·class="src"·href="../../src/core/alloc/mod.rs.html#34">source</a>···<button·id="toggle-all-docs"·title="collapse·all·docs">[<span>&#x2212;</span>]</button></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·failure2 ····<main><div·class="width-limiter"><nav·class="sub"><form·class="search-form"><span></span><div·id="sidebar-button"·tabindex="-1"><a·href="../../alloc/all.html"·title="show·sidebar"></a></div><input·class="search-input"·name="search"·aria-label="Run·search·in·the·documentation"·autocomplete="off"·spellcheck="false"·placeholder="Click·or·press·‘S’·to·search,·‘?’·for·more·options…"·type="search"><div·id="help-button"·tabindex="-1"><a·href="../../help.html"·title="help">?</a></div><div·id="settings-menu"·tabindex="-1"><a·href="../../settings.html"·title="settings"><img·width="22"·height="22"·alt="Change·settings"·src="../../static.files/wheel-7b819b6101059cd0.svg"></a></div></form></nav><section·id="main-content"·class="content"><div·class="main-heading"><h1>Struct·<a·href="../index.html">alloc</a>::<wbr><a·href="index.html">alloc</a>::<wbr><a·class="struct"·href="#">AllocError</a><button·id="copy-path"·title="Copy·item·path·to·clipboard"><img·src="../../static.files/clipboard-7571035ce49a181d.svg"·width="19"·height="18"·alt="Copy·item·path"></button></h1><span·class="out-of-band"><a·class="src"·href="https://doc.rust-lang.org/1.78.0/src/core/alloc/mod.rs.html#34">source</a>···<button·id="toggle-all-docs"·title="collapse·all·docs">[<span>&#x2212;</span>]</button></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
3 that·may·be·due·to·resource·exhaustion·or·to3 that·may·be·due·to·resource·exhaustion·or·to
4 something·wrong·when·combining·the·given·input·arguments·with·this4 something·wrong·when·combining·the·given·input·arguments·with·this
5 allocator.</p>5 allocator.</p>
6 </div></details><h2·id="trait-implementations"·class="section-header">Trait·Implementations<a·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#33">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:·9516,·SHA:·002c63390d65129353bf21127a426878b094cefb65b08508ff73640c179e3386·...·]/core/primitive.bool.html">bool</a></h4></section></summary><div·class='docblock'>This·method·tests·for·<code>self</code>·and·<code>other</code>·values·to·be·equal,·and·is·used6 </div></details><h2·id="trait-implementations"·class="section-header">Trait·Implementations<a·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.78.0/src/core/alloc/mod.rs.html#33">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.78.0/core/clone/trait.Clone.html"·title="trai[·...·truncated·by·diffoscope;·len:·10623,·SHA:·5b2620777e89c216ac680534485bc896ccb7d561eb33d2b53fd5ae8c520241cd·...·]/core/primitive.bool.html">bool</a></h4></section></summary><div·class='docblock'>This·method·tests·for·<code>self</code>·and·<code>other</code>·values·to·be·equal,·and·is·used
7 by·<code>==</code>.</div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.ne"·class="method·trait-impl"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.0.0">1.0.0</span>···<a·class="src"·href="../../src/core/cmp.rs.html#263">source</a></span><a·href="#method.ne"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../../core/cmp/trait.PartialEq.html#method.ne"·class="fn">ne</a>(&amp;self,·other:·<a·class="primitive"·href="../../core/primitive[·...·truncated·by·diffoscope;·len:·69,·SHA:·bb676445ed4716783d5d8ed2fb1ff635f2577a6cd8b41db49822f9e352e394c1·...·]/core/primitive.bool.html">bool</a></h4></section></summary><div·class='docblock'>This·method·tests·for·<code>!=</code>.·The·default·implementation·is·almost·always7 by·<code>==</code>.</div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.ne"·class="method·trait-impl"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.0.0">1.0.0</span>···<a·class="src"·href="https://doc.rust-lang.org/1.78.0/src/core/cmp.rs.html#263">source</a></span><a·href="#method.ne"·class="anchor">§</a><h4·class="code-header">fn·<a·href="https://doc.rust-lang.org/1.78.0/core/cmp/trait.PartialEq.html#method.ne"·class="fn">ne</a>(&amp;self,·[·...·truncated·by·diffoscope;·len:·177,·SHA:·e1e3f9b9b78644c807cda06ba58cbf80a7a50ed17e7136cd156da5dd11dec66f·...·]/core/primitive.bool.html">bool</a></h4></section></summary><div·class='docblock'>This·method·tests·for·<code>!=</code>.·The·default·implementation·is·almost·always
8 sufficient,·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#33">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:·c555b304ad7104d55c4cf4b718c1283868f607ff08f0445f954208575a7c8dd4·...·]/core/any/trait.Any.html"·title="trait·core::any::Any">Any</a>·for·T<div·class="where">where8 sufficient,·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.78.0/src/core/alloc/mod.rs.html#33">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.78.0/core/marker/trait.Copy.html"·title="trait[·...·truncated·by·diffoscope;·len:·4347,·SHA:·ec8dcf3423898f9948b713c2cfd720d83d96f6e24154838bbbf13a7478b80bf4·...·]/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:·9db8bacb767d75cc3351ca7341c388130aa05ebef490d992be5374f16eedc378·...·]/src/core/borrow.rs.html#208">source</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.78.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">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:·039b8952ccb1ab7d8f15cd519cbc10f4afc149276d0f9cfd3a53117d606059df·...·]/src/core/borrow.rs.html#208">source</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:·b2ffbab17ff1ef71ba4c506a3aaa515da2082da6f02a53862ce1ca2b2b25f5b4·...·]/src/core/borrow.rs.html#216">source</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.78.0/core/marker/trait.Sized.html"·title="trait·core::marker::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:·952d76e7bcf7b521fffa418ce638abf69976de0942360e56f93e419ca3389394·...·]/src/core/borrow.rs.html#216">source</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:·befefcb8cb29dc857e1f3050572f6f470317e3350e0851c4ed6e56cc38673a92·...·]/core/convert/trait.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.78.0/core/marker/trait.Sized.html"·title="trait·core::marker::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:·204bc28c8766993ff59d26bb790f1469ab686e6f172c57f35aa987a81507a7b1·...·]/core/convert/trait.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.78.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.78.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.78.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:·2cf76a8ca501b2a1fef209fed846779ab1bed3b75f52c7425335e3ce04e6b272·...·]/core/convert/trait.Into.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.78.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#83-95">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#83-95">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·href="#associ[·...·truncated·by·diffoscope;·len:·1220,·SHA:·3cbf0f64542b816603968ea3c1b51d1b1eb93d99770d50fed747c05540b0e6b0·...·]/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#2543-2557">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.78.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:·1274,·SHA:·0c080e1e1236f77ce91b20fef8bb17c6bc50a069d2e16d2b40ea7b4298dec09f·...·]/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#2543-2557">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:·bf3a3f8ffed9dcfc973405dddaf9f278663007cc35ca5daa38b602630201cbf0·...·]/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.78.0/core/marker/trait.Sized.html"·title="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:·531ea7c1ecd9197e925ea3063788b96ffe9ed8291f75ffba5fcab4c2298b41ca·...·]/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"·class="associatedtype·trait-impl"><a·hre[·...·truncated·by·diffoscope;·len:·1591,·SHA:·8537afacf1b3cf6b9fb7db778975d49d8a8e5988d420715e464ff4a79dd696c5·...·]/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.78.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"·class="associ[·...·truncated·by·diffoscope;·len:·1861,·SHA:·78398046ba16de2f66a8201a11d6a2dd405fceedeabfcaa37481e77092687e6f·...·]/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-1"·class="associatedtype·trait-i[·...·truncated·by·diffoscope;·len:·1231,·SHA:·7843e7b6cca73922417e4154886c0df66f016d274b48933c21bdb75b67479d5b·...·]/core/convert/trait.TryFrom.html#associatedtype.Error"·title="type·core::convert::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.78.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-1"·cl[·...·truncated·by·diffoscope;·len:·1474,·SHA:·ca90cccb6c86c654c95a1aaec456fbbe4b115f0d5a700e7d156e823346d70894·...·]/core/convert/trait.TryFrom.html#associatedtype.Error"·title="type·core::convert::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.8 KB
./usr/share/doc/rust-web-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.write(`<link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/SourceSerif4-Regular-46f98efaafac5295.ttf.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/FiraSans-Regular-018c141bf0843ffd.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/FiraSans-Medium-8f9a781e4970d388.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/SourceCodePro-Regular-562dcc5011b6de7d.ttf.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/SourceCodePro-Semibold-d899c5a5c4aeb14a.ttf.woff2">`)</script><link·rel="stylesheet"·href="../../static.files/normalize-76eba96aa4d2e634.css"><link·rel="stylesheet"·href="../../static.files/rustdoc-35f9e32502181f1e.css"><meta·name="rustdoc-vars"·data-root-path="../../"·data-static-root-path="../../static.files/"·data-current-crate="alloc"·data-themes=""·data-resource-suffix="1.78.0"·data-rustdoc-version="1.78.0"·data-channel="1.78.0"·data-search-js="search-42d8da7a6b9792c2.js"·data-settings-js="settings-4313503d2e1961c2.js"·><script·src="../../static.files/storage-4c98445ec4002617.js"></script><script·defer·src="sidebar-items1.78.0.js"></script><script·defer·src="../../static.files/main-12cf3b4f4f9dc36d.js"></script><noscript><link·rel="stylesheet"·href="../../static.files/noscript-04d5337699b92874.css"></noscript><link·rel="alternate·icon"·type="image/png"·href="../../static.files/favicon-16x16-8b506e7a72182f1c.png"><link·rel="alternate·icon"·type="image/png"·href="../../static.files/favicon-32x32-422f7d1d52889060.png"><link·rel="icon"·type="image/svg+xml"·href="../../static.files/favicon-2c020d218678b618.svg"></head><body·class="rustdoc·struct"><!--[if·lte·IE·11]><div·class="warning">This·old·browser·is·unsupported·and·will·most·likely·display·funky·things.</div><![endif]--><nav·class="mobile-topbar"><button·class="sidebar-menu-toggle"·title="show·sidebar"></button><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-151179464ae7ed46.svg"·alt=""></a></nav><nav·class="sidebar"><div·class="sidebar-crate"><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-151179464ae7ed46.svg"·alt="logo"></a><h2><a·href="../../alloc/index.html">alloc</a><span·class="version">1.78.0</span></h2></div><h2·class="location"><a·href="#">Global</a></h2><div·class="sidebar-elems"><section><h3><a·href="#trait-implementations">Trait·Implementations</a></h3><ul·class="block·trait-implementation"><li><a·href="#impl-Allocator-for-Global">Allocator</a></li><li><a·href="#impl-Clone-for-Global">Clone</a></li><li><a·href="#impl-Copy-for-Global">Copy</a></li><li><a·href="#impl-Debug-for-Global">Debug</a></li><li><a·href="#impl-Default-for-Global">Default</a></li><li><a·href="#impl-DispatchFromDyn%3CBox%3CU%3E%3E-for-Box%3CT%3E">DispatchFromDyn&lt;Box&lt;U&gt;&gt;</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">Freeze</a></li><li><a·href="#impl-RefUnwindSafe-for-Global">RefUnwindSafe</a></li><li><a·href="#impl-Send-for-Global">Send</a></li><li><a·href="#impl-Sync-for-Global">Sync</a></li><li><a·href="#impl-Unpin-for-Global">Unpin</a></li><li><a·href="#impl-UnwindSafe-for-Global">UnwindSafe</a></li></ul><h3><a·href="#blanket-implementations">Blanket·Implementations</a></h3><ul·class="block·blanket-implementation"><li><a·href="#impl-Any-for-T">Any</a></li><li><a·href="#impl-Borrow%3CT%3E-for-T">Borrow&lt;T&gt;</a></li><li><a·href="#impl-BorrowMut%3CT%3E-for-T">BorrowMut&lt;T&gt;</a></li><li><a·href="#impl-From%3CT%3E-for-T">From&lt;T&gt;</a></li><li><a·href="#impl-Into%3CU%3E-for-T">Into&lt;U&gt;</a></li><li><a·href="#impl-ToOwned-for-T">ToOwned</a></li><li><a·href="#impl-TryFrom%3CU%3E-for-T">TryFrom&lt;U&gt;</a></li><li><a·href="#impl-TryInto%3CU%3E-for-T">TryInto&lt;U&gt;</a></li></ul></section><h2><a·href="index.html">In·alloc::alloc</a></h2></div></nav><div·class="sidebar-resizer"></div>1 <!DOCTYPE·html><html·lang="en"><head><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.write(`<link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/SourceSerif4-Regular-46f98efaafac5295.ttf.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/FiraSans-Regular-018c141bf0843ffd.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/FiraSans-Medium-8f9a781e4970d388.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/SourceCodePro-Regular-562dcc5011b6de7d.ttf.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/SourceCodePro-Semibold-d899c5a5c4aeb14a.ttf.woff2">`)</script><link·rel="stylesheet"·href="../../static.files/normalize-76eba96aa4d2e634.css"><link·rel="stylesheet"·href="../../static.files/rustdoc-35f9e32502181f1e.css"><meta·name="rustdoc-vars"·data-root-path="../../"·data-static-root-path="../../static.files/"·data-current-crate="alloc"·data-themes=""·data-resource-suffix="1.78.0"·data-rustdoc-version="1.78.0"·data-channel="1.78.0"·data-search-js="search-42d8da7a6b9792c2.js"·data-settings-js="settings-4313503d2e1961c2.js"·><script·src="../../static.files/storage-4c98445ec4002617.js"></script><script·defer·src="sidebar-items1.78.0.js"></script><script·defer·src="../../static.files/main-12cf3b4f4f9dc36d.js"></script><noscript><link·rel="stylesheet"·href="../../static.files/noscript-04d5337699b92874.css"></noscript><link·rel="alternate·icon"·type="image/png"·href="../../static.files/favicon-16x16-8b506e7a72182f1c.png"><link·rel="alternate·icon"·type="image/png"·href="../../static.files/favicon-32x32-422f7d1d52889060.png"><link·rel="icon"·type="image/svg+xml"·href="../../static.files/favicon-2c020d218678b618.svg"></head><body·class="rustdoc·struct"><!--[if·lte·IE·11]><div·class="warning">This·old·browser·is·unsupported·and·will·most·likely·display·funky·things.</div><![endif]--><nav·class="mobile-topbar"><button·class="sidebar-menu-toggle"·title="show·sidebar"></button><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-151179464ae7ed46.svg"·alt=""></a></nav><nav·class="sidebar"><div·class="sidebar-crate"><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-151179464ae7ed46.svg"·alt="logo"></a><h2><a·href="../../alloc/index.html">alloc</a><span·class="version">1.78.0</span></h2></div><h2·class="location"><a·href="#">Global</a></h2><div·class="sidebar-elems"><section><h3><a·href="#trait-implementations">Trait·Implementations</a></h3><ul·class="block·trait-implementation"><li><a·href="#impl-Allocator-for-Global">Allocator</a></li><li><a·href="#impl-Clone-for-Global">Clone</a></li><li><a·href="#impl-Copy-for-Global">Copy</a></li><li><a·href="#impl-Debug-for-Global">Debug</a></li><li><a·href="#impl-Default-for-Global">Default</a></li><li><a·href="#impl-DispatchFromDyn%3CBox%3CU%3E%3E-for-Box%3CT%3E">DispatchFromDyn&lt;Box&lt;U&gt;&gt;</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">Freeze</a></li><li><a·href="#impl-RefUnwindSafe-for-Global">RefUnwindSafe</a></li><li><a·href="#impl-Send-for-Global">Send</a></li><li><a·href="#impl-Sync-for-Global">Sync</a></li><li><a·href="#impl-Unpin-for-Global">Unpin</a></li><li><a·href="#impl-UnwindSafe-for-Global">UnwindSafe</a></li></ul><h3><a·href="#blanket-implementations">Blanket·Implementations</a></h3><ul·class="block·blanket-implementation"><li><a·href="#impl-Any-for-T">Any</a></li><li><a·href="#impl-Borrow%3CT%3E-for-T">Borrow&lt;T&gt;</a></li><li><a·href="#impl-BorrowMut%3CT%3E-for-T">BorrowMut&lt;T&gt;</a></li><li><a·href="#impl-From%3CT%3E-for-T">From&lt;T&gt;</a></li><li><a·href="#impl-Into%3CU%3E-for-T">Into&lt;U&gt;</a></li><li><a·href="#impl-ToOwned-for-T">ToOwned</a></li><li><a·href="#impl-TryFrom%3CU%3E-for-T">TryFrom&lt;U&gt;</a></li><li><a·href="#impl-TryInto%3CU%3E-for-T">TryInto&lt;U&gt;</a></li></ul></section><h2><a·href="index.html">In·alloc::alloc</a></h2></div></nav><div·class="sidebar-resizer"></div>
2 ····<main><div·class="width-limiter"><nav·class="sub"><form·class="search-form"><span></span><div·id="sidebar-button"·tabindex="-1"><a·href="../../alloc/all.html"·title="show·sidebar"></a></div><input·class="search-input"·name="search"·aria-label="Run·search·in·the·documentation"·autocomplete="off"·spellcheck="false"·placeholder="Click·or·press·‘S’·to·search,·‘?’·for·more·options…"·type="search"><div·id="help-button"·tabindex="-1"><a·href="../../help.html"·title="help">?</a></div><div·id="settings-menu"·tabindex="-1"><a·href="../../settings.html"·title="settings"><img·width="22"·height="22"·alt="Change·settings"·src="../../static.files/wheel-7b819b6101059cd0.svg"></a></div></form></nav><section·id="main-content"·class="content"><div·class="main-heading"><h1>Struct·<a·href="../index.html">alloc</a>::<wbr><a·href="index.html">alloc</a>::<wbr><a·class="struct"·href="#">Global</a><button·id="copy-path"·title="Copy·item·path·to·clipboard"><img·src="../../static.files/clipboard-7571035ce49a181d.svg"·width="19"·height="18"·alt="Copy·item·path"></button></h1><span·class="out-of-band"><a·class="src"·href="../../src/alloc/alloc.rs.html#55">source</a>···<button·id="toggle-all-docs"·title="collapse·all·docs">[<span>&#x2212;</span>]</button></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 ····<main><div·class="width-limiter"><nav·class="sub"><form·class="search-form"><span></span><div·id="sidebar-button"·tabindex="-1"><a·href="../../alloc/all.html"·title="show·sidebar"></a></div><input·class="search-input"·name="search"·aria-label="Run·search·in·the·documentation"·autocomplete="off"·spellcheck="false"·placeholder="Click·or·press·‘S’·to·search,·‘?’·for·more·options…"·type="search"><div·id="help-button"·tabindex="-1"><a·href="../../help.html"·title="help">?</a></div><div·id="settings-menu"·tabindex="-1"><a·href="../../settings.html"·title="settings"><img·width="22"·height="22"·alt="Change·settings"·src="../../static.files/wheel-7b819b6101059cd0.svg"></a></div></form></nav><section·id="main-content"·class="content"><div·class="main-heading"><h1>Struct·<a·href="../index.html">alloc</a>::<wbr><a·href="index.html">alloc</a>::<wbr><a·class="struct"·href="#">Global</a><button·id="copy-path"·title="Copy·item·path·to·clipboard"><img·src="../../static.files/clipboard-7571035ce49a181d.svg"·width="19"·height="18"·alt="Copy·item·path"></button></h1><span·class="out-of-band"><a·class="src"·href="../../src/alloc/alloc.rs.html#55">source</a>···<button·id="toggle-all-docs"·title="collapse·all·docs">[<span>&#x2212;</span>]</button></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>
3 <p>This·type·implements·the·<a·href="trait.Allocator.html"·title="trait·alloc::alloc::Allocator"><code>Allocator</code></a>·trait·by·forwarding·calls3 <p>This·type·implements·the·<a·href="trait.Allocator.html"·title="trait·alloc::alloc::Allocator"><code>Allocator</code></a>·trait·by·forwarding·calls
4 to·the·allocator·registered·with·the·<code>#[global_allocator]</code>·attribute4 to·the·allocator·registered·with·the·<code>#[global_allocator]</code>·attribute
5 if·there·is·one,·or·the·<code>std</code>·crate’s·default.</p>5 if·there·is·one,·or·the·<code>std</code>·crate’s·default.</p>
6 <p>Note:·while·this·type·is·unstable,·the·functionality·it·provides·can·be6 <p>Note:·while·this·type·is·unstable,·the·functionality·it·provides·can·be
7 accessed·through·the·<a·href="index.html#functions"·title="mod·alloc::alloc">free·functions·in·<code>alloc</code></a>.</p>7 accessed·through·the·<a·href="index.html#functions"·title="mod·alloc::alloc">free·functions·in·<code>alloc</code></a>.</p>
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-Allocator-for-Global"·class="impl"><a·class="src·rightside"·href="../../src/alloc/alloc.rs.html#240-324">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#242-244">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:·a6c83175e44b28abe2b73b0e3e5ce189bdea102445beddf9a5c5eac118911196·...·]/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#261-269">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 </div></details><h2·id="trait-implementations"·class="section-header">Trait·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#240-324">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#242-244">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.78.0/core/result/enum.Result.html"·title="enum·core::result::Result">Result</a>&lt;<a·class="struct"·href="https://doc.rust-lang.org/1.78.0/core/ptr/non_null/struct.NonNull.html"·title="struct·core::ptr::non_null::NonNull">NonNu[·...·truncated·by·diffoscope;·len:·2652,·SHA:·541e7944be8cec8f53cea458bf24cddf5f222b3ae02de244b6a7eae756c74b39·...·]/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#261-269">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>(
9 ····&amp;self,9 ····&amp;self,
10 ····ptr:·<a·class="struct"·href="../../core/ptr/non_null/struct.NonNull.html"·title="struct·core::ptr::non_null::NonNull">NonNull</a>&lt;<a·class="primitive"·href="../../core/primitive.u8.html">u8</a>&gt;,10 ····ptr:·<a·class="struct"·href="https://doc.rust-lang.org/1.78.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.78.0/core/primitive.u8.html">u8</a>&gt;,
11 ····old_layout:·<a·class="struct"·href="struct.Layout.html"·title="struct·alloc::alloc::Layout">Layout</a>,11 ····old_layout:·<a·class="struct"·href="struct.Layout.html"·title="struct·alloc::alloc::Layout">Layout</a>,
12 ····new_layout:·<a·class="struct"·href="struct.Layout.html"·title="struct·alloc::alloc::Layout">Layout</a>12 ····new_layout:·<a·class="struct"·href="struct.Layout.html"·title="struct·alloc::alloc::Layout">Layout</a>
13 )·-&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#272-280">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 )·-&gt;·<a·class="enum"·href="https://doc.rust-lang.org/1.78.0/core/result/enum.Result.html"·title="enum·core::result::Result">Result</a>&lt;<a·class="struct"·href="https://doc.rust-lang.org/1.78.0/core/ptr/non_null/struct.NonNull.html"·title="struct·core::ptr::non_null::NonNull">NonNu[·...·truncated·by·diffoscope;·len:·70,·SHA:·481746ff5f6daf977bb6d18d396e53f0cb38904b4dbc6cf313c8c29972c282a1·...·]/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#272-280">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>(
14 ····&amp;self,14 ····&amp;self,
15 ····ptr:·<a·class="struct"·href="../../core/ptr/non_null/struct.NonNull.html"·title="struct·core::ptr::non_null::NonNull">NonNull</a>&lt;<a·class="primitive"·href="../../core/primitive.u8.html">u8</a>&gt;,15 ····ptr:·<a·class="struct"·href="https://doc.rust-lang.org/1.78.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.78.0/core/primitive.u8.html">u8</a>&gt;,
16 ····old_layout:·<a·class="struct"·href="struct.Layout.html"·title="struct·alloc::alloc::Layout">Layout</a>,16 ····old_layout:·<a·class="struct"·href="struct.Layout.html"·title="struct·alloc::alloc::Layout">Layout</a>,
17 ····new_layout:·<a·class="struct"·href="struct.Layout.html"·title="struct·alloc::alloc::Layout">Layout</a>17 ····new_layout:·<a·class="struct"·href="struct.Layout.html"·title="struct·alloc::alloc::Layout">Layout</a>
18 )·-&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·being18 )·-&gt;·<a·class="enum"·href="https://doc.rust-lang.org/1.78.0/core/result/enum.Result.html"·title="enum·core::result::Result">Result</a>&lt;<a·class="struct"·href="https://doc.rust-lang.org/1.78.0/core/ptr/non_null/struct.NonNull.html"·title="struct·core::ptr::non_null::NonNull">NonNu[·...·truncated·by·diffoscope;·len:·70,·SHA:·481746ff5f6daf977bb6d18d396e53f0cb38904b4dbc6cf313c8c29972c282a1·...·]/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
19 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#283-323">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 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#283-323">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>(
20 ····&amp;self,20 ····&amp;self,
21 ····ptr:·<a·class="struct"·href="../../core/ptr/non_null/struct.NonNull.html"·title="struct·core::ptr::non_null::NonNull">NonNull</a>&lt;<a·class="primitive"·href="../../core/primitive.u8.html">u8</a>&gt;,21 ····ptr:·<a·class="struct"·href="https://doc.rust-lang.org/1.78.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.78.0/core/primitive.u8.html">u8</a>&gt;,
22 ····old_layout:·<a·class="struct"·href="struct.Layout.html"·title="struct·alloc::alloc::Layout">Layout</a>,22 ····old_layout:·<a·class="struct"·href="struct.Layout.html"·title="struct·alloc::alloc::Layout">Layout</a>,
23 ····new_layout:·<a·class="struct"·href="struct.Layout.html"·title="struct·alloc::alloc::Layout">Layout</a>23 ····new_layout:·<a·class="struct"·href="struct.Layout.html"·title="struct·alloc::alloc::Layout">Layout</a>
24 )·-&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:·915,·SHA:·42350cdffbee702f159444794df312d230dc211dbf4ed708e7a9101dd71ad5a4·...·]/core/primitive.reference.html">&amp;Self</a><div·class="where">where24 )·-&gt;·<a·class="enum"·href="https://doc.rust-lang.org/1.78.0/core/result/enum.Result.html"·title="enum·core::result::Result">Result</a>&lt;<a·class="struct"·href="https://doc.rust-lang.org/1.78.0/core/ptr/non_null/struct.NonNull.html"·title="struct·core::ptr::non_null::NonNull">NonNu[·...·truncated·by·diffoscope;·len:·1050,·SHA:·f32ee16068ae0de47a46ffe5c50a0a15b217a3665aa3d5d183ddc39440e3ff0e·...·]/core/primitive.reference.html">&amp;Self</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><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:·8841,·SHA:·3940ef7193b8b6a68b8704a37703cc985a624b74b56c78cc00187847d44a04ab·...·]/core/any/trait.Any.html"·title="trait·core::any::Any">Any</a>·for·T<div·class="where">where25 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experiment[·...·truncated·by·diffoscope;·len:·9489,·SHA:·2fbfee90861c01e4628bcdb3ea5c02dc71f406849253ea6cedd6bbb6b4380416·...·]/core/any/trait.Any.html"·title="trait·core::any::Any">Any</a>·for·T<div·class="where">where
26 ····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:·9db8bacb767d75cc3351ca7341c388130aa05ebef490d992be5374f16eedc378·...·]/src/core/borrow.rs.html#208">source</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">where26 ····T:·'static·+·?<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">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:·039b8952ccb1ab7d8f15cd519cbc10f4afc149276d0f9cfd3a53117d606059df·...·]/src/core/borrow.rs.html#208">source</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
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"·class="method·trait-impl"><a·class="src·r[·...·truncated·by·diffoscope;·len:·629,·SHA:·b2ffbab17ff1ef71ba4c506a3aaa515da2082da6f02a53862ce1ca2b2b25f5b4·...·]/src/core/borrow.rs.html#216">source</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">where27 ····T:·?<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/marker/trait.Sized.html"·title="trait·core::marker::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:·952d76e7bcf7b521fffa418ce638abf69976de0942360e56f93e419ca3389394·...·]/src/core/borrow.rs.html#216">source</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
28 ····T:·?<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::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:·befefcb8cb29dc857e1f3050572f6f470317e3350e0851c4ed6e56cc38673a92·...·]/core/convert/trait.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.78.0/core/marker/trait.Sized.html"·title="trait·core::marker::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:·204bc28c8766993ff59d26bb790f1469ab686e6f172c57f35aa987a81507a7b1·...·]/core/convert/trait.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.78.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.78.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.78.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:·2cf76a8ca501b2a1fef209fed846779ab1bed3b75f52c7425335e3ce04e6b272·...·]/core/convert/trait.Into.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.78.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#83-95">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#83-95">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·href="#associ[·...·truncated·by·diffoscope;·len:·1795,·SHA:·b8c26d2756505ca680539dc8d84062e328ba98d1ac09cee9448c528adf7cafc0·...·]/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.78.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:·1903,·SHA:·9a4eb5c800ed211d64f5ef4bbb9fe5e4bfede4b7cdffd1e1968bf0b3d77a2705·...·]/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"·class="associatedtype·trait-impl"><a·hre[·...·truncated·by·diffoscope;·len:·1591,·SHA:·8537afacf1b3cf6b9fb7db778975d49d8a8e5988d420715e464ff4a79dd696c5·...·]/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.78.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"·class="associ[·...·truncated·by·diffoscope;·len:·1861,·SHA:·78398046ba16de2f66a8201a11d6a2dd405fceedeabfcaa37481e77092687e6f·...·]/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-1"·class="associatedtype·trait-i[·...·truncated·by·diffoscope;·len:·1231,·SHA:·7843e7b6cca73922417e4154886c0df66f016d274b48933c21bdb75b67479d5b·...·]/core/convert/trait.TryFrom.html#associatedtype.Error"·title="type·core::convert::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.78.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-1"·cl[·...·truncated·by·diffoscope;·len:·1474,·SHA:·ca90cccb6c86c654c95a1aaec456fbbe4b115f0d5a700e7d156e823346d70894·...·]/core/convert/trait.TryFrom.html#associatedtype.Error"·title="type·core::convert::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.8 KB
./usr/share/doc/rust-web-doc/html/alloc/alloc/struct.Layout.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="Layout·of·a·block·of·memory."><title>Layout·in·alloc::alloc·-·Rust</title><script>·if·(window.location.protocol·!==·"file:")·document.write(`<link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/SourceSerif4-Regular-46f98efaafac5295.ttf.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/FiraSans-Regular-018c141bf0843ffd.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/FiraSans-Medium-8f9a781e4970d388.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/SourceCodePro-Regular-562dcc5011b6de7d.ttf.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/SourceCodePro-Semibold-d899c5a5c4aeb14a.ttf.woff2">`)</script><link·rel="stylesheet"·href="../../static.files/normalize-76eba96aa4d2e634.css"><link·rel="stylesheet"·href="../../static.files/rustdoc-35f9e32502181f1e.css"><meta·name="rustdoc-vars"·data-root-path="../../"·data-static-root-path="../../static.files/"·data-current-crate="alloc"·data-themes=""·data-resource-suffix="1.78.0"·data-rustdoc-version="1.78.0"·data-channel="1.78.0"·data-search-js="search-42d8da7a6b9792c2.js"·data-settings-js="settings-4313503d2e1961c2.js"·><script·src="../../static.files/storage-4c98445ec4002617.js"></script><script·defer·src="sidebar-items1.78.0.js"></script><script·defer·src="../../static.files/main-12cf3b4f4f9dc36d.js"></script><noscript><link·rel="stylesheet"·href="../../static.files/noscript-04d5337699b92874.css"></noscript><link·rel="alternate·icon"·type="image/png"·href="../../static.files/favicon-16x16-8b506e7a72182f1c.png"><link·rel="alternate·icon"·type="image/png"·href="../../static.files/favicon-32x32-422f7d1d52889060.png"><link·rel="icon"·type="image/svg+xml"·href="../../static.files/favicon-2c020d218678b618.svg"></head><body·class="rustdoc·struct"><!--[if·lte·IE·11]><div·class="warning">This·old·browser·is·unsupported·and·will·most·likely·display·funky·things.</div><![endif]--><nav·class="mobile-topbar"><button·class="sidebar-menu-toggle"·title="show·sidebar"></button><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-151179464ae7ed46.svg"·alt=""></a></nav><nav·class="sidebar"><div·class="sidebar-crate"><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-151179464ae7ed46.svg"·alt="logo"></a><h2><a·href="../../alloc/index.html">alloc</a><span·class="version">1.78.0</span></h2></div><h2·class="location"><a·href="#">Layout</a></h2><div·class="sidebar-elems"><section><h3><a·href="#implementations">Methods</a></h3><ul·class="block·method"><li><a·href="#method.align">align</a></li><li><a·href="#method.align_to">align_to</a></li><li><a·href="#method.array">array</a></li><li><a·href="#method.dangling">dangling</a></li><li><a·href="#method.extend">extend</a></li><li><a·href="#method.extend_packed">extend_packed</a></li><li><a·href="#method.for_value">for_value</a></li><li><a·href="#method.for_value_raw">for_value_raw</a></li><li><a·href="#method.from_size_align">from_size_align</a></li><li><a·href="#method.from_size_align_unchecked">from_size_align_unchecked</a></li><li><a·href="#method.new">new</a></li><li><a·href="#method.pad_to_align">pad_to_align</a></li><li><a·href="#method.padding_needed_for">padding_needed_for</a></li><li><a·href="#method.repeat">repeat</a></li><li><a·href="#method.repeat_packed">repeat_packed</a></li><li><a·href="#method.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">Clone</a></li><li><a·href="#impl-Copy-for-Layout">Copy</a></li><li><a·href="#impl-Debug-for-Layout">Debug</a></li><li><a·href="#impl-Eq-for-Layout">Eq</a></li><li><a·href="#impl-Hash-for-Layout">Hash</a></li><li><a·href="#impl-PartialEq-for-Layout">PartialEq</a></li><li><a·href="#impl-StructuralPartialEq-for-Layout">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">Freeze</a></li><li><a·href="#impl-RefUnwindSafe-for-Layout">RefUnwindSafe</a></li><li><a·href="#impl-Send-for-Layout">Send</a></li><li><a·href="#impl-Sync-for-Layout">Sync</a></li><li><a·href="#impl-Unpin-for-Layout">Unpin</a></li><li><a·href="#impl-UnwindSafe-for-Layout">UnwindSafe</a></li></ul><h3><a·href="#blanket-implementations">Blanket·Implementations</a></h3><ul·class="block·blanket-implementation"><li><a·href="#impl-Any-for-T">Any</a></li><li><a·href="#impl-Borrow%3CT%3E-for-T">Borrow&lt;T&gt;</a></li><li><a·href="#impl-BorrowMut%3CT%3E-for-T">BorrowMut&lt;T&gt;</a></li><li><a·href="#impl-From%3CT%3E-for-T">From&lt;T&gt;</a></li><li><a·href="#impl-Into%3CU%3E-for-T">Into&lt;U&gt;</a></li><li><a·href="#impl-ToOwned-for-T">ToOwned</a></li><li><a·href="#impl-TryFrom%3CU%3E-for-T">TryFrom&lt;U&gt;</a></li><li><a·href="#impl-TryInto%3CU%3E-for-T">TryInto&lt;U&gt;</a></li></ul></section><h2><a·href="index.html">In·alloc::alloc</a></h2></div></nav><div·class="sidebar-resizer"></div>1 <!DOCTYPE·html><html·lang="en"><head><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.write(`<link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/SourceSerif4-Regular-46f98efaafac5295.ttf.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/FiraSans-Regular-018c141bf0843ffd.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/FiraSans-Medium-8f9a781e4970d388.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/SourceCodePro-Regular-562dcc5011b6de7d.ttf.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/SourceCodePro-Semibold-d899c5a5c4aeb14a.ttf.woff2">`)</script><link·rel="stylesheet"·href="../../static.files/normalize-76eba96aa4d2e634.css"><link·rel="stylesheet"·href="../../static.files/rustdoc-35f9e32502181f1e.css"><meta·name="rustdoc-vars"·data-root-path="../../"·data-static-root-path="../../static.files/"·data-current-crate="alloc"·data-themes=""·data-resource-suffix="1.78.0"·data-rustdoc-version="1.78.0"·data-channel="1.78.0"·data-search-js="search-42d8da7a6b9792c2.js"·data-settings-js="settings-4313503d2e1961c2.js"·><script·src="../../static.files/storage-4c98445ec4002617.js"></script><script·defer·src="sidebar-items1.78.0.js"></script><script·defer·src="../../static.files/main-12cf3b4f4f9dc36d.js"></script><noscript><link·rel="stylesheet"·href="../../static.files/noscript-04d5337699b92874.css"></noscript><link·rel="alternate·icon"·type="image/png"·href="../../static.files/favicon-16x16-8b506e7a72182f1c.png"><link·rel="alternate·icon"·type="image/png"·href="../../static.files/favicon-32x32-422f7d1d52889060.png"><link·rel="icon"·type="image/svg+xml"·href="../../static.files/favicon-2c020d218678b618.svg"></head><body·class="rustdoc·struct"><!--[if·lte·IE·11]><div·class="warning">This·old·browser·is·unsupported·and·will·most·likely·display·funky·things.</div><![endif]--><nav·class="mobile-topbar"><button·class="sidebar-menu-toggle"·title="show·sidebar"></button><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-151179464ae7ed46.svg"·alt=""></a></nav><nav·class="sidebar"><div·class="sidebar-crate"><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-151179464ae7ed46.svg"·alt="logo"></a><h2><a·href="../../alloc/index.html">alloc</a><span·class="version">1.78.0</span></h2></div><h2·class="location"><a·href="#">Layout</a></h2><div·class="sidebar-elems"><section><h3><a·href="#implementations">Methods</a></h3><ul·class="block·method"><li><a·href="#method.align">align</a></li><li><a·href="#method.align_to">align_to</a></li><li><a·href="#method.array">array</a></li><li><a·href="#method.dangling">dangling</a></li><li><a·href="#method.extend">extend</a></li><li><a·href="#method.extend_packed">extend_packed</a></li><li><a·href="#method.for_value">for_value</a></li><li><a·href="#method.for_value_raw">for_value_raw</a></li><li><a·href="#method.from_size_align">from_size_align</a></li><li><a·href="#method.from_size_align_unchecked">from_size_align_unchecked</a></li><li><a·href="#method.new">new</a></li><li><a·href="#method.pad_to_align">pad_to_align</a></li><li><a·href="#method.padding_needed_for">padding_needed_for</a></li><li><a·href="#method.repeat">repeat</a></li><li><a·href="#method.repeat_packed">repeat_packed</a></li><li><a·href="#method.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">Clone</a></li><li><a·href="#impl-Copy-for-Layout">Copy</a></li><li><a·href="#impl-Debug-for-Layout">Debug</a></li><li><a·href="#impl-Eq-for-Layout">Eq</a></li><li><a·href="#impl-Hash-for-Layout">Hash</a></li><li><a·href="#impl-PartialEq-for-Layout">PartialEq</a></li><li><a·href="#impl-StructuralPartialEq-for-Layout">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">Freeze</a></li><li><a·href="#impl-RefUnwindSafe-for-Layout">RefUnwindSafe</a></li><li><a·href="#impl-Send-for-Layout">Send</a></li><li><a·href="#impl-Sync-for-Layout">Sync</a></li><li><a·href="#impl-Unpin-for-Layout">Unpin</a></li><li><a·href="#impl-UnwindSafe-for-Layout">UnwindSafe</a></li></ul><h3><a·href="#blanket-implementations">Blanket·Implementations</a></h3><ul·class="block·blanket-implementation"><li><a·href="#impl-Any-for-T">Any</a></li><li><a·href="#impl-Borrow%3CT%3E-for-T">Borrow&lt;T&gt;</a></li><li><a·href="#impl-BorrowMut%3CT%3E-for-T">BorrowMut&lt;T&gt;</a></li><li><a·href="#impl-From%3CT%3E-for-T">From&lt;T&gt;</a></li><li><a·href="#impl-Into%3CU%3E-for-T">Into&lt;U&gt;</a></li><li><a·href="#impl-ToOwned-for-T">ToOwned</a></li><li><a·href="#impl-TryFrom%3CU%3E-for-T">TryFrom&lt;U&gt;</a></li><li><a·href="#impl-TryInto%3CU%3E-for-T">TryInto&lt;U&gt;</a></li></ul></section><h2><a·href="index.html">In·alloc::alloc</a></h2></div></nav><div·class="sidebar-resizer"></div>
2 ····<main><div·class="width-limiter"><nav·class="sub"><form·class="search-form"><span></span><div·id="sidebar-button"·tabindex="-1"><a·href="../../alloc/all.html"·title="show·sidebar"></a></div><input·class="search-input"·name="search"·aria-label="Run·search·in·the·documentation"·autocomplete="off"·spellcheck="false"·placeholder="Click·or·press·‘S’·to·search,·‘?’·for·more·options…"·type="search"><div·id="help-button"·tabindex="-1"><a·href="../../help.html"·title="help">?</a></div><div·id="settings-menu"·tabindex="-1"><a·href="../../settings.html"·title="settings"><img·width="22"·height="22"·alt="Change·settings"·src="../../static.files/wheel-7b819b6101059cd0.svg"></a></div></form></nav><section·id="main-content"·class="content"><div·class="main-heading"><h1>Struct·<a·href="../index.html">alloc</a>::<wbr><a·href="index.html">alloc</a>::<wbr><a·class="struct"·href="#">Layout</a><button·id="copy-path"·title="Copy·item·path·to·clipboard"><img·src="../../static.files/clipboard-7571035ce49a181d.svg"·width="19"·height="18"·alt="Copy·item·path"></button></h1><span·class="out-of-band"><span·class="since"·title="Stable·since·Rust·version·1.28.0">1.28.0</span>···<a·class="src"·href="../../src/core/alloc/layout.rs.html#38">source</a>···<button·id="toggle-all-docs"·title="collapse·all·docs">[<span>&#x2212;</span>]</button></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 ····<main><div·class="width-limiter"><nav·class="sub"><form·class="search-form"><span></span><div·id="sidebar-button"·tabindex="-1"><a·href="../../alloc/all.html"·title="show·sidebar"></a></div><input·class="search-input"·name="search"·aria-label="Run·search·in·the·documentation"·autocomplete="off"·spellcheck="false"·placeholder="Click·or·press·‘S’·to·search,·‘?’·for·more·options…"·type="search"><div·id="help-button"·tabindex="-1"><a·href="../../help.html"·title="help">?</a></div><div·id="settings-menu"·tabindex="-1"><a·href="../../settings.html"·title="settings"><img·width="22"·height="22"·alt="Change·settings"·src="../../static.files/wheel-7b819b6101059cd0.svg"></a></div></form></nav><section·id="main-content"·class="content"><div·class="main-heading"><h1>Struct·<a·href="../index.html">alloc</a>::<wbr><a·href="index.html">alloc</a>::<wbr><a·class="struct"·href="#">Layout</a><button·id="copy-path"·title="Copy·item·path·to·clipboard"><img·src="../../static.files/clipboard-7571035ce49a181d.svg"·width="19"·height="18"·alt="Copy·item·path"></button></h1><span·class="out-of-band"><span·class="since"·title="Stable·since·Rust·version·1.28.0">1.28.0</span>···<a·class="src"·href="https://doc.rust-lang.org/1.78.0/src/core/alloc/layout.rs.html#38">source</a>···<button·id="toggle-all-docs"·title="collapse·all·docs">[<span>&#x2212;</span>]</button></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>
3 <p>An·instance·of·<code>Layout</code>·describes·a·particular·layout·of·memory.3 <p>An·instance·of·<code>Layout</code>·describes·a·particular·layout·of·memory.
4 You·build·a·<code>Layout</code>·up·as·an·input·to·give·to·an·allocator.</p>4 You·build·a·<code>Layout</code>·up·as·an·input·to·give·to·an·allocator.</p>
5 <p>All·layouts·have·an·associated·size·and·a·power-of-two·alignment.</p>5 <p>All·layouts·have·an·associated·size·and·a·power-of-two·alignment.</p>
6 <p>(Note·that·layouts·are·<em>not</em>·required·to·have·non-zero·size,6 <p>(Note·that·layouts·are·<em>not</em>·required·to·have·non-zero·size,
7 even·though·<code>GlobalAlloc</code>·requires·that·all·memory·requests7 even·though·<code>GlobalAlloc</code>·requires·that·all·memory·requests
8 be·non-zero·in·size.·A·caller·must·either·ensure·that·conditions8 be·non-zero·in·size.·A·caller·must·either·ensure·that·conditions
9 like·this·are·met,·use·specific·allocators·with·looser9 like·this·are·met,·use·specific·allocators·with·looser
10 requirements,·or·use·the·more·lenient·<code>Allocator</code>·interface.)</p>10 requirements,·or·use·the·more·lenient·<code>Allocator</code>·interface.)</p>
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-Layout"·class="impl"><a·class="src·rightside"·href="../../src/core/alloc/layout.rs.html#52">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:·229,·SHA:·d161b257d93e47b6aee47fb0df1c1ed33cacb187b13c796b85d30c592497b20d·...·]/src/core/alloc/layout.rs.html#68">source</a></span><h4·class="code-header">pub·const·fn·<a·href="#method.from_size_align"·class="fn">from_size_align</a>(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-Layout"·class="impl"><a·class="src·rightside"·href="https://doc.rust-lang.org/1.78.0/src/core/alloc/layout.rs.html#52">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:·283,·SHA:·68569ff1306000ea26e35a41e3780751d785eb3c8d92c92d24dc1d8e68e7e441·...·]/src/core/alloc/layout.rs.html#68">source</a></span><h4·class="code-header">pub·const·fn·<a·href="#method.from_size_align"·class="fn">from_size_align</a>(
12 ····size:·<a·class="primitive"·href="../../core/primitive.usize.html">usize</a>,12 ····size:·<a·class="primitive"·href="https://doc.rust-lang.org/1.78.0/core/primitive.usize.html">usize</a>,
13 ····align:·<a·class="primitive"·href="../../core/primitive.usize.html">usize</a>13 ····align:·<a·class="primitive"·href="https://doc.rust-lang.org/1.78.0/core/primitive.usize.html">usize</a>
14 )·-&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>,14 )·-&gt;·<a·class="enum"·href="https://doc.rust-lang.org/1.78.0/core/result/enum.Result.html"·title="enum·core::result::Result">Result</a>&lt;<a·class="struct"·href="struct.Layout.html"·title="struct·alloc::alloc::Layout">Layout</a>,·<a·class="struct"·href="struct.LayoutError.html"·title="struct·alloc::alloc::LayoutError">LayoutError</a>&gt;</h4></section></summary><div·class="docblock"><p>Constructs·a·<code>Layout</code>·from·a·given·<code>size</code>·and·<code>align</code>,
15 or·returns·<code>LayoutError</code>·if·any·of·the·following·conditions15 or·returns·<code>LayoutError</code>·if·any·of·the·following·conditions
16 are·not·met:</p>16 are·not·met:</p>
17 <ul>17 <ul>
18 <li>18 <li>
19 <p><code>align</code>·must·not·be·zero,</p>19 <p><code>align</code>·must·not·be·zero,</p>
20 </li>20 </li>
21 <li>21 <li>
Offset 23, 95 lines modifiedOffset 23, 95 lines modified
23 </li>23 </li>
24 <li>24 <li>
25 <p><code>size</code>,·when·rounded·up·to·the·nearest·multiple·of·<code>align</code>,25 <p><code>size</code>,·when·rounded·up·to·the·nearest·multiple·of·<code>align</code>,
26 must·not·overflow·isize·(i.e.,·the·rounded·value·must·be26 must·not·overflow·isize·(i.e.,·the·rounded·value·must·be
27 less·than·or·equal·to·<code>isize::MAX</code>).</p>27 less·than·or·equal·to·<code>isize::MAX</code>).</p>
28 </li>28 </li>
29 </ul>29 </ul>
30 </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="const·since·1.36.0">const:·1.36.0</span>···<a·class="src"·href="../../src/core/alloc/layout.rs.html#118">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>(30 </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="const·since·1.36.0">const:·1.36.0</span>···<a·class="src"·href="https://doc.rust-lang.org/1.78.0/src/core/alloc/layout.rs.html#118">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 ····size:·<a·class="primitive"·href="../../core/primitive.usize.html">usize</a>,31 ····size:·<a·class="primitive"·href="https://doc.rust-lang.org/1.78.0/core/primitive.usize.html">usize</a>,
32 ····align:·<a·class="primitive"·href="../../core/primitive.usize.html">usize</a>32 ····align:·<a·class="primitive"·href="https://doc.rust-lang.org/1.78.0/core/primitive.usize.html">usize</a>
33 )·-&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>33 )·-&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 <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>This·function·is·unsafe·as·it·does·not·verify·the·preconditions·from35 <p>This·function·is·unsafe·as·it·does·not·verify·the·preconditions·from
36 <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>36 <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 </div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.size"·class="method"><span·class="rightside"><span·class="since"·title="const·since·1.50.0">const:·1.50.0</span>···<a·class="src"·href="../../src/core/alloc/layout.rs.html#128">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>37 </div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.size"·class="method"><span·class="rightside"><span·class="since"·title="const·since·1.50.0">const:·1.50.0</span>···<a·class="src"·href="https://doc.rust-lang.org/1.78.0/src/core/alloc/layout.rs.html#128">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.78.0/core/primitive.usize.html">usize</a></h4></section></summary><div·class="docblock"><p>The·minimum·size·in·bytes·for·a·memory·block·of·this·layout.</p>
38 </div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.align"·class="method"><span·class="rightside"><span·class="since"·title="const·since·1.50.0">const:·1.50.0</span>···<a·class="src"·href="../../src/core/alloc/layout.rs.html#141">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>38 </div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.align"·class="method"><span·class="rightside"><span·class="since"·title="const·since·1.50.0">const:·1.50.0</span>···<a·class="src"·href="https://doc.rust-lang.org/1.78.0/src/core/alloc/layout.rs.html#141">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.78.0/core/primitive.usize.html">usize</a></h4></section></summary><div·class="docblock"><p>The·minimum·byte·alignment·for·a·memory·block·of·this·layout.</p>
39 <p>The·returned·alignment·is·guaranteed·to·be·a·power·of·two.</p>39 <p>The·returned·alignment·is·guaranteed·to·be·a·power·of·two.</p>
40 </div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.new"·class="method"><span·class="rightside"><span·class="since"·title="const·since·1.42.0">const:·1.42.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.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>40 </div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.new"·class="method"><span·class="rightside"><span·class="since"·title="const·since·1.42.0">const:·1.42.0</span>···<a·class="src"·href="https://doc.rust-lang.org/1.78.0/src/core/alloc/layout.rs.html#150">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.for_value"·class="method"><span·class="rightside"><span·class="since"·title="const·unstable">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#165">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">where41 </div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.for_value"·class="method"><span·class="rightside"><span·class="since"·title="const·unstable">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.78.0/src/core/alloc/layout.rs.html#165">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.78.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
42 ····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·to42 ····T:·?<a·class="trait"·href="https://doc.rust-lang.org/1.78.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
43 allocate·backing·structure·for·<code>T</code>·(which·could·be·a·trait43 allocate·backing·structure·for·<code>T</code>·(which·could·be·a·trait
44 or·other·unsized·type·like·a·slice).</p>44 or·other·unsized·type·like·a·slice).</p>
45 </div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.for_value_raw"·class="method"><span·class="rightside"><span·class="since"·title="const·unstable">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#199">source</a></span><h4·class="code-header">pub·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">where45 </div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.for_value_raw"·class="method"><span·class="rightside"><span·class="since"·title="const·unstable">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.78.0/src/core/alloc/layout.rs.html#199">source</a></span><h4·class="code-header">pub·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.78.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
46 ····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·to46 ····T:·?<a·class="trait"·href="https://doc.rust-lang.org/1.78.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
47 allocate·backing·structure·for·<code>T</code>·(which·could·be·a·trait47 allocate·backing·structure·for·<code>T</code>·(which·could·be·a·trait
48 or·other·unsized·type·like·a·slice).</p>48 or·other·unsized·type·like·a·slice).</p>
49 <h5·id="safety-1"><a·class="doc-anchor"·href="#safety-1">§</a>Safety</h5>49 <h5·id="safety-1"><a·class="doc-anchor"·href="#safety-1">§</a>Safety</h5>
50 <p>This·function·is·only·safe·to·call·if·the·following·conditions·hold:</p>50 <p>This·function·is·only·safe·to·call·if·the·following·conditions·hold:</p>
51 <ul>51 <ul>
52 <li>If·<code>T</code>·is·<code>Sized</code>,·this·function·is·always·safe·to·call.</li>52 <li>If·<code>T</code>·is·<code>Sized</code>,·this·function·is·always·safe·to·call.</li>
53 <li>If·the·unsized·tail·of·<code>T</code>·is:53 <li>If·the·unsized·tail·of·<code>T</code>·is:
54 <ul>54 <ul>
55 <li>a·<a·href="../../core/primitive.slice.html"·title="primitive·slice">slice</a>,·then·the·length·of·the·slice·tail·must·be·an·initialized55 <li>a·<a·href="https://doc.rust-lang.org/1.78.0/core/primitive.slice.html"·title="primitive·slice">slice</a>,·then·the·length·of·the·slice·tail·must·be·an·initialized
56 integer,·and·the·size·of·the·<em>entire·value</em>56 integer,·and·the·size·of·the·<em>entire·value</em>
57 (dynamic·tail·length·+·statically·sized·prefix)·must·fit·in·<code>isize</code>.</li>57 (dynamic·tail·length·+·statically·sized·prefix)·must·fit·in·<code>isize</code>.</li>
58 <li>a·<a·href="../../book/ch17-02-trait-objects.html">trait·object</a>,·then·the·vtable·part·of·the·pointer·must·point58 <li>a·<a·href="../../book/ch17-02-trait-objects.html">trait·object</a>,·then·the·vtable·part·of·the·pointer·must·point
59 to·a·valid·vtable·for·the·type·<code>T</code>·acquired·by·an·unsizing·coercion,59 to·a·valid·vtable·for·the·type·<code>T</code>·acquired·by·an·unsizing·coercion,
60 and·the·size·of·the·<em>entire·value</em>60 and·the·size·of·the·<em>entire·value</em>
61 (dynamic·tail·length·+·statically·sized·prefix)·must·fit·in·<code>isize</code>.</li>61 (dynamic·tail·length·+·statically·sized·prefix)·must·fit·in·<code>isize</code>.</li>
62 <li>an·(unstable)·<a·href="../../unstable-book/language-features/extern-types.html">extern·type</a>,·then·this·function·is·always·safe·to62 <li>an·(unstable)·<a·href="../../unstable-book/language-features/extern-types.html">extern·type</a>,·then·this·function·is·always·safe·to
63 call,·but·may·panic·or·otherwise·return·the·wrong·value,·as·the63 call,·but·may·panic·or·otherwise·return·the·wrong·value,·as·the
64 extern·type’s·layout·is·not·known.·This·is·the·same·behavior·as64 extern·type’s·layout·is·not·known.·This·is·the·same·behavior·as
65 <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>65 <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>
66 <li>otherwise,·it·is·conservatively·not·allowed·to·call·this·function.</li>66 <li>otherwise,·it·is·conservatively·not·allowed·to·call·this·function.</li>
67 </ul>67 </ul>
68 </li>68 </li>
69 </ul>69 </ul>
70 </div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.dangling"·class="method"><span·class="rightside"><span·class="since"·title="const·unstable">const:·<a·href="https://github.com/rust-lang/rust/issues/55724"·title="Tracking·issue·for·alloc_layout_extra">unstable</a></span>···<a·class="src"·href="../../src/core/alloc/layout.rs.html#216">source</a></span><h4·class="code-header">pub·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_n[·...·truncated·by·diffoscope;·len:·61,·SHA:·7ca184cafb42b55892e9a8ab158fe5ccaa631245a6066dbb73521155cdcab048·...·]/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>70 </div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.dangling"·class="method"><span·class="rightside"><span·class="since"·title="const·unstable">const:·<a·href="https://github.com/rust-lang/rust/issues/55724"·title="Tracking·issue·for·alloc_layout_extra">unstable</a></span>···<a·class="src"·href="https://doc.rust-lang.org/1.78.0/src/core/alloc/layout.rs.html#216">source</a></span><h4·class="code-header">pub·fn·<a·href="#method.dangling"·class="fn">dangling</a>(&amp;self)·-&gt;·<a·class="struct"·href="https://doc.rust-lang.org/1.78.0/core/ptr/non_nu[·...·truncated·by·diffoscope;·len:·142,·SHA:·fbe621d15250c1c620ee9db15d5eb29d00804bf01d2b6df01bd23cff376c792f·...·]/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>
71 <p>Note·that·the·pointer·value·may·potentially·represent·a·valid·pointer,71 <p>Note·that·the·pointer·value·may·potentially·represent·a·valid·pointer,
72 which·means·this·must·not·be·used·as·a·“not·yet·initialized”72 which·means·this·must·not·be·used·as·a·“not·yet·initialized”
73 sentinel·value.·Types·that·lazily·allocate·must·track·initialization·by73 sentinel·value.·Types·that·lazily·allocate·must·track·initialization·by
74 some·other·means.</p>74 some·other·means.</p>
75 </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">1.44.0</span>···<a·class="src"·href="../../src/core/alloc/layout.rs.html#237">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·value75 </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">1.44.0</span>···<a·class="src"·href="https://doc.rust-lang.org/1.78.0/src/core/alloc/layout.rs.html#237">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.78.0/core/primit[·...·truncated·by·diffoscope;·len:·87,·SHA:·73341038949d4524032301b50dfecce1fe725809de162f26d31fb43903061c25·...·]/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
76 of·the·same·layout·as·<code>self</code>,·but·that·also·is·aligned·to76 of·the·same·layout·as·<code>self</code>,·but·that·also·is·aligned·to
77 alignment·<code>align</code>·(measured·in·bytes).</p>77 alignment·<code>align</code>·(measured·in·bytes).</p>
78 <p>If·<code>self</code>·already·meets·the·prescribed·alignment,·then·returns78 <p>If·<code>self</code>·already·meets·the·prescribed·alignment,·then·returns
79 <code>self</code>.</p>79 <code>self</code>.</p>
80 <p>Note·that·this·method·does·not·add·any·padding·to·the·overall80 <p>Note·that·this·method·does·not·add·any·padding·to·the·overall
81 size,·regardless·of·whether·the·returned·layout·has·a·different81 size,·regardless·of·whether·the·returned·layout·has·a·different
82 alignment.·In·other·words,·if·<code>K</code>·has·size·16,·<code>K.align_to(32)</code>82 alignment.·In·other·words,·if·<code>K</code>·has·size·16,·<code>K.align_to(32)</code>
83 will·<em>still</em>·have·size·16.</p>83 will·<em>still</em>·have·size·16.</p>
84 <p>Returns·an·error·if·the·combination·of·<code>self.size()</code>·and·the·given84 <p>Returns·an·error·if·the·combination·of·<code>self.size()</code>·and·the·given
85 <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>85 <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>
86 </div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.padding_needed_for"·class="method"><span·class="rightside"><span·class="since"·title="const·unstable">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.padding_needed_for"·class="fn">padding_needed_for</a>(&amp;self,·align:·<a·class="primitive"·href="../../core/primitive.usize.html">usize</a>)·-&gt;·<[·...·truncated·by·diffoscope;·len:·31,·SHA:·9a61f6cef7d9adf8017eb6e42b4bda9208503be96a2a4e33c75323514c5eb23a·...·]/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>86 </div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.padding_needed_for"·class="method"><span·class="rightside"><span·class="since"·title="const·unstable">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.78.0/src/core/alloc/layout.rs.html#262">source</a></span><h4·class="code-header">pub·fn·<a·href="#method.padding_needed_for"·class="fn">padding_needed_for</a>(&amp;self,·align:·<a·class="primitive"·href="https://doc.rust-lang.or[·...·truncated·by·diffoscope;·len:·112,·SHA:·14c1f8c36b3104d2ea5964b39a9abd0eb9f128f95523dffb16e1dd1c0df1a25b·...·]/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>
87 to·ensure·that·the·following·address·will·satisfy·<code>align</code>87 to·ensure·that·the·following·address·will·satisfy·<code>align</code>
88 (measured·in·bytes).</p>88 (measured·in·bytes).</p>
89 <p>e.g.,·if·<code>self.size()</code>·is·9,·then·<code>self.padding_needed_for(4)</code>89 <p>e.g.,·if·<code>self.size()</code>·is·9,·then·<code>self.padding_needed_for(4)</code>
90 returns·3,·because·that·is·the·minimum·number·of·bytes·of90 returns·3,·because·that·is·the·minimum·number·of·bytes·of
91 padding·required·to·get·a·4-aligned·address·(assuming·that·the91 padding·required·to·get·a·4-aligned·address·(assuming·that·the
92 corresponding·memory·block·starts·at·a·4-aligned·address).</p>92 corresponding·memory·block·starts·at·a·4-aligned·address).</p>
93 <p>The·return·value·of·this·function·has·no·meaning·if·<code>align</code>·is93 <p>The·return·value·of·this·function·has·no·meaning·if·<code>align</code>·is
94 not·a·power-of-two.</p>94 not·a·power-of-two.</p>
95 <p>Note·that·the·utility·of·the·returned·value·requires·<code>align</code>95 <p>Note·that·the·utility·of·the·returned·value·requires·<code>align</code>
96 to·be·less·than·or·equal·to·the·alignment·of·the·starting96 to·be·less·than·or·equal·to·the·alignment·of·the·starting
97 address·for·the·whole·allocated·block·of·memory.·One·way·to97 address·for·the·whole·allocated·block·of·memory.·One·way·to
98 satisfy·this·constraint·is·to·ensure·<code>align·&lt;=·self.align()</code>.</p>98 satisfy·this·constraint·is·to·ensure·<code>align·&lt;=·self.align()</code>.</p>
99 </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#298">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·multiple99 </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.78.0/src/core/alloc/layout.rs.html#298">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
100 of·the·layout’s·alignment.</p>100 of·the·layout’s·alignment.</p>
101 <p>This·is·equivalent·to·adding·the·result·of·<code>padding_needed_for</code>101 <p>This·is·equivalent·to·adding·the·result·of·<code>padding_needed_for</code>
102 to·the·layout’s·current·size.</p>102 to·the·layout’s·current·size.</p>
103 </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#320">source</a><h4·class="code-header">pub·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="../../core/res[·...·truncated·by·diffoscope;·len:·195,·SHA:·1f6a98c26e7e090efbbdb4eb04fedf6e6f2b1b406a1bf3d41993c43de1afb761·...·]/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·of103 </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.78.0/src/core/alloc/layout.rs.html#320">source</a><h4·class="code-header">pub·fn·<a·href="#method.repeat"·class="fn">repeat</a>(&amp;self,·n:·<a·class="primitive"·href="https://doc.rust-lang.org/1.78.0/core/primitive.usize.html"[·...·truncated·by·diffoscope;·len:·303,·SHA:·c0c6769a42e0522acd3aef3a12962563cfe8459e246d7055343a59305c450d59·...·]/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
104 <code>self</code>,·with·a·suitable·amount·of·padding·between·each·to104 <code>self</code>,·with·a·suitable·amount·of·padding·between·each·to
105 ensure·that·each·instance·is·given·its·requested·size·and105 ensure·that·each·instance·is·given·its·requested·size·and
106 alignment.·On·success,·returns·<code>(k,·offs)</code>·where·<code>k</code>·is·the106 alignment.·On·success,·returns·<code>(k,·offs)</code>·where·<code>k</code>·is·the
107 layout·of·the·array·and·<code>offs</code>·is·the·distance·between·the·start107 layout·of·the·array·and·<code>offs</code>·is·the·distance·between·the·start
108 of·each·element·in·the·array.</p>108 of·each·element·in·the·array.</p>
109 <p>On·arithmetic·overflow,·returns·<code>LayoutError</code>.</p>109 <p>On·arithmetic·overflow,·returns·<code>LayoutError</code>.</p>
110 </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">1.44.0</span>···<a·class="src"·href="../../src/core/alloc/layout.rs.html#380">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·by110 </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">1.44.0</span>···<a·class="src"·href="https://doc.rust-lang.org/1.78.0/src/core/alloc/layout.rs.html#380">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:·6890d3a224bd5363a8e37a180167dfd050c19516684acbb274535f96f546d362·...·]/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
111 <code>next</code>,·including·any·necessary·padding·to·ensure·that·<code>next</code>111 <code>next</code>,·including·any·necessary·padding·to·ensure·that·<code>next</code>
112 will·be·properly·aligned,·but·<em>no·trailing·padding</em>.</p>112 will·be·properly·aligned,·but·<em>no·trailing·padding</em>.</p>
113 <p>In·order·to·match·C·representation·layout·<code>repr(C)</code>,·you·should113 <p>In·order·to·match·C·representation·layout·<code>repr(C)</code>,·you·should
114 call·<code>pad_to_align</code>·after·extending·the·layout·with·all·fields.114 call·<code>pad_to_align</code>·after·extending·the·layout·with·all·fields.
115 (There·is·no·way·to·match·the·default·Rust·representation115 (There·is·no·way·to·match·the·default·Rust·representation
116 layout·<code>repr(Rust)</code>,·as·it·is·unspecified.)</p>116 layout·<code>repr(Rust)</code>,·as·it·is·unspecified.)</p>
117 <p>Note·that·the·alignment·of·the·resulting·layout·will·be·the·maximum·of117 <p>Note·that·the·alignment·of·the·resulting·layout·will·be·the·maximum·of
Offset 132, 42 lines modifiedOffset 132, 42 lines modified
132 ········<span·class="kw">let·</span>(new_layout,·offset)·=·layout.extend(field)<span·class="question-mark">?</span>;132 ········<span·class="kw">let·</span>(new_layout,·offset)·=·layout.extend(field)<span·class="question-mark">?</span>;
133 ········layout·=·new_layout;133 ········layout·=·new_layout;
134 ········offsets.push(offset);134 ········offsets.push(offset);
135 ····}135 ····}
136 ····<span·class="comment">//·Remember·to·finalize·with·`pad_to_align`!136 ····<span·class="comment">//·Remember·to·finalize·with·`pad_to_align`!
137 ····</span><span·class="prelude-val">Ok</span>((layout.pad_to_align(),·offsets))137 ····</span><span·class="prelude-val">Ok</span>((layout.pad_to_align(),·offsets))
138 }</code></pre><a·class="test-arrow"·target="_blank"·href="https://play.rust-lang.org/?code=%23!%5Ballow(unused)%5D%0A%23%5Ballow(unused_extern_crates)%5D%0Aextern+crate+r%23alloc;%0Afn+main()+%7B%0A++++use+std::alloc::%7BLayout,+LayoutError%7D;%0A++++pub+fn+repr_c(fields:+%26%5BLayout%5D)+-%3E+Result%3C(Layout,+Vec%3Cusize%3E),+LayoutError%3E+%7B%0A++++++++let+mut+offsets+=+Vec::new();%0A++++++++let+mut+layout+=+Layout::from_size_align(0,+1)?;%0A++++++++for+%26field+in+fields+%7B%0A++++++++++++let+(new_layout,+offset)+=+layout.extend(field)?;%0A++++++++++++layout+=+new_layout;%0A++++++++++++offsets.push(offset);%0A++++++++%7D%0A++++++++//+Remember+to+finalize+with+%60pad_to_align%60!%0A++++++++Ok((layout.pad_to_align(),+offsets))%0A++++%7D%0A++++//+test+that+it+works%0A++++%23%5Brepr(C)%5D+struct+S+%7B+a:+u64,+b:+u32,+c:+u16,+d:+u32+%7D%0A++++let+s+=+Layout::new::%3CS%3E();%0A++++let+u16+=+Layout::new::%3Cu16%3E();%0A++++let+u32+=+Layout::new::%3Cu32%3E();%0A++++let+u64+=+Layout::new::%3Cu64%3E();%0A++++assert_eq!(repr_c(%26%5Bu64,+u32,+u16,+u32%5D),+Ok((s,+vec!%5B0,+8,+12,+16%5D)));%0A%7D&amp;edition=2021">Run</a></div>138 }</code></pre><a·class="test-arrow"·target="_blank"·href="https://play.rust-lang.org/?code=%23!%5Ballow(unused)%5D%0A%23%5Ballow(unused_extern_crates)%5D%0Aextern+crate+r%23alloc;%0Afn+main()+%7B%0A++++use+std::alloc::%7BLayout,+LayoutError%7D;%0A++++pub+fn+repr_c(fields:+%26%5BLayout%5D)+-%3E+Result%3C(Layout,+Vec%3Cusize%3E),+LayoutError%3E+%7B%0A++++++++let+mut+offsets+=+Vec::new();%0A++++++++let+mut+layout+=+Layout::from_size_align(0,+1)?;%0A++++++++for+%26field+in+fields+%7B%0A++++++++++++let+(new_layout,+offset)+=+layout.extend(field)?;%0A++++++++++++layout+=+new_layout;%0A++++++++++++offsets.push(offset);%0A++++++++%7D%0A++++++++//+Remember+to+finalize+with+%60pad_to_align%60!%0A++++++++Ok((layout.pad_to_align(),+offsets))%0A++++%7D%0A++++//+test+that+it+works%0A++++%23%5Brepr(C)%5D+struct+S+%7B+a:+u64,+b:+u32,+c:+u16,+d:+u32+%7D%0A++++let+s+=+Layout::new::%3CS%3E();%0A++++let+u16+=+Layout::new::%3Cu16%3E();%0A++++let+u32+=+Layout::new::%3Cu32%3E();%0A++++let+u64+=+Layout::new::%3Cu64%3E();%0A++++assert_eq!(repr_c(%26%5Bu64,+u32,+u16,+u32%5D),+Ok((s,+vec!%5B0,+8,+12,+16%5D)));%0A%7D&amp;edition=2021">Run</a></div>
139 </div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.repeat_packed"·class="method"><a·class="src·rightside"·href="../../src/core/alloc/layout.rs.html#406">source</a><h4·class="code-header">pub·fn·<a·href="#method.repeat_packed"·class="fn">repeat_packed</a>(&amp;self,·n:·<a·class="primitive"·href="../../core/primitive.usize.html">usize</a>)·-&gt;·<a·class="enum"·href="[·...·truncated·by·diffoscope;·len:·5,·SHA:·0cfd1c96cbc0c0e025888750a8b75d7d507ab83eaef58650f1023579f03ca306·...·]/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><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·of139 </div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.repeat_packed"·class="method"><a·class="src·rightside"·href="https://doc.rust-lang.org/1.78.0/src/core/alloc/layout.rs.html#406">source</a><h4·class="code-header">pub·fn·<a·href="#method.repeat_packed"·class="fn">repeat_packed</a>(&amp;self,·n:·<a·class="primitive"·href="https://doc.rust-lang.org/1.78.0/core/primiti[·...·truncated·by·diffoscope;·len:·86,·SHA:·a324918e34379666b331b682ccfd6a44ea52ced87687ed2e8ed9fe1268168dce·...·]/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><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
140 <code>self</code>,·with·no·padding·between·each·instance.</p>140 <code>self</code>,·with·no·padding·between·each·instance.</p>
Max diff block lines reached; 55521/98967 bytes (56.10%) of diff not shown.
69.3 KB
./usr/share/doc/rust-web-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·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.write(`<link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/SourceSerif4-Regular-46f98efaafac5295.ttf.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/FiraSans-Regular-018c141bf0843ffd.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/FiraSans-Medium-8f9a781e4970d388.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/SourceCodePro-Regular-562dcc5011b6de7d.ttf.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/SourceCodePro-Semibold-d899c5a5c4aeb14a.ttf.woff2">`)</script><link·rel="stylesheet"·href="../../static.files/normalize-76eba96aa4d2e634.css"><link·rel="stylesheet"·href="../../static.files/rustdoc-35f9e32502181f1e.css"><meta·name="rustdoc-vars"·data-root-path="../../"·data-static-root-path="../../static.files/"·data-current-crate="alloc"·data-themes=""·data-resource-suffix="1.78.0"·data-rustdoc-version="1.78.0"·data-channel="1.78.0"·data-search-js="search-42d8da7a6b9792c2.js"·data-settings-js="settings-4313503d2e1961c2.js"·><script·src="../../static.files/storage-4c98445ec4002617.js"></script><script·defer·src="sidebar-items1.78.0.js"></script><script·defer·src="../../static.files/main-12cf3b4f4f9dc36d.js"></script><noscript><link·rel="stylesheet"·href="../../static.files/noscript-04d5337699b92874.css"></noscript><link·rel="alternate·icon"·type="image/png"·href="../../static.files/favicon-16x16-8b506e7a72182f1c.png"><link·rel="alternate·icon"·type="image/png"·href="../../static.files/favicon-32x32-422f7d1d52889060.png"><link·rel="icon"·type="image/svg+xml"·href="../../static.files/favicon-2c020d218678b618.svg"></head><body·class="rustdoc·struct"><!--[if·lte·IE·11]><div·class="warning">This·old·browser·is·unsupported·and·will·most·likely·display·funky·things.</div><![endif]--><nav·class="mobile-topbar"><button·class="sidebar-menu-toggle"·title="show·sidebar"></button><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-151179464ae7ed46.svg"·alt=""></a></nav><nav·class="sidebar"><div·class="sidebar-crate"><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-151179464ae7ed46.svg"·alt="logo"></a><h2><a·href="../../alloc/index.html">alloc</a><span·class="version">1.78.0</span></h2></div><h2·class="location"><a·href="#">LayoutError</a></h2><div·class="sidebar-elems"><section><h3><a·href="#trait-implementations">Trait·Implementations</a></h3><ul·class="block·trait-implementation"><li><a·href="#impl-Clone-for-LayoutError">Clone</a></li><li><a·href="#impl-Debug-for-LayoutError">Debug</a></li><li><a·href="#impl-Display-for-LayoutError">Display</a></li><li><a·href="#impl-Eq-for-LayoutError">Eq</a></li><li><a·href="#impl-Error-for-LayoutError">Error</a></li><li><a·href="#impl-From%3CLayoutError%3E-for-TryReserveErrorKind">From&lt;LayoutError&gt;</a></li><li><a·href="#impl-PartialEq-for-LayoutError">PartialEq</a></li><li><a·href="#impl-StructuralPartialEq-for-LayoutError">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">Freeze</a></li><li><a·href="#impl-RefUnwindSafe-for-LayoutError">RefUnwindSafe</a></li><li><a·href="#impl-Send-for-LayoutError">Send</a></li><li><a·href="#impl-Sync-for-LayoutError">Sync</a></li><li><a·href="#impl-Unpin-for-LayoutError">Unpin</a></li><li><a·href="#impl-UnwindSafe-for-LayoutError">UnwindSafe</a></li></ul><h3><a·href="#blanket-implementations">Blanket·Implementations</a></h3><ul·class="block·blanket-implementation"><li><a·href="#impl-Any-for-T">Any</a></li><li><a·href="#impl-Borrow%3CT%3E-for-T">Borrow&lt;T&gt;</a></li><li><a·href="#impl-BorrowMut%3CT%3E-for-T">BorrowMut&lt;T&gt;</a></li><li><a·href="#impl-From%3CT%3E-for-T">From&lt;T&gt;</a></li><li><a·href="#impl-Into%3CU%3E-for-T">Into&lt;U&gt;</a></li><li><a·href="#impl-ToOwned-for-T">ToOwned</a></li><li><a·href="#impl-ToString-for-T">ToString</a></li><li><a·href="#impl-TryFrom%3CU%3E-for-T">TryFrom&lt;U&gt;</a></li><li><a·href="#impl-TryInto%3CU%3E-for-T">TryInto&lt;U&gt;</a></li></ul></section><h2><a·href="index.html">In·alloc::alloc</a></h2></div></nav><div·class="sidebar-resizer"></div>1 <!DOCTYPE·html><html·lang="en"><head><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·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.write(`<link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/SourceSerif4-Regular-46f98efaafac5295.ttf.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/FiraSans-Regular-018c141bf0843ffd.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/FiraSans-Medium-8f9a781e4970d388.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/SourceCodePro-Regular-562dcc5011b6de7d.ttf.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/SourceCodePro-Semibold-d899c5a5c4aeb14a.ttf.woff2">`)</script><link·rel="stylesheet"·href="../../static.files/normalize-76eba96aa4d2e634.css"><link·rel="stylesheet"·href="../../static.files/rustdoc-35f9e32502181f1e.css"><meta·name="rustdoc-vars"·data-root-path="../../"·data-static-root-path="../../static.files/"·data-current-crate="alloc"·data-themes=""·data-resource-suffix="1.78.0"·data-rustdoc-version="1.78.0"·data-channel="1.78.0"·data-search-js="search-42d8da7a6b9792c2.js"·data-settings-js="settings-4313503d2e1961c2.js"·><script·src="../../static.files/storage-4c98445ec4002617.js"></script><script·defer·src="sidebar-items1.78.0.js"></script><script·defer·src="../../static.files/main-12cf3b4f4f9dc36d.js"></script><noscript><link·rel="stylesheet"·href="../../static.files/noscript-04d5337699b92874.css"></noscript><link·rel="alternate·icon"·type="image/png"·href="../../static.files/favicon-16x16-8b506e7a72182f1c.png"><link·rel="alternate·icon"·type="image/png"·href="../../static.files/favicon-32x32-422f7d1d52889060.png"><link·rel="icon"·type="image/svg+xml"·href="../../static.files/favicon-2c020d218678b618.svg"></head><body·class="rustdoc·struct"><!--[if·lte·IE·11]><div·class="warning">This·old·browser·is·unsupported·and·will·most·likely·display·funky·things.</div><![endif]--><nav·class="mobile-topbar"><button·class="sidebar-menu-toggle"·title="show·sidebar"></button><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-151179464ae7ed46.svg"·alt=""></a></nav><nav·class="sidebar"><div·class="sidebar-crate"><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-151179464ae7ed46.svg"·alt="logo"></a><h2><a·href="../../alloc/index.html">alloc</a><span·class="version">1.78.0</span></h2></div><h2·class="location"><a·href="#">LayoutError</a></h2><div·class="sidebar-elems"><section><h3><a·href="#trait-implementations">Trait·Implementations</a></h3><ul·class="block·trait-implementation"><li><a·href="#impl-Clone-for-LayoutError">Clone</a></li><li><a·href="#impl-Debug-for-LayoutError">Debug</a></li><li><a·href="#impl-Display-for-LayoutError">Display</a></li><li><a·href="#impl-Eq-for-LayoutError">Eq</a></li><li><a·href="#impl-Error-for-LayoutError">Error</a></li><li><a·href="#impl-From%3CLayoutError%3E-for-TryReserveErrorKind">From&lt;LayoutError&gt;</a></li><li><a·href="#impl-PartialEq-for-LayoutError">PartialEq</a></li><li><a·href="#impl-StructuralPartialEq-for-LayoutError">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">Freeze</a></li><li><a·href="#impl-RefUnwindSafe-for-LayoutError">RefUnwindSafe</a></li><li><a·href="#impl-Send-for-LayoutError">Send</a></li><li><a·href="#impl-Sync-for-LayoutError">Sync</a></li><li><a·href="#impl-Unpin-for-LayoutError">Unpin</a></li><li><a·href="#impl-UnwindSafe-for-LayoutError">UnwindSafe</a></li></ul><h3><a·href="#blanket-implementations">Blanket·Implementations</a></h3><ul·class="block·blanket-implementation"><li><a·href="#impl-Any-for-T">Any</a></li><li><a·href="#impl-Borrow%3CT%3E-for-T">Borrow&lt;T&gt;</a></li><li><a·href="#impl-BorrowMut%3CT%3E-for-T">BorrowMut&lt;T&gt;</a></li><li><a·href="#impl-From%3CT%3E-for-T">From&lt;T&gt;</a></li><li><a·href="#impl-Into%3CU%3E-for-T">Into&lt;U&gt;</a></li><li><a·href="#impl-ToOwned-for-T">ToOwned</a></li><li><a·href="#impl-ToString-for-T">ToString</a></li><li><a·href="#impl-TryFrom%3CU%3E-for-T">TryFrom&lt;U&gt;</a></li><li><a·href="#impl-TryInto%3CU%3E-for-T">TryInto&lt;U&gt;</a></li></ul></section><h2><a·href="index.html">In·alloc::alloc</a></h2></div></nav><div·class="sidebar-resizer"></div>
2 ····<main><div·class="width-limiter"><nav·class="sub"><form·class="search-form"><span></span><div·id="sidebar-button"·tabindex="-1"><a·href="../../alloc/all.html"·title="show·sidebar"></a></div><input·class="search-input"·name="search"·aria-label="Run·search·in·the·documentation"·autocomplete="off"·spellcheck="false"·placeholder="Click·or·press·‘S’·to·search,·‘?’·for·more·options…"·type="search"><div·id="help-button"·tabindex="-1"><a·href="../../help.html"·title="help">?</a></div><div·id="settings-menu"·tabindex="-1"><a·href="../../settings.html"·title="settings"><img·width="22"·height="22"·alt="Change·settings"·src="../../static.files/wheel-7b819b6101059cd0.svg"></a></div></form></nav><section·id="main-content"·class="content"><div·class="main-heading"><h1>Struct·<a·href="../index.html">alloc</a>::<wbr><a·href="index.html">alloc</a>::<wbr><a·class="struct"·href="#">LayoutError</a><button·id="copy-path"·title="Copy·item·path·to·clipboard"><img·src="../../static.files/clipboard-7571035ce49a181d.svg"·width="19"·height="18"·alt="Copy·item·path"></button></h1><span·class="out-of-band"><span·class="since"·title="Stable·since·Rust·version·1.50.0">1.50.0</span>···<a·class="src"·href="../../src/core/alloc/layout.rs.html#481">source</a>···<button·id="toggle-all-docs"·title="collapse·all·docs">[<span>&#x2212;</span>]</button></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·parameters·given·to·<code>Layout::from_size_align</code>2 ····<main><div·class="width-limiter"><nav·class="sub"><form·class="search-form"><span></span><div·id="sidebar-button"·tabindex="-1"><a·href="../../alloc/all.html"·title="show·sidebar"></a></div><input·class="search-input"·name="search"·aria-label="Run·search·in·the·documentation"·autocomplete="off"·spellcheck="false"·placeholder="Click·or·press·‘S’·to·search,·‘?’·for·more·options…"·type="search"><div·id="help-button"·tabindex="-1"><a·href="../../help.html"·title="help">?</a></div><div·id="settings-menu"·tabindex="-1"><a·href="../../settings.html"·title="settings"><img·width="22"·height="22"·alt="Change·settings"·src="../../static.files/wheel-7b819b6101059cd0.svg"></a></div></form></nav><section·id="main-content"·class="content"><div·class="main-heading"><h1>Struct·<a·href="../index.html">alloc</a>::<wbr><a·href="index.html">alloc</a>::<wbr><a·class="struct"·href="#">LayoutError</a><button·id="copy-path"·title="Copy·item·path·to·clipboard"><img·src="../../static.files/clipboard-7571035ce49a181d.svg"·width="19"·height="18"·alt="Copy·item·path"></button></h1><span·class="out-of-band"><span·class="since"·title="Stable·since·Rust·version·1.50.0">1.50.0</span>···<a·class="src"·href="https://doc.rust-lang.org/1.78.0/src/core/alloc/layout.rs.html#481">source</a>···<button·id="toggle-all-docs"·title="collapse·all·docs">[<span>&#x2212;</span>]</button></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·parameters·given·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"><a·class="src·rightside"·href="../../src/core/alloc/layout.rs.html#480">source</a><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·class="str[·...·truncated·by·diffoscope;·len:·9753,·SHA:·809fd127b5e5584e872bf71aec6fbda01e27817392e713c78f2cd73a8d391fbe·...·]/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"><a·class="src·rightside"·href="https://doc.rust-lang.org/1.78.0/src/core/alloc/layout.rs.html#480">source</a><a·href="#impl-Clone-for-LayoutError"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/clone/trait.Clone.html"·title=[·...·truncated·by·diffoscope;·len:·10779,·SHA:·8d1560e718aa34553e41a5818f91519f359c239bf777eff92255de0eab85034d·...·]/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"><a·class="src·rightside"·href="../../src/core/alloc/layout.rs.html#480">source</a><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>·for·<[·...·truncated·by·diffoscope;·len:·649,·SHA:·0e2b7b7bd9f05820040d91d437dd48612edac99fbee77a3ed12be75ef3e5dafd·...·]/core/primitive.bool.html">bool</a></h4></section></summary><div·class='docblock'>This·method·tests·for·<code>self</code>·and·<code>other</code>·values·to·be·equal,·and·is·used6 </div></details></div></details><details·class="toggle·implementors-toggle"·open><summary><section·id="impl-PartialEq-for-LayoutError"·class="impl"><a·class="src·rightside"·href="https://doc.rust-lang.org/1.78.0/src/core/alloc/layout.rs.html#480">source</a><a·href="#impl-PartialEq-for-LayoutError"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/cmp/trait.PartialEq.html"·[·...·truncated·by·diffoscope;·len:·784,·SHA:·a09af111d37b8bdd7065bfeaf57daffec15e7409d50a8b4640b93d7685e76d19·...·]/core/primitive.bool.html">bool</a></h4></section></summary><div·class='docblock'>This·method·tests·for·<code>self</code>·and·<code>other</code>·values·to·be·equal,·and·is·used
7 by·<code>==</code>.</div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.ne"·class="method·trait-impl"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.0.0">1.0.0</span>···<a·class="src"·href="../../src/core/cmp.rs.html#263">source</a></span><a·href="#method.ne"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../../core/cmp/trait.PartialEq.html#method.ne"·class="fn">ne</a>(&amp;self,·other:·<a·class="primitive"·href="../../core/primitive[·...·truncated·by·diffoscope;·len:·69,·SHA:·bb676445ed4716783d5d8ed2fb1ff635f2577a6cd8b41db49822f9e352e394c1·...·]/core/primitive.bool.html">bool</a></h4></section></summary><div·class='docblock'>This·method·tests·for·<code>!=</code>.·The·default·implementation·is·almost·always7 by·<code>==</code>.</div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.ne"·class="method·trait-impl"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.0.0">1.0.0</span>···<a·class="src"·href="https://doc.rust-lang.org/1.78.0/src/core/cmp.rs.html#263">source</a></span><a·href="#method.ne"·class="anchor">§</a><h4·class="code-header">fn·<a·href="https://doc.rust-lang.org/1.78.0/core/cmp/trait.PartialEq.html#method.ne"·class="fn">ne</a>(&amp;self,·[·...·truncated·by·diffoscope;·len:·177,·SHA:·e1e3f9b9b78644c807cda06ba58cbf80a7a50ed17e7136cd156da5dd11dec66f·...·]/core/primitive.bool.html">bool</a></h4></section></summary><div·class='docblock'>This·method·tests·for·<code>!=</code>.·The·default·implementation·is·almost·always
8 sufficient,·and·should·not·be·overridden·without·very·good·reason.</div></details></div></details><section·id="impl-Eq-for-LayoutError"·class="impl"><a·class="src·rightside"·href="../../src/core/alloc/layout.rs.html#480">source</a><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="struc[·...·truncated·by·diffoscope;·len:·3582,·SHA:·10d251f40d9b064728b0147dfa05acc43c81b8fbcb58b362da3f0cee32f786d3·...·]/core/any/trait.Any.html"·title="trait·core::any::Any">Any</a>·for·T<div·class="where">where8 sufficient,·and·should·not·be·overridden·without·very·good·reason.</div></details></div></details><section·id="impl-Eq-for-LayoutError"·class="impl"><a·class="src·rightside"·href="https://doc.rust-lang.org/1.78.0/src/core/alloc/layout.rs.html#480">source</a><a·href="#impl-Eq-for-LayoutError"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/cmp/trait.Eq.html"·title="trait·c[·...·truncated·by·diffoscope;·len:·3906,·SHA:·2191e412fbd885cf10a21c99dffe8789ca9c7896fd4a994c19e80e611a071977·...·]/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:·9db8bacb767d75cc3351ca7341c388130aa05ebef490d992be5374f16eedc378·...·]/src/core/borrow.rs.html#208">source</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.78.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">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:·039b8952ccb1ab7d8f15cd519cbc10f4afc149276d0f9cfd3a53117d606059df·...·]/src/core/borrow.rs.html#208">source</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:·b2ffbab17ff1ef71ba4c506a3aaa515da2082da6f02a53862ce1ca2b2b25f5b4·...·]/src/core/borrow.rs.html#216">source</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.78.0/core/marker/trait.Sized.html"·title="trait·core::marker::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:·952d76e7bcf7b521fffa418ce638abf69976de0942360e56f93e419ca3389394·...·]/src/core/borrow.rs.html#216">source</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:·1231,·SHA:·09cd1566e930fb0ad4218bdeced1a1fda2d266565b6bc2a7ac6478b00b9c84fc·...·]/core/convert/trait.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.78.0/core/marker/trait.Sized.html"·title="trait·core::marker::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:·1420,·SHA:·3769a6e6008d20bc0e21a8bbd258f80ae327c76d74f51823104ffb89926426b3·...·]/core/convert/trait.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.78.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.78.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.78.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:·2cf76a8ca501b2a1fef209fed846779ab1bed3b75f52c7425335e3ce04e6b272·...·]/core/convert/trait.Into.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.78.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#83-95">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#83-95">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·href="#associ[·...·truncated·by·diffoscope;·len:·1220,·SHA:·3cbf0f64542b816603968ea3c1b51d1b1eb93d99770d50fed747c05540b0e6b0·...·]/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#2543-2557">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.78.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:·1274,·SHA:·0c080e1e1236f77ce91b20fef8bb17c6bc50a069d2e16d2b40ea7b4298dec09f·...·]/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#2543-2557">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:·bf3a3f8ffed9dcfc973405dddaf9f278663007cc35ca5daa38b602630201cbf0·...·]/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.78.0/core/marker/trait.Sized.html"·title="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:·531ea7c1ecd9197e925ea3063788b96ffe9ed8291f75ffba5fcab4c2298b41ca·...·]/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"·class="associatedtype·trait-impl"><a·hre[·...·truncated·by·diffoscope;·len:·1591,·SHA:·8537afacf1b3cf6b9fb7db778975d49d8a8e5988d420715e464ff4a79dd696c5·...·]/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.78.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"·class="associ[·...·truncated·by·diffoscope;·len:·1861,·SHA:·78398046ba16de2f66a8201a11d6a2dd405fceedeabfcaa37481e77092687e6f·...·]/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-1"·class="associatedtype·trait-i[·...·truncated·by·diffoscope;·len:·1231,·SHA:·7843e7b6cca73922417e4154886c0df66f016d274b48933c21bdb75b67479d5b·...·]/core/convert/trait.TryFrom.html#associatedtype.Error"·title="type·core::convert::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.78.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-1"·cl[·...·truncated·by·diffoscope;·len:·1474,·SHA:·ca90cccb6c86c654c95a1aaec456fbbe4b115f0d5a700e7d156e823346d70894·...·]/core/convert/trait.TryFrom.html#associatedtype.Error"·title="type·core::convert::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.0 KB
./usr/share/doc/rust-web-doc/html/alloc/alloc/trait.Allocator.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="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.write(`<link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/SourceSerif4-Regular-46f98efaafac5295.ttf.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/FiraSans-Regular-018c141bf0843ffd.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/FiraSans-Medium-8f9a781e4970d388.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/SourceCodePro-Regular-562dcc5011b6de7d.ttf.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/SourceCodePro-Semibold-d899c5a5c4aeb14a.ttf.woff2">`)</script><link·rel="stylesheet"·href="../../static.files/normalize-76eba96aa4d2e634.css"><link·rel="stylesheet"·href="../../static.files/rustdoc-35f9e32502181f1e.css"><meta·name="rustdoc-vars"·data-root-path="../../"·data-static-root-path="../../static.files/"·data-current-crate="alloc"·data-themes=""·data-resource-suffix="1.78.0"·data-rustdoc-version="1.78.0"·data-channel="1.78.0"·data-search-js="search-42d8da7a6b9792c2.js"·data-settings-js="settings-4313503d2e1961c2.js"·><script·src="../../static.files/storage-4c98445ec4002617.js"></script><script·defer·src="sidebar-items1.78.0.js"></script><script·defer·src="../../static.files/main-12cf3b4f4f9dc36d.js"></script><noscript><link·rel="stylesheet"·href="../../static.files/noscript-04d5337699b92874.css"></noscript><link·rel="alternate·icon"·type="image/png"·href="../../static.files/favicon-16x16-8b506e7a72182f1c.png"><link·rel="alternate·icon"·type="image/png"·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.78.0</span></h2></div><h2·class="location"><a·href="#">Allocator</a></h2><div·class="sidebar-elems"><section><h3><a·href="#required-methods">Required·Methods</a></h3><ul·class="block"><li><a·href="#tymethod.allocate">allocate</a></li><li><a·href="#tymethod.deallocate">deallocate</a></li></ul><h3><a·href="#provided-methods">Provided·Methods</a></h3><ul·class="block"><li><a·href="#method.allocate_zeroed">allocate_zeroed</a></li><li><a·href="#method.by_ref">by_ref</a></li><li><a·href="#method.grow">grow</a></li><li><a·href="#method.grow_zeroed">grow_zeroed</a></li><li><a·href="#method.shrink">shrink</a></li></ul><h3><a·href="#implementors">Implementors</a></h3></section><h2><a·href="index.html">In·alloc::alloc</a></h2></div></nav><div·class="sidebar-resizer"></div>1 <!DOCTYPE·html><html·lang="en"><head><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.write(`<link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/SourceSerif4-Regular-46f98efaafac5295.ttf.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/FiraSans-Regular-018c141bf0843ffd.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/FiraSans-Medium-8f9a781e4970d388.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/SourceCodePro-Regular-562dcc5011b6de7d.ttf.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/SourceCodePro-Semibold-d899c5a5c4aeb14a.ttf.woff2">`)</script><link·rel="stylesheet"·href="../../static.files/normalize-76eba96aa4d2e634.css"><link·rel="stylesheet"·href="../../static.files/rustdoc-35f9e32502181f1e.css"><meta·name="rustdoc-vars"·data-root-path="../../"·data-static-root-path="../../static.files/"·data-current-crate="alloc"·data-themes=""·data-resource-suffix="1.78.0"·data-rustdoc-version="1.78.0"·data-channel="1.78.0"·data-search-js="search-42d8da7a6b9792c2.js"·data-settings-js="settings-4313503d2e1961c2.js"·><script·src="../../static.files/storage-4c98445ec4002617.js"></script><script·defer·src="sidebar-items1.78.0.js"></script><script·defer·src="../../static.files/main-12cf3b4f4f9dc36d.js"></script><noscript><link·rel="stylesheet"·href="../../static.files/noscript-04d5337699b92874.css"></noscript><link·rel="alternate·icon"·type="image/png"·href="../../static.files/favicon-16x16-8b506e7a72182f1c.png"><link·rel="alternate·icon"·type="image/png"·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.78.0</span></h2></div><h2·class="location"><a·href="#">Allocator</a></h2><div·class="sidebar-elems"><section><h3><a·href="#required-methods">Required·Methods</a></h3><ul·class="block"><li><a·href="#tymethod.allocate">allocate</a></li><li><a·href="#tymethod.deallocate">deallocate</a></li></ul><h3><a·href="#provided-methods">Provided·Methods</a></h3><ul·class="block"><li><a·href="#method.allocate_zeroed">allocate_zeroed</a></li><li><a·href="#method.by_ref">by_ref</a></li><li><a·href="#method.grow">grow</a></li><li><a·href="#method.grow_zeroed">grow_zeroed</a></li><li><a·href="#method.shrink">shrink</a></li></ul><h3><a·href="#implementors">Implementors</a></h3></section><h2><a·href="index.html">In·alloc::alloc</a></h2></div></nav><div·class="sidebar-resizer"></div>
2 ····<main><div·class="width-limiter"><nav·class="sub"><form·class="search-form"><span></span><div·id="sidebar-button"·tabindex="-1"><a·href="../../alloc/all.html"·title="show·sidebar"></a></div><input·class="search-input"·name="search"·aria-label="Run·search·in·the·documentation"·autocomplete="off"·spellcheck="false"·placeholder="Click·or·press·‘S’·to·search,·‘?’·for·more·options…"·type="search"><div·id="help-button"·tabindex="-1"><a·href="../../help.html"·title="help">?</a></div><div·id="settings-menu"·tabindex="-1"><a·href="../../settings.html"·title="settings"><img·width="22"·height="22"·alt="Change·settings"·src="../../static.files/wheel-7b819b6101059cd0.svg"></a></div></form></nav><section·id="main-content"·class="content"><div·class="main-heading"><h1>Trait·<a·href="../index.html">alloc</a>::<wbr><a·href="index.html">alloc</a>::<wbr><a·class="trait"·href="#">Allocator</a><button·id="copy-path"·title="Copy·item·path·to·clipboard"><img·src="../../static.files/clipboard-7571035ce49a181d.svg"·width="19"·height="18"·alt="Copy·item·path"></button></h1><span·class="out-of-band"><a·class="src"·href="../../src/core/alloc/mod.rs.html#111">source</a>···<button·id="toggle-all-docs"·title="collapse·all·docs">[<span>&#x2212;</span>]</button></span></div><pre·class="rust·item-decl"><code>pub·unsafe·trait·Allocator·{2 ····<main><div·class="width-limiter"><nav·class="sub"><form·class="search-form"><span></span><div·id="sidebar-button"·tabindex="-1"><a·href="../../alloc/all.html"·title="show·sidebar"></a></div><input·class="search-input"·name="search"·aria-label="Run·search·in·the·documentation"·autocomplete="off"·spellcheck="false"·placeholder="Click·or·press·‘S’·to·search,·‘?’·for·more·options…"·type="search"><div·id="help-button"·tabindex="-1"><a·href="../../help.html"·title="help">?</a></div><div·id="settings-menu"·tabindex="-1"><a·href="../../settings.html"·title="settings"><img·width="22"·height="22"·alt="Change·settings"·src="../../static.files/wheel-7b819b6101059cd0.svg"></a></div></form></nav><section·id="main-content"·class="content"><div·class="main-heading"><h1>Trait·<a·href="../index.html">alloc</a>::<wbr><a·href="index.html">alloc</a>::<wbr><a·class="trait"·href="#">Allocator</a><button·id="copy-path"·title="Copy·item·path·to·clipboard"><img·src="../../static.files/clipboard-7571035ce49a181d.svg"·width="19"·height="18"·alt="Copy·item·path"></button></h1><span·class="out-of-band"><a·class="src"·href="https://doc.rust-lang.org/1.78.0/src/core/alloc/mod.rs.html#111">source</a>···<button·id="toggle-all-docs"·title="collapse·all·docs">[<span>&#x2212;</span>]</button></span></div><pre·class="rust·item-decl"><code>pub·unsafe·trait·Allocator·{
3 ····//·Required·methods3 ····//·Required·methods
4 ····fn·<a·href="#tymethod.allocate"·class="fn">allocate</a>(&amp;self,·layout:·<a·class="struct"·href="struct.Layout.html"·title="struct·alloc::alloc::Layout">Layout</a>)·-&gt;·<a·class="enum"·href="../../core/result/enum.Result.html"·title="enum·core::result::Result">Result</a>&lt;<a·class="struct"·href="../../core/ptr/non_null/struct.NonNull.html"·title="struct·core::ptr::non_null::NonNull">NonNull</a>&lt;[<a·class="primitive"·href="../../core/primitive.u8.html">u8</a>]&gt;,·<a·class="struct"·href="struct.AllocError.html"·title="struct·alloc::alloc::AllocError">AllocError</a>&gt;;4 ····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.78.0/core/result/enum.Result.html"·title="enum·core::result::Result">Result</a>&lt;<a·class="struct"·href="https://doc.rust-lang.org/1.78.0/core/ptr/non_null/struct.NonNull.html"·title="struct·core::ptr::non_null::NonNull">NonNu[·...·truncated·by·diffoscope;·len:·70,·SHA:·481746ff5f6daf977bb6d18d396e53f0cb38904b4dbc6cf313c8c29972c282a1·...·]/core/primitive.u8.html">u8</a>]&gt;,·<a·class="struct"·href="struct.AllocError.html"·title="struct·alloc::alloc::AllocError">AllocError</a>&gt;;
5 <span·class="item-spacer"></span>····unsafe·fn·<a·href="#tymethod.deallocate"·class="fn">deallocate</a>(&amp;self,·ptr:·<a·class="struct"·href="../../core/ptr/non_null/struct.NonNull.html"·title="struct·core::ptr::non_null::NonNull">NonNull</a>&lt;<a·class="primitive"·href="../../core/primitive.u8.html">u8</a>&gt;,·layout:·<a·class="struct"·href="struct.Layout.html"·title="struct·alloc::alloc::Layout">Layout</a>);5 <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.78.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.78.0/core/primitive.u8.html">u8</a>&gt;,·layout:·<a·class="struct"·href="struct.Layout.html"·title="struct·alloc::alloc::Layout">Layout</a>);
  
6 ····//·Provided·methods6 ····//·Provided·methods
7 ····fn·<a·href="#method.allocate_zeroed"·class="fn">allocate_zeroed</a>(7 ····fn·<a·href="#method.allocate_zeroed"·class="fn">allocate_zeroed</a>(
8 ········&amp;self,8 ········&amp;self,
9 ········layout:·<a·class="struct"·href="struct.Layout.html"·title="struct·alloc::alloc::Layout">Layout</a>9 ········layout:·<a·class="struct"·href="struct.Layout.html"·title="struct·alloc::alloc::Layout">Layout</a>
10 ····)·-&gt;·<a·class="enum"·href="../../core/result/enum.Result.html"·title="enum·core::result::Result">Result</a>&lt;<a·class="struct"·href="../../core/ptr/non_null/struct.NonNull.html"·title="struct·core::ptr::non_null::NonNull">NonNull</a>&lt;[<a·class="primitive"·href="../../core/primitive.u8.html">u8</a>]&gt;,·<a·class="struct"·href="struct.AllocError.html"·title="struct·alloc::alloc::AllocError">AllocError</a>&gt;·{·...·}10 ····)·-&gt;·<a·class="enum"·href="https://doc.rust-lang.org/1.78.0/core/result/enum.Result.html"·title="enum·core::result::Result">Result</a>&lt;<a·class="struct"·href="https://doc.rust-lang.org/1.78.0/core/ptr/non_null/struct.NonNull.html"·title="struct·core::ptr::non_null::NonNull">NonNu[·...·truncated·by·diffoscope;·len:·70,·SHA:·481746ff5f6daf977bb6d18d396e53f0cb38904b4dbc6cf313c8c29972c282a1·...·]/core/primitive.u8.html">u8</a>]&gt;,·<a·class="struct"·href="struct.AllocError.html"·title="struct·alloc::alloc::AllocError">AllocError</a>&gt;·{·...·}
11 <span·class="item-spacer"></span>····unsafe·fn·<a·href="#method.grow"·class="fn">grow</a>(11 <span·class="item-spacer"></span>····unsafe·fn·<a·href="#method.grow"·class="fn">grow</a>(
12 ········&amp;self,12 ········&amp;self,
13 ········ptr:·<a·class="struct"·href="../../core/ptr/non_null/struct.NonNull.html"·title="struct·core::ptr::non_null::NonNull">NonNull</a>&lt;<a·class="primitive"·href="../../core/primitive.u8.html">u8</a>&gt;,13 ········ptr:·<a·class="struct"·href="https://doc.rust-lang.org/1.78.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.78.0/core/primitive.u8.html">u8</a>&gt;,
14 ········old_layout:·<a·class="struct"·href="struct.Layout.html"·title="struct·alloc::alloc::Layout">Layout</a>,14 ········old_layout:·<a·class="struct"·href="struct.Layout.html"·title="struct·alloc::alloc::Layout">Layout</a>,
15 ········new_layout:·<a·class="struct"·href="struct.Layout.html"·title="struct·alloc::alloc::Layout">Layout</a>15 ········new_layout:·<a·class="struct"·href="struct.Layout.html"·title="struct·alloc::alloc::Layout">Layout</a>
16 ····)·-&gt;·<a·class="enum"·href="../../core/result/enum.Result.html"·title="enum·core::result::Result">Result</a>&lt;<a·class="struct"·href="../../core/ptr/non_null/struct.NonNull.html"·title="struct·core::ptr::non_null::NonNull">NonNull</a>&lt;[<a·class="primitive"·href="../../core/primitive.u8.html">u8</a>]&gt;,·<a·class="struct"·href="struct.AllocError.html"·title="struct·alloc::alloc::AllocError">AllocError</a>&gt;·{·...·}16 ····)·-&gt;·<a·class="enum"·href="https://doc.rust-lang.org/1.78.0/core/result/enum.Result.html"·title="enum·core::result::Result">Result</a>&lt;<a·class="struct"·href="https://doc.rust-lang.org/1.78.0/core/ptr/non_null/struct.NonNull.html"·title="struct·core::ptr::non_null::NonNull">NonNu[·...·truncated·by·diffoscope;·len:·70,·SHA:·481746ff5f6daf977bb6d18d396e53f0cb38904b4dbc6cf313c8c29972c282a1·...·]/core/primitive.u8.html">u8</a>]&gt;,·<a·class="struct"·href="struct.AllocError.html"·title="struct·alloc::alloc::AllocError">AllocError</a>&gt;·{·...·}
17 <span·class="item-spacer"></span>····unsafe·fn·<a·href="#method.grow_zeroed"·class="fn">grow_zeroed</a>(17 <span·class="item-spacer"></span>····unsafe·fn·<a·href="#method.grow_zeroed"·class="fn">grow_zeroed</a>(
18 ········&amp;self,18 ········&amp;self,
19 ········ptr:·<a·class="struct"·href="../../core/ptr/non_null/struct.NonNull.html"·title="struct·core::ptr::non_null::NonNull">NonNull</a>&lt;<a·class="primitive"·href="../../core/primitive.u8.html">u8</a>&gt;,19 ········ptr:·<a·class="struct"·href="https://doc.rust-lang.org/1.78.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.78.0/core/primitive.u8.html">u8</a>&gt;,
20 ········old_layout:·<a·class="struct"·href="struct.Layout.html"·title="struct·alloc::alloc::Layout">Layout</a>,20 ········old_layout:·<a·class="struct"·href="struct.Layout.html"·title="struct·alloc::alloc::Layout">Layout</a>,
21 ········new_layout:·<a·class="struct"·href="struct.Layout.html"·title="struct·alloc::alloc::Layout">Layout</a>21 ········new_layout:·<a·class="struct"·href="struct.Layout.html"·title="struct·alloc::alloc::Layout">Layout</a>
22 ····)·-&gt;·<a·class="enum"·href="../../core/result/enum.Result.html"·title="enum·core::result::Result">Result</a>&lt;<a·class="struct"·href="../../core/ptr/non_null/struct.NonNull.html"·title="struct·core::ptr::non_null::NonNull">NonNull</a>&lt;[<a·class="primitive"·href="../../core/primitive.u8.html">u8</a>]&gt;,·<a·class="struct"·href="struct.AllocError.html"·title="struct·alloc::alloc::AllocError">AllocError</a>&gt;·{·...·}22 ····)·-&gt;·<a·class="enum"·href="https://doc.rust-lang.org/1.78.0/core/result/enum.Result.html"·title="enum·core::result::Result">Result</a>&lt;<a·class="struct"·href="https://doc.rust-lang.org/1.78.0/core/ptr/non_null/struct.NonNull.html"·title="struct·core::ptr::non_null::NonNull">NonNu[·...·truncated·by·diffoscope;·len:·70,·SHA:·481746ff5f6daf977bb6d18d396e53f0cb38904b4dbc6cf313c8c29972c282a1·...·]/core/primitive.u8.html">u8</a>]&gt;,·<a·class="struct"·href="struct.AllocError.html"·title="struct·alloc::alloc::AllocError">AllocError</a>&gt;·{·...·}
23 <span·class="item-spacer"></span>····unsafe·fn·<a·href="#method.shrink"·class="fn">shrink</a>(23 <span·class="item-spacer"></span>····unsafe·fn·<a·href="#method.shrink"·class="fn">shrink</a>(
24 ········&amp;self,24 ········&amp;self,
25 ········ptr:·<a·class="struct"·href="../../core/ptr/non_null/struct.NonNull.html"·title="struct·core::ptr::non_null::NonNull">NonNull</a>&lt;<a·class="primitive"·href="../../core/primitive.u8.html">u8</a>&gt;,25 ········ptr:·<a·class="struct"·href="https://doc.rust-lang.org/1.78.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.78.0/core/primitive.u8.html">u8</a>&gt;,
26 ········old_layout:·<a·class="struct"·href="struct.Layout.html"·title="struct·alloc::alloc::Layout">Layout</a>,26 ········old_layout:·<a·class="struct"·href="struct.Layout.html"·title="struct·alloc::alloc::Layout">Layout</a>,
27 ········new_layout:·<a·class="struct"·href="struct.Layout.html"·title="struct·alloc::alloc::Layout">Layout</a>27 ········new_layout:·<a·class="struct"·href="struct.Layout.html"·title="struct·alloc::alloc::Layout">Layout</a>
28 ····)·-&gt;·<a·class="enum"·href="../../core/result/enum.Result.html"·title="enum·core::result::Result">Result</a>&lt;<a·class="struct"·href="../../core/ptr/non_null/struct.NonNull.html"·title="struct·core::ptr::non_null::NonNull">NonNull</a>&lt;[<a·class="primitive"·href="../../core/primitive.u8.html">u8</a>]&gt;,·<a·class="struct"·href="struct.AllocError.html"·title="struct·alloc::alloc::AllocError">AllocError</a>&gt;·{·...·}28 ····)·-&gt;·<a·class="enum"·href="https://doc.rust-lang.org/1.78.0/core/result/enum.Result.html"·title="enum·core::result::Result">Result</a>&lt;<a·class="struct"·href="https://doc.rust-lang.org/1.78.0/core/ptr/non_null/struct.NonNull.html"·title="struct·core::ptr::non_null::NonNull">NonNu[·...·truncated·by·diffoscope;·len:·70,·SHA:·481746ff5f6daf977bb6d18d396e53f0cb38904b4dbc6cf313c8c29972c282a1·...·]/core/primitive.u8.html">u8</a>]&gt;,·<a·class="struct"·href="struct.AllocError.html"·title="struct·alloc::alloc::AllocError">AllocError</a>&gt;·{·...·}
29 <span·class="item-spacer"></span>····fn·<a·href="#method.by_ref"·class="fn">by_ref</a>(&amp;self)·-&gt;·<a·class="primitive"·href="../../core/primitive.reference.html">&amp;Self</a>29 <span·class="item-spacer"></span>····fn·<a·href="#method.by_ref"·class="fn">by_ref</a>(&amp;self)·-&gt;·<a·class="primitive"·href="https://doc.rust-lang.org/1.78.0/core/primitive.reference.html">&amp;Self</a>
30 ·······<span·class="where">where·Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a></span>·{·...·}30 ·······<span·class="where">where·Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a></span>·{·...·}
31 }</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·of31 }</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
32 data·described·via·<a·href="struct.Layout.html"·title="struct·alloc::alloc::Layout"><code>Layout</code></a>.</p>32 data·described·via·<a·href="struct.Layout.html"·title="struct·alloc::alloc::Layout"><code>Layout</code></a>.</p>
33 <p><code>Allocator</code>·is·designed·to·be·implemented·on·ZSTs,·references,·or·smart·pointers·because·having33 <p><code>Allocator</code>·is·designed·to·be·implemented·on·ZSTs,·references,·or·smart·pointers·because·having
34 an·allocator·like·<code>MyAlloc([u8;·N])</code>·cannot·be·moved,·without·updating·the·pointers·to·the34 an·allocator·like·<code>MyAlloc([u8;·N])</code>·cannot·be·moved,·without·updating·the·pointers·to·the
35 allocated·memory.</p>35 allocated·memory.</p>
36 <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·underlying36 <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
37 allocator·does·not·support·this·(like·jemalloc)·or·return·a·null·pointer·(such·as37 allocator·does·not·support·this·(like·jemalloc)·or·return·a·null·pointer·(such·as
Offset 84, 16 lines modifiedOffset 84, 16 lines modified
84 allocator.·A·copied·or·cloned·allocator·must·behave·like·the·same·allocator,·and</p>84 allocator.·A·copied·or·cloned·allocator·must·behave·like·the·same·allocator,·and</p>
85 </li>85 </li>
86 <li>86 <li>
87 <p>any·pointer·to·a·memory·block·which·is·<a·href="#currently-allocated-memory"><em>currently·allocated</em></a>·may·be·passed·to·any·other87 <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
88 method·of·the·allocator.</p>88 method·of·the·allocator.</p>
89 </li>89 </li>
90 </ul>90 </ul>
91 </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#136">source</a><h4·class="code-header">fn·<a·href="#tymethod.allocate"·class="fn">allocate</a>(&amp;self,·layout:·<a·class="struct"·href="struct.Layout.html"·title="struct·alloc::alloc::Layout">Layout</a>)·-&gt;·<a·class="e[·...·truncated·by·diffoscope;·len:·256,·SHA:·b3df07ffc2dfb1e3f3065deb9a4d0d2b3c3eb37d927324a83b239c556ba8b1c3·...·]/core/primitive.u8.html">u8</a>]&gt;,·<a·class="struct"·href="struct.AllocError.html"·title="struct·alloc::alloc::AllocError">AllocError</a>&gt;</h4></section><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>allocator_api</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/32838">#32838</a>)</span></div></span></summary><div·class="docblock"><p>Attempts·to·allocate·a·block·of·memory.</p>91 </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.78.0/src/core/alloc/mod.rs.html#136">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:·3d4f9ddd44b08f1f19f636c74e80f46afff81605f8bcd6847d2be879915316b5·...·]/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>
92 <p>On·success,·returns·a·<a·href="../../core/ptr/non_null/struct.NonNull.html"·title="struct·core::ptr::non_null::NonNull"><code>NonNull&lt;[u8]&gt;</code></a>·meeting·the·size·and·alignment·guarantees·of·<code>layout</code>.</p>92 <p>On·success,·returns·a·<a·href="https://doc.rust-lang.org/1.78.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>
93 <p>The·returned·block·may·have·a·larger·size·than·specified·by·<code>layout.size()</code>,·and·may·or·may93 <p>The·returned·block·may·have·a·larger·size·than·specified·by·<code>layout.size()</code>,·and·may·or·may
94 not·have·its·contents·initialized.</p>94 not·have·its·contents·initialized.</p>
95 <p>The·returned·block·of·memory·remains·valid·as·long·as·it·is·[<em>currently·allocated</em>]·and·the·shorter·of:</p>95 <p>The·returned·block·of·memory·remains·valid·as·long·as·it·is·[<em>currently·allocated</em>]·and·the·shorter·of:</p>
96 <ul>96 <ul>
97 <li>the·borrow-checker·lifetime·of·the·allocator·type·itself.</li>97 <li>the·borrow-checker·lifetime·of·the·allocator·type·itself.</li>
98 <li>as·long·as·at·the·allocator·and·all·its·clones·has·not·been·dropped.</li>98 <li>as·long·as·at·the·allocator·and·all·its·clones·has·not·been·dropped.</li>
99 </ul>99 </ul>
Offset 101, 36 lines modifiedOffset 101, 36 lines modified
101 <p>Returning·<code>Err</code>·indicates·that·either·memory·is·exhausted·or·<code>layout</code>·does·not·meet101 <p>Returning·<code>Err</code>·indicates·that·either·memory·is·exhausted·or·<code>layout</code>·does·not·meet
102 allocator’s·size·or·alignment·constraints.</p>102 allocator’s·size·or·alignment·constraints.</p>
103 <p>Implementations·are·encouraged·to·return·<code>Err</code>·on·memory·exhaustion·rather·than·panicking·or103 <p>Implementations·are·encouraged·to·return·<code>Err</code>·on·memory·exhaustion·rather·than·panicking·or
104 aborting,·but·this·is·not·a·strict·requirement.·(Specifically:·it·is·<em>legal</em>·to·implement104 aborting,·but·this·is·not·a·strict·requirement.·(Specifically:·it·is·<em>legal</em>·to·implement
105 this·trait·atop·an·underlying·native·allocation·library·that·aborts·on·memory·exhaustion.)</p>105 this·trait·atop·an·underlying·native·allocation·library·that·aborts·on·memory·exhaustion.)</p>
106 <p>Clients·wishing·to·abort·computation·in·response·to·an·allocation·error·are·encouraged·to106 <p>Clients·wishing·to·abort·computation·in·response·to·an·allocation·error·are·encouraged·to
107 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 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>
108 </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#169">source</a><h4·class="code-header">unsafe·fn·<a·href="#tymethod.deallocate"·class="fn">deallocate</a>(&amp;self,·ptr:·<a·class="struct"·href="../../core/ptr/non_null/struct.NonNull.html"·title="struct·core::ptr::non_nul[·...·truncated·by·diffoscope;·len:·59,·SHA:·9b2b66a6cb38c1523e2bd34be77d99d0455e0d73535ac0bbc409afa26868d2ad·...·]/core/primitive.u8.html">u8</a>&gt;,·layout:·<a·class="struct"·href="struct.Layout.html"·title="struct·alloc::alloc::Layout">Layout</a>)</h4></section><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>allocator_api</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/32838">#32838</a>)</span></div></span></summary><div·class="docblock"><p>Deallocates·the·memory·referenced·by·<code>ptr</code>.</p>108 </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.78.0/src/core/alloc/mod.rs.html#169">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.78.0/core/ptr/non_null[·...·truncated·by·diffoscope;·len:·140,·SHA:·ca9ad2da7aacc8defca538a3699dd221ceb794a86ffeca3c9fb8773075b237d6·...·]/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>
109 <h5·id="safety-1"><a·class="doc-anchor"·href="#safety-1">§</a>Safety</h5>109 <h5·id="safety-1"><a·class="doc-anchor"·href="#safety-1">§</a>Safety</h5>
110 <ul>110 <ul>
111 <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>ptr</code>·must·denote·a·block·of·memory·<a·href="#currently-allocated-memory"><em>currently·allocated</em></a>·via·this·allocator,·and</li>
112 <li><code>layout</code>·must·<a·href="#memory-fitting"><em>fit</em></a>·that·block·of·memory.</li>112 <li><code>layout</code>·must·<a·href="#memory-fitting"><em>fit</em></a>·that·block·of·memory.</li>
113 </ul>113 </ul>
114 </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#153">source</a><h4·class="code-header">fn·<a·href="#method.allocate_zeroed"·class="fn">allocate_zeroed</a>(&amp;self,·layout:·<a·class="struct"·href="struct.Layout.html"·title="struct·alloc::alloc::Layout">Layout</a>)·-&gt;[·...·truncated·by·diffoscope;·len:·268,·SHA:·a07d53ef1e07fdd911876c353370d75eec1e1e09ecb0760f07c64fd32baa430b·...·]/core/primitive.u8.html">u8</a>]&gt;,·<a·class="struct"·href="struct.AllocError.html"·title="struct·alloc::alloc::AllocError">AllocError</a>&gt;</h4></section><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>allocator_api</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/32838">#32838</a>)</span></div></span></summary><div·class="docblock"><p>Behaves·like·<code>allocate</code>,·but·also·ensures·that·the·returned·memory·is·zero-initialized.</p>114 </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.78.0/src/core/alloc/mod.rs.html#153">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:·3946003167b56577856408ca0720fd85afbed4f051e6354a4d1f2ce58f284481·...·]/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>
115 <h5·id="errors-1"><a·class="doc-anchor"·href="#errors-1">§</a>Errors</h5>115 <h5·id="errors-1"><a·class="doc-anchor"·href="#errors-1">§</a>Errors</h5>
116 <p>Returning·<code>Err</code>·indicates·that·either·memory·is·exhausted·or·<code>layout</code>·does·not·meet116 <p>Returning·<code>Err</code>·indicates·that·either·memory·is·exhausted·or·<code>layout</code>·does·not·meet
117 allocator’s·size·or·alignment·constraints.</p>117 allocator’s·size·or·alignment·constraints.</p>
118 <p>Implementations·are·encouraged·to·return·<code>Err</code>·on·memory·exhaustion·rather·than·panicking·or118 <p>Implementations·are·encouraged·to·return·<code>Err</code>·on·memory·exhaustion·rather·than·panicking·or
119 aborting,·but·this·is·not·a·strict·requirement.·(Specifically:·it·is·<em>legal</em>·to·implement119 aborting,·but·this·is·not·a·strict·requirement.·(Specifically:·it·is·<em>legal</em>·to·implement
120 this·trait·atop·an·underlying·native·allocation·library·that·aborts·on·memory·exhaustion.)</p>120 this·trait·atop·an·underlying·native·allocation·library·that·aborts·on·memory·exhaustion.)</p>
121 <p>Clients·wishing·to·abort·computation·in·response·to·an·allocation·error·are·encouraged·to121 <p>Clients·wishing·to·abort·computation·in·response·to·an·allocation·error·are·encouraged·to
122 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 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>
123 </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#209-214">source</a><h4·class="code-header">unsafe·fn·<a·href="#method.grow"·class="fn">grow</a>(123 </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.78.0/src/core/alloc/mod.rs.html#209-214">source</a><h4·class="code-header">unsafe·fn·<a·href="#method.grow"·class="fn">grow</a>(
124 ····&amp;self,124 ····&amp;self,
125 ····ptr:·<a·class="struct"·href="../../core/ptr/non_null/struct.NonNull.html"·title="struct·core::ptr::non_null::NonNull">NonNull</a>&lt;<a·class="primitive"·href="../../core/primitive.u8.html">u8</a>&gt;,125 ····ptr:·<a·class="struct"·href="https://doc.rust-lang.org/1.78.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.78.0/core/primitive.u8.html">u8</a>&gt;,
126 ····old_layout:·<a·class="struct"·href="struct.Layout.html"·title="struct·alloc::alloc::Layout">Layout</a>,126 ····old_layout:·<a·class="struct"·href="struct.Layout.html"·title="struct·alloc::alloc::Layout">Layout</a>,
127 ····new_layout:·<a·class="struct"·href="struct.Layout.html"·title="struct·alloc::alloc::Layout">Layout</a>127 ····new_layout:·<a·class="struct"·href="struct.Layout.html"·title="struct·alloc::alloc::Layout">Layout</a>
128 )·-&gt;·<a·class="enum"·href="../../core/result/enum.Result.html"·title="enum·core::result::Result">Result</a>&lt;<a·class="struct"·href="../../core/ptr/non_null/struct.NonNull.html"·title="struct·core::ptr::non_null::NonNull">NonNull</a>&lt;[<a·class="primitive"·href="../../core/primitive.u8.html">u8</a>]&gt;,·<a·class="struct"·href="struct.AllocError.html"·title="struct·alloc::alloc::AllocError">AllocError</a>&gt;</h4></section><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>allocator_api</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/32838">#32838</a>)</span></div></span></summary><div·class="docblock"><p>Attempts·to·extend·the·memory·block.</p>128 )·-&gt;·<a·class="enum"·href="https://doc.rust-lang.org/1.78.0/core/result/enum.Result.html"·title="enum·core::result::Result">Result</a>&lt;<a·class="struct"·href="https://doc.rust-lang.org/1.78.0/core/ptr/non_null/struct.NonNull.html"·title="struct·core::ptr::non_null::NonNull">NonNu[·...·truncated·by·diffoscope;·len:·70,·SHA:·481746ff5f6daf977bb6d18d396e53f0cb38904b4dbc6cf313c8c29972c282a1·...·]/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>
129 <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·allocated129 <p>Returns·a·new·<a·href="https://doc.rust-lang.org/1.78.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
130 memory.·The·pointer·is·suitable·for·holding·data·described·by·<code>new_layout</code>.·To·accomplish130 memory.·The·pointer·is·suitable·for·holding·data·described·by·<code>new_layout</code>.·To·accomplish
131 this,·the·allocator·may·extend·the·allocation·referenced·by·<code>ptr</code>·to·fit·the·new·layout.</p>131 this,·the·allocator·may·extend·the·allocation·referenced·by·<code>ptr</code>·to·fit·the·new·layout.</p>
132 <p>If·this·returns·<code>Ok</code>,·then·ownership·of·the·memory·block·referenced·by·<code>ptr</code>·has·been132 <p>If·this·returns·<code>Ok</code>,·then·ownership·of·the·memory·block·referenced·by·<code>ptr</code>·has·been
133 transferred·to·this·allocator.·Any·access·to·the·old·<code>ptr</code>·is·Undefined·Behavior,·even·if·the133 transferred·to·this·allocator.·Any·access·to·the·old·<code>ptr</code>·is·Undefined·Behavior,·even·if·the
134 allocation·was·grown·in-place.·The·newly·returned·pointer·is·the·only·valid·pointer134 allocation·was·grown·in-place.·The·newly·returned·pointer·is·the·only·valid·pointer
135 for·accessing·this·memory·now.</p>135 for·accessing·this·memory·now.</p>
136 <p>If·this·method·returns·<code>Err</code>,·then·ownership·of·the·memory·block·has·not·been·transferred·to136 <p>If·this·method·returns·<code>Err</code>,·then·ownership·of·the·memory·block·has·not·been·transferred·to
Offset 146, 20 lines modifiedOffset 146, 20 lines modified
146 <p>Returns·<code>Err</code>·if·the·new·layout·does·not·meet·the·allocator’s·size·and·alignment146 <p>Returns·<code>Err</code>·if·the·new·layout·does·not·meet·the·allocator’s·size·and·alignment
147 constraints·of·the·allocator,·or·if·growing·otherwise·fails.</p>147 constraints·of·the·allocator,·or·if·growing·otherwise·fails.</p>
148 <p>Implementations·are·encouraged·to·return·<code>Err</code>·on·memory·exhaustion·rather·than·panicking·or148 <p>Implementations·are·encouraged·to·return·<code>Err</code>·on·memory·exhaustion·rather·than·panicking·or
149 aborting,·but·this·is·not·a·strict·requirement.·(Specifically:·it·is·<em>legal</em>·to·implement149 aborting,·but·this·is·not·a·strict·requirement.·(Specifically:·it·is·<em>legal</em>·to·implement
150 this·trait·atop·an·underlying·native·allocation·library·that·aborts·on·memory·exhaustion.)</p>150 this·trait·atop·an·underlying·native·allocation·library·that·aborts·on·memory·exhaustion.)</p>
151 <p>Clients·wishing·to·abort·computation·in·response·to·an·allocation·error·are·encouraged·to151 <p>Clients·wishing·to·abort·computation·in·response·to·an·allocation·error·are·encouraged·to
152 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 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>
153 </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#272-277">source</a><h4·class="code-header">unsafe·fn·<a·href="#method.grow_zeroed"·class="fn">grow_zeroed</a>(153 </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.78.0/src/core/alloc/mod.rs.html#272-277">source</a><h4·class="code-header">unsafe·fn·<a·href="#method.grow_zeroed"·class="fn">grow_zeroed</a>(
154 ····&amp;self,154 ····&amp;self,
155 ····ptr:·<a·class="struct"·href="../../core/ptr/non_null/struct.NonNull.html"·title="struct·core::ptr::non_null::NonNull">NonNull</a>&lt;<a·class="primitive"·href="../../core/primitive.u8.html">u8</a>&gt;,155 ····ptr:·<a·class="struct"·href="https://doc.rust-lang.org/1.78.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.78.0/core/primitive.u8.html">u8</a>&gt;,
156 ····old_layout:·<a·class="struct"·href="struct.Layout.html"·title="struct·alloc::alloc::Layout">Layout</a>,156 ····old_layout:·<a·class="struct"·href="struct.Layout.html"·title="struct·alloc::alloc::Layout">Layout</a>,
157 ····new_layout:·<a·class="struct"·href="struct.Layout.html"·title="struct·alloc::alloc::Layout">Layout</a>157 ····new_layout:·<a·class="struct"·href="struct.Layout.html"·title="struct·alloc::alloc::Layout">Layout</a>
158 )·-&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·being158 )·-&gt;·<a·class="enum"·href="https://doc.rust-lang.org/1.78.0/core/result/enum.Result.html"·title="enum·core::result::Result">Result</a>&lt;<a·class="struct"·href="https://doc.rust-lang.org/1.78.0/core/ptr/non_null/struct.NonNull.html"·title="struct·core::ptr::non_null::NonNull">NonNu[·...·truncated·by·diffoscope;·len:·70,·SHA:·481746ff5f6daf977bb6d18d396e53f0cb38904b4dbc6cf313c8c29972c282a1·...·]/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
159 returned.</p>159 returned.</p>
160 <p>The·memory·block·will·contain·the·following·contents·after·a·successful·call·to160 <p>The·memory·block·will·contain·the·following·contents·after·a·successful·call·to
161 <code>grow_zeroed</code>:</p>161 <code>grow_zeroed</code>:</p>
162 <ul>162 <ul>
163 <li>Bytes·<code>0..old_layout.size()</code>·are·preserved·from·the·original·allocation.</li>163 <li>Bytes·<code>0..old_layout.size()</code>·are·preserved·from·the·original·allocation.</li>
164 <li>Bytes·<code>old_layout.size()..old_size</code>·will·either·be·preserved·or·zeroed,·depending·on164 <li>Bytes·<code>old_layout.size()..old_size</code>·will·either·be·preserved·or·zeroed,·depending·on
165 the·allocator·implementation.·<code>old_size</code>·refers·to·the·size·of·the·memory·block·prior165 the·allocator·implementation.·<code>old_size</code>·refers·to·the·size·of·the·memory·block·prior
Offset 179, 21 lines modifiedOffset 179, 21 lines modified
179 <p>Returns·<code>Err</code>·if·the·new·layout·does·not·meet·the·allocator’s·size·and·alignment179 <p>Returns·<code>Err</code>·if·the·new·layout·does·not·meet·the·allocator’s·size·and·alignment
180 constraints·of·the·allocator,·or·if·growing·otherwise·fails.</p>180 constraints·of·the·allocator,·or·if·growing·otherwise·fails.</p>
181 <p>Implementations·are·encouraged·to·return·<code>Err</code>·on·memory·exhaustion·rather·than·panicking·or181 <p>Implementations·are·encouraged·to·return·<code>Err</code>·on·memory·exhaustion·rather·than·panicking·or
182 aborting,·but·this·is·not·a·strict·requirement.·(Specifically:·it·is·<em>legal</em>·to·implement182 aborting,·but·this·is·not·a·strict·requirement.·(Specifically:·it·is·<em>legal</em>·to·implement
183 this·trait·atop·an·underlying·native·allocation·library·that·aborts·on·memory·exhaustion.)</p>183 this·trait·atop·an·underlying·native·allocation·library·that·aborts·on·memory·exhaustion.)</p>
184 <p>Clients·wishing·to·abort·computation·in·response·to·an·allocation·error·are·encouraged·to184 <p>Clients·wishing·to·abort·computation·in·response·to·an·allocation·error·are·encouraged·to
185 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 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>
186 </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#336-341">source</a><h4·class="code-header">unsafe·fn·<a·href="#method.shrink"·class="fn">shrink</a>(186 </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.78.0/src/core/alloc/mod.rs.html#336-341">source</a><h4·class="code-header">unsafe·fn·<a·href="#method.shrink"·class="fn">shrink</a>(
187 ····&amp;self,187 ····&amp;self,
188 ····ptr:·<a·class="struct"·href="../../core/ptr/non_null/struct.NonNull.html"·title="struct·core::ptr::non_null::NonNull">NonNull</a>&lt;<a·class="primitive"·href="../../core/primitive.u8.html">u8</a>&gt;,188 ····ptr:·<a·class="struct"·href="https://doc.rust-lang.org/1.78.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.78.0/core/primitive.u8.html">u8</a>&gt;,
189 ····old_layout:·<a·class="struct"·href="struct.Layout.html"·title="struct·alloc::alloc::Layout">Layout</a>,189 ····old_layout:·<a·class="struct"·href="struct.Layout.html"·title="struct·alloc::alloc::Layout">Layout</a>,
190 ····new_layout:·<a·class="struct"·href="struct.Layout.html"·title="struct·alloc::alloc::Layout">Layout</a>190 ····new_layout:·<a·class="struct"·href="struct.Layout.html"·title="struct·alloc::alloc::Layout">Layout</a>
191 )·-&gt;·<a·class="enum"·href="../../core/result/enum.Result.html"·title="enum·core::result::Result">Result</a>&lt;<a·class="struct"·href="../../core/ptr/non_null/struct.NonNull.html"·title="struct·core::ptr::non_null::NonNull">NonNull</a>&lt;[<a·class="primitive"·href="../../core/primitive.u8.html">u8</a>]&gt;,·<a·class="struct"·href="struct.AllocError.html"·title="struct·alloc::alloc::AllocError">AllocError</a>&gt;</h4></section><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>allocator_api</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/32838">#32838</a>)</span></div></span></summary><div·class="docblock"><p>Attempts·to·shrink·the·memory·block.</p>191 )·-&gt;·<a·class="enum"·href="https://doc.rust-lang.org/1.78.0/core/result/enum.Result.html"·title="enum·core::result::Result">Result</a>&lt;<a·class="struct"·href="https://doc.rust-lang.org/1.78.0/core/ptr/non_null/struct.NonNull.html"·title="struct·core::ptr::non_null::NonNull">NonNu[·...·truncated·by·diffoscope;·len:·70,·SHA:·481746ff5f6daf977bb6d18d396e53f0cb38904b4dbc6cf313c8c29972c282a1·...·]/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>
Max diff block lines reached; 6067/45910 bytes (13.21%) of diff not shown.
19.6 KB
./usr/share/doc/rust-web-doc/html/alloc/alloc/trait.GlobalAlloc.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·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.write(`<link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/SourceSerif4-Regular-46f98efaafac5295.ttf.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/FiraSans-Regular-018c141bf0843ffd.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/FiraSans-Medium-8f9a781e4970d388.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/SourceCodePro-Regular-562dcc5011b6de7d.ttf.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/SourceCodePro-Semibold-d899c5a5c4aeb14a.ttf.woff2">`)</script><link·rel="stylesheet"·href="../../static.files/normalize-76eba96aa4d2e634.css"><link·rel="stylesheet"·href="../../static.files/rustdoc-35f9e32502181f1e.css"><meta·name="rustdoc-vars"·data-root-path="../../"·data-static-root-path="../../static.files/"·data-current-crate="alloc"·data-themes=""·data-resource-suffix="1.78.0"·data-rustdoc-version="1.78.0"·data-channel="1.78.0"·data-search-js="search-42d8da7a6b9792c2.js"·data-settings-js="settings-4313503d2e1961c2.js"·><script·src="../../static.files/storage-4c98445ec4002617.js"></script><script·defer·src="sidebar-items1.78.0.js"></script><script·defer·src="../../static.files/main-12cf3b4f4f9dc36d.js"></script><noscript><link·rel="stylesheet"·href="../../static.files/noscript-04d5337699b92874.css"></noscript><link·rel="alternate·icon"·type="image/png"·href="../../static.files/favicon-16x16-8b506e7a72182f1c.png"><link·rel="alternate·icon"·type="image/png"·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.78.0</span></h2></div><h2·class="location"><a·href="#">GlobalAlloc</a></h2><div·class="sidebar-elems"><section><h3><a·href="#required-methods">Required·Methods</a></h3><ul·class="block"><li><a·href="#tymethod.alloc">alloc</a></li><li><a·href="#tymethod.dealloc">dealloc</a></li></ul><h3><a·href="#provided-methods">Provided·Methods</a></h3><ul·class="block"><li><a·href="#method.alloc_zeroed">alloc_zeroed</a></li><li><a·href="#method.realloc">realloc</a></li></ul><h3><a·href="#implementors">Implementors</a></h3></section><h2><a·href="index.html">In·alloc::alloc</a></h2></div></nav><div·class="sidebar-resizer"></div>1 <!DOCTYPE·html><html·lang="en"><head><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.write(`<link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/SourceSerif4-Regular-46f98efaafac5295.ttf.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/FiraSans-Regular-018c141bf0843ffd.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/FiraSans-Medium-8f9a781e4970d388.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/SourceCodePro-Regular-562dcc5011b6de7d.ttf.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/SourceCodePro-Semibold-d899c5a5c4aeb14a.ttf.woff2">`)</script><link·rel="stylesheet"·href="../../static.files/normalize-76eba96aa4d2e634.css"><link·rel="stylesheet"·href="../../static.files/rustdoc-35f9e32502181f1e.css"><meta·name="rustdoc-vars"·data-root-path="../../"·data-static-root-path="../../static.files/"·data-current-crate="alloc"·data-themes=""·data-resource-suffix="1.78.0"·data-rustdoc-version="1.78.0"·data-channel="1.78.0"·data-search-js="search-42d8da7a6b9792c2.js"·data-settings-js="settings-4313503d2e1961c2.js"·><script·src="../../static.files/storage-4c98445ec4002617.js"></script><script·defer·src="sidebar-items1.78.0.js"></script><script·defer·src="../../static.files/main-12cf3b4f4f9dc36d.js"></script><noscript><link·rel="stylesheet"·href="../../static.files/noscript-04d5337699b92874.css"></noscript><link·rel="alternate·icon"·type="image/png"·href="../../static.files/favicon-16x16-8b506e7a72182f1c.png"><link·rel="alternate·icon"·type="image/png"·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.78.0</span></h2></div><h2·class="location"><a·href="#">GlobalAlloc</a></h2><div·class="sidebar-elems"><section><h3><a·href="#required-methods">Required·Methods</a></h3><ul·class="block"><li><a·href="#tymethod.alloc">alloc</a></li><li><a·href="#tymethod.dealloc">dealloc</a></li></ul><h3><a·href="#provided-methods">Provided·Methods</a></h3><ul·class="block"><li><a·href="#method.alloc_zeroed">alloc_zeroed</a></li><li><a·href="#method.realloc">realloc</a></li></ul><h3><a·href="#implementors">Implementors</a></h3></section><h2><a·href="index.html">In·alloc::alloc</a></h2></div></nav><div·class="sidebar-resizer"></div>
2 ····<main><div·class="width-limiter"><nav·class="sub"><form·class="search-form"><span></span><div·id="sidebar-button"·tabindex="-1"><a·href="../../alloc/all.html"·title="show·sidebar"></a></div><input·class="search-input"·name="search"·aria-label="Run·search·in·the·documentation"·autocomplete="off"·spellcheck="false"·placeholder="Click·or·press·‘S’·to·search,·‘?’·for·more·options…"·type="search"><div·id="help-button"·tabindex="-1"><a·href="../../help.html"·title="help">?</a></div><div·id="settings-menu"·tabindex="-1"><a·href="../../settings.html"·title="settings"><img·width="22"·height="22"·alt="Change·settings"·src="../../static.files/wheel-7b819b6101059cd0.svg"></a></div></form></nav><section·id="main-content"·class="content"><div·class="main-heading"><h1>Trait·<a·href="../index.html">alloc</a>::<wbr><a·href="index.html">alloc</a>::<wbr><a·class="trait"·href="#">GlobalAlloc</a><button·id="copy-path"·title="Copy·item·path·to·clipboard"><img·src="../../static.files/clipboard-7571035ce49a181d.svg"·width="19"·height="18"·alt="Copy·item·path"></button></h1><span·class="out-of-band"><span·class="since"·title="Stable·since·Rust·version·1.28.0">1.28.0</span>···<a·class="src"·href="../../src/core/alloc/global.rs.html#123">source</a>···<button·id="toggle-all-docs"·title="collapse·all·docs">[<span>&#x2212;</span>]</button></span></div><pre·class="rust·item-decl"><code>pub·unsafe·trait·GlobalAlloc·{2 ····<main><div·class="width-limiter"><nav·class="sub"><form·class="search-form"><span></span><div·id="sidebar-button"·tabindex="-1"><a·href="../../alloc/all.html"·title="show·sidebar"></a></div><input·class="search-input"·name="search"·aria-label="Run·search·in·the·documentation"·autocomplete="off"·spellcheck="false"·placeholder="Click·or·press·‘S’·to·search,·‘?’·for·more·options…"·type="search"><div·id="help-button"·tabindex="-1"><a·href="../../help.html"·title="help">?</a></div><div·id="settings-menu"·tabindex="-1"><a·href="../../settings.html"·title="settings"><img·width="22"·height="22"·alt="Change·settings"·src="../../static.files/wheel-7b819b6101059cd0.svg"></a></div></form></nav><section·id="main-content"·class="content"><div·class="main-heading"><h1>Trait·<a·href="../index.html">alloc</a>::<wbr><a·href="index.html">alloc</a>::<wbr><a·class="trait"·href="#">GlobalAlloc</a><button·id="copy-path"·title="Copy·item·path·to·clipboard"><img·src="../../static.files/clipboard-7571035ce49a181d.svg"·width="19"·height="18"·alt="Copy·item·path"></button></h1><span·class="out-of-band"><span·class="since"·title="Stable·since·Rust·version·1.28.0">1.28.0</span>···<a·class="src"·href="https://doc.rust-lang.org/1.78.0/src/core/alloc/global.rs.html#123">source</a>···<button·id="toggle-all-docs"·title="collapse·all·docs">[<span>&#x2212;</span>]</button></span></div><pre·class="rust·item-decl"><code>pub·unsafe·trait·GlobalAlloc·{
3 ····//·Required·methods3 ····//·Required·methods
4 ····unsafe·fn·<a·href="#tymethod.alloc"·class="fn">alloc</a>(&amp;self,·layout:·<a·class="struct"·href="struct.Layout.html"·title="struct·alloc::alloc::Layout">Layout</a>)·-&gt;·<a·class="primitive"·href="../../core/primitive.pointer.html">*mut·</a><a·class="primitive"·href="../../core/primitive.u8.html">u8</a>;4 ····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.78.0/core/primitive.pointer.html">*mut·</a><a·class="primitive"·href="https://doc.rust-lang.org/1.78.0/core/primitive.u8.html">u8</a>;
5 <span·class="item-spacer"></span>····unsafe·fn·<a·href="#tymethod.dealloc"·class="fn">dealloc</a>(&amp;self,·ptr:·<a·class="primitive"·href="../../core/primitive.pointer.html">*mut·</a><a·class="primitive"·href="../../core/primitive.u8.html">u8</a>,·layout:·<a·class="struct"·href="struct.Layout.html"·title="struct·alloc::alloc::Layout">Layout</a>);5 <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.78.0/core/primitive.pointer.html">*mut·</a><a·class="primitive"·href="https://doc.rust-lang.org/1.78.0/core/primitive.u8.html">u8</a>,·layout:·<a·class="struct"·href="struct.Layout.html"·title="struct·alloc::alloc::Layout">Layout</a>);
  
6 ····//·Provided·methods6 ····//·Provided·methods
7 ····unsafe·fn·<a·href="#method.alloc_zeroed"·class="fn">alloc_zeroed</a>(&amp;self,·layout:·<a·class="struct"·href="struct.Layout.html"·title="struct·alloc::alloc::Layout">Layout</a>)·-&gt;·<a·class="primitive"·href="../../core/primitive.pointer.html">*mut·</a><a·class="primitive"·href="../../core/primitive.u8.html">u8</a>·{·...·}7 ····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.78.0/core/primitive.pointer.html">*mut·</a><a·class="primitive"·href="https://doc.rust-lang.org/1.78.0/core/primitive.u8.html">u8</a>·{·...·}
8 <span·class="item-spacer"></span>····unsafe·fn·<a·href="#method.realloc"·class="fn">realloc</a>(8 <span·class="item-spacer"></span>····unsafe·fn·<a·href="#method.realloc"·class="fn">realloc</a>(
9 ········&amp;self,9 ········&amp;self,
10 ········ptr:·<a·class="primitive"·href="../../core/primitive.pointer.html">*mut·</a><a·class="primitive"·href="../../core/primitive.u8.html">u8</a>,10 ········ptr:·<a·class="primitive"·href="https://doc.rust-lang.org/1.78.0/core/primitive.pointer.html">*mut·</a><a·class="primitive"·href="https://doc.rust-lang.org/1.78.0/core/primitive.u8.html">u8</a>,
11 ········layout:·<a·class="struct"·href="struct.Layout.html"·title="struct·alloc::alloc::Layout">Layout</a>,11 ········layout:·<a·class="struct"·href="struct.Layout.html"·title="struct·alloc::alloc::Layout">Layout</a>,
12 ········new_size:·<a·class="primitive"·href="../../core/primitive.usize.html">usize</a>12 ········new_size:·<a·class="primitive"·href="https://doc.rust-lang.org/1.78.0/core/primitive.usize.html">usize</a>
13 ····)·-&gt;·<a·class="primitive"·href="../../core/primitive.pointer.html">*mut·</a><a·class="primitive"·href="../../core/primitive.u8.html">u8</a>·{·...·}13 ····)·-&gt;·<a·class="primitive"·href="https://doc.rust-lang.org/1.78.0/core/primitive.pointer.html">*mut·</a><a·class="primitive"·href="https://doc.rust-lang.org/1.78.0/core/primitive.u8.html">u8</a>·{·...·}
14 }</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·default14 }</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
15 through·the·<code>#[global_allocator]</code>·attribute.</p>15 through·the·<code>#[global_allocator]</code>·attribute.</p>
16 <p>Some·of·the·methods·require·that·a·memory·block·be·<em>currently16 <p>Some·of·the·methods·require·that·a·memory·block·be·<em>currently
17 allocated</em>·via·an·allocator.·This·means·that:</p>17 allocated</em>·via·an·allocator.·This·means·that:</p>
18 <ul>18 <ul>
19 <li>19 <li>
20 <p>the·starting·address·for·that·memory·block·was·previously20 <p>the·starting·address·for·that·memory·block·was·previously
Offset 123, 15 lines modifiedOffset 123, 15 lines modified
123 optimization·that·can·be·applied.·You·may·generally·not·rely·on·heap·allocations123 optimization·that·can·be·applied.·You·may·generally·not·rely·on·heap·allocations
124 happening·if·they·can·be·removed·without·changing·program·behavior.124 happening·if·they·can·be·removed·without·changing·program·behavior.
125 Whether·allocations·happen·or·not·is·not·part·of·the·program·behavior,·even·if·it125 Whether·allocations·happen·or·not·is·not·part·of·the·program·behavior,·even·if·it
126 could·be·detected·via·an·allocator·that·tracks·allocations·by·printing·or·otherwise126 could·be·detected·via·an·allocator·that·tracks·allocations·by·printing·or·otherwise
127 having·side·effects.</p>127 having·side·effects.</p>
128 </li>128 </li>
129 </ul>129 </ul>
130 </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"><a·class="src·rightside"·href="../../src/core/alloc/global.rs.html#157">source</a><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;·<a·clas[·...·truncated·by·diffoscope;·len:·96,·SHA:·72a4ba1743c86056dda65b93b6fc9298bb45d60defc55ef747d2a3edbc955476·...·]/core/primitive.u8.html">u8</a></h4></section></summary><div·class="docblock"><p>Allocate·memory·as·described·by·the·given·<code>layout</code>.</p>130 </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"><a·class="src·rightside"·href="https://doc.rust-lang.org/1.78.0/src/core/alloc/global.rs.html#157">source</a><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[·...·truncated·by·diffoscope;·len:·177,·SHA:·8f2cbc2fbf561223f1c5d8b8a9ceff9db65c310d56c7250aa7bd72711527a437·...·]/core/primitive.u8.html">u8</a></h4></section></summary><div·class="docblock"><p>Allocate·memory·as·described·by·the·given·<code>layout</code>.</p>
131 <p>Returns·a·pointer·to·newly-allocated·memory,131 <p>Returns·a·pointer·to·newly-allocated·memory,
132 or·null·to·indicate·allocation·failure.</p>132 or·null·to·indicate·allocation·failure.</p>
133 <h5·id="safety-1"><a·class="doc-anchor"·href="#safety-1">§</a>Safety</h5>133 <h5·id="safety-1"><a·class="doc-anchor"·href="#safety-1">§</a>Safety</h5>
134 <p>This·function·is·unsafe·because·undefined·behavior·can·result134 <p>This·function·is·unsafe·because·undefined·behavior·can·result
135 if·the·caller·does·not·ensure·that·<code>layout</code>·has·non-zero·size.</p>135 if·the·caller·does·not·ensure·that·<code>layout</code>·has·non-zero·size.</p>
136 <p>(Extension·subtraits·might·provide·more·specific·bounds·on136 <p>(Extension·subtraits·might·provide·more·specific·bounds·on
137 behavior,·e.g.,·guarantee·a·sentinel·address·or·a·null·pointer137 behavior,·e.g.,·guarantee·a·sentinel·address·or·a·null·pointer
Offset 144, 46 lines modifiedOffset 144, 46 lines modified
144 exhaustion·rather·than·aborting,·but·this·is·not144 exhaustion·rather·than·aborting,·but·this·is·not
145 a·strict·requirement.·(Specifically:·it·is·<em>legal</em>·to145 a·strict·requirement.·(Specifically:·it·is·<em>legal</em>·to
146 implement·this·trait·atop·an·underlying·native·allocation146 implement·this·trait·atop·an·underlying·native·allocation
147 library·that·aborts·on·memory·exhaustion.)</p>147 library·that·aborts·on·memory·exhaustion.)</p>
148 <p>Clients·wishing·to·abort·computation·in·response·to·an148 <p>Clients·wishing·to·abort·computation·in·response·to·an
149 allocation·error·are·encouraged·to·call·the·<a·href="../../alloc/alloc/fn.handle_alloc_error.html"><code>handle_alloc_error</code></a>·function,149 allocation·error·are·encouraged·to·call·the·<a·href="../../alloc/alloc/fn.handle_alloc_error.html"><code>handle_alloc_error</code></a>·function,
150 rather·than·directly·invoking·<code>panic!</code>·or·similar.</p>150 rather·than·directly·invoking·<code>panic!</code>·or·similar.</p>
151 </div></details><details·class="toggle·method-toggle"·open><summary><section·id="tymethod.dealloc"·class="method"><a·class="src·rightside"·href="../../src/core/alloc/global.rs.html#172">source</a><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="../../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>Deallocate·the·block·of·memory·at·the·given·<code>ptr</code>·pointer·with·the·given·<code>layout</code>.</p>151 </div></details><details·class="toggle·method-toggle"·open><summary><section·id="tymethod.dealloc"·class="method"><a·class="src·rightside"·href="https://doc.rust-lang.org/1.78.0/src/core/alloc/global.rs.html#172">source</a><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.78.0/core/primitive.po[·...·truncated·by·diffoscope;·len:·80,·SHA:·d5de3dba89b5228bff5c6fb678e6168c84b62a04d1dcd25f0dc523a1e5db5703·...·]/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>Deallocate·the·block·of·memory·at·the·given·<code>ptr</code>·pointer·with·the·given·<code>layout</code>.</p>
152 <h5·id="safety-2"><a·class="doc-anchor"·href="#safety-2">§</a>Safety</h5>152 <h5·id="safety-2"><a·class="doc-anchor"·href="#safety-2">§</a>Safety</h5>
153 <p>This·function·is·unsafe·because·undefined·behavior·can·result153 <p>This·function·is·unsafe·because·undefined·behavior·can·result
154 if·the·caller·does·not·ensure·all·of·the·following:</p>154 if·the·caller·does·not·ensure·all·of·the·following:</p>
155 <ul>155 <ul>
156 <li>156 <li>
157 <p><code>ptr</code>·must·denote·a·block·of·memory·currently·allocated·via157 <p><code>ptr</code>·must·denote·a·block·of·memory·currently·allocated·via
158 this·allocator,</p>158 this·allocator,</p>
159 </li>159 </li>
160 <li>160 <li>
161 <p><code>layout</code>·must·be·the·same·layout·that·was·used161 <p><code>layout</code>·must·be·the·same·layout·that·was·used
162 to·allocate·that·block·of·memory.</p>162 to·allocate·that·block·of·memory.</p>
163 </li>163 </li>
164 </ul>164 </ul>
165 </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"><a·class="src·rightside"·href="../../src/core/alloc/global.rs.html#194">source</a><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</a>)·-[·...·truncated·by·diffoscope;·len:·108,·SHA:·db98731544c775017e608e8001b79ba6eac01b2a34255b8aa56c460f8caf9a3a·...·]/core/primitive.u8.html">u8</a></h4></section></summary><div·class="docblock"><p>Behaves·like·<code>alloc</code>,·but·also·ensures·that·the·contents165 </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"><a·class="src·rightside"·href="https://doc.rust-lang.org/1.78.0/src/core/alloc/global.rs.html#194">source</a><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::a[·...·truncated·by·diffoscope;·len:·189,·SHA:·98e0488aaf0652be89da8434a9237fa31e33d0adbd658cbc3c82da8077f16b8a·...·]/core/primitive.u8.html">u8</a></h4></section></summary><div·class="docblock"><p>Behaves·like·<code>alloc</code>,·but·also·ensures·that·the·contents
166 are·set·to·zero·before·being·returned.</p>166 are·set·to·zero·before·being·returned.</p>
167 <h5·id="safety-3"><a·class="doc-anchor"·href="#safety-3">§</a>Safety</h5>167 <h5·id="safety-3"><a·class="doc-anchor"·href="#safety-3">§</a>Safety</h5>
168 <p>This·function·is·unsafe·for·the·same·reasons·that·<code>alloc</code>·is.168 <p>This·function·is·unsafe·for·the·same·reasons·that·<code>alloc</code>·is.
169 However·the·allocated·block·of·memory·is·guaranteed·to·be·initialized.</p>169 However·the·allocated·block·of·memory·is·guaranteed·to·be·initialized.</p>
170 <h5·id="errors-1"><a·class="doc-anchor"·href="#errors-1">§</a>Errors</h5>170 <h5·id="errors-1"><a·class="doc-anchor"·href="#errors-1">§</a>Errors</h5>
171 <p>Returning·a·null·pointer·indicates·that·either·memory·is·exhausted171 <p>Returning·a·null·pointer·indicates·that·either·memory·is·exhausted
172 or·<code>layout</code>·does·not·meet·allocator’s·size·or·alignment·constraints,172 or·<code>layout</code>·does·not·meet·allocator’s·size·or·alignment·constraints,
173 just·as·in·<code>alloc</code>.</p>173 just·as·in·<code>alloc</code>.</p>
174 <p>Clients·wishing·to·abort·computation·in·response·to·an174 <p>Clients·wishing·to·abort·computation·in·response·to·an
175 allocation·error·are·encouraged·to·call·the·<a·href="../../alloc/alloc/fn.handle_alloc_error.html"><code>handle_alloc_error</code></a>·function,175 allocation·error·are·encouraged·to·call·the·<a·href="../../alloc/alloc/fn.handle_alloc_error.html"><code>handle_alloc_error</code></a>·function,
176 rather·than·directly·invoking·<code>panic!</code>·or·similar.</p>176 rather·than·directly·invoking·<code>panic!</code>·or·similar.</p>
177 </div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.realloc"·class="method"><a·class="src·rightside"·href="../../src/core/alloc/global.rs.html#263">source</a><h4·class="code-header">unsafe·fn·<a·href="#method.realloc"·class="fn">realloc</a>(177 </div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.realloc"·class="method"><a·class="src·rightside"·href="https://doc.rust-lang.org/1.78.0/src/core/alloc/global.rs.html#263">source</a><h4·class="code-header">unsafe·fn·<a·href="#method.realloc"·class="fn">realloc</a>(
178 ····&amp;self,178 ····&amp;self,
179 ····ptr:·<a·class="primitive"·href="../../core/primitive.pointer.html">*mut·</a><a·class="primitive"·href="../../core/primitive.u8.html">u8</a>,179 ····ptr:·<a·class="primitive"·href="https://doc.rust-lang.org/1.78.0/core/primitive.pointer.html">*mut·</a><a·class="primitive"·href="https://doc.rust-lang.org/1.78.0/core/primitive.u8.html">u8</a>,
180 ····layout:·<a·class="struct"·href="struct.Layout.html"·title="struct·alloc::alloc::Layout">Layout</a>,180 ····layout:·<a·class="struct"·href="struct.Layout.html"·title="struct·alloc::alloc::Layout">Layout</a>,
181 ····new_size:·<a·class="primitive"·href="../../core/primitive.usize.html">usize</a>181 ····new_size:·<a·class="primitive"·href="https://doc.rust-lang.org/1.78.0/core/primitive.usize.html">usize</a>
182 )·-&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>Shrink·or·grow·a·block·of·memory·to·the·given·<code>new_size</code>·in·bytes.182 )·-&gt;·<a·class="primitive"·href="https://doc.rust-lang.org/1.78.0/core/primitive.pointer.html">*mut·</a><a·class="primitive"·href="https://doc.rust-lang.org/1.78.0/core/primitive.u8.html">u8</a></h4></section></summary><div·class="docblock"><p>Shrink·or·grow·a·block·of·memory·to·the·given·<code>new_size</code>·in·bytes.
183 The·block·is·described·by·the·given·<code>ptr</code>·pointer·and·<code>layout</code>.</p>183 The·block·is·described·by·the·given·<code>ptr</code>·pointer·and·<code>layout</code>.</p>
184 <p>If·this·returns·a·non-null·pointer,·then·ownership·of·the·memory·block184 <p>If·this·returns·a·non-null·pointer,·then·ownership·of·the·memory·block
185 referenced·by·<code>ptr</code>·has·been·transferred·to·this·allocator.185 referenced·by·<code>ptr</code>·has·been·transferred·to·this·allocator.
186 Any·access·to·the·old·<code>ptr</code>·is·Undefined·Behavior,·even·if·the186 Any·access·to·the·old·<code>ptr</code>·is·Undefined·Behavior,·even·if·the
187 allocation·remained·in-place.·The·newly·returned·pointer·is·the·only·valid·pointer187 allocation·remained·in-place.·The·newly·returned·pointer·is·the·only·valid·pointer
188 for·accessing·this·memory·now.</p>188 for·accessing·this·memory·now.</p>
189 <p>The·new·memory·block·is·allocated·with·<code>layout</code>,189 <p>The·new·memory·block·is·allocated·with·<code>layout</code>,
7.14 KB
./usr/share/doc/rust-web-doc/html/alloc/alloc/type.LayoutErr.html
    
Offset 1, 2 lines modifiedOffset 1, 2 lines modified
1 <!DOCTYPE·html><html·lang="en"><head><meta·charset="utf-8"><meta·name="viewport"·content="width=device-width,·initial-scale=1.0"><meta·name="generator"·content="rustdoc"><meta·name="description"·content="API·documentation·for·the·Rust·`LayoutErr`·type·in·crate·`alloc`."><title>LayoutErr·in·alloc::alloc·-·Rust</title><script>·if·(window.location.protocol·!==·"file:")·document.write(`<link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/SourceSerif4-Regular-46f98efaafac5295.ttf.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/FiraSans-Regular-018c141bf0843ffd.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/FiraSans-Medium-8f9a781e4970d388.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/SourceCodePro-Regular-562dcc5011b6de7d.ttf.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/SourceCodePro-Semibold-d899c5a5c4aeb14a.ttf.woff2">`)</script><link·rel="stylesheet"·href="../../static.files/normalize-76eba96aa4d2e634.css"><link·rel="stylesheet"·href="../../static.files/rustdoc-35f9e32502181f1e.css"><meta·name="rustdoc-vars"·data-root-path="../../"·data-static-root-path="../../static.files/"·data-current-crate="alloc"·data-themes=""·data-resource-suffix="1.78.0"·data-rustdoc-version="1.78.0"·data-channel="1.78.0"·data-search-js="search-42d8da7a6b9792c2.js"·data-settings-js="settings-4313503d2e1961c2.js"·><script·src="../../static.files/storage-4c98445ec4002617.js"></script><script·defer·src="sidebar-items1.78.0.js"></script><script·defer·src="../../static.files/main-12cf3b4f4f9dc36d.js"></script><noscript><link·rel="stylesheet"·href="../../static.files/noscript-04d5337699b92874.css"></noscript><link·rel="alternate·icon"·type="image/png"·href="../../static.files/favicon-16x16-8b506e7a72182f1c.png"><link·rel="alternate·icon"·type="image/png"·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.78.0</span></h2></div><h2·class="location"><a·href="#">LayoutErr</a></h2><div·class="sidebar-elems"><section><h3><a·href="#aliased-type">Aliased·type</a></h3></section><h2><a·href="index.html">In·alloc::alloc</a></h2></div></nav><div·class="sidebar-resizer"></div>1 <!DOCTYPE·html><html·lang="en"><head><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.write(`<link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/SourceSerif4-Regular-46f98efaafac5295.ttf.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/FiraSans-Regular-018c141bf0843ffd.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/FiraSans-Medium-8f9a781e4970d388.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/SourceCodePro-Regular-562dcc5011b6de7d.ttf.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/SourceCodePro-Semibold-d899c5a5c4aeb14a.ttf.woff2">`)</script><link·rel="stylesheet"·href="../../static.files/normalize-76eba96aa4d2e634.css"><link·rel="stylesheet"·href="../../static.files/rustdoc-35f9e32502181f1e.css"><meta·name="rustdoc-vars"·data-root-path="../../"·data-static-root-path="../../static.files/"·data-current-crate="alloc"·data-themes=""·data-resource-suffix="1.78.0"·data-rustdoc-version="1.78.0"·data-channel="1.78.0"·data-search-js="search-42d8da7a6b9792c2.js"·data-settings-js="settings-4313503d2e1961c2.js"·><script·src="../../static.files/storage-4c98445ec4002617.js"></script><script·defer·src="sidebar-items1.78.0.js"></script><script·defer·src="../../static.files/main-12cf3b4f4f9dc36d.js"></script><noscript><link·rel="stylesheet"·href="../../static.files/noscript-04d5337699b92874.css"></noscript><link·rel="alternate·icon"·type="image/png"·href="../../static.files/favicon-16x16-8b506e7a72182f1c.png"><link·rel="alternate·icon"·type="image/png"·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.78.0</span></h2></div><h2·class="location"><a·href="#">LayoutErr</a></h2><div·class="sidebar-elems"><section><h3><a·href="#aliased-type">Aliased·type</a></h3></section><h2><a·href="index.html">In·alloc::alloc</a></h2></div></nav><div·class="sidebar-resizer"></div>
2 ····<main><div·class="width-limiter"><nav·class="sub"><form·class="search-form"><span></span><div·id="sidebar-button"·tabindex="-1"><a·href="../../alloc/all.html"·title="show·sidebar"></a></div><input·class="search-input"·name="search"·aria-label="Run·search·in·the·documentation"·autocomplete="off"·spellcheck="false"·placeholder="Click·or·press·‘S’·to·search,·‘?’·for·more·options…"·type="search"><div·id="help-button"·tabindex="-1"><a·href="../../help.html"·title="help">?</a></div><div·id="settings-menu"·tabindex="-1"><a·href="../../settings.html"·title="settings"><img·width="22"·height="22"·alt="Change·settings"·src="../../static.files/wheel-7b819b6101059cd0.svg"></a></div></form></nav><section·id="main-content"·class="content"><div·class="main-heading"><h1>Type·Alias·<a·href="../index.html">alloc</a>::<wbr><a·href="index.html">alloc</a>::<wbr><a·class="type"·href="#">LayoutErr</a><button·id="copy-path"·title="Copy·item·path·to·clipboard"><img·src="../../static.files/clipboard-7571035ce49a181d.svg"·width="19"·height="18"·alt="Copy·item·path"></button></h1><span·class="out-of-band"><span·class="since"·title="Stable·since·Rust·version·1.28.0">1.28.0</span>···<a·class="src"·href="../../src/core/alloc/layout.rs.html#473">source</a>···<button·id="toggle-all-docs"·title="collapse·all·docs">[<span>&#x2212;</span>]</button></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>2 ····<main><div·class="width-limiter"><nav·class="sub"><form·class="search-form"><span></span><div·id="sidebar-button"·tabindex="-1"><a·href="../../alloc/all.html"·title="show·sidebar"></a></div><input·class="search-input"·name="search"·aria-label="Run·search·in·the·documentation"·autocomplete="off"·spellcheck="false"·placeholder="Click·or·press·‘S’·to·search,·‘?’·for·more·options…"·type="search"><div·id="help-button"·tabindex="-1"><a·href="../../help.html"·title="help">?</a></div><div·id="settings-menu"·tabindex="-1"><a·href="../../settings.html"·title="settings"><img·width="22"·height="22"·alt="Change·settings"·src="../../static.files/wheel-7b819b6101059cd0.svg"></a></div></form></nav><section·id="main-content"·class="content"><div·class="main-heading"><h1>Type·Alias·<a·href="../index.html">alloc</a>::<wbr><a·href="index.html">alloc</a>::<wbr><a·class="type"·href="#">LayoutErr</a><button·id="copy-path"·title="Copy·item·path·to·clipboard"><img·src="../../static.files/clipboard-7571035ce49a181d.svg"·width="19"·height="18"·alt="Copy·item·path"></button></h1><span·class="out-of-band"><span·class="since"·title="Stable·since·Rust·version·1.28.0">1.28.0</span>···<a·class="src"·href="https://doc.rust-lang.org/1.78.0/src/core/alloc/layout.rs.html#473">source</a>···<button·id="toggle-all-docs"·title="collapse·all·docs">[<span>&#x2212;</span>]</button></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>
290 KB
./usr/share/doc/rust-web-doc/html/alloc/borrow/enum.Cow.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·clone-on-write·smart·pointer."><title>Cow·in·alloc::borrow·-·Rust</title><script>·if·(window.location.protocol·!==·"file:")·document.write(`<link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/SourceSerif4-Regular-46f98efaafac5295.ttf.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/FiraSans-Regular-018c141bf0843ffd.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/FiraSans-Medium-8f9a781e4970d388.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/SourceCodePro-Regular-562dcc5011b6de7d.ttf.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/SourceCodePro-Semibold-d899c5a5c4aeb14a.ttf.woff2">`)</script><link·rel="stylesheet"·href="../../static.files/normalize-76eba96aa4d2e634.css"><link·rel="stylesheet"·href="../../static.files/rustdoc-35f9e32502181f1e.css"><meta·name="rustdoc-vars"·data-root-path="../../"·data-static-root-path="../../static.files/"·data-current-crate="alloc"·data-themes=""·data-resource-suffix="1.78.0"·data-rustdoc-version="1.78.0"·data-channel="1.78.0"·data-search-js="search-42d8da7a6b9792c2.js"·data-settings-js="settings-4313503d2e1961c2.js"·><script·src="../../static.files/storage-4c98445ec4002617.js"></script><script·defer·src="sidebar-items1.78.0.js"></script><script·defer·src="../../static.files/main-12cf3b4f4f9dc36d.js"></script><noscript><link·rel="stylesheet"·href="../../static.files/noscript-04d5337699b92874.css"></noscript><link·rel="alternate·icon"·type="image/png"·href="../../static.files/favicon-16x16-8b506e7a72182f1c.png"><link·rel="alternate·icon"·type="image/png"·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.78.0</span></h2></div><h2·class="location"><a·href="#">Cow</a></h2><div·class="sidebar-elems"><section><h3><a·href="#variants">Variants</a></h3><ul·class="block·variant"><li><a·href="#variant.Borrowed">Borrowed</a></li><li><a·href="#variant.Owned">Owned</a></li></ul><h3><a·href="#implementations">Methods</a></h3><ul·class="block·method"><li><a·href="#method.into_owned">into_owned</a></li><li><a·href="#method.is_borrowed">is_borrowed</a></li><li><a·href="#method.is_owned">is_owned</a></li><li><a·href="#method.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">Add</a></li><li><a·href="#impl-Add%3C%26str%3E-for-Cow%3C'a,+str%3E">Add&lt;&amp;&#x27;a·str&gt;</a></li><li><a·href="#impl-AddAssign-for-Cow%3C'a,+str%3E">AddAssign</a></li><li><a·href="#impl-AddAssign%3C%26str%3E-for-Cow%3C'a,+str%3E">AddAssign&lt;&amp;&#x27;a·str&gt;</a></li><li><a·href="#impl-AsRef%3CT%3E-for-Cow%3C'_,+T%3E">AsRef&lt;T&gt;</a></li><li><a·href="#impl-Borrow%3CB%3E-for-Cow%3C'a,+B%3E">Borrow&lt;B&gt;</a></li><li><a·href="#impl-Clone-for-Cow%3C'_,+B%3E">Clone</a></li><li><a·href="#impl-Debug-for-Cow%3C'_,+B%3E">Debug</a></li><li><a·href="#impl-Default-for-Cow%3C'_,+B%3E">Default</a></li><li><a·href="#impl-Deref-for-Cow%3C'_,+B%3E">Deref</a></li><li><a·href="#impl-Display-for-Cow%3C'_,+B%3E">Display</a></li><li><a·href="#impl-Eq-for-Cow%3C'_,+B%3E">Eq</a></li><li><a·href="#impl-Extend%3CCow%3C'a,+str%3E%3E-for-String">Extend&lt;Cow&lt;&#x27;a,·str&gt;&gt;</a></li><li><a·href="#impl-From%3C%26CStr%3E-for-Cow%3C'a,+CStr%3E">From&lt;&amp;&#x27;a·CStr&gt;</a></li><li><a·href="#impl-From%3C%26CString%3E-for-Cow%3C'a,+CStr%3E">From&lt;&amp;&#x27;a·CString&gt;</a></li><li><a·href="#impl-From%3C%26String%3E-for-Cow%3C'a,+str%3E">From&lt;&amp;&#x27;a·String&gt;</a></li><li><a·href="#impl-From%3C%26Vec%3CT%3E%3E-for-Cow%3C'a,+%5BT%5D%3E">From&lt;&amp;&#x27;a·Vec&lt;T&gt;&gt;</a></li><li><a·href="#impl-From%3C%26%5BT;+N%5D%3E-for-Cow%3C'a,+%5BT%5D%3E">From&lt;&amp;&#x27;a·[T;·N]&gt;</a></li><li><a·href="#impl-From%3C%26%5BT%5D%3E-for-Cow%3C'a,+%5BT%5D%3E">From&lt;&amp;&#x27;a·[T]&gt;</a></li><li><a·href="#impl-From%3C%26str%3E-for-Cow%3C'a,+str%3E">From&lt;&amp;&#x27;a·str&gt;</a></li><li><a·href="#impl-From%3CCString%3E-for-Cow%3C'a,+CStr%3E">From&lt;CString&gt;</a></li><li><a·href="#impl-From%3CCow%3C'_,+CStr%3E%3E-for-Box%3CCStr%3E">From&lt;Cow&lt;&#x27;_,·CStr&gt;&gt;</a></li><li><a·href="#impl-From%3CCow%3C'_,+%5BT%5D%3E%3E-for-Box%3C%5BT%5D%3E">From&lt;Cow&lt;&#x27;_,·[T]&gt;&gt;</a></li><li><a·href="#impl-From%3CCow%3C'_,+str%3E%3E-for-Box%3Cstr%3E">From&lt;Cow&lt;&#x27;_,·str&gt;&gt;</a></li><li><a·href="#impl-From%3CCow%3C'a,+B%3E%3E-for-Arc%3CB%3E">From&lt;Cow&lt;&#x27;a,·B&gt;&gt;</a></li><li><a·href="#impl-From%3CCow%3C'a,+B%3E%3E-for-Rc%3CB%3E">From&lt;Cow&lt;&#x27;a,·B&gt;&gt;</a></li><li><a·href="#impl-From%3CCow%3C'a,+CStr%3E%3E-for-CString">From&lt;Cow&lt;&#x27;a,·CStr&gt;&gt;</a></li><li><a·href="#impl-From%3CCow%3C'a,+%5BT%5D%3E%3E-for-Vec%3CT%3E">From&lt;Cow&lt;&#x27;a,·[T]&gt;&gt;</a></li><li><a·href="#impl-From%3CCow%3C'a,+str%3E%3E-for-String">From&lt;Cow&lt;&#x27;a,·str&gt;&gt;</a></li><li><a·href="#impl-From%3CCow%3C'b,+str%3E%3E-for-Box%3Cdyn+Error%3E">From&lt;Cow&lt;&#x27;b,·str&gt;&gt;</a></li><li><a·href="#impl-From%3CCow%3C'b,+str%3E%3E-for-Box%3Cdyn+Error+%2B+Send+%2B+Sync%3E">From&lt;Cow&lt;&#x27;b,·str&gt;&gt;</a></li><li><a·href="#impl-From%3CString%3E-for-Cow%3C'a,+str%3E">From&lt;String&gt;</a></li><li><a·href="#impl-From%3CVec%3CT%3E%3E-for-Cow%3C'a,+%5BT%5D%3E">From&lt;Vec&lt;T&gt;&gt;</a></li><li><a·href="#impl-FromIterator%3C%26str%3E-for-Cow%3C'a,+str%3E">FromIterator&lt;&amp;&#x27;b·str&gt;</a></li><li><a·href="#impl-FromIterator%3CCow%3C'a,+str%3E%3E-for-String">FromIterator&lt;Cow&lt;&#x27;a,·str&gt;&gt;</a></li><li><a·href="#impl-FromIterator%3CString%3E-for-Cow%3C'a,+str%3E">FromIterator&lt;String&gt;</a></li><li><a·href="#impl-FromIterator%3CT%3E-for-Cow%3C'a,+%5BT%5D%3E">FromIterator&lt;T&gt;</a></li><li><a·href="#impl-FromIterator%3Cchar%3E-for-Cow%3C'a,+str%3E">FromIterator&lt;char&gt;</a></li><li><a·href="#impl-Hash-for-Cow%3C'_,+B%3E">Hash</a></li><li><a·href="#impl-Ord-for-Cow%3C'_,+B%3E">Ord</a></li><li><a·href="#impl-PartialEq%3C%26str%3E-for-Cow%3C'a,+str%3E">PartialEq&lt;&amp;&#x27;b·str&gt;</a></li><li><a·href="#impl-PartialEq%3C%26%5BU%5D%3E-for-Cow%3C'_,+%5BT%5D%3E">PartialEq&lt;&amp;[U]&gt;</a></li><li><a·href="#impl-PartialEq%3C%26mut+%5BU%5D%3E-for-Cow%3C'_,+%5BT%5D%3E">PartialEq&lt;&amp;mut·[U]&gt;</a></li><li><a·href="#impl-PartialEq%3CCow%3C'a,+str%3E%3E-for-%26str">PartialEq&lt;Cow&lt;&#x27;a,·str&gt;&gt;</a></li><li><a·href="#impl-PartialEq%3CCow%3C'a,+str%3E%3E-for-String">PartialEq&lt;Cow&lt;&#x27;a,·str&gt;&gt;</a></li><li><a·href="#impl-PartialEq%3CCow%3C'a,+str%3E%3E-for-str">PartialEq&lt;Cow&lt;&#x27;a,·str&gt;&gt;</a></li><li><a·href="#impl-PartialEq%3CCow%3C'b,+C%3E%3E-for-Cow%3C'a,+B%3E">PartialEq&lt;Cow&lt;&#x27;b,·C&gt;&gt;</a></li><li><a·href="#impl-PartialEq%3CString%3E-for-Cow%3C'a,+str%3E">PartialEq&lt;String&gt;</a></li><li><a·href="#impl-PartialEq%3CVec%3CU,+A%3E%3E-for-Cow%3C'_,+%5BT%5D%3E">PartialEq&lt;Vec&lt;U,·A&gt;&gt;</a></li><li><a·href="#impl-PartialEq%3Cstr%3E-for-Cow%3C'a,+str%3E">PartialEq&lt;str&gt;</a></li><li><a·href="#impl-PartialOrd-for-Cow%3C'a,+B%3E">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">Freeze</a></li><li><a·href="#impl-RefUnwindSafe-for-Cow%3C'a,+B%3E">RefUnwindSafe</a></li><li><a·href="#impl-Send-for-Cow%3C'a,+B%3E">Send</a></li><li><a·href="#impl-Sync-for-Cow%3C'a,+B%3E">Sync</a></li><li><a·href="#impl-Unpin-for-Cow%3C'a,+B%3E">Unpin</a></li><li><a·href="#impl-UnwindSafe-for-Cow%3C'a,+B%3E">UnwindSafe</a></li></ul><h3><a·href="#blanket-implementations">Blanket·Implementations</a></h3><ul·class="block·blanket-implementation"><li><a·href="#impl-Any-for-T">Any</a></li><li><a·href="#impl-Borrow%3CT%3E-for-T">Borrow&lt;T&gt;</a></li><li><a·href="#impl-BorrowMut%3CT%3E-for-T">BorrowMut&lt;T&gt;</a></li><li><a·href="#impl-From%3CT%3E-for-T">From&lt;T&gt;</a></li><li><a·href="#impl-Into%3CU%3E-for-T">Into&lt;U&gt;</a></li><li><a·href="#impl-ToOwned-for-T">ToOwned</a></li><li><a·href="#impl-ToString-for-T">ToString</a></li><li><a·href="#impl-TryFrom%3CU%3E-for-T">TryFrom&lt;U&gt;</a></li><li><a·href="#impl-TryInto%3CU%3E-for-T">TryInto&lt;U&gt;</a></li></ul></section><h2><a·href="index.html">In·alloc::borrow</a></h2></div></nav><div·class="sidebar-resizer"></div>1 <!DOCTYPE·html><html·lang="en"><head><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.write(`<link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/SourceSerif4-Regular-46f98efaafac5295.ttf.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/FiraSans-Regular-018c141bf0843ffd.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/FiraSans-Medium-8f9a781e4970d388.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/SourceCodePro-Regular-562dcc5011b6de7d.ttf.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/SourceCodePro-Semibold-d899c5a5c4aeb14a.ttf.woff2">`)</script><link·rel="stylesheet"·href="../../static.files/normalize-76eba96aa4d2e634.css"><link·rel="stylesheet"·href="../../static.files/rustdoc-35f9e32502181f1e.css"><meta·name="rustdoc-vars"·data-root-path="../../"·data-static-root-path="../../static.files/"·data-current-crate="alloc"·data-themes=""·data-resource-suffix="1.78.0"·data-rustdoc-version="1.78.0"·data-channel="1.78.0"·data-search-js="search-42d8da7a6b9792c2.js"·data-settings-js="settings-4313503d2e1961c2.js"·><script·src="../../static.files/storage-4c98445ec4002617.js"></script><script·defer·src="sidebar-items1.78.0.js"></script><script·defer·src="../../static.files/main-12cf3b4f4f9dc36d.js"></script><noscript><link·rel="stylesheet"·href="../../static.files/noscript-04d5337699b92874.css"></noscript><link·rel="alternate·icon"·type="image/png"·href="../../static.files/favicon-16x16-8b506e7a72182f1c.png"><link·rel="alternate·icon"·type="image/png"·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.78.0</span></h2></div><h2·class="location"><a·href="#">Cow</a></h2><div·class="sidebar-elems"><section><h3><a·href="#variants">Variants</a></h3><ul·class="block·variant"><li><a·href="#variant.Borrowed">Borrowed</a></li><li><a·href="#variant.Owned">Owned</a></li></ul><h3><a·href="#implementations">Methods</a></h3><ul·class="block·method"><li><a·href="#method.into_owned">into_owned</a></li><li><a·href="#method.is_borrowed">is_borrowed</a></li><li><a·href="#method.is_owned">is_owned</a></li><li><a·href="#method.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">Add</a></li><li><a·href="#impl-Add%3C%26str%3E-for-Cow%3C'a,+str%3E">Add&lt;&amp;&#x27;a·str&gt;</a></li><li><a·href="#impl-AddAssign-for-Cow%3C'a,+str%3E">AddAssign</a></li><li><a·href="#impl-AddAssign%3C%26str%3E-for-Cow%3C'a,+str%3E">AddAssign&lt;&amp;&#x27;a·str&gt;</a></li><li><a·href="#impl-AsRef%3CT%3E-for-Cow%3C'_,+T%3E">AsRef&lt;T&gt;</a></li><li><a·href="#impl-Borrow%3CB%3E-for-Cow%3C'a,+B%3E">Borrow&lt;B&gt;</a></li><li><a·href="#impl-Clone-for-Cow%3C'_,+B%3E">Clone</a></li><li><a·href="#impl-Debug-for-Cow%3C'_,+B%3E">Debug</a></li><li><a·href="#impl-Default-for-Cow%3C'_,+B%3E">Default</a></li><li><a·href="#impl-Deref-for-Cow%3C'_,+B%3E">Deref</a></li><li><a·href="#impl-Display-for-Cow%3C'_,+B%3E">Display</a></li><li><a·href="#impl-Eq-for-Cow%3C'_,+B%3E">Eq</a></li><li><a·href="#impl-Extend%3CCow%3C'a,+str%3E%3E-for-String">Extend&lt;Cow&lt;&#x27;a,·str&gt;&gt;</a></li><li><a·href="#impl-From%3C%26CStr%3E-for-Cow%3C'a,+CStr%3E">From&lt;&amp;&#x27;a·CStr&gt;</a></li><li><a·href="#impl-From%3C%26CString%3E-for-Cow%3C'a,+CStr%3E">From&lt;&amp;&#x27;a·CString&gt;</a></li><li><a·href="#impl-From%3C%26String%3E-for-Cow%3C'a,+str%3E">From&lt;&amp;&#x27;a·String&gt;</a></li><li><a·href="#impl-From%3C%26Vec%3CT%3E%3E-for-Cow%3C'a,+%5BT%5D%3E">From&lt;&amp;&#x27;a·Vec&lt;T&gt;&gt;</a></li><li><a·href="#impl-From%3C%26%5BT;+N%5D%3E-for-Cow%3C'a,+%5BT%5D%3E">From&lt;&amp;&#x27;a·[T;·N]&gt;</a></li><li><a·href="#impl-From%3C%26%5BT%5D%3E-for-Cow%3C'a,+%5BT%5D%3E">From&lt;&amp;&#x27;a·[T]&gt;</a></li><li><a·href="#impl-From%3C%26str%3E-for-Cow%3C'a,+str%3E">From&lt;&amp;&#x27;a·str&gt;</a></li><li><a·href="#impl-From%3CCString%3E-for-Cow%3C'a,+CStr%3E">From&lt;CString&gt;</a></li><li><a·href="#impl-From%3CCow%3C'_,+CStr%3E%3E-for-Box%3CCStr%3E">From&lt;Cow&lt;&#x27;_,·CStr&gt;&gt;</a></li><li><a·href="#impl-From%3CCow%3C'_,+%5BT%5D%3E%3E-for-Box%3C%5BT%5D%3E">From&lt;Cow&lt;&#x27;_,·[T]&gt;&gt;</a></li><li><a·href="#impl-From%3CCow%3C'_,+str%3E%3E-for-Box%3Cstr%3E">From&lt;Cow&lt;&#x27;_,·str&gt;&gt;</a></li><li><a·href="#impl-From%3CCow%3C'a,+B%3E%3E-for-Arc%3CB%3E">From&lt;Cow&lt;&#x27;a,·B&gt;&gt;</a></li><li><a·href="#impl-From%3CCow%3C'a,+B%3E%3E-for-Rc%3CB%3E">From&lt;Cow&lt;&#x27;a,·B&gt;&gt;</a></li><li><a·href="#impl-From%3CCow%3C'a,+CStr%3E%3E-for-CString">From&lt;Cow&lt;&#x27;a,·CStr&gt;&gt;</a></li><li><a·href="#impl-From%3CCow%3C'a,+%5BT%5D%3E%3E-for-Vec%3CT%3E">From&lt;Cow&lt;&#x27;a,·[T]&gt;&gt;</a></li><li><a·href="#impl-From%3CCow%3C'a,+str%3E%3E-for-String">From&lt;Cow&lt;&#x27;a,·str&gt;&gt;</a></li><li><a·href="#impl-From%3CCow%3C'b,+str%3E%3E-for-Box%3Cdyn+Error%3E">From&lt;Cow&lt;&#x27;b,·str&gt;&gt;</a></li><li><a·href="#impl-From%3CCow%3C'b,+str%3E%3E-for-Box%3Cdyn+Error+%2B+Send+%2B+Sync%3E">From&lt;Cow&lt;&#x27;b,·str&gt;&gt;</a></li><li><a·href="#impl-From%3CString%3E-for-Cow%3C'a,+str%3E">From&lt;String&gt;</a></li><li><a·href="#impl-From%3CVec%3CT%3E%3E-for-Cow%3C'a,+%5BT%5D%3E">From&lt;Vec&lt;T&gt;&gt;</a></li><li><a·href="#impl-FromIterator%3C%26str%3E-for-Cow%3C'a,+str%3E">FromIterator&lt;&amp;&#x27;b·str&gt;</a></li><li><a·href="#impl-FromIterator%3CCow%3C'a,+str%3E%3E-for-String">FromIterator&lt;Cow&lt;&#x27;a,·str&gt;&gt;</a></li><li><a·href="#impl-FromIterator%3CString%3E-for-Cow%3C'a,+str%3E">FromIterator&lt;String&gt;</a></li><li><a·href="#impl-FromIterator%3CT%3E-for-Cow%3C'a,+%5BT%5D%3E">FromIterator&lt;T&gt;</a></li><li><a·href="#impl-FromIterator%3Cchar%3E-for-Cow%3C'a,+str%3E">FromIterator&lt;char&gt;</a></li><li><a·href="#impl-Hash-for-Cow%3C'_,+B%3E">Hash</a></li><li><a·href="#impl-Ord-for-Cow%3C'_,+B%3E">Ord</a></li><li><a·href="#impl-PartialEq%3C%26str%3E-for-Cow%3C'a,+str%3E">PartialEq&lt;&amp;&#x27;b·str&gt;</a></li><li><a·href="#impl-PartialEq%3C%26%5BU%5D%3E-for-Cow%3C'_,+%5BT%5D%3E">PartialEq&lt;&amp;[U]&gt;</a></li><li><a·href="#impl-PartialEq%3C%26mut+%5BU%5D%3E-for-Cow%3C'_,+%5BT%5D%3E">PartialEq&lt;&amp;mut·[U]&gt;</a></li><li><a·href="#impl-PartialEq%3CCow%3C'a,+str%3E%3E-for-%26str">PartialEq&lt;Cow&lt;&#x27;a,·str&gt;&gt;</a></li><li><a·href="#impl-PartialEq%3CCow%3C'a,+str%3E%3E-for-String">PartialEq&lt;Cow&lt;&#x27;a,·str&gt;&gt;</a></li><li><a·href="#impl-PartialEq%3CCow%3C'a,+str%3E%3E-for-str">PartialEq&lt;Cow&lt;&#x27;a,·str&gt;&gt;</a></li><li><a·href="#impl-PartialEq%3CCow%3C'b,+C%3E%3E-for-Cow%3C'a,+B%3E">PartialEq&lt;Cow&lt;&#x27;b,·C&gt;&gt;</a></li><li><a·href="#impl-PartialEq%3CString%3E-for-Cow%3C'a,+str%3E">PartialEq&lt;String&gt;</a></li><li><a·href="#impl-PartialEq%3CVec%3CU,+A%3E%3E-for-Cow%3C'_,+%5BT%5D%3E">PartialEq&lt;Vec&lt;U,·A&gt;&gt;</a></li><li><a·href="#impl-PartialEq%3Cstr%3E-for-Cow%3C'a,+str%3E">PartialEq&lt;str&gt;</a></li><li><a·href="#impl-PartialOrd-for-Cow%3C'a,+B%3E">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">Freeze</a></li><li><a·href="#impl-RefUnwindSafe-for-Cow%3C'a,+B%3E">RefUnwindSafe</a></li><li><a·href="#impl-Send-for-Cow%3C'a,+B%3E">Send</a></li><li><a·href="#impl-Sync-for-Cow%3C'a,+B%3E">Sync</a></li><li><a·href="#impl-Unpin-for-Cow%3C'a,+B%3E">Unpin</a></li><li><a·href="#impl-UnwindSafe-for-Cow%3C'a,+B%3E">UnwindSafe</a></li></ul><h3><a·href="#blanket-implementations">Blanket·Implementations</a></h3><ul·class="block·blanket-implementation"><li><a·href="#impl-Any-for-T">Any</a></li><li><a·href="#impl-Borrow%3CT%3E-for-T">Borrow&lt;T&gt;</a></li><li><a·href="#impl-BorrowMut%3CT%3E-for-T">BorrowMut&lt;T&gt;</a></li><li><a·href="#impl-From%3CT%3E-for-T">From&lt;T&gt;</a></li><li><a·href="#impl-Into%3CU%3E-for-T">Into&lt;U&gt;</a></li><li><a·href="#impl-ToOwned-for-T">ToOwned</a></li><li><a·href="#impl-ToString-for-T">ToString</a></li><li><a·href="#impl-TryFrom%3CU%3E-for-T">TryFrom&lt;U&gt;</a></li><li><a·href="#impl-TryInto%3CU%3E-for-T">TryInto&lt;U&gt;</a></li></ul></section><h2><a·href="index.html">In·alloc::borrow</a></h2></div></nav><div·class="sidebar-resizer"></div>
2 ····<main><div·class="width-limiter"><nav·class="sub"><form·class="search-form"><span></span><div·id="sidebar-button"·tabindex="-1"><a·href="../../alloc/all.html"·title="show·sidebar"></a></div><input·class="search-input"·name="search"·aria-label="Run·search·in·the·documentation"·autocomplete="off"·spellcheck="false"·placeholder="Click·or·press·‘S’·to·search,·‘?’·for·more·options…"·type="search"><div·id="help-button"·tabindex="-1"><a·href="../../help.html"·title="help">?</a></div><div·id="settings-menu"·tabindex="-1"><a·href="../../settings.html"·title="settings"><img·width="22"·height="22"·alt="Change·settings"·src="../../static.files/wheel-7b819b6101059cd0.svg"></a></div></form></nav><section·id="main-content"·class="content"><div·class="main-heading"><h1>Enum·<a·href="../index.html">alloc</a>::<wbr><a·href="index.html">borrow</a>::<wbr><a·class="enum"·href="#">Cow</a><button·id="copy-path"·title="Copy·item·path·to·clipboard"><img·src="../../static.files/clipboard-7571035ce49a181d.svg"·width="19"·height="18"·alt="Copy·item·path"></button></h1><span·class="out-of-band"><span·class="since"·title="Stable·since·Rust·version·1.0.0">1.0.0</span>···<a·class="src"·href="../../src/alloc/borrow.rs.html#180-191">source</a>···<button·id="toggle-all-docs"·title="collapse·all·docs">[<span>&#x2212;</span>]</button></span></div><pre·class="rust·item-decl"><code>pub·enum·Cow&lt;'a,·B&gt;<div·class="where">where2 ····<main><div·class="width-limiter"><nav·class="sub"><form·class="search-form"><span></span><div·id="sidebar-button"·tabindex="-1"><a·href="../../alloc/all.html"·title="show·sidebar"></a></div><input·class="search-input"·name="search"·aria-label="Run·search·in·the·documentation"·autocomplete="off"·spellcheck="false"·placeholder="Click·or·press·‘S’·to·search,·‘?’·for·more·options…"·type="search"><div·id="help-button"·tabindex="-1"><a·href="../../help.html"·title="help">?</a></div><div·id="settings-menu"·tabindex="-1"><a·href="../../settings.html"·title="settings"><img·width="22"·height="22"·alt="Change·settings"·src="../../static.files/wheel-7b819b6101059cd0.svg"></a></div></form></nav><section·id="main-content"·class="content"><div·class="main-heading"><h1>Enum·<a·href="../index.html">alloc</a>::<wbr><a·href="index.html">borrow</a>::<wbr><a·class="enum"·href="#">Cow</a><button·id="copy-path"·title="Copy·item·path·to·clipboard"><img·src="../../static.files/clipboard-7571035ce49a181d.svg"·width="19"·height="18"·alt="Copy·item·path"></button></h1><span·class="out-of-band"><span·class="since"·title="Stable·since·Rust·version·1.0.0">1.0.0</span>···<a·class="src"·href="../../src/alloc/borrow.rs.html#180-191">source</a>···<button·id="toggle-all-docs"·title="collapse·all·docs">[<span>&#x2212;</span>]</button></span></div><pre·class="rust·item-decl"><code>pub·enum·Cow&lt;'a,·B&gt;<div·class="where">where
3 ····B:·<a·class="trait"·href="trait.ToOwned.html"·title="trait·alloc::borrow::ToOwned">ToOwned</a>·+·?<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>·+·'a,</div>{3 ····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.78.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>·+·'a,</div>{
4 ····Borrowed(<a·class="primitive"·href="../../core/primitive.reference.html">&amp;'a·B</a>),4 ····Borrowed(<a·class="primitive"·href="https://doc.rust-lang.org/1.78.0/core/primitive.reference.html">&amp;'a·B</a>),
5 ····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 ····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>),
6 }</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 }</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>
7 <p>The·type·<code>Cow</code>·is·a·smart·pointer·providing·clone-on-write·functionality:·it7 <p>The·type·<code>Cow</code>·is·a·smart·pointer·providing·clone-on-write·functionality:·it
8 can·enclose·and·provide·immutable·access·to·borrowed·data,·and·clone·the8 can·enclose·and·provide·immutable·access·to·borrowed·data,·and·clone·the
9 data·lazily·when·mutation·or·ownership·is·required.·The·type·is·designed·to9 data·lazily·when·mutation·or·ownership·is·required.·The·type·is·designed·to
10 work·with·general·borrowed·data·via·the·<code>Borrow</code>·trait.</p>10 work·with·general·borrowed·data·via·the·<code>Borrow</code>·trait.</p>
11 <p><code>Cow</code>·implements·<code>Deref</code>,·which·means·that·you·can·call11 <p><code>Cow</code>·implements·<code>Deref</code>,·which·means·that·you·can·call
Offset 70, 27 lines modifiedOffset 70, 27 lines modified
70 <span·class="macro">println!</span>(<span·class="string">"clone_on_write·=·{:?}"</span>,·clone_on_write.values);70 <span·class="macro">println!</span>(<span·class="string">"clone_on_write·=·{:?}"</span>,·clone_on_write.values);
  
71 <span·class="comment">//·The·data·was·mutated.·Let's·check·it·out.71 <span·class="comment">//·The·data·was·mutated.·Let's·check·it·out.
72 </span><span·class="kw">match·</span>clone_on_write·{72 </span><span·class="kw">match·</span>clone_on_write·{
73 ····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 ····Items·{·values:·Cow::Owned(<span·class="kw">_</span>)·}·=&gt;·<span·class="macro">println!</span>(<span·class="string">"clone_on_write·contains·owned·data"</span>),
74 ····<span·class="kw">_·</span>=&gt;·<span·class="macro">panic!</span>(<span·class="string">"expect·owned·data"</span>),74 ····<span·class="kw">_·</span>=&gt;·<span·class="macro">panic!</span>(<span·class="string">"expect·owned·data"</span>),
75 }</code></pre><a·class="test-arrow"·target="_blank"·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">Run</a></div>75 }</code></pre><a·class="test-arrow"·target="_blank"·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">Run</a></div>
76 </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><h3·class="code-header">Borrowed(<a·class="primitive"·href="../../core/primitive.reference.html">&amp;'a·B</a>)</h3></section><div·class="docblock"><p>Borrowed·data.</p>76 </div></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><h3·class="code-header">Borrowed(<a·class="primitive"·href="https://doc.rust-lang.org/1.78.0/core/primitive.reference.html">&amp;'a·B</a>)</h3></section><div·class="docblock"><p>Borrowed·data.</p>
77 </div><section·id="variant.Owned"·class="variant"><a·href="#variant.Owned"·class="anchor">§</a><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><section·id="variant.Owned"·class="variant"><a·href="#variant.Owned"·class="anchor">§</a><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>
78 </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#213-329">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:·577,·SHA:·a090432b3ff795d0a765eca5f768f5ef5ad3dcd1aa842ee7122604b85af65b69·...·]/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 </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#213-329">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.78.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:·631,·SHA:·d334b4f58ad9d4d385a7a57dbaeb9d47d2481408bd484bea5ad94db2b39825f3·...·]/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>
79 <h5·id="examples-1"><a·class="doc-anchor"·href="#examples-1">§</a>Examples</h5>79 <h5·id="examples-1"><a·class="doc-anchor"·href="#examples-1">§</a>Examples</h5>
80 <div·class="example-wrap"><pre·class="rust·rust-example-rendered"><code><span·class="attr">#![feature(cow_is_borrowed)]80 <div·class="example-wrap"><pre·class="rust·rust-example-rendered"><code><span·class="attr">#![feature(cow_is_borrowed)]
81 </span><span·class="kw">use·</span>std::borrow::Cow;81 </span><span·class="kw">use·</span>std::borrow::Cow;
  
82 <span·class="kw">let·</span>cow·=·Cow::Borrowed(<span·class="string">"moo"</span>);82 <span·class="kw">let·</span>cow·=·Cow::Borrowed(<span·class="string">"moo"</span>);
83 <span·class="macro">assert!</span>(cow.is_borrowed());83 <span·class="macro">assert!</span>(cow.is_borrowed());
  
84 <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="kw">let·</span>bull:·Cow&lt;<span·class="lifetime">'_</span>,·str&gt;·=·Cow::Owned(<span·class="string">"...moo?"</span>.to_string());
85 <span·class="macro">assert!</span>(!bull.is_borrowed());</code></pre><a·class="test-arrow"·target="_blank"·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">Run</a></div>85 <span·class="macro">assert!</span>(!bull.is_borrowed());</code></pre><a·class="test-arrow"·target="_blank"·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">Run</a></div>
86 </div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.is_owned"·class="method"><span·class="rightside"><span·class="since"·title="const·unstable">const:·<a·href="https://github.com/rust-lang/rust/issues/65143"·title="Tracking·issue·for·const_cow_is_borrowed">unstable</a></span>···<a·class="src"·href="../../src/alloc/borrow.rs.html#253-255">source</a></span><h4·class="code-header">pub·fn·<a·href="#method.is_owned"·class="fn">is_owned</a>(&amp;self)·-&gt;·<a·class="primitive"·href="../../core/primitive.bool.html">bool</a></h4></section><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>cow_is_borrowed</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/65143">#65143</a>)</span></div></span></summary><div·class="docblock"><p>Returns·true·if·the·data·is·owned,·i.e.·if·<code>to_mut</code>·would·be·a·no-op.</p>86 </div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.is_owned"·class="method"><span·class="rightside"><span·class="since"·title="const·unstable">const:·<a·href="https://github.com/rust-lang/rust/issues/65143"·title="Tracking·issue·for·const_cow_is_borrowed">unstable</a></span>···<a·class="src"·href="../../src/alloc/borrow.rs.html#253-255">source</a></span><h4·class="code-header">pub·fn·<a·href="#method.is_owned"·class="fn">is_owned</a>(&amp;self)·-&gt;·<a·class="primitive"·href="https://doc.rust-lang.org/1.78.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>
87 <h5·id="examples-2"><a·class="doc-anchor"·href="#examples-2">§</a>Examples</h5>87 <h5·id="examples-2"><a·class="doc-anchor"·href="#examples-2">§</a>Examples</h5>
88 <div·class="example-wrap"><pre·class="rust·rust-example-rendered"><code><span·class="attr">#![feature(cow_is_borrowed)]88 <div·class="example-wrap"><pre·class="rust·rust-example-rendered"><code><span·class="attr">#![feature(cow_is_borrowed)]
89 </span><span·class="kw">use·</span>std::borrow::Cow;89 </span><span·class="kw">use·</span>std::borrow::Cow;
  
90 <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="kw">let·</span>cow:·Cow&lt;<span·class="lifetime">'_</span>,·str&gt;·=·Cow::Owned(<span·class="string">"moo"</span>.to_string());
91 <span·class="macro">assert!</span>(cow.is_owned());91 <span·class="macro">assert!</span>(cow.is_owned());
  
Offset 130, 184 lines modifiedOffset 130, 184 lines modified
130 <span·class="kw">let·</span>s·=·<span·class="string">"Hello·world!"</span>;130 <span·class="kw">let·</span>s·=·<span·class="string">"Hello·world!"</span>;
131 <span·class="kw">let·</span>cow:·Cow&lt;<span·class="lifetime">'_</span>,·str&gt;·=·Cow::Owned(String::from(s));131 <span·class="kw">let·</span>cow:·Cow&lt;<span·class="lifetime">'_</span>,·str&gt;·=·Cow::Owned(String::from(s));
  
132 <span·class="macro">assert_eq!</span>(132 <span·class="macro">assert_eq!</span>(
133 ··cow.into_owned(),133 ··cow.into_owned(),
134 ··String::from(s)134 ··String::from(s)
135 );</code></pre><a·class="test-arrow"·target="_blank"·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">Run</a></div>135 );</code></pre><a·class="test-arrow"·target="_blank"·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">Run</a></div>
136 </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:·7713,·SHA:·a6fb60677bb62031ef4692a158697f7ac18d0625e4e9f7c429ead4b9da0c5436·...·]/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"><a·class="src·rightside"·href="../../src/alloc/borrow.rs.html#21-28">source</a><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">where136 </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.78.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.78.0/core/primitive.str.html">str</a>&gt;·for·<a·class="enum"·href="enum.Cow.html"[·...·truncated·by·diffoscope;·len:·8577,·SHA:·98a904439a51cfaad61995cb0c3ae98e2566426028e797225036e6d950e61bcd·...·]/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"><a·class="src·rightside"·href="../../src/alloc/borrow.rs.html#21-28">source</a><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
137 ····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:·2295,·SHA:·3ddc52d27a4be21050bcf28c9a4dea611c851e365b18b3d2d94ed9a005582e47·...·]/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"><a·class="src·rightside"·href="../../src/alloc/borrow.rs.html#384-394">source</a><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">where137 ····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.78.0/core/marker/trait.Sized.html"·title="trait·core::marker::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:·2538,·SHA:·02603f0cbc58560746582386a79eec367e83d9f0a8f69b78805493761aa9f278·...·]/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"><a·class="src·rightside"·href="../../src/alloc/borrow.rs.html#384-394">source</a><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
138 ····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-1"·class="method·trait-impl"><a·class="src·ri[·...·truncated·by·diffoscope;·len:·1045,·SHA:·4f2e8ec90fa324f549512aa9089a04814d2dc2deea4da4b2af86ac0f99b1f9a5·...·]/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">where138 ····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.78.0/core/marker/trait.Sized.html"·title="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:·1099,·SHA:·9c046d24945a4554a28fe0ae5894fe5b199b52c018037d1247b85e7d020c5b8c·...·]/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
139 ····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>139 ····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.78.0/core/default/trait.Default.html"·title="trait·core::default::Default">Default</a>&gt;·+·?<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</di[·...·truncated·by·diffoscope;·len:·353,·SHA:·60b158a4b90fcc4616a558c9f58ed07f4b2bae278291eec48e20327aca6d80ab·...·]/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>
140 </div></details></div></details><details·class="toggle·implementors-toggle"·open><summary><section·id="impl-Deref-for-Cow%3C'_,+B%3E"·class="impl"><a·class="src·rightside"·href="../../src/alloc/borrow.rs.html#332-344">source</a><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">where140 </div></details></div></details><details·class="toggle·implementors-toggle"·open><summary><section·id="impl-Deref-for-Cow%3C'_,+B%3E"·class="impl"><a·class="src·rightside"·href="../../src/alloc/borrow.rs.html#332-344">source</a><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.78.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:·c83ba7181764d32007e6c3129f7fed30810cb2bcb659c1d9f0e06b8533ea22d1·...·]/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
141 ····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·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:·25907cce3028135700dc8a1fbc6d6af07291f6f023485cca2a75ca01ed2229d4·...·]/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"><a·class="src·rightside"·href="../../src/alloc/borrow.rs.html#397-407">source</a><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">where141 ····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·href="#associatedtype.Target"·class="anchor">§</a><h4·class="code-header">type·<a·href="https://doc.rust-lang.org/1.78.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:·7f553d7d9db06238d771322eb1f3a4b7cf84fb6ecf596b276362b02d542eb359·...·]/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"><a·class="src·rightside"·href="../../src/alloc/borrow.rs.html#397-407">source</a><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
142 ····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"·class="method·trait-impl"><a·class="src·righ[·...·truncated·by·diffoscope;·len:·5767,·SHA:·b25ab414b4b707ff496b30a2ee4086eed004d022c03431021c3bf2fa2985501b·...·]/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 ····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.78.0/core/marker/trait.Sized.html"·title="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:·6307,·SHA:·a2bb7822bdfa7d0a811dc57d1d2881cac0086866e7aac2f113b18843c4640688·...·]/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>
143 from·a·slice.</p>143 from·a·slice.</p>
144 <p>This·conversion·does·not·allocate·or·clone·the·data.</p>144 <p>This·conversion·does·not·allocate·or·clone·the·data.</p>
145 </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#19-29">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:·844,·SHA:·88fdaa65b6fd21b78749745a83bf155cd9d7a548b3e2abe576cc2c8a7accb176·...·]/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 </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#19-29">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.78.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.78.0/core/primitive.usize.html">usize</a>&gt;·<a·class="trait"·href="https://doc.rust-[·...·truncated·by·diffoscope;·len:·1060,·SHA:·260abe2a6df52788a11acee6193b28abf0eba96350ea68b3c6d7cb27f7c41cba·...·]/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>
146 from·a·reference·to·an·array.</p>146 from·a·reference·to·an·array.</p>
147 <p>This·conversion·does·not·allocate·or·clone·the·data.</p>147 <p>This·conversion·does·not·allocate·or·clone·the·data.</p>
148 </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#849-855">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:·cf36f26af8e16e064a01f4b375b944a591d777fc45d278d4fc9cbb4288384311·...·]/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%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#849-855">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.78.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.78.0/core/ffi/c_str/struct.CStr.html"·title="struct·core::ffi::c_str::CStr">CStr</a>&gt[·...·truncated·by·diffoscope;·len:·1128,·SHA:·af0e7d4638fb21b44cb4bc769f6d0cb63d69b9426877eed234f22f1becf07d7e·...·]/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>
149 </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#858-864">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:·760,·SHA:·331c1b87333833f2fb2697503fb525b12832dd20c88a2b9a67fd43b22fdbd2ea·...·]/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%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#858-864">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.78.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:·868,·SHA:·5341691c1845415bc549f3a2d173b9a794da9010ae74747cd50e742b9d523203·...·]/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>
150 </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#2844-2862">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:·bd1108944cd470d6ef759ed6c501f907d2fd31dc6e2bf6c5c93384cfa2399d0a·...·]/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 </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#2844-2862">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.78.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:·437d8897acb9d0aca6a0c2e5d66a5a3d13c4b8c796797720243f27fae6df2fb3·...·]/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.
151 No·heap·allocation·is·performed,·and·the·string151 No·heap·allocation·is·performed,·and·the·string
152 is·not·copied.</p>152 is·not·copied.</p>
153 <h5·id="example-2"><a·class="doc-anchor"·href="#example-2">§</a>Example</h5>153 <h5·id="example-2"><a·class="doc-anchor"·href="#example-2">§</a>Example</h5>
154 <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 <div·class="example-wrap"><pre·class="rust·rust-example-rendered"><code><span·class="kw">let·</span>s·=·<span·class="string">"eggplant"</span>.to_string();
155 <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"·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">Run</a></div>155 <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"·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">Run</a></div>
156 </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#45-55">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:·b2c5e33745af07f8373a1f8a98c0289395c39c28fd26e52ecdefa49595beb0f4·...·]/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 </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#45-55">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.78.0/core/clone/trait.Clone.html"·title="trait·core::clone::Clone">Clone</a>&gt;·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/convert/trait.From.html"·title="trait·core::convert::From">From</a>&lt;&amp;'a·<a·clas[·...·truncated·by·diffoscope;·len:·951,·SHA:·08e659a8919d9ddac859e4b33ae89c10c7882af8fc1877f248311cd8fd223fee·...·]/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>
157 from·a·reference·to·<a·href="../vec/struct.Vec.html"·title="struct·alloc::vec::Vec"><code>Vec</code></a>.</p>157 from·a·reference·to·<a·href="../vec/struct.Vec.html"·title="struct·alloc::vec::Vec"><code>Vec</code></a>.</p>
158 <p>This·conversion·does·not·allocate·or·clone·the·data.</p>158 <p>This·conversion·does·not·allocate·or·clone·the·data.</p>
159 </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"><a·class="src·rightside"·href="../../src/alloc/string.rs.html#2800-2817">source</a><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:·650,·SHA:·da6faf5d5aa5ba9606a94f1fecd3e78e226b2d02acc5c711f31f69e42c0fe8c3·...·]/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 </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"><a·class="src·rightside"·href="../../src/alloc/string.rs.html#2800-2817">source</a><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.78.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.78.0/core/primitive.str.html">str</a>&gt;·for·<a·class="enum"·href="enum.Cow.html"·t[·...·truncated·by·diffoscope;·len:·812,·SHA:·0becb9bc96e388a9850b1321a8a15947c8413454d62ad8c2a1a9cc184d4ba464·...·]/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.
160 No·heap·allocation·is·performed,·and·the·string160 No·heap·allocation·is·performed,·and·the·string
161 is·not·copied.</p>161 is·not·copied.</p>
162 <h5·id="example"><a·class="doc-anchor"·href="#example">§</a>Example</h5>162 <h5·id="example"><a·class="doc-anchor"·href="#example">§</a>Example</h5>
163 <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"·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">Run</a></div>163 <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"·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">Run</a></div>
164 </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#840-846">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:·738,·SHA:·657a5015fd8d5e3dfd5316402908732efbbc7e83916c81f135063e0b0ba5023e·...·]/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%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#840-846">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.78.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:·846,·SHA:·461e0080401d14104203e6bb8b5006b437ad90b4cfde9fcc927efede229ec882·...·]/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>
165 </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#1544-1558">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:·942,·SHA:·f3c2555cfba57b5dd54ef4c2e5ca0e9b6174d4f99aa6b572cce4fc057eaf553c·...·]/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 </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#1544-1558">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.78.0/core/clone/trait.Clone.html"·title="trait·core::clone::Clone">Clone</a>&gt;·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/convert/trait.From.html"·title="trait·core::convert::From">From</a>&lt;<a·class="enum"[·...·truncated·by·diffoscope;·len:·1131,·SHA:·1c8e5e691829da20a254ba50cf9b0d394c68397a7c2bb56505fbd56854fc9dee·...·]/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>
166 <p>When·<code>cow</code>·is·the·<code>Cow::Borrowed</code>·variant,·this166 <p>When·<code>cow</code>·is·the·<code>Cow::Borrowed</code>·variant,·this
167 conversion·allocates·on·the·heap·and·copies·the167 conversion·allocates·on·the·heap·and·copies·the
168 underlying·slice.·Otherwise,·it·will·try·to·reuse·the·owned168 underlying·slice.·Otherwise,·it·will·try·to·reuse·the·owned
169 <code>Vec</code>’s·allocation.</p>169 <code>Vec</code>’s·allocation.</p>
170 </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#777-787">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:·7551045c3ccbad8eede7613b62a6ae1688f803e53d4e846d42f4890bc97cfd6c·...·]/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 </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#777-787">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.78.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.78.0/core/f[·...·truncated·by·diffoscope;·len:·1124,·SHA:·6c9ac317ca5d5aeee9610a272b6b499ece60da097225f931b8eb1b1c5310e004·...·]/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>,
171 by·copying·the·contents·if·they·are·borrowed.</p>171 by·copying·the·contents·if·they·are·borrowed.</p>
172 </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#1582-1613">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:·551da26d865bb631ff75f97cece8fe30cf491d4a7c8df2769bdfecf5957f1e92·...·]/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 </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#1582-1613">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.78.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.78.0/cor[·...·truncated·by·diffoscope;·len:·993,·SHA:·6c9a8b7388d5a19fe2642df79e5ac409176420686de25cfb87687836fa13e840·...·]/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>
173 <p>When·<code>cow</code>·is·the·<code>Cow::Borrowed</code>·variant,·this173 <p>When·<code>cow</code>·is·the·<code>Cow::Borrowed</code>·variant,·this
174 conversion·allocates·on·the·heap·and·copies·the174 conversion·allocates·on·the·heap·and·copies·the
175 underlying·<code>str</code>.·Otherwise,·it·will·try·to·reuse·the·owned175 underlying·<code>str</code>.·Otherwise,·it·will·try·to·reuse·the·owned
176 <code>String</code>’s·allocation.</p>176 <code>String</code>’s·allocation.</p>
177 <h5·id="examples-5"><a·class="doc-anchor"·href="#examples-5">§</a>Examples</h5>177 <h5·id="examples-5"><a·class="doc-anchor"·href="#examples-5">§</a>Examples</h5>
178 <div·class="example-wrap"><pre·class="rust·rust-example-rendered"><code><span·class="kw">use·</span>std::borrow::Cow;178 <div·class="example-wrap"><pre·class="rust·rust-example-rendered"><code><span·class="kw">use·</span>std::borrow::Cow;
  
179 <span·class="kw">let·</span>unboxed·=·Cow::Borrowed(<span·class="string">"hello"</span>);179 <span·class="kw">let·</span>unboxed·=·Cow::Borrowed(<span·class="string">"hello"</span>);
180 <span·class="kw">let·</span>boxed:·Box&lt;str&gt;·=·Box::from(unboxed);180 <span·class="kw">let·</span>boxed:·Box&lt;str&gt;·=·Box::from(unboxed);
181 <span·class="macro">println!</span>(<span·class="string">"{boxed}"</span>);</code></pre><a·class="test-arrow"·target="_blank"·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">Run</a></div>181 <span·class="macro">println!</span>(<span·class="string">"{boxed}"</span>);</code></pre><a·class="test-arrow"·target="_blank"·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">Run</a></div>
  
182 <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 <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());
183 <span·class="kw">let·</span>boxed:·Box&lt;str&gt;·=·Box::from(unboxed);183 <span·class="kw">let·</span>boxed:·Box&lt;str&gt;·=·Box::from(unboxed);
184 <span·class="macro">println!</span>(<span·class="string">"{boxed}"</span>);</code></pre><a·class="test-arrow"·target="_blank"·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">Run</a></div>184 <span·class="macro">println!</span>(<span·class="string">"{boxed}"</span>);</code></pre><a·class="test-arrow"·target="_blank"·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">Run</a></div>
185 </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#3348-3369">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">where185 </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#3348-3369">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.78.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.78.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
186 ····<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:·504,·SHA:·e0d6d41fd7b92893fd2f17a2b5715082d8a9d8944d7661e7fabf4aad610bf058·...·]/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>Convert·a·clone-on-write·slice·into·a·vector.</p>186 ····<a·class="primitive"·href="https://doc.rust-lang.org/1.78.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:·585,·SHA:·014e0d9af7b204f89de065378feb771ffc5c722f230e3ebae86f420b02bdc240·...·]/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>Convert·a·clone-on-write·slice·into·a·vector.</p>
187 <p>If·<code>s</code>·already·owns·a·<code>Vec&lt;T&gt;</code>,·it·will·be·returned·directly.187 <p>If·<code>s</code>·already·owns·a·<code>Vec&lt;T&gt;</code>,·it·will·be·returned·directly.
188 If·<code>s</code>·is·borrowing·a·slice,·a·new·<code>Vec&lt;T&gt;</code>·will·be·allocated·and188 If·<code>s</code>·is·borrowing·a·slice,·a·new·<code>Vec&lt;T&gt;</code>·will·be·allocated·and
189 filled·by·cloning·<code>s</code>’s·items·into·it.</p>189 filled·by·cloning·<code>s</code>’s·items·into·it.</p>
190 <h5·id="examples-7"><a·class="doc-anchor"·href="#examples-7">§</a>Examples</h5>190 <h5·id="examples-7"><a·class="doc-anchor"·href="#examples-7">§</a>Examples</h5>
191 <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 <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>]);
192 <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="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>]);
193 <span·class="macro">assert_eq!</span>(Vec::from(o),·Vec::from(b));</code></pre><a·class="test-arrow"·target="_blank"·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">Run</a></div>193 <span·class="macro">assert_eq!</span>(Vec::from(o),·Vec::from(b));</code></pre><a·class="test-arrow"·target="_blank"·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">Run</a></div>
194 </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#3447-3471">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">where194 </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#3447-3471">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.78.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
195 ····B:·<a·class="trait"·href="trait.ToOwned.html"·title="trait·alloc::borrow::ToOwned">ToOwned</a>·+·?<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,195 ····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.78.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
196 ····<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:·be1c3ecbebcc954c4ce4e69decc9c84f44e91787df422dd1f0ddc996cd48125a·...·]/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>Create·an·atomically·reference-counted·pointer·from196 ····<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.78.0/core/convert/trait.From.html"·title="trait·core::convert::From">From</a>&lt;<a·class="primitive"·href="https://doc.rust-lang.org/1.78.0/core/primitive.reference.html">&amp;'a·B</a>&gt;·+·<a·class="trait"·href="https://doc.r[·...·truncated·by·diffoscope;·len:·586,·SHA:·704947200ff44b86c299c16f99dc1de73b2a441a8c5945f5a783b78c82d58b19·...·]/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>Create·an·atomically·reference-counted·pointer·from
197 a·clone-on-write·pointer·by·copying·its·content.</p>197 a·clone-on-write·pointer·by·copying·its·content.</p>
198 <h5·id="example-3"><a·class="doc-anchor"·href="#example-3">§</a>Example</h5>198 <h5·id="example-3"><a·class="doc-anchor"·href="#example-3">§</a>Example</h5>
199 <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 <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>);
200 <span·class="kw">let·</span>shared:·Arc&lt;str&gt;·=·Arc::from(cow);200 <span·class="kw">let·</span>shared:·Arc&lt;str&gt;·=·Arc::from(cow);
201 <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"·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">Run</a></div>201 <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"·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">Run</a></div>
202 </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#2612-2636">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">where202 </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#2612-2636">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.78.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
203 ····B:·<a·class="trait"·href="trait.ToOwned.html"·title="trait·alloc::borrow::ToOwned">ToOwned</a>·+·?<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,203 ····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.78.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
204 ····<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:·476,·SHA:·03ef87d555e6a65efc8b1d91b3d683a184115b348619502e9e094e3ee242b690·...·]/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>Create·a·reference-counted·pointer·from204 ····<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.78.0/core/convert/trait.From.html"·title="trait·core::convert::From">From</a>&lt;<a·class="primitive"·href="https://doc.rust-lang.org/1.78.0/core/primitive.reference.html">&amp;'a·B</a>&gt;·+·<a·class="trait"·href="https://doc.r[·...·truncated·by·diffoscope;·len:·584,·SHA:·488c0a377b3c53fd019c299d395c85d7fbec3f49c43e5ee49fd7928f96678422·...·]/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>Create·a·reference-counted·pointer·from
205 a·clone-on-write·pointer·by·copying·its·content.</p>205 a·clone-on-write·pointer·by·copying·its·content.</p>
206 <h5·id="example-4"><a·class="doc-anchor"·href="#example-4">§</a>Example</h5>206 <h5·id="example-4"><a·class="doc-anchor"·href="#example-4">§</a>Example</h5>
207 <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 <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>);
208 <span·class="kw">let·</span>shared:·Rc&lt;str&gt;·=·Rc::from(cow);208 <span·class="kw">let·</span>shared:·Rc&lt;str&gt;·=·Rc::from(cow);
209 <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"·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">Run</a></div>209 <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"·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">Run</a></div>
210 </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#756-763">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:·638,·SHA:·4e0528d0e928c053bba6e6fe48277cb1bbf35035d18f26adb76a175474200276·...·]/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·are210 </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#756-763">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.78.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.78.0/core/f[·...·truncated·by·diffoscope;·len:·746,·SHA:·d929b3ea75e93389211d82ec60d7c5e8c2cd55067cfd65f15d3d27992f321e40·...·]/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
211 borrowed.</p>211 borrowed.</p>
212 </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#2776-2796">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:·c637124f535379fe1f87beaf09df923bf622b0a7c545a08b97e65d29ea3f79fd·...·]/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·owned212 </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#2776-2796">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.78.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.78.0/cor[·...·truncated·by·diffoscope;·len:·707,·SHA:·be117e98ae5053cb062f12fb8896697531337ecb80a2d7c968b93f5da431443a·...·]/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
213 instance·of·<a·href="../string/struct.String.html"·title="struct·alloc::string::String"><code>String</code></a>.</p>213 instance·of·<a·href="../string/struct.String.html"·title="struct·alloc::string::String"><code>String</code></a>.</p>
Max diff block lines reached; 158484/297251 bytes (53.32%) of diff not shown.
28.4 KB
./usr/share/doc/rust-web-doc/html/alloc/borrow/trait.Borrow.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·trait·for·borrowing·data."><title>Borrow·in·alloc::borrow·-·Rust</title><script>·if·(window.location.protocol·!==·"file:")·document.write(`<link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/SourceSerif4-Regular-46f98efaafac5295.ttf.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/FiraSans-Regular-018c141bf0843ffd.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/FiraSans-Medium-8f9a781e4970d388.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/SourceCodePro-Regular-562dcc5011b6de7d.ttf.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/SourceCodePro-Semibold-d899c5a5c4aeb14a.ttf.woff2">`)</script><link·rel="stylesheet"·href="../../static.files/normalize-76eba96aa4d2e634.css"><link·rel="stylesheet"·href="../../static.files/rustdoc-35f9e32502181f1e.css"><meta·name="rustdoc-vars"·data-root-path="../../"·data-static-root-path="../../static.files/"·data-current-crate="alloc"·data-themes=""·data-resource-suffix="1.78.0"·data-rustdoc-version="1.78.0"·data-channel="1.78.0"·data-search-js="search-42d8da7a6b9792c2.js"·data-settings-js="settings-4313503d2e1961c2.js"·><script·src="../../static.files/storage-4c98445ec4002617.js"></script><script·defer·src="sidebar-items1.78.0.js"></script><script·defer·src="../../static.files/main-12cf3b4f4f9dc36d.js"></script><noscript><link·rel="stylesheet"·href="../../static.files/noscript-04d5337699b92874.css"></noscript><link·rel="alternate·icon"·type="image/png"·href="../../static.files/favicon-16x16-8b506e7a72182f1c.png"><link·rel="alternate·icon"·type="image/png"·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.78.0</span></h2></div><h2·class="location"><a·href="#">Borrow</a></h2><div·class="sidebar-elems"><section><h3><a·href="#required-methods">Required·Methods</a></h3><ul·class="block"><li><a·href="#tymethod.borrow">borrow</a></li></ul><h3><a·href="#implementors">Implementors</a></h3></section><h2><a·href="index.html">In·alloc::borrow</a></h2></div></nav><div·class="sidebar-resizer"></div>1 <!DOCTYPE·html><html·lang="en"><head><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.write(`<link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/SourceSerif4-Regular-46f98efaafac5295.ttf.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/FiraSans-Regular-018c141bf0843ffd.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/FiraSans-Medium-8f9a781e4970d388.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/SourceCodePro-Regular-562dcc5011b6de7d.ttf.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/SourceCodePro-Semibold-d899c5a5c4aeb14a.ttf.woff2">`)</script><link·rel="stylesheet"·href="../../static.files/normalize-76eba96aa4d2e634.css"><link·rel="stylesheet"·href="../../static.files/rustdoc-35f9e32502181f1e.css"><meta·name="rustdoc-vars"·data-root-path="../../"·data-static-root-path="../../static.files/"·data-current-crate="alloc"·data-themes=""·data-resource-suffix="1.78.0"·data-rustdoc-version="1.78.0"·data-channel="1.78.0"·data-search-js="search-42d8da7a6b9792c2.js"·data-settings-js="settings-4313503d2e1961c2.js"·><script·src="../../static.files/storage-4c98445ec4002617.js"></script><script·defer·src="sidebar-items1.78.0.js"></script><script·defer·src="../../static.files/main-12cf3b4f4f9dc36d.js"></script><noscript><link·rel="stylesheet"·href="../../static.files/noscript-04d5337699b92874.css"></noscript><link·rel="alternate·icon"·type="image/png"·href="../../static.files/favicon-16x16-8b506e7a72182f1c.png"><link·rel="alternate·icon"·type="image/png"·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.78.0</span></h2></div><h2·class="location"><a·href="#">Borrow</a></h2><div·class="sidebar-elems"><section><h3><a·href="#required-methods">Required·Methods</a></h3><ul·class="block"><li><a·href="#tymethod.borrow">borrow</a></li></ul><h3><a·href="#implementors">Implementors</a></h3></section><h2><a·href="index.html">In·alloc::borrow</a></h2></div></nav><div·class="sidebar-resizer"></div>
2 ····<main><div·class="width-limiter"><nav·class="sub"><form·class="search-form"><span></span><div·id="sidebar-button"·tabindex="-1"><a·href="../../alloc/all.html"·title="show·sidebar"></a></div><input·class="search-input"·name="search"·aria-label="Run·search·in·the·documentation"·autocomplete="off"·spellcheck="false"·placeholder="Click·or·press·‘S’·to·search,·‘?’·for·more·options…"·type="search"><div·id="help-button"·tabindex="-1"><a·href="../../help.html"·title="help">?</a></div><div·id="settings-menu"·tabindex="-1"><a·href="../../settings.html"·title="settings"><img·width="22"·height="22"·alt="Change·settings"·src="../../static.files/wheel-7b819b6101059cd0.svg"></a></div></form></nav><section·id="main-content"·class="content"><div·class="main-heading"><h1>Trait·<a·href="../index.html">alloc</a>::<wbr><a·href="index.html">borrow</a>::<wbr><a·class="trait"·href="#">Borrow</a><button·id="copy-path"·title="Copy·item·path·to·clipboard"><img·src="../../static.files/clipboard-7571035ce49a181d.svg"·width="19"·height="18"·alt="Copy·item·path"></button></h1><span·class="out-of-band"><span·class="since"·title="Stable·since·Rust·version·1.0.0">1.0.0</span>···<a·class="src"·href="../../src/core/borrow.rs.html#157">source</a>···<button·id="toggle-all-docs"·title="collapse·all·docs">[<span>&#x2212;</span>]</button></span></div><pre·class="rust·item-decl"><code>pub·trait·Borrow&lt;Borrowed&gt;<div·class="where">where2 ····<main><div·class="width-limiter"><nav·class="sub"><form·class="search-form"><span></span><div·id="sidebar-button"·tabindex="-1"><a·href="../../alloc/all.html"·title="show·sidebar"></a></div><input·class="search-input"·name="search"·aria-label="Run·search·in·the·documentation"·autocomplete="off"·spellcheck="false"·placeholder="Click·or·press·‘S’·to·search,·‘?’·for·more·options…"·type="search"><div·id="help-button"·tabindex="-1"><a·href="../../help.html"·title="help">?</a></div><div·id="settings-menu"·tabindex="-1"><a·href="../../settings.html"·title="settings"><img·width="22"·height="22"·alt="Change·settings"·src="../../static.files/wheel-7b819b6101059cd0.svg"></a></div></form></nav><section·id="main-content"·class="content"><div·class="main-heading"><h1>Trait·<a·href="../index.html">alloc</a>::<wbr><a·href="index.html">borrow</a>::<wbr><a·class="trait"·href="#">Borrow</a><button·id="copy-path"·title="Copy·item·path·to·clipboard"><img·src="../../static.files/clipboard-7571035ce49a181d.svg"·width="19"·height="18"·alt="Copy·item·path"></button></h1><span·class="out-of-band"><span·class="since"·title="Stable·since·Rust·version·1.0.0">1.0.0</span>···<a·class="src"·href="https://doc.rust-lang.org/1.78.0/src/core/borrow.rs.html#157">source</a>···<button·id="toggle-all-docs"·title="collapse·all·docs">[<span>&#x2212;</span>]</button></span></div><pre·class="rust·item-decl"><code>pub·trait·Borrow&lt;Borrowed&gt;<div·class="where">where
3 ····Borrowed:·?<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div>{3 ····Borrowed:·?<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div>{
4 ····//·Required·method4 ····//·Required·method
5 ····fn·<a·href="#tymethod.borrow"·class="fn">borrow</a>(&amp;self)·-&gt;·<a·class="primitive"·href="../../core/primitive.reference.html">&amp;Borrowed</a>;5 ····fn·<a·href="#tymethod.borrow"·class="fn">borrow</a>(&amp;self)·-&gt;·<a·class="primitive"·href="https://doc.rust-lang.org/1.78.0/core/primitive.reference.html">&amp;Borrowed</a>;
6 }</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 }</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>
7 <p>In·Rust,·it·is·common·to·provide·different·representations·of·a·type·for7 <p>In·Rust,·it·is·common·to·provide·different·representations·of·a·type·for
8 different·use·cases.·For·instance,·storage·location·and·management·for·a8 different·use·cases.·For·instance,·storage·location·and·management·for·a
9 value·can·be·specifically·chosen·as·appropriate·for·a·particular·use·via9 value·can·be·specifically·chosen·as·appropriate·for·a·particular·use·via
10 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·generic10 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
11 wrappers·that·can·be·used·with·any·type,·some·types·provide·optional11 wrappers·that·can·be·used·with·any·type,·some·types·provide·optional
12 facets·providing·potentially·costly·functionality.·An·example·for·such·a12 facets·providing·potentially·costly·functionality.·An·example·for·such·a
13 type·is·<a·href="../../std/string/struct.String.html"><code>String</code></a>·which·adds·the·ability·to·extend·a·string·to·the·basic13 type·is·<a·href="../../std/string/struct.String.html"><code>String</code></a>·which·adds·the·ability·to·extend·a·string·to·the·basic
14 <a·href="../../core/primitive.str.html"·title="primitive·str"><code>str</code></a>.·This·requires·keeping·additional·information·unnecessary·for·a14 <a·href="https://doc.rust-lang.org/1.78.0/core/primitive.str.html"·title="primitive·str"><code>str</code></a>.·This·requires·keeping·additional·information·unnecessary·for·a
15 simple,·immutable·string.</p>15 simple,·immutable·string.</p>
16 <p>These·types·provide·access·to·the·underlying·data·through·references16 <p>These·types·provide·access·to·the·underlying·data·through·references
17 to·the·type·of·that·data.·They·are·said·to·be·‘borrowed·as’·that·type.17 to·the·type·of·that·data.·They·are·said·to·be·‘borrowed·as’·that·type.
18 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 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>
19 can·be·borrowed·as·<code>str</code>.</p>19 can·be·borrowed·as·<code>str</code>.</p>
20 <p>Types·express·that·they·can·be·borrowed·as·some·type·<code>T</code>·by·implementing20 <p>Types·express·that·they·can·be·borrowed·as·some·type·<code>T</code>·by·implementing
21 <code>Borrow&lt;T&gt;</code>,·providing·a·reference·to·a·<code>T</code>·in·the·trait’s21 <code>Borrow&lt;T&gt;</code>,·providing·a·reference·to·a·<code>T</code>·in·the·trait’s
Offset 29, 22 lines modifiedOffset 29, 22 lines modified
29 on·the·identical·behavior·of·these·additional·trait·implementations.29 on·the·identical·behavior·of·these·additional·trait·implementations.
30 These·traits·will·likely·appear·as·additional·trait·bounds.</p>30 These·traits·will·likely·appear·as·additional·trait·bounds.</p>
31 <p>In·particular·<code>Eq</code>,·<code>Ord</code>·and·<code>Hash</code>·must·be·equivalent·for31 <p>In·particular·<code>Eq</code>,·<code>Ord</code>·and·<code>Hash</code>·must·be·equivalent·for
32 borrowed·and·owned·values:·<code>x.borrow()·==·y.borrow()</code>·should·give·the32 borrowed·and·owned·values:·<code>x.borrow()·==·y.borrow()</code>·should·give·the
33 same·result·as·<code>x·==·y</code>.</p>33 same·result·as·<code>x·==·y</code>.</p>
34 <p>If·generic·code·merely·needs·to·work·for·all·types·that·can34 <p>If·generic·code·merely·needs·to·work·for·all·types·that·can
35 provide·a·reference·to·related·type·<code>T</code>,·it·is·often·better·to·use35 provide·a·reference·to·related·type·<code>T</code>,·it·is·often·better·to·use
36 <a·href="../../core/convert/trait.AsRef.html"·title="trait·core::convert::AsRef"><code>AsRef&lt;T&gt;</code></a>·as·more·types·can·safely·implement·it.</p>36 <a·href="https://doc.rust-lang.org/1.78.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>
37 <h2·id="examples"><a·class="doc-anchor"·href="#examples">§</a>Examples</h2>37 <h2·id="examples"><a·class="doc-anchor"·href="#examples">§</a>Examples</h2>
38 <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.·If38 <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
39 the·key’s·actual·data·is·wrapped·in·a·managing·type·of·some·kind,·it39 the·key’s·actual·data·is·wrapped·in·a·managing·type·of·some·kind,·it
40 should,·however,·still·be·possible·to·search·for·a·value·using·a40 should,·however,·still·be·possible·to·search·for·a·value·using·a
41 reference·to·the·key’s·data.·For·instance,·if·the·key·is·a·string,·then41 reference·to·the·key’s·data.·For·instance,·if·the·key·is·a·string,·then
42 it·is·likely·stored·with·the·hash·map·as·a·<a·href="../../std/string/struct.String.html"><code>String</code></a>,·while·it·should42 it·is·likely·stored·with·the·hash·map·as·a·<a·href="../../std/string/struct.String.html"><code>String</code></a>,·while·it·should
43 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·to43 be·possible·to·search·using·a·<a·href="https://doc.rust-lang.org/1.78.0/core/primitive.str.html"·title="primitive·str"><code>&amp;str</code></a>.·Thus,·<code>insert</code>·needs·to
44 operate·on·a·<code>String</code>·while·<code>get</code>·needs·to·be·able·to·use·a·<code>&amp;str</code>.</p>44 operate·on·a·<code>String</code>·while·<code>get</code>·needs·to·be·able·to·use·a·<code>&amp;str</code>.</p>
45 <p>Slightly·simplified,·the·relevant·parts·of·<code>HashMap&lt;K,·V&gt;</code>·look·like45 <p>Slightly·simplified,·the·relevant·parts·of·<code>HashMap&lt;K,·V&gt;</code>·look·like
46 this:</p>46 this:</p>
  
47 <div·class="example-wrap"><pre·class="rust·rust-example-rendered"><code><span·class="kw">use·</span>std::borrow::Borrow;47 <div·class="example-wrap"><pre·class="rust·rust-example-rendered"><code><span·class="kw">use·</span>std::borrow::Borrow;
48 <span·class="kw">use·</span>std::hash::Hash;48 <span·class="kw">use·</span>std::hash::Hash;
  
Offset 112, 27 lines modifiedOffset 112, 27 lines modified
112 }</code></pre><a·class="test-arrow"·target="_blank"·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">Run</a></div>112 }</code></pre><a·class="test-arrow"·target="_blank"·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">Run</a></div>
113 <p>Can·<code>CaseInsensitiveString</code>·implement·<code>Borrow&lt;str&gt;</code>?·It·certainly·can113 <p>Can·<code>CaseInsensitiveString</code>·implement·<code>Borrow&lt;str&gt;</code>?·It·certainly·can
114 provide·a·reference·to·a·string·slice·via·its·contained·owned·string.114 provide·a·reference·to·a·string·slice·via·its·contained·owned·string.
115 But·because·its·<code>Hash</code>·implementation·differs,·it·behaves·differently115 But·because·its·<code>Hash</code>·implementation·differs,·it·behaves·differently
116 from·<code>str</code>·and·therefore·must·not,·in·fact,·implement·<code>Borrow&lt;str&gt;</code>.116 from·<code>str</code>·and·therefore·must·not,·in·fact,·implement·<code>Borrow&lt;str&gt;</code>.
117 If·it·wants·to·allow·others·access·to·the·underlying·<code>str</code>,·it·can·do117 If·it·wants·to·allow·others·access·to·the·underlying·<code>str</code>,·it·can·do
118 that·via·<code>AsRef&lt;str&gt;</code>·which·doesn’t·carry·any·extra·requirements.</p>118 that·via·<code>AsRef&lt;str&gt;</code>·which·doesn’t·carry·any·extra·requirements.</p>
119 </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"><a·class="src·rightside"·href="../../src/core/borrow.rs.html#178">source</a><h4·class="code-header">fn·<a·href="#tymethod.borrow"·class="fn">borrow</a>(&amp;self)·-&gt;·<a·class="primitive"·href="../../core/primitive.reference.html">&amp;Borrowed</a></h4></section></summary><div·class="docblock"><p>Immutably·borrows·from·an·owned·value.</p>119 </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"><a·class="src·rightside"·href="https://doc.rust-lang.org/1.78.0/src/core/borrow.rs.html#178">source</a><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.78.0/core/primitive.reference.html">&amp;Borrowed</a></h4></section></summary><div·class="docblock"><p>Immutably·borrows·from·an·owned·value.</p>
120 <h5·id="examples-1"><a·class="doc-anchor"·href="#examples-1">§</a>Examples</h5>120 <h5·id="examples-1"><a·class="doc-anchor"·href="#examples-1">§</a>Examples</h5>
121 <div·class="example-wrap"><pre·class="rust·rust-example-rendered"><code><span·class="kw">use·</span>std::borrow::Borrow;121 <div·class="example-wrap"><pre·class="rust·rust-example-rendered"><code><span·class="kw">use·</span>std::borrow::Borrow;
  
122 <span·class="kw">fn·</span>check&lt;T:·Borrow&lt;str&gt;&gt;(s:·T)·{122 <span·class="kw">fn·</span>check&lt;T:·Borrow&lt;str&gt;&gt;(s:·T)·{
123 ····<span·class="macro">assert_eq!</span>(<span·class="string">"Hello"</span>,·s.borrow());123 ····<span·class="macro">assert_eq!</span>(<span·class="string">"Hello"</span>,·s.borrow());
124 }124 }
  
125 <span·class="kw">let·</span>s·=·<span·class="string">"Hello"</span>.to_string();125 <span·class="kw">let·</span>s·=·<span·class="string">"Hello"</span>.to_string();
  
126 check(s);126 check(s);
  
127 <span·class="kw">let·</span>s·=·<span·class="string">"Hello"</span>;127 <span·class="kw">let·</span>s·=·<span·class="string">"Hello"</span>;
  
128 check(s);</code></pre><a·class="test-arrow"·target="_blank"·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">Run</a></div>128 check(s);</code></pre><a·class="test-arrow"·target="_blank"·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">Run</a></div>
129 </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"><a·class="src·rightside"·href="../../src/alloc/str.rs.html#190-195">source</a><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:·b2f4eaae7e20d89f8042586af939d87e4c1366ad20e37f0e12f594a1c6c02ae5·...·]/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"><a·class="src·rightside"·href="../../src/alloc/borrow.rs.html#21-28">source</a><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">where129 </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"><a·class="src·rightside"·href="../../src/alloc/str.rs.html#190-195">source</a><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.78.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:·c48142907c97d06aec44ed2a314d49e9719b5dc6ffa1fae64bc4c8e81da5a413·...·]/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"><a·class="src·rightside"·href="../../src/alloc/borrow.rs.html#21-28">source</a><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
130 ····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"><a·class="src·rightside"·href="../../src/core/borrow.rs.html#223">source</a><a·href="#impl-Borrow%3C[·...·truncated·by·diffoscope;·len:·207,·SHA:·b65ec584bcce7f18be7e5516b740b00d5211d01e59576203c133bd226c964f7e·...·]/core/primitive.reference.html">&amp;T</a><div·class="where">where130 ····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.78.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"><a·class="src·rightside"·href="https://doc.rust-lang.org/1.78.0/src/core/[·...·truncated·by·diffoscope;·len:·288,·SHA:·682988656d0cda2dfd69f24490131ac7ccfe6d69b126bb8d6633fc8117535696·...·]/core/primitive.reference.html">&amp;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-%26mut+T"·class="impl"><a·class="src·rightside"·href="../../src/core/borrow.rs.html#230">source</a><a·href="#impl-Borro[·...·truncated·by·diffoscope;·len:·215,·SHA:·173cf5add655fb6ef61504f043bf454dfa1620e9c4b845fa72c82a88dd2ef077·...·]/core/primitive.reference.html">&amp;mut·T</a><div·class="where">where131 ····T:·?<a·class="trait"·href="https://doc.rust-lang.org/1.78.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"><a·class="src·rightside"·href="https://doc.rust-lang.org/1.78.0/src/c[·...·truncated·by·diffoscope;·len:·296,·SHA:·769bc1366e923eba4998f5f5fffbf3403e2f8360ff4f156fde75e04a75fc3f01·...·]/core/primitive.reference.html">&amp;mut·T</a><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%3CT%3E-for-T"·class="impl"><a·class="src·rightside"·href="../../src/core/borrow.rs.html#208">source</a><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">where132 ····T:·?<a·class="trait"·href="https://doc.rust-lang.org/1.78.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"><a·class="src·rightside"·href="https://doc.rust-lang.org/1.78.0/src/core/borrow.rs.html#208">source</a><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
133 ····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"><a·class="src·rightside"·href="../../src/alloc/slice.rs.html#772-776">source</a><a·hr[·...·truncated·by·diffoscope;·len:·2913,·SHA:·cd0e1ed60e9396fdd8fdee49891b61f4244b3cee4e8bee519bc23be7bc166bcb·...·]/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>133 ····T:·?<a·class="trait"·href="https://doc.rust-lang.org/1.78.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"><a·class="src·rightside"·href="../../src/alloc/slice.rs.ht[·...·truncated·by·diffoscope;·len:·3156,·SHA:·dcfe407dae1c89e6756c8bdcf54f4a55a9f79cde28c927495de5edffe7e5667b·...·]/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>
18.3 KB
./usr/share/doc/rust-web-doc/html/alloc/borrow/trait.BorrowMut.html
    
Offset 1, 23 lines modifiedOffset 1, 23 lines modified
1 <!DOCTYPE·html><html·lang="en"><head><meta·charset="utf-8"><meta·name="viewport"·content="width=device-width,·initial-scale=1.0"><meta·name="generator"·content="rustdoc"><meta·name="description"·content="A·trait·for·mutably·borrowing·data."><title>BorrowMut·in·alloc::borrow·-·Rust</title><script>·if·(window.location.protocol·!==·"file:")·document.write(`<link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/SourceSerif4-Regular-46f98efaafac5295.ttf.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/FiraSans-Regular-018c141bf0843ffd.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/FiraSans-Medium-8f9a781e4970d388.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/SourceCodePro-Regular-562dcc5011b6de7d.ttf.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/SourceCodePro-Semibold-d899c5a5c4aeb14a.ttf.woff2">`)</script><link·rel="stylesheet"·href="../../static.files/normalize-76eba96aa4d2e634.css"><link·rel="stylesheet"·href="../../static.files/rustdoc-35f9e32502181f1e.css"><meta·name="rustdoc-vars"·data-root-path="../../"·data-static-root-path="../../static.files/"·data-current-crate="alloc"·data-themes=""·data-resource-suffix="1.78.0"·data-rustdoc-version="1.78.0"·data-channel="1.78.0"·data-search-js="search-42d8da7a6b9792c2.js"·data-settings-js="settings-4313503d2e1961c2.js"·><script·src="../../static.files/storage-4c98445ec4002617.js"></script><script·defer·src="sidebar-items1.78.0.js"></script><script·defer·src="../../static.files/main-12cf3b4f4f9dc36d.js"></script><noscript><link·rel="stylesheet"·href="../../static.files/noscript-04d5337699b92874.css"></noscript><link·rel="alternate·icon"·type="image/png"·href="../../static.files/favicon-16x16-8b506e7a72182f1c.png"><link·rel="alternate·icon"·type="image/png"·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.78.0</span></h2></div><h2·class="location"><a·href="#">BorrowMut</a></h2><div·class="sidebar-elems"><section><h3><a·href="#required-methods">Required·Methods</a></h3><ul·class="block"><li><a·href="#tymethod.borrow_mut">borrow_mut</a></li></ul><h3><a·href="#implementors">Implementors</a></h3></section><h2><a·href="index.html">In·alloc::borrow</a></h2></div></nav><div·class="sidebar-resizer"></div>1 <!DOCTYPE·html><html·lang="en"><head><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.write(`<link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/SourceSerif4-Regular-46f98efaafac5295.ttf.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/FiraSans-Regular-018c141bf0843ffd.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/FiraSans-Medium-8f9a781e4970d388.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/SourceCodePro-Regular-562dcc5011b6de7d.ttf.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/SourceCodePro-Semibold-d899c5a5c4aeb14a.ttf.woff2">`)</script><link·rel="stylesheet"·href="../../static.files/normalize-76eba96aa4d2e634.css"><link·rel="stylesheet"·href="../../static.files/rustdoc-35f9e32502181f1e.css"><meta·name="rustdoc-vars"·data-root-path="../../"·data-static-root-path="../../static.files/"·data-current-crate="alloc"·data-themes=""·data-resource-suffix="1.78.0"·data-rustdoc-version="1.78.0"·data-channel="1.78.0"·data-search-js="search-42d8da7a6b9792c2.js"·data-settings-js="settings-4313503d2e1961c2.js"·><script·src="../../static.files/storage-4c98445ec4002617.js"></script><script·defer·src="sidebar-items1.78.0.js"></script><script·defer·src="../../static.files/main-12cf3b4f4f9dc36d.js"></script><noscript><link·rel="stylesheet"·href="../../static.files/noscript-04d5337699b92874.css"></noscript><link·rel="alternate·icon"·type="image/png"·href="../../static.files/favicon-16x16-8b506e7a72182f1c.png"><link·rel="alternate·icon"·type="image/png"·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.78.0</span></h2></div><h2·class="location"><a·href="#">BorrowMut</a></h2><div·class="sidebar-elems"><section><h3><a·href="#required-methods">Required·Methods</a></h3><ul·class="block"><li><a·href="#tymethod.borrow_mut">borrow_mut</a></li></ul><h3><a·href="#implementors">Implementors</a></h3></section><h2><a·href="index.html">In·alloc::borrow</a></h2></div></nav><div·class="sidebar-resizer"></div>
2 ····<main><div·class="width-limiter"><nav·class="sub"><form·class="search-form"><span></span><div·id="sidebar-button"·tabindex="-1"><a·href="../../alloc/all.html"·title="show·sidebar"></a></div><input·class="search-input"·name="search"·aria-label="Run·search·in·the·documentation"·autocomplete="off"·spellcheck="false"·placeholder="Click·or·press·‘S’·to·search,·‘?’·for·more·options…"·type="search"><div·id="help-button"·tabindex="-1"><a·href="../../help.html"·title="help">?</a></div><div·id="settings-menu"·tabindex="-1"><a·href="../../settings.html"·title="settings"><img·width="22"·height="22"·alt="Change·settings"·src="../../static.files/wheel-7b819b6101059cd0.svg"></a></div></form></nav><section·id="main-content"·class="content"><div·class="main-heading"><h1>Trait·<a·href="../index.html">alloc</a>::<wbr><a·href="index.html">borrow</a>::<wbr><a·class="trait"·href="#">BorrowMut</a><button·id="copy-path"·title="Copy·item·path·to·clipboard"><img·src="../../static.files/clipboard-7571035ce49a181d.svg"·width="19"·height="18"·alt="Copy·item·path"></button></h1><span·class="out-of-band"><span·class="since"·title="Stable·since·Rust·version·1.0.0">1.0.0</span>···<a·class="src"·href="../../src/core/borrow.rs.html#187">source</a>···<button·id="toggle-all-docs"·title="collapse·all·docs">[<span>&#x2212;</span>]</button></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">where2 ····<main><div·class="width-limiter"><nav·class="sub"><form·class="search-form"><span></span><div·id="sidebar-button"·tabindex="-1"><a·href="../../alloc/all.html"·title="show·sidebar"></a></div><input·class="search-input"·name="search"·aria-label="Run·search·in·the·documentation"·autocomplete="off"·spellcheck="false"·placeholder="Click·or·press·‘S’·to·search,·‘?’·for·more·options…"·type="search"><div·id="help-button"·tabindex="-1"><a·href="../../help.html"·title="help">?</a></div><div·id="settings-menu"·tabindex="-1"><a·href="../../settings.html"·title="settings"><img·width="22"·height="22"·alt="Change·settings"·src="../../static.files/wheel-7b819b6101059cd0.svg"></a></div></form></nav><section·id="main-content"·class="content"><div·class="main-heading"><h1>Trait·<a·href="../index.html">alloc</a>::<wbr><a·href="index.html">borrow</a>::<wbr><a·class="trait"·href="#">BorrowMut</a><button·id="copy-path"·title="Copy·item·path·to·clipboard"><img·src="../../static.files/clipboard-7571035ce49a181d.svg"·width="19"·height="18"·alt="Copy·item·path"></button></h1><span·class="out-of-band"><span·class="since"·title="Stable·since·Rust·version·1.0.0">1.0.0</span>···<a·class="src"·href="https://doc.rust-lang.org/1.78.0/src/core/borrow.rs.html#187">source</a>···<button·id="toggle-all-docs"·title="collapse·all·docs">[<span>&#x2212;</span>]</button></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
3 ····Borrowed:·?<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div>{3 ····Borrowed:·?<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div>{
4 ····//·Required·method4 ····//·Required·method
5 ····fn·<a·href="#tymethod.borrow_mut"·class="fn">borrow_mut</a>(&amp;mut·self)·-&gt;·<a·class="primitive"·href="../../core/primitive.reference.html">&amp;mut·Borrowed</a>;5 ····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.78.0/core/primitive.reference.html">&amp;mut·Borrowed</a>;
6 }</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 }</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>
7 <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·as7 <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
8 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 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>
9 for·more·information·on·borrowing·as·another·type.</p>9 for·more·information·on·borrowing·as·another·type.</p>
10 </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"><a·class="src·rightside"·href="../../src/core/borrow.rs.html#204">source</a><h4·class="code-header">fn·<a·href="#tymethod.borrow_mut"·class="fn">borrow_mut</a>(&amp;mut·self)·-&gt;·<a·class="primitive"·href="../../core/primitive.reference.html">&amp;mut·Borrowed</a></h4></section></summary><div·class="docblock"><p>Mutably·borrows·from·an·owned·value.</p>10 </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"><a·class="src·rightside"·href="https://doc.rust-lang.org/1.78.0/src/core/borrow.rs.html#204">source</a><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.78.0/core/primitive.reference.html">&amp;mut·Borrowed</a></h4></section></summary><div·class="docblock"><p>Mutably·borrows·from·an·owned·value.</p>
11 <h5·id="examples"><a·class="doc-anchor"·href="#examples">§</a>Examples</h5>11 <h5·id="examples"><a·class="doc-anchor"·href="#examples">§</a>Examples</h5>
12 <div·class="example-wrap"><pre·class="rust·rust-example-rendered"><code><span·class="kw">use·</span>std::borrow::BorrowMut;12 <div·class="example-wrap"><pre·class="rust·rust-example-rendered"><code><span·class="kw">use·</span>std::borrow::BorrowMut;
  
13 <span·class="kw">fn·</span>check&lt;T:·BorrowMut&lt;[i32]&gt;&gt;(<span·class="kw-2">mut·</span>v:·T)·{13 <span·class="kw">fn·</span>check&lt;T:·BorrowMut&lt;[i32]&gt;&gt;(<span·class="kw-2">mut·</span>v:·T)·{
14 ····<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 ····<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());
15 }15 }
  
16 <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 <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>];
  
17 check(v);</code></pre><a·class="test-arrow"·target="_blank"·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">Run</a></div>17 check(v);</code></pre><a·class="test-arrow"·target="_blank"·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">Run</a></div>
18 </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#198-203">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"><a·class="src·rightside"·href="[·...·truncated·by·diffoscope;·len:·292,·SHA:·815c827caab62c4aee653d7ba6468f06f17a88b04e1ff56ab8d8f1a34ae5066d·...·]/core/primitive.reference.html">&amp;mut·T</a><div·class="where">where18 </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#198-203">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.78.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"><a·c[·...·truncated·by·diffoscope;·len:·373,·SHA:·e956563244f91e2feee16ec848d1bd048ab11dc9e1abf16407fbe2714490ed59·...·]/core/primitive.reference.html">&amp;mut·T</a><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%3CT%3E-for-T"·class="impl"><a·class="src·rightside"·href="../../src/core/borrow.rs.html#216">source</a><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">where19 ····T:·?<a·class="trait"·href="https://doc.rust-lang.org/1.78.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"><a·class="src·rightside"·href="https://doc.rust-lang.org/1.78.0/src/core/borrow.rs.html#216">source</a><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
20 ····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"><a·class="src·rightside"·href="../../src/alloc/slice.rs.html#779-783">source</a><a[·...·truncated·by·diffoscope;·len:·1592,·SHA:·c9191c9de468127d909f7da2da855384ada5ef76febe8993e18b7d5abb3c240b·...·]/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>20 ····T:·?<a·class="trait"·href="https://doc.rust-lang.org/1.78.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"><a·class="src·rightside"·href="../../src/alloc/slice.rs[·...·truncated·by·diffoscope;·len:·1781,·SHA:·56721fb2d79b4ad0ef66fb587c0787cc7c4770727ed96bd0fb77b82b5490f802·...·]/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>
11.2 KB
./usr/share/doc/rust-web-doc/html/alloc/borrow/trait.ToOwned.html
    
Offset 19, 18 lines modifiedOffset 19, 18 lines modified
  
19 <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 <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>;
20 <span·class="kw">let·</span>ss:·String·=·s.to_owned();20 <span·class="kw">let·</span>ss:·String·=·s.to_owned();
  
21 <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>v:·<span·class="kw-2">&amp;</span>[i32]·=·<span·class="kw-2">&amp;</span>[<span·class="number">1</span>,·<span·class="number">2</span>];
22 <span·class="kw">let·</span>vv:·Vec&lt;i32&gt;·=·v.to_owned();</code></pre><a·class="test-arrow"·target="_blank"·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">Run</a></div>22 <span·class="kw">let·</span>vv:·Vec&lt;i32&gt;·=·v.to_owned();</code></pre><a·class="test-arrow"·target="_blank"·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">Run</a></div>
23 </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#77-79">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 </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#77-79">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>
24 <p>This·is·borrow-generalized·version·of·<a·href="../../core/clone/trait.Clone.html#method.clone_from"·title="method·core::clone::Clone::clone_from"><code>Clone::clone_from</code></a>.</p>24 <p>This·is·borrow-generalized·version·of·<a·href="https://doc.rust-lang.org/1.78.0/core/clone/trait.Clone.html#method.clone_from"·title="method·core::clone::Clone::clone_from"><code>Clone::clone_from</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 <p>Basic·usage:</p>26 <p>Basic·usage:</p>
  
27 <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 <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();
28 <span·class="string">"hello"</span>.clone_into(<span·class="kw-2">&amp;mut·</span>s);28 <span·class="string">"hello"</span>.clone_into(<span·class="kw-2">&amp;mut·</span>s);
  
29 <span·class="kw">let·</span><span·class="kw-2">mut·</span>v:·Vec&lt;i32&gt;·=·Vec::new();29 <span·class="kw">let·</span><span·class="kw-2">mut·</span>v:·Vec&lt;i32&gt;·=·Vec::new();
30 [<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"·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">Run</a></div>30 [<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"·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">Run</a></div>
31 </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.78.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"><a·class="src·rightside"·href="../../src/alloc/str.rs.html#207-219">source</a><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·href="#associatedtype.Owned-1"·class="anchor">§</a><h4·class="code-header">type·<a·href="#assoc[·...·truncated·by·diffoscope;·len:·675,·SHA:·043124d28a296f69ae943329b7e46285be66e054c86386d15f9fbc43d9f10a8f·...·]/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·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"><a·class="src·rightside"·href="../../src/alloc/borrow.rs.html#83-95">source</a><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">where31 </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.78.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"><a·class="src·rightside"·href="../../src/alloc/str.rs.html#207-219">source</a><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.78.0/core/primitive.str.html">str</a></h3></section></summary><div·class="impl-items"><section·id="associatedtype.Owned-1"·class="associatedtype·trait-impl"><a·href="#associatedtype.Owned-1"·class="anchor">§</a><h4·class="code-h[·...·truncated·by·diffoscope;·len:·729,·SHA:·a2b9a3824b781d87a83ee8fc5019d547154bfadf0bd9b321f35ebd3f52012589·...·]/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·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"><a·class="src·rightside"·href="../../src/alloc/borrow.rs.html#83-95">source</a><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
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"><section·id="associatedtype.Owned-3"·class="associatedtype·trait-impl"><a·href="#associatedtype.Owned-3"·class="anchor">§</[·...·truncated·by·diffoscope;·len:·639,·SHA:·ffb632ba7982b2e0247802e2a156f62bb0e28c37929146114b57db70b4f0ca83·...·]/core/primitive.slice.html">[T]</a></h3></section></summary><div·class="impl-items"><section·id="associatedtype.Owned-4"·class="associatedtype·trait-impl"><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>32 ····T:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.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·href="#associatedtype.[·...·truncated·by·diffoscope;·len:·720,·SHA:·68c1f6984e31b22ef60d3315683ccdf57fea1b6342729c09779c58ab41a7ebbb·...·]/core/primitive.slice.html">[T]</a></h3></section></summary><div·class="impl-items"><section·id="associatedtype.Owned-4"·class="associatedtype·trait-impl"><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.0 KB
./usr/share/doc/rust-web-doc/html/alloc/boxed/index.html
    
Offset 5, 15 lines modifiedOffset 5, 15 lines modified
5 drop·their·contents·when·they·go·out·of·scope.·Boxes·also·ensure·that·they5 drop·their·contents·when·they·go·out·of·scope.·Boxes·also·ensure·that·they
6 never·allocate·more·than·<code>isize::MAX</code>·bytes.</p>6 never·allocate·more·than·<code>isize::MAX</code>·bytes.</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>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 <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>
  
9 <div·class="example-wrap"><pre·class="rust·rust-example-rendered"><code><span·class="kw">let·</span>val:·u8·=·<span·class="number">5</span>;9 <div·class="example-wrap"><pre·class="rust·rust-example-rendered"><code><span·class="kw">let·</span>val:·u8·=·<span·class="number">5</span>;
10 <span·class="kw">let·</span>boxed:·Box&lt;u8&gt;·=·Box::new(val);</code></pre><a·class="test-arrow"·target="_blank"·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">Run</a></div>10 <span·class="kw">let·</span>boxed:·Box&lt;u8&gt;·=·Box::new(val);</code></pre><a·class="test-arrow"·target="_blank"·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">Run</a></div>
11 <p>Move·a·value·from·a·<a·href="struct.Box.html"·title="struct·alloc::boxed::Box"><code>Box</code></a>·back·to·the·stack·by·<a·href="../../core/ops/deref/trait.Deref.html"·title="trait·core::ops::deref::Deref">dereferencing</a>:</p>11 <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.78.0/core/ops/deref/trait.Deref.html"·title="trait·core::ops::deref::Deref">dereferencing</a>:</p>
  
12 <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 <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>);
13 <span·class="kw">let·</span>val:·u8·=·<span·class="kw-2">*</span>boxed;</code></pre><a·class="test-arrow"·target="_blank"·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">Run</a></div>13 <span·class="kw">let·</span>val:·u8·=·<span·class="kw-2">*</span>boxed;</code></pre><a·class="test-arrow"·target="_blank"·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">Run</a></div>
14 <p>Creating·a·recursive·data·structure:</p>14 <p>Creating·a·recursive·data·structure:</p>
  
15 <div·class="example-wrap"><pre·class="rust·rust-example-rendered"><code><span·class="attr">#[allow(dead_code)]15 <div·class="example-wrap"><pre·class="rust·rust-example-rendered"><code><span·class="attr">#[allow(dead_code)]
16 #[derive(Debug)]16 #[derive(Debug)]
Offset 38, 20 lines modifiedOffset 38, 20 lines modified
38 its·allocation.·It·is·valid·to·convert·both·ways·between·a·<a·href="struct.Box.html"·title="struct·alloc::boxed::Box"><code>Box</code></a>·and·a38 its·allocation.·It·is·valid·to·convert·both·ways·between·a·<a·href="struct.Box.html"·title="struct·alloc::boxed::Box"><code>Box</code></a>·and·a
39 raw·pointer·allocated·with·the·<a·href="../alloc/struct.Global.html"·title="struct·alloc::alloc::Global"><code>Global</code></a>·allocator,·given·that·the39 raw·pointer·allocated·with·the·<a·href="../alloc/struct.Global.html"·title="struct·alloc::alloc::Global"><code>Global</code></a>·allocator,·given·that·the
40 <a·href="../alloc/struct.Layout.html"·title="struct·alloc::alloc::Layout"><code>Layout</code></a>·used·with·the·allocator·is·correct·for·the·type.·More·precisely,40 <a·href="../alloc/struct.Layout.html"·title="struct·alloc::alloc::Layout"><code>Layout</code></a>·used·with·the·allocator·is·correct·for·the·type.·More·precisely,
41 a·<code>value:·*mut·T</code>·that·has·been·allocated·with·the·<a·href="../alloc/struct.Global.html"·title="struct·alloc::alloc::Global"><code>Global</code></a>·allocator41 a·<code>value:·*mut·T</code>·that·has·been·allocated·with·the·<a·href="../alloc/struct.Global.html"·title="struct·alloc::alloc::Global"><code>Global</code></a>·allocator
42 with·<code>Layout::for_value(&amp;*value)</code>·may·be·converted·into·a·box·using42 with·<code>Layout::for_value(&amp;*value)</code>·may·be·converted·into·a·box·using
43 <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>·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·the43 <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>·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
44 <a·href="../alloc/struct.Global.html"·title="struct·alloc::alloc::Global"><code>Global</code></a>·allocator·with·<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 <a·href="../alloc/struct.Global.html"·title="struct·alloc::alloc::Global"><code>Global</code></a>·allocator·with·<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>
45 <p>For·zero-sized·values,·the·<code>Box</code>·pointer·still·has·to·be·<a·href="../../core/ptr/index.html#safety"·title="mod·core::ptr">valid</a>·for·reads45 <p>For·zero-sized·values,·the·<code>Box</code>·pointer·still·has·to·be·<a·href="https://doc.rust-lang.org/1.78.0/core/ptr/index.html#safety"·title="mod·core::ptr">valid</a>·for·reads
46 and·writes·and·sufficiently·aligned.·In·particular,·casting·any·aligned46 and·writes·and·sufficiently·aligned.·In·particular,·casting·any·aligned
47 non-zero·integer·literal·to·a·raw·pointer·produces·a·valid·pointer,·but·a47 non-zero·integer·literal·to·a·raw·pointer·produces·a·valid·pointer,·but·a
48 pointer·pointing·into·previously·allocated·memory·that·since·got·freed·is48 pointer·pointing·into·previously·allocated·memory·that·since·got·freed·is
49 not·valid.·The·recommended·way·to·build·a·Box·to·a·ZST·if·<code>Box::new</code>·cannot49 not·valid.·The·recommended·way·to·build·a·Box·to·a·ZST·if·<code>Box::new</code>·cannot
50 be·used·is·to·use·<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>50 be·used·is·to·use·<a·href="https://doc.rust-lang.org/1.78.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>
51 <p>So·long·as·<code>T:·Sized</code>,·a·<code>Box&lt;T&gt;</code>·is·guaranteed·to·be·represented51 <p>So·long·as·<code>T:·Sized</code>,·a·<code>Box&lt;T&gt;</code>·is·guaranteed·to·be·represented
52 as·a·single·pointer·and·is·also·ABI-compatible·with·C·pointers52 as·a·single·pointer·and·is·also·ABI-compatible·with·C·pointers
53 (i.e.·the·C·type·<code>T*</code>).·This·means·that·if·you·have·extern·“C”53 (i.e.·the·C·type·<code>T*</code>).·This·means·that·if·you·have·extern·“C”
54 Rust·functions·that·will·be·called·from·C,·you·can·define·those54 Rust·functions·that·will·be·called·from·C,·you·can·define·those
55 Rust·functions·using·<code>Box&lt;T&gt;</code>·types,·and·use·<code>T*</code>·as·corresponding55 Rust·functions·using·<code>Box&lt;T&gt;</code>·types,·and·use·<code>T*</code>·as·corresponding
56 type·on·the·C·side.·As·an·example,·consider·this·C·header·which56 type·on·the·C·side.·As·an·example,·consider·this·C·header·which
57 declares·functions·that·create·and·destroy·some·kind·of·<code>Foo</code>57 declares·functions·that·create·and·destroy·some·kind·of·<code>Foo</code>
796 KB
./usr/share/doc/rust-web-doc/html/alloc/boxed/struct.Box.html
    
Offset 1, 70 lines modifiedOffset 1, 70 lines modified
1 <!DOCTYPE·html><html·lang="en"><head><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·pointer·type·that·uniquely·owns·a·heap·allocation·of·type·`T`."><title>Box·in·alloc::boxed·-·Rust</title><script>·if·(window.location.protocol·!==·"file:")·document.write(`<link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/SourceSerif4-Regular-46f98efaafac5295.ttf.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/FiraSans-Regular-018c141bf0843ffd.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/FiraSans-Medium-8f9a781e4970d388.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/SourceCodePro-Regular-562dcc5011b6de7d.ttf.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/SourceCodePro-Semibold-d899c5a5c4aeb14a.ttf.woff2">`)</script><link·rel="stylesheet"·href="../../static.files/normalize-76eba96aa4d2e634.css"><link·rel="stylesheet"·href="../../static.files/rustdoc-35f9e32502181f1e.css"><meta·name="rustdoc-vars"·data-root-path="../../"·data-static-root-path="../../static.files/"·data-current-crate="alloc"·data-themes=""·data-resource-suffix="1.78.0"·data-rustdoc-version="1.78.0"·data-channel="1.78.0"·data-search-js="search-42d8da7a6b9792c2.js"·data-settings-js="settings-4313503d2e1961c2.js"·><script·src="../../static.files/storage-4c98445ec4002617.js"></script><script·defer·src="sidebar-items1.78.0.js"></script><script·defer·src="../../static.files/main-12cf3b4f4f9dc36d.js"></script><noscript><link·rel="stylesheet"·href="../../static.files/noscript-04d5337699b92874.css"></noscript><link·rel="alternate·icon"·type="image/png"·href="../../static.files/favicon-16x16-8b506e7a72182f1c.png"><link·rel="alternate·icon"·type="image/png"·href="../../static.files/favicon-32x32-422f7d1d52889060.png"><link·rel="icon"·type="image/svg+xml"·href="../../static.files/favicon-2c020d218678b618.svg"></head><body·class="rustdoc·struct"><!--[if·lte·IE·11]><div·class="warning">This·old·browser·is·unsupported·and·will·most·likely·display·funky·things.</div><![endif]--><nav·class="mobile-topbar"><button·class="sidebar-menu-toggle"·title="show·sidebar"></button><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-151179464ae7ed46.svg"·alt=""></a></nav><nav·class="sidebar"><div·class="sidebar-crate"><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-151179464ae7ed46.svg"·alt="logo"></a><h2><a·href="../../alloc/index.html">alloc</a><span·class="version">1.78.0</span></h2></div><h2·class="location"><a·href="#">Box</a></h2><div·class="sidebar-elems"><section><h3><a·href="#implementations">Methods</a></h3><ul·class="block·method"><li><a·href="#method.allocator">allocator</a></li><li><a·href="#method.assume_init">assume_init</a></li><li><a·href="#method.assume_init-1">assume_init</a></li><li><a·href="#method.downcast">downcast</a></li><li><a·href="#method.downcast-1">downcast</a></li><li><a·href="#method.downcast-2">downcast</a></li><li><a·href="#method.downcast_unchecked">downcast_unchecked</a></li><li><a·href="#method.downcast_unchecked-1">downcast_unchecked</a></li><li><a·href="#method.downcast_unchecked-2">downcast_unchecked</a></li><li><a·href="#method.from_raw">from_raw</a></li><li><a·href="#method.from_raw_in">from_raw_in</a></li><li><a·href="#method.into_boxed_slice">into_boxed_slice</a></li><li><a·href="#method.into_inner">into_inner</a></li><li><a·href="#method.into_pin">into_pin</a></li><li><a·href="#method.into_raw">into_raw</a></li><li><a·href="#method.into_raw_with_allocator">into_raw_with_allocator</a></li><li><a·href="#method.leak">leak</a></li><li><a·href="#method.new">new</a></li><li><a·href="#method.new_in">new_in</a></li><li><a·href="#method.new_uninit">new_uninit</a></li><li><a·href="#method.new_uninit_in">new_uninit_in</a></li><li><a·href="#method.new_uninit_slice">new_uninit_slice</a></li><li><a·href="#method.new_uninit_slice_in">new_uninit_slice_in</a></li><li><a·href="#method.new_zeroed">new_zeroed</a></li><li><a·href="#method.new_zeroed_in">new_zeroed_in</a></li><li><a·href="#method.new_zeroed_slice">new_zeroed_slice</a></li><li><a·href="#method.new_zeroed_slice_in">new_zeroed_slice_in</a></li><li><a·href="#method.pin">pin</a></li><li><a·href="#method.pin_in">pin_in</a></li><li><a·href="#method.try_new">try_new</a></li><li><a·href="#method.try_new_in">try_new_in</a></li><li><a·href="#method.try_new_uninit">try_new_uninit</a></li><li><a·href="#method.try_new_uninit_in">try_new_uninit_in</a></li><li><a·href="#method.try_new_uninit_slice">try_new_uninit_slice</a></li><li><a·href="#method.try_new_zeroed">try_new_zeroed</a></li><li><a·href="#method.try_new_zeroed_in">try_new_zeroed_in</a></li><li><a·href="#method.try_new_zeroed_slice">try_new_zeroed_slice</a></li><li><a·href="#method.write">write</a></li></ul><h3><a·href="#trait-implementations">Trait·Implementations</a></h3><ul·class="block·trait-implementation"><li><a·href="#impl-AsMut%3CT%3E-for-Box%3CT,+A%3E">AsMut&lt;T&gt;</a></li><li><a·href="#impl-AsRef%3CT%3E-for-Box%3CT,+A%3E">AsRef&lt;T&gt;</a></li><li><a·href="#impl-AsyncFn%3CArgs%3E-for-Box%3CF,+A%3E">AsyncFn&lt;Args&gt;</a></li><li><a·href="#impl-AsyncFnMut%3CArgs%3E-for-Box%3CF,+A%3E">AsyncFnMut&lt;Args&gt;</a></li><li><a·href="#impl-AsyncFnOnce%3CArgs%3E-for-Box%3CF,+A%3E">AsyncFnOnce&lt;Args&gt;</a></li><li><a·href="#impl-AsyncIterator-for-Box%3CS%3E">AsyncIterator</a></li><li><a·href="#impl-Borrow%3CT%3E-for-Box%3CT,+A%3E">Borrow&lt;T&gt;</a></li><li><a·href="#impl-BorrowMut%3CT%3E-for-Box%3CT,+A%3E">BorrowMut&lt;T&gt;</a></li><li><a·href="#impl-Clone-for-Box%3C%5BT%5D,+A%3E">Clone</a></li><li><a·href="#impl-Clone-for-Box%3CCStr%3E">Clone</a></li><li><a·href="#impl-Clone-for-Box%3CT,+A%3E">Clone</a></li><li><a·href="#impl-Clone-for-Box%3Cstr%3E">Clone</a></li><li><a·href="#impl-CoerceUnsized%3CBox%3CU,+A%3E%3E-for-Box%3CT,+A%3E">CoerceUnsized&lt;Box&lt;U,·A&gt;&gt;</a></li><li><a·href="#impl-Coroutine%3CR%3E-for-Box%3CG,+A%3E">Coroutine&lt;R&gt;</a></li><li><a·href="#impl-Coroutine%3CR%3E-for-Pin%3CBox%3CG,+A%3E%3E">Coroutine&lt;R&gt;</a></li><li><a·href="#impl-Debug-for-Box%3CT,+A%3E">Debug</a></li><li><a·href="#impl-Default-for-Box%3C%5BT%5D%3E">Default</a></li><li><a·href="#impl-Default-for-Box%3CCStr%3E">Default</a></li><li><a·href="#impl-Default-for-Box%3CT%3E">Default</a></li><li><a·href="#impl-Default-for-Box%3Cstr%3E">Default</a></li><li><a·href="#impl-Deref-for-Box%3CT,+A%3E">Deref</a></li><li><a·href="#impl-DerefMut-for-Box%3CT,+A%3E">DerefMut</a></li><li><a·href="#impl-DispatchFromDyn%3CBox%3CU%3E%3E-for-Box%3CT%3E">DispatchFromDyn&lt;Box&lt;U&gt;&gt;</a></li><li><a·href="#impl-Display-for-Box%3CT,+A%3E">Display</a></li><li><a·href="#impl-DoubleEndedIterator-for-Box%3CI,+A%3E">DoubleEndedIterator</a></li><li><a·href="#impl-Drop-for-Box%3CT,+A%3E">Drop</a></li><li><a·href="#impl-Eq-for-Box%3CT,+A%3E">Eq</a></li><li><a·href="#impl-Error-for-Box%3CT%3E">Error</a></li><li><a·href="#impl-ExactSizeIterator-for-Box%3CI,+A%3E">ExactSizeIterator</a></li><li><a·href="#impl-Extend%3CBox%3Cstr%3E%3E-for-String">Extend&lt;Box&lt;str&gt;&gt;</a></li><li><a·href="#impl-Fn%3CArgs%3E-for-Box%3CF,+A%3E">Fn&lt;Args&gt;</a></li><li><a·href="#impl-FnMut%3CArgs%3E-for-Box%3CF,+A%3E">FnMut&lt;Args&gt;</a></li><li><a·href="#impl-FnOnce%3CArgs%3E-for-Box%3CF,+A%3E">FnOnce&lt;Args&gt;</a></li><li><a·href="#impl-From%3C%26CStr%3E-for-Box%3CCStr%3E">From&lt;&amp;CStr&gt;</a></li><li><a·href="#impl-From%3C%26%5BT%5D%3E-for-Box%3C%5BT%5D%3E">From&lt;&amp;[T]&gt;</a></li><li><a·href="#impl-From%3C%26str%3E-for-Box%3Cdyn+Error%3E">From&lt;&amp;str&gt;</a></li><li><a·href="#impl-From%3C%26str%3E-for-Box%3Cdyn+Error+%2B+Send+%2B+Sync%3E">From&lt;&amp;str&gt;</a></li><li><a·href="#impl-From%3C%26str%3E-for-Box%3Cstr%3E">From&lt;&amp;str&gt;</a></li><li><a·href="#impl-From%3CBox%3CCStr%3E%3E-for-CString">From&lt;Box&lt;CStr&gt;&gt;</a></li><li><a·href="#impl-From%3CBox%3CT,+A%3E%3E-for-Arc%3CT,+A%3E">From&lt;Box&lt;T,·A&gt;&gt;</a></li><li><a·href="#impl-From%3CBox%3CT,+A%3E%3E-for-Pin%3CBox%3CT,+A%3E%3E">From&lt;Box&lt;T,·A&gt;&gt;</a></li><li><a·href="#impl-From%3CBox%3CT,+A%3E%3E-for-Rc%3CT,+A%3E">From&lt;Box&lt;T,·A&gt;&gt;</a></li><li><a·href="#impl-From%3CBox%3C%5BT%5D,+A%3E%3E-for-Vec%3CT,+A%3E">From&lt;Box&lt;[T],·A&gt;&gt;</a></li><li><a·href="#impl-From%3CBox%3Cstr,+A%3E%3E-for-Box%3C%5Bu8%5D,+A%3E">From&lt;Box&lt;str,·A&gt;&gt;</a></li><li><a·href="#impl-From%3CBox%3Cstr%3E%3E-for-String">From&lt;Box&lt;str&gt;&gt;</a></li><li><a·href="#impl-From%3CCString%3E-for-Box%3CCStr%3E">From&lt;CString&gt;</a></li><li><a·href="#impl-From%3CCow%3C'_,+CStr%3E%3E-for-Box%3CCStr%3E">From&lt;Cow&lt;&#x27;_,·CStr&gt;&gt;</a></li><li><a·href="#impl-From%3CCow%3C'_,+%5BT%5D%3E%3E-for-Box%3C%5BT%5D%3E">From&lt;Cow&lt;&#x27;_,·[T]&gt;&gt;</a></li><li><a·href="#impl-From%3CCow%3C'_,+str%3E%3E-for-Box%3Cstr%3E">From&lt;Cow&lt;&#x27;_,·str&gt;&gt;</a></li><li><a·href="#impl-From%3CCow%3C'b,+str%3E%3E-for-Box%3Cdyn+Error%3E">From&lt;Cow&lt;&#x27;b,·str&gt;&gt;</a></li><li><a·href="#impl-From%3CCow%3C'b,+str%3E%3E-for-Box%3Cdyn+Error+%2B+Send+%2B+Sync%3E">From&lt;Cow&lt;&#x27;b,·str&gt;&gt;</a></li><li><a·href="#impl-From%3CE%3E-for-Box%3Cdyn+Error%3E">From&lt;E&gt;</a></li><li><a·href="#impl-From%3CE%3E-for-Box%3Cdyn+Error+%2B+Send+%2B+Sync%3E">From&lt;E&gt;</a></li><li><a·href="#impl-From%3CString%3E-for-Box%3Cdyn+Error%3E">From&lt;String&gt;</a></li><li><a·href="#impl-From%3CString%3E-for-Box%3Cdyn+Error+%2B+Send+%2B+Sync%3E">From&lt;String&gt;</a></li><li><a·href="#impl-From%3CString%3E-for-Box%3Cstr%3E">From&lt;String&gt;</a></li><li><a·href="#impl-From%3CT%3E-for-Box%3CT%3E">From&lt;T&gt;</a></li><li><a·href="#impl-From%3CVec%3CT,+A%3E%3E-for-Box%3C%5BT%5D,+A%3E">From&lt;Vec&lt;T,·A&gt;&gt;</a></li><li><a·href="#impl-From%3C%5BT;+N%5D%3E-for-Box%3C%5BT%5D%3E">From&lt;[T;·N]&gt;</a></li><li><a·href="#impl-FromIterator%3CBox%3Cstr%3E%3E-for-String">FromIterator&lt;Box&lt;str&gt;&gt;</a></li><li><a·href="#impl-FromIterator%3CI%3E-for-Box%3C%5BI%5D%3E">FromIterator&lt;I&gt;</a></li><li><a·href="#impl-FusedIterator-for-Box%3CI,+A%3E">FusedIterator</a></li><li><a·href="#impl-Future-for-Box%3CF,+A%3E">Future</a></li><li><a·href="#impl-Hash-for-Box%3CT,+A%3E">Hash</a></li><li><a·href="#impl-Hasher-for-Box%3CT,+A%3E">Hasher</a></li><li><a·href="#impl-Iterator-for-Box%3CI,+A%3E">Iterator</a></li><li><a·href="#impl-Ord-for-Box%3CT,+A%3E">Ord</a></li><li><a·href="#impl-PartialEq-for-Box%3CT,+A%3E">PartialEq</a></li><li><a·href="#impl-PartialOrd-for-Box%3CT,+A%3E">PartialOrd</a></li><li><a·href="#impl-Pointer-for-Box%3CT,+A%3E">Pointer</a></li><li><a·href="#impl-TryFrom%3CBox%3C%5BT%5D%3E%3E-for-Box%3C%5BT;+N%5D%3E">TryFrom&lt;Box&lt;[T]&gt;&gt;</a></li><li><a·href="#impl-TryFrom%3CVec%3CT%3E%3E-for-Box%3C%5BT;+N%5D%3E">TryFrom&lt;Vec&lt;T&gt;&gt;</a></li><li><a·href="#impl-Unpin-for-Box%3CT,+A%3E">Unpin</a></li></ul><h3><a·href="#synthetic-implementations">Auto·Trait·Implementations</a></h3><ul·class="block·synthetic-implementation"><li><a·href="#impl-Freeze-for-Box%3CT,+A%3E">Freeze</a></li><li><a·href="#impl-RefUnwindSafe-for-Box%3CT,+A%3E">RefUnwindSafe</a></li><li><a·href="#impl-Send-for-Box%3CT,+A%3E">Send</a></li><li><a·href="#impl-Sync-for-Box%3CT,+A%3E">Sync</a></li><li><a·href="#impl-UnwindSafe-for-Box%3CT,+A%3E">UnwindSafe</a></li></ul><h3><a·href="#blanket-implementations">Blanket·Implementations</a></h3><ul·class="block·blanket-implementation"><li><a·href="#impl-Any-for-T">Any</a></li><li><a·href="#impl-Borrow%3CT%3E-for-T">Borrow&lt;T&gt;</a></li><li><a·href="#impl-BorrowMut%3CT%3E-for-T">BorrowMut&lt;T&gt;</a></li><li><a·href="#impl-From%3C!%3E-for-T">From&lt;!&gt;</a></li><li><a·href="#impl-From%3CT%3E-for-T">From&lt;T&gt;</a></li><li><a·href="#impl-Into%3CU%3E-for-T">Into&lt;U&gt;</a></li><li><a·href="#impl-IntoAsyncIterator-for-I">IntoAsyncIterator</a></li><li><a·href="#impl-IntoFuture-for-F">IntoFuture</a></li><li><a·href="#impl-IntoIterator-for-I">IntoIterator</a></li><li><a·href="#impl-Pattern%3C'a%3E-for-F">Pattern&lt;&#x27;a&gt;</a></li><li><a·href="#impl-ToOwned-for-T">ToOwned</a></li><li><a·href="#impl-ToString-for-T">ToString</a></li><li><a·href="#impl-TryFrom%3CU%3E-for-T">TryFrom&lt;U&gt;</a></li><li><a·href="#impl-TryInto%3CU%3E-for-T">TryInto&lt;U&gt;</a></li></ul></section><h2><a·href="index.html">In·alloc::boxed</a></h2></div></nav><div·class="sidebar-resizer"></div>1 <!DOCTYPE·html><html·lang="en"><head><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·pointer·type·that·uniquely·owns·a·heap·allocation·of·type·`T`."><title>Box·in·alloc::boxed·-·Rust</title><script>·if·(window.location.protocol·!==·"file:")·document.write(`<link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/SourceSerif4-Regular-46f98efaafac5295.ttf.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/FiraSans-Regular-018c141bf0843ffd.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/FiraSans-Medium-8f9a781e4970d388.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/SourceCodePro-Regular-562dcc5011b6de7d.ttf.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/SourceCodePro-Semibold-d899c5a5c4aeb14a.ttf.woff2">`)</script><link·rel="stylesheet"·href="../../static.files/normalize-76eba96aa4d2e634.css"><link·rel="stylesheet"·href="../../static.files/rustdoc-35f9e32502181f1e.css"><meta·name="rustdoc-vars"·data-root-path="../../"·data-static-root-path="../../static.files/"·data-current-crate="alloc"·data-themes=""·data-resource-suffix="1.78.0"·data-rustdoc-version="1.78.0"·data-channel="1.78.0"·data-search-js="search-42d8da7a6b9792c2.js"·data-settings-js="settings-4313503d2e1961c2.js"·><script·src="../../static.files/storage-4c98445ec4002617.js"></script><script·defer·src="sidebar-items1.78.0.js"></script><script·defer·src="../../static.files/main-12cf3b4f4f9dc36d.js"></script><noscript><link·rel="stylesheet"·href="../../static.files/noscript-04d5337699b92874.css"></noscript><link·rel="alternate·icon"·type="image/png"·href="../../static.files/favicon-16x16-8b506e7a72182f1c.png"><link·rel="alternate·icon"·type="image/png"·href="../../static.files/favicon-32x32-422f7d1d52889060.png"><link·rel="icon"·type="image/svg+xml"·href="../../static.files/favicon-2c020d218678b618.svg"></head><body·class="rustdoc·struct"><!--[if·lte·IE·11]><div·class="warning">This·old·browser·is·unsupported·and·will·most·likely·display·funky·things.</div><![endif]--><nav·class="mobile-topbar"><button·class="sidebar-menu-toggle"·title="show·sidebar"></button><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-151179464ae7ed46.svg"·alt=""></a></nav><nav·class="sidebar"><div·class="sidebar-crate"><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-151179464ae7ed46.svg"·alt="logo"></a><h2><a·href="../../alloc/index.html">alloc</a><span·class="version">1.78.0</span></h2></div><h2·class="location"><a·href="#">Box</a></h2><div·class="sidebar-elems"><section><h3><a·href="#implementations">Methods</a></h3><ul·class="block·method"><li><a·href="#method.allocator">allocator</a></li><li><a·href="#method.assume_init">assume_init</a></li><li><a·href="#method.assume_init-1">assume_init</a></li><li><a·href="#method.downcast">downcast</a></li><li><a·href="#method.downcast-1">downcast</a></li><li><a·href="#method.downcast-2">downcast</a></li><li><a·href="#method.downcast_unchecked">downcast_unchecked</a></li><li><a·href="#method.downcast_unchecked-1">downcast_unchecked</a></li><li><a·href="#method.downcast_unchecked-2">downcast_unchecked</a></li><li><a·href="#method.from_raw">from_raw</a></li><li><a·href="#method.from_raw_in">from_raw_in</a></li><li><a·href="#method.into_boxed_slice">into_boxed_slice</a></li><li><a·href="#method.into_inner">into_inner</a></li><li><a·href="#method.into_pin">into_pin</a></li><li><a·href="#method.into_raw">into_raw</a></li><li><a·href="#method.into_raw_with_allocator">into_raw_with_allocator</a></li><li><a·href="#method.leak">leak</a></li><li><a·href="#method.new">new</a></li><li><a·href="#method.new_in">new_in</a></li><li><a·href="#method.new_uninit">new_uninit</a></li><li><a·href="#method.new_uninit_in">new_uninit_in</a></li><li><a·href="#method.new_uninit_slice">new_uninit_slice</a></li><li><a·href="#method.new_uninit_slice_in">new_uninit_slice_in</a></li><li><a·href="#method.new_zeroed">new_zeroed</a></li><li><a·href="#method.new_zeroed_in">new_zeroed_in</a></li><li><a·href="#method.new_zeroed_slice">new_zeroed_slice</a></li><li><a·href="#method.new_zeroed_slice_in">new_zeroed_slice_in</a></li><li><a·href="#method.pin">pin</a></li><li><a·href="#method.pin_in">pin_in</a></li><li><a·href="#method.try_new">try_new</a></li><li><a·href="#method.try_new_in">try_new_in</a></li><li><a·href="#method.try_new_uninit">try_new_uninit</a></li><li><a·href="#method.try_new_uninit_in">try_new_uninit_in</a></li><li><a·href="#method.try_new_uninit_slice">try_new_uninit_slice</a></li><li><a·href="#method.try_new_zeroed">try_new_zeroed</a></li><li><a·href="#method.try_new_zeroed_in">try_new_zeroed_in</a></li><li><a·href="#method.try_new_zeroed_slice">try_new_zeroed_slice</a></li><li><a·href="#method.write">write</a></li></ul><h3><a·href="#trait-implementations">Trait·Implementations</a></h3><ul·class="block·trait-implementation"><li><a·href="#impl-AsMut%3CT%3E-for-Box%3CT,+A%3E">AsMut&lt;T&gt;</a></li><li><a·href="#impl-AsRef%3CT%3E-for-Box%3CT,+A%3E">AsRef&lt;T&gt;</a></li><li><a·href="#impl-AsyncFn%3CArgs%3E-for-Box%3CF,+A%3E">AsyncFn&lt;Args&gt;</a></li><li><a·href="#impl-AsyncFnMut%3CArgs%3E-for-Box%3CF,+A%3E">AsyncFnMut&lt;Args&gt;</a></li><li><a·href="#impl-AsyncFnOnce%3CArgs%3E-for-Box%3CF,+A%3E">AsyncFnOnce&lt;Args&gt;</a></li><li><a·href="#impl-AsyncIterator-for-Box%3CS%3E">AsyncIterator</a></li><li><a·href="#impl-Borrow%3CT%3E-for-Box%3CT,+A%3E">Borrow&lt;T&gt;</a></li><li><a·href="#impl-BorrowMut%3CT%3E-for-Box%3CT,+A%3E">BorrowMut&lt;T&gt;</a></li><li><a·href="#impl-Clone-for-Box%3C%5BT%5D,+A%3E">Clone</a></li><li><a·href="#impl-Clone-for-Box%3CCStr%3E">Clone</a></li><li><a·href="#impl-Clone-for-Box%3CT,+A%3E">Clone</a></li><li><a·href="#impl-Clone-for-Box%3Cstr%3E">Clone</a></li><li><a·href="#impl-CoerceUnsized%3CBox%3CU,+A%3E%3E-for-Box%3CT,+A%3E">CoerceUnsized&lt;Box&lt;U,·A&gt;&gt;</a></li><li><a·href="#impl-Coroutine%3CR%3E-for-Box%3CG,+A%3E">Coroutine&lt;R&gt;</a></li><li><a·href="#impl-Coroutine%3CR%3E-for-Pin%3CBox%3CG,+A%3E%3E">Coroutine&lt;R&gt;</a></li><li><a·href="#impl-Debug-for-Box%3CT,+A%3E">Debug</a></li><li><a·href="#impl-Default-for-Box%3C%5BT%5D%3E">Default</a></li><li><a·href="#impl-Default-for-Box%3CCStr%3E">Default</a></li><li><a·href="#impl-Default-for-Box%3CT%3E">Default</a></li><li><a·href="#impl-Default-for-Box%3Cstr%3E">Default</a></li><li><a·href="#impl-Deref-for-Box%3CT,+A%3E">Deref</a></li><li><a·href="#impl-DerefMut-for-Box%3CT,+A%3E">DerefMut</a></li><li><a·href="#impl-DispatchFromDyn%3CBox%3CU%3E%3E-for-Box%3CT%3E">DispatchFromDyn&lt;Box&lt;U&gt;&gt;</a></li><li><a·href="#impl-Display-for-Box%3CT,+A%3E">Display</a></li><li><a·href="#impl-DoubleEndedIterator-for-Box%3CI,+A%3E">DoubleEndedIterator</a></li><li><a·href="#impl-Drop-for-Box%3CT,+A%3E">Drop</a></li><li><a·href="#impl-Eq-for-Box%3CT,+A%3E">Eq</a></li><li><a·href="#impl-Error-for-Box%3CT%3E">Error</a></li><li><a·href="#impl-ExactSizeIterator-for-Box%3CI,+A%3E">ExactSizeIterator</a></li><li><a·href="#impl-Extend%3CBox%3Cstr%3E%3E-for-String">Extend&lt;Box&lt;str&gt;&gt;</a></li><li><a·href="#impl-Fn%3CArgs%3E-for-Box%3CF,+A%3E">Fn&lt;Args&gt;</a></li><li><a·href="#impl-FnMut%3CArgs%3E-for-Box%3CF,+A%3E">FnMut&lt;Args&gt;</a></li><li><a·href="#impl-FnOnce%3CArgs%3E-for-Box%3CF,+A%3E">FnOnce&lt;Args&gt;</a></li><li><a·href="#impl-From%3C%26CStr%3E-for-Box%3CCStr%3E">From&lt;&amp;CStr&gt;</a></li><li><a·href="#impl-From%3C%26%5BT%5D%3E-for-Box%3C%5BT%5D%3E">From&lt;&amp;[T]&gt;</a></li><li><a·href="#impl-From%3C%26str%3E-for-Box%3Cdyn+Error%3E">From&lt;&amp;str&gt;</a></li><li><a·href="#impl-From%3C%26str%3E-for-Box%3Cdyn+Error+%2B+Send+%2B+Sync%3E">From&lt;&amp;str&gt;</a></li><li><a·href="#impl-From%3C%26str%3E-for-Box%3Cstr%3E">From&lt;&amp;str&gt;</a></li><li><a·href="#impl-From%3CBox%3CCStr%3E%3E-for-CString">From&lt;Box&lt;CStr&gt;&gt;</a></li><li><a·href="#impl-From%3CBox%3CT,+A%3E%3E-for-Arc%3CT,+A%3E">From&lt;Box&lt;T,·A&gt;&gt;</a></li><li><a·href="#impl-From%3CBox%3CT,+A%3E%3E-for-Pin%3CBox%3CT,+A%3E%3E">From&lt;Box&lt;T,·A&gt;&gt;</a></li><li><a·href="#impl-From%3CBox%3CT,+A%3E%3E-for-Rc%3CT,+A%3E">From&lt;Box&lt;T,·A&gt;&gt;</a></li><li><a·href="#impl-From%3CBox%3C%5BT%5D,+A%3E%3E-for-Vec%3CT,+A%3E">From&lt;Box&lt;[T],·A&gt;&gt;</a></li><li><a·href="#impl-From%3CBox%3Cstr,+A%3E%3E-for-Box%3C%5Bu8%5D,+A%3E">From&lt;Box&lt;str,·A&gt;&gt;</a></li><li><a·href="#impl-From%3CBox%3Cstr%3E%3E-for-String">From&lt;Box&lt;str&gt;&gt;</a></li><li><a·href="#impl-From%3CCString%3E-for-Box%3CCStr%3E">From&lt;CString&gt;</a></li><li><a·href="#impl-From%3CCow%3C'_,+CStr%3E%3E-for-Box%3CCStr%3E">From&lt;Cow&lt;&#x27;_,·CStr&gt;&gt;</a></li><li><a·href="#impl-From%3CCow%3C'_,+%5BT%5D%3E%3E-for-Box%3C%5BT%5D%3E">From&lt;Cow&lt;&#x27;_,·[T]&gt;&gt;</a></li><li><a·href="#impl-From%3CCow%3C'_,+str%3E%3E-for-Box%3Cstr%3E">From&lt;Cow&lt;&#x27;_,·str&gt;&gt;</a></li><li><a·href="#impl-From%3CCow%3C'b,+str%3E%3E-for-Box%3Cdyn+Error%3E">From&lt;Cow&lt;&#x27;b,·str&gt;&gt;</a></li><li><a·href="#impl-From%3CCow%3C'b,+str%3E%3E-for-Box%3Cdyn+Error+%2B+Send+%2B+Sync%3E">From&lt;Cow&lt;&#x27;b,·str&gt;&gt;</a></li><li><a·href="#impl-From%3CE%3E-for-Box%3Cdyn+Error%3E">From&lt;E&gt;</a></li><li><a·href="#impl-From%3CE%3E-for-Box%3Cdyn+Error+%2B+Send+%2B+Sync%3E">From&lt;E&gt;</a></li><li><a·href="#impl-From%3CString%3E-for-Box%3Cdyn+Error%3E">From&lt;String&gt;</a></li><li><a·href="#impl-From%3CString%3E-for-Box%3Cdyn+Error+%2B+Send+%2B+Sync%3E">From&lt;String&gt;</a></li><li><a·href="#impl-From%3CString%3E-for-Box%3Cstr%3E">From&lt;String&gt;</a></li><li><a·href="#impl-From%3CT%3E-for-Box%3CT%3E">From&lt;T&gt;</a></li><li><a·href="#impl-From%3CVec%3CT,+A%3E%3E-for-Box%3C%5BT%5D,+A%3E">From&lt;Vec&lt;T,·A&gt;&gt;</a></li><li><a·href="#impl-From%3C%5BT;+N%5D%3E-for-Box%3C%5BT%5D%3E">From&lt;[T;·N]&gt;</a></li><li><a·href="#impl-FromIterator%3CBox%3Cstr%3E%3E-for-String">FromIterator&lt;Box&lt;str&gt;&gt;</a></li><li><a·href="#impl-FromIterator%3CI%3E-for-Box%3C%5BI%5D%3E">FromIterator&lt;I&gt;</a></li><li><a·href="#impl-FusedIterator-for-Box%3CI,+A%3E">FusedIterator</a></li><li><a·href="#impl-Future-for-Box%3CF,+A%3E">Future</a></li><li><a·href="#impl-Hash-for-Box%3CT,+A%3E">Hash</a></li><li><a·href="#impl-Hasher-for-Box%3CT,+A%3E">Hasher</a></li><li><a·href="#impl-Iterator-for-Box%3CI,+A%3E">Iterator</a></li><li><a·href="#impl-Ord-for-Box%3CT,+A%3E">Ord</a></li><li><a·href="#impl-PartialEq-for-Box%3CT,+A%3E">PartialEq</a></li><li><a·href="#impl-PartialOrd-for-Box%3CT,+A%3E">PartialOrd</a></li><li><a·href="#impl-Pointer-for-Box%3CT,+A%3E">Pointer</a></li><li><a·href="#impl-TryFrom%3CBox%3C%5BT%5D%3E%3E-for-Box%3C%5BT;+N%5D%3E">TryFrom&lt;Box&lt;[T]&gt;&gt;</a></li><li><a·href="#impl-TryFrom%3CVec%3CT%3E%3E-for-Box%3C%5BT;+N%5D%3E">TryFrom&lt;Vec&lt;T&gt;&gt;</a></li><li><a·href="#impl-Unpin-for-Box%3CT,+A%3E">Unpin</a></li></ul><h3><a·href="#synthetic-implementations">Auto·Trait·Implementations</a></h3><ul·class="block·synthetic-implementation"><li><a·href="#impl-Freeze-for-Box%3CT,+A%3E">Freeze</a></li><li><a·href="#impl-RefUnwindSafe-for-Box%3CT,+A%3E">RefUnwindSafe</a></li><li><a·href="#impl-Send-for-Box%3CT,+A%3E">Send</a></li><li><a·href="#impl-Sync-for-Box%3CT,+A%3E">Sync</a></li><li><a·href="#impl-UnwindSafe-for-Box%3CT,+A%3E">UnwindSafe</a></li></ul><h3><a·href="#blanket-implementations">Blanket·Implementations</a></h3><ul·class="block·blanket-implementation"><li><a·href="#impl-Any-for-T">Any</a></li><li><a·href="#impl-Borrow%3CT%3E-for-T">Borrow&lt;T&gt;</a></li><li><a·href="#impl-BorrowMut%3CT%3E-for-T">BorrowMut&lt;T&gt;</a></li><li><a·href="#impl-From%3C!%3E-for-T">From&lt;!&gt;</a></li><li><a·href="#impl-From%3CT%3E-for-T">From&lt;T&gt;</a></li><li><a·href="#impl-Into%3CU%3E-for-T">Into&lt;U&gt;</a></li><li><a·href="#impl-IntoAsyncIterator-for-I">IntoAsyncIterator</a></li><li><a·href="#impl-IntoFuture-for-F">IntoFuture</a></li><li><a·href="#impl-IntoIterator-for-I">IntoIterator</a></li><li><a·href="#impl-Pattern%3C'a%3E-for-F">Pattern&lt;&#x27;a&gt;</a></li><li><a·href="#impl-ToOwned-for-T">ToOwned</a></li><li><a·href="#impl-ToString-for-T">ToString</a></li><li><a·href="#impl-TryFrom%3CU%3E-for-T">TryFrom&lt;U&gt;</a></li><li><a·href="#impl-TryInto%3CU%3E-for-T">TryInto&lt;U&gt;</a></li></ul></section><h2><a·href="index.html">In·alloc::boxed</a></h2></div></nav><div·class="sidebar-resizer"></div>
2 ····<main><div·class="width-limiter"><nav·class="sub"><form·class="search-form"><span></span><div·id="sidebar-button"·tabindex="-1"><a·href="../../alloc/all.html"·title="show·sidebar"></a></div><input·class="search-input"·name="search"·aria-label="Run·search·in·the·documentation"·autocomplete="off"·spellcheck="false"·placeholder="Click·or·press·‘S’·to·search,·‘?’·for·more·options…"·type="search"><div·id="help-button"·tabindex="-1"><a·href="../../help.html"·title="help">?</a></div><div·id="settings-menu"·tabindex="-1"><a·href="../../settings.html"·title="settings"><img·width="22"·height="22"·alt="Change·settings"·src="../../static.files/wheel-7b819b6101059cd0.svg"></a></div></form></nav><section·id="main-content"·class="content"><div·class="main-heading"><h1>Struct·<a·href="../index.html">alloc</a>::<wbr><a·href="index.html">boxed</a>::<wbr><a·class="struct"·href="#">Box</a><button·id="copy-path"·title="Copy·item·path·to·clipboard"><img·src="../../static.files/clipboard-7571035ce49a181d.svg"·width="19"·height="18"·alt="Copy·item·path"></button></h1><span·class="out-of-band"><span·class="since"·title="Stable·since·Rust·version·1.0.0">1.0.0</span>···<a·class="src"·href="../../src/alloc/boxed.rs.html#197-200">source</a>···<button·id="toggle-all-docs"·title="collapse·all·docs">[<span>&#x2212;</span>]</button></span></div><pre·class="rust·item-decl"><code>pub·struct·Box&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·pointer·type·that·uniquely·owns·a·heap·allocation·of·type·<code>T</code>.</p>2 ····<main><div·class="width-limiter"><nav·class="sub"><form·class="search-form"><span></span><div·id="sidebar-button"·tabindex="-1"><a·href="../../alloc/all.html"·title="show·sidebar"></a></div><input·class="search-input"·name="search"·aria-label="Run·search·in·the·documentation"·autocomplete="off"·spellcheck="false"·placeholder="Click·or·press·‘S’·to·search,·‘?’·for·more·options…"·type="search"><div·id="help-button"·tabindex="-1"><a·href="../../help.html"·title="help">?</a></div><div·id="settings-menu"·tabindex="-1"><a·href="../../settings.html"·title="settings"><img·width="22"·height="22"·alt="Change·settings"·src="../../static.files/wheel-7b819b6101059cd0.svg"></a></div></form></nav><section·id="main-content"·class="content"><div·class="main-heading"><h1>Struct·<a·href="../index.html">alloc</a>::<wbr><a·href="index.html">boxed</a>::<wbr><a·class="struct"·href="#">Box</a><button·id="copy-path"·title="Copy·item·path·to·clipboard"><img·src="../../static.files/clipboard-7571035ce49a181d.svg"·width="19"·height="18"·alt="Copy·item·path"></button></h1><span·class="out-of-band"><span·class="since"·title="Stable·since·Rust·version·1.0.0">1.0.0</span>···<a·class="src"·href="../../src/alloc/boxed.rs.html#197-200">source</a>···<button·id="toggle-all-docs"·title="collapse·all·docs">[<span>&#x2212;</span>]</button></span></div><pre·class="rust·item-decl"><code>pub·struct·Box&lt;T:·?<a·class="trait"·href="https://doc.rust-lang.org/1.78.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·pointer·type·that·uniquely·owns·a·heap·allocation·of·type·<code>T</code>.</p>
3 <p>See·the·<a·href="../../std/boxed/index.html">module-level·documentation</a>·for·more.</p>3 <p>See·the·<a·href="../../std/boxed/index.html">module-level·documentation</a>·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-Box%3CT%3E"·class="impl"><a·class="src·rightside"·href="../../src/alloc/boxed.rs.html#202-360">source</a><a·href="#impl-Box%3CT%3E"·class="anchor">§</a><h3·class="code-header">impl&lt;T&gt;·<a·class="struct"·href="struct.Box.html"·title="struct·alloc::boxed::Box">Box</a>&lt;T&gt;</h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.new"·class="method"><a·class="src·rightside"·href="../../src/alloc/boxed.rs.html#217-220">source</a><h4·class="code-header">pub·fn·<a·href="#method.new"·class="fn">new</a>(x:·T)·-&gt;·Self</h4></section></summary><div·class="docblock"><p>Allocates·memory·on·the·heap·and·then·places·<code>x</code>·into·it.</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-Box%3CT%3E"·class="impl"><a·class="src·rightside"·href="../../src/alloc/boxed.rs.html#202-360">source</a><a·href="#impl-Box%3CT%3E"·class="anchor">§</a><h3·class="code-header">impl&lt;T&gt;·<a·class="struct"·href="struct.Box.html"·title="struct·alloc::boxed::Box">Box</a>&lt;T&gt;</h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.new"·class="method"><a·class="src·rightside"·href="../../src/alloc/boxed.rs.html#217-220">source</a><h4·class="code-header">pub·fn·<a·href="#method.new"·class="fn">new</a>(x:·T)·-&gt;·Self</h4></section></summary><div·class="docblock"><p>Allocates·memory·on·the·heap·and·then·places·<code>x</code>·into·it.</p>
5 <p>This·doesn’t·actually·allocate·if·<code>T</code>·is·zero-sized.</p>5 <p>This·doesn’t·actually·allocate·if·<code>T</code>·is·zero-sized.</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="kw">let·</span>five·=·Box::new(<span·class="number">5</span>);</code></pre><a·class="test-arrow"·target="_blank"·href="https://play.rust-lang.org/?code=%23!%5Ballow(unused)%5D%0Afn+main()+%7B%0A++++let+five+=+Box::new(5);%0A%7D&amp;edition=2021">Run</a></div>7 <div·class="example-wrap"><pre·class="rust·rust-example-rendered"><code><span·class="kw">let·</span>five·=·Box::new(<span·class="number">5</span>);</code></pre><a·class="test-arrow"·target="_blank"·href="https://play.rust-lang.org/?code=%23!%5Ballow(unused)%5D%0Afn+main()+%7B%0A++++let+five+=+Box::new(5);%0A%7D&amp;edition=2021">Run</a></div>
8 </div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.new_uninit"·class="method"><a·class="src·rightside"·href="../../src/alloc/boxed.rs.html#244-246">source</a><h4·class="code-header">pub·fn·<a·href="#method.new_uninit"·class="fn">new_uninit</a>()·-&gt;·<a·class="struct"·href="struct.Box.html"·title="struct·alloc::boxed::Box">Box</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_uninit</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/63291">#63291</a>)</span></div></span></summary><div·class="docblock"><p>Constructs·a·new·box·with·uninitialized·contents.</p>8 </div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.new_uninit"·class="method"><a·class="src·rightside"·href="../../src/alloc/boxed.rs.html#244-246">source</a><h4·class="code-header">pub·fn·<a·href="#method.new_uninit"·class="fn">new_uninit</a>()·-&gt;·<a·class="struct"·href="struct.Box.html"·title="struct·alloc::boxed::Box">Box</a>&lt;<a·class="union"·href="https://doc.rust-lang.org/1.78.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_uninit</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/63291">#63291</a>)</span></div></span></summary><div·class="docblock"><p>Constructs·a·new·box·with·uninitialized·contents.</p>
9 <h5·id="examples-1"><a·class="doc-anchor"·href="#examples-1">§</a>Examples</h5>9 <h5·id="examples-1"><a·class="doc-anchor"·href="#examples-1">§</a>Examples</h5>
10 <div·class="example-wrap"><pre·class="rust·rust-example-rendered"><code><span·class="attr">#![feature(new_uninit)]10 <div·class="example-wrap"><pre·class="rust·rust-example-rendered"><code><span·class="attr">#![feature(new_uninit)]
  
11 </span><span·class="kw">let·</span><span·class="kw-2">mut·</span>five·=·Box::&lt;u32&gt;::new_uninit();11 </span><span·class="kw">let·</span><span·class="kw-2">mut·</span>five·=·Box::&lt;u32&gt;::new_uninit();
  
12 <span·class="kw">let·</span>five·=·<span·class="kw">unsafe·</span>{12 <span·class="kw">let·</span>five·=·<span·class="kw">unsafe·</span>{
13 ····<span·class="comment">//·Deferred·initialization:13 ····<span·class="comment">//·Deferred·initialization:
14 ····</span>five.as_mut_ptr().write(<span·class="number">5</span>);14 ····</span>five.as_mut_ptr().write(<span·class="number">5</span>);
  
15 ····five.assume_init()15 ····five.assume_init()
16 };16 };
  
17 <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"·href="https://play.rust-lang.org/?code=%23!%5Ballow(unused)%5D%0A%23!%5Bfeature(new_uninit)%5D%0A%0Afn+main()+%7B%0A++++let+mut+five+=+Box::%3Cu32%3E::new_uninit();%0A++++%0A++++let+five+=+unsafe+%7B%0A++++++++//+Deferred+initialization:%0A++++++++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">Run</a></div>17 <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"·href="https://play.rust-lang.org/?code=%23!%5Ballow(unused)%5D%0A%23!%5Bfeature(new_uninit)%5D%0A%0Afn+main()+%7B%0A++++let+mut+five+=+Box::%3Cu32%3E::new_uninit();%0A++++%0A++++let+five+=+unsafe+%7B%0A++++++++//+Deferred+initialization:%0A++++++++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">Run</a></div>
18 </div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.new_zeroed"·class="method"><a·class="src·rightside"·href="../../src/alloc/boxed.rs.html#270-272">source</a><h4·class="code-header">pub·fn·<a·href="#method.new_zeroed"·class="fn">new_zeroed</a>()·-&gt;·<a·class="struct"·href="struct.Box.html"·title="struct·alloc::boxed::Box">Box</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_uninit</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/63291">#63291</a>)</span></div></span></summary><div·class="docblock"><p>Constructs·a·new·<code>Box</code>·with·uninitialized·contents,·with·the·memory18 </div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.new_zeroed"·class="method"><a·class="src·rightside"·href="../../src/alloc/boxed.rs.html#270-272">source</a><h4·class="code-header">pub·fn·<a·href="#method.new_zeroed"·class="fn">new_zeroed</a>()·-&gt;·<a·class="struct"·href="struct.Box.html"·title="struct·alloc::boxed::Box">Box</a>&lt;<a·class="union"·href="https://doc.rust-lang.org/1.78.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_uninit</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/63291">#63291</a>)</span></div></span></summary><div·class="docblock"><p>Constructs·a·new·<code>Box</code>·with·uninitialized·contents,·with·the·memory
19 being·filled·with·<code>0</code>·bytes.</p>19 being·filled·with·<code>0</code>·bytes.</p>
20 <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·usage20 <p>See·<a·href="https://doc.rust-lang.org/1.78.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
21 of·this·method.</p>21 of·this·method.</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="attr">#![feature(new_uninit)]23 <div·class="example-wrap"><pre·class="rust·rust-example-rendered"><code><span·class="attr">#![feature(new_uninit)]
  
24 </span><span·class="kw">let·</span>zero·=·Box::&lt;u32&gt;::new_zeroed();24 </span><span·class="kw">let·</span>zero·=·Box::&lt;u32&gt;::new_zeroed();
25 <span·class="kw">let·</span>zero·=·<span·class="kw">unsafe·</span>{·zero.assume_init()·};25 <span·class="kw">let·</span>zero·=·<span·class="kw">unsafe·</span>{·zero.assume_init()·};
  
26 <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"·href="https://play.rust-lang.org/?code=%23!%5Ballow(unused)%5D%0A%23!%5Bfeature(new_uninit)%5D%0A%0Afn+main()+%7B%0A++++let+zero+=+Box::%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">Run</a></div>26 <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"·href="https://play.rust-lang.org/?code=%23!%5Ballow(unused)%5D%0A%23!%5Bfeature(new_uninit)%5D%0A%0Afn+main()+%7B%0A++++let+zero+=+Box::%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">Run</a></div>
27 </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/boxed.rs.html#285-287">source</a></span><h4·class="code-header">pub·fn·<a·href="#method.pin"·class="fn">pin</a>(x:·T)·-&gt;·<a·class="struct"·href="../../core/pin/struct.Pin.html"·title="struct·core::pin::Pin">Pin</a>&lt;<a·class="struct"·href="struct.Box.html"·title="struct·alloc::boxed::Box">Box</a>&lt;T&gt;&gt;</h4></section></summary><div·class="docblock"><p>Constructs·a·new·<code>Pin&lt;Box&lt;T&[·...·truncated·by·diffoscope;·len:·67,·SHA:·116532a7b7bd0513ed0e1eeb80119f75caef8327e8b61c54ac211b67bd70302a·...·]/core/marker/trait.Unpin.html"·title="trait·core::marker::Unpin"><code>Unpin</code></a>,·then27 </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/boxed.rs.html#285-287">source</a></span><h4·class="code-header">pub·fn·<a·href="#method.pin"·class="fn">pin</a>(x:·T)·-&gt;·<a·class="struct"·href="https://doc.rust-lang.org/1.78.0/core/pin/struct.Pin.html"·title="struct·core::pin::Pin">Pin</a>&lt;<a·class="struct"·href="struct.Box.html"·title="struct·alloc::boxed::Box">Box</a>&lt;T&gt;&gt;</h4></section></summary><div·class="docblock"><p>Constructs·a[·...·truncated·by·diffoscope;·len:·121,·SHA:·8ce97988a4570e2d4cbdbc85077f921294f2518233fca10bd9ea505e583a9ef4·...·]/core/marker/trait.Unpin.html"·title="trait·core::marker::Unpin"><code>Unpin</code></a>,·then
28 <code>x</code>·will·be·pinned·in·memory·and·unable·to·be·moved.</p>28 <code>x</code>·will·be·pinned·in·memory·and·unable·to·be·moved.</p>
29 <p>Constructing·and·pinning·of·the·<code>Box</code>·can·also·be·done·in·two·steps:·<code>Box::pin(x)</code>29 <p>Constructing·and·pinning·of·the·<code>Box</code>·can·also·be·done·in·two·steps:·<code>Box::pin(x)</code>
30 does·the·same·as·<code><a·href="struct.Box.html#method.into_pin"·title="associated·function·alloc::boxed::Box::into_pin">Box::into_pin</a>(<a·href="struct.Box.html#method.new"·title="associated·function·alloc::boxed::Box::new">Box::new</a>(x))</code>.·Consider·using30 does·the·same·as·<code><a·href="struct.Box.html#method.into_pin"·title="associated·function·alloc::boxed::Box::into_pin">Box::into_pin</a>(<a·href="struct.Box.html#method.new"·title="associated·function·alloc::boxed::Box::new">Box::new</a>(x))</code>.·Consider·using
31 <a·href="struct.Box.html#method.into_pin"·title="associated·function·alloc::boxed::Box::into_pin"><code>into_pin</code></a>·if·you·already·have·a·<code>Box&lt;T&gt;</code>,·or·if·you·want·to31 <a·href="struct.Box.html#method.into_pin"·title="associated·function·alloc::boxed::Box::into_pin"><code>into_pin</code></a>·if·you·already·have·a·<code>Box&lt;T&gt;</code>,·or·if·you·want·to
32 construct·a·(pinned)·<code>Box</code>·in·a·different·way·than·with·<a·href="struct.Box.html#method.new"·title="associated·function·alloc::boxed::Box::new"><code>Box::new</code></a>.</p>32 construct·a·(pinned)·<code>Box</code>·in·a·different·way·than·with·<a·href="struct.Box.html#method.new"·title="associated·function·alloc::boxed::Box::new"><code>Box::new</code></a>.</p>
33 </div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.try_new"·class="method"><a·class="src·rightside"·href="../../src/alloc/boxed.rs.html#304-306">source</a><h4·class="code-header">pub·fn·<a·href="#method.try_new"·class="fn">try_new</a>(x:·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="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>Allocates·memory·on·the·heap·then·places·<code>x</code>·into·it,33 </div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.try_new"·class="method"><a·class="src·rightside"·href="../../src/alloc/boxed.rs.html#304-306">source</a><h4·class="code-header">pub·fn·<a·href="#method.try_new"·class="fn">try_new</a>(x:·T)·-&gt;·<a·class="enum"·href="https://doc.rust-lang.org/1.78.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·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>Allocates·memory·on·the·heap·then·places·<code>x</code>·into·it,
34 returning·an·error·if·the·allocation·fails</p>34 returning·an·error·if·the·allocation·fails</p>
35 <p>This·doesn’t·actually·allocate·if·<code>T</code>·is·zero-sized.</p>35 <p>This·doesn’t·actually·allocate·if·<code>T</code>·is·zero-sized.</p>
36 <h5·id="examples-3"><a·class="doc-anchor"·href="#examples-3">§</a>Examples</h5>36 <h5·id="examples-3"><a·class="doc-anchor"·href="#examples-3">§</a>Examples</h5>
37 <div·class="example-wrap"><pre·class="rust·rust-example-rendered"><code><span·class="attr">#![feature(allocator_api)]37 <div·class="example-wrap"><pre·class="rust·rust-example-rendered"><code><span·class="attr">#![feature(allocator_api)]
  
38 </span><span·class="kw">let·</span>five·=·Box::try_new(<span·class="number">5</span>)<span·class="question-mark">?</span>;</code></pre><a·class="test-arrow"·target="_blank"·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++++let+five+=+Box::try_new(5)?;%0A++++Ok::%3C(),+std::alloc::AllocError%3E(())%0A%7D+_inner().unwrap()+%7D&amp;version=nightly&amp;edition=2021">Run</a></div>38 </span><span·class="kw">let·</span>five·=·Box::try_new(<span·class="number">5</span>)<span·class="question-mark">?</span>;</code></pre><a·class="test-arrow"·target="_blank"·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++++let+five+=+Box::try_new(5)?;%0A++++Ok::%3C(),+std::alloc::AllocError%3E(())%0A%7D+_inner().unwrap()+%7D&amp;version=nightly&amp;edition=2021">Run</a></div>
39 </div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.try_new_uninit"·class="method"><a·class="src·rightside"·href="../../src/alloc/boxed.rs.html#331-333">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.Box.html"·title="struct·alloc::boxed::Box">Box</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·box·with·uninitialized·contents·on·the·heap,39 </div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.try_new_uninit"·class="method"><a·class="src·rightside"·href="../../src/alloc/boxed.rs.html#331-333">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.78.0/core/result/enum.Result.html"·title="enum·core::result::Result">Result</a>&lt;<a·class="struct"·href="struct.Box.html"·title="struct·alloc::boxed::Box">Box</a>&lt;<a·class="union"·href="https://doc.rust-lang.org/1.78.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·box·with·uninitialized·contents·on·the·heap,
40 returning·an·error·if·the·allocation·fails</p>40 returning·an·error·if·the·allocation·fails</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="attr">#![feature(allocator_api,·new_uninit)]42 <div·class="example-wrap"><pre·class="rust·rust-example-rendered"><code><span·class="attr">#![feature(allocator_api,·new_uninit)]
  
43 </span><span·class="kw">let·</span><span·class="kw-2">mut·</span>five·=·Box::&lt;u32&gt;::try_new_uninit()<span·class="question-mark">?</span>;43 </span><span·class="kw">let·</span><span·class="kw-2">mut·</span>five·=·Box::&lt;u32&gt;::try_new_uninit()<span·class="question-mark">?</span>;
  
44 <span·class="kw">let·</span>five·=·<span·class="kw">unsafe·</span>{44 <span·class="kw">let·</span>five·=·<span·class="kw">unsafe·</span>{
45 ····<span·class="comment">//·Deferred·initialization:45 ····<span·class="comment">//·Deferred·initialization:
46 ····</span>five.as_mut_ptr().write(<span·class="number">5</span>);46 ····</span>five.as_mut_ptr().write(<span·class="number">5</span>);
  
47 ····five.assume_init()47 ····five.assume_init()
48 };48 };
  
49 <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"·href="https://play.rust-lang.org/?code=%23!%5Ballow(unused)%5D%0A%23!%5Bfeature(allocator_api,+new_uninit)%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++++let+mut+five+=+Box::%3Cu32%3E::try_new_uninit()?;%0A++++%0A++++let+five+=+unsafe+%7B%0A++++++++//+Deferred+initialization:%0A++++++++five.as_mut_ptr().write(5);%0A++++%0A++++++++five.assume_init()%0A++++%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">Run</a></div>49 <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"·href="https://play.rust-lang.org/?code=%23!%5Ballow(unused)%5D%0A%23!%5Bfeature(allocator_api,+new_uninit)%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++++let+mut+five+=+Box::%3Cu32%3E::try_new_uninit()?;%0A++++%0A++++let+five+=+unsafe+%7B%0A++++++++//+Deferred+initialization:%0A++++++++five.as_mut_ptr().write(5);%0A++++%0A++++++++five.assume_init()%0A++++%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">Run</a></div>
50 </div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.try_new_zeroed"·class="method"><a·class="src·rightside"·href="../../src/alloc/boxed.rs.html#357-359">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.Box.html"·title="struct·alloc::boxed::Box">Box</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>Box</code>·with·uninitialized·contents,·with·the·memory50 </div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.try_new_zeroed"·class="method"><a·class="src·rightside"·href="../../src/alloc/boxed.rs.html#357-359">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.78.0/core/result/enum.Result.html"·title="enum·core::result::Result">Result</a>&lt;<a·class="struct"·href="struct.Box.html"·title="struct·alloc::boxed::Box">Box</a>&lt;<a·class="union"·href="https://doc.rust-lang.org/1.78.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>Box</code>·with·uninitialized·contents,·with·the·memory
51 being·filled·with·<code>0</code>·bytes·on·the·heap</p>51 being·filled·with·<code>0</code>·bytes·on·the·heap</p>
52 <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·usage52 <p>See·<a·href="https://doc.rust-lang.org/1.78.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
53 of·this·method.</p>53 of·this·method.</p>
54 <h5·id="examples-5"><a·class="doc-anchor"·href="#examples-5">§</a>Examples</h5>54 <h5·id="examples-5"><a·class="doc-anchor"·href="#examples-5">§</a>Examples</h5>
55 <div·class="example-wrap"><pre·class="rust·rust-example-rendered"><code><span·class="attr">#![feature(allocator_api,·new_uninit)]55 <div·class="example-wrap"><pre·class="rust·rust-example-rendered"><code><span·class="attr">#![feature(allocator_api,·new_uninit)]
  
56 </span><span·class="kw">let·</span>zero·=·Box::&lt;u32&gt;::try_new_zeroed()<span·class="question-mark">?</span>;56 </span><span·class="kw">let·</span>zero·=·Box::&lt;u32&gt;::try_new_zeroed()<span·class="question-mark">?</span>;
57 <span·class="kw">let·</span>zero·=·<span·class="kw">unsafe·</span>{·zero.assume_init()·};57 <span·class="kw">let·</span>zero·=·<span·class="kw">unsafe·</span>{·zero.assume_init()·};
  
Offset 74, 25 lines modifiedOffset 74, 25 lines modified
74 <p>This·doesn’t·actually·allocate·if·<code>T</code>·is·zero-sized.</p>74 <p>This·doesn’t·actually·allocate·if·<code>T</code>·is·zero-sized.</p>
75 <h5·id="examples-6"><a·class="doc-anchor"·href="#examples-6">§</a>Examples</h5>75 <h5·id="examples-6"><a·class="doc-anchor"·href="#examples-6">§</a>Examples</h5>
76 <div·class="example-wrap"><pre·class="rust·rust-example-rendered"><code><span·class="attr">#![feature(allocator_api)]76 <div·class="example-wrap"><pre·class="rust·rust-example-rendered"><code><span·class="attr">#![feature(allocator_api)]
  
77 </span><span·class="kw">use·</span>std::alloc::System;77 </span><span·class="kw">use·</span>std::alloc::System;
  
78 <span·class="kw">let·</span>five·=·Box::new_in(<span·class="number">5</span>,·System);</code></pre><a·class="test-arrow"·target="_blank"·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++++%0A++++let+five+=+Box::new_in(5,+System);%0A%7D&amp;version=nightly&amp;edition=2021">Run</a></div>78 <span·class="kw">let·</span>five·=·Box::new_in(<span·class="number">5</span>,·System);</code></pre><a·class="test-arrow"·target="_blank"·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++++%0A++++let+five+=+Box::new_in(5,+System);%0A%7D&amp;version=nightly&amp;edition=2021">Run</a></div>
79 </div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.try_new_in"·class="method"><a·class="src·rightside"·href="../../src/alloc/boxed.rs.html#408-417">source</a><h4·class="code-header">pub·fn·<a·href="#method.try_new_in"·class="fn">try_new_in</a>(x:·T,·alloc:·A)·-&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;<div·class="where">where79 </div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.try_new_in"·class="method"><a·class="src·rightside"·href="../../src/alloc/boxed.rs.html#408-417">source</a><h4·class="code-header">pub·fn·<a·href="#method.try_new_in"·class="fn">try_new_in</a>(x:·T,·alloc:·A)·-&gt;·<a·class="enum"·href="https://doc.rust-lang.org/1.78.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;<div·class="where">where
80 ····A:·<a·class="trait"·href="../alloc/trait.Allocator.html"·title="trait·alloc::alloc::Allocator">Allocator</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>allocator_api</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/32838">#32838</a>)</span></div></span></summary><div·class="docblock"><p>Allocates·memory·in·the·given·allocator·then·places·<code>x</code>·into·it,80 ····A:·<a·class="trait"·href="../alloc/trait.Allocator.html"·title="trait·alloc::alloc::Allocator">Allocator</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>allocator_api</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/32838">#32838</a>)</span></div></span></summary><div·class="docblock"><p>Allocates·memory·in·the·given·allocator·then·places·<code>x</code>·into·it,
81 returning·an·error·if·the·allocation·fails</p>81 returning·an·error·if·the·allocation·fails</p>
82 <p>This·doesn’t·actually·allocate·if·<code>T</code>·is·zero-sized.</p>82 <p>This·doesn’t·actually·allocate·if·<code>T</code>·is·zero-sized.</p>
83 <h5·id="examples-7"><a·class="doc-anchor"·href="#examples-7">§</a>Examples</h5>83 <h5·id="examples-7"><a·class="doc-anchor"·href="#examples-7">§</a>Examples</h5>
84 <div·class="example-wrap"><pre·class="rust·rust-example-rendered"><code><span·class="attr">#![feature(allocator_api)]84 <div·class="example-wrap"><pre·class="rust·rust-example-rendered"><code><span·class="attr">#![feature(allocator_api)]
  
85 </span><span·class="kw">use·</span>std::alloc::System;85 </span><span·class="kw">use·</span>std::alloc::System;
  
86 <span·class="kw">let·</span>five·=·Box::try_new_in(<span·class="number">5</span>,·System)<span·class="question-mark">?</span>;</code></pre><a·class="test-arrow"·target="_blank"·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::alloc::System;%0A++++%0A++++let+five+=+Box::try_new_in(5,+System)?;%0A++++Ok::%3C(),+std::alloc::AllocError%3E(())%0A%7D+_inner().unwrap()+%7D&amp;version=nightly&amp;edition=2021">Run</a></div>86 <span·class="kw">let·</span>five·=·Box::try_new_in(<span·class="number">5</span>,·System)<span·class="question-mark">?</span>;</code></pre><a·class="test-arrow"·target="_blank"·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::alloc::System;%0A++++%0A++++let+five+=+Box::try_new_in(5,+System)?;%0A++++Ok::%3C(),+std::alloc::AllocError%3E(())%0A%7D+_inner().unwrap()+%7D&amp;version=nightly&amp;edition=2021">Run</a></div>
87 </div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.new_uninit_in"·class="method"><a·class="src·rightside"·href="../../src/alloc/boxed.rs.html#443-454">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.Box.html"·title="struct·alloc::boxed::Box">Box</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;<div·class="where">where87 </div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.new_uninit_in"·class="method"><a·class="src·rightside"·href="../../src/alloc/boxed.rs.html#443-454">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.Box.html"·title="struct·alloc::boxed::Box">Box</a>&lt;<a·class="union"·href="https://doc.rust-lang.org/1.78.0/core/mem/maybe_uninit/union.MaybeUninit.html"·title="union·core::mem::maybe_uninit::MaybeUninit">MaybeUninit</a>&lt;T&gt;,·A&gt;<div·class="where">where
88 ····A:·<a·class="trait"·href="../alloc/trait.Allocator.html"·title="trait·alloc::alloc::Allocator">Allocator</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>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·box·with·uninitialized·contents·in·the·provided·allocator.</p>88 ····A:·<a·class="trait"·href="../alloc/trait.Allocator.html"·title="trait·alloc::alloc::Allocator">Allocator</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>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·box·with·uninitialized·contents·in·the·provided·allocator.</p>
89 <h5·id="examples-8"><a·class="doc-anchor"·href="#examples-8">§</a>Examples</h5>89 <h5·id="examples-8"><a·class="doc-anchor"·href="#examples-8">§</a>Examples</h5>
90 <div·class="example-wrap"><pre·class="rust·rust-example-rendered"><code><span·class="attr">#![feature(allocator_api,·new_uninit)]90 <div·class="example-wrap"><pre·class="rust·rust-example-rendered"><code><span·class="attr">#![feature(allocator_api,·new_uninit)]
  
91 </span><span·class="kw">use·</span>std::alloc::System;91 </span><span·class="kw">use·</span>std::alloc::System;
  
92 <span·class="kw">let·</span><span·class="kw-2">mut·</span>five·=·Box::&lt;u32,·<span·class="kw">_</span>&gt;::new_uninit_in(System);92 <span·class="kw">let·</span><span·class="kw-2">mut·</span>five·=·Box::&lt;u32,·<span·class="kw">_</span>&gt;::new_uninit_in(System);
Offset 101, 15 lines modifiedOffset 101, 15 lines modified
101 ····<span·class="comment">//·Deferred·initialization:101 ····<span·class="comment">//·Deferred·initialization:
102 ····</span>five.as_mut_ptr().write(<span·class="number">5</span>);102 ····</span>five.as_mut_ptr().write(<span·class="number">5</span>);
  
103 ····five.assume_init()103 ····five.assume_init()
104 };104 };
  
105 <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"·href="https://play.rust-lang.org/?code=%23!%5Ballow(unused)%5D%0A%23!%5Bfeature(allocator_api,+new_uninit)%5D%0A%0A%23%5Ballow(unused_extern_crates)%5D%0Aextern+crate+r%23alloc;%0Afn+main()+%7B%0A++++use+std::alloc::System;%0A++++%0A++++let+mut+five+=+Box::%3Cu32,+_%3E::new_uninit_in(System);%0A++++%0A++++let+five+=+unsafe+%7B%0A++++++++//+Deferred+initialization:%0A++++++++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">Run</a></div>105 <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"·href="https://play.rust-lang.org/?code=%23!%5Ballow(unused)%5D%0A%23!%5Bfeature(allocator_api,+new_uninit)%5D%0A%0A%23%5Ballow(unused_extern_crates)%5D%0Aextern+crate+r%23alloc;%0Afn+main()+%7B%0A++++use+std::alloc::System;%0A++++%0A++++let+mut+five+=+Box::%3Cu32,+_%3E::new_uninit_in(System);%0A++++%0A++++let+five+=+unsafe+%7B%0A++++++++//+Deferred+initialization:%0A++++++++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">Run</a></div>
106 </div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.try_new_uninit_in"·class="method"><a·class="src·rightside"·href="../../src/alloc/boxed.rs.html#480-491">source</a><h4·class="code-header">pub·fn·<a·href="#method.try_new_uninit_in"·class="fn">try_new_uninit_in</a>(alloc:·A)·-&gt;·<a·class="enum"·href="../../core/result/enum.Result.html"·title="enum·core::result::Result">Result</a>&lt;<a·class="struct"·href="struct.Box.html"·title="struct·alloc::boxed::Box">Box</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;,·<a·class="struct"·href="../alloc/struct.AllocError.html"·title="struct·alloc::alloc::AllocError">AllocError</a>&gt;<div·class="where">where106 </div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.try_new_uninit_in"·class="method"><a·class="src·rightside"·href="../../src/alloc/boxed.rs.html#480-491">source</a><h4·class="code-header">pub·fn·<a·href="#method.try_new_uninit_in"·class="fn">try_new_uninit_in</a>(alloc:·A)·-&gt;·<a·class="enum"·href="https://doc.rust-lang.org/1.78.0/core/result/enum.Result.html"·title="enum·core::result::Result">Result</a>&lt;<a·class="struct"·href="struct.Box.html"·title="struct·alloc::boxed::Box">Box</a>&lt;<a·class="union"·href="https://doc.rust-lang.org/1.78.0/core/mem/maybe_uninit/union.MaybeUninit.html"·title="union·core::mem::maybe_uninit::MaybeUninit">MaybeUninit</a>&lt;T&gt;,·A&gt;,·<a·class="struct"·href="../alloc/struct.AllocError.html"·title="struct·alloc::alloc::AllocError">AllocError</a>&gt;<div·class="where">where
107 ····A:·<a·class="trait"·href="../alloc/trait.Allocator.html"·title="trait·alloc::alloc::Allocator">Allocator</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>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·box·with·uninitialized·contents·in·the·provided·allocator,107 ····A:·<a·class="trait"·href="../alloc/trait.Allocator.html"·title="trait·alloc::alloc::Allocator">Allocator</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>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·box·with·uninitialized·contents·in·the·provided·allocator,
108 returning·an·error·if·the·allocation·fails</p>108 returning·an·error·if·the·allocation·fails</p>
109 <h5·id="examples-9"><a·class="doc-anchor"·href="#examples-9">§</a>Examples</h5>109 <h5·id="examples-9"><a·class="doc-anchor"·href="#examples-9">§</a>Examples</h5>
110 <div·class="example-wrap"><pre·class="rust·rust-example-rendered"><code><span·class="attr">#![feature(allocator_api,·new_uninit)]110 <div·class="example-wrap"><pre·class="rust·rust-example-rendered"><code><span·class="attr">#![feature(allocator_api,·new_uninit)]
  
111 </span><span·class="kw">use·</span>std::alloc::System;111 </span><span·class="kw">use·</span>std::alloc::System;
  
Offset 119, 60 lines modifiedOffset 119, 60 lines modified
119 ····<span·class="comment">//·Deferred·initialization:119 ····<span·class="comment">//·Deferred·initialization:
120 ····</span>five.as_mut_ptr().write(<span·class="number">5</span>);120 ····</span>five.as_mut_ptr().write(<span·class="number">5</span>);
  
121 ····five.assume_init()121 ····five.assume_init()
122 };122 };
  
123 <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"·href="https://play.rust-lang.org/?code=%23!%5Ballow(unused)%5D%0A%23!%5Bfeature(allocator_api,+new_uninit)%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::alloc::System;%0A++++%0A++++let+mut+five+=+Box::%3Cu32,+_%3E::try_new_uninit_in(System)?;%0A++++%0A++++let+five+=+unsafe+%7B%0A++++++++//+Deferred+initialization:%0A++++++++five.as_mut_ptr().write(5);%0A++++%0A++++++++five.assume_init()%0A++++%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">Run</a></div>123 <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"·href="https://play.rust-lang.org/?code=%23!%5Ballow(unused)%5D%0A%23!%5Bfeature(allocator_api,+new_uninit)%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::alloc::System;%0A++++%0A++++let+mut+five+=+Box::%3Cu32,+_%3E::try_new_uninit_in(System)?;%0A++++%0A++++let+five+=+unsafe+%7B%0A++++++++//+Deferred+initialization:%0A++++++++five.as_mut_ptr().write(5);%0A++++%0A++++++++five.assume_init()%0A++++%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">Run</a></div>
124 </div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.new_zeroed_in"·class="method"><a·class="src·rightside"·href="../../src/alloc/boxed.rs.html#517-528">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.Box.html"·title="struct·alloc::boxed::Box">Box</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;<div·class="where">where124 </div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.new_zeroed_in"·class="method"><a·class="src·rightside"·href="../../src/alloc/boxed.rs.html#517-528">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.Box.html"·title="struct·alloc::boxed::Box">Box</a>&lt;<a·class="union"·href="https://doc.rust-lang.org/1.78.0/core/mem/maybe_uninit/union.MaybeUninit.html"·title="union·core::mem::maybe_uninit::MaybeUninit">MaybeUninit</a>&lt;T&gt;,·A&gt;<div·class="where">where
125 ····A:·<a·class="trait"·href="../alloc/trait.Allocator.html"·title="trait·alloc::alloc::Allocator">Allocator</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>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>Box</code>·with·uninitialized·contents,·with·the·memory125 ····A:·<a·class="trait"·href="../alloc/trait.Allocator.html"·title="trait·alloc::alloc::Allocator">Allocator</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>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>Box</code>·with·uninitialized·contents,·with·the·memory
126 being·filled·with·<code>0</code>·bytes·in·the·provided·allocator.</p>126 being·filled·with·<code>0</code>·bytes·in·the·provided·allocator.</p>
127 <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·usage127 <p>See·<a·href="https://doc.rust-lang.org/1.78.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
128 of·this·method.</p>128 of·this·method.</p>
129 <h5·id="examples-10"><a·class="doc-anchor"·href="#examples-10">§</a>Examples</h5>129 <h5·id="examples-10"><a·class="doc-anchor"·href="#examples-10">§</a>Examples</h5>
130 <div·class="example-wrap"><pre·class="rust·rust-example-rendered"><code><span·class="attr">#![feature(allocator_api,·new_uninit)]130 <div·class="example-wrap"><pre·class="rust·rust-example-rendered"><code><span·class="attr">#![feature(allocator_api,·new_uninit)]
Max diff block lines reached; 766266/815246 bytes (93.99%) of diff not shown.
76.1 KB
./usr/share/doc/rust-web-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.write(`<link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/SourceSerif4-Regular-46f98efaafac5295.ttf.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/FiraSans-Regular-018c141bf0843ffd.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/FiraSans-Medium-8f9a781e4970d388.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/SourceCodePro-Regular-562dcc5011b6de7d.ttf.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/SourceCodePro-Semibold-d899c5a5c4aeb14a.ttf.woff2">`)</script><link·rel="stylesheet"·href="../../static.files/normalize-76eba96aa4d2e634.css"><link·rel="stylesheet"·href="../../static.files/rustdoc-35f9e32502181f1e.css"><meta·name="rustdoc-vars"·data-root-path="../../"·data-static-root-path="../../static.files/"·data-current-crate="alloc"·data-themes=""·data-resource-suffix="1.78.0"·data-rustdoc-version="1.78.0"·data-channel="1.78.0"·data-search-js="search-42d8da7a6b9792c2.js"·data-settings-js="settings-4313503d2e1961c2.js"·><script·src="../../static.files/storage-4c98445ec4002617.js"></script><script·defer·src="sidebar-items1.78.0.js"></script><script·defer·src="../../static.files/main-12cf3b4f4f9dc36d.js"></script><noscript><link·rel="stylesheet"·href="../../static.files/noscript-04d5337699b92874.css"></noscript><link·rel="alternate·icon"·type="image/png"·href="../../static.files/favicon-16x16-8b506e7a72182f1c.png"><link·rel="alternate·icon"·type="image/png"·href="../../static.files/favicon-32x32-422f7d1d52889060.png"><link·rel="icon"·type="image/svg+xml"·href="../../static.files/favicon-2c020d218678b618.svg"></head><body·class="rustdoc·struct"><!--[if·lte·IE·11]><div·class="warning">This·old·browser·is·unsupported·and·will·most·likely·display·funky·things.</div><![endif]--><nav·class="mobile-topbar"><button·class="sidebar-menu-toggle"·title="show·sidebar"></button><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-151179464ae7ed46.svg"·alt=""></a></nav><nav·class="sidebar"><div·class="sidebar-crate"><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-151179464ae7ed46.svg"·alt="logo"></a><h2><a·href="../../alloc/index.html">alloc</a><span·class="version">1.78.0</span></h2></div><h2·class="location"><a·href="#">ThinBox</a></h2><div·class="sidebar-elems"><section><h3><a·href="#implementations">Methods</a></h3><ul·class="block·method"><li><a·href="#method.new">new</a></li><li><a·href="#method.new_unsize">new_unsize</a></li><li><a·href="#method.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">Debug</a></li><li><a·href="#impl-Deref-for-ThinBox%3CT%3E">Deref</a></li><li><a·href="#impl-DerefMut-for-ThinBox%3CT%3E">DerefMut</a></li><li><a·href="#impl-Display-for-ThinBox%3CT%3E">Display</a></li><li><a·href="#impl-Drop-for-ThinBox%3CT%3E">Drop</a></li><li><a·href="#impl-Error-for-ThinBox%3CT%3E">Error</a></li><li><a·href="#impl-Send-for-ThinBox%3CT%3E">Send</a></li><li><a·href="#impl-Sync-for-ThinBox%3CT%3E">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">Freeze</a></li><li><a·href="#impl-RefUnwindSafe-for-ThinBox%3CT%3E">RefUnwindSafe</a></li><li><a·href="#impl-Unpin-for-ThinBox%3CT%3E">Unpin</a></li><li><a·href="#impl-UnwindSafe-for-ThinBox%3CT%3E">UnwindSafe</a></li></ul><h3><a·href="#blanket-implementations">Blanket·Implementations</a></h3><ul·class="block·blanket-implementation"><li><a·href="#impl-Any-for-T">Any</a></li><li><a·href="#impl-Borrow%3CT%3E-for-T">Borrow&lt;T&gt;</a></li><li><a·href="#impl-BorrowMut%3CT%3E-for-T">BorrowMut&lt;T&gt;</a></li><li><a·href="#impl-From%3CT%3E-for-T">From&lt;T&gt;</a></li><li><a·href="#impl-Into%3CU%3E-for-T">Into&lt;U&gt;</a></li><li><a·href="#impl-ToString-for-T">ToString</a></li><li><a·href="#impl-TryFrom%3CU%3E-for-T">TryFrom&lt;U&gt;</a></li><li><a·href="#impl-TryInto%3CU%3E-for-T">TryInto&lt;U&gt;</a></li></ul></section><h2><a·href="index.html">In·alloc::boxed</a></h2></div></nav><div·class="sidebar-resizer"></div>1 <!DOCTYPE·html><html·lang="en"><head><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.write(`<link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/SourceSerif4-Regular-46f98efaafac5295.ttf.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/FiraSans-Regular-018c141bf0843ffd.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/FiraSans-Medium-8f9a781e4970d388.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/SourceCodePro-Regular-562dcc5011b6de7d.ttf.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/SourceCodePro-Semibold-d899c5a5c4aeb14a.ttf.woff2">`)</script><link·rel="stylesheet"·href="../../static.files/normalize-76eba96aa4d2e634.css"><link·rel="stylesheet"·href="../../static.files/rustdoc-35f9e32502181f1e.css"><meta·name="rustdoc-vars"·data-root-path="../../"·data-static-root-path="../../static.files/"·data-current-crate="alloc"·data-themes=""·data-resource-suffix="1.78.0"·data-rustdoc-version="1.78.0"·data-channel="1.78.0"·data-search-js="search-42d8da7a6b9792c2.js"·data-settings-js="settings-4313503d2e1961c2.js"·><script·src="../../static.files/storage-4c98445ec4002617.js"></script><script·defer·src="sidebar-items1.78.0.js"></script><script·defer·src="../../static.files/main-12cf3b4f4f9dc36d.js"></script><noscript><link·rel="stylesheet"·href="../../static.files/noscript-04d5337699b92874.css"></noscript><link·rel="alternate·icon"·type="image/png"·href="../../static.files/favicon-16x16-8b506e7a72182f1c.png"><link·rel="alternate·icon"·type="image/png"·href="../../static.files/favicon-32x32-422f7d1d52889060.png"><link·rel="icon"·type="image/svg+xml"·href="../../static.files/favicon-2c020d218678b618.svg"></head><body·class="rustdoc·struct"><!--[if·lte·IE·11]><div·class="warning">This·old·browser·is·unsupported·and·will·most·likely·display·funky·things.</div><![endif]--><nav·class="mobile-topbar"><button·class="sidebar-menu-toggle"·title="show·sidebar"></button><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-151179464ae7ed46.svg"·alt=""></a></nav><nav·class="sidebar"><div·class="sidebar-crate"><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-151179464ae7ed46.svg"·alt="logo"></a><h2><a·href="../../alloc/index.html">alloc</a><span·class="version">1.78.0</span></h2></div><h2·class="location"><a·href="#">ThinBox</a></h2><div·class="sidebar-elems"><section><h3><a·href="#implementations">Methods</a></h3><ul·class="block·method"><li><a·href="#method.new">new</a></li><li><a·href="#method.new_unsize">new_unsize</a></li><li><a·href="#method.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">Debug</a></li><li><a·href="#impl-Deref-for-ThinBox%3CT%3E">Deref</a></li><li><a·href="#impl-DerefMut-for-ThinBox%3CT%3E">DerefMut</a></li><li><a·href="#impl-Display-for-ThinBox%3CT%3E">Display</a></li><li><a·href="#impl-Drop-for-ThinBox%3CT%3E">Drop</a></li><li><a·href="#impl-Error-for-ThinBox%3CT%3E">Error</a></li><li><a·href="#impl-Send-for-ThinBox%3CT%3E">Send</a></li><li><a·href="#impl-Sync-for-ThinBox%3CT%3E">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">Freeze</a></li><li><a·href="#impl-RefUnwindSafe-for-ThinBox%3CT%3E">RefUnwindSafe</a></li><li><a·href="#impl-Unpin-for-ThinBox%3CT%3E">Unpin</a></li><li><a·href="#impl-UnwindSafe-for-ThinBox%3CT%3E">UnwindSafe</a></li></ul><h3><a·href="#blanket-implementations">Blanket·Implementations</a></h3><ul·class="block·blanket-implementation"><li><a·href="#impl-Any-for-T">Any</a></li><li><a·href="#impl-Borrow%3CT%3E-for-T">Borrow&lt;T&gt;</a></li><li><a·href="#impl-BorrowMut%3CT%3E-for-T">BorrowMut&lt;T&gt;</a></li><li><a·href="#impl-From%3CT%3E-for-T">From&lt;T&gt;</a></li><li><a·href="#impl-Into%3CU%3E-for-T">Into&lt;U&gt;</a></li><li><a·href="#impl-ToString-for-T">ToString</a></li><li><a·href="#impl-TryFrom%3CU%3E-for-T">TryFrom&lt;U&gt;</a></li><li><a·href="#impl-TryInto%3CU%3E-for-T">TryInto&lt;U&gt;</a></li></ul></section><h2><a·href="index.html">In·alloc::boxed</a></h2></div></nav><div·class="sidebar-resizer"></div>
2 ····<main><div·class="width-limiter"><nav·class="sub"><form·class="search-form"><span></span><div·id="sidebar-button"·tabindex="-1"><a·href="../../alloc/all.html"·title="show·sidebar"></a></div><input·class="search-input"·name="search"·aria-label="Run·search·in·the·documentation"·autocomplete="off"·spellcheck="false"·placeholder="Click·or·press·‘S’·to·search,·‘?’·for·more·options…"·type="search"><div·id="help-button"·tabindex="-1"><a·href="../../help.html"·title="help">?</a></div><div·id="settings-menu"·tabindex="-1"><a·href="../../settings.html"·title="settings"><img·width="22"·height="22"·alt="Change·settings"·src="../../static.files/wheel-7b819b6101059cd0.svg"></a></div></form></nav><section·id="main-content"·class="content"><div·class="main-heading"><h1>Struct·<a·href="../index.html">alloc</a>::<wbr><a·href="index.html">boxed</a>::<wbr><a·class="struct"·href="#">ThinBox</a><button·id="copy-path"·title="Copy·item·path·to·clipboard"><img·src="../../static.files/clipboard-7571035ce49a181d.svg"·width="19"·height="18"·alt="Copy·item·path"></button></h1><span·class="out-of-band"><a·class="src"·href="../../src/alloc/boxed/thin.rs.html#34-39">source</a>···<button·id="toggle-all-docs"·title="collapse·all·docs">[<span>&#x2212;</span>]</button></span></div><pre·class="rust·item-decl"><code>pub·struct·ThinBox&lt;T:·?<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>&gt;·{·<span·class="comment">/*·private·fields·*/</span>·}</code></pre><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>thin_box</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/92791">#92791</a>)</span></div></span><details·class="toggle·top-doc"·open><summary·class="hideme"><span>Expand·description</span></summary><div·class="docblock"><p>ThinBox.</p>2 ····<main><div·class="width-limiter"><nav·class="sub"><form·class="search-form"><span></span><div·id="sidebar-button"·tabindex="-1"><a·href="../../alloc/all.html"·title="show·sidebar"></a></div><input·class="search-input"·name="search"·aria-label="Run·search·in·the·documentation"·autocomplete="off"·spellcheck="false"·placeholder="Click·or·press·‘S’·to·search,·‘?’·for·more·options…"·type="search"><div·id="help-button"·tabindex="-1"><a·href="../../help.html"·title="help">?</a></div><div·id="settings-menu"·tabindex="-1"><a·href="../../settings.html"·title="settings"><img·width="22"·height="22"·alt="Change·settings"·src="../../static.files/wheel-7b819b6101059cd0.svg"></a></div></form></nav><section·id="main-content"·class="content"><div·class="main-heading"><h1>Struct·<a·href="../index.html">alloc</a>::<wbr><a·href="index.html">boxed</a>::<wbr><a·class="struct"·href="#">ThinBox</a><button·id="copy-path"·title="Copy·item·path·to·clipboard"><img·src="../../static.files/clipboard-7571035ce49a181d.svg"·width="19"·height="18"·alt="Copy·item·path"></button></h1><span·class="out-of-band"><a·class="src"·href="../../src/alloc/boxed/thin.rs.html#34-39">source</a>···<button·id="toggle-all-docs"·title="collapse·all·docs">[<span>&#x2212;</span>]</button></span></div><pre·class="rust·item-decl"><code>pub·struct·ThinBox&lt;T:·?<a·class="trait"·href="https://doc.rust-lang.org/1.78.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>
3 <p>A·thin·pointer·for·heap·allocation,·regardless·of·T.</p>3 <p>A·thin·pointer·for·heap·allocation,·regardless·of·T.</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(thin_box)]5 <div·class="example-wrap"><pre·class="rust·rust-example-rendered"><code><span·class="attr">#![feature(thin_box)]
6 </span><span·class="kw">use·</span>std::boxed::ThinBox;6 </span><span·class="kw">use·</span>std::boxed::ThinBox;
  
7 <span·class="kw">let·</span>five·=·ThinBox::new(<span·class="number">5</span>);7 <span·class="kw">let·</span>five·=·ThinBox::new(<span·class="number">5</span>);
8 <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">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>]);
  
9 <span·class="kw">use·</span>std::mem::{size_of,·size_of_val};9 <span·class="kw">use·</span>std::mem::{size_of,·size_of_val};
10 <span·class="kw">let·</span>size_of_ptr·=·size_of::&lt;<span·class="kw-2">*const·</span>()&gt;();10 <span·class="kw">let·</span>size_of_ptr·=·size_of::&lt;<span·class="kw-2">*const·</span>()&gt;();
11 <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>five));
12 <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"·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">Run</a></div>12 <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"·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">Run</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-ThinBox%3CT%3E"·class="impl"><a·class="src·rightside"·href="../../src/alloc/boxed/thin.rs.html#50-90">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#65-69">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·on13 </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#50-90">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#65-69">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.78.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
14 the·stack.</p>14 the·stack.</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="attr">#![feature(thin_box)]16 <div·class="example-wrap"><pre·class="rust·rust-example-rendered"><code><span·class="attr">#![feature(thin_box)]
17 </span><span·class="kw">use·</span>std::boxed::ThinBox;17 </span><span·class="kw">use·</span>std::boxed::ThinBox;
  
18 <span·class="kw">let·</span>five·=·ThinBox::new(<span·class="number">5</span>);</code></pre><a·class="test-arrow"·target="_blank"·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">Run</a></div>18 <span·class="kw">let·</span>five·=·ThinBox::new(<span·class="number">5</span>);</code></pre><a·class="test-arrow"·target="_blank"·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">Run</a></div>
19 </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#86-89">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·on19 </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#86-89">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.78.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:·0183f99e5369301584875ef2aed1ee5729744e70d57a4bf92ed9da9d1cef5a68·...·]/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
20 the·stack.·Returns·an·error·if·allocation·fails,·instead·of·aborting.</p>20 the·stack.·Returns·an·error·if·allocation·fails,·instead·of·aborting.</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 <div·class="example-wrap"><pre·class="rust·rust-example-rendered"><code><span·class="attr">#![feature(allocator_api)]22 <div·class="example-wrap"><pre·class="rust·rust-example-rendered"><code><span·class="attr">#![feature(allocator_api)]
23 #![feature(thin_box)]23 #![feature(thin_box)]
24 </span><span·class="kw">use·</span>std::boxed::ThinBox;24 </span><span·class="kw">use·</span>std::boxed::ThinBox;
  
25 <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"·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">Run</a></div>25 <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"·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">Run</a></div>
26 </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#93-116">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#108-115">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">where26 </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#93-116">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.78.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#108-115">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
27 ····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·on27 ····T:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.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:·ade9a7264211b860fe8466cbd4cdb59415305003a20ad2b51a0bd12d7ddb5dfa·...·]/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
28 the·stack.</p>28 the·stack.</p>
29 <h5·id="examples-3"><a·class="doc-anchor"·href="#examples-3">§</a>Examples</h5>29 <h5·id="examples-3"><a·class="doc-anchor"·href="#examples-3">§</a>Examples</h5>
30 <div·class="example-wrap"><pre·class="rust·rust-example-rendered"><code><span·class="attr">#![feature(thin_box)]30 <div·class="example-wrap"><pre·class="rust·rust-example-rendered"><code><span·class="attr">#![feature(thin_box)]
31 </span><span·class="kw">use·</span>std::boxed::ThinBox;31 </span><span·class="kw">use·</span>std::boxed::ThinBox;
  
32 <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"·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">Run</a></div>32 <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"·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">Run</a></div>
33 </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#119-123">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:·11188,·SHA:·8afb0b240b819680dcbbb9658873c85e246727194cf4ed1b86199949410cddb8·...·]/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></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#119-123">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.78.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:·12187,·SHA:·c4a15aff3e95cafed38fb874b7d6f0dbffe5962971d08f575c2110c258f3b097·...·]/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>
34 </div><section·id="impl-Sync-for-ThinBox%3CT%3E"·class="impl"><a·class="src·rightside"·href="../../src/alloc/boxed/thin.rs.html#47">source</a><a·href="#impl-Sync-for-ThinBox%3CT%3E"·class="anchor">§</a><h3·class="code-header">impl&lt;T:·?<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>·+·<a·class="trait"·href="../../core/marker/trait.Sync.html"·title="trait·core::marker::Sync">Sync</a>&gt;·<a·class="trait"·href="../../core/marker/trait.Sync.html"·title="trait·core::marker::Sync">Sync</a>·for·<a·class="struct"·href="struct.ThinBox.html"·title="struct·alloc::boxed::ThinBox">ThinBox</a>&lt;T&gt;</h3></section><div·class="docblock"><p><code>ThinBox&lt;T&gt;</code>·is·<code>Sync</code>·if·<code>T</code>·is·<code>Sync</code>·because·the·data·is·owned.</p>34 </div><section·id="impl-Sync-for-ThinBox%3CT%3E"·class="impl"><a·class="src·rightside"·href="../../src/alloc/boxed/thin.rs.html#47">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.78.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>·+·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/marker/trait.Sync.html"·title="trait·core::marker::Sync">Sync</a>&gt;·<a·class="trait"[·...·truncated·by·diffoscope;·len:·39,·SHA:·c5b3ee8e9b801a6f6814268bcc68399fc1cc0f57b4f5bdf7c72bdeb012a5c4c4·...·]/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>
35 </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:·?<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>&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·all[·...·truncated·by·diffoscope;·len:·360,·SHA:·e87113d8cdd608a664dc6740f3158cfa07dce3277224af4c1e1e276c4a22b4b8·...·]/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 </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:·?<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>&gt;·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/marker/trait.Freeze.html"·title="trait·core::marker::Freeze">Freeze</a>·for·<a·class[·...·truncated·by·diffoscope;·len:·468,·SHA:·a84c7b90247d504862141bbda1851a0616967143ad2b2c39ad1ccdf2949e47ec·...·]/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>,</div></h3></section><section·id="impl-Unpin-for-ThinBox%3CT%3E"·class="impl"><a·href="#impl-Unpin-for-ThinBox%3CT%3E"·class="anc[·...·truncated·by·diffoscope;·len:·181,·SHA:·35d7ebf0b0d208d30f24ad47b17854f150279a91155e7efaed5c53597d07d9d3·...·]/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.78.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-ThinBox%3CT%3E"·class="impl"><a·href="#impl-Unpin-for[·...·truncated·by·diffoscope;·len:·262,·SHA:·2dc5120c1b6333de68f4ffc8a4d48b417dba7ef0c63e4cbe7a985068fedccf55·...·]/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>,</div></h3></section><section·id="impl-UnwindSafe-for-ThinBox%3CT%3E"·class="impl"><a·href="#impl-UnwindSafe-for-ThinBox%3CT%3E"·class="anchor">§</a><h3·class="code-header">imp[·...·truncated·by·diffoscope;·len:·144,·SHA:·9783aeaba2cde1d31f716f37550cb49761dbbfebadb8269a2bbd91538f7565a1·...·]/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.78.0/core/marker/trait.Unpin.html"·title="trait·core::marker::Unpin">Unpin</a>,</div></h3></section><section·id="impl-UnwindSafe-for-ThinBox%3CT%3E"·class="impl"><a·href="#impl-UnwindSafe-for-ThinBox%3CT%3E"·class="anchor">§</a>[·...·truncated·by·diffoscope;·len:·225,·SHA:·f4f7e1e6612c8fcaf313c0665c529b4485a920b8d1cde00d0408dd3b2bdfaba1·...·]/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>,</div></h3></section></div><h2·id="blanket-implementations"·class="section-header">Blanket·Implementations<a·href="#blanket-implementation[·...·truncated·by·diffoscope;·len:·347,·SHA:·6d5262182bd7a0e3c1e841e7c1ea25a6bf66e4385f84bcf81104b18c2f788e31·...·]/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.78.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:·1cd0dfbe7e18bfb0585ddedd8cfd01c39e76a55f1ef6d60c85e5ccc9f62e4863·...·]/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:·9db8bacb767d75cc3351ca7341c388130aa05ebef490d992be5374f16eedc378·...·]/src/core/borrow.rs.html#208">source</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.78.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">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:·039b8952ccb1ab7d8f15cd519cbc10f4afc149276d0f9cfd3a53117d606059df·...·]/src/core/borrow.rs.html#208">source</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:·b2ffbab17ff1ef71ba4c506a3aaa515da2082da6f02a53862ce1ca2b2b25f5b4·...·]/src/core/borrow.rs.html#216">source</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.78.0/core/marker/trait.Sized.html"·title="trait·core::marker::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:·952d76e7bcf7b521fffa418ce638abf69976de0942360e56f93e419ca3389394·...·]/src/core/borrow.rs.html#216">source</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:·befefcb8cb29dc857e1f3050572f6f470317e3350e0851c4ed6e56cc38673a92·...·]/core/convert/trait.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.78.0/core/marker/trait.Sized.html"·title="trait·core::marker::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:·204bc28c8766993ff59d26bb790f1469ab686e6f172c57f35aa987a81507a7b1·...·]/core/convert/trait.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.78.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.78.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.78.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:·2cf76a8ca501b2a1fef209fed846779ab1bed3b75f52c7425335e3ce04e6b272·...·]/core/convert/trait.Into.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.78.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#2543-2557">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#2543-2557">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:·bf3a3f8ffed9dcfc973405dddaf9f278663007cc35ca5daa38b602630201cbf0·...·]/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.78.0/core/marker/trait.Sized.html"·title="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:·531ea7c1ecd9197e925ea3063788b96ffe9ed8291f75ffba5fcab4c2298b41ca·...·]/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"·class="associatedtype·trait-impl"><a·hre[·...·truncated·by·diffoscope;·len:·1591,·SHA:·8537afacf1b3cf6b9fb7db778975d49d8a8e5988d420715e464ff4a79dd696c5·...·]/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.78.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"·class="associ[·...·truncated·by·diffoscope;·len:·1861,·SHA:·78398046ba16de2f66a8201a11d6a2dd405fceedeabfcaa37481e77092687e6f·...·]/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-1"·class="associatedtype·trait-i[·...·truncated·by·diffoscope;·len:·1231,·SHA:·7843e7b6cca73922417e4154886c0df66f016d274b48933c21bdb75b67479d5b·...·]/core/convert/trait.TryFrom.html#associatedtype.Error"·title="type·core::convert::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.78.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-1"·cl[·...·truncated·by·diffoscope;·len:·1474,·SHA:·ca90cccb6c86c654c95a1aaec456fbbe4b115f0d5a700e7d156e823346d70894·...·]/core/convert/trait.TryFrom.html#associatedtype.Error"·title="type·core::convert::TryFrom::Error">Error</a>&gt;</h4></section></summary><div·class='docblock'>Performs·the·conversion.</div></details></div></details></div></section></div></main></body></html>
163 KB
./usr/share/doc/rust-web-doc/html/alloc/collections/binary_heap/struct.BinaryHeap.html
    
Offset 1, 12 lines modifiedOffset 1, 12 lines modified
1 <!DOCTYPE·html><html·lang="en"><head><meta·charset="utf-8"><meta·name="viewport"·content="width=device-width,·initial-scale=1.0"><meta·name="generator"·content="rustdoc"><meta·name="description"·content="A·priority·queue·implemented·with·a·binary·heap."><title>BinaryHeap·in·alloc::collections::binary_heap·-·Rust</title><script>·if·(window.location.protocol·!==·"file:")·document.write(`<link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../../static.files/SourceSerif4-Regular-46f98efaafac5295.ttf.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../../static.files/FiraSans-Regular-018c141bf0843ffd.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../../static.files/FiraSans-Medium-8f9a781e4970d388.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../../static.files/SourceCodePro-Regular-562dcc5011b6de7d.ttf.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../../static.files/SourceCodePro-Semibold-d899c5a5c4aeb14a.ttf.woff2">`)</script><link·rel="stylesheet"·href="../../../static.files/normalize-76eba96aa4d2e634.css"><link·rel="stylesheet"·href="../../../static.files/rustdoc-35f9e32502181f1e.css"><meta·name="rustdoc-vars"·data-root-path="../../../"·data-static-root-path="../../../static.files/"·data-current-crate="alloc"·data-themes=""·data-resource-suffix="1.78.0"·data-rustdoc-version="1.78.0"·data-channel="1.78.0"·data-search-js="search-42d8da7a6b9792c2.js"·data-settings-js="settings-4313503d2e1961c2.js"·><script·src="../../../static.files/storage-4c98445ec4002617.js"></script><script·defer·src="sidebar-items1.78.0.js"></script><script·defer·src="../../../static.files/main-12cf3b4f4f9dc36d.js"></script><noscript><link·rel="stylesheet"·href="../../../static.files/noscript-04d5337699b92874.css"></noscript><link·rel="alternate·icon"·type="image/png"·href="../../../static.files/favicon-16x16-8b506e7a72182f1c.png"><link·rel="alternate·icon"·type="image/png"·href="../../../static.files/favicon-32x32-422f7d1d52889060.png"><link·rel="icon"·type="image/svg+xml"·href="../../../static.files/favicon-2c020d218678b618.svg"></head><body·class="rustdoc·struct"><!--[if·lte·IE·11]><div·class="warning">This·old·browser·is·unsupported·and·will·most·likely·display·funky·things.</div><![endif]--><nav·class="mobile-topbar"><button·class="sidebar-menu-toggle"·title="show·sidebar"></button><a·class="logo-container"·href="../../../alloc/index.html"><img·class="rust-logo"·src="../../../static.files/rust-logo-151179464ae7ed46.svg"·alt=""></a></nav><nav·class="sidebar"><div·class="sidebar-crate"><a·class="logo-container"·href="../../../alloc/index.html"><img·class="rust-logo"·src="../../../static.files/rust-logo-151179464ae7ed46.svg"·alt="logo"></a><h2><a·href="../../../alloc/index.html">alloc</a><span·class="version">1.78.0</span></h2></div><h2·class="location"><a·href="#">BinaryHeap</a></h2><div·class="sidebar-elems"><section><h3><a·href="#implementations">Methods</a></h3><ul·class="block·method"><li><a·href="#method.allocator">allocator</a></li><li><a·href="#method.append">append</a></li><li><a·href="#method.as_slice">as_slice</a></li><li><a·href="#method.capacity">capacity</a></li><li><a·href="#method.clear">clear</a></li><li><a·href="#method.drain">drain</a></li><li><a·href="#method.drain_sorted">drain_sorted</a></li><li><a·href="#method.into_iter_sorted">into_iter_sorted</a></li><li><a·href="#method.into_sorted_vec">into_sorted_vec</a></li><li><a·href="#method.into_vec">into_vec</a></li><li><a·href="#method.is_empty">is_empty</a></li><li><a·href="#method.iter">iter</a></li><li><a·href="#method.len">len</a></li><li><a·href="#method.new">new</a></li><li><a·href="#method.new_in">new_in</a></li><li><a·href="#method.peek">peek</a></li><li><a·href="#method.peek_mut">peek_mut</a></li><li><a·href="#method.pop">pop</a></li><li><a·href="#method.push">push</a></li><li><a·href="#method.reserve">reserve</a></li><li><a·href="#method.reserve_exact">reserve_exact</a></li><li><a·href="#method.retain">retain</a></li><li><a·href="#method.shrink_to">shrink_to</a></li><li><a·href="#method.shrink_to_fit">shrink_to_fit</a></li><li><a·href="#method.try_reserve">try_reserve</a></li><li><a·href="#method.try_reserve_exact">try_reserve_exact</a></li><li><a·href="#method.with_capacity">with_capacity</a></li><li><a·href="#method.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">Clone</a></li><li><a·href="#impl-Debug-for-BinaryHeap%3CT,+A%3E">Debug</a></li><li><a·href="#impl-Default-for-BinaryHeap%3CT%3E">Default</a></li><li><a·href="#impl-Extend%3C%26T%3E-for-BinaryHeap%3CT,+A%3E">Extend&lt;&amp;&#x27;a·T&gt;</a></li><li><a·href="#impl-Extend%3CT%3E-for-BinaryHeap%3CT,+A%3E">Extend&lt;T&gt;</a></li><li><a·href="#impl-From%3CBinaryHeap%3CT,+A%3E%3E-for-Vec%3CT,+A%3E">From&lt;BinaryHeap&lt;T,·A&gt;&gt;</a></li><li><a·href="#impl-From%3CVec%3CT,+A%3E%3E-for-BinaryHeap%3CT,+A%3E">From&lt;Vec&lt;T,·A&gt;&gt;</a></li><li><a·href="#impl-From%3C%5BT;+N%5D%3E-for-BinaryHeap%3CT%3E">From&lt;[T;·N]&gt;</a></li><li><a·href="#impl-FromIterator%3CT%3E-for-BinaryHeap%3CT%3E">FromIterator&lt;T&gt;</a></li><li><a·href="#impl-IntoIterator-for-%26BinaryHeap%3CT,+A%3E">IntoIterator</a></li><li><a·href="#impl-IntoIterator-for-BinaryHeap%3CT,+A%3E">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">Freeze</a></li><li><a·href="#impl-RefUnwindSafe-for-BinaryHeap%3CT,+A%3E">RefUnwindSafe</a></li><li><a·href="#impl-Send-for-BinaryHeap%3CT,+A%3E">Send</a></li><li><a·href="#impl-Sync-for-BinaryHeap%3CT,+A%3E">Sync</a></li><li><a·href="#impl-Unpin-for-BinaryHeap%3CT,+A%3E">Unpin</a></li><li><a·href="#impl-UnwindSafe-for-BinaryHeap%3CT,+A%3E">UnwindSafe</a></li></ul><h3><a·href="#blanket-implementations">Blanket·Implementations</a></h3><ul·class="block·blanket-implementation"><li><a·href="#impl-Any-for-T">Any</a></li><li><a·href="#impl-Borrow%3CT%3E-for-T">Borrow&lt;T&gt;</a></li><li><a·href="#impl-BorrowMut%3CT%3E-for-T">BorrowMut&lt;T&gt;</a></li><li><a·href="#impl-From%3CT%3E-for-T">From&lt;T&gt;</a></li><li><a·href="#impl-Into%3CU%3E-for-T">Into&lt;U&gt;</a></li><li><a·href="#impl-ToOwned-for-T">ToOwned</a></li><li><a·href="#impl-TryFrom%3CU%3E-for-T">TryFrom&lt;U&gt;</a></li><li><a·href="#impl-TryInto%3CU%3E-for-T">TryInto&lt;U&gt;</a></li></ul></section><h2><a·href="index.html">In·alloc::collections::binary_heap</a></h2></div></nav><div·class="sidebar-resizer"></div>1 <!DOCTYPE·html><html·lang="en"><head><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.write(`<link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../../static.files/SourceSerif4-Regular-46f98efaafac5295.ttf.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../../static.files/FiraSans-Regular-018c141bf0843ffd.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../../static.files/FiraSans-Medium-8f9a781e4970d388.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../../static.files/SourceCodePro-Regular-562dcc5011b6de7d.ttf.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../../static.files/SourceCodePro-Semibold-d899c5a5c4aeb14a.ttf.woff2">`)</script><link·rel="stylesheet"·href="../../../static.files/normalize-76eba96aa4d2e634.css"><link·rel="stylesheet"·href="../../../static.files/rustdoc-35f9e32502181f1e.css"><meta·name="rustdoc-vars"·data-root-path="../../../"·data-static-root-path="../../../static.files/"·data-current-crate="alloc"·data-themes=""·data-resource-suffix="1.78.0"·data-rustdoc-version="1.78.0"·data-channel="1.78.0"·data-search-js="search-42d8da7a6b9792c2.js"·data-settings-js="settings-4313503d2e1961c2.js"·><script·src="../../../static.files/storage-4c98445ec4002617.js"></script><script·defer·src="sidebar-items1.78.0.js"></script><script·defer·src="../../../static.files/main-12cf3b4f4f9dc36d.js"></script><noscript><link·rel="stylesheet"·href="../../../static.files/noscript-04d5337699b92874.css"></noscript><link·rel="alternate·icon"·type="image/png"·href="../../../static.files/favicon-16x16-8b506e7a72182f1c.png"><link·rel="alternate·icon"·type="image/png"·href="../../../static.files/favicon-32x32-422f7d1d52889060.png"><link·rel="icon"·type="image/svg+xml"·href="../../../static.files/favicon-2c020d218678b618.svg"></head><body·class="rustdoc·struct"><!--[if·lte·IE·11]><div·class="warning">This·old·browser·is·unsupported·and·will·most·likely·display·funky·things.</div><![endif]--><nav·class="mobile-topbar"><button·class="sidebar-menu-toggle"·title="show·sidebar"></button><a·class="logo-container"·href="../../../alloc/index.html"><img·class="rust-logo"·src="../../../static.files/rust-logo-151179464ae7ed46.svg"·alt=""></a></nav><nav·class="sidebar"><div·class="sidebar-crate"><a·class="logo-container"·href="../../../alloc/index.html"><img·class="rust-logo"·src="../../../static.files/rust-logo-151179464ae7ed46.svg"·alt="logo"></a><h2><a·href="../../../alloc/index.html">alloc</a><span·class="version">1.78.0</span></h2></div><h2·class="location"><a·href="#">BinaryHeap</a></h2><div·class="sidebar-elems"><section><h3><a·href="#implementations">Methods</a></h3><ul·class="block·method"><li><a·href="#method.allocator">allocator</a></li><li><a·href="#method.append">append</a></li><li><a·href="#method.as_slice">as_slice</a></li><li><a·href="#method.capacity">capacity</a></li><li><a·href="#method.clear">clear</a></li><li><a·href="#method.drain">drain</a></li><li><a·href="#method.drain_sorted">drain_sorted</a></li><li><a·href="#method.into_iter_sorted">into_iter_sorted</a></li><li><a·href="#method.into_sorted_vec">into_sorted_vec</a></li><li><a·href="#method.into_vec">into_vec</a></li><li><a·href="#method.is_empty">is_empty</a></li><li><a·href="#method.iter">iter</a></li><li><a·href="#method.len">len</a></li><li><a·href="#method.new">new</a></li><li><a·href="#method.new_in">new_in</a></li><li><a·href="#method.peek">peek</a></li><li><a·href="#method.peek_mut">peek_mut</a></li><li><a·href="#method.pop">pop</a></li><li><a·href="#method.push">push</a></li><li><a·href="#method.reserve">reserve</a></li><li><a·href="#method.reserve_exact">reserve_exact</a></li><li><a·href="#method.retain">retain</a></li><li><a·href="#method.shrink_to">shrink_to</a></li><li><a·href="#method.shrink_to_fit">shrink_to_fit</a></li><li><a·href="#method.try_reserve">try_reserve</a></li><li><a·href="#method.try_reserve_exact">try_reserve_exact</a></li><li><a·href="#method.with_capacity">with_capacity</a></li><li><a·href="#method.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">Clone</a></li><li><a·href="#impl-Debug-for-BinaryHeap%3CT,+A%3E">Debug</a></li><li><a·href="#impl-Default-for-BinaryHeap%3CT%3E">Default</a></li><li><a·href="#impl-Extend%3C%26T%3E-for-BinaryHeap%3CT,+A%3E">Extend&lt;&amp;&#x27;a·T&gt;</a></li><li><a·href="#impl-Extend%3CT%3E-for-BinaryHeap%3CT,+A%3E">Extend&lt;T&gt;</a></li><li><a·href="#impl-From%3CBinaryHeap%3CT,+A%3E%3E-for-Vec%3CT,+A%3E">From&lt;BinaryHeap&lt;T,·A&gt;&gt;</a></li><li><a·href="#impl-From%3CVec%3CT,+A%3E%3E-for-BinaryHeap%3CT,+A%3E">From&lt;Vec&lt;T,·A&gt;&gt;</a></li><li><a·href="#impl-From%3C%5BT;+N%5D%3E-for-BinaryHeap%3CT%3E">From&lt;[T;·N]&gt;</a></li><li><a·href="#impl-FromIterator%3CT%3E-for-BinaryHeap%3CT%3E">FromIterator&lt;T&gt;</a></li><li><a·href="#impl-IntoIterator-for-%26BinaryHeap%3CT,+A%3E">IntoIterator</a></li><li><a·href="#impl-IntoIterator-for-BinaryHeap%3CT,+A%3E">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">Freeze</a></li><li><a·href="#impl-RefUnwindSafe-for-BinaryHeap%3CT,+A%3E">RefUnwindSafe</a></li><li><a·href="#impl-Send-for-BinaryHeap%3CT,+A%3E">Send</a></li><li><a·href="#impl-Sync-for-BinaryHeap%3CT,+A%3E">Sync</a></li><li><a·href="#impl-Unpin-for-BinaryHeap%3CT,+A%3E">Unpin</a></li><li><a·href="#impl-UnwindSafe-for-BinaryHeap%3CT,+A%3E">UnwindSafe</a></li></ul><h3><a·href="#blanket-implementations">Blanket·Implementations</a></h3><ul·class="block·blanket-implementation"><li><a·href="#impl-Any-for-T">Any</a></li><li><a·href="#impl-Borrow%3CT%3E-for-T">Borrow&lt;T&gt;</a></li><li><a·href="#impl-BorrowMut%3CT%3E-for-T">BorrowMut&lt;T&gt;</a></li><li><a·href="#impl-From%3CT%3E-for-T">From&lt;T&gt;</a></li><li><a·href="#impl-Into%3CU%3E-for-T">Into&lt;U&gt;</a></li><li><a·href="#impl-ToOwned-for-T">ToOwned</a></li><li><a·href="#impl-TryFrom%3CU%3E-for-T">TryFrom&lt;U&gt;</a></li><li><a·href="#impl-TryInto%3CU%3E-for-T">TryInto&lt;U&gt;</a></li></ul></section><h2><a·href="index.html">In·alloc::collections::binary_heap</a></h2></div></nav><div·class="sidebar-resizer"></div>
2 ····<main><div·class="width-limiter"><nav·class="sub"><form·class="search-form"><span></span><div·id="sidebar-button"·tabindex="-1"><a·href="../../../alloc/all.html"·title="show·sidebar"></a></div><input·class="search-input"·name="search"·aria-label="Run·search·in·the·documentation"·autocomplete="off"·spellcheck="false"·placeholder="Click·or·press·‘S’·to·search,·‘?’·for·more·options…"·type="search"><div·id="help-button"·tabindex="-1"><a·href="../../../help.html"·title="help">?</a></div><div·id="settings-menu"·tabindex="-1"><a·href="../../../settings.html"·title="settings"><img·width="22"·height="22"·alt="Change·settings"·src="../../../static.files/wheel-7b819b6101059cd0.svg"></a></div></form></nav><section·id="main-content"·class="content"><div·class="main-heading"><h1>Struct·<a·href="../../index.html">alloc</a>::<wbr><a·href="../index.html">collections</a>::<wbr><a·href="index.html">binary_heap</a>::<wbr><a·class="struct"·href="#">BinaryHeap</a><button·id="copy-path"·title="Copy·item·path·to·clipboard"><img·src="../../../static.files/clipboard-7571035ce49a181d.svg"·width="19"·height="18"·alt="Copy·item·path"></button></h1><span·class="out-of-band"><span·class="since"·title="Stable·since·Rust·version·1.0.0">1.0.0</span>···<a·class="src"·href="../../../src/alloc/collections/binary_heap/mod.rs.html#276-281">source</a>···<button·id="toggle-all-docs"·title="collapse·all·docs">[<span>&#x2212;</span>]</button></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 ····<main><div·class="width-limiter"><nav·class="sub"><form·class="search-form"><span></span><div·id="sidebar-button"·tabindex="-1"><a·href="../../../alloc/all.html"·title="show·sidebar"></a></div><input·class="search-input"·name="search"·aria-label="Run·search·in·the·documentation"·autocomplete="off"·spellcheck="false"·placeholder="Click·or·press·‘S’·to·search,·‘?’·for·more·options…"·type="search"><div·id="help-button"·tabindex="-1"><a·href="../../../help.html"·title="help">?</a></div><div·id="settings-menu"·tabindex="-1"><a·href="../../../settings.html"·title="settings"><img·width="22"·height="22"·alt="Change·settings"·src="../../../static.files/wheel-7b819b6101059cd0.svg"></a></div></form></nav><section·id="main-content"·class="content"><div·class="main-heading"><h1>Struct·<a·href="../../index.html">alloc</a>::<wbr><a·href="../index.html">collections</a>::<wbr><a·href="index.html">binary_heap</a>::<wbr><a·class="struct"·href="#">BinaryHeap</a><button·id="copy-path"·title="Copy·item·path·to·clipboard"><img·src="../../../static.files/clipboard-7571035ce49a181d.svg"·width="19"·height="18"·alt="Copy·item·path"></button></h1><span·class="out-of-band"><span·class="since"·title="Stable·since·Rust·version·1.0.0">1.0.0</span>···<a·class="src"·href="../../../src/alloc/collections/binary_heap/mod.rs.html#276-281">source</a>···<button·id="toggle-all-docs"·title="collapse·all·docs">[<span>&#x2212;</span>]</button></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>
3 <p>This·will·be·a·max-heap.</p>3 <p>This·will·be·a·max-heap.</p>
4 <p>It·is·a·logic·error·for·an·item·to·be·modified·in·such·a·way·that·the4 <p>It·is·a·logic·error·for·an·item·to·be·modified·in·such·a·way·that·the
5 item’s·ordering·relative·to·any·other·item,·as·determined·by·the·<a·href="../../../core/cmp/trait.Ord.html"·title="trait·core::cmp::Ord"><code>Ord</code></a>5 item’s·ordering·relative·to·any·other·item,·as·determined·by·the·<a·href="https://doc.rust-lang.org/1.78.0/core/cmp/trait.Ord.html"·title="trait·core::cmp::Ord"><code>Ord</code></a>
6 trait,·changes·while·it·is·in·the·heap.·This·is·normally·only·possible6 trait,·changes·while·it·is·in·the·heap.·This·is·normally·only·possible
7 through·interior·mutability,·global·state,·I/O,·or·unsafe·code.·The7 through·interior·mutability,·global·state,·I/O,·or·unsafe·code.·The
8 behavior·resulting·from·such·a·logic·error·is·not·specified,·but·will8 behavior·resulting·from·such·a·logic·error·is·not·specified,·but·will
9 be·encapsulated·to·the·<code>BinaryHeap</code>·that·observed·the·logic·error·and·not9 be·encapsulated·to·the·<code>BinaryHeap</code>·that·observed·the·logic·error·and·not
10 result·in·undefined·behavior.·This·could·include·panics,·incorrect·results,10 result·in·undefined·behavior.·This·could·include·panics,·incorrect·results,
11 aborts,·memory·leaks,·and·non-termination.</p>11 aborts,·memory·leaks,·and·non-termination.</p>
12 <p>As·long·as·no·elements·change·their·relative·order·while·being·in·the·heap12 <p>As·long·as·no·elements·change·their·relative·order·while·being·in·the·heap
Offset 57, 15 lines modifiedOffset 57, 15 lines modified
57 </span><span·class="macro">assert!</span>(heap.is_empty())</code></pre><a·class="test-arrow"·target="_blank"·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">Run</a></div>57 </span><span·class="macro">assert!</span>(heap.is_empty())</code></pre><a·class="test-arrow"·target="_blank"·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">Run</a></div>
58 <p>A·<code>BinaryHeap</code>·with·a·known·list·of·items·can·be·initialized·from·an·array:</p>58 <p>A·<code>BinaryHeap</code>·with·a·known·list·of·items·can·be·initialized·from·an·array:</p>
  
59 <div·class="example-wrap"><pre·class="rust·rust-example-rendered"><code><span·class="kw">use·</span>std::collections::BinaryHeap;59 <div·class="example-wrap"><pre·class="rust·rust-example-rendered"><code><span·class="kw">use·</span>std::collections::BinaryHeap;
  
60 <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"·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">Run</a></div>60 <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"·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">Run</a></div>
61 <h3·id="min-heap"><a·class="doc-anchor"·href="#min-heap">§</a>Min-heap</h3>61 <h3·id="min-heap"><a·class="doc-anchor"·href="#min-heap">§</a>Min-heap</h3>
62 <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·to62 <p>Either·<a·href="https://doc.rust-lang.org/1.78.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.78.0/core/cmp/trait.Ord.html"·title="trait·core::cmp::Ord"><code>Ord</code></a>·implementation·can·be·used·to
63 make·<code>BinaryHeap</code>·a·min-heap.·This·makes·<code>heap.pop()</code>·return·the·smallest63 make·<code>BinaryHeap</code>·a·min-heap.·This·makes·<code>heap.pop()</code>·return·the·smallest
64 value·instead·of·the·greatest·one.</p>64 value·instead·of·the·greatest·one.</p>
  
65 <div·class="example-wrap"><pre·class="rust·rust-example-rendered"><code><span·class="kw">use·</span>std::collections::BinaryHeap;65 <div·class="example-wrap"><pre·class="rust·rust-example-rendered"><code><span·class="kw">use·</span>std::collections::BinaryHeap;
66 <span·class="kw">use·</span>std::cmp::Reverse;66 <span·class="kw">use·</span>std::cmp::Reverse;
  
67 <span·class="kw">let·</span><span·class="kw-2">mut·</span>heap·=·BinaryHeap::new();67 <span·class="kw">let·</span><span·class="kw-2">mut·</span>heap·=·BinaryHeap::new();
Offset 82, 55 lines modifiedOffset 82, 55 lines modified
82 <span·class="macro">assert_eq!</span>(heap.pop(),·<span·class="prelude-val">None</span>);</code></pre><a·class="test-arrow"·target="_blank"·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">Run</a></div>82 <span·class="macro">assert_eq!</span>(heap.pop(),·<span·class="prelude-val">None</span>);</code></pre><a·class="test-arrow"·target="_blank"·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">Run</a></div>
83 <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 <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>
84 <tr><td><em>O</em>(1)~</td><td><em>O</em>(log(<em>n</em>))</td><td><em>O</em>(1)</td></tr>84 <tr><td><em>O</em>(1)~</td><td><em>O</em>(log(<em>n</em>))</td><td><em>O</em>(1)</td></tr>
85 </tbody></table>85 </tbody></table>
86 </div>86 </div>
87 <p>The·value·for·<code>push</code>·is·an·expected·cost;·the·method·documentation·gives·a87 <p>The·value·for·<code>push</code>·is·an·expected·cost;·the·method·documentation·gives·a
88 more·detailed·analysis.</p>88 more·detailed·analysis.</p>
89 </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#424-463">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="const·unstable">const:·<a·href="https://github.com/rust-lang/rust/issues/112353"·title="Tracking·issue·for·const_binary_heap_constructor">unstable</a></span>···<a·class="src"·href="../../../src/alloc/collections/binary_heap/mod.rs.html#439-441">source</a></span><h4·class="code-header">pub·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 </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#424-463">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.78.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="const·unstable">const:·<a·href="https://github.com/rust-lang/rust/issues/112353"·title="Tracking·issue·for·const_binary_heap_constructor">unstable</a></span>···<a·class="src"·href="../../../src/alloc/collections/binary_heap/mod.rs.html#439-441">source</a></span><h4·class="code-header">pub·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>
90 <h5·id="examples-1"><a·class="doc-anchor"·href="#examples-1">§</a>Examples</h5>90 <h5·id="examples-1"><a·class="doc-anchor"·href="#examples-1">§</a>Examples</h5>
91 <p>Basic·usage:</p>91 <p>Basic·usage:</p>
  
92 <div·class="example-wrap"><pre·class="rust·rust-example-rendered"><code><span·class="kw">use·</span>std::collections::BinaryHeap;92 <div·class="example-wrap"><pre·class="rust·rust-example-rendered"><code><span·class="kw">use·</span>std::collections::BinaryHeap;
93 <span·class="kw">let·</span><span·class="kw-2">mut·</span>heap·=·BinaryHeap::new();93 <span·class="kw">let·</span><span·class="kw-2">mut·</span>heap·=·BinaryHeap::new();
94 heap.push(<span·class="number">4</span>);</code></pre><a·class="test-arrow"·target="_blank"·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">Run</a></div>94 heap.push(<span·class="number">4</span>);</code></pre><a·class="test-arrow"·target="_blank"·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">Run</a></div>
95 </div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.with_capacity"·class="method"><a·class="src·rightside"·href="../../../src/alloc/collections/binary_heap/mod.rs.html#460-462">source</a><h4·class="code-header">pub·fn·<a·href="#method.with_capacity"·class="fn">with_capacity</a>(capacity:·<a·class="primitive"·href="../../../core/primitive.usize.html">usize</a>)·-&gt;·<a·class="struct"·href="struct.BinaryHeap.html"·title="struct·alloc::collections::binary_heap::BinaryHeap">BinaryHeap</a>&lt;T&gt;</h4></section></summary><div·class="docblock"><p>Creates·an·empty·<code>BinaryHeap</code>·with·at·least·the·specified·capacity.</p>95 </div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.with_capacity"·class="method"><a·class="src·rightside"·href="../../../src/alloc/collections/binary_heap/mod.rs.html#460-462">source</a><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.78.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>
96 <p>The·binary·heap·will·be·able·to·hold·at·least·<code>capacity</code>·elements·without96 <p>The·binary·heap·will·be·able·to·hold·at·least·<code>capacity</code>·elements·without
97 reallocating.·This·method·is·allowed·to·allocate·for·more·elements·than97 reallocating.·This·method·is·allowed·to·allocate·for·more·elements·than
98 <code>capacity</code>.·If·<code>capacity</code>·is·0,·the·binary·heap·will·not·allocate.</p>98 <code>capacity</code>.·If·<code>capacity</code>·is·0,·the·binary·heap·will·not·allocate.</p>
99 <h5·id="examples-2"><a·class="doc-anchor"·href="#examples-2">§</a>Examples</h5>99 <h5·id="examples-2"><a·class="doc-anchor"·href="#examples-2">§</a>Examples</h5>
100 <p>Basic·usage:</p>100 <p>Basic·usage:</p>
  
101 <div·class="example-wrap"><pre·class="rust·rust-example-rendered"><code><span·class="kw">use·</span>std::collections::BinaryHeap;101 <div·class="example-wrap"><pre·class="rust·rust-example-rendered"><code><span·class="kw">use·</span>std::collections::BinaryHeap;
102 <span·class="kw">let·</span><span·class="kw-2">mut·</span>heap·=·BinaryHeap::with_capacity(<span·class="number">10</span>);102 <span·class="kw">let·</span><span·class="kw-2">mut·</span>heap·=·BinaryHeap::with_capacity(<span·class="number">10</span>);
103 heap.push(<span·class="number">4</span>);</code></pre><a·class="test-arrow"·target="_blank"·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">Run</a></div>103 heap.push(<span·class="number">4</span>);</code></pre><a·class="test-arrow"·target="_blank"·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">Run</a></div>
104 </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#465-937">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"><span·class="rightside"><span·class="since"·title="const·unstable">const:·<a·href="https://github.com/rust-lang/rust/issues/112353"·title="Tracking·issue·for·const_binary_heap_constructor">unstable</a></span>···<a·class="src"·href="../../../src/alloc/collections/binary_heap/mod.rs.html#483-485">source</a></span><h4·class="code-header">pub·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 </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#465-937">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.78.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"><span·class="rightside"><span·class="since"·title="const·unstable">const:·<a·href="https://github.com/rust-lang/rust/issues/112353"·title="Tracking·issue·for·const_binary_heap_constructor">unstable</a></span>···<a·class="src"·href="../../../src/alloc/collections/binary_heap/mod.rs.html#483-485">source</a></span><h4·class="code-header">pub·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>
105 <h5·id="examples-3"><a·class="doc-anchor"·href="#examples-3">§</a>Examples</h5>105 <h5·id="examples-3"><a·class="doc-anchor"·href="#examples-3">§</a>Examples</h5>
106 <p>Basic·usage:</p>106 <p>Basic·usage:</p>
  
107 <div·class="example-wrap"><pre·class="rust·rust-example-rendered"><code><span·class="attr">#![feature(allocator_api)]107 <div·class="example-wrap"><pre·class="rust·rust-example-rendered"><code><span·class="attr">#![feature(allocator_api)]
  
108 </span><span·class="kw">use·</span>std::alloc::System;108 </span><span·class="kw">use·</span>std::alloc::System;
109 <span·class="kw">use·</span>std::collections::BinaryHeap;109 <span·class="kw">use·</span>std::collections::BinaryHeap;
110 <span·class="kw">let·</span><span·class="kw-2">mut·</span>heap·=·BinaryHeap::new_in(System);110 <span·class="kw">let·</span><span·class="kw-2">mut·</span>heap·=·BinaryHeap::new_in(System);
111 heap.push(<span·class="number">4</span>);</code></pre><a·class="test-arrow"·target="_blank"·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">Run</a></div>111 heap.push(<span·class="number">4</span>);</code></pre><a·class="test-arrow"·target="_blank"·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">Run</a></div>
112 </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#507-509">source</a><h4·class="code-header">pub·fn·<a·href="#method.with_capacity_in"·class="fn">with_capacity_in</a>(capacity:·<a·class="primitive"·href="../../../core/primitive.usize.html">usize</a>,·alloc:·A)·-&gt;·<a·class="struct"·href="struct.BinaryHeap.html"·title="struct·alloc::collections::binary_heap::BinaryHeap">BinaryHeap</a>&lt;T,·A&gt;</h4></section><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>allocator_api</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/32838">#32838</a>)</span></div></span></summary><div·class="docblock"><p>Creates·an·empty·<code>BinaryHeap</code>·with·at·least·the·specified·capacity,·using·<code>A</code>·as·allocator.</p>112 </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#507-509">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.78.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>
113 <p>The·binary·heap·will·be·able·to·hold·at·least·<code>capacity</code>·elements·without113 <p>The·binary·heap·will·be·able·to·hold·at·least·<code>capacity</code>·elements·without
114 reallocating.·This·method·is·allowed·to·allocate·for·more·elements·than114 reallocating.·This·method·is·allowed·to·allocate·for·more·elements·than
115 <code>capacity</code>.·If·<code>capacity</code>·is·0,·the·binary·heap·will·not·allocate.</p>115 <code>capacity</code>.·If·<code>capacity</code>·is·0,·the·binary·heap·will·not·allocate.</p>
116 <h5·id="examples-4"><a·class="doc-anchor"·href="#examples-4">§</a>Examples</h5>116 <h5·id="examples-4"><a·class="doc-anchor"·href="#examples-4">§</a>Examples</h5>
117 <p>Basic·usage:</p>117 <p>Basic·usage:</p>
  
118 <div·class="example-wrap"><pre·class="rust·rust-example-rendered"><code><span·class="attr">#![feature(allocator_api)]118 <div·class="example-wrap"><pre·class="rust·rust-example-rendered"><code><span·class="attr">#![feature(allocator_api)]
  
119 </span><span·class="kw">use·</span>std::alloc::System;119 </span><span·class="kw">use·</span>std::alloc::System;
120 <span·class="kw">use·</span>std::collections::BinaryHeap;120 <span·class="kw">use·</span>std::collections::BinaryHeap;
121 <span·class="kw">let·</span><span·class="kw-2">mut·</span>heap·=·BinaryHeap::with_capacity_in(<span·class="number">10</span>,·System);121 <span·class="kw">let·</span><span·class="kw-2">mut·</span>heap·=·BinaryHeap::with_capacity_in(<span·class="number">10</span>,·System);
122 heap.push(<span·class="number">4</span>);</code></pre><a·class="test-arrow"·target="_blank"·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">Run</a></div>122 heap.push(<span·class="number">4</span>);</code></pre><a·class="test-arrow"·target="_blank"·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">Run</a></div>
123 </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#542-544">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,·or123 </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#542-544">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.78.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
124 <code>None</code>·if·it·is·empty.</p>124 <code>None</code>·if·it·is·empty.</p>
125 <p>Note:·If·the·<code>PeekMut</code>·value·is·leaked,·some·heap·elements·might·get125 <p>Note:·If·the·<code>PeekMut</code>·value·is·leaked,·some·heap·elements·might·get
126 leaked·along·with·it,·but·the·remaining·elements·will·remain·a·valid126 leaked·along·with·it,·but·the·remaining·elements·will·remain·a·valid
127 heap.</p>127 heap.</p>
128 <h5·id="examples-5"><a·class="doc-anchor"·href="#examples-5">§</a>Examples</h5>128 <h5·id="examples-5"><a·class="doc-anchor"·href="#examples-5">§</a>Examples</h5>
129 <p>Basic·usage:</p>129 <p>Basic·usage:</p>
  
Offset 145, 15 lines modifiedOffset 145, 15 lines modified
145 ····<span·class="kw">let·</span><span·class="kw-2">mut·</span>val·=·heap.peek_mut().unwrap();145 ····<span·class="kw">let·</span><span·class="kw-2">mut·</span>val·=·heap.peek_mut().unwrap();
146 ····<span·class="kw-2">*</span>val·=·<span·class="number">0</span>;146 ····<span·class="kw-2">*</span>val·=·<span·class="number">0</span>;
147 }147 }
148 <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"·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">Run</a></div>148 <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"·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">Run</a></div>
149 <h5·id="time-complexity-1"><a·class="doc-anchor"·href="#time-complexity-1">§</a>Time·complexity</h5>149 <h5·id="time-complexity-1"><a·class="doc-anchor"·href="#time-complexity-1">§</a>Time·complexity</h5>
150 <p>If·the·item·is·modified·then·the·worst·case·time·complexity·is·<em>O</em>(log(<em>n</em>)),150 <p>If·the·item·is·modified·then·the·worst·case·time·complexity·is·<em>O</em>(log(<em>n</em>)),
151 otherwise·it’s·<em>O</em>(1).</p>151 otherwise·it’s·<em>O</em>(1).</p>
152 </div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.pop"·class="method"><a·class="src·rightside"·href="../../../src/alloc/collections/binary_heap/mod.rs.html#566-575">source</a><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·it152 </div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.pop"·class="method"><a·class="src·rightside"·href="../../../src/alloc/collections/binary_heap/mod.rs.html#566-575">source</a><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.78.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
153 is·empty.</p>153 is·empty.</p>
154 <h5·id="examples-6"><a·class="doc-anchor"·href="#examples-6">§</a>Examples</h5>154 <h5·id="examples-6"><a·class="doc-anchor"·href="#examples-6">§</a>Examples</h5>
155 <p>Basic·usage:</p>155 <p>Basic·usage:</p>
  
156 <div·class="example-wrap"><pre·class="rust·rust-example-rendered"><code><span·class="kw">use·</span>std::collections::BinaryHeap;156 <div·class="example-wrap"><pre·class="rust·rust-example-rendered"><code><span·class="kw">use·</span>std::collections::BinaryHeap;
157 <span·class="kw">let·</span><span·class="kw-2">mut·</span>heap·=·BinaryHeap::from([<span·class="number">1</span>,·<span·class="number">3</span>]);157 <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 195, 15 lines modifiedOffset 195, 15 lines modified
  
195 <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">4</span>,·<span·class="number">5</span>,·<span·class="number">7</span>]);195 <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">4</span>,·<span·class="number">5</span>,·<span·class="number">7</span>]);
196 heap.push(<span·class="number">6</span>);196 heap.push(<span·class="number">6</span>);
197 heap.push(<span·class="number">3</span>);197 heap.push(<span·class="number">3</span>);
  
198 <span·class="kw">let·</span>vec·=·heap.into_sorted_vec();198 <span·class="kw">let·</span>vec·=·heap.into_sorted_vec();
199 <span·class="macro">assert_eq!</span>(vec,·[<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>,·<span·class="number">6</span>,·<span·class="number">7</span>]);</code></pre><a·class="test-arrow"·target="_blank"·href="https://play.rust-lang.org/?code=%23!%5Ballow(unused)%5D%0Afn+main()+%7B%0A++++use+std::collections::BinaryHeap;%0A++++%0A++++let+mut+heap+=+BinaryHeap::from(%5B1,+2,+4,+5,+7%5D);%0A++++heap.push(6);%0A++++heap.push(3);%0A++++%0A++++let+vec+=+heap.into_sorted_vec();%0A++++assert_eq!(vec,+%5B1,+2,+3,+4,+5,+6,+7%5D);%0A%7D&amp;edition=2021">Run</a></div>199 <span·class="macro">assert_eq!</span>(vec,·[<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>,·<span·class="number">6</span>,·<span·class="number">7</span>]);</code></pre><a·class="test-arrow"·target="_blank"·href="https://play.rust-lang.org/?code=%23!%5Ballow(unused)%5D%0Afn+main()+%7B%0A++++use+std::collections::BinaryHeap;%0A++++%0A++++let+mut+heap+=+BinaryHeap::from(%5B1,+2,+4,+5,+7%5D);%0A++++heap.push(6);%0A++++heap.push(3);%0A++++%0A++++let+vec+=+heap.into_sorted_vec();%0A++++assert_eq!(vec,+%5B1,+2,+3,+4,+5,+6,+7%5D);%0A%7D&amp;edition=2021">Run</a></div>
200 </div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.append"·class="method"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.11.0">1.11.0</span>···<a·class="src"·href="../../../src/alloc/collections/binary_heap/mod.rs.html#857-867">source</a></span><h4·class="code-header">pub·fn·<a·href="#method.append"·class="fn">append</a>(&amp;mut·self,·other:·<a·class="primitive"·href="../../../core/primitive.reference.html">&amp;mut·Self</a>)</h4></section></summary><div·class="docblock"><p>Moves·all·the·elements·of·<code>other</code>·into·<code>self</code>,·leaving·<code>other</code>·empty.</p>200 </div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.append"·class="method"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.11.0">1.11.0</span>···<a·class="src"·href="../../../src/alloc/collections/binary_heap/mod.rs.html#857-867">source</a></span><h4·class="code-header">pub·fn·<a·href="#method.append"·class="fn">append</a>(&amp;mut·self,·other:·<a·class="primitive"·href="https://doc.rust-lang.org/1.78.0/core/primitive.reference.html">&amp;mut·Self</a>)</h4></section></summary><div·class="docblock"><p>Moves·all·the·elements·of·<code>other</code>·into·<code>self</code>,·leaving·<code>other</code>·empty.</p>
201 <h5·id="examples-9"><a·class="doc-anchor"·href="#examples-9">§</a>Examples</h5>201 <h5·id="examples-9"><a·class="doc-anchor"·href="#examples-9">§</a>Examples</h5>
202 <p>Basic·usage:</p>202 <p>Basic·usage:</p>
  
203 <div·class="example-wrap"><pre·class="rust·rust-example-rendered"><code><span·class="kw">use·</span>std::collections::BinaryHeap;203 <div·class="example-wrap"><pre·class="rust·rust-example-rendered"><code><span·class="kw">use·</span>std::collections::BinaryHeap;
  
204 <span·class="kw">let·</span><span·class="kw-2">mut·</span>a·=·BinaryHeap::from([-<span·class="number">10</span>,·<span·class="number">1</span>,·<span·class="number">2</span>,·<span·class="number">3</span>,·<span·class="number">3</span>]);204 <span·class="kw">let·</span><span·class="kw-2">mut·</span>a·=·BinaryHeap::from([-<span·class="number">10</span>,·<span·class="number">1</span>,·<span·class="number">2</span>,·<span·class="number">3</span>,·<span·class="number">3</span>]);
205 <span·class="kw">let·</span><span·class="kw-2">mut·</span>b·=·BinaryHeap::from([-<span·class="number">20</span>,·<span·class="number">5</span>,·<span·class="number">43</span>]);205 <span·class="kw">let·</span><span·class="kw-2">mut·</span>b·=·BinaryHeap::from([-<span·class="number">20</span>,·<span·class="number">5</span>,·<span·class="number">43</span>]);
Offset 230, 15 lines modifiedOffset 230, 15 lines modified
  
230 <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="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>]);
231 <span·class="macro">assert_eq!</span>(heap.len(),·<span·class="number">5</span>);231 <span·class="macro">assert_eq!</span>(heap.len(),·<span·class="number">5</span>);
  
232 drop(heap.drain_sorted());·<span·class="comment">//·removes·all·elements·in·heap·order232 drop(heap.drain_sorted());·<span·class="comment">//·removes·all·elements·in·heap·order
233 </span><span·class="macro">assert_eq!</span>(heap.len(),·<span·class="number">0</span>);</code></pre><a·class="test-arrow"·target="_blank"·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">Run</a></div>233 </span><span·class="macro">assert_eq!</span>(heap.len(),·<span·class="number">0</span>);</code></pre><a·class="test-arrow"·target="_blank"·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">Run</a></div>
234 </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#919-936">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">where234 </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#919-936">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
235 ····F:·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(<a·class="primitive"·href="../../../core/primitive.reference.html">&amp;T</a>)·-&gt;·<a·class="primitive"·href="../../../core/primitive.bool.html">bool</a>,</div></h4></section></summary><div·class="docblock"><p>Retains·only·the·elements·specified·by·the·predicate.</p>235 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(<a·class="primitive"·href="https://doc.rust-lang.org/1.78.0/core/primitive.reference.html">&amp;T</a>)·-&gt;·<a·class="primitive"·href="[·...·truncated·by·diffoscope;·len:·32,·SHA:·63d052a8ced32bf927ffadd7e884c08caf4970e85dfdf6be0e568d49b174da96·...·]/core/primitive.bool.html">bool</a>,</div></h4></section></summary><div·class="docblock"><p>Retains·only·the·elements·specified·by·the·predicate.</p>
236 <p>In·other·words,·remove·all·elements·<code>e</code>·for·which·<code>f(&amp;e)</code>·returns236 <p>In·other·words,·remove·all·elements·<code>e</code>·for·which·<code>f(&amp;e)</code>·returns
237 <code>false</code>.·The·elements·are·visited·in·unsorted·(and·unspecified)·order.</p>237 <code>false</code>.·The·elements·are·visited·in·unsorted·(and·unspecified)·order.</p>
Max diff block lines reached; 128072/166354 bytes (76.99%) of diff not shown.
301 KB
./usr/share/doc/rust-web-doc/html/alloc/collections/binary_heap/struct.Drain.html
    
Offset 1, 220 lines modifiedOffset 1, 220 lines modified
1 <!DOCTYPE·html><html·lang="en"><head><meta·charset="utf-8"><meta·name="viewport"·content="width=device-width,·initial-scale=1.0"><meta·name="generator"·content="rustdoc"><meta·name="description"·content="A·draining·iterator·over·the·elements·of·a·`BinaryHeap`."><title>Drain·in·alloc::collections::binary_heap·-·Rust</title><script>·if·(window.location.protocol·!==·"file:")·document.write(`<link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../../static.files/SourceSerif4-Regular-46f98efaafac5295.ttf.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../../static.files/FiraSans-Regular-018c141bf0843ffd.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../../static.files/FiraSans-Medium-8f9a781e4970d388.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../../static.files/SourceCodePro-Regular-562dcc5011b6de7d.ttf.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../../static.files/SourceCodePro-Semibold-d899c5a5c4aeb14a.ttf.woff2">`)</script><link·rel="stylesheet"·href="../../../static.files/normalize-76eba96aa4d2e634.css"><link·rel="stylesheet"·href="../../../static.files/rustdoc-35f9e32502181f1e.css"><meta·name="rustdoc-vars"·data-root-path="../../../"·data-static-root-path="../../../static.files/"·data-current-crate="alloc"·data-themes=""·data-resource-suffix="1.78.0"·data-rustdoc-version="1.78.0"·data-channel="1.78.0"·data-search-js="search-42d8da7a6b9792c2.js"·data-settings-js="settings-4313503d2e1961c2.js"·><script·src="../../../static.files/storage-4c98445ec4002617.js"></script><script·defer·src="sidebar-items1.78.0.js"></script><script·defer·src="../../../static.files/main-12cf3b4f4f9dc36d.js"></script><noscript><link·rel="stylesheet"·href="../../../static.files/noscript-04d5337699b92874.css"></noscript><link·rel="alternate·icon"·type="image/png"·href="../../../static.files/favicon-16x16-8b506e7a72182f1c.png"><link·rel="alternate·icon"·type="image/png"·href="../../../static.files/favicon-32x32-422f7d1d52889060.png"><link·rel="icon"·type="image/svg+xml"·href="../../../static.files/favicon-2c020d218678b618.svg"></head><body·class="rustdoc·struct"><!--[if·lte·IE·11]><div·class="warning">This·old·browser·is·unsupported·and·will·most·likely·display·funky·things.</div><![endif]--><nav·class="mobile-topbar"><button·class="sidebar-menu-toggle"·title="show·sidebar"></button><a·class="logo-container"·href="../../../alloc/index.html"><img·class="rust-logo"·src="../../../static.files/rust-logo-151179464ae7ed46.svg"·alt=""></a></nav><nav·class="sidebar"><div·class="sidebar-crate"><a·class="logo-container"·href="../../../alloc/index.html"><img·class="rust-logo"·src="../../../static.files/rust-logo-151179464ae7ed46.svg"·alt="logo"></a><h2><a·href="../../../alloc/index.html">alloc</a><span·class="version">1.78.0</span></h2></div><h2·class="location"><a·href="#">Drain</a></h2><div·class="sidebar-elems"><section><h3><a·href="#implementations">Methods</a></h3><ul·class="block·method"><li><a·href="#method.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">Debug</a></li><li><a·href="#impl-DoubleEndedIterator-for-Drain%3C'_,+T,+A%3E">DoubleEndedIterator</a></li><li><a·href="#impl-ExactSizeIterator-for-Drain%3C'_,+T,+A%3E">ExactSizeIterator</a></li><li><a·href="#impl-FusedIterator-for-Drain%3C'_,+T,+A%3E">FusedIterator</a></li><li><a·href="#impl-Iterator-for-Drain%3C'_,+T,+A%3E">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">Freeze</a></li><li><a·href="#impl-RefUnwindSafe-for-Drain%3C'a,+T,+A%3E">RefUnwindSafe</a></li><li><a·href="#impl-Send-for-Drain%3C'a,+T,+A%3E">Send</a></li><li><a·href="#impl-Sync-for-Drain%3C'a,+T,+A%3E">Sync</a></li><li><a·href="#impl-Unpin-for-Drain%3C'a,+T,+A%3E">Unpin</a></li><li><a·href="#impl-UnwindSafe-for-Drain%3C'a,+T,+A%3E">UnwindSafe</a></li></ul><h3><a·href="#blanket-implementations">Blanket·Implementations</a></h3><ul·class="block·blanket-implementation"><li><a·href="#impl-Any-for-T">Any</a></li><li><a·href="#impl-Borrow%3CT%3E-for-T">Borrow&lt;T&gt;</a></li><li><a·href="#impl-BorrowMut%3CT%3E-for-T">BorrowMut&lt;T&gt;</a></li><li><a·href="#impl-From%3CT%3E-for-T">From&lt;T&gt;</a></li><li><a·href="#impl-Into%3CU%3E-for-T">Into&lt;U&gt;</a></li><li><a·href="#impl-IntoIterator-for-I">IntoIterator</a></li><li><a·href="#impl-TryFrom%3CU%3E-for-T">TryFrom&lt;U&gt;</a></li><li><a·href="#impl-TryInto%3CU%3E-for-T">TryInto&lt;U&gt;</a></li></ul></section><h2><a·href="index.html">In·alloc::collections::binary_heap</a></h2></div></nav><div·class="sidebar-resizer"></div>1 <!DOCTYPE·html><html·lang="en"><head><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.write(`<link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../../static.files/SourceSerif4-Regular-46f98efaafac5295.ttf.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../../static.files/FiraSans-Regular-018c141bf0843ffd.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../../static.files/FiraSans-Medium-8f9a781e4970d388.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../../static.files/SourceCodePro-Regular-562dcc5011b6de7d.ttf.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../../static.files/SourceCodePro-Semibold-d899c5a5c4aeb14a.ttf.woff2">`)</script><link·rel="stylesheet"·href="../../../static.files/normalize-76eba96aa4d2e634.css"><link·rel="stylesheet"·href="../../../static.files/rustdoc-35f9e32502181f1e.css"><meta·name="rustdoc-vars"·data-root-path="../../../"·data-static-root-path="../../../static.files/"·data-current-crate="alloc"·data-themes=""·data-resource-suffix="1.78.0"·data-rustdoc-version="1.78.0"·data-channel="1.78.0"·data-search-js="search-42d8da7a6b9792c2.js"·data-settings-js="settings-4313503d2e1961c2.js"·><script·src="../../../static.files/storage-4c98445ec4002617.js"></script><script·defer·src="sidebar-items1.78.0.js"></script><script·defer·src="../../../static.files/main-12cf3b4f4f9dc36d.js"></script><noscript><link·rel="stylesheet"·href="../../../static.files/noscript-04d5337699b92874.css"></noscript><link·rel="alternate·icon"·type="image/png"·href="../../../static.files/favicon-16x16-8b506e7a72182f1c.png"><link·rel="alternate·icon"·type="image/png"·href="../../../static.files/favicon-32x32-422f7d1d52889060.png"><link·rel="icon"·type="image/svg+xml"·href="../../../static.files/favicon-2c020d218678b618.svg"></head><body·class="rustdoc·struct"><!--[if·lte·IE·11]><div·class="warning">This·old·browser·is·unsupported·and·will·most·likely·display·funky·things.</div><![endif]--><nav·class="mobile-topbar"><button·class="sidebar-menu-toggle"·title="show·sidebar"></button><a·class="logo-container"·href="../../../alloc/index.html"><img·class="rust-logo"·src="../../../static.files/rust-logo-151179464ae7ed46.svg"·alt=""></a></nav><nav·class="sidebar"><div·class="sidebar-crate"><a·class="logo-container"·href="../../../alloc/index.html"><img·class="rust-logo"·src="../../../static.files/rust-logo-151179464ae7ed46.svg"·alt="logo"></a><h2><a·href="../../../alloc/index.html">alloc</a><span·class="version">1.78.0</span></h2></div><h2·class="location"><a·href="#">Drain</a></h2><div·class="sidebar-elems"><section><h3><a·href="#implementations">Methods</a></h3><ul·class="block·method"><li><a·href="#method.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">Debug</a></li><li><a·href="#impl-DoubleEndedIterator-for-Drain%3C'_,+T,+A%3E">DoubleEndedIterator</a></li><li><a·href="#impl-ExactSizeIterator-for-Drain%3C'_,+T,+A%3E">ExactSizeIterator</a></li><li><a·href="#impl-FusedIterator-for-Drain%3C'_,+T,+A%3E">FusedIterator</a></li><li><a·href="#impl-Iterator-for-Drain%3C'_,+T,+A%3E">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">Freeze</a></li><li><a·href="#impl-RefUnwindSafe-for-Drain%3C'a,+T,+A%3E">RefUnwindSafe</a></li><li><a·href="#impl-Send-for-Drain%3C'a,+T,+A%3E">Send</a></li><li><a·href="#impl-Sync-for-Drain%3C'a,+T,+A%3E">Sync</a></li><li><a·href="#impl-Unpin-for-Drain%3C'a,+T,+A%3E">Unpin</a></li><li><a·href="#impl-UnwindSafe-for-Drain%3C'a,+T,+A%3E">UnwindSafe</a></li></ul><h3><a·href="#blanket-implementations">Blanket·Implementations</a></h3><ul·class="block·blanket-implementation"><li><a·href="#impl-Any-for-T">Any</a></li><li><a·href="#impl-Borrow%3CT%3E-for-T">Borrow&lt;T&gt;</a></li><li><a·href="#impl-BorrowMut%3CT%3E-for-T">BorrowMut&lt;T&gt;</a></li><li><a·href="#impl-From%3CT%3E-for-T">From&lt;T&gt;</a></li><li><a·href="#impl-Into%3CU%3E-for-T">Into&lt;U&gt;</a></li><li><a·href="#impl-IntoIterator-for-I">IntoIterator</a></li><li><a·href="#impl-TryFrom%3CU%3E-for-T">TryFrom&lt;U&gt;</a></li><li><a·href="#impl-TryInto%3CU%3E-for-T">TryInto&lt;U&gt;</a></li></ul></section><h2><a·href="index.html">In·alloc::collections::binary_heap</a></h2></div></nav><div·class="sidebar-resizer"></div>
2 ····<main><div·class="width-limiter"><nav·class="sub"><form·class="search-form"><span></span><div·id="sidebar-button"·tabindex="-1"><a·href="../../../alloc/all.html"·title="show·sidebar"></a></div><input·class="search-input"·name="search"·aria-label="Run·search·in·the·documentation"·autocomplete="off"·spellcheck="false"·placeholder="Click·or·press·‘S’·to·search,·‘?’·for·more·options…"·type="search"><div·id="help-button"·tabindex="-1"><a·href="../../../help.html"·title="help">?</a></div><div·id="settings-menu"·tabindex="-1"><a·href="../../../settings.html"·title="settings"><img·width="22"·height="22"·alt="Change·settings"·src="../../../static.files/wheel-7b819b6101059cd0.svg"></a></div></form></nav><section·id="main-content"·class="content"><div·class="main-heading"><h1>Struct·<a·href="../../index.html">alloc</a>::<wbr><a·href="../index.html">collections</a>::<wbr><a·href="index.html">binary_heap</a>::<wbr><a·class="struct"·href="#">Drain</a><button·id="copy-path"·title="Copy·item·path·to·clipboard"><img·src="../../../static.files/clipboard-7571035ce49a181d.svg"·width="19"·height="18"·alt="Copy·item·path"></button></h1><span·class="out-of-band"><span·class="since"·title="Stable·since·Rust·version·1.6.0">1.6.0</span>···<a·class="src"·href="../../../src/alloc/collections/binary_heap/mod.rs.html#1644-1650">source</a>···<button·id="toggle-all-docs"·title="collapse·all·docs">[<span>&#x2212;</span>]</button></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 ····<main><div·class="width-limiter"><nav·class="sub"><form·class="search-form"><span></span><div·id="sidebar-button"·tabindex="-1"><a·href="../../../alloc/all.html"·title="show·sidebar"></a></div><input·class="search-input"·name="search"·aria-label="Run·search·in·the·documentation"·autocomplete="off"·spellcheck="false"·placeholder="Click·or·press·‘S’·to·search,·‘?’·for·more·options…"·type="search"><div·id="help-button"·tabindex="-1"><a·href="../../../help.html"·title="help">?</a></div><div·id="settings-menu"·tabindex="-1"><a·href="../../../settings.html"·title="settings"><img·width="22"·height="22"·alt="Change·settings"·src="../../../static.files/wheel-7b819b6101059cd0.svg"></a></div></form></nav><section·id="main-content"·class="content"><div·class="main-heading"><h1>Struct·<a·href="../../index.html">alloc</a>::<wbr><a·href="../index.html">collections</a>::<wbr><a·href="index.html">binary_heap</a>::<wbr><a·class="struct"·href="#">Drain</a><button·id="copy-path"·title="Copy·item·path·to·clipboard"><img·src="../../../static.files/clipboard-7571035ce49a181d.svg"·width="19"·height="18"·alt="Copy·item·path"></button></h1><span·class="out-of-band"><span·class="since"·title="Stable·since·Rust·version·1.6.0">1.6.0</span>···<a·class="src"·href="../../../src/alloc/collections/binary_heap/mod.rs.html#1644-1650">source</a>···<button·id="toggle-all-docs"·title="collapse·all·docs">[<span>&#x2212;</span>]</button></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>
3 <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·its3 <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
4 documentation·for·more.</p>4 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-Drain%3C'_,+T,+A%3E"·class="impl"><a·class="src·rightside"·href="../../../src/alloc/collections/binary_heap/mod.rs.html#1652-1658">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#1655-1657">source</a><h4·class="code-header">pub·fn·<a·href="#method.allocator"·class="fn">allocator</a>(&amp;self)·-&gt;·<a·class="primitive"·href="../../../core/primitive.reference.html">&amp;A</a></h4></section><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>allocator_api</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/32838">#32838</a>)</span></div></span></summary><div·class="docblock"><p>Returns·a·reference·to·the·underlying·allocator.</p>5 </div></details><h2·id="implementations"·class="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#1652-1658">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#1655-1657">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.78.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>
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-Drain%3C'a,+T,+A%3E"·class="impl"><a·class="src·rightside"·href="../../../src/alloc/collections/binary_heap/mod.rs.html#1643">source</a><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#1643">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"><a·class="src·rightside"·href="../../../src/alloc/collections/binary_heap/mod.rs.html#1676-1681">source</a><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:·3761372dc0d482e7df3f2e3a07b21d209cf042d6e3950398949e1257a7c7cdf1·...·]/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">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-Drain%3C'a,+T,+A%3E"·class="impl"><a·class="src·rightside"·href="../../../src/alloc/collections/binary_heap/mod.rs.html#1643">source</a><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#1643">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"><a·class="src·rightside"·href="../../../src/alloc/collections/binary_heap/mod.rs.html#1676-1681">source</a><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.78.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:·a91d7089246d9bcd4b61a1071f3ef31769afebb543e0c95a456375ec5abf8cea·...·]/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
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.78.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;·R,8 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(B,·Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·R,
9 ····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·takes9 ····R:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.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.7[·...·truncated·by·diffoscope;·len:·3,·SHA:·7b1bd53949b752d143d871408483b5382371b5bc48d195d0c040ec93cfa2748b·...·]/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
10 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:·b3a5d6383debff0cac836c5889a757f11b019bc049778c518e60e4d37a3c4da1·...·]/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">where10 elements·starting·from·the·back·of·the·iterator.·<a·href="https://doc.rust-lang.org/1.78.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:·d66ed7e195a53e9945339ef1976aed455dcf80228d8e5b7b0c69a64c3983fea1·...·]/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
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.78.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;·B,</div></h4></section></summary><div·class='docblock'>An·iterator·method·that·reduces·the·iterator’s·elements·to·a·single,12 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(B,·Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/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 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:·d11fd274e41827c1daee0c80a6ab5f978a613ab26297cb460535fef32cff8551·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;<div·class="where">where13 final·value,·starting·from·the·back.·<a·href="https://doc.rust-lang.org/1.78.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:·c264047794019a6dcf05728ba6a6ee1f8f07c7209958b3366ba94546b527ecdc·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</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.78.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
15 ····P:·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator:[·...·truncated·by·diffoscope;·len:·6186,·SHA:·c3aeb3841cd8f0747c22e3a6de2b40abf79fbd5365a45343f4b2e967c14e39b7·...·]/core/primitive.usize.html">usize</a>&gt;(15 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·6786,·SHA:·beb6a713dad64614d86ca92b59fd2f5be3d3cb916de4cc55fa3061422b9c03b5·...·]/core/primitive.usize.html">usize</a>&gt;(
16 ····&amp;mut·self16 ····&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::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">where17 )·-&gt;·<a·class="enum"·href="https://doc.rust-lang.org/1.78.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.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title=[·...·truncated·by·diffoscope;·len:·381,·SHA:·88c48923c9b7ea5cc47c1087c60e09656e81d4671c58071ba2bef826335388bc·...·]/core/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[·...·truncated·by·diffoscope;·len:·842,·SHA:·f7c1ca2ff3e425a8295c41d4d2fe540d4a3cb1e7032a9d04d8aed936964c71b6·...·]/core/primitive.usize.html">usize</a><div·class="where">where18 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></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:·89791450da70cbd536c3cf8fbf2dd9891668362f9a252d3ee098222d19960bae·...·]/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/t[·...·truncated·by·diffoscope;·len:·693,·SHA:·a0deafb68573233cf98843dcb8980b408fa28f99c350115f667afd7858ad6f7e·...·]/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.78.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:·84ae0beb16240102bae2355bb8c543b17f3f107e3c06b320839aa401eebb1945·...·]/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#metho[·...·truncated·by·diffoscope;·len:·3024,·SHA:·28bd88719f8c6dacf69b206ecda434ff3ac19011adf99793edd5fafa883cbd71·...·]/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.78.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.78.0/cor[·...·truncated·by·diffoscope;·len:·3504,·SHA:·6d21b6d637e0b2e9953a37a26fd19e00da089147d4acaf696c94d448de4ce419·...·]/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.78.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:·4ac7445a1207207aeda1789f31c5036d8905fa206c83a58ca48662c081a68134·...·]/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.78.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:·e83c903581753673e083ce8dd809879a2fc81ab3050eb6db267d7fa26b15e035·...·]/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.78.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:·10378641f30fbaa3b3d8ba8984f91955195f5a0ddb70a41cc9ff99666b50a36f·...·]/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.78.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.78.0/core/iter/traits/it[·...·truncated·by·diffoscope;·len:·1329,·SHA:·d9299c8edc606ed82f24d61ce441bec451141d684c2a9a75074f5b19c57f196c·...·]/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.78.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:·b9001dd3131b1425179c94853e1b90fff0f7169b9570e86cd50c6b7fbf1ee8a5·...·]/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.78.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:·98627729f77dcf1c9d258f343354ba600b7134c6b3929080f231e8de7155b70b·...·]/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.78.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.78.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.78.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:·fa2a17b1aaf7dbc4e89f728d099c0a475adcd5ff79e4791795d7c4df5fc2ccec·...·]/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.78.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:·7301b6beba7b6885849be90a625df68ef739a5374af456c51fe2e81d91a25363·...·]/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.78.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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::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:·d75758e0f8262eeea27445cec43f13d84f0c02ba4e03c0c54d041f9ab1965e0f·...·]/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.78.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:·98f6effefa44d759c249143d83623f0055d937382bfc398b7e1f5e92cd413657·...·]/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.78.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:·9009d5c023150c1a97b2d18e30d176e7ff2e48673ad0e4665367958e752bf827·...·]/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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·916,·SHA:·30d0b2a76513c5a880e9aee43e92b18805845cfcfe5783f62dc090167a439e63·...·]/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.78.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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·140,·SHA:·752f473b57e7444ebfddf5ea7fd40a332e83ec55524a6c31b5ee0f82a5dea819·...·]/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:·7c1da0b93b40e2b4f823a0d24b5a27f092ffdb68175a9c14fe21a97d84bb2244·...·]/core/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.78.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:·76aa2ad154f88085ee3f8a22721a7e6812680bac785d19059532407f50da1801·...·]/core/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.78.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:·96005685f2d5bf532d7af03cf747a50bdbe5efffccc579afe197789e4cd44a54·...·]/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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·1052,·SHA:·110b47c7083083d565fcfc89337fddc8e5c87e81b2f720f3f7b0ded55e8500fb·...·]/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.78.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:·02bccd69f3cf4a08b24b66a0c9afb8ac49ebd0e9a7d5a183641b471189a35df3·...·]/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.78.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:·8464264e074dde5d84f0414ab3b5b2d8da83f3c9e3ca04c45458241580a8c80d·...·]/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.78.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.78.0/core/iter/adapte[·...·truncated·by·diffoscope;·len:·175,·SHA:·16fe7225bf05b478e2828b347c3d23ded9a22f89d8887a2c65d9f7b3faf1b0e7·...·]/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:·60d233d0587f535c8bae5118522baa81ef2524d4168f9e142529a37902d8e8c4·...·]/core/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.78.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:·00ccbb673c11ed48d8c6aa2a3f8984fb298202e7bccfa42f1ac21290fcc0fb06·...·]/core/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.78.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:·0900235f7b60bdd90fbf9718324068ecf230199603f19da2c38cad64ed6915ff·...·]/core/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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·1234,·SHA:·3b805567411cdcebed740f9e8d400dbe7fb487504f40e284544a140155090fdf·...·]/core/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.78.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:·552b3dd2132886d024e4d5bd2554611e25c1f068adaaf23ecf80da81d31997ef·...·]/core/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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·1058,·SHA:·b390dbdda8d7e93604b5ecd906a93efd03fe19bdaf41cf12893fd361bf974307·...·]/core/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.78.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:·491a83328e39b23cf5191ed5cb6bf83f1a62c9405ed5c39c58117b227b39b16c·...·]/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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·1163,·SHA:·5772149166d344bf8fa5ebbd9db8693a8f2e5f031c50338e8f1523ef72f814d6·...·]/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:·e62b3f87b06b061e799e72ab8f04c531f1c6f241266260eaab33ea2b793dd8d2·...·]/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.78.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:·6216516fe581c401abda3c95818192e8f030e2008c9bbdbaafebba16f33ea9bd·...·]/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.78.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:·7d73eca41cdb0c170bd03419f3563f3fe9e70e11494db546e781d302d3cd5636·...·]/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.78.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:·485843399c56e24bdf020ff0610d0ce1f62fbac5530d9880a1a7417105e3d70f·...·]/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.78.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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(<a·class="primitive"·href="https://doc.rust-lang.org/1.78.0/core/primitive.reference.html">&amp;mut·St</a>,·Self::<a·class="associatedty[·...·truncated·by·diffoscope;·len:·449,·SHA:·f12c268a8a8111b9e7126ad78bf5523a63733caa63d187c4fe792309ea41acdf·...·]/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:·02034aae893b799fa017b2d71546332d96a823cd4ba05c14089559819f3dd720·...·]/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.78.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.78.0/core/iter/trai[·...·truncated·by·diffoscope;·len:·690,·SHA:·371190e5c1bf9b7dde6e84447965a69946212b977b9eb6d89048fbe34c5dda1c·...·]/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.78.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.78.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:·4d1f54658fd1c005b101a2e27b0da3c6ee0cbe2d891660c65470bfec01fa46f6·...·]/core/iter/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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·976,·SHA:·2a9182f6fe88e0b8a9b1ae1f46cace940cc0b8736033c354c0f0ccbf1c196e7a·...·]/core/iter/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.78.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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;[Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtyp[·...·truncated·by·diffoscope;·len:·135,·SHA:·0b06a6094d42ccbc8bce5b01c4383961fe7f1967f05e4c9f1ff33e71e425fb26·...·]/core/primitive.array.html">N</a>])·-&gt;·R,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iter_map_windows</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/87155">#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.78.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:·d83146d48347da8e04ce6fcac96b0b1500203504f596d32c16a5a1493dd375e1·...·]/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.78.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:·0d33056cee8a4f9b70b573c0adecc2f3599a2f8d9fa9f2c2044e9118ab134f73·...·]/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:·e9288f8d879e78d7e79eb2c4255eb99308efd98061b1221968fb17de11019b2e·...·]/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.78.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.78.0/core/op[·...·truncated·by·diffoscope;·len:·841,·SHA:·9cba1b175fb3726d7f1f01da9be7c1a56568a68e4ce7915a468b730902daf8d3·...·]/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.78.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:·790,·SHA:·19293cf7305d77d7ccd51618427cff5e3edb06f162c23796ed392e0ac792f65e·...·]/core/primitive.reference.html">&amp;mut·Self</a><div·class="where">where66 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·934,·SHA:·ea20d2e0fe9388580ea08100baa9120b5e9b6cb48f43fc846f15db8b9649e7f6·...·]/core/primitive.reference.html">&amp;mut·Self</a><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:·cf371b2193fdcddf87cfe994db4d3e364336bb766b15dcfdd0ac7aabbd72e715·...·]/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.78.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.78.0/core/it[·...·truncated·by·diffoscope;·len:·523,·SHA:·97064c705f6f4bdf74469c54fabcf580d21893127d1b4cd9a9c1018a717ef153·...·]/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.78.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.78.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:·d76c3fcf86c63211032a6b22dc5924ef552b1ad26b12e19f15d2f1d5b3d7e394·...·]/core/primitive.reference.html">&amp;mut·E</a><div·class="where">where69 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.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.78.0/core/iter/tr[·...·truncated·by·diffoscope;·len:·728,·SHA:·01937c2dc314c259495665570ae249c94b4a5b0719718f5f1188e6fc64ecf487·...·]/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.78.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.78.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:·fa6f33be71e9184cfecc555b0b832d1a929285d35b47b1212b2176ac555731a1·...·]/core/primitive.tuple.html">(B,·B)</a><div·class="where">where71 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></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:·00bd47017b1bdd1bbe2c3fc932d955a8aa2f7f5eff8c00e3001ae28a982a5883·...·]/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.78.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.78.0/core/default/trait.Default.html"·title="trait·core::default::Default">Default</a>·+·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/collect/trait.Extend.html"·title="trait·core::iter::traits::collec[·...·truncated·by·diffoscope;·len:·95,·SHA:·8b3be1d0042cae0550f865faf5849221240bdf04eb1b2107605b72d48c3ad29c·...·]/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:·281bbd5137cae68dd8057d013e9c9f311461e746663120304e3f6adace77f784·...·]/core/primitive.usize.html">usize</a><div·class="where">where74 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·995,·SHA:·bec3765fdab56713186e2454cd84738b5b28e3280a2f3d5a25cefdbc3089b520·...·]/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.78.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>·+·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/double_ended/trait.DoubleEndedIterator.html"·title="trait·core::iter::trai[·...·truncated·by·diffoscope;·len:·132,·SHA:·e5b2cf5f56946ede1e190ed09879c5821e2de04cf8e5d145142eeb40c6340982·...·]/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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(<a·class="primitive"·href="https://doc.rust-lang.org/1.78.0/core/primitive.reference.html">&amp;T</a>)·-&gt;·<a·class="primitive"·href="[·...·truncated·by·diffoscope;·len:·32,·SHA:·63d052a8ced32bf927ffadd7e884c08caf4970e85dfdf6be0e568d49b174da96·...·]/core/primitive.bool.html">bool</a>,</div></h4></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:·dc6a465df534b0392c5280e79e5249847890045561099b2cfc44bfabc4801d8d·...·]/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.78.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:·0c224636c18baa273f69de21f90083317f2ea0b7367a3f0d0f1c0ace55a36f79·...·]/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.78.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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·135,·SHA:·51ff5f5c7ebd8440623ea71b125c5a5837e809e308fe1a13fbe19cddb941dbd9·...·]/core/primitive.bool.html">bool</a>,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iter_is_partitioned</code>&nbsp;<a·href="https://github.com/rust-lang/rust/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:·bd8fce4ee431c619c98780c4d520e8db93f1e034f12843ffaff5744b7ce2190b·...·]/core/iter/traits/iterator/trait.Iterator.html#method.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.78.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:·2c74873f4e5ba70004a1c7edd1cc3f9e2d91271295dd1591e2d26848df4c02ba·...·]/core/iter/traits/iterator/trait.Iterator.html#method.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.78.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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(B,·Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.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.78.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:·7b4fc32e7634ae85c682a97099be267837713d7e4831893b617ca652f57a89da·...·]/core/iter/traits/iterator/trait.Iterator.html#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.78.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:·52912e82c4b0a760d06f77eb4ee3a59ba70dd76cb532954900c73ae94c652674·...·]/core/iter/traits/iterator/trait.Iterator.html#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.78.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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.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.78.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.78.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:·5cfb1ce7ac10ff40c8d1d0f019b60fc4735736254c2d8357ed62287e51b1ac32·...·]/core/iter/traits/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.78.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:·1d6c4809cea8748e901d3f94777f450d430f3161f6ac05ed1c178d9327f966a3·...·]/core/iter/traits/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.78.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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(B,·Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::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:·2c738ecc68200afa2467bef085de14dcb642dbaac77c4529948f5e259e66691d·...·]/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.78.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:·b60215068a6d9721be05f81098c51167d7138c4042f140cad42f77c4df43f597·...·]/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.78.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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·352,·SHA:·e7c3c296abe2c0a183967153e4ae7fd50bafa2ae7088e3e78b3b48fee253adc6·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::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:·c3f1d50e276def36966943119961a20b09cab3be33483fe4d48d7f322489534b·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_reduce"·class="fn">try_reduce</a>&lt;F,·R&gt;(96 operation.·<a·href="https://doc.rust-lang.org/1.78.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:·7a18fdd041b1a001b4a8feb289ee127fd9240232239269eb35dc3b8f74783ec9·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_reduce"·class="fn">try_reduce</a>&lt;F,·R&gt;(
97 ····&amp;mut·self,97 ····&amp;mut·self,
98 ····f:·F98 ····f:·F
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.78.0/core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&gt;::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/ops/try_trait/trait.Try.html#associatedtype.Residual"·title="type[·...·truncated·by·diffoscope;·len:·754,·SHA:·6fb4dfdb6b4da68921c1e7f8b75d99cf293d58318d684a840254ce9576957bea·...·]/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.78.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:·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:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·140,·SHA:·c27972e6fa3464c9476eaa185e8657edb6bb294f148403f3d079285294a9f909·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·R,
102 ····R:·<a·class="trait"·href="../../../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.78.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.78.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.78.0/core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&gt;::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/ops/try_trait/trait.Try.html#associatedtype.Residual"·title="type[·...·truncated·by·diffoscope;·len:·412,·SHA:·22b8cbb007e5cce82b9d13a65bfa56aa8d83c32541fac25f4d9b3857b0540908·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;&gt;,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iterator_try_reduce</code>&nbsp;<a·href="https://github.com/rust-lang/rust/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:·1a00be8efe0263bc0d09f5d47be04890b1d27a20c3429d1f4531805a03591fdb·...·]/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.78.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:·bc0d658d56e348823de15386e1cd4ab49109f3a7a055a4573a19391b47071193·...·]/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.78.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:·c15cbdf9d3f54700b6eac2f717541f7f5a3cf811d73f48ef7118096c1a240102·...·]/core/primitive.bool.html">bool</a><div·class="where">where106 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·1018,·SHA:·e61cd6bdd36729cc38e57fcaea2ccb91a23a5acbda3c8986071f19bf1ecfc52a·...·]/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.78.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:·80fef1533a0c8783ee74be0f29290d7dec960bcd19223b11639b3e6377220faa·...·]/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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·1172,·SHA:·e64ab74d116d286191ad43d9d9e10411fc011c23724aa806e9a8f9b0be0757e3·...·]/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.78.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:·f441e2966ff8db4214e57fcd74f81262d6e371aa51cea97ebde5921e81b4da79·...·]/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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·1051,·SHA:·ecc0b8fccd861464760f9ae047ff6ab98c91a1db010cb5fa59a8c2ab883db7c4·...·]/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.78.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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·130,·SHA:·130a13019dc175d02304b4f550157e2f13ac15c2f25a979c74161d10b146ab89·...·]/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:·ec4fb002625b166504031522e52a66812b279e6735a67cb718813205909c3fb7·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_find"·class="fn">try_find</a>&lt;F,·R&gt;(113 the·first·non-none·result.·<a·href="https://doc.rust-lang.org/1.78.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:·8ced1b10e78750774c5c8ed995ed83dcd13983aa75d329acf8069da106ab9f4a·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_find"·class="fn">try_find</a>&lt;F,·R&gt;(
114 ····&amp;mut·self,114 ····&amp;mut·self,
115 ····f:·F115 ····f:·F
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.78.0/core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&gt;::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/ops/try_trait/trait.Try.html#associatedtype.Residual"·title="type[·...·truncated·by·diffoscope;·len:·626,·SHA:·95f9831257b68862cbcbf54f0ad2ff4e597a4c9f763112d1da8a0897dadcf872·...·]/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.78.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;·R,118 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·R,
119 ····R:·<a·class="trait"·href="../../../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.78.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.78.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.78.0/core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&gt;::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/ops/try_trait/trait.Try.html#associatedtype.Residual"·title="type[·...·truncated·by·diffoscope;·len:·412,·SHA:·22b8cbb007e5cce82b9d13a65bfa56aa8d83c32541fac25f4d9b3857b0540908·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;&gt;,</div></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.78.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:·fa9d94b216f6e4ce6035b4762e3bf17cb86a0272db0a55a056f05c68bcaeb0da·...·]/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.78.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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·1189,·SHA:·5d7c1922225f55c116c958103921a86cb5416f658d19ceb4428fb21528622af5·...·]/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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·135,·SHA:·51ff5f5c7ebd8440623ea71b125c5a5837e809e308fe1a13fbe19cddb941dbd9·...·]/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.78.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>·+·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/exact_size/trait.ExactSizeIterator.html"·title="trait·core::iter::traits::[·...·truncated·by·diffoscope;·len:·110,·SHA:·a8846fff2831d0de2de7dbb91c4e50f6f60fac276813cbaa471bf32fb45120d4·...·]/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"><a·class="src·rightside"·href="../../../src/[·...·truncated·by·diffoscope;·len:·425,·SHA:·4c49f4c6517f50ec367371f50746995684cc8b0a43bd359ebf7ced1209497bec·...·]/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.78.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"><a·class="src·rights[·...·truncated·by·diffoscope;·len:·545,·SHA:·ec58f5f16777227acedafad8adba3cad9291118a0b071a3065c6f3f75f50b3c5·...·]/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.78.0/core/cmp/trait.Ord.html"·title="trait·core::cmp::Ord">Ord</a>,
Max diff block lines reached; 80667/308490 bytes (26.15%) of diff not shown.
282 KB
./usr/share/doc/rust-web-doc/html/alloc/collections/binary_heap/struct.DrainSorted.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·draining·iterator·over·the·elements·of·a·`BinaryHeap`."><title>DrainSorted·in·alloc::collections::binary_heap·-·Rust</title><script>·if·(window.location.protocol·!==·"file:")·document.write(`<link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../../static.files/SourceSerif4-Regular-46f98efaafac5295.ttf.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../../static.files/FiraSans-Regular-018c141bf0843ffd.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../../static.files/FiraSans-Medium-8f9a781e4970d388.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../../static.files/SourceCodePro-Regular-562dcc5011b6de7d.ttf.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../../static.files/SourceCodePro-Semibold-d899c5a5c4aeb14a.ttf.woff2">`)</script><link·rel="stylesheet"·href="../../../static.files/normalize-76eba96aa4d2e634.css"><link·rel="stylesheet"·href="../../../static.files/rustdoc-35f9e32502181f1e.css"><meta·name="rustdoc-vars"·data-root-path="../../../"·data-static-root-path="../../../static.files/"·data-current-crate="alloc"·data-themes=""·data-resource-suffix="1.78.0"·data-rustdoc-version="1.78.0"·data-channel="1.78.0"·data-search-js="search-42d8da7a6b9792c2.js"·data-settings-js="settings-4313503d2e1961c2.js"·><script·src="../../../static.files/storage-4c98445ec4002617.js"></script><script·defer·src="sidebar-items1.78.0.js"></script><script·defer·src="../../../static.files/main-12cf3b4f4f9dc36d.js"></script><noscript><link·rel="stylesheet"·href="../../../static.files/noscript-04d5337699b92874.css"></noscript><link·rel="alternate·icon"·type="image/png"·href="../../../static.files/favicon-16x16-8b506e7a72182f1c.png"><link·rel="alternate·icon"·type="image/png"·href="../../../static.files/favicon-32x32-422f7d1d52889060.png"><link·rel="icon"·type="image/svg+xml"·href="../../../static.files/favicon-2c020d218678b618.svg"></head><body·class="rustdoc·struct"><!--[if·lte·IE·11]><div·class="warning">This·old·browser·is·unsupported·and·will·most·likely·display·funky·things.</div><![endif]--><nav·class="mobile-topbar"><button·class="sidebar-menu-toggle"·title="show·sidebar"></button><a·class="logo-container"·href="../../../alloc/index.html"><img·class="rust-logo"·src="../../../static.files/rust-logo-151179464ae7ed46.svg"·alt=""></a></nav><nav·class="sidebar"><div·class="sidebar-crate"><a·class="logo-container"·href="../../../alloc/index.html"><img·class="rust-logo"·src="../../../static.files/rust-logo-151179464ae7ed46.svg"·alt="logo"></a><h2><a·href="../../../alloc/index.html">alloc</a><span·class="version">1.78.0</span></h2></div><h2·class="location"><a·href="#">DrainSorted</a></h2><div·class="sidebar-elems"><section><h3><a·href="#implementations">Methods</a></h3><ul·class="block·method"><li><a·href="#method.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">Debug</a></li><li><a·href="#impl-Drop-for-DrainSorted%3C'a,+T,+A%3E">Drop</a></li><li><a·href="#impl-ExactSizeIterator-for-DrainSorted%3C'_,+T,+A%3E">ExactSizeIterator</a></li><li><a·href="#impl-FusedIterator-for-DrainSorted%3C'_,+T,+A%3E">FusedIterator</a></li><li><a·href="#impl-Iterator-for-DrainSorted%3C'_,+T,+A%3E">Iterator</a></li><li><a·href="#impl-TrustedLen-for-DrainSorted%3C'_,+T,+A%3E">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">!UnwindSafe</a></li><li><a·href="#impl-Freeze-for-DrainSorted%3C'a,+T,+A%3E">Freeze</a></li><li><a·href="#impl-RefUnwindSafe-for-DrainSorted%3C'a,+T,+A%3E">RefUnwindSafe</a></li><li><a·href="#impl-Send-for-DrainSorted%3C'a,+T,+A%3E">Send</a></li><li><a·href="#impl-Sync-for-DrainSorted%3C'a,+T,+A%3E">Sync</a></li><li><a·href="#impl-Unpin-for-DrainSorted%3C'a,+T,+A%3E">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">Any</a></li><li><a·href="#impl-Borrow%3CT%3E-for-T">Borrow&lt;T&gt;</a></li><li><a·href="#impl-BorrowMut%3CT%3E-for-T">BorrowMut&lt;T&gt;</a></li><li><a·href="#impl-From%3CT%3E-for-T">From&lt;T&gt;</a></li><li><a·href="#impl-Into%3CU%3E-for-T">Into&lt;U&gt;</a></li><li><a·href="#impl-IntoIterator-for-I">IntoIterator</a></li><li><a·href="#impl-TryFrom%3CU%3E-for-T">TryFrom&lt;U&gt;</a></li><li><a·href="#impl-TryInto%3CU%3E-for-T">TryInto&lt;U&gt;</a></li></ul></section><h2><a·href="index.html">In·alloc::collections::binary_heap</a></h2></div></nav><div·class="sidebar-resizer"></div>1 <!DOCTYPE·html><html·lang="en"><head><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.write(`<link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../../static.files/SourceSerif4-Regular-46f98efaafac5295.ttf.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../../static.files/FiraSans-Regular-018c141bf0843ffd.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../../static.files/FiraSans-Medium-8f9a781e4970d388.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../../static.files/SourceCodePro-Regular-562dcc5011b6de7d.ttf.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../../static.files/SourceCodePro-Semibold-d899c5a5c4aeb14a.ttf.woff2">`)</script><link·rel="stylesheet"·href="../../../static.files/normalize-76eba96aa4d2e634.css"><link·rel="stylesheet"·href="../../../static.files/rustdoc-35f9e32502181f1e.css"><meta·name="rustdoc-vars"·data-root-path="../../../"·data-static-root-path="../../../static.files/"·data-current-crate="alloc"·data-themes=""·data-resource-suffix="1.78.0"·data-rustdoc-version="1.78.0"·data-channel="1.78.0"·data-search-js="search-42d8da7a6b9792c2.js"·data-settings-js="settings-4313503d2e1961c2.js"·><script·src="../../../static.files/storage-4c98445ec4002617.js"></script><script·defer·src="sidebar-items1.78.0.js"></script><script·defer·src="../../../static.files/main-12cf3b4f4f9dc36d.js"></script><noscript><link·rel="stylesheet"·href="../../../static.files/noscript-04d5337699b92874.css"></noscript><link·rel="alternate·icon"·type="image/png"·href="../../../static.files/favicon-16x16-8b506e7a72182f1c.png"><link·rel="alternate·icon"·type="image/png"·href="../../../static.files/favicon-32x32-422f7d1d52889060.png"><link·rel="icon"·type="image/svg+xml"·href="../../../static.files/favicon-2c020d218678b618.svg"></head><body·class="rustdoc·struct"><!--[if·lte·IE·11]><div·class="warning">This·old·browser·is·unsupported·and·will·most·likely·display·funky·things.</div><![endif]--><nav·class="mobile-topbar"><button·class="sidebar-menu-toggle"·title="show·sidebar"></button><a·class="logo-container"·href="../../../alloc/index.html"><img·class="rust-logo"·src="../../../static.files/rust-logo-151179464ae7ed46.svg"·alt=""></a></nav><nav·class="sidebar"><div·class="sidebar-crate"><a·class="logo-container"·href="../../../alloc/index.html"><img·class="rust-logo"·src="../../../static.files/rust-logo-151179464ae7ed46.svg"·alt="logo"></a><h2><a·href="../../../alloc/index.html">alloc</a><span·class="version">1.78.0</span></h2></div><h2·class="location"><a·href="#">DrainSorted</a></h2><div·class="sidebar-elems"><section><h3><a·href="#implementations">Methods</a></h3><ul·class="block·method"><li><a·href="#method.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">Debug</a></li><li><a·href="#impl-Drop-for-DrainSorted%3C'a,+T,+A%3E">Drop</a></li><li><a·href="#impl-ExactSizeIterator-for-DrainSorted%3C'_,+T,+A%3E">ExactSizeIterator</a></li><li><a·href="#impl-FusedIterator-for-DrainSorted%3C'_,+T,+A%3E">FusedIterator</a></li><li><a·href="#impl-Iterator-for-DrainSorted%3C'_,+T,+A%3E">Iterator</a></li><li><a·href="#impl-TrustedLen-for-DrainSorted%3C'_,+T,+A%3E">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">!UnwindSafe</a></li><li><a·href="#impl-Freeze-for-DrainSorted%3C'a,+T,+A%3E">Freeze</a></li><li><a·href="#impl-RefUnwindSafe-for-DrainSorted%3C'a,+T,+A%3E">RefUnwindSafe</a></li><li><a·href="#impl-Send-for-DrainSorted%3C'a,+T,+A%3E">Send</a></li><li><a·href="#impl-Sync-for-DrainSorted%3C'a,+T,+A%3E">Sync</a></li><li><a·href="#impl-Unpin-for-DrainSorted%3C'a,+T,+A%3E">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">Any</a></li><li><a·href="#impl-Borrow%3CT%3E-for-T">Borrow&lt;T&gt;</a></li><li><a·href="#impl-BorrowMut%3CT%3E-for-T">BorrowMut&lt;T&gt;</a></li><li><a·href="#impl-From%3CT%3E-for-T">From&lt;T&gt;</a></li><li><a·href="#impl-Into%3CU%3E-for-T">Into&lt;U&gt;</a></li><li><a·href="#impl-IntoIterator-for-I">IntoIterator</a></li><li><a·href="#impl-TryFrom%3CU%3E-for-T">TryFrom&lt;U&gt;</a></li><li><a·href="#impl-TryInto%3CU%3E-for-T">TryInto&lt;U&gt;</a></li></ul></section><h2><a·href="index.html">In·alloc::collections::binary_heap</a></h2></div></nav><div·class="sidebar-resizer"></div>
2 ····<main><div·class="width-limiter"><nav·class="sub"><form·class="search-form"><span></span><div·id="sidebar-button"·tabindex="-1"><a·href="../../../alloc/all.html"·title="show·sidebar"></a></div><input·class="search-input"·name="search"·aria-label="Run·search·in·the·documentation"·autocomplete="off"·spellcheck="false"·placeholder="Click·or·press·‘S’·to·search,·‘?’·for·more·options…"·type="search"><div·id="help-button"·tabindex="-1"><a·href="../../../help.html"·title="help">?</a></div><div·id="settings-menu"·tabindex="-1"><a·href="../../../settings.html"·title="settings"><img·width="22"·height="22"·alt="Change·settings"·src="../../../static.files/wheel-7b819b6101059cd0.svg"></a></div></form></nav><section·id="main-content"·class="content"><div·class="main-heading"><h1>Struct·<a·href="../../index.html">alloc</a>::<wbr><a·href="../index.html">collections</a>::<wbr><a·href="index.html">binary_heap</a>::<wbr><a·class="struct"·href="#">DrainSorted</a><button·id="copy-path"·title="Copy·item·path·to·clipboard"><img·src="../../../static.files/clipboard-7571035ce49a181d.svg"·width="19"·height="18"·alt="Copy·item·path"></button></h1><span·class="out-of-band"><a·class="src"·href="../../../src/alloc/collections/binary_heap/mod.rs.html#1701-1707">source</a>···<button·id="toggle-all-docs"·title="collapse·all·docs">[<span>&#x2212;</span>]</button></span></div><pre·class="rust·item-decl"><code>pub·struct·DrainSorted&lt;'a,·T:·<a·class="trait"·href="../../../core/cmp/trait.Ord.html"·title="trait·core::cmp::Ord">Ord</a>,·A:·<a·class="trait"·href="../../alloc/trait.Allocator.html"·title="trait·alloc::alloc::Allocator">Allocator</a>·=·<a·class="struct"·href="../../alloc/struct.Global.html"·title="struct·alloc::alloc::Global">Global</a>&gt;·{·<span·class="comment">/*·private·fields·*/</span>·}</code></pre><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>binary_heap_drain_sorted</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/59278">#59278</a>)</span></div></span><details·class="toggle·top-doc"·open><summary·class="hideme"><span>Expand·description</span></summary><div·class="docblock"><p>A·draining·iterator·over·the·elements·of·a·<code>BinaryHeap</code>.</p>2 ····<main><div·class="width-limiter"><nav·class="sub"><form·class="search-form"><span></span><div·id="sidebar-button"·tabindex="-1"><a·href="../../../alloc/all.html"·title="show·sidebar"></a></div><input·class="search-input"·name="search"·aria-label="Run·search·in·the·documentation"·autocomplete="off"·spellcheck="false"·placeholder="Click·or·press·‘S’·to·search,·‘?’·for·more·options…"·type="search"><div·id="help-button"·tabindex="-1"><a·href="../../../help.html"·title="help">?</a></div><div·id="settings-menu"·tabindex="-1"><a·href="../../../settings.html"·title="settings"><img·width="22"·height="22"·alt="Change·settings"·src="../../../static.files/wheel-7b819b6101059cd0.svg"></a></div></form></nav><section·id="main-content"·class="content"><div·class="main-heading"><h1>Struct·<a·href="../../index.html">alloc</a>::<wbr><a·href="../index.html">collections</a>::<wbr><a·href="index.html">binary_heap</a>::<wbr><a·class="struct"·href="#">DrainSorted</a><button·id="copy-path"·title="Copy·item·path·to·clipboard"><img·src="../../../static.files/clipboard-7571035ce49a181d.svg"·width="19"·height="18"·alt="Copy·item·path"></button></h1><span·class="out-of-band"><a·class="src"·href="../../../src/alloc/collections/binary_heap/mod.rs.html#1701-1707">source</a>···<button·id="toggle-all-docs"·title="collapse·all·docs">[<span>&#x2212;</span>]</button></span></div><pre·class="rust·item-decl"><code>pub·struct·DrainSorted&lt;'a,·T:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.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>
3 <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·its3 <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
4 documentation·for·more.</p>4 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-DrainSorted%3C'a,+T,+A%3E"·class="impl"><a·class="src·rightside"·href="../../../src/alloc/collections/binary_heap/mod.rs.html#1709-1715">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:·74d334d42fc79fe8e416e8b5b02b3981e23d9328bfa3b864bda14ef670960ddf·...·]/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><h2·id="implementations"·class="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#1709-1715">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.78.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:·c27df857c6083fe7906ca5dd798c8f392c8ec48650b18ba7c405bba6131d73ef·...·]/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>
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-DrainSorted%3C'a,+T,+A%3E"·class="impl"><a·class="src·rightside"·href="../../../src/alloc/collections/binary_heap/mod.rs.html#1700">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:·0712b039ba177aac5f4ac8601c5f89e45e0d54c6c4890024f95c67afabf2b744·...·]/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></div><h2·id="trait-implementations"·class="section-header">Trait·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#1700">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.78.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:·1f15f85f8d4bc51bed396eb45ce8cdffc3b532277fd768bfd0b676b52653ac5c·...·]/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>
7 </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#1754">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:·5405,·SHA:·a50b16a3567656c341ba21fa2f38a6807f291a30b009bda1dbe6765aa95d3d2b·...·]/core/primitive.usize.html">usize</a>&gt;(7 </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#1754">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.78.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:·5981,·SHA:·f08c2a8ec3bb29b129760fab9927c8b5b143bc29829827405cb633c7ad84db3c·...·]/core/primitive.usize.html">usize</a>&gt;(
8 ····&amp;mut·self8 ····&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.78.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.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title=[·...·truncated·by·diffoscope;·len:·381,·SHA:·88c48923c9b7ea5cc47c1087c60e09656e81d4671c58071ba2bef826335388bc·...·]/core/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:·f7c1ca2ff3e425a8295c41d4d2fe540d4a3cb1e7032a9d04d8aed936964c71b6·...·]/core/primitive.usize.html">usize</a><div·class="where">where10 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></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:·89791450da70cbd536c3cf8fbf2dd9891668362f9a252d3ee098222d19960bae·...·]/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:·a0deafb68573233cf98843dcb8980b408fa28f99c350115f667afd7858ad6f7e·...·]/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.78.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:·84ae0beb16240102bae2355bb8c543b17f3f107e3c06b320839aa401eebb1945·...·]/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:·28bd88719f8c6dacf69b206ecda434ff3ac19011adf99793edd5fafa883cbd71·...·]/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.78.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.78.0/cor[·...·truncated·by·diffoscope;·len:·3504,·SHA:·6d21b6d637e0b2e9953a37a26fd19e00da089147d4acaf696c94d448de4ce419·...·]/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.78.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:·4ac7445a1207207aeda1789f31c5036d8905fa206c83a58ca48662c081a68134·...·]/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.78.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:·e83c903581753673e083ce8dd809879a2fc81ab3050eb6db267d7fa26b15e035·...·]/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.78.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:·10378641f30fbaa3b3d8ba8984f91955195f5a0ddb70a41cc9ff99666b50a36f·...·]/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.78.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.78.0/core/iter/traits/it[·...·truncated·by·diffoscope;·len:·1329,·SHA:·d9299c8edc606ed82f24d61ce441bec451141d684c2a9a75074f5b19c57f196c·...·]/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.78.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:·b9001dd3131b1425179c94853e1b90fff0f7169b9570e86cd50c6b7fbf1ee8a5·...·]/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.78.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:·98627729f77dcf1c9d258f343354ba600b7134c6b3929080f231e8de7155b70b·...·]/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.78.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.78.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.78.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:·fa2a17b1aaf7dbc4e89f728d099c0a475adcd5ff79e4791795d7c4df5fc2ccec·...·]/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.78.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:·7301b6beba7b6885849be90a625df68ef739a5374af456c51fe2e81d91a25363·...·]/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.78.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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::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:·d75758e0f8262eeea27445cec43f13d84f0c02ba4e03c0c54d041f9ab1965e0f·...·]/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.78.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:·98f6effefa44d759c249143d83623f0055d937382bfc398b7e1f5e92cd413657·...·]/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.78.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:·9009d5c023150c1a97b2d18e30d176e7ff2e48673ad0e4665367958e752bf827·...·]/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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·916,·SHA:·30d0b2a76513c5a880e9aee43e92b18805845cfcfe5783f62dc090167a439e63·...·]/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.78.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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·140,·SHA:·752f473b57e7444ebfddf5ea7fd40a332e83ec55524a6c31b5ee0f82a5dea819·...·]/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:·7c1da0b93b40e2b4f823a0d24b5a27f092ffdb68175a9c14fe21a97d84bb2244·...·]/core/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.78.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:·76aa2ad154f88085ee3f8a22721a7e6812680bac785d19059532407f50da1801·...·]/core/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.78.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:·96005685f2d5bf532d7af03cf747a50bdbe5efffccc579afe197789e4cd44a54·...·]/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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·1052,·SHA:·110b47c7083083d565fcfc89337fddc8e5c87e81b2f720f3f7b0ded55e8500fb·...·]/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.78.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:·02bccd69f3cf4a08b24b66a0c9afb8ac49ebd0e9a7d5a183641b471189a35df3·...·]/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.78.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:·8464264e074dde5d84f0414ab3b5b2d8da83f3c9e3ca04c45458241580a8c80d·...·]/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.78.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.78.0/core/iter/adapte[·...·truncated·by·diffoscope;·len:·175,·SHA:·16fe7225bf05b478e2828b347c3d23ded9a22f89d8887a2c65d9f7b3faf1b0e7·...·]/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:·60d233d0587f535c8bae5118522baa81ef2524d4168f9e142529a37902d8e8c4·...·]/core/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.78.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:·00ccbb673c11ed48d8c6aa2a3f8984fb298202e7bccfa42f1ac21290fcc0fb06·...·]/core/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.78.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:·0900235f7b60bdd90fbf9718324068ecf230199603f19da2c38cad64ed6915ff·...·]/core/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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·1234,·SHA:·3b805567411cdcebed740f9e8d400dbe7fb487504f40e284544a140155090fdf·...·]/core/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.78.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:·552b3dd2132886d024e4d5bd2554611e25c1f068adaaf23ecf80da81d31997ef·...·]/core/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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·1058,·SHA:·b390dbdda8d7e93604b5ecd906a93efd03fe19bdaf41cf12893fd361bf974307·...·]/core/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.78.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:·491a83328e39b23cf5191ed5cb6bf83f1a62c9405ed5c39c58117b227b39b16c·...·]/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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·1163,·SHA:·5772149166d344bf8fa5ebbd9db8693a8f2e5f031c50338e8f1523ef72f814d6·...·]/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:·e62b3f87b06b061e799e72ab8f04c531f1c6f241266260eaab33ea2b793dd8d2·...·]/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.78.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:·6216516fe581c401abda3c95818192e8f030e2008c9bbdbaafebba16f33ea9bd·...·]/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.78.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:·7d73eca41cdb0c170bd03419f3563f3fe9e70e11494db546e781d302d3cd5636·...·]/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.78.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:·485843399c56e24bdf020ff0610d0ce1f62fbac5530d9880a1a7417105e3d70f·...·]/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.78.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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(<a·class="primitive"·href="https://doc.rust-lang.org/1.78.0/core/primitive.reference.html">&amp;mut·St</a>,·Self::<a·class="associatedty[·...·truncated·by·diffoscope;·len:·449,·SHA:·f12c268a8a8111b9e7126ad78bf5523a63733caa63d187c4fe792309ea41acdf·...·]/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:·02034aae893b799fa017b2d71546332d96a823cd4ba05c14089559819f3dd720·...·]/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.78.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.78.0/core/iter/trai[·...·truncated·by·diffoscope;·len:·690,·SHA:·371190e5c1bf9b7dde6e84447965a69946212b977b9eb6d89048fbe34c5dda1c·...·]/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.78.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.78.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:·4d1f54658fd1c005b101a2e27b0da3c6ee0cbe2d891660c65470bfec01fa46f6·...·]/core/iter/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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·976,·SHA:·2a9182f6fe88e0b8a9b1ae1f46cace940cc0b8736033c354c0f0ccbf1c196e7a·...·]/core/iter/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.78.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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;[Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtyp[·...·truncated·by·diffoscope;·len:·135,·SHA:·0b06a6094d42ccbc8bce5b01c4383961fe7f1967f05e4c9f1ff33e71e425fb26·...·]/core/primitive.array.html">N</a>])·-&gt;·R,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iter_map_windows</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/87155">#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.78.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:·d83146d48347da8e04ce6fcac96b0b1500203504f596d32c16a5a1493dd375e1·...·]/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.78.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:·0d33056cee8a4f9b70b573c0adecc2f3599a2f8d9fa9f2c2044e9118ab134f73·...·]/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:·e9288f8d879e78d7e79eb2c4255eb99308efd98061b1221968fb17de11019b2e·...·]/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.78.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.78.0/core/op[·...·truncated·by·diffoscope;·len:·841,·SHA:·9cba1b175fb3726d7f1f01da9be7c1a56568a68e4ce7915a468b730902daf8d3·...·]/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.78.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:·790,·SHA:·19293cf7305d77d7ccd51618427cff5e3edb06f162c23796ed392e0ac792f65e·...·]/core/primitive.reference.html">&amp;mut·Self</a><div·class="where">where58 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·934,·SHA:·ea20d2e0fe9388580ea08100baa9120b5e9b6cb48f43fc846f15db8b9649e7f6·...·]/core/primitive.reference.html">&amp;mut·Self</a><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:·cf371b2193fdcddf87cfe994db4d3e364336bb766b15dcfdd0ac7aabbd72e715·...·]/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.78.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.78.0/core/it[·...·truncated·by·diffoscope;·len:·523,·SHA:·97064c705f6f4bdf74469c54fabcf580d21893127d1b4cd9a9c1018a717ef153·...·]/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.78.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.78.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:·d76c3fcf86c63211032a6b22dc5924ef552b1ad26b12e19f15d2f1d5b3d7e394·...·]/core/primitive.reference.html">&amp;mut·E</a><div·class="where">where61 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.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.78.0/core/iter/tr[·...·truncated·by·diffoscope;·len:·728,·SHA:·01937c2dc314c259495665570ae249c94b4a5b0719718f5f1188e6fc64ecf487·...·]/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.78.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.78.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:·fa6f33be71e9184cfecc555b0b832d1a929285d35b47b1212b2176ac555731a1·...·]/core/primitive.tuple.html">(B,·B)</a><div·class="where">where63 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></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:·00bd47017b1bdd1bbe2c3fc932d955a8aa2f7f5eff8c00e3001ae28a982a5883·...·]/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.78.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.78.0/core/default/trait.Default.html"·title="trait·core::default::Default">Default</a>·+·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/collect/trait.Extend.html"·title="trait·core::iter::traits::collec[·...·truncated·by·diffoscope;·len:·95,·SHA:·8b3be1d0042cae0550f865faf5849221240bdf04eb1b2107605b72d48c3ad29c·...·]/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:·f996a0de22717256dd2ecf4d61d81611f9c7dfe5a493e4b882abb4030f3c80f9·...·]/core/primitive.bool.html">bool</a><div·class="where">where66 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·972,·SHA:·6de765542031617a9c28ac98fe6df619e58e62d9c65ec5b1c185a7152b8944e5·...·]/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.78.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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·135,·SHA:·51ff5f5c7ebd8440623ea71b125c5a5837e809e308fe1a13fbe19cddb941dbd9·...·]/core/primitive.bool.html">bool</a>,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iter_is_partitioned</code>&nbsp;<a·href="https://github.com/rust-lang/rust/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:·bd8fce4ee431c619c98780c4d520e8db93f1e034f12843ffaff5744b7ce2190b·...·]/core/iter/traits/iterator/trait.Iterator.html#method.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.78.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:·2c74873f4e5ba70004a1c7edd1cc3f9e2d91271295dd1591e2d26848df4c02ba·...·]/core/iter/traits/iterator/trait.Iterator.html#method.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.78.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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(B,·Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.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.78.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:·7b4fc32e7634ae85c682a97099be267837713d7e4831893b617ca652f57a89da·...·]/core/iter/traits/iterator/trait.Iterator.html#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.78.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:·52912e82c4b0a760d06f77eb4ee3a59ba70dd76cb532954900c73ae94c652674·...·]/core/iter/traits/iterator/trait.Iterator.html#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.78.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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.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.78.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.78.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:·5cfb1ce7ac10ff40c8d1d0f019b60fc4735736254c2d8357ed62287e51b1ac32·...·]/core/iter/traits/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.78.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:·1d6c4809cea8748e901d3f94777f450d430f3161f6ac05ed1c178d9327f966a3·...·]/core/iter/traits/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.78.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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(B,·Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::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:·2c738ecc68200afa2467bef085de14dcb642dbaac77c4529948f5e259e66691d·...·]/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.78.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:·b60215068a6d9721be05f81098c51167d7138c4042f140cad42f77c4df43f597·...·]/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.78.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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·352,·SHA:·e7c3c296abe2c0a183967153e4ae7fd50bafa2ae7088e3e78b3b48fee253adc6·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::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:·c3f1d50e276def36966943119961a20b09cab3be33483fe4d48d7f322489534b·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_reduce"·class="fn">try_reduce</a>&lt;F,·R&gt;(83 operation.·<a·href="https://doc.rust-lang.org/1.78.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:·7a18fdd041b1a001b4a8feb289ee127fd9240232239269eb35dc3b8f74783ec9·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_reduce"·class="fn">try_reduce</a>&lt;F,·R&gt;(
84 ····&amp;mut·self,84 ····&amp;mut·self,
85 ····f:·F85 ····f:·F
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.78.0/core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&gt;::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/ops/try_trait/trait.Try.html#associatedtype.Residual"·title="type[·...·truncated·by·diffoscope;·len:·754,·SHA:·6fb4dfdb6b4da68921c1e7f8b75d99cf293d58318d684a840254ce9576957bea·...·]/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.78.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::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,88 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·140,·SHA:·c27972e6fa3464c9476eaa185e8657edb6bb294f148403f3d079285294a9f909·...·]/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·=·Self::<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 ····R:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.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.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;,
90 ····&lt;R·as·<a·class="trait"·href="../../../core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</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·the90 ····&lt;R·as·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&gt;::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/ops/try_trait/trait.Try.html#associatedtype.Residual"·title="type[·...·truncated·by·diffoscope;·len:·412,·SHA:·22b8cbb007e5cce82b9d13a65bfa56aa8d83c32541fac25f4d9b3857b0540908·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;&gt;,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iterator_try_reduce</code>&nbsp;<a·href="https://github.com/rust-lang/rust/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
91 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:·1a00be8efe0263bc0d09f5d47be04890b1d27a20c3429d1f4531805a03591fdb·...·]/core/primitive.bool.html">bool</a><div·class="where">where91 closure·returns·a·failure,·the·failure·is·propagated·back·to·the·caller·immediately.·<a·href="https://doc.rust-lang.org/1.78.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:·bc0d658d56e348823de15386e1cd4ab49109f3a7a055a4573a19391b47071193·...·]/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.78.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:·850,·SHA:·c15cbdf9d3f54700b6eac2f717541f7f5a3cf811d73f48ef7118096c1a240102·...·]/core/primitive.bool.html">bool</a><div·class="where">where93 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·1018,·SHA:·e61cd6bdd36729cc38e57fcaea2ccb91a23a5acbda3c8986071f19bf1ecfc52a·...·]/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.78.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:·980,·SHA:·80fef1533a0c8783ee74be0f29290d7dec960bcd19223b11639b3e6377220faa·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;<div·class="where">where95 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·1172,·SHA:·e64ab74d116d286191ad43d9d9e10411fc011c23724aa806e9a8f9b0be0757e3·...·]/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.78.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>(&amp;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:·f441e2966ff8db4214e57fcd74f81262d6e371aa51cea97ebde5921e81b4da79·...·]/core/option/enum.Option.html"·title="enum·core::option::Option">Option</a>&lt;B&gt;<div·class="where">where97 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·1051,·SHA:·ecc0b8fccd861464760f9ae047ff6ab98c91a1db010cb5fa59a8c2ab883db7c4·...·]/core/option/enum.Option.html"·title="enum·core::option::Option">Option</a>&lt;B&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.78.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::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·returns99 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·130,·SHA:·130a13019dc175d02304b4f550157e2f13ac15c2f25a979c74161d10b146ab89·...·]/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
100 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:·ec4fb002625b166504031522e52a66812b279e6735a67cb718813205909c3fb7·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_find"·class="fn">try_find</a>&lt;F,·R&gt;(100 the·first·non-none·result.·<a·href="https://doc.rust-lang.org/1.78.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:·8ced1b10e78750774c5c8ed995ed83dcd13983aa75d329acf8069da106ab9f4a·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_find"·class="fn">try_find</a>&lt;F,·R&gt;(
101 ····&amp;mut·self,101 ····&amp;mut·self,
102 ····f:·F102 ····f:·F
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</[·...·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">where103 )·-&gt;·&lt;&lt;R·as·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&gt;::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/ops/try_trait/trait.Try.html#associatedtype.Residual"·title="type[·...·truncated·by·diffoscope;·len:·626,·SHA:·95f9831257b68862cbcbf54f0ad2ff4e597a4c9f763112d1da8a0897dadcf872·...·]/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.78.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;·R,105 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·R,
106 ····R:·<a·class="trait"·href="../../../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;,106 ····R:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.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.78.0/core/primitive.bool.html">bool</a>&gt;,
107 ····&lt;R·as·<a·class="trait"·href="../../../core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</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·returns107 ····&lt;R·as·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&gt;::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/ops/try_trait/trait.Try.html#associatedtype.Residual"·title="type[·...·truncated·by·diffoscope;·len:·412,·SHA:·22b8cbb007e5cce82b9d13a65bfa56aa8d83c32541fac25f4d9b3857b0540908·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;&gt;,</div></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
108 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">where108 the·first·true·result·or·the·first·error.·<a·href="https://doc.rust-lang.org/1.78.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:·fa9d94b216f6e4ce6035b4762e3bf17cb86a0272db0a55a056f05c68bcaeb0da·...·]/core/primitive.usize.html">usize</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.78.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>(Self::<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">where110 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·1190,·SHA:·882e9e9a037f916d0ed4aa6d749399e6e01ca81811eacfc54a484818cb5d5029·...·]/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.78.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.78.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·maximum·value·from·the113 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/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
114 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">where114 specified·function.·<a·href="https://doc.rust-lang.org/1.78.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:·0367b1bacc0a7d8e05f1c5181f8c4ea428f3f11edbae0e76811f3ef1d4925e41·...·]/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.78.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·maximum·value·with·respect·to·the116 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·346,·SHA:·7113e4c2d65a123253bb18971efdc2d49241cfc2dd4c2b18e4cfa4e4d7d4140f·...·]/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
117 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">where117 specified·comparison·function.·<a·href="https://doc.rust-lang.org/1.78.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:·db89d4cca0becf2a4ab904adac2870de6fd83cfad5131f5a1431a67766274f81·...·]/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.78.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.78.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·minimum·value·from·the120 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/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
121 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">where121 specified·function.·<a·href="https://doc.rust-lang.org/1.78.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:·39ce6bc28062c0df48bff6a8faa3e4f2266988879092cf2970d2e9ee092742b0·...·]/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.78.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:[·...·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·the123 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·346,·SHA:·7113e4c2d65a123253bb18971efdc2d49241cfc2dd4c2b18e4cfa4e4d7d4140f·...·]/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
124 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">where124 specified·comparison·function.·<a·href="https://doc.rust-lang.org/1.78.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:·64f5ac8109ab8e5164c24b53640d938d0bb2486cf55faea0ff483f1e9ad27c8f·...·]/core/primitive.tuple.html">(FromA,·FromB)</a><div·class="where">where
125 ····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;,125 ····FromA:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/default/trait.Default.html"·title="trait·core::default::Default">Default</a>·+·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/collect/trait.Extend.html"·title="trait·core::iter::traits::collect::Extend">Extend</a>&lt;A&gt;,
126 ····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;,126 ····FromB:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/default/trait.Default.html"·title="trait·core::default::Default">Default</a>·+·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/collect/trait.Extend.html"·title="trait·core::iter::traits::collect::Extend">Extend</a>&lt;B&gt;,
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:·812,·SHA:·653aec8e646bd1e33f0a5bbac618099785271b214c53936117e7d07a68d11aa3·...·]/core/iter/adapters/copied/struct.Copied.html"·title="struct·core::iter::adapters::copied::Copied">Copied</a>&lt;Self&gt;<div·class="where">where127 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>·+·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html"·title="trait·core::iter::traits::iterator::I[·...·truncated·by·diffoscope;·len:·980,·SHA:·8f6df3c40809d9a55d4dab64faffa89b8268cb5f886608ccbcab921d7ab8e9fc·...·]/core/iter/adapters/copied/struct.Copied.html"·title="struct·core::iter::adapters::copied::Copied">Copied</a>&lt;Self&gt;<div·class="where">where
Max diff block lines reached; 82217/288308 bytes (28.52%) of diff not shown.
312 KB
./usr/share/doc/rust-web-doc/html/alloc/collections/binary_heap/struct.IntoIter.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·elements·of·a·`BinaryHeap`."><title>IntoIter·in·alloc::collections::binary_heap·-·Rust</title><script>·if·(window.location.protocol·!==·"file:")·document.write(`<link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../../static.files/SourceSerif4-Regular-46f98efaafac5295.ttf.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../../static.files/FiraSans-Regular-018c141bf0843ffd.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../../static.files/FiraSans-Medium-8f9a781e4970d388.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../../static.files/SourceCodePro-Regular-562dcc5011b6de7d.ttf.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../../static.files/SourceCodePro-Semibold-d899c5a5c4aeb14a.ttf.woff2">`)</script><link·rel="stylesheet"·href="../../../static.files/normalize-76eba96aa4d2e634.css"><link·rel="stylesheet"·href="../../../static.files/rustdoc-35f9e32502181f1e.css"><meta·name="rustdoc-vars"·data-root-path="../../../"·data-static-root-path="../../../static.files/"·data-current-crate="alloc"·data-themes=""·data-resource-suffix="1.78.0"·data-rustdoc-version="1.78.0"·data-channel="1.78.0"·data-search-js="search-42d8da7a6b9792c2.js"·data-settings-js="settings-4313503d2e1961c2.js"·><script·src="../../../static.files/storage-4c98445ec4002617.js"></script><script·defer·src="sidebar-items1.78.0.js"></script><script·defer·src="../../../static.files/main-12cf3b4f4f9dc36d.js"></script><noscript><link·rel="stylesheet"·href="../../../static.files/noscript-04d5337699b92874.css"></noscript><link·rel="alternate·icon"·type="image/png"·href="../../../static.files/favicon-16x16-8b506e7a72182f1c.png"><link·rel="alternate·icon"·type="image/png"·href="../../../static.files/favicon-32x32-422f7d1d52889060.png"><link·rel="icon"·type="image/svg+xml"·href="../../../static.files/favicon-2c020d218678b618.svg"></head><body·class="rustdoc·struct"><!--[if·lte·IE·11]><div·class="warning">This·old·browser·is·unsupported·and·will·most·likely·display·funky·things.</div><![endif]--><nav·class="mobile-topbar"><button·class="sidebar-menu-toggle"·title="show·sidebar"></button><a·class="logo-container"·href="../../../alloc/index.html"><img·class="rust-logo"·src="../../../static.files/rust-logo-151179464ae7ed46.svg"·alt=""></a></nav><nav·class="sidebar"><div·class="sidebar-crate"><a·class="logo-container"·href="../../../alloc/index.html"><img·class="rust-logo"·src="../../../static.files/rust-logo-151179464ae7ed46.svg"·alt="logo"></a><h2><a·href="../../../alloc/index.html">alloc</a><span·class="version">1.78.0</span></h2></div><h2·class="location"><a·href="#">IntoIter</a></h2><div·class="sidebar-elems"><section><h3><a·href="#implementations">Methods</a></h3><ul·class="block·method"><li><a·href="#method.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">Clone</a></li><li><a·href="#impl-Debug-for-IntoIter%3CT,+A%3E">Debug</a></li><li><a·href="#impl-Default-for-IntoIter%3CT%3E">Default</a></li><li><a·href="#impl-DoubleEndedIterator-for-IntoIter%3CT,+A%3E">DoubleEndedIterator</a></li><li><a·href="#impl-ExactSizeIterator-for-IntoIter%3CT,+A%3E">ExactSizeIterator</a></li><li><a·href="#impl-FusedIterator-for-IntoIter%3CT,+A%3E">FusedIterator</a></li><li><a·href="#impl-Iterator-for-IntoIter%3CT,+A%3E">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">Freeze</a></li><li><a·href="#impl-RefUnwindSafe-for-IntoIter%3CT,+A%3E">RefUnwindSafe</a></li><li><a·href="#impl-Send-for-IntoIter%3CT,+A%3E">Send</a></li><li><a·href="#impl-Sync-for-IntoIter%3CT,+A%3E">Sync</a></li><li><a·href="#impl-Unpin-for-IntoIter%3CT,+A%3E">Unpin</a></li><li><a·href="#impl-UnwindSafe-for-IntoIter%3CT,+A%3E">UnwindSafe</a></li></ul><h3><a·href="#blanket-implementations">Blanket·Implementations</a></h3><ul·class="block·blanket-implementation"><li><a·href="#impl-Any-for-T">Any</a></li><li><a·href="#impl-Borrow%3CT%3E-for-T">Borrow&lt;T&gt;</a></li><li><a·href="#impl-BorrowMut%3CT%3E-for-T">BorrowMut&lt;T&gt;</a></li><li><a·href="#impl-From%3CT%3E-for-T">From&lt;T&gt;</a></li><li><a·href="#impl-Into%3CU%3E-for-T">Into&lt;U&gt;</a></li><li><a·href="#impl-IntoIterator-for-I">IntoIterator</a></li><li><a·href="#impl-ToOwned-for-T">ToOwned</a></li><li><a·href="#impl-TryFrom%3CU%3E-for-T">TryFrom&lt;U&gt;</a></li><li><a·href="#impl-TryInto%3CU%3E-for-T">TryInto&lt;U&gt;</a></li></ul></section><h2><a·href="index.html">In·alloc::collections::binary_heap</a></h2></div></nav><div·class="sidebar-resizer"></div>1 <!DOCTYPE·html><html·lang="en"><head><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.write(`<link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../../static.files/SourceSerif4-Regular-46f98efaafac5295.ttf.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../../static.files/FiraSans-Regular-018c141bf0843ffd.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../../static.files/FiraSans-Medium-8f9a781e4970d388.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../../static.files/SourceCodePro-Regular-562dcc5011b6de7d.ttf.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../../static.files/SourceCodePro-Semibold-d899c5a5c4aeb14a.ttf.woff2">`)</script><link·rel="stylesheet"·href="../../../static.files/normalize-76eba96aa4d2e634.css"><link·rel="stylesheet"·href="../../../static.files/rustdoc-35f9e32502181f1e.css"><meta·name="rustdoc-vars"·data-root-path="../../../"·data-static-root-path="../../../static.files/"·data-current-crate="alloc"·data-themes=""·data-resource-suffix="1.78.0"·data-rustdoc-version="1.78.0"·data-channel="1.78.0"·data-search-js="search-42d8da7a6b9792c2.js"·data-settings-js="settings-4313503d2e1961c2.js"·><script·src="../../../static.files/storage-4c98445ec4002617.js"></script><script·defer·src="sidebar-items1.78.0.js"></script><script·defer·src="../../../static.files/main-12cf3b4f4f9dc36d.js"></script><noscript><link·rel="stylesheet"·href="../../../static.files/noscript-04d5337699b92874.css"></noscript><link·rel="alternate·icon"·type="image/png"·href="../../../static.files/favicon-16x16-8b506e7a72182f1c.png"><link·rel="alternate·icon"·type="image/png"·href="../../../static.files/favicon-32x32-422f7d1d52889060.png"><link·rel="icon"·type="image/svg+xml"·href="../../../static.files/favicon-2c020d218678b618.svg"></head><body·class="rustdoc·struct"><!--[if·lte·IE·11]><div·class="warning">This·old·browser·is·unsupported·and·will·most·likely·display·funky·things.</div><![endif]--><nav·class="mobile-topbar"><button·class="sidebar-menu-toggle"·title="show·sidebar"></button><a·class="logo-container"·href="../../../alloc/index.html"><img·class="rust-logo"·src="../../../static.files/rust-logo-151179464ae7ed46.svg"·alt=""></a></nav><nav·class="sidebar"><div·class="sidebar-crate"><a·class="logo-container"·href="../../../alloc/index.html"><img·class="rust-logo"·src="../../../static.files/rust-logo-151179464ae7ed46.svg"·alt="logo"></a><h2><a·href="../../../alloc/index.html">alloc</a><span·class="version">1.78.0</span></h2></div><h2·class="location"><a·href="#">IntoIter</a></h2><div·class="sidebar-elems"><section><h3><a·href="#implementations">Methods</a></h3><ul·class="block·method"><li><a·href="#method.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">Clone</a></li><li><a·href="#impl-Debug-for-IntoIter%3CT,+A%3E">Debug</a></li><li><a·href="#impl-Default-for-IntoIter%3CT%3E">Default</a></li><li><a·href="#impl-DoubleEndedIterator-for-IntoIter%3CT,+A%3E">DoubleEndedIterator</a></li><li><a·href="#impl-ExactSizeIterator-for-IntoIter%3CT,+A%3E">ExactSizeIterator</a></li><li><a·href="#impl-FusedIterator-for-IntoIter%3CT,+A%3E">FusedIterator</a></li><li><a·href="#impl-Iterator-for-IntoIter%3CT,+A%3E">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">Freeze</a></li><li><a·href="#impl-RefUnwindSafe-for-IntoIter%3CT,+A%3E">RefUnwindSafe</a></li><li><a·href="#impl-Send-for-IntoIter%3CT,+A%3E">Send</a></li><li><a·href="#impl-Sync-for-IntoIter%3CT,+A%3E">Sync</a></li><li><a·href="#impl-Unpin-for-IntoIter%3CT,+A%3E">Unpin</a></li><li><a·href="#impl-UnwindSafe-for-IntoIter%3CT,+A%3E">UnwindSafe</a></li></ul><h3><a·href="#blanket-implementations">Blanket·Implementations</a></h3><ul·class="block·blanket-implementation"><li><a·href="#impl-Any-for-T">Any</a></li><li><a·href="#impl-Borrow%3CT%3E-for-T">Borrow&lt;T&gt;</a></li><li><a·href="#impl-BorrowMut%3CT%3E-for-T">BorrowMut&lt;T&gt;</a></li><li><a·href="#impl-From%3CT%3E-for-T">From&lt;T&gt;</a></li><li><a·href="#impl-Into%3CU%3E-for-T">Into&lt;U&gt;</a></li><li><a·href="#impl-IntoIterator-for-I">IntoIterator</a></li><li><a·href="#impl-ToOwned-for-T">ToOwned</a></li><li><a·href="#impl-TryFrom%3CU%3E-for-T">TryFrom&lt;U&gt;</a></li><li><a·href="#impl-TryInto%3CU%3E-for-T">TryInto&lt;U&gt;</a></li></ul></section><h2><a·href="index.html">In·alloc::collections::binary_heap</a></h2></div></nav><div·class="sidebar-resizer"></div>
2 ····<main><div·class="width-limiter"><nav·class="sub"><form·class="search-form"><span></span><div·id="sidebar-button"·tabindex="-1"><a·href="../../../alloc/all.html"·title="show·sidebar"></a></div><input·class="search-input"·name="search"·aria-label="Run·search·in·the·documentation"·autocomplete="off"·spellcheck="false"·placeholder="Click·or·press·‘S’·to·search,·‘?’·for·more·options…"·type="search"><div·id="help-button"·tabindex="-1"><a·href="../../../help.html"·title="help">?</a></div><div·id="settings-menu"·tabindex="-1"><a·href="../../../settings.html"·title="settings"><img·width="22"·height="22"·alt="Change·settings"·src="../../../static.files/wheel-7b819b6101059cd0.svg"></a></div></form></nav><section·id="main-content"·class="content"><div·class="main-heading"><h1>Struct·<a·href="../../index.html">alloc</a>::<wbr><a·href="../index.html">collections</a>::<wbr><a·href="index.html">binary_heap</a>::<wbr><a·class="struct"·href="#">IntoIter</a><button·id="copy-path"·title="Copy·item·path·to·clipboard"><img·src="../../../static.files/clipboard-7571035ce49a181d.svg"·width="19"·height="18"·alt="Copy·item·path"></button></h1><span·class="out-of-band"><span·class="since"·title="Stable·since·Rust·version·1.0.0">1.0.0</span>···<a·class="src"·href="../../../src/alloc/collections/binary_heap/mod.rs.html#1492-1497">source</a>···<button·id="toggle-all-docs"·title="collapse·all·docs">[<span>&#x2212;</span>]</button></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 ····<main><div·class="width-limiter"><nav·class="sub"><form·class="search-form"><span></span><div·id="sidebar-button"·tabindex="-1"><a·href="../../../alloc/all.html"·title="show·sidebar"></a></div><input·class="search-input"·name="search"·aria-label="Run·search·in·the·documentation"·autocomplete="off"·spellcheck="false"·placeholder="Click·or·press·‘S’·to·search,·‘?’·for·more·options…"·type="search"><div·id="help-button"·tabindex="-1"><a·href="../../../help.html"·title="help">?</a></div><div·id="settings-menu"·tabindex="-1"><a·href="../../../settings.html"·title="settings"><img·width="22"·height="22"·alt="Change·settings"·src="../../../static.files/wheel-7b819b6101059cd0.svg"></a></div></form></nav><section·id="main-content"·class="content"><div·class="main-heading"><h1>Struct·<a·href="../../index.html">alloc</a>::<wbr><a·href="../index.html">collections</a>::<wbr><a·href="index.html">binary_heap</a>::<wbr><a·class="struct"·href="#">IntoIter</a><button·id="copy-path"·title="Copy·item·path·to·clipboard"><img·src="../../../static.files/clipboard-7571035ce49a181d.svg"·width="19"·height="18"·alt="Copy·item·path"></button></h1><span·class="out-of-band"><span·class="since"·title="Stable·since·Rust·version·1.0.0">1.0.0</span>···<a·class="src"·href="../../../src/alloc/collections/binary_heap/mod.rs.html#1492-1497">source</a>···<button·id="toggle-all-docs"·title="collapse·all·docs">[<span>&#x2212;</span>]</button></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>
3 <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 <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>
4 (provided·by·the·<a·href="../../../core/iter/traits/collect/trait.IntoIterator.html"·title="trait·core::iter::traits::collect::IntoIterator"><code>IntoIterator</code></a>·trait).·See·its·documentation·for·more.</p>4 (provided·by·the·<a·href="https://doc.rust-lang.org/1.78.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>
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-IntoIter%3CT,+A%3E"·class="impl"><a·class="src·rightside"·href="../../../src/alloc/collections/binary_heap/mod.rs.html#1499-1505">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#1502-1504">source</a><h4·class="code-header">pub·fn·<a·href="#method.allocator"·class="fn">allocator</a>(&amp;self)·-&gt;·<a·class="primitive"·href="../../../core/primitive.reference.html">&amp;A</a></h4></section><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>allocator_api</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/32838">#32838</a>)</span></div></span></summary><div·class="docblock"><p>Returns·a·reference·to·the·underlying·allocator.</p>5 </div></details><h2·id="implementations"·class="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#1499-1505">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#1502-1504">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.78.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>
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-Clone-for-IntoIter%3CT,+A%3E"·class="impl"><a·class="src·rightside"·href="../../../src/alloc/collections/binary_heap/mod.rs.html#1491">source</a><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:·0631ea824617980eac49898dba68c7077613c871ccf02df36c7108c794bbc822·...·]/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></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"><a·class="src·rightside"·href="../../../src/alloc/collections/binary_heap/mod.rs.html#1491">source</a><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.78.0/core/clone/trait.Clone.html"·title="trait·core::clone::Clone">Clone</a>,·A:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/clone/trait.Clone.html"·title="trait·core::clone::Clone">Clone</a>·+·<a·class="trait"·[·...·truncated·by·diffoscope;·len:·4710,·SHA:·97636404d7ec17648baeaa45021c1215a11117a68b08ac57d5d21aa1e78b343a·...·]/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>
  
7 <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 <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();
8 <span·class="macro">assert_eq!</span>(iter.len(),·<span·class="number">0</span>);</code></pre><a·class="test-arrow"·target="_blank"·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">Run</a></div>8 <span·class="macro">assert_eq!</span>(iter.len(),·<span·class="number">0</span>);</code></pre><a·class="test-arrow"·target="_blank"·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">Run</a></div>
9 </div></details></div></details><details·class="toggle·implementors-toggle"·open><summary><section·id="impl-DoubleEndedIterator-for-IntoIter%3CT,+A%3E"·class="impl"><a·class="src·rightside"·href="../../../src/alloc/collections/binary_heap/mod.rs.html#1530-1535">source</a><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:·e4b83426679c847a964f06e86ff49536d3825472564f1fe7fa3efc34a43ee841·...·]/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 </div></details></div></details><details·class="toggle·implementors-toggle"·open><summary><section·id="impl-DoubleEndedIterator-for-IntoIter%3CT,+A%3E"·class="impl"><a·class="src·rightside"·href="../../../src/alloc/collections/binary_heap/mod.rs.html#1530-1535">source</a><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.78.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:·b1a7f0ec2ff12797343105f366f29599414f222600c783e0c31ecd1392f758cf·...·]/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.78.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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(B,·Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.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.78.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.7[·...·truncated·by·diffoscope;·len:·3,·SHA:·7b1bd53949b752d143d871408483b5382371b5bc48d195d0c040ec93cfa2748b·...·]/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·clas[·...·truncated·by·diffoscope;·len:·253,·SHA:·b3a5d6383debff0cac836c5889a757f11b019bc049778c518e60e4d37a3c4da1·...·]/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.78.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:·d66ed7e195a53e9945339ef1976aed455dcf80228d8e5b7b0c69a64c3983fea1·...·]/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.78.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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(B,·Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/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="s[·...·truncated·by·diffoscope;·len:·545,·SHA:·d11fd274e41827c1daee0c80a6ab5f978a613ab26297cb460535fef32cff8551·...·]/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.78.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:·c264047794019a6dcf05728ba6a6ee1f8f07c7209958b3366ba94546b527ecdc·...·]/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.78.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:[·...·truncated·by·diffoscope;·len:·6096,·SHA:·feb95192b4348b8627491a5e6cdcbd295f88f37ec191a41285d4df5ce007ec5b·...·]/core/primitive.usize.html">usize</a>&gt;(18 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·6696,·SHA:·25d8e0fa1e1caca09bc14e8dffa174b1d7351d0318f9de250b672cf616b632a1·...·]/core/primitive.usize.html">usize</a>&gt;(
19 ····&amp;mut·self19 ····&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.78.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.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title=[·...·truncated·by·diffoscope;·len:·381,·SHA:·88c48923c9b7ea5cc47c1087c60e09656e81d4671c58071ba2bef826335388bc·...·]/core/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:·746,·SHA:·99cc415a31b91c57f7eeb82ad0d2d1ba424489bee49de37c86a4ea21c663ccda·...·]/core/primitive.usize.html">usize</a><div·class="where">where21 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experiment[·...·truncated·by·diffoscope;·len:·866,·SHA:·945d2d86f0c4c5ca3e3ee3b181d18b2bbea57ee1a5a7efe16c0c915a5bf2c3ad·...·]/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:·597,·SHA:·be3babc2f9096ec8bacc872099ff5a03375deb1461cf1d651cfbfb072fb72581·...·]/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.78.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:·741,·SHA:·f3078cc3fddd62af2c1a8814c5854bb49f40b79e4fbc9b3addf5862a72370f82·...·]/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#metho[·...·truncated·by·diffoscope;·len:·2928,·SHA:·dd9dc6c66a208fe3371784c1d048fbccf7b880bff34f93a1694f746d814568db·...·]/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.78.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.78.0/cor[·...·truncated·by·diffoscope;·len:·3408,·SHA:·b62c6ed65b31a8b555c142d9d15f3ce30e5c76ad2630a0e5a9b13cfd478c6eee·...·]/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.78.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"><a·class="src·rightside"·href="../../../src/core/it[·...·truncated·by·diffoscope;·len:·602,·SHA:·cfe4c4d300dddc2abdc2f8194eb969c68b2240c28239969b5be2af6a564ed8cc·...·]/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.78.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"><a·class="src·rightside"·hr[·...·truncated·by·diffoscope;·len:·746,·SHA:·f1f70d650c102c8658e13890c7dbfc87418f07e7b522246fb579ec434ef64f7c·...·]/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.78.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:·1041,·SHA:·a281d174c9671021427f0b458ac94e87746ac44730475aa725652c6c15e2b972·...·]/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.78.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.78.0/core/iter/traits/it[·...·truncated·by·diffoscope;·len:·1233,·SHA:·f677df2d893dfe0dc1a9d31ebb0ba71a346d265781813e0d664d3f18369b6163·...·]/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.78.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:·b9001dd3131b1425179c94853e1b90fff0f7169b9570e86cd50c6b7fbf1ee8a5·...·]/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.78.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:·98627729f77dcf1c9d258f343354ba600b7134c6b3929080f231e8de7155b70b·...·]/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.78.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.78.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.78.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"><a·class="src·rightside"·href="../../../src/[·...·truncated·by·diffoscope;·len:·279,·SHA:·f2c34c2e64e77c66684f837812ebc4a94c81b2ad5862cc0131f80c3ce89e008a·...·]/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.78.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"><a·class="src·rights[·...·truncated·by·diffoscope;·len:·375,·SHA:·58419346f92e1709dadb70cc3cf356e3cd27972451bdc6b4fc4267e6f7e8bdae·...·]/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.78.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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::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:·d75758e0f8262eeea27445cec43f13d84f0c02ba4e03c0c54d041f9ab1965e0f·...·]/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.78.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:·98f6effefa44d759c249143d83623f0055d937382bfc398b7e1f5e92cd413657·...·]/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.78.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:·676,·SHA:·9ae42ed293737a3dd44c1ee9d98c6aabb1552fbb9d203cb852ee9fcc7834a6ca·...·]/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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·820,·SHA:·a664bbcbc0891663662e4eb7b4394d0fcd72e568136fc4d34097fea242cc32e7·...·]/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.78.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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·140,·SHA:·752f473b57e7444ebfddf5ea7fd40a332e83ec55524a6c31b5ee0f82a5dea819·...·]/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"><a·class="src·rightside"·href="../../../src/cor[·...·truncated·by·diffoscope;·len:·297,·SHA:·f01e44d4caf6c6ad80b37656b9300f7111340711dcd74d70867b5a652dbfb538·...·]/core/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.78.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"><a·class="src·rightside[·...·truncated·by·diffoscope;·len:·393,·SHA:·2e2aa7c9c9c087e7b346da376749064ab8c1894795a2f0a0f646cdc8c7bea997·...·]/core/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.78.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:·788,·SHA:·b788f412af946d2bd7646ba39a8c316ebfa88109f9626dbad9bf9964f975cd0c·...·]/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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·956,·SHA:·faba0521e870dbbd26d466fadba3522e7d29013a9b86376fffafffac11a57e0e·...·]/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.78.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"><a·class="src·rightside"·href="../../../src/co[·...·truncated·by·diffoscope;·len:·276,·SHA:·e337ee1b810d3ec0480569c4ed323ebf0a2315c8ae3c522a73fcca3aa8e6efb3·...·]/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.78.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"><a·class="src·rightsid[·...·truncated·by·diffoscope;·len:·372,·SHA:·03eea0861575eb80d3f7a87a3ba747adb1a33fe7e9ce72aa2172e7a287c63a94·...·]/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.78.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.78.0/core/iter/adapte[·...·truncated·by·diffoscope;·len:·175,·SHA:·16fe7225bf05b478e2828b347c3d23ded9a22f89d8887a2c65d9f7b3faf1b0e7·...·]/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"><a·class="src·rightside"·href="../../../src/c[·...·truncated·by·diffoscope;·len:·306,·SHA:·a9bc004bf639fa188165a336061c6c98ec7ff9d266a18f10db200dfa9a880b88·...·]/core/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.78.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"><a·class="src·rightsi[·...·truncated·by·diffoscope;·len:·402,·SHA:·7689a974f800fd069d1b4453ef62d6d6ad1b654462d624d36e3672051d502030·...·]/core/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.78.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:·946,·SHA:·877b8718d9df1464a912dd50eef16402225367db4e4b26484b5ee20d30644524·...·]/core/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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·1138,·SHA:·f6ae06b7de8e94df014341c5cf589a5e4a1298367b2ef7a968ec499c5170a70e·...·]/core/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.78.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:·552b3dd2132886d024e4d5bd2554611e25c1f068adaaf23ecf80da81d31997ef·...·]/core/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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·1058,·SHA:·b390dbdda8d7e93604b5ecd906a93efd03fe19bdaf41cf12893fd361bf974307·...·]/core/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.78.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:·875,·SHA:·5c5c44422f75cbb66ebcf54bea70536713b810843cc484b051aed088c6422d78·...·]/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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·1067,·SHA:·415d32e1211c35d3bb405de1d6e51c2102c14cadc3333894f063148dbe0b1f69·...·]/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:·543,·SHA:·f199bafab360be9b80e9f45c5ba799a52348b742ddb0fa9afdb1624729c36e58·...·]/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.78.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:·687,·SHA:·7f5256104c35c5948a2cb42b55f3048c9d2887e48a4a8226537a284f959c562a·...·]/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.78.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"><a·class="src·rightside"·href="../../../src/core/iter/t[·...·truncated·by·diffoscope;·len:·296,·SHA:·aea014801138aeee574964545b1e9ad297288a120113db6844b569d2b183e0a7·...·]/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.78.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"><a·class="src·rightside"·href="[·...·truncated·by·diffoscope;·len:·392,·SHA:·4e7da68f7be2622ef173653eca78d58e1f202b544a2e6abd14d8335c298c93a7·...·]/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.78.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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(<a·class="primitive"·href="https://doc.rust-lang.org/1.78.0/core/primitive.reference.html">&amp;mut·St</a>,·Self::<a·class="associatedty[·...·truncated·by·diffoscope;·len:·449,·SHA:·f12c268a8a8111b9e7126ad78bf5523a63733caa63d187c4fe792309ea41acdf·...·]/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:·474,·SHA:·c0ed850df640319d919b8c053c540caa158602207623bed65abbcd69ad9d2c9d·...·]/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.78.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.78.0/core/iter/trai[·...·truncated·by·diffoscope;·len:·594,·SHA:·02960742fa7892efaa08f289ce85865fc5efb6a4cd138c22e3566ca6fc727d78·...·]/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.78.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.78.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:·4d1f54658fd1c005b101a2e27b0da3c6ee0cbe2d891660c65470bfec01fa46f6·...·]/core/iter/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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·976,·SHA:·2a9182f6fe88e0b8a9b1ae1f46cace940cc0b8736033c354c0f0ccbf1c196e7a·...·]/core/iter/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.78.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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;[Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtyp[·...·truncated·by·diffoscope;·len:·135,·SHA:·0b06a6094d42ccbc8bce5b01c4383961fe7f1967f05e4c9f1ff33e71e425fb26·...·]/core/primitive.array.html">N</a>])·-&gt;·R,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iter_map_windows</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/87155">#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.78.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"><a·class="src·rightside"·href="../../../src/core[·...·truncated·by·diffoscope;·len:·262,·SHA:·6125a8b2b88486b3735bbd00905fe9ae55b6eb1491c8a493be9c8121dc3cb440·...·]/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.78.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"><a·class="src·rightside"[·...·truncated·by·diffoscope;·len:·358,·SHA:·d91b2ab18e0ce069e262cf523c6ef961f56eecad042ea1e9bcefe33cff28fc8f·...·]/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:·601,·SHA:·bdf3796aa87e911258d56122ffdaa3f8591a5c9db4ed6fd89c3dfd3660787f78·...·]/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.78.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.78.0/core/op[·...·truncated·by·diffoscope;·len:·745,·SHA:·424783f22102f4446d3ad4d362b1aafdb7531fa777213f97ee138aa878f67bd1·...·]/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.78.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:·694,·SHA:·db4bb2630979aa4504432e8d422265d943c9063bcf3d2e3be970003014226f1e·...·]/core/primitive.reference.html">&amp;mut·Self</a><div·class="where">where69 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·838,·SHA:·9b4fd8df7f41e9a76fd4cfca0a233b74b9bd27c3fe8228248abc3f940425a3e3·...·]/core/primitive.reference.html">&amp;mut·Self</a><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:·331,·SHA:·d13641714c275840abbb473011613a4e19924a453f5e1b83912681a9b7c5579b·...·]/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.78.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.78.0/core/it[·...·truncated·by·diffoscope;·len:·427,·SHA:·ecfaaac5d1d10c1bc4fcee9a050af0a268bee0b528c2d8ea4e9774440bd8a279·...·]/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.78.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.78.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:·d76c3fcf86c63211032a6b22dc5924ef552b1ad26b12e19f15d2f1d5b3d7e394·...·]/core/primitive.reference.html">&amp;mut·E</a><div·class="where">where72 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.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.78.0/core/iter/tr[·...·truncated·by·diffoscope;·len:·728,·SHA:·01937c2dc314c259495665570ae249c94b4a5b0719718f5f1188e6fc64ecf487·...·]/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.78.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.78.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:·759,·SHA:·3cf174fac64a83c8e22066c3d77741118f89b13411537fc82c1004faa5c9e2ae·...·]/core/primitive.tuple.html">(B,·B)</a><div·class="where">where74 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experiment[·...·truncated·by·diffoscope;·len:·879,·SHA:·e773b2222c92d001e295030cb47a780ab0c1132d7fc8e9e3a98de4f532e6c520·...·]/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.78.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.78.0/core/default/trait.Default.html"·title="trait·core::default::Default">Default</a>·+·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/collect/trait.Extend.html"·title="trait·core::iter::traits::collec[·...·truncated·by·diffoscope;·len:·95,·SHA:·8b3be1d0042cae0550f865faf5849221240bdf04eb1b2107605b72d48c3ad29c·...·]/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:·281bbd5137cae68dd8057d013e9c9f311461e746663120304e3f6adace77f784·...·]/core/primitive.usize.html">usize</a><div·class="where">where77 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·995,·SHA:·bec3765fdab56713186e2454cd84738b5b28e3280a2f3d5a25cefdbc3089b520·...·]/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.78.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>·+·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/double_ended/trait.DoubleEndedIterator.html"·title="trait·core::iter::trai[·...·truncated·by·diffoscope;·len:·132,·SHA:·e5b2cf5f56946ede1e190ed09879c5821e2de04cf8e5d145142eeb40c6340982·...·]/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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(<a·class="primitive"·href="https://doc.rust-lang.org/1.78.0/core/primitive.reference.html">&amp;T</a>)·-&gt;·<a·class="primitive"·href="[·...·truncated·by·diffoscope;·len:·32,·SHA:·63d052a8ced32bf927ffadd7e884c08caf4970e85dfdf6be0e568d49b174da96·...·]/core/primitive.bool.html">bool</a>,</div></h4></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:·dc6a465df534b0392c5280e79e5249847890045561099b2cfc44bfabc4801d8d·...·]/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.78.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:·0c224636c18baa273f69de21f90083317f2ea0b7367a3f0d0f1c0ace55a36f79·...·]/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.78.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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·135,·SHA:·51ff5f5c7ebd8440623ea71b125c5a5837e809e308fe1a13fbe19cddb941dbd9·...·]/core/primitive.bool.html">bool</a>,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iter_is_partitioned</code>&nbsp;<a·href="https://github.com/rust-lang/rust/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:·bd8fce4ee431c619c98780c4d520e8db93f1e034f12843ffaff5744b7ce2190b·...·]/core/iter/traits/iterator/trait.Iterator.html#method.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.78.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:·2c74873f4e5ba70004a1c7edd1cc3f9e2d91271295dd1591e2d26848df4c02ba·...·]/core/iter/traits/iterator/trait.Iterator.html#method.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.78.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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(B,·Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.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.78.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:·7b4fc32e7634ae85c682a97099be267837713d7e4831893b617ca652f57a89da·...·]/core/iter/traits/iterator/trait.Iterator.html#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.78.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:·52912e82c4b0a760d06f77eb4ee3a59ba70dd76cb532954900c73ae94c652674·...·]/core/iter/traits/iterator/trait.Iterator.html#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.78.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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.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.78.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.78.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"><a·class="src·rightside"·href="../../../src/cor[·...·truncated·by·diffoscope;·len:·139,·SHA:·dc7fb7a70636459a0d7de28cbcb454050f39c184bab178c95c524a6eb9ca51cf·...·]/core/iter/traits/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.78.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"><a·class="src·rightside[·...·truncated·by·diffoscope;·len:·211,·SHA:·924e062acd8127e8d6158162219ee5d57a941854e14063d21d7768edae549431·...·]/core/iter/traits/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.78.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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(B,·Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::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:·2c738ecc68200afa2467bef085de14dcb642dbaac77c4529948f5e259e66691d·...·]/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.78.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:·b60215068a6d9721be05f81098c51167d7138c4042f140cad42f77c4df43f597·...·]/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.78.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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·352,·SHA:·e7c3c296abe2c0a183967153e4ae7fd50bafa2ae7088e3e78b3b48fee253adc6·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::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:·c3f1d50e276def36966943119961a20b09cab3be33483fe4d48d7f322489534b·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_reduce"·class="fn">try_reduce</a>&lt;F,·R&gt;(99 operation.·<a·href="https://doc.rust-lang.org/1.78.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:·7a18fdd041b1a001b4a8feb289ee127fd9240232239269eb35dc3b8f74783ec9·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_reduce"·class="fn">try_reduce</a>&lt;F,·R&gt;(
100 ····&amp;mut·self,100 ····&amp;mut·self,
101 ····f:·F101 ····f:·F
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.78.0/core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&gt;::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/ops/try_trait/trait.Try.html#associatedtype.Residual"·title="type[·...·truncated·by·diffoscope;·len:·754,·SHA:·6fb4dfdb6b4da68921c1e7f8b75d99cf293d58318d684a840254ce9576957bea·...·]/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.78.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:·68,·SHA:·e7e11f257edcac749a5883ad9a3aa42e6e965be419f967b36caa7afd3b36d7c9·...·]/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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·140,·SHA:·c27972e6fa3464c9476eaa185e8657edb6bb294f148403f3d079285294a9f909·...·]/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·=·Self::<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.78.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.78.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</[·...·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·the106 ····&lt;R·as·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&gt;::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/ops/try_trait/trait.Try.html#associatedtype.Residual"·title="type[·...·truncated·by·diffoscope;·len:·412,·SHA:·22b8cbb007e5cce82b9d13a65bfa56aa8d83c32541fac25f4d9b3857b0540908·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;&gt;,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iterator_try_reduce</code>&nbsp;<a·href="https://github.com/rust-lang/rust/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"><a·class="src·rightside"·href="../../../src/core/i[·...·truncated·by·diffoscope;·len:·284,·SHA:·fbacd9a305d3a60d42d9adcc5ea9e5f579f4ff5d970999f333eaf0c7f9baf66c·...·]/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.78.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"><a·class="src·rightside"·h[·...·truncated·by·diffoscope;·len:·380,·SHA:·29c4004d4d8b0c8c9dfe9023f8b2c5ef801d9dc4688893035d182c1ae774c453·...·]/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.78.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:·754,·SHA:·e3afac523bd4c054d94fbbb6c5c856ac78a6359550526fa0726732b36529c33d·...·]/core/primitive.bool.html">bool</a><div·class="where">where109 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·922,·SHA:·f4fd532c280e18f28bd6dda6c2a129e2e92114b67f27235bb5fd39f725be9c43·...·]/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.78.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:·884,·SHA:·32570d141a71827f9ac19bf566a51ca4814ccafaf6f8a961920ce107fe9657d7·...·]/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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·1076,·SHA:·2dd9de8adaee4a5ee96501d9a58bfac2fea00ba8d78b834bfca29949b3afe18b·...·]/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.78.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:[·...·truncated·by·diffoscope;·len:·883,·SHA:·f441e2966ff8db4214e57fcd74f81262d6e371aa51cea97ebde5921e81b4da79·...·]/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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·1051,·SHA:·ecc0b8fccd861464760f9ae047ff6ab98c91a1db010cb5fa59a8c2ab883db7c4·...·]/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.78.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::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·returns115 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·130,·SHA:·130a13019dc175d02304b4f550157e2f13ac15c2f25a979c74161d10b146ab89·...·]/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/cor[·...·truncated·by·diffoscope;·len:·143,·SHA:·ec4fb002625b166504031522e52a66812b279e6735a67cb718813205909c3fb7·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_find"·class="fn">try_find</a>&lt;F,·R&gt;(116 the·first·non-none·result.·<a·href="https://doc.rust-lang.org/1.78.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:·8ced1b10e78750774c5c8ed995ed83dcd13983aa75d329acf8069da106ab9f4a·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_find"·class="fn">try_find</a>&lt;F,·R&gt;(
117 ····&amp;mut·self,117 ····&amp;mut·self,
118 ····f:·F118 ····f:·F
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</[·...·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">where119 )·-&gt;·&lt;&lt;R·as·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&gt;::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/ops/try_trait/trait.Try.html#associatedtype.Residual"·title="type[·...·truncated·by·diffoscope;·len:·626,·SHA:·95f9831257b68862cbcbf54f0ad2ff4e597a4c9f763112d1da8a0897dadcf872·...·]/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.78.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::Iterator::Item">Item</a>)·-&gt;·R,121 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·R,
122 ····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;,122 ····R:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.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.78.0/core/primitive.bool.html">bool</a>&gt;,
123 ····&lt;R·as·<a·class="trait"·href="../../../core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</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·returns123 ····&lt;R·as·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&gt;::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/ops/try_trait/trait.Try.html#associatedtype.Residual"·title="type[·...·truncated·by·diffoscope;·len:·412,·SHA:·22b8cbb007e5cce82b9d13a65bfa56aa8d83c32541fac25f4d9b3857b0540908·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;&gt;,</div></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
124 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"><a·class="src·rightside"·href="../../../src/cor[·...·truncated·by·diffoscope;·len:·419,·SHA:·4337d283573b9683aaa605a7d2417318ef2a03902876e7da2ec26f2a5febf794·...·]/core/primitive.usize.html">usize</a>&gt;<div·class="where">where124 the·first·true·result·or·the·first·error.·<a·href="https://doc.rust-lang.org/1.78.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"><a·class="src·rightside[·...·truncated·by·diffoscope;·len:·539,·SHA:·04e329705f11ed9ec269a68b0b75ac4ab26c78e4316a571ee9336c28bbca6359·...·]/core/primitive.usize.html">usize</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.78.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
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::Iter[·...·truncated·by·diffoscope;·len:·901,·SHA:·a6eb7314148a1006184790a26873440fac678952c99874de84cb66644e250c0b·...·]/core/primitive.usize.html">usize</a>&gt;<div·class="where">where126 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·1093,·SHA:·623dbacabfe45799103c799fb60a4d212ceb8759ff853a11209a07793257c9cd·...·]/core/primitive.usize.html">usize</a>&gt;<div·class="where">where
Max diff block lines reached; 88083/318973 bytes (27.61%) of diff not shown.
291 KB
./usr/share/doc/rust-web-doc/html/alloc/collections/binary_heap/struct.IntoIterSorted.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="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.write(`<link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../../static.files/SourceSerif4-Regular-46f98efaafac5295.ttf.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../../static.files/FiraSans-Regular-018c141bf0843ffd.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../../static.files/FiraSans-Medium-8f9a781e4970d388.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../../static.files/SourceCodePro-Regular-562dcc5011b6de7d.ttf.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../../static.files/SourceCodePro-Semibold-d899c5a5c4aeb14a.ttf.woff2">`)</script><link·rel="stylesheet"·href="../../../static.files/normalize-76eba96aa4d2e634.css"><link·rel="stylesheet"·href="../../../static.files/rustdoc-35f9e32502181f1e.css"><meta·name="rustdoc-vars"·data-root-path="../../../"·data-static-root-path="../../../static.files/"·data-current-crate="alloc"·data-themes=""·data-resource-suffix="1.78.0"·data-rustdoc-version="1.78.0"·data-channel="1.78.0"·data-search-js="search-42d8da7a6b9792c2.js"·data-settings-js="settings-4313503d2e1961c2.js"·><script·src="../../../static.files/storage-4c98445ec4002617.js"></script><script·defer·src="sidebar-items1.78.0.js"></script><script·defer·src="../../../static.files/main-12cf3b4f4f9dc36d.js"></script><noscript><link·rel="stylesheet"·href="../../../static.files/noscript-04d5337699b92874.css"></noscript><link·rel="alternate·icon"·type="image/png"·href="../../../static.files/favicon-16x16-8b506e7a72182f1c.png"><link·rel="alternate·icon"·type="image/png"·href="../../../static.files/favicon-32x32-422f7d1d52889060.png"><link·rel="icon"·type="image/svg+xml"·href="../../../static.files/favicon-2c020d218678b618.svg"></head><body·class="rustdoc·struct"><!--[if·lte·IE·11]><div·class="warning">This·old·browser·is·unsupported·and·will·most·likely·display·funky·things.</div><![endif]--><nav·class="mobile-topbar"><button·class="sidebar-menu-toggle"·title="show·sidebar"></button><a·class="logo-container"·href="../../../alloc/index.html"><img·class="rust-logo"·src="../../../static.files/rust-logo-151179464ae7ed46.svg"·alt=""></a></nav><nav·class="sidebar"><div·class="sidebar-crate"><a·class="logo-container"·href="../../../alloc/index.html"><img·class="rust-logo"·src="../../../static.files/rust-logo-151179464ae7ed46.svg"·alt="logo"></a><h2><a·href="../../../alloc/index.html">alloc</a><span·class="version">1.78.0</span></h2></div><h2·class="location"><a·href="#">IntoIterSorted</a></h2><div·class="sidebar-elems"><section><h3><a·href="#implementations">Methods</a></h3><ul·class="block·method"><li><a·href="#method.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">Clone</a></li><li><a·href="#impl-Debug-for-IntoIterSorted%3CT,+A%3E">Debug</a></li><li><a·href="#impl-ExactSizeIterator-for-IntoIterSorted%3CT,+A%3E">ExactSizeIterator</a></li><li><a·href="#impl-FusedIterator-for-IntoIterSorted%3CT,+A%3E">FusedIterator</a></li><li><a·href="#impl-Iterator-for-IntoIterSorted%3CT,+A%3E">Iterator</a></li><li><a·href="#impl-TrustedLen-for-IntoIterSorted%3CT,+A%3E">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">Freeze</a></li><li><a·href="#impl-RefUnwindSafe-for-IntoIterSorted%3CT,+A%3E">RefUnwindSafe</a></li><li><a·href="#impl-Send-for-IntoIterSorted%3CT,+A%3E">Send</a></li><li><a·href="#impl-Sync-for-IntoIterSorted%3CT,+A%3E">Sync</a></li><li><a·href="#impl-Unpin-for-IntoIterSorted%3CT,+A%3E">Unpin</a></li><li><a·href="#impl-UnwindSafe-for-IntoIterSorted%3CT,+A%3E">UnwindSafe</a></li></ul><h3><a·href="#blanket-implementations">Blanket·Implementations</a></h3><ul·class="block·blanket-implementation"><li><a·href="#impl-Any-for-T">Any</a></li><li><a·href="#impl-Borrow%3CT%3E-for-T">Borrow&lt;T&gt;</a></li><li><a·href="#impl-BorrowMut%3CT%3E-for-T">BorrowMut&lt;T&gt;</a></li><li><a·href="#impl-From%3CT%3E-for-T">From&lt;T&gt;</a></li><li><a·href="#impl-Into%3CU%3E-for-T">Into&lt;U&gt;</a></li><li><a·href="#impl-IntoIterator-for-I">IntoIterator</a></li><li><a·href="#impl-ToOwned-for-T">ToOwned</a></li><li><a·href="#impl-TryFrom%3CU%3E-for-T">TryFrom&lt;U&gt;</a></li><li><a·href="#impl-TryInto%3CU%3E-for-T">TryInto&lt;U&gt;</a></li></ul></section><h2><a·href="index.html">In·alloc::collections::binary_heap</a></h2></div></nav><div·class="sidebar-resizer"></div>1 <!DOCTYPE·html><html·lang="en"><head><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.write(`<link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../../static.files/SourceSerif4-Regular-46f98efaafac5295.ttf.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../../static.files/FiraSans-Regular-018c141bf0843ffd.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../../static.files/FiraSans-Medium-8f9a781e4970d388.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../../static.files/SourceCodePro-Regular-562dcc5011b6de7d.ttf.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../../static.files/SourceCodePro-Semibold-d899c5a5c4aeb14a.ttf.woff2">`)</script><link·rel="stylesheet"·href="../../../static.files/normalize-76eba96aa4d2e634.css"><link·rel="stylesheet"·href="../../../static.files/rustdoc-35f9e32502181f1e.css"><meta·name="rustdoc-vars"·data-root-path="../../../"·data-static-root-path="../../../static.files/"·data-current-crate="alloc"·data-themes=""·data-resource-suffix="1.78.0"·data-rustdoc-version="1.78.0"·data-channel="1.78.0"·data-search-js="search-42d8da7a6b9792c2.js"·data-settings-js="settings-4313503d2e1961c2.js"·><script·src="../../../static.files/storage-4c98445ec4002617.js"></script><script·defer·src="sidebar-items1.78.0.js"></script><script·defer·src="../../../static.files/main-12cf3b4f4f9dc36d.js"></script><noscript><link·rel="stylesheet"·href="../../../static.files/noscript-04d5337699b92874.css"></noscript><link·rel="alternate·icon"·type="image/png"·href="../../../static.files/favicon-16x16-8b506e7a72182f1c.png"><link·rel="alternate·icon"·type="image/png"·href="../../../static.files/favicon-32x32-422f7d1d52889060.png"><link·rel="icon"·type="image/svg+xml"·href="../../../static.files/favicon-2c020d218678b618.svg"></head><body·class="rustdoc·struct"><!--[if·lte·IE·11]><div·class="warning">This·old·browser·is·unsupported·and·will·most·likely·display·funky·things.</div><![endif]--><nav·class="mobile-topbar"><button·class="sidebar-menu-toggle"·title="show·sidebar"></button><a·class="logo-container"·href="../../../alloc/index.html"><img·class="rust-logo"·src="../../../static.files/rust-logo-151179464ae7ed46.svg"·alt=""></a></nav><nav·class="sidebar"><div·class="sidebar-crate"><a·class="logo-container"·href="../../../alloc/index.html"><img·class="rust-logo"·src="../../../static.files/rust-logo-151179464ae7ed46.svg"·alt="logo"></a><h2><a·href="../../../alloc/index.html">alloc</a><span·class="version">1.78.0</span></h2></div><h2·class="location"><a·href="#">IntoIterSorted</a></h2><div·class="sidebar-elems"><section><h3><a·href="#implementations">Methods</a></h3><ul·class="block·method"><li><a·href="#method.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">Clone</a></li><li><a·href="#impl-Debug-for-IntoIterSorted%3CT,+A%3E">Debug</a></li><li><a·href="#impl-ExactSizeIterator-for-IntoIterSorted%3CT,+A%3E">ExactSizeIterator</a></li><li><a·href="#impl-FusedIterator-for-IntoIterSorted%3CT,+A%3E">FusedIterator</a></li><li><a·href="#impl-Iterator-for-IntoIterSorted%3CT,+A%3E">Iterator</a></li><li><a·href="#impl-TrustedLen-for-IntoIterSorted%3CT,+A%3E">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">Freeze</a></li><li><a·href="#impl-RefUnwindSafe-for-IntoIterSorted%3CT,+A%3E">RefUnwindSafe</a></li><li><a·href="#impl-Send-for-IntoIterSorted%3CT,+A%3E">Send</a></li><li><a·href="#impl-Sync-for-IntoIterSorted%3CT,+A%3E">Sync</a></li><li><a·href="#impl-Unpin-for-IntoIterSorted%3CT,+A%3E">Unpin</a></li><li><a·href="#impl-UnwindSafe-for-IntoIterSorted%3CT,+A%3E">UnwindSafe</a></li></ul><h3><a·href="#blanket-implementations">Blanket·Implementations</a></h3><ul·class="block·blanket-implementation"><li><a·href="#impl-Any-for-T">Any</a></li><li><a·href="#impl-Borrow%3CT%3E-for-T">Borrow&lt;T&gt;</a></li><li><a·href="#impl-BorrowMut%3CT%3E-for-T">BorrowMut&lt;T&gt;</a></li><li><a·href="#impl-From%3CT%3E-for-T">From&lt;T&gt;</a></li><li><a·href="#impl-Into%3CU%3E-for-T">Into&lt;U&gt;</a></li><li><a·href="#impl-IntoIterator-for-I">IntoIterator</a></li><li><a·href="#impl-ToOwned-for-T">ToOwned</a></li><li><a·href="#impl-TryFrom%3CU%3E-for-T">TryFrom&lt;U&gt;</a></li><li><a·href="#impl-TryInto%3CU%3E-for-T">TryInto&lt;U&gt;</a></li></ul></section><h2><a·href="index.html">In·alloc::collections::binary_heap</a></h2></div></nav><div·class="sidebar-resizer"></div>
2 ····<main><div·class="width-limiter"><nav·class="sub"><form·class="search-form"><span></span><div·id="sidebar-button"·tabindex="-1"><a·href="../../../alloc/all.html"·title="show·sidebar"></a></div><input·class="search-input"·name="search"·aria-label="Run·search·in·the·documentation"·autocomplete="off"·spellcheck="false"·placeholder="Click·or·press·‘S’·to·search,·‘?’·for·more·options…"·type="search"><div·id="help-button"·tabindex="-1"><a·href="../../../help.html"·title="help">?</a></div><div·id="settings-menu"·tabindex="-1"><a·href="../../../settings.html"·title="settings"><img·width="22"·height="22"·alt="Change·settings"·src="../../../static.files/wheel-7b819b6101059cd0.svg"></a></div></form></nav><section·id="main-content"·class="content"><div·class="main-heading"><h1>Struct·<a·href="../../index.html">alloc</a>::<wbr><a·href="../index.html">collections</a>::<wbr><a·href="index.html">binary_heap</a>::<wbr><a·class="struct"·href="#">IntoIterSorted</a><button·id="copy-path"·title="Copy·item·path·to·clipboard"><img·src="../../../static.files/clipboard-7571035ce49a181d.svg"·width="19"·height="18"·alt="Copy·item·path"></button></h1><span·class="out-of-band"><a·class="src"·href="../../../src/alloc/collections/binary_heap/mod.rs.html#1596-1601">source</a>···<button·id="toggle-all-docs"·title="collapse·all·docs">[<span>&#x2212;</span>]</button></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#1603-1609">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#1606-1608">source</a><h4·class="code-header">pub·fn·<a·href="#method.allocator"·class="fn">allocator</a>(&amp;self)·-&gt;·<a·class="primitive"·href="../../../core/primitive.reference.html">&amp;A</a></h4></section><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>allocator_api</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/32838">#32838</a>)</span></div></span></summary><div·class="docblock"><p>Returns·a·reference·to·the·underlying·allocator.</p>2 ····<main><div·class="width-limiter"><nav·class="sub"><form·class="search-form"><span></span><div·id="sidebar-button"·tabindex="-1"><a·href="../../../alloc/all.html"·title="show·sidebar"></a></div><input·class="search-input"·name="search"·aria-label="Run·search·in·the·documentation"·autocomplete="off"·spellcheck="false"·placeholder="Click·or·press·‘S’·to·search,·‘?’·for·more·options…"·type="search"><div·id="help-button"·tabindex="-1"><a·href="../../../help.html"·title="help">?</a></div><div·id="settings-menu"·tabindex="-1"><a·href="../../../settings.html"·title="settings"><img·width="22"·height="22"·alt="Change·settings"·src="../../../static.files/wheel-7b819b6101059cd0.svg"></a></div></form></nav><section·id="main-content"·class="content"><div·class="main-heading"><h1>Struct·<a·href="../../index.html">alloc</a>::<wbr><a·href="../index.html">collections</a>::<wbr><a·href="index.html">binary_heap</a>::<wbr><a·class="struct"·href="#">IntoIterSorted</a><button·id="copy-path"·title="Copy·item·path·to·clipboard"><img·src="../../../static.files/clipboard-7571035ce49a181d.svg"·width="19"·height="18"·alt="Copy·item·path"></button></h1><span·class="out-of-band"><a·class="src"·href="../../../src/alloc/collections/binary_heap/mod.rs.html#1596-1601">source</a>···<button·id="toggle-all-docs"·title="collapse·all·docs">[<span>&#x2212;</span>]</button></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#1603-1609">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#1606-1608">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.78.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>
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-IntoIterSorted%3CT,+A%3E"·class="impl"><a·class="src·rightside"·href="../../../src/alloc/collections/binary_heap/mod.rs.html#1595">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:·9630,·SHA:·331ca8219877027ce87745f576191a69eedc4e9159a5b3f312c7f97c7517e300·...·]/core/primitive.usize.html">usize</a>&gt;(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-IntoIterSorted%3CT,+A%3E"·class="impl"><a·class="src·rightside"·href="../../../src/alloc/collections/binary_heap/mod.rs.html#1595">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.78.0/core/clone/trait.Clone.html"·title="trait·core::clone::Clone">Clone</a>,·A:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/clone/trait.Clone.html"·title="trait·core::clone::Clone">Clone</a>·+·<a·class="trait"·[·...·truncated·by·diffoscope;·len:·10422,·SHA:·a483a3b2e07b67bfc4e1e179aa552837b3133fe8d02579b9dcee922b7bcc628b·...·]/core/primitive.usize.html">usize</a>&gt;(
4 ····&amp;mut·self4 ····&amp;mut·self
5 )·-&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">where5 )·-&gt;·<a·class="enum"·href="https://doc.rust-lang.org/1.78.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.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title=[·...·truncated·by·diffoscope;·len:·381,·SHA:·88c48923c9b7ea5cc47c1087c60e09656e81d4671c58071ba2bef826335388bc·...·]/core/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
6 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></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:·f7c1ca2ff3e425a8295c41d4d2fe540d4a3cb1e7032a9d04d8aed936964c71b6·...·]/core/primitive.usize.html">usize</a><div·class="where">where6 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></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:·89791450da70cbd536c3cf8fbf2dd9891668362f9a252d3ee098222d19960bae·...·]/core/primitive.usize.html">usize</a><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,·counting·the·number·of·iterations·and·returning·it.·<a·href="../../../core/iter/traits/iterator/t[·...·truncated·by·diffoscope;·len:·693,·SHA:·a0deafb68573233cf98843dcb8980b408fa28f99c350115f667afd7858ad6f7e·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;<div·class="where">where7 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.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:·84ae0beb16240102bae2355bb8c543b17f3f107e3c06b320839aa401eebb1945·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;<div·class="where">where
8 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Consumes·the·iterator,·returning·the·last·element.·<a·href="../../../core/iter/traits/iterator/trait.Iterator.html#metho[·...·truncated·by·diffoscope;·len:·3024,·SHA:·28bd88719f8c6dacf69b206ecda434ff3ac19011adf99793edd5fafa883cbd71·...·]/core/iter/adapters/step_by/struct.StepBy.html"·title="struct·core::iter::adapters::step_by::StepBy">StepBy</a>&lt;Self&gt;<div·class="where">where8 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.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.78.0/cor[·...·truncated·by·diffoscope;·len:·3504,·SHA:·6d21b6d637e0b2e9953a37a26fd19e00da089147d4acaf696c94d448de4ce419·...·]/core/iter/adapters/step_by/struct.StepBy.html"·title="struct·core::iter::adapters::step_by::StepBy">StepBy</a>&lt;Self&gt;<div·class="where">where
9 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Creates·an·iterator·starting·at·the·same·point,·but·stepping·by9 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.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
10 the·given·amount·at·each·iteration.·<a·href="../../../core/iter/traits/iterator/trait.Iterator.html#method.step_by">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.chain"·class="method·trait-impl"><span·class="rightside"><span·class="since"·title="[·...·truncated·by·diffoscope;·len:·698,·SHA:·4ac7445a1207207aeda1789f31c5036d8905fa206c83a58ca48662c081a68134·...·]/core/iter/traits/collect/trait.IntoIterator.html#associatedtype.IntoIter"·title="type·core::iter::traits::collect::IntoIterator::IntoIter">IntoIter</a>&gt;<div·class="where">where10 the·given·amount·at·each·iteration.·<a·href="https://doc.rust-lang.org/1.78.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:·e83c903581753673e083ce8dd809879a2fc81ab3050eb6db267d7fa26b15e035·...·]/core/iter/traits/collect/trait.IntoIterator.html#associatedtype.IntoIter"·title="type·core::iter::traits::collect::IntoIterator::IntoIter">IntoIter</a>&gt;<div·class="where">where
11 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,11 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
12 ····U:·<a·class="trait"·href="../../../core/iter/traits/collect/trait.IntoIterator.html"·title="trait·core::iter::traits::collect::IntoIterator">IntoIterator</a>&lt;Item·=·Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·[·...·truncated·by·diffoscope;·len:·1137,·SHA:·10378641f30fbaa3b3d8ba8984f91955195f5a0ddb70a41cc9ff99666b50a36f·...·]/core/iter/traits/collect/trait.IntoIterator.html#associatedtype.IntoIter"·title="type·core::iter::traits::collect::IntoIterator::IntoIter">IntoIter</a>&gt;<div·class="where">where12 ····U:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.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.78.0/core/iter/traits/it[·...·truncated·by·diffoscope;·len:·1329,·SHA:·d9299c8edc606ed82f24d61ce441bec451141d684c2a9a75074f5b19c57f196c·...·]/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.78.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>,</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:·b9001dd3131b1425179c94853e1b90fff0f7169b9570e86cd50c6b7fbf1ee8a5·...·]/core/iter/adapters/intersperse/struct.IntersperseWith.html"·title="struct·core::iter::adapters::intersperse::IntersperseWith">IntersperseWith</a>&lt;Self,·G&gt;<div·class="where">where14 ····U:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.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:·98627729f77dcf1c9d258f343354ba600b7134c6b3929080f231e8de7155b70b·...·]/core/iter/adapters/intersperse/struct.IntersperseWith.html"·title="struct·core::iter::adapters::intersperse::IntersperseWith">IntersperseWith</a>&lt;Self,·G&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.78.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
16 ····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>16 ····G:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.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.78.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>
17 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:·fa2a17b1aaf7dbc4e89f728d099c0a475adcd5ff79e4791795d7c4df5fc2ccec·...·]/core/iter/adapters/map/struct.Map.html"·title="struct·core::iter::adapters::map::Map">Map</a>&lt;Self,·F&gt;<div·class="where">where17 between·adjacent·items·of·the·original·iterator.·<a·href="https://doc.rust-lang.org/1.78.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:·7301b6beba7b6885849be90a625df68ef739a5374af456c51fe2e81d91a25363·...·]/core/iter/adapters/map/struct.Map.html"·title="struct·core::iter::adapters::map::Map">Map</a>&lt;Self,·F&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.78.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>(Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·B,</div></h4></section></summary><div·class='docblock'>Takes·a·closure·and·creates·an·iterator·which·calls·that·closure·on·each19 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::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
20 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:·d75758e0f8262eeea27445cec43f13d84f0c02ba4e03c0c54d041f9ab1965e0f·...·]/core/iter/traits/iterator/trait.Iterator.html#method.for_each"·class="fn">for_each</a>&lt;F&gt;(self,·f:·F)<div·class="where">where20 element.·<a·href="https://doc.rust-lang.org/1.78.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:·98f6effefa44d759c249143d83623f0055d937382bfc398b7e1f5e92cd413657·...·]/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
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.78.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::Iter[·...·truncated·by·diffoscope;·len:·772,·SHA:·9009d5c023150c1a97b2d18e30d176e7ff2e48673ad0e4665367958e752bf827·...·]/core/iter/adapters/filter/struct.Filter.html"·title="struct·core::iter::adapters::filter::Filter">Filter</a>&lt;Self,·P&gt;<div·class="where">where22 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·916,·SHA:·30d0b2a76513c5a880e9aee43e92b18805845cfcfe5783f62dc090167a439e63·...·]/core/iter/adapters/filter/struct.Filter.html"·title="struct·core::iter::adapters::filter::Filter">Filter</a>&lt;Self,·P&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.78.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:[·...·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·element24 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·140,·SHA:·752f473b57e7444ebfddf5ea7fd40a332e83ec55524a6c31b5ee0f82a5dea819·...·]/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
25 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:·7c1da0b93b40e2b4f823a0d24b5a27f092ffdb68175a9c14fe21a97d84bb2244·...·]/core/iter/adapters/filter_map/struct.FilterMap.html"·title="struct·core::iter::adapters::filter_map::FilterMap">FilterMap</a>&lt;Self,·F&gt;<div·class="where">where25 should·be·yielded.·<a·href="https://doc.rust-lang.org/1.78.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:·76aa2ad154f88085ee3f8a22721a7e6812680bac785d19059532407f50da1801·...·]/core/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
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.78.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::Iter[·...·truncated·by·diffoscope;·len:·884,·SHA:·96005685f2d5bf532d7af03cf747a50bdbe5efffccc579afe197789e4cd44a54·...·]/core/iter/adapters/enumerate/struct.Enumerate.html"·title="struct·core::iter::adapters::enumerate::Enumerate">Enumerate</a>&lt;Self&gt;<div·class="where">where27 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·1052,·SHA:·110b47c7083083d565fcfc89337fddc8e5c87e81b2f720f3f7b0ded55e8500fb·...·]/core/iter/adapters/enumerate/struct.Enumerate.html"·title="struct·core::iter::adapters::enumerate::Enumerate">Enumerate</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·which·gives·the·current·iteration·count·as·well·as28 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.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
29 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:·02bccd69f3cf4a08b24b66a0c9afb8ac49ebd0e9a7d5a183641b471189a35df3·...·]/core/iter/adapters/peekable/struct.Peekable.html"·title="struct·core::iter::adapters::peekable::Peekable">Peekable</a>&lt;Self&gt;<div·class="where">where29 the·next·value.·<a·href="https://doc.rust-lang.org/1.78.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:·8464264e074dde5d84f0414ab3b5b2d8da83f3c9e3ca04c45458241580a8c80d·...·]/core/iter/adapters/peekable/struct.Peekable.html"·title="struct·core::iter::adapters::peekable::Peekable">Peekable</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·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>·methods30 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.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.78.0/core/iter/adapte[·...·truncated·by·diffoscope;·len:·175,·SHA:·16fe7225bf05b478e2828b347c3d23ded9a22f89d8887a2c65d9f7b3faf1b0e7·...·]/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
31 to·look·at·the·next·element·of·the·iterator·without·consuming·it.·See31 to·look·at·the·next·element·of·the·iterator·without·consuming·it.·See
32 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:·60d233d0587f535c8bae5118522baa81ef2524d4168f9e142529a37902d8e8c4·...·]/core/iter/adapters/skip_while/struct.SkipWhile.html"·title="struct·core::iter::adapters::skip_while::SkipWhile">SkipWhile</a>&lt;Self,·P&gt;<div·class="where">where32 their·documentation·for·more·information.·<a·href="https://doc.rust-lang.org/1.78.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:·00ccbb673c11ed48d8c6aa2a3f8984fb298202e7bccfa42f1ac21290fcc0fb06·...·]/core/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
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.78.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:·1042,·SHA:·0900235f7b60bdd90fbf9718324068ecf230199603f19da2c38cad64ed6915ff·...·]/core/iter/adapters/take_while/struct.TakeWhile.html"·title="struct·core::iter::adapters::take_while::TakeWhile">TakeWhile</a>&lt;Self,·P&gt;<div·class="where">where34 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·1234,·SHA:·3b805567411cdcebed740f9e8d400dbe7fb487504f40e284544a140155090fdf·...·]/core/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
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.78.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:·890,·SHA:·552b3dd2132886d024e4d5bd2554611e25c1f068adaaf23ecf80da81d31997ef·...·]/core/iter/adapters/map_while/struct.MapWhile.html"·title="struct·core::iter::adapters::map_while::MapWhile">MapWhile</a>&lt;Self,·P&gt;<div·class="where">where36 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·1058,·SHA:·b390dbdda8d7e93604b5ecd906a93efd03fe19bdaf41cf12893fd361bf974307·...·]/core/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
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.78.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>(Self::<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:·491a83328e39b23cf5191ed5cb6bf83f1a62c9405ed5c39c58117b227b39b16c·...·]/core/iter/adapters/skip/struct.Skip.html"·title="struct·core::iter::adapters::skip::Skip">Skip</a>&lt;Self&gt;<div·class="where">where38 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·1163,·SHA:·5772149166d344bf8fa5ebbd9db8693a8f2e5f031c50338e8f1523ef72f814d6·...·]/core/iter/adapters/skip/struct.Skip.html"·title="struct·core::iter::adapters::skip::Skip">Skip</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·skips·the·first·<code>n</code>·elements.·<a·href="../../../core/iter/traits/iterator/trait.Iter[·...·truncated·by·diffoscope;·len:·639,·SHA:·e62b3f87b06b061e799e72ab8f04c531f1c6f241266260eaab33ea2b793dd8d2·...·]/core/iter/adapters/take/struct.Take.html"·title="struct·core::iter::adapters::take::Take">Take</a>&lt;Self&gt;<div·class="where">where39 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.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:·6216516fe581c401abda3c95818192e8f030e2008c9bbdbaafebba16f33ea9bd·...·]/core/iter/adapters/take/struct.Take.html"·title="struct·core::iter::adapters::take::Take">Take</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·yields·the·first·<code>n</code>·elements,·or·fewer40 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.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
41 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:·7d73eca41cdb0c170bd03419f3563f3fe9e70e11494db546e781d302d3cd5636·...·]/core/iter/adapters/scan/struct.Scan.html"·title="struct·core::iter::adapters::scan::Scan">Scan</a>&lt;Self,·St,·F&gt;<div·class="where">where41 if·the·underlying·iterator·ends·sooner.·<a·href="https://doc.rust-lang.org/1.78.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:·485843399c56e24bdf020ff0610d0ce1f62fbac5530d9880a1a7417105e3d70f·...·]/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
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.78.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>(<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,·but43 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(<a·class="primitive"·href="https://doc.rust-lang.org/1.78.0/core/primitive.reference.html">&amp;mut·St</a>,·Self::<a·class="associatedty[·...·truncated·by·diffoscope;·len:·449,·SHA:·f12c268a8a8111b9e7126ad78bf5523a63733caa63d187c4fe792309ea41acdf·...·]/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
44 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:·02034aae893b799fa017b2d71546332d96a823cd4ba05c14089559819f3dd720·...·]/core/iter/adapters/flatten/struct.FlatMap.html"·title="struct·core::iter::adapters::flatten::FlatMap">FlatMap</a>&lt;Self,·U,·F&gt;<div·class="where">where44 unlike·<a·href="https://doc.rust-lang.org/1.78.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.78.0/core/iter/trai[·...·truncated·by·diffoscope;·len:·690,·SHA:·371190e5c1bf9b7dde6e84447965a69946212b977b9eb6d89048fbe34c5dda1c·...·]/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
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.78.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>,46 ····U:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/collect/trait.IntoIterator.html"·title="trait·core::iter::traits::collect::IntoIterator">IntoIterator</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::Iter[·...·truncated·by·diffoscope;·len:·808,·SHA:·4d1f54658fd1c005b101a2e27b0da3c6ee0cbe2d891660c65470bfec01fa46f6·...·]/core/iter/adapters/map_windows/struct.MapWindows.html"·title="struct·core::iter::adapters::map_windows::MapWindows">MapWindows</a>&lt;Self,·F,·N&gt;<div·class="where">where47 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·976,·SHA:·2a9182f6fe88e0b8a9b1ae1f46cace940cc0b8736033c354c0f0ccbf1c196e7a·...·]/core/iter/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
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.78.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>(&amp;[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>·over49 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;[Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtyp[·...·truncated·by·diffoscope;·len:·135,·SHA:·0b06a6094d42ccbc8bce5b01c4383961fe7f1967f05e4c9f1ff33e71e425fb26·...·]/core/primitive.array.html">N</a>])·-&gt;·R,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iter_map_windows</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/87155">#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
50 <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>,50 <code>self</code>·and·returns·an·iterator·over·the·outputs·of·<code>f</code>.·Like·<a·href="https://doc.rust-lang.org/1.78.0/core/primitive.slice.html#method.windows"·title="method·slice::windows"><code>slice::windows()</code></a>,
51 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:·d83146d48347da8e04ce6fcac96b0b1500203504f596d32c16a5a1493dd375e1·...·]/core/iter/adapters/fuse/struct.Fuse.html"·title="struct·core::iter::adapters::fuse::Fuse">Fuse</a>&lt;Self&gt;<div·class="where">where51 the·windows·during·mapping·overlap·as·well.·<a·href="https://doc.rust-lang.org/1.78.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:·0d33056cee8a4f9b70b573c0adecc2f3599a2f8d9fa9f2c2044e9118ab134f73·...·]/core/iter/adapters/fuse/struct.Fuse.html"·title="struct·core::iter::adapters::fuse::Fuse">Fuse</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·ends·after·the·first·<a·href="../../../core/option/enum.Option.html#variant.None"·title="varia[·...·truncated·by·diffoscope;·len:·697,·SHA:·e9288f8d879e78d7e79eb2c4255eb99308efd98061b1221968fb17de11019b2e·...·]/core/iter/adapters/inspect/struct.Inspect.html"·title="struct·core::iter::adapters::inspect::Inspect">Inspect</a>&lt;Self,·F&gt;<div·class="where">where52 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.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.78.0/core/op[·...·truncated·by·diffoscope;·len:·841,·SHA:·9cba1b175fb3726d7f1f01da9be7c1a56568a68e4ce7915a468b730902daf8d3·...·]/core/iter/adapters/inspect/struct.Inspect.html"·title="struct·core::iter::adapters::inspect::Inspect">Inspect</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.78.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:[·...·truncated·by·diffoscope;·len:·790,·SHA:·19293cf7305d77d7ccd51618427cff5e3edb06f162c23796ed392e0ac792f65e·...·]/core/primitive.reference.html">&amp;mut·Self</a><div·class="where">where54 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·934,·SHA:·ea20d2e0fe9388580ea08100baa9120b5e9b6cb48f43fc846f15db8b9649e7f6·...·]/core/primitive.reference.html">&amp;mut·Self</a><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'>Borrows·an·iterator,·rather·than·consuming·it.·<a·href="../../../core/iter/traits/iterator/trait.Iterator.html#method.by[·...·truncated·by·diffoscope;·len:·427,·SHA:·cf371b2193fdcddf87cfe994db4d3e364336bb766b15dcfdd0ac7aabbd72e715·...·]/core/iter/traits/iterator/trait.Iterator.html#method.collect"·class="fn">collect</a>&lt;B&gt;(self)·-&gt;·B<div·class="where">where55 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.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.78.0/core/it[·...·truncated·by·diffoscope;·len:·523,·SHA:·97064c705f6f4bdf74469c54fabcf580d21893127d1b4cd9a9c1018a717ef153·...·]/core/iter/traits/iterator/trait.Iterator.html#method.collect"·class="fn">collect</a>&lt;B&gt;(self)·-&gt;·B<div·class="where">where
56 ····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;,56 ····B:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.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.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;,
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'>Transforms·an·iterator·into·a·collection.·<a·href="../../../core/iter/traits/iterator/trait.Iterator.html#method.collect[·...·truncated·by·diffoscope;·len:·584,·SHA:·d76c3fcf86c63211032a6b22dc5924ef552b1ad26b12e19f15d2f1d5b3d7e394·...·]/core/primitive.reference.html">&amp;mut·E</a><div·class="where">where57 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.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.78.0/core/iter/tr[·...·truncated·by·diffoscope;·len:·728,·SHA:·01937c2dc314c259495665570ae249c94b4a5b0719718f5f1188e6fc64ecf487·...·]/core/primitive.reference.html">&amp;mut·E</a><div·class="where">where
58 ····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;,58 ····E:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.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.78.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><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:·fa6f33be71e9184cfecc555b0b832d1a929285d35b47b1212b2176ac555731a1·...·]/core/primitive.tuple.html">(B,·B)</a><div·class="where">where59 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></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:·00bd47017b1bdd1bbe2c3fc932d955a8aa2f7f5eff8c00e3001ae28a982a5883·...·]/core/primitive.tuple.html">(B,·B)</a><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.78.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
61 ····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;,61 ····B:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/default/trait.Default.html"·title="trait·core::default::Default">Default</a>·+·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/collect/trait.Extend.html"·title="trait·core::iter::traits::collec[·...·truncated·by·diffoscope;·len:·95,·SHA:·8b3be1d0042cae0550f865faf5849221240bdf04eb1b2107605b72d48c3ad29c·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;,
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:·804,·SHA:·f996a0de22717256dd2ecf4d61d81611f9c7dfe5a493e4b882abb4030f3c80f9·...·]/core/primitive.bool.html">bool</a><div·class="where">where62 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·972,·SHA:·6de765542031617a9c28ac98fe6df619e58e62d9c65ec5b1c185a7152b8944e5·...·]/core/primitive.bool.html">bool</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.78.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::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,64 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·135,·SHA:·51ff5f5c7ebd8440623ea71b125c5a5837e809e308fe1a13fbe19cddb941dbd9·...·]/core/primitive.bool.html">bool</a>,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iter_is_partitioned</code>&nbsp;<a·href="https://github.com/rust-lang/rust/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 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:·bd8fce4ee431c619c98780c4d520e8db93f1e034f12843ffaff5744b7ce2190b·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_fold"·class="fn">try_fold</a>&lt;B,·F,·R&gt;(&amp;mut·self,·init:·B,·f:·F)·-&gt;·R<div·class="where">where65 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.78.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:·2c74873f4e5ba70004a1c7edd1cc3f9e2d91271295dd1591e2d26848df4c02ba·...·]/core/iter/traits/iterator/trait.Iterator.html#method.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
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.78.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>(B,·Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·R,67 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(B,·Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·R,
68 ····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·returns68 ····R:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.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
69 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:·7b4fc32e7634ae85c682a97099be267837713d7e4831893b617ca652f57a89da·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_for_each"·class="fn">try_for_each</a>&lt;F,·R&gt;(&amp;mut·self,·f:·F)·-&gt;·R<div·class="where">where69 successfully,·producing·a·single,·final·value.·<a·href="https://doc.rust-lang.org/1.78.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:·52912e82c4b0a760d06f77eb4ee3a59ba70dd76cb532954900c73ae94c652674·...·]/core/iter/traits/iterator/trait.Iterator.html#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
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.78.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>(Self::<a·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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.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·=·<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·the72 ····R:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.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.78.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
73 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:·5cfb1ce7ac10ff40c8d1d0f019b60fc4735736254c2d8357ed62287e51b1ac32·...·]/core/iter/traits/iterator/trait.Iterator.html#method.fold"·class="fn">fold</a>&lt;B,·F&gt;(self,·init:·B,·f:·F)·-&gt;·B<div·class="where">where73 iterator,·stopping·at·the·first·error·and·returning·that·error.·<a·href="https://doc.rust-lang.org/1.78.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:·1d6c4809cea8748e901d3f94777f450d430f3161f6ac05ed1c178d9327f966a3·...·]/core/iter/traits/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
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.78.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>(B,·Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::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 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(B,·Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::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 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:·2c738ecc68200afa2467bef085de14dcb642dbaac77c4529948f5e259e66691d·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;<div·class="where">where76 returning·the·final·result.·<a·href="https://doc.rust-lang.org/1.78.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:·b60215068a6d9721be05f81098c51167d7138c4042f140cad42f77c4df43f597·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&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.78.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>(Self::<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·reducing78 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·352,·SHA:·e7c3c296abe2c0a183967153e4ae7fd50bafa2ae7088e3e78b3b48fee253adc6·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::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
79 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:·c3f1d50e276def36966943119961a20b09cab3be33483fe4d48d7f322489534b·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_reduce"·class="fn">try_reduce</a>&lt;F,·R&gt;(79 operation.·<a·href="https://doc.rust-lang.org/1.78.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:·7a18fdd041b1a001b4a8feb289ee127fd9240232239269eb35dc3b8f74783ec9·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_reduce"·class="fn">try_reduce</a>&lt;F,·R&gt;(
80 ····&amp;mut·self,80 ····&amp;mut·self,
81 ····f:·F81 ····f:·F
82 )·-&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">where82 )·-&gt;·&lt;&lt;R·as·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&gt;::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/ops/try_trait/trait.Try.html#associatedtype.Residual"·title="type[·...·truncated·by·diffoscope;·len:·754,·SHA:·6fb4dfdb6b4da68921c1e7f8b75d99cf293d58318d684a840254ce9576957bea·...·]/core/ops/try_trait/trait.Residual.html#associatedtype.TryType"·title="type·core::ops::try_trait::Residual::TryType">TryType</a><div·class="where">where
83 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,83 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.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::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:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·140,·SHA:·c27972e6fa3464c9476eaa185e8657edb6bb294f148403f3d079285294a9f909·...·]/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·=·Self::<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.78.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.78.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.78.0/core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&gt;::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/ops/try_trait/trait.Try.html#associatedtype.Residual"·title="type[·...·truncated·by·diffoscope;·len:·412,·SHA:·22b8cbb007e5cce82b9d13a65bfa56aa8d83c32541fac25f4d9b3857b0540908·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;&gt;,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iterator_try_reduce</code>&nbsp;<a·href="https://github.com/rust-lang/rust/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:·1a00be8efe0263bc0d09f5d47be04890b1d27a20c3429d1f4531805a03591fdb·...·]/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.78.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:·bc0d658d56e348823de15386e1cd4ab49109f3a7a055a4573a19391b47071193·...·]/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.78.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:·c15cbdf9d3f54700b6eac2f717541f7f5a3cf811d73f48ef7118096c1a240102·...·]/core/primitive.bool.html">bool</a><div·class="where">where89 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·1018,·SHA:·e61cd6bdd36729cc38e57fcaea2ccb91a23a5acbda3c8986071f19bf1ecfc52a·...·]/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.78.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:·80fef1533a0c8783ee74be0f29290d7dec960bcd19223b11639b3e6377220faa·...·]/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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·1172,·SHA:·e64ab74d116d286191ad43d9d9e10411fc011c23724aa806e9a8f9b0be0757e3·...·]/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.78.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:·f441e2966ff8db4214e57fcd74f81262d6e371aa51cea97ebde5921e81b4da79·...·]/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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·1051,·SHA:·ecc0b8fccd861464760f9ae047ff6ab98c91a1db010cb5fa59a8c2ab883db7c4·...·]/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.78.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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·130,·SHA:·130a13019dc175d02304b4f550157e2f13ac15c2f25a979c74161d10b146ab89·...·]/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:·ec4fb002625b166504031522e52a66812b279e6735a67cb718813205909c3fb7·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_find"·class="fn">try_find</a>&lt;F,·R&gt;(96 the·first·non-none·result.·<a·href="https://doc.rust-lang.org/1.78.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:·8ced1b10e78750774c5c8ed995ed83dcd13983aa75d329acf8069da106ab9f4a·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_find"·class="fn">try_find</a>&lt;F,·R&gt;(
97 ····&amp;mut·self,97 ····&amp;mut·self,
98 ····f:·F98 ····f:·F
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.78.0/core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&gt;::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/ops/try_trait/trait.Try.html#associatedtype.Residual"·title="type[·...·truncated·by·diffoscope;·len:·626,·SHA:·95f9831257b68862cbcbf54f0ad2ff4e597a4c9f763112d1da8a0897dadcf872·...·]/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.78.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>(&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:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·R,
102 ····R:·<a·class="trait"·href="../../../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.78.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.78.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.78.0/core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&gt;::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/ops/try_trait/trait.Try.html#associatedtype.Residual"·title="type[·...·truncated·by·diffoscope;·len:·412,·SHA:·22b8cbb007e5cce82b9d13a65bfa56aa8d83c32541fac25f4d9b3857b0540908·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;&gt;,</div></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.78.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:·fa9d94b216f6e4ce6035b4762e3bf17cb86a0272db0a55a056f05c68bcaeb0da·...·]/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.78.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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·1190,·SHA:·882e9e9a037f916d0ed4aa6d749399e6e01ca81811eacfc54a484818cb5d5029·...·]/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.78.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.78.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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/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.78.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:·0367b1bacc0a7d8e05f1c5181f8c4ea428f3f11edbae0e76811f3ef1d4925e41·...·]/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.78.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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·346,·SHA:·7113e4c2d65a123253bb18971efdc2d49241cfc2dd4c2b18e4cfa4e4d7d4140f·...·]/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.78.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:·db89d4cca0becf2a4ab904adac2870de6fd83cfad5131f5a1431a67766274f81·...·]/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.78.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.78.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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/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.78.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:·39ce6bc28062c0df48bff6a8faa3e4f2266988879092cf2970d2e9ee092742b0·...·]/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.78.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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·346,·SHA:·7113e4c2d65a123253bb18971efdc2d49241cfc2dd4c2b18e4cfa4e4d7d4140f·...·]/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.78.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:·64f5ac8109ab8e5164c24b53640d938d0bb2486cf55faea0ff483f1e9ad27c8f·...·]/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.78.0/core/default/trait.Default.html"·title="trait·core::default::Default">Default</a>·+·<a·class="trait"·href="https://doc.rust-lang.org/1.78.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.78.0/core/default/trait.Default.html"·title="trait·core::default::Default">Default</a>·+·<a·class="trait"·href="https://doc.rust-lang.org/1.78.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:·653aec8e646bd1e33f0a5bbac618099785271b214c53936117e7d07a68d11aa3·...·]/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.78.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>·+·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html"·title="trait·core::iter::traits::iterator::I[·...·truncated·by·diffoscope;·len:·980,·SHA:·8f6df3c40809d9a55d4dab64faffa89b8268cb5f886608ccbcab921d7ab8e9fc·...·]/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.78.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:·53827955bd8d740ce8aeb02c422ff757c95bfdb1a8fa6faa63d48127ffa01f17·...·]/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.78.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>·+·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html"·title="trait·core::iter::traits::iterator::I[·...·truncated·by·diffoscope;·len:·983,·SHA:·d7472ec42d940fce3a1b145fd6fd3540c4095b4b5e88360dcd07223d97d60b94·...·]/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.78.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:·890a760a9fc035254740b7c6415cf7c1121d1d22d995856c5cd44545ed7e1dbc·...·]/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.78.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>·+·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html"·title="trait·core::iter::traits::iterator::I[·...·truncated·by·diffoscope;·len:·1155,·SHA:·062044bbc5f9c4f2d084660ac7a7dc1e7a03ec1588941fc4d04978e7dc9dfd3f·...·]/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; 90159/297424 bytes (30.31%) of diff not shown.
300 KB
./usr/share/doc/rust-web-doc/html/alloc/collections/binary_heap/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·`BinaryHeap`."><title>Iter·in·alloc::collections::binary_heap·-·Rust</title><script>·if·(window.location.protocol·!==·"file:")·document.write(`<link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../../static.files/SourceSerif4-Regular-46f98efaafac5295.ttf.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../../static.files/FiraSans-Regular-018c141bf0843ffd.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../../static.files/FiraSans-Medium-8f9a781e4970d388.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../../static.files/SourceCodePro-Regular-562dcc5011b6de7d.ttf.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../../static.files/SourceCodePro-Semibold-d899c5a5c4aeb14a.ttf.woff2">`)</script><link·rel="stylesheet"·href="../../../static.files/normalize-76eba96aa4d2e634.css"><link·rel="stylesheet"·href="../../../static.files/rustdoc-35f9e32502181f1e.css"><meta·name="rustdoc-vars"·data-root-path="../../../"·data-static-root-path="../../../static.files/"·data-current-crate="alloc"·data-themes=""·data-resource-suffix="1.78.0"·data-rustdoc-version="1.78.0"·data-channel="1.78.0"·data-search-js="search-42d8da7a6b9792c2.js"·data-settings-js="settings-4313503d2e1961c2.js"·><script·src="../../../static.files/storage-4c98445ec4002617.js"></script><script·defer·src="sidebar-items1.78.0.js"></script><script·defer·src="../../../static.files/main-12cf3b4f4f9dc36d.js"></script><noscript><link·rel="stylesheet"·href="../../../static.files/noscript-04d5337699b92874.css"></noscript><link·rel="alternate·icon"·type="image/png"·href="../../../static.files/favicon-16x16-8b506e7a72182f1c.png"><link·rel="alternate·icon"·type="image/png"·href="../../../static.files/favicon-32x32-422f7d1d52889060.png"><link·rel="icon"·type="image/svg+xml"·href="../../../static.files/favicon-2c020d218678b618.svg"></head><body·class="rustdoc·struct"><!--[if·lte·IE·11]><div·class="warning">This·old·browser·is·unsupported·and·will·most·likely·display·funky·things.</div><![endif]--><nav·class="mobile-topbar"><button·class="sidebar-menu-toggle"·title="show·sidebar"></button><a·class="logo-container"·href="../../../alloc/index.html"><img·class="rust-logo"·src="../../../static.files/rust-logo-151179464ae7ed46.svg"·alt=""></a></nav><nav·class="sidebar"><div·class="sidebar-crate"><a·class="logo-container"·href="../../../alloc/index.html"><img·class="rust-logo"·src="../../../static.files/rust-logo-151179464ae7ed46.svg"·alt="logo"></a><h2><a·href="../../../alloc/index.html">alloc</a><span·class="version">1.78.0</span></h2></div><h2·class="location"><a·href="#">Iter</a></h2><div·class="sidebar-elems"><section><h3><a·href="#trait-implementations">Trait·Implementations</a></h3><ul·class="block·trait-implementation"><li><a·href="#impl-Clone-for-Iter%3C'_,+T%3E">Clone</a></li><li><a·href="#impl-Debug-for-Iter%3C'_,+T%3E">Debug</a></li><li><a·href="#impl-DoubleEndedIterator-for-Iter%3C'a,+T%3E">DoubleEndedIterator</a></li><li><a·href="#impl-ExactSizeIterator-for-Iter%3C'_,+T%3E">ExactSizeIterator</a></li><li><a·href="#impl-FusedIterator-for-Iter%3C'_,+T%3E">FusedIterator</a></li><li><a·href="#impl-Iterator-for-Iter%3C'a,+T%3E">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">Freeze</a></li><li><a·href="#impl-RefUnwindSafe-for-Iter%3C'a,+T%3E">RefUnwindSafe</a></li><li><a·href="#impl-Send-for-Iter%3C'a,+T%3E">Send</a></li><li><a·href="#impl-Sync-for-Iter%3C'a,+T%3E">Sync</a></li><li><a·href="#impl-Unpin-for-Iter%3C'a,+T%3E">Unpin</a></li><li><a·href="#impl-UnwindSafe-for-Iter%3C'a,+T%3E">UnwindSafe</a></li></ul><h3><a·href="#blanket-implementations">Blanket·Implementations</a></h3><ul·class="block·blanket-implementation"><li><a·href="#impl-Any-for-T">Any</a></li><li><a·href="#impl-Borrow%3CT%3E-for-T">Borrow&lt;T&gt;</a></li><li><a·href="#impl-BorrowMut%3CT%3E-for-T">BorrowMut&lt;T&gt;</a></li><li><a·href="#impl-From%3CT%3E-for-T">From&lt;T&gt;</a></li><li><a·href="#impl-Into%3CU%3E-for-T">Into&lt;U&gt;</a></li><li><a·href="#impl-IntoIterator-for-I">IntoIterator</a></li><li><a·href="#impl-ToOwned-for-T">ToOwned</a></li><li><a·href="#impl-TryFrom%3CU%3E-for-T">TryFrom&lt;U&gt;</a></li><li><a·href="#impl-TryInto%3CU%3E-for-T">TryInto&lt;U&gt;</a></li></ul></section><h2><a·href="index.html">In·alloc::collections::binary_heap</a></h2></div></nav><div·class="sidebar-resizer"></div>1 <!DOCTYPE·html><html·lang="en"><head><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.write(`<link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../../static.files/SourceSerif4-Regular-46f98efaafac5295.ttf.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../../static.files/FiraSans-Regular-018c141bf0843ffd.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../../static.files/FiraSans-Medium-8f9a781e4970d388.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../../static.files/SourceCodePro-Regular-562dcc5011b6de7d.ttf.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../../static.files/SourceCodePro-Semibold-d899c5a5c4aeb14a.ttf.woff2">`)</script><link·rel="stylesheet"·href="../../../static.files/normalize-76eba96aa4d2e634.css"><link·rel="stylesheet"·href="../../../static.files/rustdoc-35f9e32502181f1e.css"><meta·name="rustdoc-vars"·data-root-path="../../../"·data-static-root-path="../../../static.files/"·data-current-crate="alloc"·data-themes=""·data-resource-suffix="1.78.0"·data-rustdoc-version="1.78.0"·data-channel="1.78.0"·data-search-js="search-42d8da7a6b9792c2.js"·data-settings-js="settings-4313503d2e1961c2.js"·><script·src="../../../static.files/storage-4c98445ec4002617.js"></script><script·defer·src="sidebar-items1.78.0.js"></script><script·defer·src="../../../static.files/main-12cf3b4f4f9dc36d.js"></script><noscript><link·rel="stylesheet"·href="../../../static.files/noscript-04d5337699b92874.css"></noscript><link·rel="alternate·icon"·type="image/png"·href="../../../static.files/favicon-16x16-8b506e7a72182f1c.png"><link·rel="alternate·icon"·type="image/png"·href="../../../static.files/favicon-32x32-422f7d1d52889060.png"><link·rel="icon"·type="image/svg+xml"·href="../../../static.files/favicon-2c020d218678b618.svg"></head><body·class="rustdoc·struct"><!--[if·lte·IE·11]><div·class="warning">This·old·browser·is·unsupported·and·will·most·likely·display·funky·things.</div><![endif]--><nav·class="mobile-topbar"><button·class="sidebar-menu-toggle"·title="show·sidebar"></button><a·class="logo-container"·href="../../../alloc/index.html"><img·class="rust-logo"·src="../../../static.files/rust-logo-151179464ae7ed46.svg"·alt=""></a></nav><nav·class="sidebar"><div·class="sidebar-crate"><a·class="logo-container"·href="../../../alloc/index.html"><img·class="rust-logo"·src="../../../static.files/rust-logo-151179464ae7ed46.svg"·alt="logo"></a><h2><a·href="../../../alloc/index.html">alloc</a><span·class="version">1.78.0</span></h2></div><h2·class="location"><a·href="#">Iter</a></h2><div·class="sidebar-elems"><section><h3><a·href="#trait-implementations">Trait·Implementations</a></h3><ul·class="block·trait-implementation"><li><a·href="#impl-Clone-for-Iter%3C'_,+T%3E">Clone</a></li><li><a·href="#impl-Debug-for-Iter%3C'_,+T%3E">Debug</a></li><li><a·href="#impl-DoubleEndedIterator-for-Iter%3C'a,+T%3E">DoubleEndedIterator</a></li><li><a·href="#impl-ExactSizeIterator-for-Iter%3C'_,+T%3E">ExactSizeIterator</a></li><li><a·href="#impl-FusedIterator-for-Iter%3C'_,+T%3E">FusedIterator</a></li><li><a·href="#impl-Iterator-for-Iter%3C'a,+T%3E">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">Freeze</a></li><li><a·href="#impl-RefUnwindSafe-for-Iter%3C'a,+T%3E">RefUnwindSafe</a></li><li><a·href="#impl-Send-for-Iter%3C'a,+T%3E">Send</a></li><li><a·href="#impl-Sync-for-Iter%3C'a,+T%3E">Sync</a></li><li><a·href="#impl-Unpin-for-Iter%3C'a,+T%3E">Unpin</a></li><li><a·href="#impl-UnwindSafe-for-Iter%3C'a,+T%3E">UnwindSafe</a></li></ul><h3><a·href="#blanket-implementations">Blanket·Implementations</a></h3><ul·class="block·blanket-implementation"><li><a·href="#impl-Any-for-T">Any</a></li><li><a·href="#impl-Borrow%3CT%3E-for-T">Borrow&lt;T&gt;</a></li><li><a·href="#impl-BorrowMut%3CT%3E-for-T">BorrowMut&lt;T&gt;</a></li><li><a·href="#impl-From%3CT%3E-for-T">From&lt;T&gt;</a></li><li><a·href="#impl-Into%3CU%3E-for-T">Into&lt;U&gt;</a></li><li><a·href="#impl-IntoIterator-for-I">IntoIterator</a></li><li><a·href="#impl-ToOwned-for-T">ToOwned</a></li><li><a·href="#impl-TryFrom%3CU%3E-for-T">TryFrom&lt;U&gt;</a></li><li><a·href="#impl-TryInto%3CU%3E-for-T">TryInto&lt;U&gt;</a></li></ul></section><h2><a·href="index.html">In·alloc::collections::binary_heap</a></h2></div></nav><div·class="sidebar-resizer"></div>
2 ····<main><div·class="width-limiter"><nav·class="sub"><form·class="search-form"><span></span><div·id="sidebar-button"·tabindex="-1"><a·href="../../../alloc/all.html"·title="show·sidebar"></a></div><input·class="search-input"·name="search"·aria-label="Run·search·in·the·documentation"·autocomplete="off"·spellcheck="false"·placeholder="Click·or·press·‘S’·to·search,·‘?’·for·more·options…"·type="search"><div·id="help-button"·tabindex="-1"><a·href="../../../help.html"·title="help">?</a></div><div·id="settings-menu"·tabindex="-1"><a·href="../../../settings.html"·title="settings"><img·width="22"·height="22"·alt="Change·settings"·src="../../../static.files/wheel-7b819b6101059cd0.svg"></a></div></form></nav><section·id="main-content"·class="content"><div·class="main-heading"><h1>Struct·<a·href="../../index.html">alloc</a>::<wbr><a·href="../index.html">collections</a>::<wbr><a·href="index.html">binary_heap</a>::<wbr><a·class="struct"·href="#">Iter</a><button·id="copy-path"·title="Copy·item·path·to·clipboard"><img·src="../../../static.files/clipboard-7571035ce49a181d.svg"·width="19"·height="18"·alt="Copy·item·path"></button></h1><span·class="out-of-band"><span·class="since"·title="Stable·since·Rust·version·1.0.0">1.0.0</span>···<a·class="src"·href="../../../src/alloc/collections/binary_heap/mod.rs.html#1427-1429">source</a>···<button·id="toggle-all-docs"·title="collapse·all·docs">[<span>&#x2212;</span>]</button></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 ····<main><div·class="width-limiter"><nav·class="sub"><form·class="search-form"><span></span><div·id="sidebar-button"·tabindex="-1"><a·href="../../../alloc/all.html"·title="show·sidebar"></a></div><input·class="search-input"·name="search"·aria-label="Run·search·in·the·documentation"·autocomplete="off"·spellcheck="false"·placeholder="Click·or·press·‘S’·to·search,·‘?’·for·more·options…"·type="search"><div·id="help-button"·tabindex="-1"><a·href="../../../help.html"·title="help">?</a></div><div·id="settings-menu"·tabindex="-1"><a·href="../../../settings.html"·title="settings"><img·width="22"·height="22"·alt="Change·settings"·src="../../../static.files/wheel-7b819b6101059cd0.svg"></a></div></form></nav><section·id="main-content"·class="content"><div·class="main-heading"><h1>Struct·<a·href="../../index.html">alloc</a>::<wbr><a·href="../index.html">collections</a>::<wbr><a·href="index.html">binary_heap</a>::<wbr><a·class="struct"·href="#">Iter</a><button·id="copy-path"·title="Copy·item·path·to·clipboard"><img·src="../../../static.files/clipboard-7571035ce49a181d.svg"·width="19"·height="18"·alt="Copy·item·path"></button></h1><span·class="out-of-band"><span·class="since"·title="Stable·since·Rust·version·1.0.0">1.0.0</span>···<a·class="src"·href="../../../src/alloc/collections/binary_heap/mod.rs.html#1427-1429">source</a>···<button·id="toggle-all-docs"·title="collapse·all·docs">[<span>&#x2212;</span>]</button></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>
3 <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·its3 <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
4 documentation·for·more.</p>4 documentation·for·more.</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-Iter%3C'_,+T%3E"·class="impl"><a·class="src·rightside"·href="../../../src/alloc/collections/binary_heap/mod.rs.html#1440-1444">source</a><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:·7274,·SHA:·b3bfc43fc2f5eb05db2f15d236c45f783d2d35517f513897bb4891a5dd8508de·...·]/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><h2·id="trait-implementations"·class="section-header">Trait·Implementations<a·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"><a·class="src·rightside"·href="../../../src/alloc/collections/binary_heap/mod.rs.html#1440-1444">source</a><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.78.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:·7946,·SHA:·f96e1461eed1cc0e22559ad6317651281f0d2e9252bd83033ed9f3a5840f18c4·...·]/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.78.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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(B,·Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.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.78.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.7[·...·truncated·by·diffoscope;·len:·3,·SHA:·7b1bd53949b752d143d871408483b5382371b5bc48d195d0c040ec93cfa2748b·...·]/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:·b3a5d6383debff0cac836c5889a757f11b019bc049778c518e60e4d37a3c4da1·...·]/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.78.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:·d66ed7e195a53e9945339ef1976aed455dcf80228d8e5b7b0c69a64c3983fea1·...·]/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.78.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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(B,·Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/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:·d11fd274e41827c1daee0c80a6ab5f978a613ab26297cb460535fef32cff8551·...·]/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.78.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:·c264047794019a6dcf05728ba6a6ee1f8f07c7209958b3366ba94546b527ecdc·...·]/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.78.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:·6785,·SHA:·0bd47b2b8f0262590fc9203c5771d9314474f023271c1fd2d158e6f25ea4267d·...·]/core/primitive.usize.html">usize</a>&gt;(14 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·7529,·SHA:·0f06c74332b79a35adce9a240302fae413505a6caba92d9dd6691084032632af·...·]/core/primitive.usize.html">usize</a>&gt;(
15 ····&amp;mut·self15 ····&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.78.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.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title=[·...·truncated·by·diffoscope;·len:·381,·SHA:·88c48923c9b7ea5cc47c1087c60e09656e81d4671c58071ba2bef826335388bc·...·]/core/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:·746,·SHA:·99cc415a31b91c57f7eeb82ad0d2d1ba424489bee49de37c86a4ea21c663ccda·...·]/core/primitive.usize.html">usize</a><div·class="where">where17 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experiment[·...·truncated·by·diffoscope;·len:·866,·SHA:·945d2d86f0c4c5ca3e3ee3b181d18b2bbea57ee1a5a7efe16c0c915a5bf2c3ad·...·]/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:·2953,·SHA:·2e5656679d63218ae5d5d1b1a4dfc8d59cd28ba505be6dd08ba60caae9804629·...·]/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.78.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:·3433,·SHA:·49d1274908fa1d1e8e571a7a381dde77211770148791bbfb1cd851b4f911e155·...·]/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.78.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"><a·class="src·rightside"·href="../../../src/core/it[·...·truncated·by·diffoscope;·len:·602,·SHA:·cfe4c4d300dddc2abdc2f8194eb969c68b2240c28239969b5be2af6a564ed8cc·...·]/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.78.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"><a·class="src·rightside"·hr[·...·truncated·by·diffoscope;·len:·746,·SHA:·f1f70d650c102c8658e13890c7dbfc87418f07e7b522246fb579ec434ef64f7c·...·]/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.78.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:·1041,·SHA:·a281d174c9671021427f0b458ac94e87746ac44730475aa725652c6c15e2b972·...·]/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.78.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.78.0/core/iter/traits/it[·...·truncated·by·diffoscope;·len:·1233,·SHA:·f677df2d893dfe0dc1a9d31ebb0ba71a346d265781813e0d664d3f18369b6163·...·]/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.78.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:·b9001dd3131b1425179c94853e1b90fff0f7169b9570e86cd50c6b7fbf1ee8a5·...·]/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.78.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:·98627729f77dcf1c9d258f343354ba600b7134c6b3929080f231e8de7155b70b·...·]/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.78.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.78.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.78.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"><a·class="src·rightside"·href="../../../src/[·...·truncated·by·diffoscope;·len:·279,·SHA:·f2c34c2e64e77c66684f837812ebc4a94c81b2ad5862cc0131f80c3ce89e008a·...·]/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.78.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"><a·class="src·rights[·...·truncated·by·diffoscope;·len:·375,·SHA:·58419346f92e1709dadb70cc3cf356e3cd27972451bdc6b4fc4267e6f7e8bdae·...·]/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.78.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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::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:·d75758e0f8262eeea27445cec43f13d84f0c02ba4e03c0c54d041f9ab1965e0f·...·]/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.78.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:·98f6effefa44d759c249143d83623f0055d937382bfc398b7e1f5e92cd413657·...·]/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.78.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:·676,·SHA:·9ae42ed293737a3dd44c1ee9d98c6aabb1552fbb9d203cb852ee9fcc7834a6ca·...·]/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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·820,·SHA:·a664bbcbc0891663662e4eb7b4394d0fcd72e568136fc4d34097fea242cc32e7·...·]/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.78.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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·140,·SHA:·752f473b57e7444ebfddf5ea7fd40a332e83ec55524a6c31b5ee0f82a5dea819·...·]/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"><a·class="src·rightside"·href="../../../src/cor[·...·truncated·by·diffoscope;·len:·297,·SHA:·f01e44d4caf6c6ad80b37656b9300f7111340711dcd74d70867b5a652dbfb538·...·]/core/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.78.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"><a·class="src·rightside[·...·truncated·by·diffoscope;·len:·393,·SHA:·2e2aa7c9c9c087e7b346da376749064ab8c1894795a2f0a0f646cdc8c7bea997·...·]/core/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.78.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:·788,·SHA:·b788f412af946d2bd7646ba39a8c316ebfa88109f9626dbad9bf9964f975cd0c·...·]/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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·956,·SHA:·faba0521e870dbbd26d466fadba3522e7d29013a9b86376fffafffac11a57e0e·...·]/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.78.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"><a·class="src·rightside"·href="../../../src/co[·...·truncated·by·diffoscope;·len:·276,·SHA:·e337ee1b810d3ec0480569c4ed323ebf0a2315c8ae3c522a73fcca3aa8e6efb3·...·]/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.78.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"><a·class="src·rightsid[·...·truncated·by·diffoscope;·len:·372,·SHA:·03eea0861575eb80d3f7a87a3ba747adb1a33fe7e9ce72aa2172e7a287c63a94·...·]/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.78.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.78.0/core/iter/adapte[·...·truncated·by·diffoscope;·len:·175,·SHA:·16fe7225bf05b478e2828b347c3d23ded9a22f89d8887a2c65d9f7b3faf1b0e7·...·]/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"><a·class="src·rightside"·href="../../../src/c[·...·truncated·by·diffoscope;·len:·306,·SHA:·a9bc004bf639fa188165a336061c6c98ec7ff9d266a18f10db200dfa9a880b88·...·]/core/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.78.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"><a·class="src·rightsi[·...·truncated·by·diffoscope;·len:·402,·SHA:·7689a974f800fd069d1b4453ef62d6d6ad1b654462d624d36e3672051d502030·...·]/core/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.78.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:·946,·SHA:·877b8718d9df1464a912dd50eef16402225367db4e4b26484b5ee20d30644524·...·]/core/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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·1138,·SHA:·f6ae06b7de8e94df014341c5cf589a5e4a1298367b2ef7a968ec499c5170a70e·...·]/core/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.78.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:·552b3dd2132886d024e4d5bd2554611e25c1f068adaaf23ecf80da81d31997ef·...·]/core/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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·1058,·SHA:·b390dbdda8d7e93604b5ecd906a93efd03fe19bdaf41cf12893fd361bf974307·...·]/core/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.78.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:·875,·SHA:·5c5c44422f75cbb66ebcf54bea70536713b810843cc484b051aed088c6422d78·...·]/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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·1067,·SHA:·415d32e1211c35d3bb405de1d6e51c2102c14cadc3333894f063148dbe0b1f69·...·]/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:·543,·SHA:·f199bafab360be9b80e9f45c5ba799a52348b742ddb0fa9afdb1624729c36e58·...·]/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.78.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:·687,·SHA:·7f5256104c35c5948a2cb42b55f3048c9d2887e48a4a8226537a284f959c562a·...·]/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.78.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"><a·class="src·rightside"·href="../../../src/core/iter/t[·...·truncated·by·diffoscope;·len:·296,·SHA:·aea014801138aeee574964545b1e9ad297288a120113db6844b569d2b183e0a7·...·]/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.78.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"><a·class="src·rightside"·href="[·...·truncated·by·diffoscope;·len:·392,·SHA:·4e7da68f7be2622ef173653eca78d58e1f202b544a2e6abd14d8335c298c93a7·...·]/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.78.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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(<a·class="primitive"·href="https://doc.rust-lang.org/1.78.0/core/primitive.reference.html">&amp;mut·St</a>,·Self::<a·class="associatedty[·...·truncated·by·diffoscope;·len:·449,·SHA:·f12c268a8a8111b9e7126ad78bf5523a63733caa63d187c4fe792309ea41acdf·...·]/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:·474,·SHA:·c0ed850df640319d919b8c053c540caa158602207623bed65abbcd69ad9d2c9d·...·]/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.78.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.78.0/core/iter/trai[·...·truncated·by·diffoscope;·len:·594,·SHA:·02960742fa7892efaa08f289ce85865fc5efb6a4cd138c22e3566ca6fc727d78·...·]/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.78.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.78.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:·4d1f54658fd1c005b101a2e27b0da3c6ee0cbe2d891660c65470bfec01fa46f6·...·]/core/iter/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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·976,·SHA:·2a9182f6fe88e0b8a9b1ae1f46cace940cc0b8736033c354c0f0ccbf1c196e7a·...·]/core/iter/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.78.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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;[Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtyp[·...·truncated·by·diffoscope;·len:·135,·SHA:·0b06a6094d42ccbc8bce5b01c4383961fe7f1967f05e4c9f1ff33e71e425fb26·...·]/core/primitive.array.html">N</a>])·-&gt;·R,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iter_map_windows</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/87155">#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.78.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"><a·class="src·rightside"·href="../../../src/core[·...·truncated·by·diffoscope;·len:·262,·SHA:·6125a8b2b88486b3735bbd00905fe9ae55b6eb1491c8a493be9c8121dc3cb440·...·]/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.78.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"><a·class="src·rightside"[·...·truncated·by·diffoscope;·len:·358,·SHA:·d91b2ab18e0ce069e262cf523c6ef961f56eecad042ea1e9bcefe33cff28fc8f·...·]/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:·601,·SHA:·bdf3796aa87e911258d56122ffdaa3f8591a5c9db4ed6fd89c3dfd3660787f78·...·]/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.78.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.78.0/core/op[·...·truncated·by·diffoscope;·len:·745,·SHA:·424783f22102f4446d3ad4d362b1aafdb7531fa777213f97ee138aa878f67bd1·...·]/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.78.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:·694,·SHA:·db4bb2630979aa4504432e8d422265d943c9063bcf3d2e3be970003014226f1e·...·]/core/primitive.reference.html">&amp;mut·Self</a><div·class="where">where64 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·838,·SHA:·9b4fd8df7f41e9a76fd4cfca0a233b74b9bd27c3fe8228248abc3f940425a3e3·...·]/core/primitive.reference.html">&amp;mut·Self</a><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:·331,·SHA:·d13641714c275840abbb473011613a4e19924a453f5e1b83912681a9b7c5579b·...·]/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.78.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.78.0/core/it[·...·truncated·by·diffoscope;·len:·427,·SHA:·ecfaaac5d1d10c1bc4fcee9a050af0a268bee0b528c2d8ea4e9774440bd8a279·...·]/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.78.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.78.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:·d76c3fcf86c63211032a6b22dc5924ef552b1ad26b12e19f15d2f1d5b3d7e394·...·]/core/primitive.reference.html">&amp;mut·E</a><div·class="where">where67 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.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.78.0/core/iter/tr[·...·truncated·by·diffoscope;·len:·728,·SHA:·01937c2dc314c259495665570ae249c94b4a5b0719718f5f1188e6fc64ecf487·...·]/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.78.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.78.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:·759,·SHA:·3cf174fac64a83c8e22066c3d77741118f89b13411537fc82c1004faa5c9e2ae·...·]/core/primitive.tuple.html">(B,·B)</a><div·class="where">where69 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experiment[·...·truncated·by·diffoscope;·len:·879,·SHA:·e773b2222c92d001e295030cb47a780ab0c1132d7fc8e9e3a98de4f532e6c520·...·]/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.78.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.78.0/core/default/trait.Default.html"·title="trait·core::default::Default">Default</a>·+·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/collect/trait.Extend.html"·title="trait·core::iter::traits::collec[·...·truncated·by·diffoscope;·len:·95,·SHA:·8b3be1d0042cae0550f865faf5849221240bdf04eb1b2107605b72d48c3ad29c·...·]/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:·281bbd5137cae68dd8057d013e9c9f311461e746663120304e3f6adace77f784·...·]/core/primitive.usize.html">usize</a><div·class="where">where72 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·995,·SHA:·bec3765fdab56713186e2454cd84738b5b28e3280a2f3d5a25cefdbc3089b520·...·]/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.78.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>·+·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/double_ended/trait.DoubleEndedIterator.html"·title="trait·core::iter::trai[·...·truncated·by·diffoscope;·len:·132,·SHA:·e5b2cf5f56946ede1e190ed09879c5821e2de04cf8e5d145142eeb40c6340982·...·]/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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(<a·class="primitive"·href="https://doc.rust-lang.org/1.78.0/core/primitive.reference.html">&amp;T</a>)·-&gt;·<a·class="primitive"·href="[·...·truncated·by·diffoscope;·len:·32,·SHA:·63d052a8ced32bf927ffadd7e884c08caf4970e85dfdf6be0e568d49b174da96·...·]/core/primitive.bool.html">bool</a>,</div></h4></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:·dc6a465df534b0392c5280e79e5249847890045561099b2cfc44bfabc4801d8d·...·]/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.78.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:·0c224636c18baa273f69de21f90083317f2ea0b7367a3f0d0f1c0ace55a36f79·...·]/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.78.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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·135,·SHA:·51ff5f5c7ebd8440623ea71b125c5a5837e809e308fe1a13fbe19cddb941dbd9·...·]/core/primitive.bool.html">bool</a>,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iter_is_partitioned</code>&nbsp;<a·href="https://github.com/rust-lang/rust/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:·bd8fce4ee431c619c98780c4d520e8db93f1e034f12843ffaff5744b7ce2190b·...·]/core/iter/traits/iterator/trait.Iterator.html#method.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.78.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:·2c74873f4e5ba70004a1c7edd1cc3f9e2d91271295dd1591e2d26848df4c02ba·...·]/core/iter/traits/iterator/trait.Iterator.html#method.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.78.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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(B,·Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.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.78.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:·7b4fc32e7634ae85c682a97099be267837713d7e4831893b617ca652f57a89da·...·]/core/iter/traits/iterator/trait.Iterator.html#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.78.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:·52912e82c4b0a760d06f77eb4ee3a59ba70dd76cb532954900c73ae94c652674·...·]/core/iter/traits/iterator/trait.Iterator.html#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.78.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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.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.78.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.78.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"><a·class="src·rightside"·href="../../../src/cor[·...·truncated·by·diffoscope;·len:·139,·SHA:·dc7fb7a70636459a0d7de28cbcb454050f39c184bab178c95c524a6eb9ca51cf·...·]/core/iter/traits/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.78.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"><a·class="src·rightside[·...·truncated·by·diffoscope;·len:·211,·SHA:·924e062acd8127e8d6158162219ee5d57a941854e14063d21d7768edae549431·...·]/core/iter/traits/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.78.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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(B,·Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::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:·2c738ecc68200afa2467bef085de14dcb642dbaac77c4529948f5e259e66691d·...·]/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.78.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:·b60215068a6d9721be05f81098c51167d7138c4042f140cad42f77c4df43f597·...·]/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.78.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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·352,·SHA:·e7c3c296abe2c0a183967153e4ae7fd50bafa2ae7088e3e78b3b48fee253adc6·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::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:·c3f1d50e276def36966943119961a20b09cab3be33483fe4d48d7f322489534b·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_reduce"·class="fn">try_reduce</a>&lt;F,·R&gt;(94 operation.·<a·href="https://doc.rust-lang.org/1.78.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:·7a18fdd041b1a001b4a8feb289ee127fd9240232239269eb35dc3b8f74783ec9·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_reduce"·class="fn">try_reduce</a>&lt;F,·R&gt;(
95 ····&amp;mut·self,95 ····&amp;mut·self,
96 ····f:·F96 ····f:·F
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.78.0/core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&gt;::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/ops/try_trait/trait.Try.html#associatedtype.Residual"·title="type[·...·truncated·by·diffoscope;·len:·754,·SHA:·6fb4dfdb6b4da68921c1e7f8b75d99cf293d58318d684a840254ce9576957bea·...·]/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.78.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::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:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·140,·SHA:·c27972e6fa3464c9476eaa185e8657edb6bb294f148403f3d079285294a9f909·...·]/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·=·Self::<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.78.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.78.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.78.0/core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&gt;::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/ops/try_trait/trait.Try.html#associatedtype.Residual"·title="type[·...·truncated·by·diffoscope;·len:·412,·SHA:·22b8cbb007e5cce82b9d13a65bfa56aa8d83c32541fac25f4d9b3857b0540908·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;&gt;,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iterator_try_reduce</code>&nbsp;<a·href="https://github.com/rust-lang/rust/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"><a·class="src·rightside"·href="../../../src/core/i[·...·truncated·by·diffoscope;·len:·284,·SHA:·fbacd9a305d3a60d42d9adcc5ea9e5f579f4ff5d970999f333eaf0c7f9baf66c·...·]/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.78.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"><a·class="src·rightside"·h[·...·truncated·by·diffoscope;·len:·380,·SHA:·29c4004d4d8b0c8c9dfe9023f8b2c5ef801d9dc4688893035d182c1ae774c453·...·]/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.78.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:·754,·SHA:·e3afac523bd4c054d94fbbb6c5c856ac78a6359550526fa0726732b36529c33d·...·]/core/primitive.bool.html">bool</a><div·class="where">where104 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·922,·SHA:·f4fd532c280e18f28bd6dda6c2a129e2e92114b67f27235bb5fd39f725be9c43·...·]/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.78.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:·884,·SHA:·32570d141a71827f9ac19bf566a51ca4814ccafaf6f8a961920ce107fe9657d7·...·]/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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·1076,·SHA:·2dd9de8adaee4a5ee96501d9a58bfac2fea00ba8d78b834bfca29949b3afe18b·...·]/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.78.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:·f441e2966ff8db4214e57fcd74f81262d6e371aa51cea97ebde5921e81b4da79·...·]/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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·1051,·SHA:·ecc0b8fccd861464760f9ae047ff6ab98c91a1db010cb5fa59a8c2ab883db7c4·...·]/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.78.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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·130,·SHA:·130a13019dc175d02304b4f550157e2f13ac15c2f25a979c74161d10b146ab89·...·]/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:·ec4fb002625b166504031522e52a66812b279e6735a67cb718813205909c3fb7·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_find"·class="fn">try_find</a>&lt;F,·R&gt;(111 the·first·non-none·result.·<a·href="https://doc.rust-lang.org/1.78.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:·8ced1b10e78750774c5c8ed995ed83dcd13983aa75d329acf8069da106ab9f4a·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_find"·class="fn">try_find</a>&lt;F,·R&gt;(
112 ····&amp;mut·self,112 ····&amp;mut·self,
113 ····f:·F113 ····f:·F
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.78.0/core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&gt;::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/ops/try_trait/trait.Try.html#associatedtype.Residual"·title="type[·...·truncated·by·diffoscope;·len:·626,·SHA:·95f9831257b68862cbcbf54f0ad2ff4e597a4c9f763112d1da8a0897dadcf872·...·]/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.78.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;·R,116 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·R,
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.78.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.78.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.78.0/core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&gt;::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/ops/try_trait/trait.Try.html#associatedtype.Residual"·title="type[·...·truncated·by·diffoscope;·len:·412,·SHA:·22b8cbb007e5cce82b9d13a65bfa56aa8d83c32541fac25f4d9b3857b0540908·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;&gt;,</div></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"><a·class="src·rightside"·href="../../../src/cor[·...·truncated·by·diffoscope;·len:·419,·SHA:·4337d283573b9683aaa605a7d2417318ef2a03902876e7da2ec26f2a5febf794·...·]/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.78.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"><a·class="src·rightside[·...·truncated·by·diffoscope;·len:·539,·SHA:·04e329705f11ed9ec269a68b0b75ac4ab26c78e4316a571ee9336c28bbca6359·...·]/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.78.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:·901,·SHA:·a6eb7314148a1006184790a26873440fac678952c99874de84cb66644e250c0b·...·]/core/primitive.usize.html">usize</a>&gt;<div·class="where">where121 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·1093,·SHA:·623dbacabfe45799103c799fb60a4d212ceb8759ff853a11209a07793257c9cd·...·]/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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·135,·SHA:·51ff5f5c7ebd8440623ea71b125c5a5837e809e308fe1a13fbe19cddb941dbd9·...·]/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.78.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>·+·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/exact_size/trait.ExactSizeIterator.html"·title="trait·core::iter::traits::[·...·truncated·by·diffoscope;·len:·110,·SHA:·a8846fff2831d0de2de7dbb91c4e50f6f60fac276813cbaa471bf32fb45120d4·...·]/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.78.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:·c876e8603f9248b122c6d4a7db3091b70f098f834ba7b3112a8b68d5e7ade3ed·...·]/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.78.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.78.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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/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; 83457/307282 bytes (27.16%) of diff not shown.
54.5 KB
./usr/share/doc/rust-web-doc/html/alloc/collections/binary_heap/struct.PeekMut.html
    
Offset 1, 23 lines modifiedOffset 1, 23 lines modified
1 <!DOCTYPE·html><html·lang="en"><head><meta·charset="utf-8"><meta·name="viewport"·content="width=device-width,·initial-scale=1.0"><meta·name="generator"·content="rustdoc"><meta·name="description"·content="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.write(`<link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../../static.files/SourceSerif4-Regular-46f98efaafac5295.ttf.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../../static.files/FiraSans-Regular-018c141bf0843ffd.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../../static.files/FiraSans-Medium-8f9a781e4970d388.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../../static.files/SourceCodePro-Regular-562dcc5011b6de7d.ttf.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../../static.files/SourceCodePro-Semibold-d899c5a5c4aeb14a.ttf.woff2">`)</script><link·rel="stylesheet"·href="../../../static.files/normalize-76eba96aa4d2e634.css"><link·rel="stylesheet"·href="../../../static.files/rustdoc-35f9e32502181f1e.css"><meta·name="rustdoc-vars"·data-root-path="../../../"·data-static-root-path="../../../static.files/"·data-current-crate="alloc"·data-themes=""·data-resource-suffix="1.78.0"·data-rustdoc-version="1.78.0"·data-channel="1.78.0"·data-search-js="search-42d8da7a6b9792c2.js"·data-settings-js="settings-4313503d2e1961c2.js"·><script·src="../../../static.files/storage-4c98445ec4002617.js"></script><script·defer·src="sidebar-items1.78.0.js"></script><script·defer·src="../../../static.files/main-12cf3b4f4f9dc36d.js"></script><noscript><link·rel="stylesheet"·href="../../../static.files/noscript-04d5337699b92874.css"></noscript><link·rel="alternate·icon"·type="image/png"·href="../../../static.files/favicon-16x16-8b506e7a72182f1c.png"><link·rel="alternate·icon"·type="image/png"·href="../../../static.files/favicon-32x32-422f7d1d52889060.png"><link·rel="icon"·type="image/svg+xml"·href="../../../static.files/favicon-2c020d218678b618.svg"></head><body·class="rustdoc·struct"><!--[if·lte·IE·11]><div·class="warning">This·old·browser·is·unsupported·and·will·most·likely·display·funky·things.</div><![endif]--><nav·class="mobile-topbar"><button·class="sidebar-menu-toggle"·title="show·sidebar"></button><a·class="logo-container"·href="../../../alloc/index.html"><img·class="rust-logo"·src="../../../static.files/rust-logo-151179464ae7ed46.svg"·alt=""></a></nav><nav·class="sidebar"><div·class="sidebar-crate"><a·class="logo-container"·href="../../../alloc/index.html"><img·class="rust-logo"·src="../../../static.files/rust-logo-151179464ae7ed46.svg"·alt="logo"></a><h2><a·href="../../../alloc/index.html">alloc</a><span·class="version">1.78.0</span></h2></div><h2·class="location"><a·href="#">PeekMut</a></h2><div·class="sidebar-elems"><section><h3><a·href="#implementations">Methods</a></h3><ul·class="block·method"><li><a·href="#method.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">Debug</a></li><li><a·href="#impl-Deref-for-PeekMut%3C'_,+T,+A%3E">Deref</a></li><li><a·href="#impl-DerefMut-for-PeekMut%3C'_,+T,+A%3E">DerefMut</a></li><li><a·href="#impl-Drop-for-PeekMut%3C'_,+T,+A%3E">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">!UnwindSafe</a></li><li><a·href="#impl-Freeze-for-PeekMut%3C'a,+T,+A%3E">Freeze</a></li><li><a·href="#impl-RefUnwindSafe-for-PeekMut%3C'a,+T,+A%3E">RefUnwindSafe</a></li><li><a·href="#impl-Send-for-PeekMut%3C'a,+T,+A%3E">Send</a></li><li><a·href="#impl-Sync-for-PeekMut%3C'a,+T,+A%3E">Sync</a></li><li><a·href="#impl-Unpin-for-PeekMut%3C'a,+T,+A%3E">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">Any</a></li><li><a·href="#impl-Borrow%3CT%3E-for-T">Borrow&lt;T&gt;</a></li><li><a·href="#impl-BorrowMut%3CT%3E-for-T">BorrowMut&lt;T&gt;</a></li><li><a·href="#impl-From%3CT%3E-for-T">From&lt;T&gt;</a></li><li><a·href="#impl-Into%3CU%3E-for-T">Into&lt;U&gt;</a></li><li><a·href="#impl-TryFrom%3CU%3E-for-T">TryFrom&lt;U&gt;</a></li><li><a·href="#impl-TryInto%3CU%3E-for-T">TryInto&lt;U&gt;</a></li></ul></section><h2><a·href="index.html">In·alloc::collections::binary_heap</a></h2></div></nav><div·class="sidebar-resizer"></div>1 <!DOCTYPE·html><html·lang="en"><head><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.write(`<link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../../static.files/SourceSerif4-Regular-46f98efaafac5295.ttf.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../../static.files/FiraSans-Regular-018c141bf0843ffd.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../../static.files/FiraSans-Medium-8f9a781e4970d388.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../../static.files/SourceCodePro-Regular-562dcc5011b6de7d.ttf.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../../static.files/SourceCodePro-Semibold-d899c5a5c4aeb14a.ttf.woff2">`)</script><link·rel="stylesheet"·href="../../../static.files/normalize-76eba96aa4d2e634.css"><link·rel="stylesheet"·href="../../../static.files/rustdoc-35f9e32502181f1e.css"><meta·name="rustdoc-vars"·data-root-path="../../../"·data-static-root-path="../../../static.files/"·data-current-crate="alloc"·data-themes=""·data-resource-suffix="1.78.0"·data-rustdoc-version="1.78.0"·data-channel="1.78.0"·data-search-js="search-42d8da7a6b9792c2.js"·data-settings-js="settings-4313503d2e1961c2.js"·><script·src="../../../static.files/storage-4c98445ec4002617.js"></script><script·defer·src="sidebar-items1.78.0.js"></script><script·defer·src="../../../static.files/main-12cf3b4f4f9dc36d.js"></script><noscript><link·rel="stylesheet"·href="../../../static.files/noscript-04d5337699b92874.css"></noscript><link·rel="alternate·icon"·type="image/png"·href="../../../static.files/favicon-16x16-8b506e7a72182f1c.png"><link·rel="alternate·icon"·type="image/png"·href="../../../static.files/favicon-32x32-422f7d1d52889060.png"><link·rel="icon"·type="image/svg+xml"·href="../../../static.files/favicon-2c020d218678b618.svg"></head><body·class="rustdoc·struct"><!--[if·lte·IE·11]><div·class="warning">This·old·browser·is·unsupported·and·will·most·likely·display·funky·things.</div><![endif]--><nav·class="mobile-topbar"><button·class="sidebar-menu-toggle"·title="show·sidebar"></button><a·class="logo-container"·href="../../../alloc/index.html"><img·class="rust-logo"·src="../../../static.files/rust-logo-151179464ae7ed46.svg"·alt=""></a></nav><nav·class="sidebar"><div·class="sidebar-crate"><a·class="logo-container"·href="../../../alloc/index.html"><img·class="rust-logo"·src="../../../static.files/rust-logo-151179464ae7ed46.svg"·alt="logo"></a><h2><a·href="../../../alloc/index.html">alloc</a><span·class="version">1.78.0</span></h2></div><h2·class="location"><a·href="#">PeekMut</a></h2><div·class="sidebar-elems"><section><h3><a·href="#implementations">Methods</a></h3><ul·class="block·method"><li><a·href="#method.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">Debug</a></li><li><a·href="#impl-Deref-for-PeekMut%3C'_,+T,+A%3E">Deref</a></li><li><a·href="#impl-DerefMut-for-PeekMut%3C'_,+T,+A%3E">DerefMut</a></li><li><a·href="#impl-Drop-for-PeekMut%3C'_,+T,+A%3E">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">!UnwindSafe</a></li><li><a·href="#impl-Freeze-for-PeekMut%3C'a,+T,+A%3E">Freeze</a></li><li><a·href="#impl-RefUnwindSafe-for-PeekMut%3C'a,+T,+A%3E">RefUnwindSafe</a></li><li><a·href="#impl-Send-for-PeekMut%3C'a,+T,+A%3E">Send</a></li><li><a·href="#impl-Sync-for-PeekMut%3C'a,+T,+A%3E">Sync</a></li><li><a·href="#impl-Unpin-for-PeekMut%3C'a,+T,+A%3E">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">Any</a></li><li><a·href="#impl-Borrow%3CT%3E-for-T">Borrow&lt;T&gt;</a></li><li><a·href="#impl-BorrowMut%3CT%3E-for-T">BorrowMut&lt;T&gt;</a></li><li><a·href="#impl-From%3CT%3E-for-T">From&lt;T&gt;</a></li><li><a·href="#impl-Into%3CU%3E-for-T">Into&lt;U&gt;</a></li><li><a·href="#impl-TryFrom%3CU%3E-for-T">TryFrom&lt;U&gt;</a></li><li><a·href="#impl-TryInto%3CU%3E-for-T">TryInto&lt;U&gt;</a></li></ul></section><h2><a·href="index.html">In·alloc::collections::binary_heap</a></h2></div></nav><div·class="sidebar-resizer"></div>
2 ····<main><div·class="width-limiter"><nav·class="sub"><form·class="search-form"><span></span><div·id="sidebar-button"·tabindex="-1"><a·href="../../../alloc/all.html"·title="show·sidebar"></a></div><input·class="search-input"·name="search"·aria-label="Run·search·in·the·documentation"·autocomplete="off"·spellcheck="false"·placeholder="Click·or·press·‘S’·to·search,·‘?’·for·more·options…"·type="search"><div·id="help-button"·tabindex="-1"><a·href="../../../help.html"·title="help">?</a></div><div·id="settings-menu"·tabindex="-1"><a·href="../../../settings.html"·title="settings"><img·width="22"·height="22"·alt="Change·settings"·src="../../../static.files/wheel-7b819b6101059cd0.svg"></a></div></form></nav><section·id="main-content"·class="content"><div·class="main-heading"><h1>Struct·<a·href="../../index.html">alloc</a>::<wbr><a·href="../index.html">collections</a>::<wbr><a·href="index.html">binary_heap</a>::<wbr><a·class="struct"·href="#">PeekMut</a><button·id="copy-path"·title="Copy·item·path·to·clipboard"><img·src="../../../static.files/clipboard-7571035ce49a181d.svg"·width="19"·height="18"·alt="Copy·item·path"></button></h1><span·class="out-of-band"><span·class="since"·title="Stable·since·Rust·version·1.12.0">1.12.0</span>···<a·class="src"·href="../../../src/alloc/collections/binary_heap/mod.rs.html#291-300">source</a>···<button·id="toggle-all-docs"·title="collapse·all·docs">[<span>&#x2212;</span>]</button></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·a2 ····<main><div·class="width-limiter"><nav·class="sub"><form·class="search-form"><span></span><div·id="sidebar-button"·tabindex="-1"><a·href="../../../alloc/all.html"·title="show·sidebar"></a></div><input·class="search-input"·name="search"·aria-label="Run·search·in·the·documentation"·autocomplete="off"·spellcheck="false"·placeholder="Click·or·press·‘S’·to·search,·‘?’·for·more·options…"·type="search"><div·id="help-button"·tabindex="-1"><a·href="../../../help.html"·title="help">?</a></div><div·id="settings-menu"·tabindex="-1"><a·href="../../../settings.html"·title="settings"><img·width="22"·height="22"·alt="Change·settings"·src="../../../static.files/wheel-7b819b6101059cd0.svg"></a></div></form></nav><section·id="main-content"·class="content"><div·class="main-heading"><h1>Struct·<a·href="../../index.html">alloc</a>::<wbr><a·href="../index.html">collections</a>::<wbr><a·href="index.html">binary_heap</a>::<wbr><a·class="struct"·href="#">PeekMut</a><button·id="copy-path"·title="Copy·item·path·to·clipboard"><img·src="../../../static.files/clipboard-7571035ce49a181d.svg"·width="19"·height="18"·alt="Copy·item·path"></button></h1><span·class="out-of-band"><span·class="since"·title="Stable·since·Rust·version·1.12.0">1.12.0</span>···<a·class="src"·href="../../../src/alloc/collections/binary_heap/mod.rs.html#291-300">source</a>···<button·id="toggle-all-docs"·title="collapse·all·docs">[<span>&#x2212;</span>]</button></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.78.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
3 <code>BinaryHeap</code>.</p>3 <code>BinaryHeap</code>.</p>
4 <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>.·See4 <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
5 its·documentation·for·more.</p>5 its·documentation·for·more.</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-PeekMut%3C'a,+T,+A%3E"·class="impl"><a·class="src·rightside"·href="../../../src/alloc/collections/binary_heap/mod.rs.html#365-380">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#368-379">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><h2·id="implementations"·class="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#365-380">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.78.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#368-379">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>
7 </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#303-307">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:·6574,·SHA:·a443f74b3b43a7766f94f3287def2c3ee0d1efd63972d172a36168bbeecd8121·...·]/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">where7 </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#303-307">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.78.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:·6958,·SHA:·003137f8bdd812a0f7419b9d9c4ea8e4841c70cede05c5ed940a6212128bbd2d·...·]/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
8 ····A:·<a·class="trait"·href="../../../core/panic/unwind_safe/trait.RefUnwindSafe.html"·title="trait·core::panic::unwind_safe::RefUnwindSafe">RefUnwindSafe</a>,8 ····A:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/panic/unwind_safe/trait.RefUnwindSafe.html"·title="trait·core::panic::unwind_safe::RefUnwindSafe">RefUnwindSafe</a>,
9 ····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">where9 ····T:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.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:·9472bc0027d945a5862342bb659cfe36708a93a06fe5c14f4425d0b6eacdf4ff·...·]/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
10 ····A:·<a·class="trait"·href="../../../core/marker/trait.Send.html"·title="trait·core::marker::Send">Send</a>,10 ····A:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/marker/trait.Send.html"·title="trait·core::marker::Send">Send</a>,
11 ····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">where11 ····T:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.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:·3315452d53374350d6b28cdf4069b35afa59c2013d74c2e2f8160775a28395aa·...·]/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
12 ····A:·<a·class="trait"·href="../../../core/marker/trait.Sync.html"·title="trait·core::marker::Sync">Sync</a>,12 ····A:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/marker/trait.Sync.html"·title="trait·core::marker::Sync">Sync</a>,
13 ····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:·d0307a1d319aa792b480f2ece89cbb27d573d93af000d2c69f14caa137596ada·...·]/core/any/trait.Any.html"·title="trait·core::any::Any">Any</a>·for·T<div·class="where">where13 ····T:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.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:·56688d0cd025b2918c1c30369942a2484e5cc8fd887fb1b11075d3f6046f733b·...·]/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="s[·...·truncated·by·diffoscope;·len:·690,·SHA:·60266624df43cdf1ecb412e35aaf311341d62543468bcbd4041716fbafffc07b·...·]/src/core/borrow.rs.html#208">source</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.78.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">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:·039b8952ccb1ab7d8f15cd519cbc10f4afc149276d0f9cfd3a53117d606059df·...·]/src/core/borrow.rs.html#208">source</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="sr[·...·truncated·by·diffoscope;·len:·647,·SHA:·8124d60df08ac71436917cb874e0ec9c0ffe7e4515e2ea246a1f1009f83ac6a1·...·]/src/core/borrow.rs.html#216">source</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.78.0/core/marker/trait.Sized.html"·title="trait·core::marker::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:·b03884aeae1813f459b6ebe4b7e3f3c22d5d37e0ad023677fd3869bc5a735be2·...·]/src/core/borrow.rs.html#216">source</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[·...·truncated·by·diffoscope;·len:·1254,·SHA:·88cecdca8f65ac7671462e07b83fc0153c4024bd8b3f1bfba320be439fbe3a4f·...·]/core/convert/trait.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.78.0/core/marker/trait.Sized.html"·title="trait·core::marker::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:·aaf5505cf4d2f5510949d066675a02996763e3167f43d15d7a3f114042a751b5·...·]/core/convert/trait.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.78.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.78.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·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>18 ····U:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.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:·2cf76a8ca501b2a1fef209fed846779ab1bed3b75f52c7425335e3ce04e6b272·...·]/core/convert/trait.Into.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.78.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-TryFrom%3CU%3E-for-T"·class="impl"><a·class="src·rightside"·href="../../../src/core/convert/mod.rs.html#805-807">source</a><a·href="#impl-TryFrom%3CU%3E-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T,·U&gt;·<a·class="trait"·href="../../../core/convert/trait.TryFrom.html"·title="trait·core::convert::TryFrom">TryFrom</a>&lt;U&gt;·for·T<div·class="where">where21 </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.78.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.78.0/core/convert/trait.TryFrom.html"·title="trait·core::convert::TryFrom">TryFrom</a>&lt;U&gt;·for·T<div·class="where">where
22 ····U:·<a·class="trait"·href="../../../core/convert/trait.Into.html"·title="trait·core::convert::Into">Into</a>&lt;T&gt;,</div></h3></section></summary><div·class="impl-items"><details·class="toggle"·open><summary><section·id="associatedtype.Error"·class="associatedtype·trait-impl"><a·[·...·truncated·by·diffoscope;·len:·1621,·SHA:·6a7315ddf4ab9fa76e45d600a396b342519e12c73d2e6dd09bf01e1fa1b0aac0·...·]/core/convert/trait.TryInto.html"·title="trait·core::convert::TryInto">TryInto</a>&lt;U&gt;·for·T<div·class="where">where22 ····U:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.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"·class="associ[·...·truncated·by·diffoscope;·len:·1861,·SHA:·78398046ba16de2f66a8201a11d6a2dd405fceedeabfcaa37481e77092687e6f·...·]/core/convert/trait.TryInto.html"·title="trait·core::convert::TryInto">TryInto</a>&lt;U&gt;·for·T<div·class="where">where
23 ····U:·<a·class="trait"·href="../../../core/convert/trait.TryFrom.html"·title="trait·core::convert::TryFrom">TryFrom</a>&lt;T&gt;,</div></h3></section></summary><div·class="impl-items"><details·class="toggle"·open><summary><section·id="associatedtype.Error-1"·class="associatedtype·trai[·...·truncated·by·diffoscope;·len:·1258,·SHA:·33d8749d0be17f35431e59e57d3fb79a5cc4320bd6fc26ab5ef088d04d3c929a·...·]/core/convert/trait.TryFrom.html#associatedtype.Error"·title="type·core::convert::TryFrom::Error">Error</a>&gt;</h4></section></summary><div·class='docblock'>Performs·the·conversion.</div></details></div></details></div></section></div></main></body></html>23 ····U:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.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-1"·cl[·...·truncated·by·diffoscope;·len:·1474,·SHA:·ca90cccb6c86c654c95a1aaec456fbbe4b115f0d5a700e7d156e823346d70894·...·]/core/convert/trait.TryFrom.html#associatedtype.Error"·title="type·core::convert::TryFrom::Error">Error</a>&gt;</h4></section></summary><div·class='docblock'>Performs·the·conversion.</div></details></div></details></div></section></div></main></body></html>
63.9 KB
./usr/share/doc/rust-web-doc/html/alloc/collections/btree_map/enum.Entry.html
    
Offset 1, 56 lines modifiedOffset 1, 56 lines modified
1 <!DOCTYPE·html><html·lang="en"><head><meta·charset="utf-8"><meta·name="viewport"·content="width=device-width,·initial-scale=1.0"><meta·name="generator"·content="rustdoc"><meta·name="description"·content="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.write(`<link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../../static.files/SourceSerif4-Regular-46f98efaafac5295.ttf.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../../static.files/FiraSans-Regular-018c141bf0843ffd.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../../static.files/FiraSans-Medium-8f9a781e4970d388.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../../static.files/SourceCodePro-Regular-562dcc5011b6de7d.ttf.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../../static.files/SourceCodePro-Semibold-d899c5a5c4aeb14a.ttf.woff2">`)</script><link·rel="stylesheet"·href="../../../static.files/normalize-76eba96aa4d2e634.css"><link·rel="stylesheet"·href="../../../static.files/rustdoc-35f9e32502181f1e.css"><meta·name="rustdoc-vars"·data-root-path="../../../"·data-static-root-path="../../../static.files/"·data-current-crate="alloc"·data-themes=""·data-resource-suffix="1.78.0"·data-rustdoc-version="1.78.0"·data-channel="1.78.0"·data-search-js="search-42d8da7a6b9792c2.js"·data-settings-js="settings-4313503d2e1961c2.js"·><script·src="../../../static.files/storage-4c98445ec4002617.js"></script><script·defer·src="sidebar-items1.78.0.js"></script><script·defer·src="../../../static.files/main-12cf3b4f4f9dc36d.js"></script><noscript><link·rel="stylesheet"·href="../../../static.files/noscript-04d5337699b92874.css"></noscript><link·rel="alternate·icon"·type="image/png"·href="../../../static.files/favicon-16x16-8b506e7a72182f1c.png"><link·rel="alternate·icon"·type="image/png"·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.78.0</span></h2></div><h2·class="location"><a·href="#">Entry</a></h2><div·class="sidebar-elems"><section><h3><a·href="#variants">Variants</a></h3><ul·class="block·variant"><li><a·href="#variant.Occupied">Occupied</a></li><li><a·href="#variant.Vacant">Vacant</a></li></ul><h3><a·href="#implementations">Methods</a></h3><ul·class="block·method"><li><a·href="#method.and_modify">and_modify</a></li><li><a·href="#method.key">key</a></li><li><a·href="#method.or_default">or_default</a></li><li><a·href="#method.or_insert">or_insert</a></li><li><a·href="#method.or_insert_with">or_insert_with</a></li><li><a·href="#method.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">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">!UnwindSafe</a></li><li><a·href="#impl-Freeze-for-Entry%3C'a,+K,+V,+A%3E">Freeze</a></li><li><a·href="#impl-RefUnwindSafe-for-Entry%3C'a,+K,+V,+A%3E">RefUnwindSafe</a></li><li><a·href="#impl-Send-for-Entry%3C'a,+K,+V,+A%3E">Send</a></li><li><a·href="#impl-Sync-for-Entry%3C'a,+K,+V,+A%3E">Sync</a></li><li><a·href="#impl-Unpin-for-Entry%3C'a,+K,+V,+A%3E">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">Any</a></li><li><a·href="#impl-Borrow%3CT%3E-for-T">Borrow&lt;T&gt;</a></li><li><a·href="#impl-BorrowMut%3CT%3E-for-T">BorrowMut&lt;T&gt;</a></li><li><a·href="#impl-From%3CT%3E-for-T">From&lt;T&gt;</a></li><li><a·href="#impl-Into%3CU%3E-for-T">Into&lt;U&gt;</a></li><li><a·href="#impl-TryFrom%3CU%3E-for-T">TryFrom&lt;U&gt;</a></li><li><a·href="#impl-TryInto%3CU%3E-for-T">TryInto&lt;U&gt;</a></li></ul></section><h2><a·href="index.html">In·alloc::collections::btree_map</a></h2></div></nav><div·class="sidebar-resizer"></div>1 <!DOCTYPE·html><html·lang="en"><head><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.write(`<link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../../static.files/SourceSerif4-Regular-46f98efaafac5295.ttf.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../../static.files/FiraSans-Regular-018c141bf0843ffd.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../../static.files/FiraSans-Medium-8f9a781e4970d388.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../../static.files/SourceCodePro-Regular-562dcc5011b6de7d.ttf.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../../static.files/SourceCodePro-Semibold-d899c5a5c4aeb14a.ttf.woff2">`)</script><link·rel="stylesheet"·href="../../../static.files/normalize-76eba96aa4d2e634.css"><link·rel="stylesheet"·href="../../../static.files/rustdoc-35f9e32502181f1e.css"><meta·name="rustdoc-vars"·data-root-path="../../../"·data-static-root-path="../../../static.files/"·data-current-crate="alloc"·data-themes=""·data-resource-suffix="1.78.0"·data-rustdoc-version="1.78.0"·data-channel="1.78.0"·data-search-js="search-42d8da7a6b9792c2.js"·data-settings-js="settings-4313503d2e1961c2.js"·><script·src="../../../static.files/storage-4c98445ec4002617.js"></script><script·defer·src="sidebar-items1.78.0.js"></script><script·defer·src="../../../static.files/main-12cf3b4f4f9dc36d.js"></script><noscript><link·rel="stylesheet"·href="../../../static.files/noscript-04d5337699b92874.css"></noscript><link·rel="alternate·icon"·type="image/png"·href="../../../static.files/favicon-16x16-8b506e7a72182f1c.png"><link·rel="alternate·icon"·type="image/png"·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.78.0</span></h2></div><h2·class="location"><a·href="#">Entry</a></h2><div·class="sidebar-elems"><section><h3><a·href="#variants">Variants</a></h3><ul·class="block·variant"><li><a·href="#variant.Occupied">Occupied</a></li><li><a·href="#variant.Vacant">Vacant</a></li></ul><h3><a·href="#implementations">Methods</a></h3><ul·class="block·method"><li><a·href="#method.and_modify">and_modify</a></li><li><a·href="#method.key">key</a></li><li><a·href="#method.or_default">or_default</a></li><li><a·href="#method.or_insert">or_insert</a></li><li><a·href="#method.or_insert_with">or_insert_with</a></li><li><a·href="#method.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">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">!UnwindSafe</a></li><li><a·href="#impl-Freeze-for-Entry%3C'a,+K,+V,+A%3E">Freeze</a></li><li><a·href="#impl-RefUnwindSafe-for-Entry%3C'a,+K,+V,+A%3E">RefUnwindSafe</a></li><li><a·href="#impl-Send-for-Entry%3C'a,+K,+V,+A%3E">Send</a></li><li><a·href="#impl-Sync-for-Entry%3C'a,+K,+V,+A%3E">Sync</a></li><li><a·href="#impl-Unpin-for-Entry%3C'a,+K,+V,+A%3E">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">Any</a></li><li><a·href="#impl-Borrow%3CT%3E-for-T">Borrow&lt;T&gt;</a></li><li><a·href="#impl-BorrowMut%3CT%3E-for-T">BorrowMut&lt;T&gt;</a></li><li><a·href="#impl-From%3CT%3E-for-T">From&lt;T&gt;</a></li><li><a·href="#impl-Into%3CU%3E-for-T">Into&lt;U&gt;</a></li><li><a·href="#impl-TryFrom%3CU%3E-for-T">TryFrom&lt;U&gt;</a></li><li><a·href="#impl-TryInto%3CU%3E-for-T">TryInto&lt;U&gt;</a></li></ul></section><h2><a·href="index.html">In·alloc::collections::btree_map</a></h2></div></nav><div·class="sidebar-resizer"></div>
2 ····<main><div·class="width-limiter"><nav·class="sub"><form·class="search-form"><span></span><div·id="sidebar-button"·tabindex="-1"><a·href="../../../alloc/all.html"·title="show·sidebar"></a></div><input·class="search-input"·name="search"·aria-label="Run·search·in·the·documentation"·autocomplete="off"·spellcheck="false"·placeholder="Click·or·press·‘S’·to·search,·‘?’·for·more·options…"·type="search"><div·id="help-button"·tabindex="-1"><a·href="../../../help.html"·title="help">?</a></div><div·id="settings-menu"·tabindex="-1"><a·href="../../../settings.html"·title="settings"><img·width="22"·height="22"·alt="Change·settings"·src="../../../static.files/wheel-7b819b6101059cd0.svg"></a></div></form></nav><section·id="main-content"·class="content"><div·class="main-heading"><h1>Enum·<a·href="../../index.html">alloc</a>::<wbr><a·href="../index.html">collections</a>::<wbr><a·href="index.html">btree_map</a>::<wbr><a·class="enum"·href="#">Entry</a><button·id="copy-path"·title="Copy·item·path·to·clipboard"><img·src="../../../static.files/clipboard-7571035ce49a181d.svg"·width="19"·height="18"·alt="Copy·item·path"></button></h1><span·class="out-of-band"><span·class="since"·title="Stable·since·Rust·version·1.0.0">1.0.0</span>···<a·class="src"·href="../../../src/alloc/collections/btree/map/entry.rs.html#20-33">source</a>···<button·id="toggle-all-docs"·title="collapse·all·docs">[<span>&#x2212;</span>]</button></span></div><pre·class="rust·item-decl"><code>pub·enum·Entry&lt;'a,·K:·'a,·V:·'a,·A:·<a·class="trait"·href="../../alloc/trait.Allocator.html"·title="trait·alloc::alloc::Allocator">Allocator</a>·+·<a·class="trait"·href="../../../core/clone/trait.Clone.html"·title="trait·core::clone::Clone">Clone</a>·=·<a·class="struct"·href="../../alloc/struct.Global.html"·title="struct·alloc::alloc::Global">Global</a>&gt;·{2 ····<main><div·class="width-limiter"><nav·class="sub"><form·class="search-form"><span></span><div·id="sidebar-button"·tabindex="-1"><a·href="../../../alloc/all.html"·title="show·sidebar"></a></div><input·class="search-input"·name="search"·aria-label="Run·search·in·the·documentation"·autocomplete="off"·spellcheck="false"·placeholder="Click·or·press·‘S’·to·search,·‘?’·for·more·options…"·type="search"><div·id="help-button"·tabindex="-1"><a·href="../../../help.html"·title="help">?</a></div><div·id="settings-menu"·tabindex="-1"><a·href="../../../settings.html"·title="settings"><img·width="22"·height="22"·alt="Change·settings"·src="../../../static.files/wheel-7b819b6101059cd0.svg"></a></div></form></nav><section·id="main-content"·class="content"><div·class="main-heading"><h1>Enum·<a·href="../../index.html">alloc</a>::<wbr><a·href="../index.html">collections</a>::<wbr><a·href="index.html">btree_map</a>::<wbr><a·class="enum"·href="#">Entry</a><button·id="copy-path"·title="Copy·item·path·to·clipboard"><img·src="../../../static.files/clipboard-7571035ce49a181d.svg"·width="19"·height="18"·alt="Copy·item·path"></button></h1><span·class="out-of-band"><span·class="since"·title="Stable·since·Rust·version·1.0.0">1.0.0</span>···<a·class="src"·href="../../../src/alloc/collections/btree/map/entry.rs.html#20-33">source</a>···<button·id="toggle-all-docs"·title="collapse·all·docs">[<span>&#x2212;</span>]</button></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.78.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;·{
3 ····Vacant(<a·class="struct"·href="struct.VacantEntry.html"·title="struct·alloc::collections::btree_map::VacantEntry">VacantEntry</a>&lt;'a,·K,·V,·A&gt;),3 ····Vacant(<a·class="struct"·href="struct.VacantEntry.html"·title="struct·alloc::collections::btree_map::VacantEntry">VacantEntry</a>&lt;'a,·K,·V,·A&gt;),
4 ····Occupied(<a·class="struct"·href="struct.OccupiedEntry.html"·title="struct·alloc::collections::btree_map::OccupiedEntry">OccupiedEntry</a>&lt;'a,·K,·V,·A&gt;),4 ····Occupied(<a·class="struct"·href="struct.OccupiedEntry.html"·title="struct·alloc::collections::btree_map::OccupiedEntry">OccupiedEntry</a>&lt;'a,·K,·V,·A&gt;),
5 }</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 }</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>
6 <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 <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>
7 </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><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></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><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>
8 </div><section·id="variant.Occupied"·class="variant"><a·href="#variant.Occupied"·class="anchor">§</a><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><section·id="variant.Occupied"·class="variant"><a·href="#variant.Occupied"·class="anchor">§</a><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>
9 </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#146-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:·553,·SHA:·953f84e6a7bef8b42c189d6177f5726e2f197ecfd5a8d4adf8471a314fb7e9e3·...·]/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·returns9 </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#146-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.78.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:·625,·SHA:·5c6f18a56e2e5223edabdd0fb1b8c99779ee2fa258a9c44dac315d02df7018ac·...·]/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
10 a·mutable·reference·to·the·value·in·the·entry.</p>10 a·mutable·reference·to·the·value·in·the·entry.</p>
11 <h5·id="examples"><a·class="doc-anchor"·href="#examples">§</a>Examples</h5>11 <h5·id="examples"><a·class="doc-anchor"·href="#examples">§</a>Examples</h5>
12 <div·class="example-wrap"><pre·class="rust·rust-example-rendered"><code><span·class="kw">use·</span>std::collections::BTreeMap;12 <div·class="example-wrap"><pre·class="rust·rust-example-rendered"><code><span·class="kw">use·</span>std::collections::BTreeMap;
  
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="macro">assert_eq!</span>(map[<span·class="string">"poneyland"</span>],·<span·class="number">12</span>);</code></pre><a·class="test-arrow"·target="_blank"·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">Run</a></div>15 <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"·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">Run</a></div>
16 </div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.or_insert_with"·class="method"><a·class="src·rightside"·href="../../../src/alloc/collections/btree/map/entry.rs.html#184-189">source</a><h4·class="code-header">pub·fn·<a·href="#method.or_insert_with"·class="fn">or_insert_with</a>&lt;F:·<a·class="trait"·href="../../../core/ops/function/trait.FnOnce.html"·title="trait·core::ops::function::FnOnce">FnOnce</a>()·-&gt;·V&gt;(self,·default:·F)·-&gt;·<a·class="primitive"·href="../../../core/primitive.reference.html">&amp;'a·mut·V</a></h4></section></summary><div·class="docblock"><p>Ensures·a·value·is·in·the·entry·by·inserting·the·result·of·the·default·function·if·empty,16 </div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.or_insert_with"·class="method"><a·class="src·rightside"·href="../../../src/alloc/collections/btree/map/entry.rs.html#184-189">source</a><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.78.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.78.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,
17 and·returns·a·mutable·reference·to·the·value·in·the·entry.</p>17 and·returns·a·mutable·reference·to·the·value·in·the·entry.</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 <div·class="example-wrap"><pre·class="rust·rust-example-rendered"><code><span·class="kw">use·</span>std::collections::BTreeMap;19 <div·class="example-wrap"><pre·class="rust·rust-example-rendered"><code><span·class="kw">use·</span>std::collections::BTreeMap;
  
20 <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><span·class="kw-2">mut·</span>map:·BTreeMap&lt;<span·class="kw-2">&amp;</span>str,·String&gt;·=·BTreeMap::new();
21 <span·class="kw">let·</span>s·=·<span·class="string">"hoho"</span>.to_string();21 <span·class="kw">let·</span>s·=·<span·class="string">"hoho"</span>.to_string();
  
22 map.entry(<span·class="string">"poneyland"</span>).or_insert_with(||·s);22 map.entry(<span·class="string">"poneyland"</span>).or_insert_with(||·s);
  
23 <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"·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">Run</a></div>23 <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"·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">Run</a></div>
24 </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.24 </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.78.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.78.0/core/primitive.reference.html">&amp;K</a>)·-&gt;·V&gt;(self,·default:·F)·[·...·truncated·by·diffoscope;·len:·65,·SHA:·74cb399881b30e2e23a552e031c985adf97c5d51d3f516d8b7dd1b44c59e6ee9·...·]/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.
25 This·method·allows·for·generating·key-derived·values·for·insertion·by·providing·the·default25 This·method·allows·for·generating·key-derived·values·for·insertion·by·providing·the·default
26 function·a·reference·to·the·key·that·was·moved·during·the·<code>.entry(key)</code>·method·call.</p>26 function·a·reference·to·the·key·that·was·moved·during·the·<code>.entry(key)</code>·method·call.</p>
27 <p>The·reference·to·the·moved·key·is·provided·so·that·cloning·or·copying·the·key·is27 <p>The·reference·to·the·moved·key·is·provided·so·that·cloning·or·copying·the·key·is
28 unnecessary,·unlike·with·<code>.or_insert_with(||·...·)</code>.</p>28 unnecessary,·unlike·with·<code>.or_insert_with(||·...·)</code>.</p>
29 <h5·id="examples-2"><a·class="doc-anchor"·href="#examples-2">§</a>Examples</h5>29 <h5·id="examples-2"><a·class="doc-anchor"·href="#examples-2">§</a>Examples</h5>
30 <div·class="example-wrap"><pre·class="rust·rust-example-rendered"><code><span·class="kw">use·</span>std::collections::BTreeMap;30 <div·class="example-wrap"><pre·class="rust·rust-example-rendered"><code><span·class="kw">use·</span>std::collections::BTreeMap;
  
31 <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 <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();
  
32 map.entry(<span·class="string">"poneyland"</span>).or_insert_with_key(|key|·key.chars().count());32 map.entry(<span·class="string">"poneyland"</span>).or_insert_with_key(|key|·key.chars().count());
  
33 <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"·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">Run</a></div>33 <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"·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">Run</a></div>
34 </div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.key"·class="method"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.10.0">1.10.0</span>···<a·class="src"·href="../../../src/alloc/collections/btree/map/entry.rs.html#232-237">source</a></span><h4·class="code-header">pub·fn·<a·href="#method.key"·class="fn">key</a>(&amp;self)·-&gt;·<a·class="primitive"·href="../../../core/primitive.reference.html">&amp;K</a></h4></section></summary><div·class="docblock"><p>Returns·a·reference·to·this·entry’s·key.</p>34 </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.78.0/core/primitive.reference.html">&amp;K</a></h4></section></summary><div·class="docblock"><p>Returns·a·reference·to·this·entry’s·key.</p>
35 <h5·id="examples-3"><a·class="doc-anchor"·href="#examples-3">§</a>Examples</h5>35 <h5·id="examples-3"><a·class="doc-anchor"·href="#examples-3">§</a>Examples</h5>
36 <div·class="example-wrap"><pre·class="rust·rust-example-rendered"><code><span·class="kw">use·</span>std::collections::BTreeMap;36 <div·class="example-wrap"><pre·class="rust·rust-example-rendered"><code><span·class="kw">use·</span>std::collections::BTreeMap;
  
37 <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="kw">let·</span><span·class="kw-2">mut·</span>map:·BTreeMap&lt;<span·class="kw-2">&amp;</span>str,·usize&gt;·=·BTreeMap::new();
38 <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"·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">Run</a></div>38 <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"·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">Run</a></div>
39 </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">where39 </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
40 ····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·any40 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.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.78.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
41 potential·inserts·into·the·map.</p>41 potential·inserts·into·the·map.</p>
42 <h5·id="examples-4"><a·class="doc-anchor"·href="#examples-4">§</a>Examples</h5>42 <h5·id="examples-4"><a·class="doc-anchor"·href="#examples-4">§</a>Examples</h5>
43 <div·class="example-wrap"><pre·class="rust·rust-example-rendered"><code><span·class="kw">use·</span>std::collections::BTreeMap;43 <div·class="example-wrap"><pre·class="rust·rust-example-rendered"><code><span·class="kw">use·</span>std::collections::BTreeMap;
  
44 <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 <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();
  
45 map.entry(<span·class="string">"poneyland"</span>)45 map.entry(<span·class="string">"poneyland"</span>)
Offset 58, 40 lines modifiedOffset 58, 40 lines modified
58 ···.or_insert(<span·class="number">42</span>);58 ···.or_insert(<span·class="number">42</span>);
59 <span·class="macro">assert_eq!</span>(map[<span·class="string">"poneyland"</span>],·<span·class="number">42</span>);59 <span·class="macro">assert_eq!</span>(map[<span·class="string">"poneyland"</span>],·<span·class="number">42</span>);
  
60 map.entry(<span·class="string">"poneyland"</span>)60 map.entry(<span·class="string">"poneyland"</span>)
61 ···.and_modify(|e|·{·<span·class="kw-2">*</span>e·+=·<span·class="number">1·</span>})61 ···.and_modify(|e|·{·<span·class="kw-2">*</span>e·+=·<span·class="number">1·</span>})
62 ···.or_insert(<span·class="number">42</span>);62 ···.or_insert(<span·class="number">42</span>);
63 <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"·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">Run</a></div>63 <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"·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">Run</a></div>
64 </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,64 </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.78.0/core/cmp/trait.Ord.html"·title="trait·core::cmp::Ord">Ord</a>,·V:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/default/trait.Default.html"·title="trait·core::default::Default">Default</a>,·A:·<a·class="trait[·...·truncated·by·diffoscope;·len:·853,·SHA:·74581e0b98c377030d61fc61e47ccef9f48515d61b981cee4fc0d204f6d503bb·...·]/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,
65 and·returns·a·mutable·reference·to·the·value·in·the·entry.</p>65 and·returns·a·mutable·reference·to·the·value·in·the·entry.</p>
66 <h5·id="examples-5"><a·class="doc-anchor"·href="#examples-5">§</a>Examples</h5>66 <h5·id="examples-5"><a·class="doc-anchor"·href="#examples-5">§</a>Examples</h5>
67 <div·class="example-wrap"><pre·class="rust·rust-example-rendered"><code><span·class="kw">use·</span>std::collections::BTreeMap;67 <div·class="example-wrap"><pre·class="rust·rust-example-rendered"><code><span·class="kw">use·</span>std::collections::BTreeMap;
  
68 <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 <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();
69 map.entry(<span·class="string">"poneyland"</span>).or_default();69 map.entry(<span·class="string">"poneyland"</span>).or_default();
  
70 <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"·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">Run</a></div>70 <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"·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">Run</a></div>
71 </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#36-43">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:·cd4864945963c3fd7b8f925f79b7a3d1ad24134f316e622db3f5f8d418f8833e·...·]/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">where71 </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#36-43">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.78.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:·d55a6ad512ea07b861fb84af22dec5170ab12cc9fd1be5b0fdf74fdc84e2df92·...·]/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
72 ····A:·<a·class="trait"·href="../../../core/marker/trait.Freeze.html"·title="trait·core::marker::Freeze">Freeze</a>,72 ····A:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/marker/trait.Freeze.html"·title="trait·core::marker::Freeze">Freeze</a>,
73 ····K:·<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">where73 ····K:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.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:·16f0d7d1232780a9381ccf398c4885a5f57822b67648ec60bcb6247108bc7a7e·...·]/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
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.78.0/core/panic/unwind_safe/trait.RefUnwindSafe.html"·title="trait·core::panic::unwind_safe::RefUnwindSafe">RefUnwindSafe</a>,
75 ····K:·<a·class="trait"·href="../../../core/panic/unwind_safe/trait.RefUnwindSafe.html"·title="trait·core::panic::unwind_safe::RefUnwindSafe">RefUnwindSafe</a>,75 ····K:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/panic/unwind_safe/trait.RefUnwindSafe.html"·title="trait·core::panic::unwind_safe::RefUnwindSafe">RefUnwindSafe</a>,
76 ····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">where76 ····V:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.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:·182885cc4789294017a2e3e4605c1b97bdfd022883bf948b3e9db0dfb5adc175·...·]/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
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.78.0/core/marker/trait.Send.html"·title="trait·core::marker::Send">Send</a>,
78 ····K:·<a·class="trait"·href="../../../core/marker/trait.Send.html"·title="trait·core::marker::Send">Send</a>,78 ····K:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/marker/trait.Send.html"·title="trait·core::marker::Send">Send</a>,
79 ····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">where79 ····V:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.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:·d4be73e7c312ad0e5d4f71c13f640c6bd9f0c6cb948b26daf8cab227f78d7dc3·...·]/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
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.78.0/core/marker/trait.Sync.html"·title="trait·core::marker::Sync">Sync</a>,
81 ····K:·<a·class="trait"·href="../../../core/marker/trait.Sync.html"·title="trait·core::marker::Sync">Sync</a>,81 ····K:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/marker/trait.Sync.html"·title="trait·core::marker::Sync">Sync</a>,
82 ····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">where82 ····V:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.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:·d119383f2140565965d644927c76ff055c7256839388f388cd3bd8866bb3ad41·...·]/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
83 ····A:·<a·class="trait"·href="../../../core/marker/trait.Unpin.html"·title="trait·core::marker::Unpin">Unpin</a>,83 ····A:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/marker/trait.Unpin.html"·title="trait·core::marker::Unpin">Unpin</a>,
84 ····K:·<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:·eba674fead659b5f7e408dab296b03b6ff91d4d7ccaf8a65a05558e66f5e1a4d·...·]/core/any/trait.Any.html"·title="trait·core::any::Any">Any</a>·for·T<div·class="where">where84 ····K:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.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:·1454e3115bf6602caa886a9931c6ebbe730031e348bf869483aa786b8892a2a5·...·]/core/any/trait.Any.html"·title="trait·core::any::Any">Any</a>·for·T<div·class="where">where
85 ····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:·60266624df43cdf1ecb412e35aaf311341d62543468bcbd4041716fbafffc07b·...·]/src/core/borrow.rs.html#208">source</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">where85 ····T:·'static·+·?<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">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:·039b8952ccb1ab7d8f15cd519cbc10f4afc149276d0f9cfd3a53117d606059df·...·]/src/core/borrow.rs.html#208">source</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
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"·class="method·trait-impl"><a·class="sr[·...·truncated·by·diffoscope;·len:·647,·SHA:·8124d60df08ac71436917cb874e0ec9c0ffe7e4515e2ea246a1f1009f83ac6a1·...·]/src/core/borrow.rs.html#216">source</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">where86 ····T:·?<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/marker/trait.Sized.html"·title="trait·core::marker::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:·b03884aeae1813f459b6ebe4b7e3f3c22d5d37e0ad023677fd3869bc5a735be2·...·]/src/core/borrow.rs.html#216">source</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
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_mut"·class="method·trait-impl"><a·class[·...·truncated·by·diffoscope;·len:·1254,·SHA:·88cecdca8f65ac7671462e07b83fc0153c4024bd8b3f1bfba320be439fbe3a4f·...·]/core/convert/trait.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 ····T:·?<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/marker/trait.Sized.html"·title="trait·core::marker::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:·aaf5505cf4d2f5510949d066675a02996763e3167f43d15d7a3f114042a751b5·...·]/core/convert/trait.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 </div></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">where88 </div></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.78.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.78.0/core/convert/trait.Into.html"·title="trait·core::convert::Into">Into</a>&lt;U&gt;·for·T<div·class="where">where
89 ····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>89 ····U:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.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:·2cf76a8ca501b2a1fef209fed846779ab1bed3b75f52c7425335e3ce04e6b272·...·]/core/convert/trait.Into.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 <p>That·is,·this·conversion·is·whatever·the·implementation·of90 <p>That·is,·this·conversion·is·whatever·the·implementation·of
91 <code><a·href="../../../core/convert/trait.From.html"·title="trait·core::convert::From">From</a>&lt;T&gt;·for·U</code>·chooses·to·do.</p>91 <code><a·href="https://doc.rust-lang.org/1.78.0/core/convert/trait.From.html"·title="trait·core::convert::From">From</a>&lt;T&gt;·for·U</code>·chooses·to·do.</p>
92 </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">where92 </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.78.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.78.0/core/convert/trait.TryFrom.html"·title="trait·core::convert::TryFrom">TryFrom</a>&lt;U&gt;·for·T<div·class="where">where
93 ····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"·class="associatedtype·trait-impl"><a·[·...·truncated·by·diffoscope;·len:·1621,·SHA:·6a7315ddf4ab9fa76e45d600a396b342519e12c73d2e6dd09bf01e1fa1b0aac0·...·]/core/convert/trait.TryInto.html"·title="trait·core::convert::TryInto">TryInto</a>&lt;U&gt;·for·T<div·class="where">where93 ····U:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.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"·class="associ[·...·truncated·by·diffoscope;·len:·1861,·SHA:·78398046ba16de2f66a8201a11d6a2dd405fceedeabfcaa37481e77092687e6f·...·]/core/convert/trait.TryInto.html"·title="trait·core::convert::TryInto">TryInto</a>&lt;U&gt;·for·T<div·class="where">where
94 ····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-1"·class="associatedtype·trai[·...·truncated·by·diffoscope;·len:·1258,·SHA:·33d8749d0be17f35431e59e57d3fb79a5cc4320bd6fc26ab5ef088d04d3c929a·...·]/core/convert/trait.TryFrom.html#associatedtype.Error"·title="type·core::convert::TryFrom::Error">Error</a>&gt;</h4></section></summary><div·class='docblock'>Performs·the·conversion.</div></details></div></details></div></section></div></main></body></html>94 ····U:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.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-1"·cl[·...·truncated·by·diffoscope;·len:·1474,·SHA:·ca90cccb6c86c654c95a1aaec456fbbe4b115f0d5a700e7d156e823346d70894·...·]/core/convert/trait.TryFrom.html#associatedtype.Error"·title="type·core::convert::TryFrom::Error">Error</a>&gt;</h4></section></summary><div·class='docblock'>Performs·the·conversion.</div></details></div></details></div></section></div></main></body></html>
282 KB
./usr/share/doc/rust-web-doc/html/alloc/collections/btree_map/struct.BTreeMap.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·ordered·map·based·on·a·B-Tree."><title>BTreeMap·in·alloc::collections::btree_map·-·Rust</title><script>·if·(window.location.protocol·!==·"file:")·document.write(`<link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../../static.files/SourceSerif4-Regular-46f98efaafac5295.ttf.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../../static.files/FiraSans-Regular-018c141bf0843ffd.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../../static.files/FiraSans-Medium-8f9a781e4970d388.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../../static.files/SourceCodePro-Regular-562dcc5011b6de7d.ttf.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../../static.files/SourceCodePro-Semibold-d899c5a5c4aeb14a.ttf.woff2">`)</script><link·rel="stylesheet"·href="../../../static.files/normalize-76eba96aa4d2e634.css"><link·rel="stylesheet"·href="../../../static.files/rustdoc-35f9e32502181f1e.css"><meta·name="rustdoc-vars"·data-root-path="../../../"·data-static-root-path="../../../static.files/"·data-current-crate="alloc"·data-themes=""·data-resource-suffix="1.78.0"·data-rustdoc-version="1.78.0"·data-channel="1.78.0"·data-search-js="search-42d8da7a6b9792c2.js"·data-settings-js="settings-4313503d2e1961c2.js"·><script·src="../../../static.files/storage-4c98445ec4002617.js"></script><script·defer·src="sidebar-items1.78.0.js"></script><script·defer·src="../../../static.files/main-12cf3b4f4f9dc36d.js"></script><noscript><link·rel="stylesheet"·href="../../../static.files/noscript-04d5337699b92874.css"></noscript><link·rel="alternate·icon"·type="image/png"·href="../../../static.files/favicon-16x16-8b506e7a72182f1c.png"><link·rel="alternate·icon"·type="image/png"·href="../../../static.files/favicon-32x32-422f7d1d52889060.png"><link·rel="icon"·type="image/svg+xml"·href="../../../static.files/favicon-2c020d218678b618.svg"></head><body·class="rustdoc·struct"><!--[if·lte·IE·11]><div·class="warning">This·old·browser·is·unsupported·and·will·most·likely·display·funky·things.</div><![endif]--><nav·class="mobile-topbar"><button·class="sidebar-menu-toggle"·title="show·sidebar"></button><a·class="logo-container"·href="../../../alloc/index.html"><img·class="rust-logo"·src="../../../static.files/rust-logo-151179464ae7ed46.svg"·alt=""></a></nav><nav·class="sidebar"><div·class="sidebar-crate"><a·class="logo-container"·href="../../../alloc/index.html"><img·class="rust-logo"·src="../../../static.files/rust-logo-151179464ae7ed46.svg"·alt="logo"></a><h2><a·href="../../../alloc/index.html">alloc</a><span·class="version">1.78.0</span></h2></div><h2·class="location"><a·href="#">BTreeMap</a></h2><div·class="sidebar-elems"><section><h3><a·href="#implementations">Methods</a></h3><ul·class="block·method"><li><a·href="#method.append">append</a></li><li><a·href="#method.clear">clear</a></li><li><a·href="#method.contains_key">contains_key</a></li><li><a·href="#method.entry">entry</a></li><li><a·href="#method.extract_if">extract_if</a></li><li><a·href="#method.first_entry">first_entry</a></li><li><a·href="#method.first_key_value">first_key_value</a></li><li><a·href="#method.get">get</a></li><li><a·href="#method.get_key_value">get_key_value</a></li><li><a·href="#method.get_mut">get_mut</a></li><li><a·href="#method.insert">insert</a></li><li><a·href="#method.into_keys">into_keys</a></li><li><a·href="#method.into_values">into_values</a></li><li><a·href="#method.is_empty">is_empty</a></li><li><a·href="#method.iter">iter</a></li><li><a·href="#method.iter_mut">iter_mut</a></li><li><a·href="#method.keys">keys</a></li><li><a·href="#method.last_entry">last_entry</a></li><li><a·href="#method.last_key_value">last_key_value</a></li><li><a·href="#method.len">len</a></li><li><a·href="#method.lower_bound">lower_bound</a></li><li><a·href="#method.lower_bound_mut">lower_bound_mut</a></li><li><a·href="#method.new">new</a></li><li><a·href="#method.new_in">new_in</a></li><li><a·href="#method.pop_first">pop_first</a></li><li><a·href="#method.pop_last">pop_last</a></li><li><a·href="#method.range">range</a></li><li><a·href="#method.range_mut">range_mut</a></li><li><a·href="#method.remove">remove</a></li><li><a·href="#method.remove_entry">remove_entry</a></li><li><a·href="#method.retain">retain</a></li><li><a·href="#method.split_off">split_off</a></li><li><a·href="#method.try_insert">try_insert</a></li><li><a·href="#method.upper_bound">upper_bound</a></li><li><a·href="#method.upper_bound_mut">upper_bound_mut</a></li><li><a·href="#method.values">values</a></li><li><a·href="#method.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">Clone</a></li><li><a·href="#impl-Debug-for-BTreeMap%3CK,+V,+A%3E">Debug</a></li><li><a·href="#impl-Default-for-BTreeMap%3CK,+V%3E">Default</a></li><li><a·href="#impl-Drop-for-BTreeMap%3CK,+V,+A%3E">Drop</a></li><li><a·href="#impl-Eq-for-BTreeMap%3CK,+V,+A%3E">Eq</a></li><li><a·href="#impl-Extend%3C(%26K,+%26V)%3E-for-BTreeMap%3CK,+V,+A%3E">Extend&lt;(&amp;&#x27;a·K,·&amp;&#x27;a·V)&gt;</a></li><li><a·href="#impl-Extend%3C(K,+V)%3E-for-BTreeMap%3CK,+V,+A%3E">Extend&lt;(K,·V)&gt;</a></li><li><a·href="#impl-From%3C%5B(K,+V);+N%5D%3E-for-BTreeMap%3CK,+V%3E">From&lt;[(K,·V);·N]&gt;</a></li><li><a·href="#impl-FromIterator%3C(K,+V)%3E-for-BTreeMap%3CK,+V%3E">FromIterator&lt;(K,·V)&gt;</a></li><li><a·href="#impl-Hash-for-BTreeMap%3CK,+V,+A%3E">Hash</a></li><li><a·href="#impl-Index%3C%26Q%3E-for-BTreeMap%3CK,+V,+A%3E">Index&lt;&amp;Q&gt;</a></li><li><a·href="#impl-IntoIterator-for-%26BTreeMap%3CK,+V,+A%3E">IntoIterator</a></li><li><a·href="#impl-IntoIterator-for-%26mut+BTreeMap%3CK,+V,+A%3E">IntoIterator</a></li><li><a·href="#impl-IntoIterator-for-BTreeMap%3CK,+V,+A%3E">IntoIterator</a></li><li><a·href="#impl-Ord-for-BTreeMap%3CK,+V,+A%3E">Ord</a></li><li><a·href="#impl-PartialEq-for-BTreeMap%3CK,+V,+A%3E">PartialEq</a></li><li><a·href="#impl-PartialOrd-for-BTreeMap%3CK,+V,+A%3E">PartialOrd</a></li><li><a·href="#impl-UnwindSafe-for-BTreeMap%3CK,+V,+A%3E">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">Freeze</a></li><li><a·href="#impl-RefUnwindSafe-for-BTreeMap%3CK,+V,+A%3E">RefUnwindSafe</a></li><li><a·href="#impl-Send-for-BTreeMap%3CK,+V,+A%3E">Send</a></li><li><a·href="#impl-Sync-for-BTreeMap%3CK,+V,+A%3E">Sync</a></li><li><a·href="#impl-Unpin-for-BTreeMap%3CK,+V,+A%3E">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">Any</a></li><li><a·href="#impl-Borrow%3CT%3E-for-T">Borrow&lt;T&gt;</a></li><li><a·href="#impl-BorrowMut%3CT%3E-for-T">BorrowMut&lt;T&gt;</a></li><li><a·href="#impl-From%3CT%3E-for-T">From&lt;T&gt;</a></li><li><a·href="#impl-Into%3CU%3E-for-T">Into&lt;U&gt;</a></li><li><a·href="#impl-ToOwned-for-T">ToOwned</a></li><li><a·href="#impl-TryFrom%3CU%3E-for-T">TryFrom&lt;U&gt;</a></li><li><a·href="#impl-TryInto%3CU%3E-for-T">TryInto&lt;U&gt;</a></li></ul></section><h2><a·href="index.html">In·alloc::collections::btree_map</a></h2></div></nav><div·class="sidebar-resizer"></div>1 <!DOCTYPE·html><html·lang="en"><head><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.write(`<link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../../static.files/SourceSerif4-Regular-46f98efaafac5295.ttf.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../../static.files/FiraSans-Regular-018c141bf0843ffd.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../../static.files/FiraSans-Medium-8f9a781e4970d388.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../../static.files/SourceCodePro-Regular-562dcc5011b6de7d.ttf.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../../static.files/SourceCodePro-Semibold-d899c5a5c4aeb14a.ttf.woff2">`)</script><link·rel="stylesheet"·href="../../../static.files/normalize-76eba96aa4d2e634.css"><link·rel="stylesheet"·href="../../../static.files/rustdoc-35f9e32502181f1e.css"><meta·name="rustdoc-vars"·data-root-path="../../../"·data-static-root-path="../../../static.files/"·data-current-crate="alloc"·data-themes=""·data-resource-suffix="1.78.0"·data-rustdoc-version="1.78.0"·data-channel="1.78.0"·data-search-js="search-42d8da7a6b9792c2.js"·data-settings-js="settings-4313503d2e1961c2.js"·><script·src="../../../static.files/storage-4c98445ec4002617.js"></script><script·defer·src="sidebar-items1.78.0.js"></script><script·defer·src="../../../static.files/main-12cf3b4f4f9dc36d.js"></script><noscript><link·rel="stylesheet"·href="../../../static.files/noscript-04d5337699b92874.css"></noscript><link·rel="alternate·icon"·type="image/png"·href="../../../static.files/favicon-16x16-8b506e7a72182f1c.png"><link·rel="alternate·icon"·type="image/png"·href="../../../static.files/favicon-32x32-422f7d1d52889060.png"><link·rel="icon"·type="image/svg+xml"·href="../../../static.files/favicon-2c020d218678b618.svg"></head><body·class="rustdoc·struct"><!--[if·lte·IE·11]><div·class="warning">This·old·browser·is·unsupported·and·will·most·likely·display·funky·things.</div><![endif]--><nav·class="mobile-topbar"><button·class="sidebar-menu-toggle"·title="show·sidebar"></button><a·class="logo-container"·href="../../../alloc/index.html"><img·class="rust-logo"·src="../../../static.files/rust-logo-151179464ae7ed46.svg"·alt=""></a></nav><nav·class="sidebar"><div·class="sidebar-crate"><a·class="logo-container"·href="../../../alloc/index.html"><img·class="rust-logo"·src="../../../static.files/rust-logo-151179464ae7ed46.svg"·alt="logo"></a><h2><a·href="../../../alloc/index.html">alloc</a><span·class="version">1.78.0</span></h2></div><h2·class="location"><a·href="#">BTreeMap</a></h2><div·class="sidebar-elems"><section><h3><a·href="#implementations">Methods</a></h3><ul·class="block·method"><li><a·href="#method.append">append</a></li><li><a·href="#method.clear">clear</a></li><li><a·href="#method.contains_key">contains_key</a></li><li><a·href="#method.entry">entry</a></li><li><a·href="#method.extract_if">extract_if</a></li><li><a·href="#method.first_entry">first_entry</a></li><li><a·href="#method.first_key_value">first_key_value</a></li><li><a·href="#method.get">get</a></li><li><a·href="#method.get_key_value">get_key_value</a></li><li><a·href="#method.get_mut">get_mut</a></li><li><a·href="#method.insert">insert</a></li><li><a·href="#method.into_keys">into_keys</a></li><li><a·href="#method.into_values">into_values</a></li><li><a·href="#method.is_empty">is_empty</a></li><li><a·href="#method.iter">iter</a></li><li><a·href="#method.iter_mut">iter_mut</a></li><li><a·href="#method.keys">keys</a></li><li><a·href="#method.last_entry">last_entry</a></li><li><a·href="#method.last_key_value">last_key_value</a></li><li><a·href="#method.len">len</a></li><li><a·href="#method.lower_bound">lower_bound</a></li><li><a·href="#method.lower_bound_mut">lower_bound_mut</a></li><li><a·href="#method.new">new</a></li><li><a·href="#method.new_in">new_in</a></li><li><a·href="#method.pop_first">pop_first</a></li><li><a·href="#method.pop_last">pop_last</a></li><li><a·href="#method.range">range</a></li><li><a·href="#method.range_mut">range_mut</a></li><li><a·href="#method.remove">remove</a></li><li><a·href="#method.remove_entry">remove_entry</a></li><li><a·href="#method.retain">retain</a></li><li><a·href="#method.split_off">split_off</a></li><li><a·href="#method.try_insert">try_insert</a></li><li><a·href="#method.upper_bound">upper_bound</a></li><li><a·href="#method.upper_bound_mut">upper_bound_mut</a></li><li><a·href="#method.values">values</a></li><li><a·href="#method.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">Clone</a></li><li><a·href="#impl-Debug-for-BTreeMap%3CK,+V,+A%3E">Debug</a></li><li><a·href="#impl-Default-for-BTreeMap%3CK,+V%3E">Default</a></li><li><a·href="#impl-Drop-for-BTreeMap%3CK,+V,+A%3E">Drop</a></li><li><a·href="#impl-Eq-for-BTreeMap%3CK,+V,+A%3E">Eq</a></li><li><a·href="#impl-Extend%3C(%26K,+%26V)%3E-for-BTreeMap%3CK,+V,+A%3E">Extend&lt;(&amp;&#x27;a·K,·&amp;&#x27;a·V)&gt;</a></li><li><a·href="#impl-Extend%3C(K,+V)%3E-for-BTreeMap%3CK,+V,+A%3E">Extend&lt;(K,·V)&gt;</a></li><li><a·href="#impl-From%3C%5B(K,+V);+N%5D%3E-for-BTreeMap%3CK,+V%3E">From&lt;[(K,·V);·N]&gt;</a></li><li><a·href="#impl-FromIterator%3C(K,+V)%3E-for-BTreeMap%3CK,+V%3E">FromIterator&lt;(K,·V)&gt;</a></li><li><a·href="#impl-Hash-for-BTreeMap%3CK,+V,+A%3E">Hash</a></li><li><a·href="#impl-Index%3C%26Q%3E-for-BTreeMap%3CK,+V,+A%3E">Index&lt;&amp;Q&gt;</a></li><li><a·href="#impl-IntoIterator-for-%26BTreeMap%3CK,+V,+A%3E">IntoIterator</a></li><li><a·href="#impl-IntoIterator-for-%26mut+BTreeMap%3CK,+V,+A%3E">IntoIterator</a></li><li><a·href="#impl-IntoIterator-for-BTreeMap%3CK,+V,+A%3E">IntoIterator</a></li><li><a·href="#impl-Ord-for-BTreeMap%3CK,+V,+A%3E">Ord</a></li><li><a·href="#impl-PartialEq-for-BTreeMap%3CK,+V,+A%3E">PartialEq</a></li><li><a·href="#impl-PartialOrd-for-BTreeMap%3CK,+V,+A%3E">PartialOrd</a></li><li><a·href="#impl-UnwindSafe-for-BTreeMap%3CK,+V,+A%3E">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">Freeze</a></li><li><a·href="#impl-RefUnwindSafe-for-BTreeMap%3CK,+V,+A%3E">RefUnwindSafe</a></li><li><a·href="#impl-Send-for-BTreeMap%3CK,+V,+A%3E">Send</a></li><li><a·href="#impl-Sync-for-BTreeMap%3CK,+V,+A%3E">Sync</a></li><li><a·href="#impl-Unpin-for-BTreeMap%3CK,+V,+A%3E">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">Any</a></li><li><a·href="#impl-Borrow%3CT%3E-for-T">Borrow&lt;T&gt;</a></li><li><a·href="#impl-BorrowMut%3CT%3E-for-T">BorrowMut&lt;T&gt;</a></li><li><a·href="#impl-From%3CT%3E-for-T">From&lt;T&gt;</a></li><li><a·href="#impl-Into%3CU%3E-for-T">Into&lt;U&gt;</a></li><li><a·href="#impl-ToOwned-for-T">ToOwned</a></li><li><a·href="#impl-TryFrom%3CU%3E-for-T">TryFrom&lt;U&gt;</a></li><li><a·href="#impl-TryInto%3CU%3E-for-T">TryInto&lt;U&gt;</a></li></ul></section><h2><a·href="index.html">In·alloc::collections::btree_map</a></h2></div></nav><div·class="sidebar-resizer"></div>
2 ····<main><div·class="width-limiter"><nav·class="sub"><form·class="search-form"><span></span><div·id="sidebar-button"·tabindex="-1"><a·href="../../../alloc/all.html"·title="show·sidebar"></a></div><input·class="search-input"·name="search"·aria-label="Run·search·in·the·documentation"·autocomplete="off"·spellcheck="false"·placeholder="Click·or·press·‘S’·to·search,·‘?’·for·more·options…"·type="search"><div·id="help-button"·tabindex="-1"><a·href="../../../help.html"·title="help">?</a></div><div·id="settings-menu"·tabindex="-1"><a·href="../../../settings.html"·title="settings"><img·width="22"·height="22"·alt="Change·settings"·src="../../../static.files/wheel-7b819b6101059cd0.svg"></a></div></form></nav><section·id="main-content"·class="content"><div·class="main-heading"><h1>Struct·<a·href="../../index.html">alloc</a>::<wbr><a·href="../index.html">collections</a>::<wbr><a·href="index.html">btree_map</a>::<wbr><a·class="struct"·href="#">BTreeMap</a><button·id="copy-path"·title="Copy·item·path·to·clipboard"><img·src="../../../static.files/clipboard-7571035ce49a181d.svg"·width="19"·height="18"·alt="Copy·item·path"></button></h1><span·class="out-of-band"><span·class="since"·title="Stable·since·Rust·version·1.0.0">1.0.0</span>···<a·class="src"·href="../../../src/alloc/collections/btree/map.rs.html#173-184">source</a>···<button·id="toggle-all-docs"·title="collapse·all·docs">[<span>&#x2212;</span>]</button></span></div><pre·class="rust·item-decl"><code>pub·struct·BTreeMap&lt;K,·V,·A:·<a·class="trait"·href="../../alloc/trait.Allocator.html"·title="trait·alloc::alloc::Allocator">Allocator</a>·+·<a·class="trait"·href="../../../core/clone/trait.Clone.html"·title="trait·core::clone::Clone">Clone</a>·=·<a·class="struct"·href="../../alloc/struct.Global.html"·title="struct·alloc::alloc::Global">Global</a>&gt;·{·<span·class="comment">/*·private·fields·*/</span>·}</code></pre><details·class="toggle·top-doc"·open><summary·class="hideme"><span>Expand·description</span></summary><div·class="docblock"><p>An·ordered·map·based·on·a·<a·href="https://en.wikipedia.org/wiki/B-tree">B-Tree</a>.</p>2 ····<main><div·class="width-limiter"><nav·class="sub"><form·class="search-form"><span></span><div·id="sidebar-button"·tabindex="-1"><a·href="../../../alloc/all.html"·title="show·sidebar"></a></div><input·class="search-input"·name="search"·aria-label="Run·search·in·the·documentation"·autocomplete="off"·spellcheck="false"·placeholder="Click·or·press·‘S’·to·search,·‘?’·for·more·options…"·type="search"><div·id="help-button"·tabindex="-1"><a·href="../../../help.html"·title="help">?</a></div><div·id="settings-menu"·tabindex="-1"><a·href="../../../settings.html"·title="settings"><img·width="22"·height="22"·alt="Change·settings"·src="../../../static.files/wheel-7b819b6101059cd0.svg"></a></div></form></nav><section·id="main-content"·class="content"><div·class="main-heading"><h1>Struct·<a·href="../../index.html">alloc</a>::<wbr><a·href="../index.html">collections</a>::<wbr><a·href="index.html">btree_map</a>::<wbr><a·class="struct"·href="#">BTreeMap</a><button·id="copy-path"·title="Copy·item·path·to·clipboard"><img·src="../../../static.files/clipboard-7571035ce49a181d.svg"·width="19"·height="18"·alt="Copy·item·path"></button></h1><span·class="out-of-band"><span·class="since"·title="Stable·since·Rust·version·1.0.0">1.0.0</span>···<a·class="src"·href="../../../src/alloc/collections/btree/map.rs.html#173-184">source</a>···<button·id="toggle-all-docs"·title="collapse·all·docs">[<span>&#x2212;</span>]</button></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.78.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>
3 <p>B-Trees·represent·a·fundamental·compromise·between·cache-efficiency·and·actually·minimizing3 <p>B-Trees·represent·a·fundamental·compromise·between·cache-efficiency·and·actually·minimizing
4 the·amount·of·work·performed·in·a·search.·In·theory,·a·binary·search·tree·(BST)·is·the·optimal4 the·amount·of·work·performed·in·a·search.·In·theory,·a·binary·search·tree·(BST)·is·the·optimal
5 choice·for·a·sorted·map,·as·a·perfectly·balanced·BST·performs·the·theoretical·minimum·amount·of5 choice·for·a·sorted·map,·as·a·perfectly·balanced·BST·performs·the·theoretical·minimum·amount·of
6 comparisons·necessary·to·find·an·element·(log<sub>2</sub>n).·However,·in·practice·the·way·this6 comparisons·necessary·to·find·an·element·(log<sub>2</sub>n).·However,·in·practice·the·way·this
7 is·done·is·<em>very</em>·inefficient·for·modern·computer·architectures.·In·particular,·every·element7 is·done·is·<em>very</em>·inefficient·for·modern·computer·architectures.·In·particular,·every·element
8 is·stored·in·its·own·individually·heap-allocated·node.·This·means·that·every·single·insertion8 is·stored·in·its·own·individually·heap-allocated·node.·This·means·that·every·single·insertion
9 triggers·a·heap-allocation,·and·every·single·comparison·should·be·a·cache-miss.·Since·these9 triggers·a·heap-allocation,·and·every·single·comparison·should·be·a·cache-miss.·Since·these
Offset 19, 16 lines modifiedOffset 19, 16 lines modified
19 <p>Currently,·our·implementation·simply·performs·naive·linear·search.·This·provides·excellent19 <p>Currently,·our·implementation·simply·performs·naive·linear·search.·This·provides·excellent
20 performance·on·<em>small</em>·nodes·of·elements·which·are·cheap·to·compare.·However·in·the·future·we20 performance·on·<em>small</em>·nodes·of·elements·which·are·cheap·to·compare.·However·in·the·future·we
21 would·like·to·further·explore·choosing·the·optimal·search·strategy·based·on·the·choice·of·B,21 would·like·to·further·explore·choosing·the·optimal·search·strategy·based·on·the·choice·of·B,
22 and·possibly·other·factors.·Using·linear·search,·searching·for·a·random·element·is·expected22 and·possibly·other·factors.·Using·linear·search,·searching·for·a·random·element·is·expected
23 to·take·B·*·log(n)·comparisons,·which·is·generally·worse·than·a·BST.·In·practice,23 to·take·B·*·log(n)·comparisons,·which·is·generally·worse·than·a·BST.·In·practice,
24 however,·performance·is·excellent.</p>24 however,·performance·is·excellent.</p>
25 <p>It·is·a·logic·error·for·a·key·to·be·modified·in·such·a·way·that·the·key’s·ordering·relative·to25 <p>It·is·a·logic·error·for·a·key·to·be·modified·in·such·a·way·that·the·key’s·ordering·relative·to
26 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·is26 any·other·key,·as·determined·by·the·<a·href="https://doc.rust-lang.org/1.78.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
27 normally·only·possible·through·<a·href="../../../core/cell/struct.Cell.html"·title="struct·core::cell::Cell"><code>Cell</code></a>,·<a·href="../../../core/cell/struct.RefCell.html"·title="struct·core::cell::RefCell"><code>RefCell</code></a>,·global·state,·I/O,·or·unsafe·code.27 normally·only·possible·through·<a·href="https://doc.rust-lang.org/1.78.0/core/cell/struct.Cell.html"·title="struct·core::cell::Cell"><code>Cell</code></a>,·<a·href="https://doc.rust-lang.org/1.78.0/core/cell/struct.RefCell.html"·title="struct·core::cell::RefCell"><code>RefCell</code></a>,·global·state,·I/O,·or·unsafe·code.
28 The·behavior·resulting·from·such·a·logic·error·is·not·specified,·but·will·be·encapsulated·to·the28 The·behavior·resulting·from·such·a·logic·error·is·not·specified,·but·will·be·encapsulated·to·the
29 <code>BTreeMap</code>·that·observed·the·logic·error·and·not·result·in·undefined·behavior.·This·could29 <code>BTreeMap</code>·that·observed·the·logic·error·and·not·result·in·undefined·behavior.·This·could
30 include·panics,·incorrect·results,·aborts,·memory·leaks,·and·non-termination.</p>30 include·panics,·incorrect·results,·aborts,·memory·leaks,·and·non-termination.</p>
31 <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.values"·title="method·alloc::collections::btree_map::BTreeMap::values"><code>BTreeMap::values</code></a>,·or31 <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.values"·title="method·alloc::collections::btree_map::BTreeMap::values"><code>BTreeMap::values</code></a>,·or
32 <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·and32 <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
33 amortized·constant·time·per·item·returned.</p>33 amortized·constant·time·per·item·returned.</p>
34 <h2·id="examples"><a·class="doc-anchor"·href="#examples">§</a>Examples</h2>34 <h2·id="examples"><a·class="doc-anchor"·href="#examples">§</a>Examples</h2>
Offset 112, 15 lines modifiedOffset 112, 15 lines modified
112 <h5·id="examples-1"><a·class="doc-anchor"·href="#examples-1">§</a>Examples</h5>112 <h5·id="examples-1"><a·class="doc-anchor"·href="#examples-1">§</a>Examples</h5>
113 <div·class="example-wrap"><pre·class="rust·rust-example-rendered"><code><span·class="kw">use·</span>std::collections::BTreeMap;113 <div·class="example-wrap"><pre·class="rust·rust-example-rendered"><code><span·class="kw">use·</span>std::collections::BTreeMap;
  
114 <span·class="kw">let·</span><span·class="kw-2">mut·</span>map·=·BTreeMap::new();114 <span·class="kw">let·</span><span·class="kw-2">mut·</span>map·=·BTreeMap::new();
  
115 <span·class="comment">//·entries·can·now·be·inserted·into·the·empty·map115 <span·class="comment">//·entries·can·now·be·inserted·into·the·empty·map
116 </span>map.insert(<span·class="number">1</span>,·<span·class="string">"a"</span>);</code></pre><a·class="test-arrow"·target="_blank"·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">Run</a></div>116 </span>map.insert(<span·class="number">1</span>,·<span·class="string">"a"</span>);</code></pre><a·class="test-arrow"·target="_blank"·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">Run</a></div>
117 </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"><a·class="src·rightside"·href="../../../src/alloc/collections/btree/map.rs.html#648-656">source</a><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 </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.78.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"><a·class="src·rightside"·href="../../../src/alloc/collections/btree/map.rs.html#648-656">source</a><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>
118 <h5·id="examples-2"><a·class="doc-anchor"·href="#examples-2">§</a>Examples</h5>118 <h5·id="examples-2"><a·class="doc-anchor"·href="#examples-2">§</a>Examples</h5>
119 <div·class="example-wrap"><pre·class="rust·rust-example-rendered"><code><span·class="kw">use·</span>std::collections::BTreeMap;119 <div·class="example-wrap"><pre·class="rust·rust-example-rendered"><code><span·class="kw">use·</span>std::collections::BTreeMap;
  
120 <span·class="kw">let·</span><span·class="kw-2">mut·</span>a·=·BTreeMap::new();120 <span·class="kw">let·</span><span·class="kw-2">mut·</span>a·=·BTreeMap::new();
121 a.insert(<span·class="number">1</span>,·<span·class="string">"a"</span>);121 a.insert(<span·class="number">1</span>,·<span·class="string">"a"</span>);
122 a.clear();122 a.clear();
123 <span·class="macro">assert!</span>(a.is_empty());</code></pre><a·class="test-arrow"·target="_blank"·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">Run</a></div>123 <span·class="macro">assert!</span>(a.is_empty());</code></pre><a·class="test-arrow"·target="_blank"·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">Run</a></div>
Offset 129, 149 lines modifiedOffset 129, 149 lines modified
129 <div·class="example-wrap"><pre·class="rust·rust-example-rendered"><code><span·class="kw">use·</span>std::collections::BTreeMap;129 <div·class="example-wrap"><pre·class="rust·rust-example-rendered"><code><span·class="kw">use·</span>std::collections::BTreeMap;
130 <span·class="kw">use·</span>std::alloc::Global;130 <span·class="kw">use·</span>std::alloc::Global;
  
131 <span·class="kw">let·</span><span·class="kw-2">mut·</span>map·=·BTreeMap::new_in(Global);131 <span·class="kw">let·</span><span·class="kw-2">mut·</span>map·=·BTreeMap::new_in(Global);
  
132 <span·class="comment">//·entries·can·now·be·inserted·into·the·empty·map132 <span·class="comment">//·entries·can·now·be·inserted·into·the·empty·map
133 </span>map.insert(<span·class="number">1</span>,·<span·class="string">"a"</span>);</code></pre><a·class="test-arrow"·target="_blank"·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">Run</a></div>133 </span>map.insert(<span·class="number">1</span>,·<span·class="string">"a"</span>);</code></pre><a·class="test-arrow"·target="_blank"·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">Run</a></div>
134 </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-1482">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:·523,·SHA:·ebd1c2ba83930c892020d78b90fede0aa9614a098d9afcedd113637bbc4048d7·...·]/core/primitive.reference.html">&amp;V</a>&gt;<div·class="where">where134 </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-1482">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.78.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:·619,·SHA:·5d6aaa91a56084248d4226e8f1f1b0768b920627e429fb076571e899de232493·...·]/core/primitive.reference.html">&amp;V</a>&gt;<div·class="where">where
135 ····K:·<a·class="trait"·href="../../borrow/trait.Borrow.html"·title="trait·alloc::borrow::Borrow">Borrow</a>&lt;Q&gt;·+·<a·class="trait"·href="../../../core/cmp/trait.Ord.html"·title="trait·core::cmp::Ord">Ord</a>,135 ····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.78.0/core/cmp/trait.Ord.html"·title="trait·core::cmp::Ord">Ord</a>,
136 ····Q:·<a·class="trait"·href="../../../core/cmp/trait.Ord.html"·title="trait·core::cmp::Ord">Ord</a>·+·?<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class="docblock"><p>Returns·a·reference·to·the·value·corresponding·to·the·key.</p>136 ····Q:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/cmp/trait.Ord.html"·title="trait·core::cmp::Ord">Ord</a>·+·?<a·class="trait"·href="https://doc.rust-lang.org/1.78.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>
137 <p>The·key·may·be·any·borrowed·form·of·the·map’s·key·type,·but·the·ordering137 <p>The·key·may·be·any·borrowed·form·of·the·map’s·key·type,·but·the·ordering
138 on·the·borrowed·form·<em>must</em>·match·the·ordering·on·the·key·type.</p>138 on·the·borrowed·form·<em>must</em>·match·the·ordering·on·the·key·type.</p>
139 <h5·id="examples-4"><a·class="doc-anchor"·href="#examples-4">§</a>Examples</h5>139 <h5·id="examples-4"><a·class="doc-anchor"·href="#examples-4">§</a>Examples</h5>
140 <div·class="example-wrap"><pre·class="rust·rust-example-rendered"><code><span·class="kw">use·</span>std::collections::BTreeMap;140 <div·class="example-wrap"><pre·class="rust·rust-example-rendered"><code><span·class="kw">use·</span>std::collections::BTreeMap;
  
141 <span·class="kw">let·</span><span·class="kw-2">mut·</span>map·=·BTreeMap::new();141 <span·class="kw">let·</span><span·class="kw-2">mut·</span>map·=·BTreeMap::new();
142 map.insert(<span·class="number">1</span>,·<span·class="string">"a"</span>);142 map.insert(<span·class="number">1</span>,·<span·class="string">"a"</span>);
143 <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">1</span>),·<span·class="prelude-val">Some</span>(<span·class="kw-2">&amp;</span><span·class="string">"a"</span>));
144 <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"·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">Run</a></div>144 <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"·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">Run</a></div>
145 </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">where145 </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.78.0/core/primitive.reference.html">&amp;Q</a>)·-&gt;·<a·class="enum"·href="https://doc.rust-lang.org/1.78.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:·4fc4c16ca3e87bd6f89f114ac94a81e3827239fe0fcc0ea4c1a98eee1e30fb16·...·]/core/primitive.reference.html">&amp;V</a>)&gt;<div·class="where">where
146 ····K:·<a·class="trait"·href="../../borrow/trait.Borrow.html"·title="trait·alloc::borrow::Borrow">Borrow</a>&lt;Q&gt;·+·<a·class="trait"·href="../../../core/cmp/trait.Ord.html"·title="trait·core::cmp::Ord">Ord</a>,146 ····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.78.0/core/cmp/trait.Ord.html"·title="trait·core::cmp::Ord">Ord</a>,
147 ····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>147 ····Q:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/cmp/trait.Ord.html"·title="trait·core::cmp::Ord">Ord</a>·+·?<a·class="trait"·href="https://doc.rust-lang.org/1.78.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>
148 <p>The·supplied·key·may·be·any·borrowed·form·of·the·map’s·key·type,·but·the·ordering148 <p>The·supplied·key·may·be·any·borrowed·form·of·the·map’s·key·type,·but·the·ordering
149 on·the·borrowed·form·<em>must</em>·match·the·ordering·on·the·key·type.</p>149 on·the·borrowed·form·<em>must</em>·match·the·ordering·on·the·key·type.</p>
150 <h5·id="examples-5"><a·class="doc-anchor"·href="#examples-5">§</a>Examples</h5>150 <h5·id="examples-5"><a·class="doc-anchor"·href="#examples-5">§</a>Examples</h5>
151 <div·class="example-wrap"><pre·class="rust·rust-example-rendered"><code><span·class="kw">use·</span>std::collections::BTreeMap;151 <div·class="example-wrap"><pre·class="rust·rust-example-rendered"><code><span·class="kw">use·</span>std::collections::BTreeMap;
  
152 <span·class="kw">let·</span><span·class="kw-2">mut·</span>map·=·BTreeMap::new();152 <span·class="kw">let·</span><span·class="kw-2">mut·</span>map·=·BTreeMap::new();
153 map.insert(<span·class="number">1</span>,·<span·class="string">"a"</span>);153 map.insert(<span·class="number">1</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">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">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>)));
155 <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"·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">Run</a></div>155 <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"·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">Run</a></div>
156 </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">where156 </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.78.0/core/option/enum.Option.html"·title="enum·core::option::Option">Option</a>&lt;(<a·class="primitive"·href="https://doc.rust-lang.org/1.78.0/core/primitive.reference.html">&amp;K</a>,·<a·class="primitive"·href="https://doc.ru[·...·truncated·by·diffoscope;·len:·18,·SHA:·67431134639bc3b996b86af3e89e93939956eb0b8cd527a83557d09cb042ce96·...·]/core/primitive.reference.html">&amp;V</a>)&gt;<div·class="where">where
157 ····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.157 ····K:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.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.
158 The·key·in·this·pair·is·the·minimum·key·in·the·map.</p>158 The·key·in·this·pair·is·the·minimum·key·in·the·map.</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::collections::BTreeMap;160 <div·class="example-wrap"><pre·class="rust·rust-example-rendered"><code><span·class="kw">use·</span>std::collections::BTreeMap;
  
161 <span·class="kw">let·</span><span·class="kw-2">mut·</span>map·=·BTreeMap::new();161 <span·class="kw">let·</span><span·class="kw-2">mut·</span>map·=·BTreeMap::new();
162 <span·class="macro">assert_eq!</span>(map.first_key_value(),·<span·class="prelude-val">None</span>);162 <span·class="macro">assert_eq!</span>(map.first_key_value(),·<span·class="prelude-val">None</span>);
163 map.insert(<span·class="number">1</span>,·<span·class="string">"b"</span>);163 map.insert(<span·class="number">1</span>,·<span·class="string">"b"</span>);
164 map.insert(<span·class="number">2</span>,·<span·class="string">"a"</span>);164 map.insert(<span·class="number">2</span>,·<span·class="string">"a"</span>);
165 <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"·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">Run</a></div>165 <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"·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">Run</a></div>
166 </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">where166 </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.78.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
167 ····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.167 ····K:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.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.
168 The·key·of·this·entry·is·the·minimum·key·in·the·map.</p>168 The·key·of·this·entry·is·the·minimum·key·in·the·map.</p>
169 <h5·id="examples-7"><a·class="doc-anchor"·href="#examples-7">§</a>Examples</h5>169 <h5·id="examples-7"><a·class="doc-anchor"·href="#examples-7">§</a>Examples</h5>
170 <div·class="example-wrap"><pre·class="rust·rust-example-rendered"><code><span·class="kw">use·</span>std::collections::BTreeMap;170 <div·class="example-wrap"><pre·class="rust·rust-example-rendered"><code><span·class="kw">use·</span>std::collections::BTreeMap;
  
171 <span·class="kw">let·</span><span·class="kw-2">mut·</span>map·=·BTreeMap::new();171 <span·class="kw">let·</span><span·class="kw-2">mut·</span>map·=·BTreeMap::new();
172 map.insert(<span·class="number">1</span>,·<span·class="string">"a"</span>);172 map.insert(<span·class="number">1</span>,·<span·class="string">"a"</span>);
173 map.insert(<span·class="number">2</span>,·<span·class="string">"b"</span>);173 map.insert(<span·class="number">2</span>,·<span·class="string">"b"</span>);
174 <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·let·</span><span·class="prelude-val">Some</span>(<span·class="kw-2">mut·</span>entry)·=·map.first_entry()·{
175 ····<span·class="kw">if·</span><span·class="kw-2">*</span>entry.key()·&gt;·<span·class="number">0·</span>{175 ····<span·class="kw">if·</span><span·class="kw-2">*</span>entry.key()·&gt;·<span·class="number">0·</span>{
176 ········entry.insert(<span·class="string">"first"</span>);176 ········entry.insert(<span·class="string">"first"</span>);
177 ····}177 ····}
178 }178 }
179 <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">1</span>).unwrap(),·<span·class="string">"first"</span>);
180 <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"·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">Run</a></div>180 <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"·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">Run</a></div>
181 </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">where181 </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.78.0/core/option/enum.Option.html"·title="enum·core::option::Option">Option</a>&lt;<a·class="primitive"·href="https://doc.rust-lang.org/1.78.0/core/primitive.tuple.html">(K,·V)</a>&gt;<div·class="where">where
182 ····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.182 ····K:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.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.
183 The·key·of·this·element·is·the·minimum·key·that·was·in·the·map.</p>183 The·key·of·this·element·is·the·minimum·key·that·was·in·the·map.</p>
184 <h5·id="examples-8"><a·class="doc-anchor"·href="#examples-8">§</a>Examples</h5>184 <h5·id="examples-8"><a·class="doc-anchor"·href="#examples-8">§</a>Examples</h5>
185 <p>Draining·elements·in·ascending·order,·while·keeping·a·usable·map·each·iteration.</p>185 <p>Draining·elements·in·ascending·order,·while·keeping·a·usable·map·each·iteration.</p>
  
186 <div·class="example-wrap"><pre·class="rust·rust-example-rendered"><code><span·class="kw">use·</span>std::collections::BTreeMap;186 <div·class="example-wrap"><pre·class="rust·rust-example-rendered"><code><span·class="kw">use·</span>std::collections::BTreeMap;
  
187 <span·class="kw">let·</span><span·class="kw-2">mut·</span>map·=·BTreeMap::new();187 <span·class="kw">let·</span><span·class="kw-2">mut·</span>map·=·BTreeMap::new();
188 map.insert(<span·class="number">1</span>,·<span·class="string">"a"</span>);188 map.insert(<span·class="number">1</span>,·<span·class="string">"a"</span>);
189 map.insert(<span·class="number">2</span>,·<span·class="string">"b"</span>);189 map.insert(<span·class="number">2</span>,·<span·class="string">"b"</span>);
190 <span·class="kw">while·let·</span><span·class="prelude-val">Some</span>((key,·_val))·=·map.pop_first()·{190 <span·class="kw">while·let·</span><span·class="prelude-val">Some</span>((key,·_val))·=·map.pop_first()·{
191 ····<span·class="macro">assert!</span>(map.iter().all(|(k,·_v)|·<span·class="kw-2">*</span>k·&gt;·key));191 ····<span·class="macro">assert!</span>(map.iter().all(|(k,·_v)|·<span·class="kw-2">*</span>k·&gt;·key));
192 }192 }
193 <span·class="macro">assert!</span>(map.is_empty());</code></pre><a·class="test-arrow"·target="_blank"·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">Run</a></div>193 <span·class="macro">assert!</span>(map.is_empty());</code></pre><a·class="test-arrow"·target="_blank"·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">Run</a></div>
194 </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">where194 </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.78.0/core/option/enum.Option.html"·title="enum·core::option::Option">Option</a>&lt;(<a·class="primitive"·href="https://doc.rust-lang.org/1.78.0/core/primitive.reference.html">&amp;K</a>,·<a·class="primitive"·href="https://doc.ru[·...·truncated·by·diffoscope;·len:·18,·SHA:·67431134639bc3b996b86af3e89e93939956eb0b8cd527a83557d09cb042ce96·...·]/core/primitive.reference.html">&amp;V</a>)&gt;<div·class="where">where
195 ····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.195 ····K:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.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.
196 The·key·in·this·pair·is·the·maximum·key·in·the·map.</p>196 The·key·in·this·pair·is·the·maximum·key·in·the·map.</p>
197 <h5·id="examples-9"><a·class="doc-anchor"·href="#examples-9">§</a>Examples</h5>197 <h5·id="examples-9"><a·class="doc-anchor"·href="#examples-9">§</a>Examples</h5>
198 <div·class="example-wrap"><pre·class="rust·rust-example-rendered"><code><span·class="kw">use·</span>std::collections::BTreeMap;198 <div·class="example-wrap"><pre·class="rust·rust-example-rendered"><code><span·class="kw">use·</span>std::collections::BTreeMap;
  
199 <span·class="kw">let·</span><span·class="kw-2">mut·</span>map·=·BTreeMap::new();199 <span·class="kw">let·</span><span·class="kw-2">mut·</span>map·=·BTreeMap::new();
200 map.insert(<span·class="number">1</span>,·<span·class="string">"b"</span>);200 map.insert(<span·class="number">1</span>,·<span·class="string">"b"</span>);
201 map.insert(<span·class="number">2</span>,·<span·class="string">"a"</span>);201 map.insert(<span·class="number">2</span>,·<span·class="string">"a"</span>);
202 <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"·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">Run</a></div>202 <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"·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">Run</a></div>
203 </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">where203 </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.78.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
Max diff block lines reached; 244716/289001 bytes (84.68%) of diff not shown.
57.5 KB
./usr/share/doc/rust-web-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.write(`<link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../../static.files/SourceSerif4-Regular-46f98efaafac5295.ttf.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../../static.files/FiraSans-Regular-018c141bf0843ffd.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../../static.files/FiraSans-Medium-8f9a781e4970d388.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../../static.files/SourceCodePro-Regular-562dcc5011b6de7d.ttf.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../../static.files/SourceCodePro-Semibold-d899c5a5c4aeb14a.ttf.woff2">`)</script><link·rel="stylesheet"·href="../../../static.files/normalize-76eba96aa4d2e634.css"><link·rel="stylesheet"·href="../../../static.files/rustdoc-35f9e32502181f1e.css"><meta·name="rustdoc-vars"·data-root-path="../../../"·data-static-root-path="../../../static.files/"·data-current-crate="alloc"·data-themes=""·data-resource-suffix="1.78.0"·data-rustdoc-version="1.78.0"·data-channel="1.78.0"·data-search-js="search-42d8da7a6b9792c2.js"·data-settings-js="settings-4313503d2e1961c2.js"·><script·src="../../../static.files/storage-4c98445ec4002617.js"></script><script·defer·src="sidebar-items1.78.0.js"></script><script·defer·src="../../../static.files/main-12cf3b4f4f9dc36d.js"></script><noscript><link·rel="stylesheet"·href="../../../static.files/noscript-04d5337699b92874.css"></noscript><link·rel="alternate·icon"·type="image/png"·href="../../../static.files/favicon-16x16-8b506e7a72182f1c.png"><link·rel="alternate·icon"·type="image/png"·href="../../../static.files/favicon-32x32-422f7d1d52889060.png"><link·rel="icon"·type="image/svg+xml"·href="../../../static.files/favicon-2c020d218678b618.svg"></head><body·class="rustdoc·struct"><!--[if·lte·IE·11]><div·class="warning">This·old·browser·is·unsupported·and·will·most·likely·display·funky·things.</div><![endif]--><nav·class="mobile-topbar"><button·class="sidebar-menu-toggle"·title="show·sidebar"></button><a·class="logo-container"·href="../../../alloc/index.html"><img·class="rust-logo"·src="../../../static.files/rust-logo-151179464ae7ed46.svg"·alt=""></a></nav><nav·class="sidebar"><div·class="sidebar-crate"><a·class="logo-container"·href="../../../alloc/index.html"><img·class="rust-logo"·src="../../../static.files/rust-logo-151179464ae7ed46.svg"·alt="logo"></a><h2><a·href="../../../alloc/index.html">alloc</a><span·class="version">1.78.0</span></h2></div><h2·class="location"><a·href="#">Cursor</a></h2><div·class="sidebar-elems"><section><h3><a·href="#implementations">Methods</a></h3><ul·class="block·method"><li><a·href="#method.next">next</a></li><li><a·href="#method.peek_next">peek_next</a></li><li><a·href="#method.peek_prev">peek_prev</a></li><li><a·href="#method.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">Clone</a></li><li><a·href="#impl-Debug-for-Cursor%3C'_,+K,+V%3E">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">Freeze</a></li><li><a·href="#impl-RefUnwindSafe-for-Cursor%3C'a,+K,+V%3E">RefUnwindSafe</a></li><li><a·href="#impl-Send-for-Cursor%3C'a,+K,+V%3E">Send</a></li><li><a·href="#impl-Sync-for-Cursor%3C'a,+K,+V%3E">Sync</a></li><li><a·href="#impl-Unpin-for-Cursor%3C'a,+K,+V%3E">Unpin</a></li><li><a·href="#impl-UnwindSafe-for-Cursor%3C'a,+K,+V%3E">UnwindSafe</a></li></ul><h3><a·href="#blanket-implementations">Blanket·Implementations</a></h3><ul·class="block·blanket-implementation"><li><a·href="#impl-Any-for-T">Any</a></li><li><a·href="#impl-Borrow%3CT%3E-for-T">Borrow&lt;T&gt;</a></li><li><a·href="#impl-BorrowMut%3CT%3E-for-T">BorrowMut&lt;T&gt;</a></li><li><a·href="#impl-From%3CT%3E-for-T">From&lt;T&gt;</a></li><li><a·href="#impl-Into%3CU%3E-for-T">Into&lt;U&gt;</a></li><li><a·href="#impl-ToOwned-for-T">ToOwned</a></li><li><a·href="#impl-TryFrom%3CU%3E-for-T">TryFrom&lt;U&gt;</a></li><li><a·href="#impl-TryInto%3CU%3E-for-T">TryInto&lt;U&gt;</a></li></ul></section><h2><a·href="index.html">In·alloc::collections::btree_map</a></h2></div></nav><div·class="sidebar-resizer"></div>1 <!DOCTYPE·html><html·lang="en"><head><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.write(`<link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../../static.files/SourceSerif4-Regular-46f98efaafac5295.ttf.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../../static.files/FiraSans-Regular-018c141bf0843ffd.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../../static.files/FiraSans-Medium-8f9a781e4970d388.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../../static.files/SourceCodePro-Regular-562dcc5011b6de7d.ttf.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../../static.files/SourceCodePro-Semibold-d899c5a5c4aeb14a.ttf.woff2">`)</script><link·rel="stylesheet"·href="../../../static.files/normalize-76eba96aa4d2e634.css"><link·rel="stylesheet"·href="../../../static.files/rustdoc-35f9e32502181f1e.css"><meta·name="rustdoc-vars"·data-root-path="../../../"·data-static-root-path="../../../static.files/"·data-current-crate="alloc"·data-themes=""·data-resource-suffix="1.78.0"·data-rustdoc-version="1.78.0"·data-channel="1.78.0"·data-search-js="search-42d8da7a6b9792c2.js"·data-settings-js="settings-4313503d2e1961c2.js"·><script·src="../../../static.files/storage-4c98445ec4002617.js"></script><script·defer·src="sidebar-items1.78.0.js"></script><script·defer·src="../../../static.files/main-12cf3b4f4f9dc36d.js"></script><noscript><link·rel="stylesheet"·href="../../../static.files/noscript-04d5337699b92874.css"></noscript><link·rel="alternate·icon"·type="image/png"·href="../../../static.files/favicon-16x16-8b506e7a72182f1c.png"><link·rel="alternate·icon"·type="image/png"·href="../../../static.files/favicon-32x32-422f7d1d52889060.png"><link·rel="icon"·type="image/svg+xml"·href="../../../static.files/favicon-2c020d218678b618.svg"></head><body·class="rustdoc·struct"><!--[if·lte·IE·11]><div·class="warning">This·old·browser·is·unsupported·and·will·most·likely·display·funky·things.</div><![endif]--><nav·class="mobile-topbar"><button·class="sidebar-menu-toggle"·title="show·sidebar"></button><a·class="logo-container"·href="../../../alloc/index.html"><img·class="rust-logo"·src="../../../static.files/rust-logo-151179464ae7ed46.svg"·alt=""></a></nav><nav·class="sidebar"><div·class="sidebar-crate"><a·class="logo-container"·href="../../../alloc/index.html"><img·class="rust-logo"·src="../../../static.files/rust-logo-151179464ae7ed46.svg"·alt="logo"></a><h2><a·href="../../../alloc/index.html">alloc</a><span·class="version">1.78.0</span></h2></div><h2·class="location"><a·href="#">Cursor</a></h2><div·class="sidebar-elems"><section><h3><a·href="#implementations">Methods</a></h3><ul·class="block·method"><li><a·href="#method.next">next</a></li><li><a·href="#method.peek_next">peek_next</a></li><li><a·href="#method.peek_prev">peek_prev</a></li><li><a·href="#method.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">Clone</a></li><li><a·href="#impl-Debug-for-Cursor%3C'_,+K,+V%3E">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">Freeze</a></li><li><a·href="#impl-RefUnwindSafe-for-Cursor%3C'a,+K,+V%3E">RefUnwindSafe</a></li><li><a·href="#impl-Send-for-Cursor%3C'a,+K,+V%3E">Send</a></li><li><a·href="#impl-Sync-for-Cursor%3C'a,+K,+V%3E">Sync</a></li><li><a·href="#impl-Unpin-for-Cursor%3C'a,+K,+V%3E">Unpin</a></li><li><a·href="#impl-UnwindSafe-for-Cursor%3C'a,+K,+V%3E">UnwindSafe</a></li></ul><h3><a·href="#blanket-implementations">Blanket·Implementations</a></h3><ul·class="block·blanket-implementation"><li><a·href="#impl-Any-for-T">Any</a></li><li><a·href="#impl-Borrow%3CT%3E-for-T">Borrow&lt;T&gt;</a></li><li><a·href="#impl-BorrowMut%3CT%3E-for-T">BorrowMut&lt;T&gt;</a></li><li><a·href="#impl-From%3CT%3E-for-T">From&lt;T&gt;</a></li><li><a·href="#impl-Into%3CU%3E-for-T">Into&lt;U&gt;</a></li><li><a·href="#impl-ToOwned-for-T">ToOwned</a></li><li><a·href="#impl-TryFrom%3CU%3E-for-T">TryFrom&lt;U&gt;</a></li><li><a·href="#impl-TryInto%3CU%3E-for-T">TryInto&lt;U&gt;</a></li></ul></section><h2><a·href="index.html">In·alloc::collections::btree_map</a></h2></div></nav><div·class="sidebar-resizer"></div>
2 ····<main><div·class="width-limiter"><nav·class="sub"><form·class="search-form"><span></span><div·id="sidebar-button"·tabindex="-1"><a·href="../../../alloc/all.html"·title="show·sidebar"></a></div><input·class="search-input"·name="search"·aria-label="Run·search·in·the·documentation"·autocomplete="off"·spellcheck="false"·placeholder="Click·or·press·‘S’·to·search,·‘?’·for·more·options…"·type="search"><div·id="help-button"·tabindex="-1"><a·href="../../../help.html"·title="help">?</a></div><div·id="settings-menu"·tabindex="-1"><a·href="../../../settings.html"·title="settings"><img·width="22"·height="22"·alt="Change·settings"·src="../../../static.files/wheel-7b819b6101059cd0.svg"></a></div></form></nav><section·id="main-content"·class="content"><div·class="main-heading"><h1>Struct·<a·href="../../index.html">alloc</a>::<wbr><a·href="../index.html">collections</a>::<wbr><a·href="index.html">btree_map</a>::<wbr><a·class="struct"·href="#">Cursor</a><button·id="copy-path"·title="Copy·item·path·to·clipboard"><img·src="../../../static.files/clipboard-7571035ce49a181d.svg"·width="19"·height="18"·alt="Copy·item·path"></button></h1><span·class="out-of-band"><a·class="src"·href="../../../src/alloc/collections/btree/map.rs.html#2785-2789">source</a>···<button·id="toggle-all-docs"·title="collapse·all·docs">[<span>&#x2212;</span>]</button></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 ····<main><div·class="width-limiter"><nav·class="sub"><form·class="search-form"><span></span><div·id="sidebar-button"·tabindex="-1"><a·href="../../../alloc/all.html"·title="show·sidebar"></a></div><input·class="search-input"·name="search"·aria-label="Run·search·in·the·documentation"·autocomplete="off"·spellcheck="false"·placeholder="Click·or·press·‘S’·to·search,·‘?’·for·more·options…"·type="search"><div·id="help-button"·tabindex="-1"><a·href="../../../help.html"·title="help">?</a></div><div·id="settings-menu"·tabindex="-1"><a·href="../../../settings.html"·title="settings"><img·width="22"·height="22"·alt="Change·settings"·src="../../../static.files/wheel-7b819b6101059cd0.svg"></a></div></form></nav><section·id="main-content"·class="content"><div·class="main-heading"><h1>Struct·<a·href="../../index.html">alloc</a>::<wbr><a·href="../index.html">collections</a>::<wbr><a·href="index.html">btree_map</a>::<wbr><a·class="struct"·href="#">Cursor</a><button·id="copy-path"·title="Copy·item·path·to·clipboard"><img·src="../../../static.files/clipboard-7571035ce49a181d.svg"·width="19"·height="18"·alt="Copy·item·path"></button></h1><span·class="out-of-band"><a·class="src"·href="../../../src/alloc/collections/btree/map.rs.html#2785-2789">source</a>···<button·id="toggle-all-docs"·title="collapse·all·docs">[<span>&#x2212;</span>]</button></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>
3 <p>A·<code>Cursor</code>·is·like·an·iterator,·except·that·it·can·freely·seek·back-and-forth.</p>3 <p>A·<code>Cursor</code>·is·like·an·iterator,·except·that·it·can·freely·seek·back-and-forth.</p>
4 <p>Cursors·always·point·to·a·gap·between·two·elements·in·the·map,·and·can4 <p>Cursors·always·point·to·a·gap·between·two·elements·in·the·map,·and·can
5 operate·on·the·two·immediately·adjacent·elements.</p>5 operate·on·the·two·immediately·adjacent·elements.</p>
6 <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 <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>
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,+K,+V%3E"·class="impl"><a·class="src·rightside"·href="../../../src/alloc/collections/btree/map.rs.html#2877-2937">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#2884-2897">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·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-Cursor%3C'a,+K,+V%3E"·class="impl"><a·class="src·rightside"·href="../../../src/alloc/collections/btree/map.rs.html#2877-2937">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#2884-2897">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.78.0/core/option/enum.Option.html"·title="enum·core::option::Option">Option</a>&lt;(<a·class="primitive"·href="https://doc.rust-lang.org/1.78.0/core/primitive.reference.html">&amp;'a·K</a>,·<a·class="primitive"·href="https://doc[·...·truncated·by·diffoscope;·len:·21,·SHA:·4b8e7362cebbf93341eb732921dc30debea3c09fd98e2313995233369acdb44b·...·]/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
8 element·that·it·moved·over.</p>8 element·that·it·moved·over.</p>
9 <p>If·the·cursor·is·already·at·the·end·of·the·map·then·<code>None</code>·is·returned9 <p>If·the·cursor·is·already·at·the·end·of·the·map·then·<code>None</code>·is·returned
10 and·the·cursor·is·not·moved.</p>10 and·the·cursor·is·not·moved.</p>
11 </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#2905-2918">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·of11 </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#2905-2918">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.78.0/core/option/enum.Option.html"·title="enum·core::option::Option">Option</a>&lt;(<a·class="primitive"·href="https://doc.rust-lang.org/1.78.0/core/primitive.reference.html">&amp;'a·K</a>,·<a·class="primitive"·href="https://doc[·...·truncated·by·diffoscope;·len:·21,·SHA:·4b8e7362cebbf93341eb732921dc30debea3c09fd98e2313995233369acdb44b·...·]/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
12 the·element·that·it·moved·over.</p>12 the·element·that·it·moved·over.</p>
13 <p>If·the·cursor·is·already·at·the·start·of·the·map·then·<code>None</code>·is·returned13 <p>If·the·cursor·is·already·at·the·start·of·the·map·then·<code>None</code>·is·returned
14 and·the·cursor·is·not·moved.</p>14 and·the·cursor·is·not·moved.</p>
15 </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#2925-2927">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·without15 </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#2925-2927">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.78.0/core/option/enum.Option.html"·title="enum·core::option::Option">Option</a>&lt;(<a·class="primitive"·href="https://doc.rust-lang.org/1.78.0/core/primitive.reference.html">&amp;'a·K</a>,·<a·class="primitive"·href="https://doc[·...·truncated·by·diffoscope;·len:·21,·SHA:·4b8e7362cebbf93341eb732921dc30debea3c09fd98e2313995233369acdb44b·...·]/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
16 moving·the·cursor.</p>16 moving·the·cursor.</p>
17 <p>If·the·cursor·is·at·the·end·of·the·map·then·<code>None</code>·is·returned</p>17 <p>If·the·cursor·is·at·the·end·of·the·map·then·<code>None</code>·is·returned</p>
18 </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#2934-2936">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·element18 </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#2934-2936">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.78.0/core/option/enum.Option.html"·title="enum·core::option::Option">Option</a>&lt;(<a·class="primitive"·href="https://doc.rust-lang.org/1.78.0/core/primitive.reference.html">&amp;'a·K</a>,·<a·class="primitive"·href="https://doc[·...·truncated·by·diffoscope;·len:·21,·SHA:·4b8e7362cebbf93341eb732921dc30debea3c09fd98e2313995233369acdb44b·...·]/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
19 without·moving·the·cursor.</p>19 without·moving·the·cursor.</p>
20 <p>If·the·cursor·is·at·the·start·of·the·map·then·<code>None</code>·is·returned.</p>20 <p>If·the·cursor·is·at·the·start·of·the·map·then·<code>None</code>·is·returned.</p>
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-Cursor%3C'_,+K,+V%3E"·class="impl"><a·class="src·rightside"·href="../../../src/alloc/collections/btree/map.rs.html#2792-2797">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:·3711,·SHA:·c80bcd6ff9e9c2c3e6fff8ec40d93d9944e688b8563d4fe3d73d28f4c635891c·...·]/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">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-Cursor%3C'_,+K,+V%3E"·class="impl"><a·class="src·rightside"·href="../../../src/alloc/collections/btree/map.rs.html#2792-2797">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.78.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:·3927,·SHA:·1378a4957cf71940896d5be6978b79be75eaa279418efe3d4a22cfd77e3354b7·...·]/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
22 ····K:·<a·class="trait"·href="../../../core/panic/unwind_safe/trait.RefUnwindSafe.html"·title="trait·core::panic::unwind_safe::RefUnwindSafe">RefUnwindSafe</a>,22 ····K:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/panic/unwind_safe/trait.RefUnwindSafe.html"·title="trait·core::panic::unwind_safe::RefUnwindSafe">RefUnwindSafe</a>,
23 ····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">where23 ····V:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.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:·7b9454417122d05238a8c133c88dd953db41c802e92157e2c45142d949860cd3·...·]/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
24 ····K:·<a·class="trait"·href="../../../core/marker/trait.Sync.html"·title="trait·core::marker::Sync">Sync</a>,24 ····K:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/marker/trait.Sync.html"·title="trait·core::marker::Sync">Sync</a>,
25 ····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">where25 ····V:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.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:·fa02271a6cc38d40145255434443538c8022bcf98c88669e75b1e1bea0b53234·...·]/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
26 ····K:·<a·class="trait"·href="../../../core/marker/trait.Sync.html"·title="trait·core::marker::Sync">Sync</a>,26 ····K:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/marker/trait.Sync.html"·title="trait·core::marker::Sync">Sync</a>,
27 ····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">where27 ····V:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.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:·16e200fa7d7dc8b02718643de492a55f9f7341d73e9e6cb801db80494aab77ed·...·]/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
28 ····K:·<a·class="trait"·href="../../../core/panic/unwind_safe/trait.RefUnwindSafe.html"·title="trait·core::panic::unwind_safe::RefUnwindSafe">RefUnwindSafe</a>,28 ····K:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/panic/unwind_safe/trait.RefUnwindSafe.html"·title="trait·core::panic::unwind_safe::RefUnwindSafe">RefUnwindSafe</a>,
29 ····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:·74ff597bdff107962cb8059c204ff7ad530901f23df831e4a548faafac68be87·...·]/core/any/trait.Any.html"·title="trait·core::any::Any">Any</a>·for·T<div·class="where">where29 ····V:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.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:·3cd31b2c95fe4e9c1786646d66533a5f021b60e6f006310c85b3d6a0f75bbf1f·...·]/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:·60266624df43cdf1ecb412e35aaf311341d62543468bcbd4041716fbafffc07b·...·]/src/core/borrow.rs.html#208">source</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.78.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">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:·039b8952ccb1ab7d8f15cd519cbc10f4afc149276d0f9cfd3a53117d606059df·...·]/src/core/borrow.rs.html#208">source</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:·8124d60df08ac71436917cb874e0ec9c0ffe7e4515e2ea246a1f1009f83ac6a1·...·]/src/core/borrow.rs.html#216">source</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.78.0/core/marker/trait.Sized.html"·title="trait·core::marker::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:·b03884aeae1813f459b6ebe4b7e3f3c22d5d37e0ad023677fd3869bc5a735be2·...·]/src/core/borrow.rs.html#216">source</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:·1254,·SHA:·88cecdca8f65ac7671462e07b83fc0153c4024bd8b3f1bfba320be439fbe3a4f·...·]/core/convert/trait.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.78.0/core/marker/trait.Sized.html"·title="trait·core::marker::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:·aaf5505cf4d2f5510949d066675a02996763e3167f43d15d7a3f114042a751b5·...·]/core/convert/trait.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.78.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.78.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.78.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:·2cf76a8ca501b2a1fef209fed846779ab1bed3b75f52c7425335e3ce04e6b272·...·]/core/convert/trait.Into.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.78.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#83-95">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#83-95">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·href="#ass[·...·truncated·by·diffoscope;·len:·1828,·SHA:·326644cdd10ec402cdb69dbc9def5714afb5a2f4c6c9280a5ab9ce010571c2dd·...·]/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.78.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:·1924,·SHA:·db6b4039e0093ed0d5887a096da47da282fdfd36f55651b9bf5f414e44ae56a4·...·]/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"·class="associatedtype·trait-impl"><a·[·...·truncated·by·diffoscope;·len:·1621,·SHA:·6a7315ddf4ab9fa76e45d600a396b342519e12c73d2e6dd09bf01e1fa1b0aac0·...·]/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.78.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"·class="associ[·...·truncated·by·diffoscope;·len:·1861,·SHA:·78398046ba16de2f66a8201a11d6a2dd405fceedeabfcaa37481e77092687e6f·...·]/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-1"·class="associatedtype·trai[·...·truncated·by·diffoscope;·len:·1258,·SHA:·33d8749d0be17f35431e59e57d3fb79a5cc4320bd6fc26ab5ef088d04d3c929a·...·]/core/convert/trait.TryFrom.html#associatedtype.Error"·title="type·core::convert::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.78.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-1"·cl[·...·truncated·by·diffoscope;·len:·1474,·SHA:·ca90cccb6c86c654c95a1aaec456fbbe4b115f0d5a700e7d156e823346d70894·...·]/core/convert/trait.TryFrom.html#associatedtype.Error"·title="type·core::convert::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.9 KB
./usr/share/doc/rust-web-doc/html/alloc/collections/btree_map/struct.CursorMut.html
    
Offset 4, 26 lines modifiedOffset 4, 26 lines modified
4 safely·mutate·the·map·during·iteration.·This·is·because·the·lifetime·of·its·yielded4 safely·mutate·the·map·during·iteration.·This·is·because·the·lifetime·of·its·yielded
5 references·is·tied·to·its·own·lifetime,·instead·of·just·the·underlying·map.·This·means5 references·is·tied·to·its·own·lifetime,·instead·of·just·the·underlying·map.·This·means
6 cursors·cannot·yield·multiple·elements·at·once.</p>6 cursors·cannot·yield·multiple·elements·at·once.</p>
7 <p>Cursors·always·point·to·a·gap·between·two·elements·in·the·map,·and·can7 <p>Cursors·always·point·to·a·gap·between·two·elements·in·the·map,·and·can
8 operate·on·the·two·immediately·adjacent·elements.</p>8 operate·on·the·two·immediately·adjacent·elements.</p>
9 <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 <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>
10 methods.</p>10 methods.</p>
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-CursorMut%3C'a,+K,+V,+A%3E"·class="impl"><a·class="src·rightside"·href="../../../src/alloc/collections/btree/map.rs.html#2939-3007">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#2946-2949">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·the11 </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#2939-3007">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#2946-2949">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.78.0/core/option/enum.Option.html"·title="enum·core::option::Option">Option</a>&lt;(<a·class="primitive"·href="https://doc.rust-lang.org/1.78.0/core/primitive.reference.html">&amp;K</a>,·<a·class="primitive"·href="https://doc.ru[·...·truncated·by·diffoscope;·len:·18,·SHA:·67431134639bc3b996b86af3e89e93939956eb0b8cd527a83557d09cb042ce96·...·]/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
12 element·that·it·moved·over.</p>12 element·that·it·moved·over.</p>
13 <p>If·the·cursor·is·already·at·the·end·of·the·map·then·<code>None</code>·is·returned13 <p>If·the·cursor·is·already·at·the·end·of·the·map·then·<code>None</code>·is·returned
14 and·the·cursor·is·not·moved.</p>14 and·the·cursor·is·not·moved.</p>
15 </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#2957-2960">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·of15 </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#2957-2960">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.78.0/core/option/enum.Option.html"·title="enum·core::option::Option">Option</a>&lt;(<a·class="primitive"·href="https://doc.rust-lang.org/1.78.0/core/primitive.reference.html">&amp;K</a>,·<a·class="primitive"·href="https://doc.ru[·...·truncated·by·diffoscope;·len:·18,·SHA:·67431134639bc3b996b86af3e89e93939956eb0b8cd527a83557d09cb042ce96·...·]/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
16 the·element·that·it·moved·over.</p>16 the·element·that·it·moved·over.</p>
17 <p>If·the·cursor·is·already·at·the·start·of·the·map·then·<code>None</code>·is·returned17 <p>If·the·cursor·is·already·at·the·start·of·the·map·then·<code>None</code>·is·returned
18 and·the·cursor·is·not·moved.</p>18 and·the·cursor·is·not·moved.</p>
19 </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#2967-2970">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·without19 </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#2967-2970">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.78.0/core/option/enum.Option.html"·title="enum·core::option::Option">Option</a>&lt;(<a·class="primitive"·href="https://doc.rust-lang.org/1.78.0/core/primitive.reference.html">&amp;K</a>,·<a·class="primitive"·href="https://doc.ru[·...·truncated·by·diffoscope;·len:·18,·SHA:·67431134639bc3b996b86af3e89e93939956eb0b8cd527a83557d09cb042ce96·...·]/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
20 moving·the·cursor.</p>20 moving·the·cursor.</p>
21 <p>If·the·cursor·is·at·the·end·of·the·map·then·<code>None</code>·is·returned</p>21 <p>If·the·cursor·is·at·the·end·of·the·map·then·<code>None</code>·is·returned</p>
22 </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#2977-2980">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·element22 </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#2977-2980">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.78.0/core/option/enum.Option.html"·title="enum·core::option::Option">Option</a>&lt;(<a·class="primitive"·href="https://doc.rust-lang.org/1.78.0/core/primitive.reference.html">&amp;K</a>,·<a·class="primitive"·href="https://doc.ru[·...·truncated·by·diffoscope;·len:·18,·SHA:·67431134639bc3b996b86af3e89e93939956eb0b8cd527a83557d09cb042ce96·...·]/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
23 without·moving·the·cursor.</p>23 without·moving·the·cursor.</p>
24 <p>If·the·cursor·is·at·the·start·of·the·map·then·<code>None</code>·is·returned.</p>24 <p>If·the·cursor·is·at·the·start·of·the·map·then·<code>None</code>·is·returned.</p>
25 </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#2989-2991">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·the25 </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#2989-2991">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
26 <code>CursorMut</code>.</p>26 <code>CursorMut</code>.</p>
27 <p>The·lifetime·of·the·returned·<code>Cursor</code>·is·bound·to·that·of·the27 <p>The·lifetime·of·the·returned·<code>Cursor</code>·is·bound·to·that·of·the
28 <code>CursorMut</code>,·which·means·it·cannot·outlive·the·<code>CursorMut</code>·and·that·the28 <code>CursorMut</code>,·which·means·it·cannot·outlive·the·<code>CursorMut</code>·and·that·the
29 <code>CursorMut</code>·is·frozen·for·the·lifetime·of·the·<code>Cursor</code>.</p>29 <code>CursorMut</code>·is·frozen·for·the·lifetime·of·the·<code>Cursor</code>.</p>
Offset 32, 15 lines modifiedOffset 32, 15 lines modified
32 <h5·id="safety"><a·class="doc-anchor"·href="#safety">§</a>Safety</h5>32 <h5·id="safety"><a·class="doc-anchor"·href="#safety">§</a>Safety</h5>
33 <p>Since·this·cursor·allows·mutating·keys,·you·must·ensure·that·the·<code>BTreeMap</code>33 <p>Since·this·cursor·allows·mutating·keys,·you·must·ensure·that·the·<code>BTreeMap</code>
34 invariants·are·maintained.·Specifically:</p>34 invariants·are·maintained.·Specifically:</p>
35 <ul>35 <ul>
36 <li>The·key·of·the·newly·inserted·element·must·be·unique·in·the·tree.</li>36 <li>The·key·of·the·newly·inserted·element·must·be·unique·in·the·tree.</li>
37 <li>All·keys·in·the·tree·must·remain·in·sorted·order.</li>37 <li>All·keys·in·the·tree·must·remain·in·sorted·order.</li>
38 </ul>38 </ul>
39 </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#3306-3390">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#3321-3323">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·the39 </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#3306-3390">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.78.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:·fcc4744bf58e8a3d353327d38f5d2d609f372f7cc59d07b4896f05bbeba4dc6b·...·]/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#3321-3323">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
40 cursor·is·currently·pointing·to.</p>40 cursor·is·currently·pointing·to.</p>
41 <p>After·the·insertion·the·cursor·will·be·pointing·at·the·gap·after·the41 <p>After·the·insertion·the·cursor·will·be·pointing·at·the·gap·after·the
42 newly·inserted·element.</p>42 newly·inserted·element.</p>
43 <h5·id="safety-1"><a·class="doc-anchor"·href="#safety-1">§</a>Safety</h5>43 <h5·id="safety-1"><a·class="doc-anchor"·href="#safety-1">§</a>Safety</h5>
44 <p>You·must·ensure·that·the·<code>BTreeMap</code>·invariants·are·maintained.44 <p>You·must·ensure·that·the·<code>BTreeMap</code>·invariants·are·maintained.
45 Specifically:</p>45 Specifically:</p>
46 <ul>46 <ul>
Offset 58, 53 lines modifiedOffset 58, 53 lines modified
58 <li>The·key·of·the·newly·inserted·element·must·be·unique·in·the·tree.</li>58 <li>The·key·of·the·newly·inserted·element·must·be·unique·in·the·tree.</li>
59 <li>All·keys·in·the·tree·must·remain·in·sorted·order.</li>59 <li>All·keys·in·the·tree·must·remain·in·sorted·order.</li>
60 </ul>60 </ul>
61 </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#3354-3356">source</a><h4·class="code-header">pub·fn·<a·href="#method.insert_after"·class="fn">insert_after</a>(61 </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#3354-3356">source</a><h4·class="code-header">pub·fn·<a·href="#method.insert_after"·class="fn">insert_after</a>(
62 ····&amp;mut·self,62 ····&amp;mut·self,
63 ····key:·K,63 ····key:·K,
64 ····value:·V64 ····value:·V
65 )·-&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·the65 )·-&gt;·<a·class="enum"·href="https://doc.rust-lang.org/1.78.0/core/result/enum.Result.html"·title="enum·core::result::Result">Result</a>&lt;<a·class="primitive"·href="https://doc.rust-lang.org/1.78.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
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·before·the67 <p>After·the·insertion·the·cursor·will·be·pointing·at·the·gap·before·the
68 newly·inserted·element.</p>68 newly·inserted·element.</p>
69 <p>If·the·inserted·key·is·not·greater·than·the·key·before·the·cursor69 <p>If·the·inserted·key·is·not·greater·than·the·key·before·the·cursor
70 (if·any),·or·if·it·not·less·than·the·key·after·the·cursor·(if·any),70 (if·any),·or·if·it·not·less·than·the·key·after·the·cursor·(if·any),
71 then·an·<a·href="struct.UnorderedKeyError.html"·title="struct·alloc::collections::btree_map::UnorderedKeyError"><code>UnorderedKeyError</code></a>·is·returned·since·this·would71 then·an·<a·href="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·keys·of·the·map.</p>72 invalidate·the·<a·href="https://doc.rust-lang.org/1.78.0/core/cmp/trait.Ord.html"·title="trait·core::cmp::Ord"><code>Ord</code></a>·invariant·between·the·keys·of·the·map.</p>
73 </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#3369-3371">source</a><h4·class="code-header">pub·fn·<a·href="#method.insert_before"·class="fn">insert_before</a>(73 </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#3369-3371">source</a><h4·class="code-header">pub·fn·<a·href="#method.insert_before"·class="fn">insert_before</a>(
74 ····&amp;mut·self,74 ····&amp;mut·self,
75 ····key:·K,75 ····key:·K,
76 ····value:·V76 ····value:·V
77 )·-&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·the77 )·-&gt;·<a·class="enum"·href="https://doc.rust-lang.org/1.78.0/core/result/enum.Result.html"·title="enum·core::result::Result">Result</a>&lt;<a·class="primitive"·href="https://doc.rust-lang.org/1.78.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
78 cursor·is·currently·pointing·to.</p>78 cursor·is·currently·pointing·to.</p>
79 <p>After·the·insertion·the·cursor·will·be·pointing·at·the·gap·after·the79 <p>After·the·insertion·the·cursor·will·be·pointing·at·the·gap·after·the
80 newly·inserted·element.</p>80 newly·inserted·element.</p>
81 <p>If·the·inserted·key·is·not·greater·than·the·key·before·the·cursor81 <p>If·the·inserted·key·is·not·greater·than·the·key·before·the·cursor
82 (if·any),·or·if·it·not·less·than·the·key·after·the·cursor·(if·any),82 (if·any),·or·if·it·not·less·than·the·key·after·the·cursor·(if·any),
83 then·an·<a·href="struct.UnorderedKeyError.html"·title="struct·alloc::collections::btree_map::UnorderedKeyError"><code>UnorderedKeyError</code></a>·is·returned·since·this·would83 then·an·<a·href="struct.UnorderedKeyError.html"·title="struct·alloc::collections::btree_map::UnorderedKeyError"><code>UnorderedKeyError</code></a>·is·returned·since·this·would
84 invalidate·the·<a·href="../../../core/cmp/trait.Ord.html"·title="trait·core::cmp::Ord"><code>Ord</code></a>·invariant·between·the·keys·of·the·map.</p>84 invalidate·the·<a·href="https://doc.rust-lang.org/1.78.0/core/cmp/trait.Ord.html"·title="trait·core::cmp::Ord"><code>Ord</code></a>·invariant·between·the·keys·of·the·map.</p>
85 </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#3378-3380">source</a><h4·class="code-header">pub·fn·<a·href="#method.remove_next"·class="fn">remove_next</a>(&amp;mut·self)·-&gt;·<a·class="enum"·href="../../../core/option/enum.Option.html"·title="enum·core::option::Option">Option</a>&lt;<a·class="primitive"·href="../../../core/primitive.tuple.html">(K,·V)</a>&gt;</h4></section><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>btree_cursors</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/107540">#107540</a>)</span></div></span></summary><div·class="docblock"><p>Removes·the·next·element·from·the·<code>BTreeMap</code>.</p>85 </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#3378-3380">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.78.0/core/option/enum.Option.html"·title="enum·core::option::Option">Option</a>&lt;<a·class="primitive"·href="https://doc.rust-lang.org/1.78.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>
86 <p>The·element·that·was·removed·is·returned.·The·cursor·position·is86 <p>The·element·that·was·removed·is·returned.·The·cursor·position·is
87 unchanged·(before·the·removed·element).</p>87 unchanged·(before·the·removed·element).</p>
88 </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#3387-3389">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·precending·element·from·the·<code>BTreeMap</code>.</p>88 </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#3387-3389">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.78.0/core/option/enum.Option.html"·title="enum·core::option::Option">Option</a>&lt;<a·class="primitive"·href="https://doc.rust-lang.org/1.78.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·precending·element·from·the·<code>BTreeMap</code>.</p>
89 <p>The·element·that·was·removed·is·returned.·The·cursor·position·is89 <p>The·element·that·was·removed·is·returned.·The·cursor·position·is
90 unchanged·(after·the·removed·element).</p>90 unchanged·(after·the·removed·element).</p>
91 </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#2829-2833">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#2830-2832">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">where91 </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#2829-2833">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#2830-2832">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.78.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:·cde1f4c15f05d65cd3598f0a1ffa27394008848e7e650d2e8aef7ff37cdd0343·...·]/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
92 ····A:·<a·class="trait"·href="../../../core/panic/unwind_safe/trait.RefUnwindSafe.html"·title="trait·core::panic::unwind_safe::RefUnwindSafe">RefUnwindSafe</a>,92 ····A:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/panic/unwind_safe/trait.RefUnwindSafe.html"·title="trait·core::panic::unwind_safe::RefUnwindSafe">RefUnwindSafe</a>,
93 ····K:·<a·class="trait"·href="../../../core/panic/unwind_safe/trait.RefUnwindSafe.html"·title="trait·core::panic::unwind_safe::RefUnwindSafe">RefUnwindSafe</a>,93 ····K:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/panic/unwind_safe/trait.RefUnwindSafe.html"·title="trait·core::panic::unwind_safe::RefUnwindSafe">RefUnwindSafe</a>,
94 ····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">where94 ····V:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.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:·21a1025e3e68091d0c6303c20d5a44162f6cca892d4b176a4a28e88709c92b12·...·]/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
95 ····A:·<a·class="trait"·href="../../../core/marker/trait.Send.html"·title="trait·core::marker::Send">Send</a>,95 ····A:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/marker/trait.Send.html"·title="trait·core::marker::Send">Send</a>,
96 ····K:·<a·class="trait"·href="../../../core/marker/trait.Send.html"·title="trait·core::marker::Send">Send</a>,96 ····K:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/marker/trait.Send.html"·title="trait·core::marker::Send">Send</a>,
97 ····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">where97 ····V:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.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:·98bbb63a203da6b527ef9983569e40624d25aefe5fbd434282e32298834467db·...·]/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
98 ····A:·<a·class="trait"·href="../../../core/marker/trait.Sync.html"·title="trait·core::marker::Sync">Sync</a>,98 ····A:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/marker/trait.Sync.html"·title="trait·core::marker::Sync">Sync</a>,
99 ····K:·<a·class="trait"·href="../../../core/marker/trait.Sync.html"·title="trait·core::marker::Sync">Sync</a>,99 ····K:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/marker/trait.Sync.html"·title="trait·core::marker::Sync">Sync</a>,
100 ····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:·1436343b2ed1d697a54a07996d87a486abecd7b9f68186dc7d9a20a2435d1a66·...·]/core/any/trait.Any.html"·title="trait·core::any::Any">Any</a>·for·T<div·class="where">where100 ····V:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.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:·165886f2131a84b3de7789503c3b39564464526b75e6f6a121bf88282f3bf76e·...·]/core/any/trait.Any.html"·title="trait·core::any::Any">Any</a>·for·T<div·class="where">where
101 ····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:·60266624df43cdf1ecb412e35aaf311341d62543468bcbd4041716fbafffc07b·...·]/src/core/borrow.rs.html#208">source</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">where101 ····T:·'static·+·?<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">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:·039b8952ccb1ab7d8f15cd519cbc10f4afc149276d0f9cfd3a53117d606059df·...·]/src/core/borrow.rs.html#208">source</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
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"·class="method·trait-impl"><a·class="sr[·...·truncated·by·diffoscope;·len:·647,·SHA:·8124d60df08ac71436917cb874e0ec9c0ffe7e4515e2ea246a1f1009f83ac6a1·...·]/src/core/borrow.rs.html#216">source</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">where102 ····T:·?<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/marker/trait.Sized.html"·title="trait·core::marker::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:·b03884aeae1813f459b6ebe4b7e3f3c22d5d37e0ad023677fd3869bc5a735be2·...·]/src/core/borrow.rs.html#216">source</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
103 ····T:·?<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::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:·88cecdca8f65ac7671462e07b83fc0153c4024bd8b3f1bfba320be439fbe3a4f·...·]/core/convert/trait.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 ····T:·?<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/marker/trait.Sized.html"·title="trait·core::marker::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:·aaf5505cf4d2f5510949d066675a02996763e3167f43d15d7a3f114042a751b5·...·]/core/convert/trait.From.html#tymethod.from"·class="fn">from</a>(t:·T)·-&gt;·T</h4></section></summary><div·class="docblock"><p>Returns·the·argument·unchanged.</p>
104 </div></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">where104 </div></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.78.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.78.0/core/convert/trait.Into.html"·title="trait·core::convert::Into">Into</a>&lt;U&gt;·for·T<div·class="where">where
105 ····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>105 ····U:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.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:·2cf76a8ca501b2a1fef209fed846779ab1bed3b75f52c7425335e3ce04e6b272·...·]/core/convert/trait.Into.html#tymethod.into"·class="fn">into</a>(self)·-&gt;·U</h4></section></summary><div·class="docblock"><p>Calls·<code>U::from(self)</code>.</p>
106 <p>That·is,·this·conversion·is·whatever·the·implementation·of106 <p>That·is,·this·conversion·is·whatever·the·implementation·of
107 <code><a·href="../../../core/convert/trait.From.html"·title="trait·core::convert::From">From</a>&lt;T&gt;·for·U</code>·chooses·to·do.</p>107 <code><a·href="https://doc.rust-lang.org/1.78.0/core/convert/trait.From.html"·title="trait·core::convert::From">From</a>&lt;T&gt;·for·U</code>·chooses·to·do.</p>
108 </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">where108 </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.78.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.78.0/core/convert/trait.TryFrom.html"·title="trait·core::convert::TryFrom">TryFrom</a>&lt;U&gt;·for·T<div·class="where">where
109 ····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"·class="associatedtype·trait-impl"><a·[·...·truncated·by·diffoscope;·len:·1621,·SHA:·6a7315ddf4ab9fa76e45d600a396b342519e12c73d2e6dd09bf01e1fa1b0aac0·...·]/core/convert/trait.TryInto.html"·title="trait·core::convert::TryInto">TryInto</a>&lt;U&gt;·for·T<div·class="where">where109 ····U:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.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"·class="associ[·...·truncated·by·diffoscope;·len:·1861,·SHA:·78398046ba16de2f66a8201a11d6a2dd405fceedeabfcaa37481e77092687e6f·...·]/core/convert/trait.TryInto.html"·title="trait·core::convert::TryInto">TryInto</a>&lt;U&gt;·for·T<div·class="where">where
110 ····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-1"·class="associatedtype·trai[·...·truncated·by·diffoscope;·len:·1258,·SHA:·33d8749d0be17f35431e59e57d3fb79a5cc4320bd6fc26ab5ef088d04d3c929a·...·]/core/convert/trait.TryFrom.html#associatedtype.Error"·title="type·core::convert::TryFrom::Error">Error</a>&gt;</h4></section></summary><div·class='docblock'>Performs·the·conversion.</div></details></div></details></div></section></div></main></body></html>110 ····U:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.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-1"·cl[·...·truncated·by·diffoscope;·len:·1474,·SHA:·ca90cccb6c86c654c95a1aaec456fbbe4b115f0d5a700e7d156e823346d70894·...·]/core/convert/trait.TryFrom.html#associatedtype.Error"·title="type·core::convert::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.4 KB
./usr/share/doc/rust-web-doc/html/alloc/collections/btree_map/struct.CursorMutKey.html
    
Offset 12, 34 lines modifiedOffset 12, 34 lines modified
12 <h2·id="safety"><a·class="doc-anchor"·href="#safety">§</a>Safety</h2>12 <h2·id="safety"><a·class="doc-anchor"·href="#safety">§</a>Safety</h2>
13 <p>Since·this·cursor·allows·mutating·keys,·you·must·ensure·that·the·<code>BTreeMap</code>13 <p>Since·this·cursor·allows·mutating·keys,·you·must·ensure·that·the·<code>BTreeMap</code>
14 invariants·are·maintained.·Specifically:</p>14 invariants·are·maintained.·Specifically:</p>
15 <ul>15 <ul>
16 <li>The·key·of·the·newly·inserted·element·must·be·unique·in·the·tree.</li>16 <li>The·key·of·the·newly·inserted·element·must·be·unique·in·the·tree.</li>
17 <li>All·keys·in·the·tree·must·remain·in·sorted·order.</li>17 <li>All·keys·in·the·tree·must·remain·in·sorted·order.</li>
18 </ul>18 </ul>
19 </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#3009-3098">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#3016-3033">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·the19 </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#3009-3098">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#3016-3033">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.78.0/core/option/enum.Option.html"·title="enum·core::option::Option">Option</a>&lt;(<a·class="primitive"·href="https://doc.rust-lang.org/1.78.0/core/primitive.reference.html">&amp;mut·K</a>,·<a·class="primitive"·href="https://do[·...·truncated·by·diffoscope;·len:·22,·SHA:·8d43b333070206e522b87572c5685bb6dc2fe6ce5039a790e510f8c356caa575·...·]/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
20 element·that·it·moved·over.</p>20 element·that·it·moved·over.</p>
21 <p>If·the·cursor·is·already·at·the·end·of·the·map·then·<code>None</code>·is·returned21 <p>If·the·cursor·is·already·at·the·end·of·the·map·then·<code>None</code>·is·returned
22 and·the·cursor·is·not·moved.</p>22 and·the·cursor·is·not·moved.</p>
23 </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#3041-3058">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·of23 </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#3041-3058">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.78.0/core/option/enum.Option.html"·title="enum·core::option::Option">Option</a>&lt;(<a·class="primitive"·href="https://doc.rust-lang.org/1.78.0/core/primitive.reference.html">&amp;mut·K</a>,·<a·class="primitive"·href="https://do[·...·truncated·by·diffoscope;·len:·22,·SHA:·8d43b333070206e522b87572c5685bb6dc2fe6ce5039a790e510f8c356caa575·...·]/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
24 the·element·that·it·moved·over.</p>24 the·element·that·it·moved·over.</p>
25 <p>If·the·cursor·is·already·at·the·start·of·the·map·then·<code>None</code>·is·returned25 <p>If·the·cursor·is·already·at·the·start·of·the·map·then·<code>None</code>·is·returned
26 and·the·cursor·is·not·moved.</p>26 and·the·cursor·is·not·moved.</p>
27 </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#3065-3070">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·without27 </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#3065-3070">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.78.0/core/option/enum.Option.html"·title="enum·core::option::Option">Option</a>&lt;(<a·class="primitive"·href="https://doc.rust-lang.org/1.78.0/core/primitive.reference.html">&amp;mut·K</a>,·<a·class="primitive"·href="https://do[·...·truncated·by·diffoscope;·len:·22,·SHA:·8d43b333070206e522b87572c5685bb6dc2fe6ce5039a790e510f8c356caa575·...·]/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
28 moving·the·cursor.</p>28 moving·the·cursor.</p>
29 <p>If·the·cursor·is·at·the·end·of·the·map·then·<code>None</code>·is·returned</p>29 <p>If·the·cursor·is·at·the·end·of·the·map·then·<code>None</code>·is·returned</p>
30 </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#3077-3082">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·element30 </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#3077-3082">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.78.0/core/option/enum.Option.html"·title="enum·core::option::Option">Option</a>&lt;(<a·class="primitive"·href="https://doc.rust-lang.org/1.78.0/core/primitive.reference.html">&amp;mut·K</a>,·<a·class="primitive"·href="https://do[·...·truncated·by·diffoscope;·len:·22,·SHA:·8d43b333070206e522b87572c5685bb6dc2fe6ce5039a790e510f8c356caa575·...·]/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
31 without·moving·the·cursor.</p>31 without·moving·the·cursor.</p>
32 <p>If·the·cursor·is·at·the·start·of·the·map·then·<code>None</code>·is·returned.</p>32 <p>If·the·cursor·is·at·the·start·of·the·map·then·<code>None</code>·is·returned.</p>
33 </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#3091-3097">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·the33 </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#3091-3097">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
34 <code>CursorMutKey</code>.</p>34 <code>CursorMutKey</code>.</p>
35 <p>The·lifetime·of·the·returned·<code>Cursor</code>·is·bound·to·that·of·the35 <p>The·lifetime·of·the·returned·<code>Cursor</code>·is·bound·to·that·of·the
36 <code>CursorMutKey</code>,·which·means·it·cannot·outlive·the·<code>CursorMutKey</code>·and·that·the36 <code>CursorMutKey</code>,·which·means·it·cannot·outlive·the·<code>CursorMutKey</code>·and·that·the
37 <code>CursorMutKey</code>·is·frozen·for·the·lifetime·of·the·<code>Cursor</code>.</p>37 <code>CursorMutKey</code>·is·frozen·for·the·lifetime·of·the·<code>Cursor</code>.</p>
38 </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#3101-3304">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#3116-3143">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-CursorMutKey%3C'a,+K,+V,+A%3E-1"·class="impl"><a·class="src·rightside"·href="../../../src/alloc/collections/btree/map.rs.html#3101-3304">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.78.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:·fcc4744bf58e8a3d353327d38f5d2d609f372f7cc59d07b4896f05bbeba4dc6b·...·]/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#3116-3143">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·before·the40 <p>After·the·insertion·the·cursor·will·be·pointing·at·the·gap·before·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#3202-3217">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#3202-3217">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:·V63 ····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.78.0/core/result/enum.Result.html"·title="enum·core::result::Result">Result</a>&lt;<a·class="primitive"·href="https://doc.rust-lang.org/1.78.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.78.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#3230-3245">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#3230-3245">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:·V75 ····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.78.0/core/result/enum.Result.html"·title="enum·core::result::Result">Result</a>&lt;<a·class="primitive"·href="https://doc.rust-lang.org/1.78.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.78.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#3252-3274">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#3252-3274">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.78.0/core/option/enum.Option.html"·title="enum·core::option::Option">Option</a>&lt;<a·class="primitive"·href="https://doc.rust-lang.org/1.78.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#3281-3303">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·precending·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#3281-3303">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.78.0/core/option/enum.Option.html"·title="enum·core::option::Option">Option</a>&lt;<a·class="primitive"·href="https://doc.rust-lang.org/1.78.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·precending·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-CursorMutKey%3C'_,+K,+V,+A%3E"·class="impl"><a·class="src·rightside"·href="../../../src/alloc/collections/btree/map.rs.html#2871-2875">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#2872-2874">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">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-CursorMutKey%3C'_,+K,+V,+A%3E"·class="impl"><a·class="src·rightside"·href="../../../src/alloc/collections/btree/map.rs.html#2871-2875">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#2872-2874">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.78.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:·dadcdf91dcc24145a0eb74069dd9ce2467bb850ed8d60db40144f0cb944b9560·...·]/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
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.78.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.78.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-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">where93 ····V:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.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:·534f4f2f7c459a1c7250736c3a8207fcde1efeda4a043663e6429b9f3c905623·...·]/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
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.78.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.78.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-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">where96 ····V:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.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:·509a275fc1a690cf74ed11ce0743cf913f285eb7b246f7143f63f7e9c19eb187·...·]/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
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.78.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.78.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-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:·ddaca38577b163dcdff99ab73603de12cc9a5842d7049e1238498ddd86c18ef5·...·]/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.78.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:·d89cfa7fe88df0fcfc440ebf54172375045c388b888b321394cc6bb3ce4df67e·...·]/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:·60266624df43cdf1ecb412e35aaf311341d62543468bcbd4041716fbafffc07b·...·]/src/core/borrow.rs.html#208">source</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.78.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">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:·039b8952ccb1ab7d8f15cd519cbc10f4afc149276d0f9cfd3a53117d606059df·...·]/src/core/borrow.rs.html#208">source</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:·8124d60df08ac71436917cb874e0ec9c0ffe7e4515e2ea246a1f1009f83ac6a1·...·]/src/core/borrow.rs.html#216">source</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.78.0/core/marker/trait.Sized.html"·title="trait·core::marker::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:·b03884aeae1813f459b6ebe4b7e3f3c22d5d37e0ad023677fd3869bc5a735be2·...·]/src/core/borrow.rs.html#216">source</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:·88cecdca8f65ac7671462e07b83fc0153c4024bd8b3f1bfba320be439fbe3a4f·...·]/core/convert/trait.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.78.0/core/marker/trait.Sized.html"·title="trait·core::marker::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:·aaf5505cf4d2f5510949d066675a02996763e3167f43d15d7a3f114042a751b5·...·]/core/convert/trait.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.78.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.78.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.78.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:·2cf76a8ca501b2a1fef209fed846779ab1bed3b75f52c7425335e3ce04e6b272·...·]/core/convert/trait.Into.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.78.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.78.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.78.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"·class="associatedtype·trait-impl"><a·[·...·truncated·by·diffoscope;·len:·1621,·SHA:·6a7315ddf4ab9fa76e45d600a396b342519e12c73d2e6dd09bf01e1fa1b0aac0·...·]/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.78.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"·class="associ[·...·truncated·by·diffoscope;·len:·1861,·SHA:·78398046ba16de2f66a8201a11d6a2dd405fceedeabfcaa37481e77092687e6f·...·]/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-1"·class="associatedtype·trai[·...·truncated·by·diffoscope;·len:·1258,·SHA:·33d8749d0be17f35431e59e57d3fb79a5cc4320bd6fc26ab5ef088d04d3c929a·...·]/core/convert/trait.TryFrom.html#associatedtype.Error"·title="type·core::convert::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.78.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-1"·cl[·...·truncated·by·diffoscope;·len:·1474,·SHA:·ca90cccb6c86c654c95a1aaec456fbbe4b115f0d5a700e7d156e823346d70894·...·]/core/convert/trait.TryFrom.html#associatedtype.Error"·title="type·core::convert::TryFrom::Error">Error</a>&gt;</h4></section></summary><div·class='docblock'>Performs·the·conversion.</div></details></div></details></div></section></div></main></body></html>
273 KB
./usr/share/doc/rust-web-doc/html/alloc/collections/btree_map/struct.ExtractIf.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·produced·by·calling·`extract_if`·on·BTreeMap."><title>ExtractIf·in·alloc::collections::btree_map·-·Rust</title><script>·if·(window.location.protocol·!==·"file:")·document.write(`<link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../../static.files/SourceSerif4-Regular-46f98efaafac5295.ttf.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../../static.files/FiraSans-Regular-018c141bf0843ffd.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../../static.files/FiraSans-Medium-8f9a781e4970d388.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../../static.files/SourceCodePro-Regular-562dcc5011b6de7d.ttf.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../../static.files/SourceCodePro-Semibold-d899c5a5c4aeb14a.ttf.woff2">`)</script><link·rel="stylesheet"·href="../../../static.files/normalize-76eba96aa4d2e634.css"><link·rel="stylesheet"·href="../../../static.files/rustdoc-35f9e32502181f1e.css"><meta·name="rustdoc-vars"·data-root-path="../../../"·data-static-root-path="../../../static.files/"·data-current-crate="alloc"·data-themes=""·data-resource-suffix="1.78.0"·data-rustdoc-version="1.78.0"·data-channel="1.78.0"·data-search-js="search-42d8da7a6b9792c2.js"·data-settings-js="settings-4313503d2e1961c2.js"·><script·src="../../../static.files/storage-4c98445ec4002617.js"></script><script·defer·src="sidebar-items1.78.0.js"></script><script·defer·src="../../../static.files/main-12cf3b4f4f9dc36d.js"></script><noscript><link·rel="stylesheet"·href="../../../static.files/noscript-04d5337699b92874.css"></noscript><link·rel="alternate·icon"·type="image/png"·href="../../../static.files/favicon-16x16-8b506e7a72182f1c.png"><link·rel="alternate·icon"·type="image/png"·href="../../../static.files/favicon-32x32-422f7d1d52889060.png"><link·rel="icon"·type="image/svg+xml"·href="../../../static.files/favicon-2c020d218678b618.svg"></head><body·class="rustdoc·struct"><!--[if·lte·IE·11]><div·class="warning">This·old·browser·is·unsupported·and·will·most·likely·display·funky·things.</div><![endif]--><nav·class="mobile-topbar"><button·class="sidebar-menu-toggle"·title="show·sidebar"></button><a·class="logo-container"·href="../../../alloc/index.html"><img·class="rust-logo"·src="../../../static.files/rust-logo-151179464ae7ed46.svg"·alt=""></a></nav><nav·class="sidebar"><div·class="sidebar-crate"><a·class="logo-container"·href="../../../alloc/index.html"><img·class="rust-logo"·src="../../../static.files/rust-logo-151179464ae7ed46.svg"·alt="logo"></a><h2><a·href="../../../alloc/index.html">alloc</a><span·class="version">1.78.0</span></h2></div><h2·class="location"><a·href="#">ExtractIf</a></h2><div·class="sidebar-elems"><section><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">Debug</a></li><li><a·href="#impl-FusedIterator-for-ExtractIf%3C'_,+K,+V,+F%3E">FusedIterator</a></li><li><a·href="#impl-Iterator-for-ExtractIf%3C'_,+K,+V,+F,+A%3E">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">!UnwindSafe</a></li><li><a·href="#impl-Freeze-for-ExtractIf%3C'a,+K,+V,+F,+A%3E">Freeze</a></li><li><a·href="#impl-RefUnwindSafe-for-ExtractIf%3C'a,+K,+V,+F,+A%3E">RefUnwindSafe</a></li><li><a·href="#impl-Send-for-ExtractIf%3C'a,+K,+V,+F,+A%3E">Send</a></li><li><a·href="#impl-Sync-for-ExtractIf%3C'a,+K,+V,+F,+A%3E">Sync</a></li><li><a·href="#impl-Unpin-for-ExtractIf%3C'a,+K,+V,+F,+A%3E">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">Any</a></li><li><a·href="#impl-Borrow%3CT%3E-for-T">Borrow&lt;T&gt;</a></li><li><a·href="#impl-BorrowMut%3CT%3E-for-T">BorrowMut&lt;T&gt;</a></li><li><a·href="#impl-From%3CT%3E-for-T">From&lt;T&gt;</a></li><li><a·href="#impl-Into%3CU%3E-for-T">Into&lt;U&gt;</a></li><li><a·href="#impl-IntoIterator-for-I">IntoIterator</a></li><li><a·href="#impl-TryFrom%3CU%3E-for-T">TryFrom&lt;U&gt;</a></li><li><a·href="#impl-TryInto%3CU%3E-for-T">TryInto&lt;U&gt;</a></li></ul></section><h2><a·href="index.html">In·alloc::collections::btree_map</a></h2></div></nav><div·class="sidebar-resizer"></div>1 <!DOCTYPE·html><html·lang="en"><head><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.write(`<link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../../static.files/SourceSerif4-Regular-46f98efaafac5295.ttf.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../../static.files/FiraSans-Regular-018c141bf0843ffd.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../../static.files/FiraSans-Medium-8f9a781e4970d388.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../../static.files/SourceCodePro-Regular-562dcc5011b6de7d.ttf.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../../static.files/SourceCodePro-Semibold-d899c5a5c4aeb14a.ttf.woff2">`)</script><link·rel="stylesheet"·href="../../../static.files/normalize-76eba96aa4d2e634.css"><link·rel="stylesheet"·href="../../../static.files/rustdoc-35f9e32502181f1e.css"><meta·name="rustdoc-vars"·data-root-path="../../../"·data-static-root-path="../../../static.files/"·data-current-crate="alloc"·data-themes=""·data-resource-suffix="1.78.0"·data-rustdoc-version="1.78.0"·data-channel="1.78.0"·data-search-js="search-42d8da7a6b9792c2.js"·data-settings-js="settings-4313503d2e1961c2.js"·><script·src="../../../static.files/storage-4c98445ec4002617.js"></script><script·defer·src="sidebar-items1.78.0.js"></script><script·defer·src="../../../static.files/main-12cf3b4f4f9dc36d.js"></script><noscript><link·rel="stylesheet"·href="../../../static.files/noscript-04d5337699b92874.css"></noscript><link·rel="alternate·icon"·type="image/png"·href="../../../static.files/favicon-16x16-8b506e7a72182f1c.png"><link·rel="alternate·icon"·type="image/png"·href="../../../static.files/favicon-32x32-422f7d1d52889060.png"><link·rel="icon"·type="image/svg+xml"·href="../../../static.files/favicon-2c020d218678b618.svg"></head><body·class="rustdoc·struct"><!--[if·lte·IE·11]><div·class="warning">This·old·browser·is·unsupported·and·will·most·likely·display·funky·things.</div><![endif]--><nav·class="mobile-topbar"><button·class="sidebar-menu-toggle"·title="show·sidebar"></button><a·class="logo-container"·href="../../../alloc/index.html"><img·class="rust-logo"·src="../../../static.files/rust-logo-151179464ae7ed46.svg"·alt=""></a></nav><nav·class="sidebar"><div·class="sidebar-crate"><a·class="logo-container"·href="../../../alloc/index.html"><img·class="rust-logo"·src="../../../static.files/rust-logo-151179464ae7ed46.svg"·alt="logo"></a><h2><a·href="../../../alloc/index.html">alloc</a><span·class="version">1.78.0</span></h2></div><h2·class="location"><a·href="#">ExtractIf</a></h2><div·class="sidebar-elems"><section><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">Debug</a></li><li><a·href="#impl-FusedIterator-for-ExtractIf%3C'_,+K,+V,+F%3E">FusedIterator</a></li><li><a·href="#impl-Iterator-for-ExtractIf%3C'_,+K,+V,+F,+A%3E">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">!UnwindSafe</a></li><li><a·href="#impl-Freeze-for-ExtractIf%3C'a,+K,+V,+F,+A%3E">Freeze</a></li><li><a·href="#impl-RefUnwindSafe-for-ExtractIf%3C'a,+K,+V,+F,+A%3E">RefUnwindSafe</a></li><li><a·href="#impl-Send-for-ExtractIf%3C'a,+K,+V,+F,+A%3E">Send</a></li><li><a·href="#impl-Sync-for-ExtractIf%3C'a,+K,+V,+F,+A%3E">Sync</a></li><li><a·href="#impl-Unpin-for-ExtractIf%3C'a,+K,+V,+F,+A%3E">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">Any</a></li><li><a·href="#impl-Borrow%3CT%3E-for-T">Borrow&lt;T&gt;</a></li><li><a·href="#impl-BorrowMut%3CT%3E-for-T">BorrowMut&lt;T&gt;</a></li><li><a·href="#impl-From%3CT%3E-for-T">From&lt;T&gt;</a></li><li><a·href="#impl-Into%3CU%3E-for-T">Into&lt;U&gt;</a></li><li><a·href="#impl-IntoIterator-for-I">IntoIterator</a></li><li><a·href="#impl-TryFrom%3CU%3E-for-T">TryFrom&lt;U&gt;</a></li><li><a·href="#impl-TryInto%3CU%3E-for-T">TryInto&lt;U&gt;</a></li></ul></section><h2><a·href="index.html">In·alloc::collections::btree_map</a></h2></div></nav><div·class="sidebar-resizer"></div>
2 ····<main><div·class="width-limiter"><nav·class="sub"><form·class="search-form"><span></span><div·id="sidebar-button"·tabindex="-1"><a·href="../../../alloc/all.html"·title="show·sidebar"></a></div><input·class="search-input"·name="search"·aria-label="Run·search·in·the·documentation"·autocomplete="off"·spellcheck="false"·placeholder="Click·or·press·‘S’·to·search,·‘?’·for·more·options…"·type="search"><div·id="help-button"·tabindex="-1"><a·href="../../../help.html"·title="help">?</a></div><div·id="settings-menu"·tabindex="-1"><a·href="../../../settings.html"·title="settings"><img·width="22"·height="22"·alt="Change·settings"·src="../../../static.files/wheel-7b819b6101059cd0.svg"></a></div></form></nav><section·id="main-content"·class="content"><div·class="main-heading"><h1>Struct·<a·href="../../index.html">alloc</a>::<wbr><a·href="../index.html">collections</a>::<wbr><a·href="index.html">btree_map</a>::<wbr><a·class="struct"·href="#">ExtractIf</a><button·id="copy-path"·title="Copy·item·path·to·clipboard"><img·src="../../../static.files/clipboard-7571035ce49a181d.svg"·width="19"·height="18"·alt="Copy·item·path"></button></h1><span·class="out-of-band"><a·class="src"·href="../../../src/alloc/collections/btree/map.rs.html#1874-1887">source</a>···<button·id="toggle-all-docs"·title="collapse·all·docs">[<span>&#x2212;</span>]</button></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">where2 ····<main><div·class="width-limiter"><nav·class="sub"><form·class="search-form"><span></span><div·id="sidebar-button"·tabindex="-1"><a·href="../../../alloc/all.html"·title="show·sidebar"></a></div><input·class="search-input"·name="search"·aria-label="Run·search·in·the·documentation"·autocomplete="off"·spellcheck="false"·placeholder="Click·or·press·‘S’·to·search,·‘?’·for·more·options…"·type="search"><div·id="help-button"·tabindex="-1"><a·href="../../../help.html"·title="help">?</a></div><div·id="settings-menu"·tabindex="-1"><a·href="../../../settings.html"·title="settings"><img·width="22"·height="22"·alt="Change·settings"·src="../../../static.files/wheel-7b819b6101059cd0.svg"></a></div></form></nav><section·id="main-content"·class="content"><div·class="main-heading"><h1>Struct·<a·href="../../index.html">alloc</a>::<wbr><a·href="../index.html">collections</a>::<wbr><a·href="index.html">btree_map</a>::<wbr><a·class="struct"·href="#">ExtractIf</a><button·id="copy-path"·title="Copy·item·path·to·clipboard"><img·src="../../../static.files/clipboard-7571035ce49a181d.svg"·width="19"·height="18"·alt="Copy·item·path"></button></h1><span·class="out-of-band"><a·class="src"·href="../../../src/alloc/collections/btree/map.rs.html#1874-1887">source</a>···<button·id="toggle-all-docs"·title="collapse·all·docs">[<span>&#x2212;</span>]</button></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.78.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
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;K</a>,·<a·class="primitive"·href="../../../core/primitive.reference.html">&amp;mut·V</a>[·...·truncated·by·diffoscope;·len:·43,·SHA:·bbe795ab79a81ab7b67b5614d0d6109ed640095fcc6414d1fd2574a83fd6ce06·...·]/core/primitive.bool.html">bool</a>,</div>{·<span·class="comment">/*·private·fields·*/</span>·}</code></pre><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>btree_extract_if</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/70530">#70530</a>)</span></div></span><details·class="toggle·top-doc"·open><summary·class="hideme"><span>Expand·description</span></summary><div·class="docblock"><p>An·iterator·produced·by·calling·<code>extract_if</code>·on·BTreeMap.</p>3 ····F:·'a·+·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(<a·class="primitive"·href="https://doc.rust-lang.org/1.78.0/core/primitive.reference.html">&amp;K</a>,·<a·class="primitive"·href="https:[·...·truncated·by·diffoscope;·len:·139,·SHA:·c4c6febed4b4cae83f3cd6cd0c1f738a55b4d06ae9a11fd6a2b0a2b66f82bf14·...·]/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>
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'_,+K,+V,+F%3E"·class="impl"><a·class="src·rightside"·href="../../../src/alloc/collections/btree/map.rs.html#1903-1912">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">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'_,+K,+V,+F%3E"·class="impl"><a·class="src·rightside"·href="../../../src/alloc/collections/btree/map.rs.html#1903-1912">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
5 ····K:·<a·class="trait"·href="../../fmt/trait.Debug.html"·title="trait·alloc::fmt::Debug">Debug</a>,5 ····K:·<a·class="trait"·href="../../fmt/trait.Debug.html"·title="trait·alloc::fmt::Debug">Debug</a>,
6 ····V:·<a·class="trait"·href="../../fmt/trait.Debug.html"·title="trait·alloc::fmt::Debug">Debug</a>,6 ····V:·<a·class="trait"·href="../../fmt/trait.Debug.html"·title="trait·alloc::fmt::Debug">Debug</a>,
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:·1510,·SHA:·9de116f9c5d21ee7f07bd595fc2c8a9d23e1b0f04aa899b4d42b972921e37215·...·]/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">where7 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(<a·class="primitive"·href="https://doc.rust-lang.org/1.78.0/core/primitive.reference.html">&amp;K</a>,·<a·class="primitive"·href="https:[·...·truncated·by·diffoscope;·len:·1654,·SHA:·6c9e548c11fd17c3a045c50281f06b01b24cf4d69eb7ae8151bc9e925df0debf·...·]/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
8 ····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:·2733,·SHA:·98f35ba70e5f0a4a11aada072b2931e6da66e0cae66a7dbc012b3a6a05423694·...·]/core/primitive.usize.html">usize</a>&gt;(8 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(<a·class="primitive"·href="https://doc.rust-lang.org/1.78.0/core/primitive.reference.html">&amp;K</a>,·<a·class="primitive"·href="https:[·...·truncated·by·diffoscope;·len:·3165,·SHA:·a47dc90808f4b6da225d5945498d6ea33120cec368f6da3cd4edbd74022ab424·...·]/core/primitive.usize.html">usize</a>&gt;(
9 ····&amp;mut·self9 ····&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::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">where10 )·-&gt;·<a·class="enum"·href="https://doc.rust-lang.org/1.78.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.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title=[·...·truncated·by·diffoscope;·len:·381,·SHA:·88c48923c9b7ea5cc47c1087c60e09656e81d4671c58071ba2bef826335388bc·...·]/core/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[·...·truncated·by·diffoscope;·len:·842,·SHA:·f7c1ca2ff3e425a8295c41d4d2fe540d4a3cb1e7032a9d04d8aed936964c71b6·...·]/core/primitive.usize.html">usize</a><div·class="where">where11 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></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:·89791450da70cbd536c3cf8fbf2dd9891668362f9a252d3ee098222d19960bae·...·]/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/t[·...·truncated·by·diffoscope;·len:·693,·SHA:·a0deafb68573233cf98843dcb8980b408fa28f99c350115f667afd7858ad6f7e·...·]/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.78.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:·84ae0beb16240102bae2355bb8c543b17f3f107e3c06b320839aa401eebb1945·...·]/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#metho[·...·truncated·by·diffoscope;·len:·3024,·SHA:·28bd88719f8c6dacf69b206ecda434ff3ac19011adf99793edd5fafa883cbd71·...·]/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.78.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.78.0/cor[·...·truncated·by·diffoscope;·len:·3504,·SHA:·6d21b6d637e0b2e9953a37a26fd19e00da089147d4acaf696c94d448de4ce419·...·]/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.78.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="[·...·truncated·by·diffoscope;·len:·698,·SHA:·4ac7445a1207207aeda1789f31c5036d8905fa206c83a58ca48662c081a68134·...·]/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.78.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:·e83c903581753673e083ce8dd809879a2fc81ab3050eb6db267d7fa26b15e035·...·]/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.78.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"·[·...·truncated·by·diffoscope;·len:·1137,·SHA:·10378641f30fbaa3b3d8ba8984f91955195f5a0ddb70a41cc9ff99666b50a36f·...·]/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.78.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.78.0/core/iter/traits/it[·...·truncated·by·diffoscope;·len:·1329,·SHA:·d9299c8edc606ed82f24d61ce441bec451141d684c2a9a75074f5b19c57f196c·...·]/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.78.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="../..[·...·truncated·by·diffoscope;·len:·574,·SHA:·b9001dd3131b1425179c94853e1b90fff0f7169b9570e86cd50c6b7fbf1ee8a5·...·]/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.78.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:·98627729f77dcf1c9d258f343354ba600b7134c6b3929080f231e8de7155b70b·...·]/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.78.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.78.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.78.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"·[·...·truncated·by·diffoscope;·len:·375,·SHA:·fa2a17b1aaf7dbc4e89f728d099c0a475adcd5ff79e4791795d7c4df5fc2ccec·...·]/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.78.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:·7301b6beba7b6885849be90a625df68ef739a5374af456c51fe2e81d91a25363·...·]/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.78.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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::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="S[·...·truncated·by·diffoscope;·len:·234,·SHA:·d75758e0f8262eeea27445cec43f13d84f0c02ba4e03c0c54d041f9ab1965e0f·...·]/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.78.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:·98f6effefa44d759c249143d83623f0055d937382bfc398b7e1f5e92cd413657·...·]/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.78.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::Iter[·...·truncated·by·diffoscope;·len:·772,·SHA:·9009d5c023150c1a97b2d18e30d176e7ff2e48673ad0e4665367958e752bf827·...·]/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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·916,·SHA:·30d0b2a76513c5a880e9aee43e92b18805845cfcfe5783f62dc090167a439e63·...·]/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.78.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:[·...·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·element29 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·140,·SHA:·752f473b57e7444ebfddf5ea7fd40a332e83ec55524a6c31b5ee0f82a5dea819·...·]/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"·tit[·...·truncated·by·diffoscope;·len:·393,·SHA:·7c1da0b93b40e2b4f823a0d24b5a27f092ffdb68175a9c14fe21a97d84bb2244·...·]/core/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.78.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:·76aa2ad154f88085ee3f8a22721a7e6812680bac785d19059532407f50da1801·...·]/core/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.78.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:·884,·SHA:·96005685f2d5bf532d7af03cf747a50bdbe5efffccc579afe197789e4cd44a54·...·]/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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·1052,·SHA:·110b47c7083083d565fcfc89337fddc8e5c87e81b2f720f3f7b0ded55e8500fb·...·]/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.78.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"·ti[·...·truncated·by·diffoscope;·len:·372,·SHA:·02bccd69f3cf4a08b24b66a0c9afb8ac49ebd0e9a7d5a183641b471189a35df3·...·]/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.78.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:·8464264e074dde5d84f0414ab3b5b2d8da83f3c9e3ca04c45458241580a8c80d·...·]/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"·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>·methods35 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.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.78.0/core/iter/adapte[·...·truncated·by·diffoscope;·len:·175,·SHA:·16fe7225bf05b478e2828b347c3d23ded9a22f89d8887a2c65d9f7b3faf1b0e7·...·]/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"·t[·...·truncated·by·diffoscope;·len:·402,·SHA:·60d233d0587f535c8bae5118522baa81ef2524d4168f9e142529a37902d8e8c4·...·]/core/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.78.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:·00ccbb673c11ed48d8c6aa2a3f8984fb298202e7bccfa42f1ac21290fcc0fb06·...·]/core/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.78.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:·1042,·SHA:·0900235f7b60bdd90fbf9718324068ecf230199603f19da2c38cad64ed6915ff·...·]/core/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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·1234,·SHA:·3b805567411cdcebed740f9e8d400dbe7fb487504f40e284544a140155090fdf·...·]/core/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.78.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:[·...·truncated·by·diffoscope;·len:·890,·SHA:·552b3dd2132886d024e4d5bd2554611e25c1f068adaaf23ecf80da81d31997ef·...·]/core/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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·1058,·SHA:·b390dbdda8d7e93604b5ecd906a93efd03fe19bdaf41cf12893fd361bf974307·...·]/core/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.78.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::Iter[·...·truncated·by·diffoscope;·len:·971,·SHA:·491a83328e39b23cf5191ed5cb6bf83f1a62c9405ed5c39c58117b227b39b16c·...·]/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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·1163,·SHA:·5772149166d344bf8fa5ebbd9db8693a8f2e5f031c50338e8f1523ef72f814d6·...·]/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.Iter[·...·truncated·by·diffoscope;·len:·639,·SHA:·e62b3f87b06b061e799e72ab8f04c531f1c6f241266260eaab33ea2b793dd8d2·...·]/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.78.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:·6216516fe581c401abda3c95818192e8f030e2008c9bbdbaafebba16f33ea9bd·...·]/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.78.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="Stab[·...·truncated·by·diffoscope;·len:·392,·SHA:·7d73eca41cdb0c170bd03419f3563f3fe9e70e11494db546e781d302d3cd5636·...·]/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.78.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:·485843399c56e24bdf020ff0610d0ce1f62fbac5530d9880a1a7417105e3d70f·...·]/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.78.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/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,·but48 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(<a·class="primitive"·href="https://doc.rust-lang.org/1.78.0/core/primitive.reference.html">&amp;mut·St</a>,·Self::<a·class="associatedty[·...·truncated·by·diffoscope;·len:·449,·SHA:·f12c268a8a8111b9e7126ad78bf5523a63733caa63d187c4fe792309ea41acdf·...·]/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">Rea[·...·truncated·by·diffoscope;·len:·570,·SHA:·02034aae893b799fa017b2d71546332d96a823cd4ba05c14089559819f3dd720·...·]/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.78.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.78.0/core/iter/trai[·...·truncated·by·diffoscope;·len:·690,·SHA:·371190e5c1bf9b7dde6e84447965a69946212b977b9eb6d89048fbe34c5dda1c·...·]/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.78.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.78.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::Iter[·...·truncated·by·diffoscope;·len:·808,·SHA:·4d1f54658fd1c005b101a2e27b0da3c6ee0cbe2d891660c65470bfec01fa46f6·...·]/core/iter/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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·976,·SHA:·2a9182f6fe88e0b8a9b1ae1f46cace940cc0b8736033c354c0f0ccbf1c196e7a·...·]/core/iter/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.78.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[·...·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>·over54 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;[Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtyp[·...·truncated·by·diffoscope;·len:·135,·SHA:·0b06a6094d42ccbc8bce5b01c4383961fe7f1967f05e4c9f1ff33e71e425fb26·...·]/core/primitive.array.html">N</a>])·-&gt;·R,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iter_map_windows</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/87155">#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.78.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"·titl[·...·truncated·by·diffoscope;·len:·358,·SHA:·d83146d48347da8e04ce6fcac96b0b1500203504f596d32c16a5a1493dd375e1·...·]/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.78.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:·0d33056cee8a4f9b70b573c0adecc2f3599a2f8d9fa9f2c2044e9118ab134f73·...·]/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="varia[·...·truncated·by·diffoscope;·len:·697,·SHA:·e9288f8d879e78d7e79eb2c4255eb99308efd98061b1221968fb17de11019b2e·...·]/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.78.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.78.0/core/op[·...·truncated·by·diffoscope;·len:·841,·SHA:·9cba1b175fb3726d7f1f01da9be7c1a56568a68e4ce7915a468b730902daf8d3·...·]/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.78.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:·790,·SHA:·19293cf7305d77d7ccd51618427cff5e3edb06f162c23796ed392e0ac792f65e·...·]/core/primitive.reference.html">&amp;mut·Self</a><div·class="where">where59 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·934,·SHA:·ea20d2e0fe9388580ea08100baa9120b5e9b6cb48f43fc846f15db8b9649e7f6·...·]/core/primitive.reference.html">&amp;mut·Self</a><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[·...·truncated·by·diffoscope;·len:·427,·SHA:·cf371b2193fdcddf87cfe994db4d3e364336bb766b15dcfdd0ac7aabbd72e715·...·]/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.78.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.78.0/core/it[·...·truncated·by·diffoscope;·len:·523,·SHA:·97064c705f6f4bdf74469c54fabcf580d21893127d1b4cd9a9c1018a717ef153·...·]/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.78.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.78.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[·...·truncated·by·diffoscope;·len:·584,·SHA:·d76c3fcf86c63211032a6b22dc5924ef552b1ad26b12e19f15d2f1d5b3d7e394·...·]/core/primitive.reference.html">&amp;mut·E</a><div·class="where">where62 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.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.78.0/core/iter/tr[·...·truncated·by·diffoscope;·len:·728,·SHA:·01937c2dc314c259495665570ae249c94b4a5b0719718f5f1188e6fc64ecf487·...·]/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.78.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.78.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_coll[·...·truncated·by·diffoscope;·len:·855,·SHA:·fa6f33be71e9184cfecc555b0b832d1a929285d35b47b1212b2176ac555731a1·...·]/core/primitive.tuple.html">(B,·B)</a><div·class="where">where64 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></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:·00bd47017b1bdd1bbe2c3fc932d955a8aa2f7f5eff8c00e3001ae28a982a5883·...·]/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.78.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="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;,66 ····B:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/default/trait.Default.html"·title="trait·core::default::Default">Default</a>·+·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/collect/trait.Extend.html"·title="trait·core::iter::traits::collec[·...·truncated·by·diffoscope;·len:·95,·SHA:·8b3be1d0042cae0550f865faf5849221240bdf04eb1b2107605b72d48c3ad29c·...·]/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:[·...·truncated·by·diffoscope;·len:·804,·SHA:·f996a0de22717256dd2ecf4d61d81611f9c7dfe5a493e4b882abb4030f3c80f9·...·]/core/primitive.bool.html">bool</a><div·class="where">where67 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·972,·SHA:·6de765542031617a9c28ac98fe6df619e58e62d9c65ec5b1c185a7152b8944e5·...·]/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.78.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::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,69 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·135,·SHA:·51ff5f5c7ebd8440623ea71b125c5a5837e809e308fe1a13fbe19cddb941dbd9·...·]/core/primitive.bool.html">bool</a>,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iter_is_partitioned</code>&nbsp;<a·href="https://github.com/rust-lang/rust/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_fold"·class="method·trait-impl"><span·class="rightside"><span·class="sinc[·...·truncated·by·diffoscope;·len:·247,·SHA:·bd8fce4ee431c619c98780c4d520e8db93f1e034f12843ffaff5744b7ce2190b·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_fold"·class="fn">try_fold</a>&lt;B,·F,·R&gt;(&amp;mut·self,·init:·B,·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.78.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:·2c74873f4e5ba70004a1c7edd1cc3f9e2d91271295dd1591e2d26848df4c02ba·...·]/core/iter/traits/iterator/trait.Iterator.html#method.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
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.78.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>(B,·Self::<a·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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(B,·Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.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·=·B&gt;,</div></h4></section></summary><div·class='docblock'>An·iterator·method·that·applies·a·function·as·long·as·it·returns73 ····R:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.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
74 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:·7b4fc32e7634ae85c682a97099be267837713d7e4831893b617ca652f57a89da·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_for_each"·class="fn">try_for_each</a>&lt;F,·R&gt;(&amp;mut·self,·f:·F)·-&gt;·R<div·class="where">where74 successfully,·producing·a·single,·final·value.·<a·href="https://doc.rust-lang.org/1.78.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:·52912e82c4b0a760d06f77eb4ee3a59ba70dd76cb532954900c73ae94c652674·...·]/core/iter/traits/iterator/trait.Iterator.html#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
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.78.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::Item">Item</a>)·-&gt;·R,76 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.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·=·<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·the77 ····R:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.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.78.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
78 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:·5cfb1ce7ac10ff40c8d1d0f019b60fc4735736254c2d8357ed62287e51b1ac32·...·]/core/iter/traits/iterator/trait.Iterator.html#method.fold"·class="fn">fold</a>&lt;B,·F&gt;(self,·init:·B,·f:·F)·-&gt;·B<div·class="where">where78 iterator,·stopping·at·the·first·error·and·returning·that·error.·<a·href="https://doc.rust-lang.org/1.78.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:·1d6c4809cea8748e901d3f94777f450d430f3161f6ac05ed1c178d9327f966a3·...·]/core/iter/traits/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
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.78.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;·B,</div></h4></section></summary><div·class='docblock'>Folds·every·element·into·an·accumulator·by·applying·an·operation,80 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(B,·Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·B,</div></h4></section></summary><div·class='docblock'>Folds·every·element·into·an·accumulator·by·applying·an·operation,
81 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:·2c738ecc68200afa2467bef085de14dcb642dbaac77c4529948f5e259e66691d·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;<div·class="where">where81 returning·the·final·result.·<a·href="https://doc.rust-lang.org/1.78.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:·b60215068a6d9721be05f81098c51167d7138c4042f140cad42f77c4df43f597·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&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.78.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::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·reducing83 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·352,·SHA:·e7c3c296abe2c0a183967153e4ae7fd50bafa2ae7088e3e78b3b48fee253adc6·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::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
84 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:·c3f1d50e276def36966943119961a20b09cab3be33483fe4d48d7f322489534b·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_reduce"·class="fn">try_reduce</a>&lt;F,·R&gt;(84 operation.·<a·href="https://doc.rust-lang.org/1.78.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:·7a18fdd041b1a001b4a8feb289ee127fd9240232239269eb35dc3b8f74783ec9·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_reduce"·class="fn">try_reduce</a>&lt;F,·R&gt;(
85 ····&amp;mut·self,85 ····&amp;mut·self,
86 ····f:·F86 ····f:·F
87 )·-&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">where87 )·-&gt;·&lt;&lt;R·as·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&gt;::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/ops/try_trait/trait.Try.html#associatedtype.Residual"·title="type[·...·truncated·by·diffoscope;·len:·754,·SHA:·6fb4dfdb6b4da68921c1e7f8b75d99cf293d58318d684a840254ce9576957bea·...·]/core/ops/try_trait/trait.Residual.html#associatedtype.TryType"·title="type·core::ops::try_trait::Residual::TryType">TryType</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.78.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:·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:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·140,·SHA:·c27972e6fa3464c9476eaa185e8657edb6bb294f148403f3d079285294a9f909·...·]/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·=·Self::<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 ····R:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.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.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;,
91 ····&lt;R·as·<a·class="trait"·href="../../../core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</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·the91 ····&lt;R·as·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&gt;::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/ops/try_trait/trait.Try.html#associatedtype.Residual"·title="type[·...·truncated·by·diffoscope;·len:·412,·SHA:·22b8cbb007e5cce82b9d13a65bfa56aa8d83c32541fac25f4d9b3857b0540908·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;&gt;,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iterator_try_reduce</code>&nbsp;<a·href="https://github.com/rust-lang/rust/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
92 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:·1a00be8efe0263bc0d09f5d47be04890b1d27a20c3429d1f4531805a03591fdb·...·]/core/primitive.bool.html">bool</a><div·class="where">where92 closure·returns·a·failure,·the·failure·is·propagated·back·to·the·caller·immediately.·<a·href="https://doc.rust-lang.org/1.78.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:·bc0d658d56e348823de15386e1cd4ab49109f3a7a055a4573a19391b47071193·...·]/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.78.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:·850,·SHA:·c15cbdf9d3f54700b6eac2f717541f7f5a3cf811d73f48ef7118096c1a240102·...·]/core/primitive.bool.html">bool</a><div·class="where">where94 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·1018,·SHA:·e61cd6bdd36729cc38e57fcaea2ccb91a23a5acbda3c8986071f19bf1ecfc52a·...·]/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.78.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:·980,·SHA:·80fef1533a0c8783ee74be0f29290d7dec960bcd19223b11639b3e6377220faa·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;<div·class="where">where96 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·1172,·SHA:·e64ab74d116d286191ad43d9d9e10411fc011c23724aa806e9a8f9b0be0757e3·...·]/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.78.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
98 ····P:·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;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:·f441e2966ff8db4214e57fcd74f81262d6e371aa51cea97ebde5921e81b4da79·...·]/core/option/enum.Option.html"·title="enum·core::option::Option">Option</a>&lt;B&gt;<div·class="where">where98 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·1051,·SHA:·ecc0b8fccd861464760f9ae047ff6ab98c91a1db010cb5fa59a8c2ab883db7c4·...·]/core/option/enum.Option.html"·title="enum·core::option::Option">Option</a>&lt;B&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.78.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::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·returns100 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·130,·SHA:·130a13019dc175d02304b4f550157e2f13ac15c2f25a979c74161d10b146ab89·...·]/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
101 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:·ec4fb002625b166504031522e52a66812b279e6735a67cb718813205909c3fb7·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_find"·class="fn">try_find</a>&lt;F,·R&gt;(101 the·first·non-none·result.·<a·href="https://doc.rust-lang.org/1.78.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:·8ced1b10e78750774c5c8ed995ed83dcd13983aa75d329acf8069da106ab9f4a·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_find"·class="fn">try_find</a>&lt;F,·R&gt;(
102 ····&amp;mut·self,102 ····&amp;mut·self,
103 ····f:·F103 ····f:·F
104 )·-&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">where104 )·-&gt;·&lt;&lt;R·as·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&gt;::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/ops/try_trait/trait.Try.html#associatedtype.Residual"·title="type[·...·truncated·by·diffoscope;·len:·626,·SHA:·95f9831257b68862cbcbf54f0ad2ff4e597a4c9f763112d1da8a0897dadcf872·...·]/core/ops/try_trait/trait.Residual.html#associatedtype.TryType"·title="type·core::ops::try_trait::Residual::TryType">TryType</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.78.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;·R,106 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.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·=·<a·class="primitive"·href="../../../core/primitive.bool.html">bool</a>&gt;,107 ····R:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.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.78.0/core/primitive.bool.html">bool</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</[·...·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·returns108 ····&lt;R·as·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&gt;::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/ops/try_trait/trait.Try.html#associatedtype.Residual"·title="type[·...·truncated·by·diffoscope;·len:·412,·SHA:·22b8cbb007e5cce82b9d13a65bfa56aa8d83c32541fac25f4d9b3857b0540908·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;&gt;,</div></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
109 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">where109 the·first·true·result·or·the·first·error.·<a·href="https://doc.rust-lang.org/1.78.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:·fa9d94b216f6e4ce6035b4762e3bf17cb86a0272db0a55a056f05c68bcaeb0da·...·]/core/primitive.usize.html">usize</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.78.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>(Self::<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">where111 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·1190,·SHA:·882e9e9a037f916d0ed4aa6d749399e6e01ca81811eacfc54a484818cb5d5029·...·]/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 ····B:·<a·class="trait"·href="../../../core/cmp/trait.Ord.html"·title="trait·core::cmp::Ord">Ord</a>,112 ····B:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/cmp/trait.Ord.html"·title="trait·core::cmp::Ord">Ord</a>,
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.78.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::Iterator::Item">Item</a>)·-&gt;·B,</div></h4></section></summary><div·class='docblock'>Returns·the·element·that·gives·the·maximum·value·from·the114 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/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
115 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">where115 specified·function.·<a·href="https://doc.rust-lang.org/1.78.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:·0367b1bacc0a7d8e05f1c5181f8c4ea428f3f11edbae0e76811f3ef1d4925e41·...·]/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.78.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:[·...·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·the117 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·346,·SHA:·7113e4c2d65a123253bb18971efdc2d49241cfc2dd4c2b18e4cfa4e4d7d4140f·...·]/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
118 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">where118 specified·comparison·function.·<a·href="https://doc.rust-lang.org/1.78.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:·db89d4cca0becf2a4ab904adac2870de6fd83cfad5131f5a1431a67766274f81·...·]/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 ····B:·<a·class="trait"·href="../../../core/cmp/trait.Ord.html"·title="trait·core::cmp::Ord">Ord</a>,119 ····B:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/cmp/trait.Ord.html"·title="trait·core::cmp::Ord">Ord</a>,
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.78.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::Iterator::Item">Item</a>)·-&gt;·B,</div></h4></section></summary><div·class='docblock'>Returns·the·element·that·gives·the·minimum·value·from·the121 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/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
122 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">where122 specified·function.·<a·href="https://doc.rust-lang.org/1.78.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:·39ce6bc28062c0df48bff6a8faa3e4f2266988879092cf2970d2e9ee092742b0·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;<div·class="where">where
123 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,123 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.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:[·...·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·the124 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·346,·SHA:·7113e4c2d65a123253bb18971efdc2d49241cfc2dd4c2b18e4cfa4e4d7d4140f·...·]/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
125 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">where125 specified·comparison·function.·<a·href="https://doc.rust-lang.org/1.78.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:·64f5ac8109ab8e5164c24b53640d938d0bb2486cf55faea0ff483f1e9ad27c8f·...·]/core/primitive.tuple.html">(FromA,·FromB)</a><div·class="where">where
126 ····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;,126 ····FromA:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/default/trait.Default.html"·title="trait·core::default::Default">Default</a>·+·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/collect/trait.Extend.html"·title="trait·core::iter::traits::collect::Extend">Extend</a>&lt;A&gt;,
127 ····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;,127 ····FromB:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/default/trait.Default.html"·title="trait·core::default::Default">Default</a>·+·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/collect/trait.Extend.html"·title="trait·core::iter::traits::collect::Extend">Extend</a>&lt;B&gt;,
Max diff block lines reached; 83985/279370 bytes (30.06%) of diff not shown.
307 KB
./usr/share/doc/rust-web-doc/html/alloc/collections/btree_map/struct.IntoIter.html
    
Offset 1, 230 lines modifiedOffset 1, 230 lines modified
1 <!DOCTYPE·html><html·lang="en"><head><meta·charset="utf-8"><meta·name="viewport"·content="width=device-width,·initial-scale=1.0"><meta·name="generator"·content="rustdoc"><meta·name="description"·content="An·owning·iterator·over·the·entries·of·a·`BTreeMap`."><title>IntoIter·in·alloc::collections::btree_map·-·Rust</title><script>·if·(window.location.protocol·!==·"file:")·document.write(`<link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../../static.files/SourceSerif4-Regular-46f98efaafac5295.ttf.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../../static.files/FiraSans-Regular-018c141bf0843ffd.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../../static.files/FiraSans-Medium-8f9a781e4970d388.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../../static.files/SourceCodePro-Regular-562dcc5011b6de7d.ttf.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../../static.files/SourceCodePro-Semibold-d899c5a5c4aeb14a.ttf.woff2">`)</script><link·rel="stylesheet"·href="../../../static.files/normalize-76eba96aa4d2e634.css"><link·rel="stylesheet"·href="../../../static.files/rustdoc-35f9e32502181f1e.css"><meta·name="rustdoc-vars"·data-root-path="../../../"·data-static-root-path="../../../static.files/"·data-current-crate="alloc"·data-themes=""·data-resource-suffix="1.78.0"·data-rustdoc-version="1.78.0"·data-channel="1.78.0"·data-search-js="search-42d8da7a6b9792c2.js"·data-settings-js="settings-4313503d2e1961c2.js"·><script·src="../../../static.files/storage-4c98445ec4002617.js"></script><script·defer·src="sidebar-items1.78.0.js"></script><script·defer·src="../../../static.files/main-12cf3b4f4f9dc36d.js"></script><noscript><link·rel="stylesheet"·href="../../../static.files/noscript-04d5337699b92874.css"></noscript><link·rel="alternate·icon"·type="image/png"·href="../../../static.files/favicon-16x16-8b506e7a72182f1c.png"><link·rel="alternate·icon"·type="image/png"·href="../../../static.files/favicon-32x32-422f7d1d52889060.png"><link·rel="icon"·type="image/svg+xml"·href="../../../static.files/favicon-2c020d218678b618.svg"></head><body·class="rustdoc·struct"><!--[if·lte·IE·11]><div·class="warning">This·old·browser·is·unsupported·and·will·most·likely·display·funky·things.</div><![endif]--><nav·class="mobile-topbar"><button·class="sidebar-menu-toggle"·title="show·sidebar"></button><a·class="logo-container"·href="../../../alloc/index.html"><img·class="rust-logo"·src="../../../static.files/rust-logo-151179464ae7ed46.svg"·alt=""></a></nav><nav·class="sidebar"><div·class="sidebar-crate"><a·class="logo-container"·href="../../../alloc/index.html"><img·class="rust-logo"·src="../../../static.files/rust-logo-151179464ae7ed46.svg"·alt="logo"></a><h2><a·href="../../../alloc/index.html">alloc</a><span·class="version">1.78.0</span></h2></div><h2·class="location"><a·href="#">IntoIter</a></h2><div·class="sidebar-elems"><section><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">Debug</a></li><li><a·href="#impl-Default-for-IntoIter%3CK,+V,+A%3E">Default</a></li><li><a·href="#impl-DoubleEndedIterator-for-IntoIter%3CK,+V,+A%3E">DoubleEndedIterator</a></li><li><a·href="#impl-Drop-for-IntoIter%3CK,+V,+A%3E">Drop</a></li><li><a·href="#impl-ExactSizeIterator-for-IntoIter%3CK,+V,+A%3E">ExactSizeIterator</a></li><li><a·href="#impl-FusedIterator-for-IntoIter%3CK,+V,+A%3E">FusedIterator</a></li><li><a·href="#impl-Iterator-for-IntoIter%3CK,+V,+A%3E">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">Freeze</a></li><li><a·href="#impl-RefUnwindSafe-for-IntoIter%3CK,+V,+A%3E">RefUnwindSafe</a></li><li><a·href="#impl-Send-for-IntoIter%3CK,+V,+A%3E">Send</a></li><li><a·href="#impl-Sync-for-IntoIter%3CK,+V,+A%3E">Sync</a></li><li><a·href="#impl-Unpin-for-IntoIter%3CK,+V,+A%3E">Unpin</a></li><li><a·href="#impl-UnwindSafe-for-IntoIter%3CK,+V,+A%3E">UnwindSafe</a></li></ul><h3><a·href="#blanket-implementations">Blanket·Implementations</a></h3><ul·class="block·blanket-implementation"><li><a·href="#impl-Any-for-T">Any</a></li><li><a·href="#impl-Borrow%3CT%3E-for-T">Borrow&lt;T&gt;</a></li><li><a·href="#impl-BorrowMut%3CT%3E-for-T">BorrowMut&lt;T&gt;</a></li><li><a·href="#impl-From%3CT%3E-for-T">From&lt;T&gt;</a></li><li><a·href="#impl-Into%3CU%3E-for-T">Into&lt;U&gt;</a></li><li><a·href="#impl-IntoIterator-for-I">IntoIterator</a></li><li><a·href="#impl-TryFrom%3CU%3E-for-T">TryFrom&lt;U&gt;</a></li><li><a·href="#impl-TryInto%3CU%3E-for-T">TryInto&lt;U&gt;</a></li></ul></section><h2><a·href="index.html">In·alloc::collections::btree_map</a></h2></div></nav><div·class="sidebar-resizer"></div>1 <!DOCTYPE·html><html·lang="en"><head><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`."><title>IntoIter·in·alloc::collections::btree_map·-·Rust</title><script>·if·(window.location.protocol·!==·"file:")·document.write(`<link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../../static.files/SourceSerif4-Regular-46f98efaafac5295.ttf.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../../static.files/FiraSans-Regular-018c141bf0843ffd.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../../static.files/FiraSans-Medium-8f9a781e4970d388.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../../static.files/SourceCodePro-Regular-562dcc5011b6de7d.ttf.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../../static.files/SourceCodePro-Semibold-d899c5a5c4aeb14a.ttf.woff2">`)</script><link·rel="stylesheet"·href="../../../static.files/normalize-76eba96aa4d2e634.css"><link·rel="stylesheet"·href="../../../static.files/rustdoc-35f9e32502181f1e.css"><meta·name="rustdoc-vars"·data-root-path="../../../"·data-static-root-path="../../../static.files/"·data-current-crate="alloc"·data-themes=""·data-resource-suffix="1.78.0"·data-rustdoc-version="1.78.0"·data-channel="1.78.0"·data-search-js="search-42d8da7a6b9792c2.js"·data-settings-js="settings-4313503d2e1961c2.js"·><script·src="../../../static.files/storage-4c98445ec4002617.js"></script><script·defer·src="sidebar-items1.78.0.js"></script><script·defer·src="../../../static.files/main-12cf3b4f4f9dc36d.js"></script><noscript><link·rel="stylesheet"·href="../../../static.files/noscript-04d5337699b92874.css"></noscript><link·rel="alternate·icon"·type="image/png"·href="../../../static.files/favicon-16x16-8b506e7a72182f1c.png"><link·rel="alternate·icon"·type="image/png"·href="../../../static.files/favicon-32x32-422f7d1d52889060.png"><link·rel="icon"·type="image/svg+xml"·href="../../../static.files/favicon-2c020d218678b618.svg"></head><body·class="rustdoc·struct"><!--[if·lte·IE·11]><div·class="warning">This·old·browser·is·unsupported·and·will·most·likely·display·funky·things.</div><![endif]--><nav·class="mobile-topbar"><button·class="sidebar-menu-toggle"·title="show·sidebar"></button><a·class="logo-container"·href="../../../alloc/index.html"><img·class="rust-logo"·src="../../../static.files/rust-logo-151179464ae7ed46.svg"·alt=""></a></nav><nav·class="sidebar"><div·class="sidebar-crate"><a·class="logo-container"·href="../../../alloc/index.html"><img·class="rust-logo"·src="../../../static.files/rust-logo-151179464ae7ed46.svg"·alt="logo"></a><h2><a·href="../../../alloc/index.html">alloc</a><span·class="version">1.78.0</span></h2></div><h2·class="location"><a·href="#">IntoIter</a></h2><div·class="sidebar-elems"><section><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">Debug</a></li><li><a·href="#impl-Default-for-IntoIter%3CK,+V,+A%3E">Default</a></li><li><a·href="#impl-DoubleEndedIterator-for-IntoIter%3CK,+V,+A%3E">DoubleEndedIterator</a></li><li><a·href="#impl-Drop-for-IntoIter%3CK,+V,+A%3E">Drop</a></li><li><a·href="#impl-ExactSizeIterator-for-IntoIter%3CK,+V,+A%3E">ExactSizeIterator</a></li><li><a·href="#impl-FusedIterator-for-IntoIter%3CK,+V,+A%3E">FusedIterator</a></li><li><a·href="#impl-Iterator-for-IntoIter%3CK,+V,+A%3E">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">Freeze</a></li><li><a·href="#impl-RefUnwindSafe-for-IntoIter%3CK,+V,+A%3E">RefUnwindSafe</a></li><li><a·href="#impl-Send-for-IntoIter%3CK,+V,+A%3E">Send</a></li><li><a·href="#impl-Sync-for-IntoIter%3CK,+V,+A%3E">Sync</a></li><li><a·href="#impl-Unpin-for-IntoIter%3CK,+V,+A%3E">Unpin</a></li><li><a·href="#impl-UnwindSafe-for-IntoIter%3CK,+V,+A%3E">UnwindSafe</a></li></ul><h3><a·href="#blanket-implementations">Blanket·Implementations</a></h3><ul·class="block·blanket-implementation"><li><a·href="#impl-Any-for-T">Any</a></li><li><a·href="#impl-Borrow%3CT%3E-for-T">Borrow&lt;T&gt;</a></li><li><a·href="#impl-BorrowMut%3CT%3E-for-T">BorrowMut&lt;T&gt;</a></li><li><a·href="#impl-From%3CT%3E-for-T">From&lt;T&gt;</a></li><li><a·href="#impl-Into%3CU%3E-for-T">Into&lt;U&gt;</a></li><li><a·href="#impl-IntoIterator-for-I">IntoIterator</a></li><li><a·href="#impl-TryFrom%3CU%3E-for-T">TryFrom&lt;U&gt;</a></li><li><a·href="#impl-TryInto%3CU%3E-for-T">TryInto&lt;U&gt;</a></li></ul></section><h2><a·href="index.html">In·alloc::collections::btree_map</a></h2></div></nav><div·class="sidebar-resizer"></div>
2 ····<main><div·class="width-limiter"><nav·class="sub"><form·class="search-form"><span></span><div·id="sidebar-button"·tabindex="-1"><a·href="../../../alloc/all.html"·title="show·sidebar"></a></div><input·class="search-input"·name="search"·aria-label="Run·search·in·the·documentation"·autocomplete="off"·spellcheck="false"·placeholder="Click·or·press·‘S’·to·search,·‘?’·for·more·options…"·type="search"><div·id="help-button"·tabindex="-1"><a·href="../../../help.html"·title="help">?</a></div><div·id="settings-menu"·tabindex="-1"><a·href="../../../settings.html"·title="settings"><img·width="22"·height="22"·alt="Change·settings"·src="../../../static.files/wheel-7b819b6101059cd0.svg"></a></div></form></nav><section·id="main-content"·class="content"><div·class="main-heading"><h1>Struct·<a·href="../../index.html">alloc</a>::<wbr><a·href="../index.html">collections</a>::<wbr><a·href="index.html">btree_map</a>::<wbr><a·class="struct"·href="#">IntoIter</a><button·id="copy-path"·title="Copy·item·path·to·clipboard"><img·src="../../../static.files/clipboard-7571035ce49a181d.svg"·width="19"·height="18"·alt="Copy·item·path"></button></h1><span·class="out-of-band"><span·class="since"·title="Stable·since·Rust·version·1.0.0">1.0.0</span>···<a·class="src"·href="../../../src/alloc/collections/btree/map.rs.html#426-435">source</a>···<button·id="toggle-all-docs"·title="collapse·all·docs">[<span>&#x2212;</span>]</button></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>.</p>2 ····<main><div·class="width-limiter"><nav·class="sub"><form·class="search-form"><span></span><div·id="sidebar-button"·tabindex="-1"><a·href="../../../alloc/all.html"·title="show·sidebar"></a></div><input·class="search-input"·name="search"·aria-label="Run·search·in·the·documentation"·autocomplete="off"·spellcheck="false"·placeholder="Click·or·press·‘S’·to·search,·‘?’·for·more·options…"·type="search"><div·id="help-button"·tabindex="-1"><a·href="../../../help.html"·title="help">?</a></div><div·id="settings-menu"·tabindex="-1"><a·href="../../../settings.html"·title="settings"><img·width="22"·height="22"·alt="Change·settings"·src="../../../static.files/wheel-7b819b6101059cd0.svg"></a></div></form></nav><section·id="main-content"·class="content"><div·class="main-heading"><h1>Struct·<a·href="../../index.html">alloc</a>::<wbr><a·href="../index.html">collections</a>::<wbr><a·href="index.html">btree_map</a>::<wbr><a·class="struct"·href="#">IntoIter</a><button·id="copy-path"·title="Copy·item·path·to·clipboard"><img·src="../../../static.files/clipboard-7571035ce49a181d.svg"·width="19"·height="18"·alt="Copy·item·path"></button></h1><span·class="out-of-band"><span·class="since"·title="Stable·since·Rust·version·1.0.0">1.0.0</span>···<a·class="src"·href="../../../src/alloc/collections/btree/map.rs.html#426-435">source</a>···<button·id="toggle-all-docs"·title="collapse·all·docs">[<span>&#x2212;</span>]</button></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.78.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>.</p>
3 <p>This·<code>struct</code>·is·created·by·the·<a·href="../../../core/iter/traits/collect/trait.IntoIterator.html#tymethod.into_iter"·title="method·core::iter::traits::collect::IntoIterator::into_iter"><code>into_iter</code></a>·method·on·<a·href="struct.BTreeMap.html"·title="struct·alloc::collections::btree_map::BTreeMap"><code>BTreeMap</code></a>3 <p>This·<code>struct</code>·is·created·by·the·<a·href="https://doc.rust-lang.org/1.78.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>
4 (provided·by·the·<a·href="../../../core/iter/traits/collect/trait.IntoIterator.html"·title="trait·core::iter::traits::collect::IntoIterator"><code>IntoIterator</code></a>·trait).·See·its·documentation·for·more.</p>4 (provided·by·the·<a·href="https://doc.rust-lang.org/1.78.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>
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-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">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-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.78.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:·512d48c0c98e8d35cb17222e9a0af7fd1bd2555e6ebe0c591606163056405c17·...·]/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
6 ····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>6 ····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.78.0/core/default/trait.Default.html"·title="trait·core::default::Default">Default</a>·+·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/clone/trait.Clone.html"·title="trait·core::clone::Clone">Clone</a>,</div></h3>[·...·truncated·by·diffoscope;·len:·364,·SHA:·60f2550f0dd7c0b9d70f938066c07ebddfe52b18f1dd5dc4032aa961c0c5f878·...·]/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>
  
7 <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 <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();
8 <span·class="macro">assert_eq!</span>(iter.len(),·<span·class="number">0</span>);</code></pre><a·class="test-arrow"·target="_blank"·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">Run</a></div>8 <span·class="macro">assert_eq!</span>(iter.len(),·<span·class="number">0</span>);</code></pre><a·class="test-arrow"·target="_blank"·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">Run</a></div>
9 </div></details></div></details><details·class="toggle·implementors-toggle"·open><summary><section·id="impl-DoubleEndedIterator-for-IntoIter%3CK,+V,+A%3E"·class="impl"><a·class="src·rightside"·href="../../../src/alloc/collections/btree/map.rs.html#1730-1735">source</a><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:·0afce61ade8f0025f0f3839236d4b324e1d9709048bc8de12ee8b79bede18c14·...·]/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 </div></details></div></details><details·class="toggle·implementors-toggle"·open><summary><section·id="impl-DoubleEndedIterator-for-IntoIter%3CK,+V,+A%3E"·class="impl"><a·class="src·rightside"·href="../../../src/alloc/collections/btree/map.rs.html#1730-1735">source</a><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.78.0/core/clone/trait.Clone.html"·title="trait·core::clone::Clone">Clone</a>&gt;·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/double_ended/trait.DoubleEndedIterator.html"·title="trait·core::iter::trai[·...·truncated·by·diffoscope;·len:·4508,·SHA:·fd989e3612e4476703abe399ccd15d10f359180186adb936af1bfafa2fd7cc7d·...·]/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.78.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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(B,·Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.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.78.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.7[·...·truncated·by·diffoscope;·len:·3,·SHA:·7b1bd53949b752d143d871408483b5382371b5bc48d195d0c040ec93cfa2748b·...·]/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·clas[·...·truncated·by·diffoscope;·len:·253,·SHA:·b3a5d6383debff0cac836c5889a757f11b019bc049778c518e60e4d37a3c4da1·...·]/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.78.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:·d66ed7e195a53e9945339ef1976aed455dcf80228d8e5b7b0c69a64c3983fea1·...·]/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.78.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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(B,·Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/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="s[·...·truncated·by·diffoscope;·len:·545,·SHA:·d11fd274e41827c1daee0c80a6ab5f978a613ab26297cb460535fef32cff8551·...·]/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.78.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:·c264047794019a6dcf05728ba6a6ee1f8f07c7209958b3366ba94546b527ecdc·...·]/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.78.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:[·...·truncated·by·diffoscope;·len:·7942,·SHA:·89ccc270aaa78caed93f97b66d1c72a92df1650c478353e00443bdcd2696e39f·...·]/core/primitive.usize.html">usize</a>&gt;(18 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·8734,·SHA:·870f60bba1974a0c55f259c494781e490998bde8ba424406e3abac6664e63183·...·]/core/primitive.usize.html">usize</a>&gt;(
19 ····&amp;mut·self19 ····&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.78.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.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title=[·...·truncated·by·diffoscope;·len:·381,·SHA:·88c48923c9b7ea5cc47c1087c60e09656e81d4671c58071ba2bef826335388bc·...·]/core/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:·746,·SHA:·99cc415a31b91c57f7eeb82ad0d2d1ba424489bee49de37c86a4ea21c663ccda·...·]/core/primitive.usize.html">usize</a><div·class="where">where21 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experiment[·...·truncated·by·diffoscope;·len:·866,·SHA:·945d2d86f0c4c5ca3e3ee3b181d18b2bbea57ee1a5a7efe16c0c915a5bf2c3ad·...·]/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:·597,·SHA:·be3babc2f9096ec8bacc872099ff5a03375deb1461cf1d651cfbfb072fb72581·...·]/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.78.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:·741,·SHA:·f3078cc3fddd62af2c1a8814c5854bb49f40b79e4fbc9b3addf5862a72370f82·...·]/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#metho[·...·truncated·by·diffoscope;·len:·2928,·SHA:·dd9dc6c66a208fe3371784c1d048fbccf7b880bff34f93a1694f746d814568db·...·]/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.78.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.78.0/cor[·...·truncated·by·diffoscope;·len:·3408,·SHA:·b62c6ed65b31a8b555c142d9d15f3ce30e5c76ad2630a0e5a9b13cfd478c6eee·...·]/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.78.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"><a·class="src·rightside"·href="../../../src/core/it[·...·truncated·by·diffoscope;·len:·602,·SHA:·cfe4c4d300dddc2abdc2f8194eb969c68b2240c28239969b5be2af6a564ed8cc·...·]/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.78.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"><a·class="src·rightside"·hr[·...·truncated·by·diffoscope;·len:·746,·SHA:·f1f70d650c102c8658e13890c7dbfc87418f07e7b522246fb579ec434ef64f7c·...·]/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.78.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:·1041,·SHA:·a281d174c9671021427f0b458ac94e87746ac44730475aa725652c6c15e2b972·...·]/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.78.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.78.0/core/iter/traits/it[·...·truncated·by·diffoscope;·len:·1233,·SHA:·f677df2d893dfe0dc1a9d31ebb0ba71a346d265781813e0d664d3f18369b6163·...·]/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.78.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:·b9001dd3131b1425179c94853e1b90fff0f7169b9570e86cd50c6b7fbf1ee8a5·...·]/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.78.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:·98627729f77dcf1c9d258f343354ba600b7134c6b3929080f231e8de7155b70b·...·]/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.78.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.78.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.78.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"><a·class="src·rightside"·href="../../../src/[·...·truncated·by·diffoscope;·len:·279,·SHA:·f2c34c2e64e77c66684f837812ebc4a94c81b2ad5862cc0131f80c3ce89e008a·...·]/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.78.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"><a·class="src·rights[·...·truncated·by·diffoscope;·len:·375,·SHA:·58419346f92e1709dadb70cc3cf356e3cd27972451bdc6b4fc4267e6f7e8bdae·...·]/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.78.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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::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:·d75758e0f8262eeea27445cec43f13d84f0c02ba4e03c0c54d041f9ab1965e0f·...·]/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.78.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:·98f6effefa44d759c249143d83623f0055d937382bfc398b7e1f5e92cd413657·...·]/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.78.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:·676,·SHA:·9ae42ed293737a3dd44c1ee9d98c6aabb1552fbb9d203cb852ee9fcc7834a6ca·...·]/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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·820,·SHA:·a664bbcbc0891663662e4eb7b4394d0fcd72e568136fc4d34097fea242cc32e7·...·]/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.78.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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·140,·SHA:·752f473b57e7444ebfddf5ea7fd40a332e83ec55524a6c31b5ee0f82a5dea819·...·]/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"><a·class="src·rightside"·href="../../../src/cor[·...·truncated·by·diffoscope;·len:·297,·SHA:·f01e44d4caf6c6ad80b37656b9300f7111340711dcd74d70867b5a652dbfb538·...·]/core/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.78.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"><a·class="src·rightside[·...·truncated·by·diffoscope;·len:·393,·SHA:·2e2aa7c9c9c087e7b346da376749064ab8c1894795a2f0a0f646cdc8c7bea997·...·]/core/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.78.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:·788,·SHA:·b788f412af946d2bd7646ba39a8c316ebfa88109f9626dbad9bf9964f975cd0c·...·]/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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·956,·SHA:·faba0521e870dbbd26d466fadba3522e7d29013a9b86376fffafffac11a57e0e·...·]/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.78.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"><a·class="src·rightside"·href="../../../src/co[·...·truncated·by·diffoscope;·len:·276,·SHA:·e337ee1b810d3ec0480569c4ed323ebf0a2315c8ae3c522a73fcca3aa8e6efb3·...·]/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.78.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"><a·class="src·rightsid[·...·truncated·by·diffoscope;·len:·372,·SHA:·03eea0861575eb80d3f7a87a3ba747adb1a33fe7e9ce72aa2172e7a287c63a94·...·]/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.78.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.78.0/core/iter/adapte[·...·truncated·by·diffoscope;·len:·175,·SHA:·16fe7225bf05b478e2828b347c3d23ded9a22f89d8887a2c65d9f7b3faf1b0e7·...·]/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"><a·class="src·rightside"·href="../../../src/c[·...·truncated·by·diffoscope;·len:·306,·SHA:·a9bc004bf639fa188165a336061c6c98ec7ff9d266a18f10db200dfa9a880b88·...·]/core/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.78.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"><a·class="src·rightsi[·...·truncated·by·diffoscope;·len:·402,·SHA:·7689a974f800fd069d1b4453ef62d6d6ad1b654462d624d36e3672051d502030·...·]/core/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.78.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:·946,·SHA:·877b8718d9df1464a912dd50eef16402225367db4e4b26484b5ee20d30644524·...·]/core/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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·1138,·SHA:·f6ae06b7de8e94df014341c5cf589a5e4a1298367b2ef7a968ec499c5170a70e·...·]/core/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.78.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:·552b3dd2132886d024e4d5bd2554611e25c1f068adaaf23ecf80da81d31997ef·...·]/core/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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·1058,·SHA:·b390dbdda8d7e93604b5ecd906a93efd03fe19bdaf41cf12893fd361bf974307·...·]/core/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.78.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:·875,·SHA:·5c5c44422f75cbb66ebcf54bea70536713b810843cc484b051aed088c6422d78·...·]/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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·1067,·SHA:·415d32e1211c35d3bb405de1d6e51c2102c14cadc3333894f063148dbe0b1f69·...·]/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:·543,·SHA:·f199bafab360be9b80e9f45c5ba799a52348b742ddb0fa9afdb1624729c36e58·...·]/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.78.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:·687,·SHA:·7f5256104c35c5948a2cb42b55f3048c9d2887e48a4a8226537a284f959c562a·...·]/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.78.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"><a·class="src·rightside"·href="../../../src/core/iter/t[·...·truncated·by·diffoscope;·len:·296,·SHA:·aea014801138aeee574964545b1e9ad297288a120113db6844b569d2b183e0a7·...·]/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.78.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"><a·class="src·rightside"·href="[·...·truncated·by·diffoscope;·len:·392,·SHA:·4e7da68f7be2622ef173653eca78d58e1f202b544a2e6abd14d8335c298c93a7·...·]/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.78.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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(<a·class="primitive"·href="https://doc.rust-lang.org/1.78.0/core/primitive.reference.html">&amp;mut·St</a>,·Self::<a·class="associatedty[·...·truncated·by·diffoscope;·len:·449,·SHA:·f12c268a8a8111b9e7126ad78bf5523a63733caa63d187c4fe792309ea41acdf·...·]/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:·474,·SHA:·c0ed850df640319d919b8c053c540caa158602207623bed65abbcd69ad9d2c9d·...·]/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.78.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.78.0/core/iter/trai[·...·truncated·by·diffoscope;·len:·594,·SHA:·02960742fa7892efaa08f289ce85865fc5efb6a4cd138c22e3566ca6fc727d78·...·]/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.78.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.78.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:·4d1f54658fd1c005b101a2e27b0da3c6ee0cbe2d891660c65470bfec01fa46f6·...·]/core/iter/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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·976,·SHA:·2a9182f6fe88e0b8a9b1ae1f46cace940cc0b8736033c354c0f0ccbf1c196e7a·...·]/core/iter/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.78.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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;[Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtyp[·...·truncated·by·diffoscope;·len:·135,·SHA:·0b06a6094d42ccbc8bce5b01c4383961fe7f1967f05e4c9f1ff33e71e425fb26·...·]/core/primitive.array.html">N</a>])·-&gt;·R,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iter_map_windows</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/87155">#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.78.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"><a·class="src·rightside"·href="../../../src/core[·...·truncated·by·diffoscope;·len:·262,·SHA:·6125a8b2b88486b3735bbd00905fe9ae55b6eb1491c8a493be9c8121dc3cb440·...·]/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.78.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"><a·class="src·rightside"[·...·truncated·by·diffoscope;·len:·358,·SHA:·d91b2ab18e0ce069e262cf523c6ef961f56eecad042ea1e9bcefe33cff28fc8f·...·]/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:·601,·SHA:·bdf3796aa87e911258d56122ffdaa3f8591a5c9db4ed6fd89c3dfd3660787f78·...·]/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.78.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.78.0/core/op[·...·truncated·by·diffoscope;·len:·745,·SHA:·424783f22102f4446d3ad4d362b1aafdb7531fa777213f97ee138aa878f67bd1·...·]/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.78.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:·694,·SHA:·db4bb2630979aa4504432e8d422265d943c9063bcf3d2e3be970003014226f1e·...·]/core/primitive.reference.html">&amp;mut·Self</a><div·class="where">where69 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·838,·SHA:·9b4fd8df7f41e9a76fd4cfca0a233b74b9bd27c3fe8228248abc3f940425a3e3·...·]/core/primitive.reference.html">&amp;mut·Self</a><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:·331,·SHA:·d13641714c275840abbb473011613a4e19924a453f5e1b83912681a9b7c5579b·...·]/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.78.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.78.0/core/it[·...·truncated·by·diffoscope;·len:·427,·SHA:·ecfaaac5d1d10c1bc4fcee9a050af0a268bee0b528c2d8ea4e9774440bd8a279·...·]/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.78.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.78.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:·d76c3fcf86c63211032a6b22dc5924ef552b1ad26b12e19f15d2f1d5b3d7e394·...·]/core/primitive.reference.html">&amp;mut·E</a><div·class="where">where72 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.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.78.0/core/iter/tr[·...·truncated·by·diffoscope;·len:·728,·SHA:·01937c2dc314c259495665570ae249c94b4a5b0719718f5f1188e6fc64ecf487·...·]/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.78.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.78.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:·759,·SHA:·3cf174fac64a83c8e22066c3d77741118f89b13411537fc82c1004faa5c9e2ae·...·]/core/primitive.tuple.html">(B,·B)</a><div·class="where">where74 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experiment[·...·truncated·by·diffoscope;·len:·879,·SHA:·e773b2222c92d001e295030cb47a780ab0c1132d7fc8e9e3a98de4f532e6c520·...·]/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.78.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.78.0/core/default/trait.Default.html"·title="trait·core::default::Default">Default</a>·+·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/collect/trait.Extend.html"·title="trait·core::iter::traits::collec[·...·truncated·by·diffoscope;·len:·95,·SHA:·8b3be1d0042cae0550f865faf5849221240bdf04eb1b2107605b72d48c3ad29c·...·]/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:·281bbd5137cae68dd8057d013e9c9f311461e746663120304e3f6adace77f784·...·]/core/primitive.usize.html">usize</a><div·class="where">where77 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·995,·SHA:·bec3765fdab56713186e2454cd84738b5b28e3280a2f3d5a25cefdbc3089b520·...·]/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.78.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>·+·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/double_ended/trait.DoubleEndedIterator.html"·title="trait·core::iter::trai[·...·truncated·by·diffoscope;·len:·132,·SHA:·e5b2cf5f56946ede1e190ed09879c5821e2de04cf8e5d145142eeb40c6340982·...·]/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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(<a·class="primitive"·href="https://doc.rust-lang.org/1.78.0/core/primitive.reference.html">&amp;T</a>)·-&gt;·<a·class="primitive"·href="[·...·truncated·by·diffoscope;·len:·32,·SHA:·63d052a8ced32bf927ffadd7e884c08caf4970e85dfdf6be0e568d49b174da96·...·]/core/primitive.bool.html">bool</a>,</div></h4></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:·dc6a465df534b0392c5280e79e5249847890045561099b2cfc44bfabc4801d8d·...·]/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.78.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:·0c224636c18baa273f69de21f90083317f2ea0b7367a3f0d0f1c0ace55a36f79·...·]/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.78.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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·135,·SHA:·51ff5f5c7ebd8440623ea71b125c5a5837e809e308fe1a13fbe19cddb941dbd9·...·]/core/primitive.bool.html">bool</a>,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iter_is_partitioned</code>&nbsp;<a·href="https://github.com/rust-lang/rust/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:·bd8fce4ee431c619c98780c4d520e8db93f1e034f12843ffaff5744b7ce2190b·...·]/core/iter/traits/iterator/trait.Iterator.html#method.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.78.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:·2c74873f4e5ba70004a1c7edd1cc3f9e2d91271295dd1591e2d26848df4c02ba·...·]/core/iter/traits/iterator/trait.Iterator.html#method.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.78.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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(B,·Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.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.78.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:·7b4fc32e7634ae85c682a97099be267837713d7e4831893b617ca652f57a89da·...·]/core/iter/traits/iterator/trait.Iterator.html#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.78.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:·52912e82c4b0a760d06f77eb4ee3a59ba70dd76cb532954900c73ae94c652674·...·]/core/iter/traits/iterator/trait.Iterator.html#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.78.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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.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.78.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.78.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"><a·class="src·rightside"·href="../../../src/cor[·...·truncated·by·diffoscope;·len:·139,·SHA:·dc7fb7a70636459a0d7de28cbcb454050f39c184bab178c95c524a6eb9ca51cf·...·]/core/iter/traits/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.78.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"><a·class="src·rightside[·...·truncated·by·diffoscope;·len:·211,·SHA:·924e062acd8127e8d6158162219ee5d57a941854e14063d21d7768edae549431·...·]/core/iter/traits/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.78.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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(B,·Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::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:·2c738ecc68200afa2467bef085de14dcb642dbaac77c4529948f5e259e66691d·...·]/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.78.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:·b60215068a6d9721be05f81098c51167d7138c4042f140cad42f77c4df43f597·...·]/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.78.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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·352,·SHA:·e7c3c296abe2c0a183967153e4ae7fd50bafa2ae7088e3e78b3b48fee253adc6·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::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:·c3f1d50e276def36966943119961a20b09cab3be33483fe4d48d7f322489534b·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_reduce"·class="fn">try_reduce</a>&lt;F,·R&gt;(99 operation.·<a·href="https://doc.rust-lang.org/1.78.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:·7a18fdd041b1a001b4a8feb289ee127fd9240232239269eb35dc3b8f74783ec9·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_reduce"·class="fn">try_reduce</a>&lt;F,·R&gt;(
100 ····&amp;mut·self,100 ····&amp;mut·self,
101 ····f:·F101 ····f:·F
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.78.0/core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&gt;::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/ops/try_trait/trait.Try.html#associatedtype.Residual"·title="type[·...·truncated·by·diffoscope;·len:·754,·SHA:·6fb4dfdb6b4da68921c1e7f8b75d99cf293d58318d684a840254ce9576957bea·...·]/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.78.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:·68,·SHA:·e7e11f257edcac749a5883ad9a3aa42e6e965be419f967b36caa7afd3b36d7c9·...·]/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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·140,·SHA:·c27972e6fa3464c9476eaa185e8657edb6bb294f148403f3d079285294a9f909·...·]/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·=·Self::<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.78.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.78.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</[·...·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·the106 ····&lt;R·as·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&gt;::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/ops/try_trait/trait.Try.html#associatedtype.Residual"·title="type[·...·truncated·by·diffoscope;·len:·412,·SHA:·22b8cbb007e5cce82b9d13a65bfa56aa8d83c32541fac25f4d9b3857b0540908·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;&gt;,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iterator_try_reduce</code>&nbsp;<a·href="https://github.com/rust-lang/rust/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"><a·class="src·rightside"·href="../../../src/core/i[·...·truncated·by·diffoscope;·len:·284,·SHA:·fbacd9a305d3a60d42d9adcc5ea9e5f579f4ff5d970999f333eaf0c7f9baf66c·...·]/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.78.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"><a·class="src·rightside"·h[·...·truncated·by·diffoscope;·len:·380,·SHA:·29c4004d4d8b0c8c9dfe9023f8b2c5ef801d9dc4688893035d182c1ae774c453·...·]/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.78.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:·754,·SHA:·e3afac523bd4c054d94fbbb6c5c856ac78a6359550526fa0726732b36529c33d·...·]/core/primitive.bool.html">bool</a><div·class="where">where109 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·922,·SHA:·f4fd532c280e18f28bd6dda6c2a129e2e92114b67f27235bb5fd39f725be9c43·...·]/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.78.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:·884,·SHA:·32570d141a71827f9ac19bf566a51ca4814ccafaf6f8a961920ce107fe9657d7·...·]/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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·1076,·SHA:·2dd9de8adaee4a5ee96501d9a58bfac2fea00ba8d78b834bfca29949b3afe18b·...·]/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.78.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:[·...·truncated·by·diffoscope;·len:·883,·SHA:·f441e2966ff8db4214e57fcd74f81262d6e371aa51cea97ebde5921e81b4da79·...·]/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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·1051,·SHA:·ecc0b8fccd861464760f9ae047ff6ab98c91a1db010cb5fa59a8c2ab883db7c4·...·]/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.78.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::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·returns115 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·130,·SHA:·130a13019dc175d02304b4f550157e2f13ac15c2f25a979c74161d10b146ab89·...·]/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/cor[·...·truncated·by·diffoscope;·len:·143,·SHA:·ec4fb002625b166504031522e52a66812b279e6735a67cb718813205909c3fb7·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_find"·class="fn">try_find</a>&lt;F,·R&gt;(116 the·first·non-none·result.·<a·href="https://doc.rust-lang.org/1.78.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:·8ced1b10e78750774c5c8ed995ed83dcd13983aa75d329acf8069da106ab9f4a·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_find"·class="fn">try_find</a>&lt;F,·R&gt;(
117 ····&amp;mut·self,117 ····&amp;mut·self,
118 ····f:·F118 ····f:·F
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</[·...·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">where119 )·-&gt;·&lt;&lt;R·as·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&gt;::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/ops/try_trait/trait.Try.html#associatedtype.Residual"·title="type[·...·truncated·by·diffoscope;·len:·626,·SHA:·95f9831257b68862cbcbf54f0ad2ff4e597a4c9f763112d1da8a0897dadcf872·...·]/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.78.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::Iterator::Item">Item</a>)·-&gt;·R,121 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·R,
122 ····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;,122 ····R:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.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.78.0/core/primitive.bool.html">bool</a>&gt;,
123 ····&lt;R·as·<a·class="trait"·href="../../../core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</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·returns123 ····&lt;R·as·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&gt;::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/ops/try_trait/trait.Try.html#associatedtype.Residual"·title="type[·...·truncated·by·diffoscope;·len:·412,·SHA:·22b8cbb007e5cce82b9d13a65bfa56aa8d83c32541fac25f4d9b3857b0540908·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;&gt;,</div></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
124 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"><a·class="src·rightside"·href="../../../src/cor[·...·truncated·by·diffoscope;·len:·419,·SHA:·4337d283573b9683aaa605a7d2417318ef2a03902876e7da2ec26f2a5febf794·...·]/core/primitive.usize.html">usize</a>&gt;<div·class="where">where124 the·first·true·result·or·the·first·error.·<a·href="https://doc.rust-lang.org/1.78.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"><a·class="src·rightside[·...·truncated·by·diffoscope;·len:·539,·SHA:·04e329705f11ed9ec269a68b0b75ac4ab26c78e4316a571ee9336c28bbca6359·...·]/core/primitive.usize.html">usize</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.78.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
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::Iter[·...·truncated·by·diffoscope;·len:·901,·SHA:·a6eb7314148a1006184790a26873440fac678952c99874de84cb66644e250c0b·...·]/core/primitive.usize.html">usize</a>&gt;<div·class="where">where126 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·1093,·SHA:·623dbacabfe45799103c799fb60a4d212ceb8759ff853a11209a07793257c9cd·...·]/core/primitive.usize.html">usize</a>&gt;<div·class="where">where
Max diff block lines reached; 82833/313837 bytes (26.39%) of diff not shown.
310 KB
./usr/share/doc/rust-web-doc/html/alloc/collections/btree_map/struct.IntoKeys.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·owning·iterator·over·the·keys·of·a·`BTreeMap`."><title>IntoKeys·in·alloc::collections::btree_map·-·Rust</title><script>·if·(window.location.protocol·!==·"file:")·document.write(`<link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../../static.files/SourceSerif4-Regular-46f98efaafac5295.ttf.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../../static.files/FiraSans-Regular-018c141bf0843ffd.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../../static.files/FiraSans-Medium-8f9a781e4970d388.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../../static.files/SourceCodePro-Regular-562dcc5011b6de7d.ttf.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../../static.files/SourceCodePro-Semibold-d899c5a5c4aeb14a.ttf.woff2">`)</script><link·rel="stylesheet"·href="../../../static.files/normalize-76eba96aa4d2e634.css"><link·rel="stylesheet"·href="../../../static.files/rustdoc-35f9e32502181f1e.css"><meta·name="rustdoc-vars"·data-root-path="../../../"·data-static-root-path="../../../static.files/"·data-current-crate="alloc"·data-themes=""·data-resource-suffix="1.78.0"·data-rustdoc-version="1.78.0"·data-channel="1.78.0"·data-search-js="search-42d8da7a6b9792c2.js"·data-settings-js="settings-4313503d2e1961c2.js"·><script·src="../../../static.files/storage-4c98445ec4002617.js"></script><script·defer·src="sidebar-items1.78.0.js"></script><script·defer·src="../../../static.files/main-12cf3b4f4f9dc36d.js"></script><noscript><link·rel="stylesheet"·href="../../../static.files/noscript-04d5337699b92874.css"></noscript><link·rel="alternate·icon"·type="image/png"·href="../../../static.files/favicon-16x16-8b506e7a72182f1c.png"><link·rel="alternate·icon"·type="image/png"·href="../../../static.files/favicon-32x32-422f7d1d52889060.png"><link·rel="icon"·type="image/svg+xml"·href="../../../static.files/favicon-2c020d218678b618.svg"></head><body·class="rustdoc·struct"><!--[if·lte·IE·11]><div·class="warning">This·old·browser·is·unsupported·and·will·most·likely·display·funky·things.</div><![endif]--><nav·class="mobile-topbar"><button·class="sidebar-menu-toggle"·title="show·sidebar"></button><a·class="logo-container"·href="../../../alloc/index.html"><img·class="rust-logo"·src="../../../static.files/rust-logo-151179464ae7ed46.svg"·alt=""></a></nav><nav·class="sidebar"><div·class="sidebar-crate"><a·class="logo-container"·href="../../../alloc/index.html"><img·class="rust-logo"·src="../../../static.files/rust-logo-151179464ae7ed46.svg"·alt="logo"></a><h2><a·href="../../../alloc/index.html">alloc</a><span·class="version">1.78.0</span></h2></div><h2·class="location"><a·href="#">IntoKeys</a></h2><div·class="sidebar-elems"><section><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">Debug</a></li><li><a·href="#impl-Default-for-IntoKeys%3CK,+V,+A%3E">Default</a></li><li><a·href="#impl-DoubleEndedIterator-for-IntoKeys%3CK,+V,+A%3E">DoubleEndedIterator</a></li><li><a·href="#impl-ExactSizeIterator-for-IntoKeys%3CK,+V,+A%3E">ExactSizeIterator</a></li><li><a·href="#impl-FusedIterator-for-IntoKeys%3CK,+V,+A%3E">FusedIterator</a></li><li><a·href="#impl-Iterator-for-IntoKeys%3CK,+V,+A%3E">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">Freeze</a></li><li><a·href="#impl-RefUnwindSafe-for-IntoKeys%3CK,+V,+A%3E">RefUnwindSafe</a></li><li><a·href="#impl-Send-for-IntoKeys%3CK,+V,+A%3E">Send</a></li><li><a·href="#impl-Sync-for-IntoKeys%3CK,+V,+A%3E">Sync</a></li><li><a·href="#impl-Unpin-for-IntoKeys%3CK,+V,+A%3E">Unpin</a></li><li><a·href="#impl-UnwindSafe-for-IntoKeys%3CK,+V,+A%3E">UnwindSafe</a></li></ul><h3><a·href="#blanket-implementations">Blanket·Implementations</a></h3><ul·class="block·blanket-implementation"><li><a·href="#impl-Any-for-T">Any</a></li><li><a·href="#impl-Borrow%3CT%3E-for-T">Borrow&lt;T&gt;</a></li><li><a·href="#impl-BorrowMut%3CT%3E-for-T">BorrowMut&lt;T&gt;</a></li><li><a·href="#impl-From%3CT%3E-for-T">From&lt;T&gt;</a></li><li><a·href="#impl-Into%3CU%3E-for-T">Into&lt;U&gt;</a></li><li><a·href="#impl-IntoIterator-for-I">IntoIterator</a></li><li><a·href="#impl-TryFrom%3CU%3E-for-T">TryFrom&lt;U&gt;</a></li><li><a·href="#impl-TryInto%3CU%3E-for-T">TryInto&lt;U&gt;</a></li></ul></section><h2><a·href="index.html">In·alloc::collections::btree_map</a></h2></div></nav><div·class="sidebar-resizer"></div>1 <!DOCTYPE·html><html·lang="en"><head><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.write(`<link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../../static.files/SourceSerif4-Regular-46f98efaafac5295.ttf.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../../static.files/FiraSans-Regular-018c141bf0843ffd.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../../static.files/FiraSans-Medium-8f9a781e4970d388.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../../static.files/SourceCodePro-Regular-562dcc5011b6de7d.ttf.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../../static.files/SourceCodePro-Semibold-d899c5a5c4aeb14a.ttf.woff2">`)</script><link·rel="stylesheet"·href="../../../static.files/normalize-76eba96aa4d2e634.css"><link·rel="stylesheet"·href="../../../static.files/rustdoc-35f9e32502181f1e.css"><meta·name="rustdoc-vars"·data-root-path="../../../"·data-static-root-path="../../../static.files/"·data-current-crate="alloc"·data-themes=""·data-resource-suffix="1.78.0"·data-rustdoc-version="1.78.0"·data-channel="1.78.0"·data-search-js="search-42d8da7a6b9792c2.js"·data-settings-js="settings-4313503d2e1961c2.js"·><script·src="../../../static.files/storage-4c98445ec4002617.js"></script><script·defer·src="sidebar-items1.78.0.js"></script><script·defer·src="../../../static.files/main-12cf3b4f4f9dc36d.js"></script><noscript><link·rel="stylesheet"·href="../../../static.files/noscript-04d5337699b92874.css"></noscript><link·rel="alternate·icon"·type="image/png"·href="../../../static.files/favicon-16x16-8b506e7a72182f1c.png"><link·rel="alternate·icon"·type="image/png"·href="../../../static.files/favicon-32x32-422f7d1d52889060.png"><link·rel="icon"·type="image/svg+xml"·href="../../../static.files/favicon-2c020d218678b618.svg"></head><body·class="rustdoc·struct"><!--[if·lte·IE·11]><div·class="warning">This·old·browser·is·unsupported·and·will·most·likely·display·funky·things.</div><![endif]--><nav·class="mobile-topbar"><button·class="sidebar-menu-toggle"·title="show·sidebar"></button><a·class="logo-container"·href="../../../alloc/index.html"><img·class="rust-logo"·src="../../../static.files/rust-logo-151179464ae7ed46.svg"·alt=""></a></nav><nav·class="sidebar"><div·class="sidebar-crate"><a·class="logo-container"·href="../../../alloc/index.html"><img·class="rust-logo"·src="../../../static.files/rust-logo-151179464ae7ed46.svg"·alt="logo"></a><h2><a·href="../../../alloc/index.html">alloc</a><span·class="version">1.78.0</span></h2></div><h2·class="location"><a·href="#">IntoKeys</a></h2><div·class="sidebar-elems"><section><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">Debug</a></li><li><a·href="#impl-Default-for-IntoKeys%3CK,+V,+A%3E">Default</a></li><li><a·href="#impl-DoubleEndedIterator-for-IntoKeys%3CK,+V,+A%3E">DoubleEndedIterator</a></li><li><a·href="#impl-ExactSizeIterator-for-IntoKeys%3CK,+V,+A%3E">ExactSizeIterator</a></li><li><a·href="#impl-FusedIterator-for-IntoKeys%3CK,+V,+A%3E">FusedIterator</a></li><li><a·href="#impl-Iterator-for-IntoKeys%3CK,+V,+A%3E">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">Freeze</a></li><li><a·href="#impl-RefUnwindSafe-for-IntoKeys%3CK,+V,+A%3E">RefUnwindSafe</a></li><li><a·href="#impl-Send-for-IntoKeys%3CK,+V,+A%3E">Send</a></li><li><a·href="#impl-Sync-for-IntoKeys%3CK,+V,+A%3E">Sync</a></li><li><a·href="#impl-Unpin-for-IntoKeys%3CK,+V,+A%3E">Unpin</a></li><li><a·href="#impl-UnwindSafe-for-IntoKeys%3CK,+V,+A%3E">UnwindSafe</a></li></ul><h3><a·href="#blanket-implementations">Blanket·Implementations</a></h3><ul·class="block·blanket-implementation"><li><a·href="#impl-Any-for-T">Any</a></li><li><a·href="#impl-Borrow%3CT%3E-for-T">Borrow&lt;T&gt;</a></li><li><a·href="#impl-BorrowMut%3CT%3E-for-T">BorrowMut&lt;T&gt;</a></li><li><a·href="#impl-From%3CT%3E-for-T">From&lt;T&gt;</a></li><li><a·href="#impl-Into%3CU%3E-for-T">Into&lt;U&gt;</a></li><li><a·href="#impl-IntoIterator-for-I">IntoIterator</a></li><li><a·href="#impl-TryFrom%3CU%3E-for-T">TryFrom&lt;U&gt;</a></li><li><a·href="#impl-TryInto%3CU%3E-for-T">TryInto&lt;U&gt;</a></li></ul></section><h2><a·href="index.html">In·alloc::collections::btree_map</a></h2></div></nav><div·class="sidebar-resizer"></div>
2 ····<main><div·class="width-limiter"><nav·class="sub"><form·class="search-form"><span></span><div·id="sidebar-button"·tabindex="-1"><a·href="../../../alloc/all.html"·title="show·sidebar"></a></div><input·class="search-input"·name="search"·aria-label="Run·search·in·the·documentation"·autocomplete="off"·spellcheck="false"·placeholder="Click·or·press·‘S’·to·search,·‘?’·for·more·options…"·type="search"><div·id="help-button"·tabindex="-1"><a·href="../../../help.html"·title="help">?</a></div><div·id="settings-menu"·tabindex="-1"><a·href="../../../settings.html"·title="settings"><img·width="22"·height="22"·alt="Change·settings"·src="../../../static.files/wheel-7b819b6101059cd0.svg"></a></div></form></nav><section·id="main-content"·class="content"><div·class="main-heading"><h1>Struct·<a·href="../../index.html">alloc</a>::<wbr><a·href="../index.html">collections</a>::<wbr><a·href="index.html">btree_map</a>::<wbr><a·class="struct"·href="#">IntoKeys</a><button·id="copy-path"·title="Copy·item·path·to·clipboard"><img·src="../../../static.files/clipboard-7571035ce49a181d.svg"·width="19"·height="18"·alt="Copy·item·path"></button></h1><span·class="out-of-band"><span·class="since"·title="Stable·since·Rust·version·1.54.0">1.54.0</span>···<a·class="src"·href="../../../src/alloc/collections/btree/map.rs.html#534-536">source</a>···<button·id="toggle-all-docs"·title="collapse·all·docs">[<span>&#x2212;</span>]</button></span></div><pre·class="rust·item-decl"><code>pub·struct·IntoKeys&lt;K,·V,·A:·<a·class="trait"·href="../../alloc/trait.Allocator.html"·title="trait·alloc::alloc::Allocator">Allocator</a>·+·<a·class="trait"·href="../../../core/clone/trait.Clone.html"·title="trait·core::clone::Clone">Clone</a>·=·<a·class="struct"·href="../../alloc/struct.Global.html"·title="struct·alloc::alloc::Global">Global</a>&gt;·{·<span·class="comment">/*·private·fields·*/</span>·}</code></pre><details·class="toggle·top-doc"·open><summary·class="hideme"><span>Expand·description</span></summary><div·class="docblock"><p>An·owning·iterator·over·the·keys·of·a·<code>BTreeMap</code>.</p>2 ····<main><div·class="width-limiter"><nav·class="sub"><form·class="search-form"><span></span><div·id="sidebar-button"·tabindex="-1"><a·href="../../../alloc/all.html"·title="show·sidebar"></a></div><input·class="search-input"·name="search"·aria-label="Run·search·in·the·documentation"·autocomplete="off"·spellcheck="false"·placeholder="Click·or·press·‘S’·to·search,·‘?’·for·more·options…"·type="search"><div·id="help-button"·tabindex="-1"><a·href="../../../help.html"·title="help">?</a></div><div·id="settings-menu"·tabindex="-1"><a·href="../../../settings.html"·title="settings"><img·width="22"·height="22"·alt="Change·settings"·src="../../../static.files/wheel-7b819b6101059cd0.svg"></a></div></form></nav><section·id="main-content"·class="content"><div·class="main-heading"><h1>Struct·<a·href="../../index.html">alloc</a>::<wbr><a·href="../index.html">collections</a>::<wbr><a·href="index.html">btree_map</a>::<wbr><a·class="struct"·href="#">IntoKeys</a><button·id="copy-path"·title="Copy·item·path·to·clipboard"><img·src="../../../static.files/clipboard-7571035ce49a181d.svg"·width="19"·height="18"·alt="Copy·item·path"></button></h1><span·class="out-of-band"><span·class="since"·title="Stable·since·Rust·version·1.54.0">1.54.0</span>···<a·class="src"·href="../../../src/alloc/collections/btree/map.rs.html#534-536">source</a>···<button·id="toggle-all-docs"·title="collapse·all·docs">[<span>&#x2212;</span>]</button></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.78.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>
3 <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 <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>.
4 See·its·documentation·for·more.</p>4 See·its·documentation·for·more.</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-IntoKeys%3CK,+V,+A%3E"·class="impl"><a·class="src·rightside"·href="../../../src/alloc/collections/btree/map.rs.html#539-543">source</a><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:·65b458e5d9d20bdc2f7f9c5ae281b808937efe047661c7c6058a91c5f6499542·...·]/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">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-IntoKeys%3CK,+V,+A%3E"·class="impl"><a·class="src·rightside"·href="../../../src/alloc/collections/btree/map.rs.html#539-543">source</a><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.78.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:·5f58df57844595d78947b4f8572c2b85ba32e2893d8a4c02cacb03f0597b9a41·...·]/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
6 ····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:·80f8aae60a4421c4bebef814f210846ec9e31888d1363832d1a5ec9d4e9e3bb3·...·]/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 ····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.78.0/core/default/trait.Default.html"·title="trait·core::default::Default">Default</a>·+·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/clone/trait.Clone.html"·title="trait·core::clone::Clone">Clone</a>,</div></h3>[·...·truncated·by·diffoscope;·len:·366,·SHA:·374c0efd89f0b8417ec7420a37af90ca0888dd378182a25c6507e6bc28f60871·...·]/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>
  
7 <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 <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();
8 <span·class="macro">assert_eq!</span>(iter.len(),·<span·class="number">0</span>);</code></pre><a·class="test-arrow"·target="_blank"·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">Run</a></div>8 <span·class="macro">assert_eq!</span>(iter.len(),·<span·class="number">0</span>);</code></pre><a·class="test-arrow"·target="_blank"·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">Run</a></div>
9 </div></details></div></details><details·class="toggle·implementors-toggle"·open><summary><section·id="impl-DoubleEndedIterator-for-IntoKeys%3CK,+V,+A%3E"·class="impl"><a·class="src·rightside"·href="../../../src/alloc/collections/btree/map.rs.html#2084-2088">source</a><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:·2177db1a70631243b7ef70f87ce8a6fcacf094e633ac4c28d594d1a0fd8d3eb8·...·]/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 </div></details></div></details><details·class="toggle·implementors-toggle"·open><summary><section·id="impl-DoubleEndedIterator-for-IntoKeys%3CK,+V,+A%3E"·class="impl"><a·class="src·rightside"·href="../../../src/alloc/collections/btree/map.rs.html#2084-2088">source</a><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.78.0/core/clone/trait.Clone.html"·title="trait·core::clone::Clone">Clone</a>&gt;·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/double_ended/trait.DoubleEndedIterator.html"·title="trait·core::iter::trai[·...·truncated·by·diffoscope;·len:·4412,·SHA:·2db03c7b2a05e26f20d0273270e815fed6760561144b6aa7ed299ee2c3f49f8c·...·]/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.78.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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(B,·Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.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.78.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.7[·...·truncated·by·diffoscope;·len:·3,·SHA:·7b1bd53949b752d143d871408483b5382371b5bc48d195d0c040ec93cfa2748b·...·]/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·clas[·...·truncated·by·diffoscope;·len:·253,·SHA:·b3a5d6383debff0cac836c5889a757f11b019bc049778c518e60e4d37a3c4da1·...·]/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.78.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:·d66ed7e195a53e9945339ef1976aed455dcf80228d8e5b7b0c69a64c3983fea1·...·]/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.78.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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(B,·Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/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="s[·...·truncated·by·diffoscope;·len:·545,·SHA:·d11fd274e41827c1daee0c80a6ab5f978a613ab26297cb460535fef32cff8551·...·]/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.78.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:·c264047794019a6dcf05728ba6a6ee1f8f07c7209958b3366ba94546b527ecdc·...·]/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.78.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:[·...·truncated·by·diffoscope;·len:·6971,·SHA:·f51216199f778677d9b16c95c0372e1d2271651f06dc263a215cac27ff8cbd7e·...·]/core/option/enum.Option.html"·title="enum·core::option::Option">Option</a>&lt;K&gt;<div·class="where">where18 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·7667,·SHA:·798dd8ea1ca8777cf54c6448d9255262ff08fba92aceabfa29b1eaef26c15fcb·...·]/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·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:·8cbcfc750dae68c8f9a6970535794e51c4f8da3afeb3bbda005410f4d88215af·...·]/core/option/enum.Option.html"·title="enum·core::option::Option">Option</a>&lt;K&gt;<div·class="where">where19 ····K:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.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.78.0/core/iter/traits/itera[·...·truncated·by·diffoscope;·len:·523,·SHA:·e30e487cd2e73477b19f14af6ca3937406dd38977602e363afb3ec0e6118b220·...·]/core/option/enum.Option.html"·title="enum·core::option::Option">Option</a>&lt;K&gt;<div·class="where">where
20 ····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:·d663caa719063ad3836b8814839a4ec0ef7fe807144a68c30ae286069303ed4b·...·]/core/primitive.usize.html">usize</a>&gt;(20 ····K:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.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.78.0/core/iter/traits/itera[·...·truncated·by·diffoscope;·len:·576,·SHA:·11459af5737205c119895bf4d9ed050b8cfd3e8505a577d1dfa9fa8f952d3059·...·]/core/primitive.usize.html">usize</a>&gt;(
21 ····&amp;mut·self21 ····&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::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">where22 )·-&gt;·<a·class="enum"·href="https://doc.rust-lang.org/1.78.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.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title=[·...·truncated·by·diffoscope;·len:·381,·SHA:·88c48923c9b7ea5cc47c1087c60e09656e81d4671c58071ba2bef826335388bc·...·]/core/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[·...·truncated·by·diffoscope;·len:·842,·SHA:·f7c1ca2ff3e425a8295c41d4d2fe540d4a3cb1e7032a9d04d8aed936964c71b6·...·]/core/primitive.usize.html">usize</a><div·class="where">where23 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></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:·89791450da70cbd536c3cf8fbf2dd9891668362f9a252d3ee098222d19960bae·...·]/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/t[·...·truncated·by·diffoscope;·len:·3049,·SHA:·00fcd590d49f9c95cf7e39437688efce9b3546bce88f836f82a8084a5cad4047·...·]/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.78.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:·5acc2bcc91ab2687c8137eaa20bd4287e0b901b846fa877b4a1d59df04bc4956·...·]/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.78.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="[·...·truncated·by·diffoscope;·len:·698,·SHA:·4ac7445a1207207aeda1789f31c5036d8905fa206c83a58ca48662c081a68134·...·]/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.78.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:·e83c903581753673e083ce8dd809879a2fc81ab3050eb6db267d7fa26b15e035·...·]/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.78.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"·[·...·truncated·by·diffoscope;·len:·1137,·SHA:·10378641f30fbaa3b3d8ba8984f91955195f5a0ddb70a41cc9ff99666b50a36f·...·]/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.78.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.78.0/core/iter/traits/it[·...·truncated·by·diffoscope;·len:·1329,·SHA:·d9299c8edc606ed82f24d61ce441bec451141d684c2a9a75074f5b19c57f196c·...·]/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.78.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="../..[·...·truncated·by·diffoscope;·len:·574,·SHA:·b9001dd3131b1425179c94853e1b90fff0f7169b9570e86cd50c6b7fbf1ee8a5·...·]/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.78.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:·98627729f77dcf1c9d258f343354ba600b7134c6b3929080f231e8de7155b70b·...·]/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.78.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.78.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.78.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"·[·...·truncated·by·diffoscope;·len:·375,·SHA:·fa2a17b1aaf7dbc4e89f728d099c0a475adcd5ff79e4791795d7c4df5fc2ccec·...·]/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.78.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:·7301b6beba7b6885849be90a625df68ef739a5374af456c51fe2e81d91a25363·...·]/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.78.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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::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="S[·...·truncated·by·diffoscope;·len:·234,·SHA:·d75758e0f8262eeea27445cec43f13d84f0c02ba4e03c0c54d041f9ab1965e0f·...·]/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.78.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:·98f6effefa44d759c249143d83623f0055d937382bfc398b7e1f5e92cd413657·...·]/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.78.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:·772,·SHA:·9009d5c023150c1a97b2d18e30d176e7ff2e48673ad0e4665367958e752bf827·...·]/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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·916,·SHA:·30d0b2a76513c5a880e9aee43e92b18805845cfcfe5783f62dc090167a439e63·...·]/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.78.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:·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·element40 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·140,·SHA:·752f473b57e7444ebfddf5ea7fd40a332e83ec55524a6c31b5ee0f82a5dea819·...·]/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"·tit[·...·truncated·by·diffoscope;·len:·393,·SHA:·7c1da0b93b40e2b4f823a0d24b5a27f092ffdb68175a9c14fe21a97d84bb2244·...·]/core/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.78.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:·76aa2ad154f88085ee3f8a22721a7e6812680bac785d19059532407f50da1801·...·]/core/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.78.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::Iter[·...·truncated·by·diffoscope;·len:·884,·SHA:·96005685f2d5bf532d7af03cf747a50bdbe5efffccc579afe197789e4cd44a54·...·]/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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·1052,·SHA:·110b47c7083083d565fcfc89337fddc8e5c87e81b2f720f3f7b0ded55e8500fb·...·]/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.78.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"·ti[·...·truncated·by·diffoscope;·len:·372,·SHA:·02bccd69f3cf4a08b24b66a0c9afb8ac49ebd0e9a7d5a183641b471189a35df3·...·]/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.78.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:·8464264e074dde5d84f0414ab3b5b2d8da83f3c9e3ca04c45458241580a8c80d·...·]/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"·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>·methods46 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.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.78.0/core/iter/adapte[·...·truncated·by·diffoscope;·len:·175,·SHA:·16fe7225bf05b478e2828b347c3d23ded9a22f89d8887a2c65d9f7b3faf1b0e7·...·]/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"·t[·...·truncated·by·diffoscope;·len:·402,·SHA:·60d233d0587f535c8bae5118522baa81ef2524d4168f9e142529a37902d8e8c4·...·]/core/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.78.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:·00ccbb673c11ed48d8c6aa2a3f8984fb298202e7bccfa42f1ac21290fcc0fb06·...·]/core/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.78.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:·1042,·SHA:·0900235f7b60bdd90fbf9718324068ecf230199603f19da2c38cad64ed6915ff·...·]/core/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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·1234,·SHA:·3b805567411cdcebed740f9e8d400dbe7fb487504f40e284544a140155090fdf·...·]/core/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.78.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:[·...·truncated·by·diffoscope;·len:·890,·SHA:·552b3dd2132886d024e4d5bd2554611e25c1f068adaaf23ecf80da81d31997ef·...·]/core/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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·1058,·SHA:·b390dbdda8d7e93604b5ecd906a93efd03fe19bdaf41cf12893fd361bf974307·...·]/core/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.78.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::Iter[·...·truncated·by·diffoscope;·len:·971,·SHA:·491a83328e39b23cf5191ed5cb6bf83f1a62c9405ed5c39c58117b227b39b16c·...·]/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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·1163,·SHA:·5772149166d344bf8fa5ebbd9db8693a8f2e5f031c50338e8f1523ef72f814d6·...·]/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.Iter[·...·truncated·by·diffoscope;·len:·639,·SHA:·e62b3f87b06b061e799e72ab8f04c531f1c6f241266260eaab33ea2b793dd8d2·...·]/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.78.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:·6216516fe581c401abda3c95818192e8f030e2008c9bbdbaafebba16f33ea9bd·...·]/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.78.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="Stab[·...·truncated·by·diffoscope;·len:·392,·SHA:·7d73eca41cdb0c170bd03419f3563f3fe9e70e11494db546e781d302d3cd5636·...·]/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.78.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:·485843399c56e24bdf020ff0610d0ce1f62fbac5530d9880a1a7417105e3d70f·...·]/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.78.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/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,·but59 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(<a·class="primitive"·href="https://doc.rust-lang.org/1.78.0/core/primitive.reference.html">&amp;mut·St</a>,·Self::<a·class="associatedty[·...·truncated·by·diffoscope;·len:·449,·SHA:·f12c268a8a8111b9e7126ad78bf5523a63733caa63d187c4fe792309ea41acdf·...·]/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">Rea[·...·truncated·by·diffoscope;·len:·570,·SHA:·02034aae893b799fa017b2d71546332d96a823cd4ba05c14089559819f3dd720·...·]/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.78.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.78.0/core/iter/trai[·...·truncated·by·diffoscope;·len:·690,·SHA:·371190e5c1bf9b7dde6e84447965a69946212b977b9eb6d89048fbe34c5dda1c·...·]/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.78.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.78.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::Iter[·...·truncated·by·diffoscope;·len:·808,·SHA:·4d1f54658fd1c005b101a2e27b0da3c6ee0cbe2d891660c65470bfec01fa46f6·...·]/core/iter/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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·976,·SHA:·2a9182f6fe88e0b8a9b1ae1f46cace940cc0b8736033c354c0f0ccbf1c196e7a·...·]/core/iter/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.78.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:·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>·over65 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;[Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtyp[·...·truncated·by·diffoscope;·len:·135,·SHA:·0b06a6094d42ccbc8bce5b01c4383961fe7f1967f05e4c9f1ff33e71e425fb26·...·]/core/primitive.array.html">N</a>])·-&gt;·R,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iter_map_windows</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/87155">#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.78.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"·titl[·...·truncated·by·diffoscope;·len:·358,·SHA:·d83146d48347da8e04ce6fcac96b0b1500203504f596d32c16a5a1493dd375e1·...·]/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.78.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:·0d33056cee8a4f9b70b573c0adecc2f3599a2f8d9fa9f2c2044e9118ab134f73·...·]/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="varia[·...·truncated·by·diffoscope;·len:·697,·SHA:·e9288f8d879e78d7e79eb2c4255eb99308efd98061b1221968fb17de11019b2e·...·]/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.78.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.78.0/core/op[·...·truncated·by·diffoscope;·len:·841,·SHA:·9cba1b175fb3726d7f1f01da9be7c1a56568a68e4ce7915a468b730902daf8d3·...·]/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.78.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:[·...·truncated·by·diffoscope;·len:·790,·SHA:·19293cf7305d77d7ccd51618427cff5e3edb06f162c23796ed392e0ac792f65e·...·]/core/primitive.reference.html">&amp;mut·Self</a><div·class="where">where70 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·934,·SHA:·ea20d2e0fe9388580ea08100baa9120b5e9b6cb48f43fc846f15db8b9649e7f6·...·]/core/primitive.reference.html">&amp;mut·Self</a><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[·...·truncated·by·diffoscope;·len:·427,·SHA:·cf371b2193fdcddf87cfe994db4d3e364336bb766b15dcfdd0ac7aabbd72e715·...·]/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.78.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.78.0/core/it[·...·truncated·by·diffoscope;·len:·523,·SHA:·97064c705f6f4bdf74469c54fabcf580d21893127d1b4cd9a9c1018a717ef153·...·]/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.78.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.78.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[·...·truncated·by·diffoscope;·len:·584,·SHA:·d76c3fcf86c63211032a6b22dc5924ef552b1ad26b12e19f15d2f1d5b3d7e394·...·]/core/primitive.reference.html">&amp;mut·E</a><div·class="where">where73 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.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.78.0/core/iter/tr[·...·truncated·by·diffoscope;·len:·728,·SHA:·01937c2dc314c259495665570ae249c94b4a5b0719718f5f1188e6fc64ecf487·...·]/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.78.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.78.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_coll[·...·truncated·by·diffoscope;·len:·855,·SHA:·fa6f33be71e9184cfecc555b0b832d1a929285d35b47b1212b2176ac555731a1·...·]/core/primitive.tuple.html">(B,·B)</a><div·class="where">where75 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></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:·00bd47017b1bdd1bbe2c3fc932d955a8aa2f7f5eff8c00e3001ae28a982a5883·...·]/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.78.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="associa[·...·truncated·by·diffoscope;·len:·23,·SHA:·4417dee5d41246c4acf5419e1bdac3c7d847bd34e3e87738a08734259a3b63da·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;,77 ····B:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/default/trait.Default.html"·title="trait·core::default::Default">Default</a>·+·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/collect/trait.Extend.html"·title="trait·core::iter::traits::collec[·...·truncated·by·diffoscope;·len:·95,·SHA:·8b3be1d0042cae0550f865faf5849221240bdf04eb1b2107605b72d48c3ad29c·...·]/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:[·...·truncated·by·diffoscope;·len:·827,·SHA:·281bbd5137cae68dd8057d013e9c9f311461e746663120304e3f6adace77f784·...·]/core/primitive.usize.html">usize</a><div·class="where">where78 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·995,·SHA:·bec3765fdab56713186e2454cd84738b5b28e3280a2f3d5a25cefdbc3089b520·...·]/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">DoubleEnd[·...·truncated·by·diffoscope;·len:·60,·SHA:·036db50df43442a72ce04aef94ccf2727352aad0708d71fe0e34c23613b84765·...·]/core/primitive.reference.html">&amp;'a·mut·T</a>&gt;,80 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>·+·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/double_ended/trait.DoubleEndedIterator.html"·title="trait·core::iter::trai[·...·truncated·by·diffoscope;·len:·132,·SHA:·e5b2cf5f56946ede1e190ed09879c5821e2de04cf8e5d145142eeb40c6340982·...·]/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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(<a·class="primitive"·href="https://doc.rust-lang.org/1.78.0/core/primitive.reference.html">&amp;T</a>)·-&gt;·<a·class="primitive"·href="[·...·truncated·by·diffoscope;·len:·32,·SHA:·63d052a8ced32bf927ffadd7e884c08caf4970e85dfdf6be0e568d49b174da96·...·]/core/primitive.bool.html">bool</a>,</div></h4></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:·335,·SHA:·dc6a465df534b0392c5280e79e5249847890045561099b2cfc44bfabc4801d8d·...·]/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.78.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:·0c224636c18baa273f69de21f90083317f2ea0b7367a3f0d0f1c0ace55a36f79·...·]/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.78.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::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,85 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·135,·SHA:·51ff5f5c7ebd8440623ea71b125c5a5837e809e308fe1a13fbe19cddb941dbd9·...·]/core/primitive.bool.html">bool</a>,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iter_is_partitioned</code>&nbsp;<a·href="https://github.com/rust-lang/rust/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="sinc[·...·truncated·by·diffoscope;·len:·247,·SHA:·bd8fce4ee431c619c98780c4d520e8db93f1e034f12843ffaff5744b7ce2190b·...·]/core/iter/traits/iterator/trait.Iterator.html#method.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.78.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:·2c74873f4e5ba70004a1c7edd1cc3f9e2d91271295dd1591e2d26848df4c02ba·...·]/core/iter/traits/iterator/trait.Iterator.html#method.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.78.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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(B,·Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.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.78.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"[·...·truncated·by·diffoscope;·len:·249,·SHA:·7b4fc32e7634ae85c682a97099be267837713d7e4831893b617ca652f57a89da·...·]/core/iter/traits/iterator/trait.Iterator.html#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.78.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:·52912e82c4b0a760d06f77eb4ee3a59ba70dd76cb532954900c73ae94c652674·...·]/core/iter/traits/iterator/trait.Iterator.html#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.78.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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.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.78.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.78.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"·tit[·...·truncated·by·diffoscope;·len:·235,·SHA:·5cfb1ce7ac10ff40c8d1d0f019b60fc4735736254c2d8357ed62287e51b1ac32·...·]/core/iter/traits/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.78.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:·1d6c4809cea8748e901d3f94777f450d430f3161f6ac05ed1c178d9327f966a3·...·]/core/iter/traits/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.78.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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(B,·Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::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="St[·...·truncated·by·diffoscope;·len:·499,·SHA:·2c738ecc68200afa2467bef085de14dcb642dbaac77c4529948f5e259e66691d·...·]/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.78.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:·b60215068a6d9721be05f81098c51167d7138c4042f140cad42f77c4df43f597·...·]/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.78.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::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·reducing99 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·352,·SHA:·e7c3c296abe2c0a183967153e4ae7fd50bafa2ae7088e3e78b3b48fee253adc6·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::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/cor[·...·truncated·by·diffoscope;·len:·145,·SHA:·c3f1d50e276def36966943119961a20b09cab3be33483fe4d48d7f322489534b·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_reduce"·class="fn">try_reduce</a>&lt;F,·R&gt;(100 operation.·<a·href="https://doc.rust-lang.org/1.78.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:·7a18fdd041b1a001b4a8feb289ee127fd9240232239269eb35dc3b8f74783ec9·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_reduce"·class="fn">try_reduce</a>&lt;F,·R&gt;(
101 ····&amp;mut·self,101 ····&amp;mut·self,
102 ····f:·F102 ····f:·F
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</[·...·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">where103 )·-&gt;·&lt;&lt;R·as·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&gt;::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/ops/try_trait/trait.Try.html#associatedtype.Residual"·title="type[·...·truncated·by·diffoscope;·len:·754,·SHA:·6fb4dfdb6b4da68921c1e7f8b75d99cf293d58318d684a840254ce9576957bea·...·]/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.78.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:·68,·SHA:·e7e11f257edcac749a5883ad9a3aa42e6e965be419f967b36caa7afd3b36d7c9·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·R,105 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·140,·SHA:·c27972e6fa3464c9476eaa185e8657edb6bb294f148403f3d079285294a9f909·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·R,
106 ····R:·<a·class="trait"·href="../../../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;,106 ····R:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.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.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;,
107 ····&lt;R·as·<a·class="trait"·href="../../../core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</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·the107 ····&lt;R·as·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&gt;::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/ops/try_trait/trait.Try.html#associatedtype.Residual"·title="type[·...·truncated·by·diffoscope;·len:·412,·SHA:·22b8cbb007e5cce82b9d13a65bfa56aa8d83c32541fac25f4d9b3857b0540908·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;&gt;,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iterator_try_reduce</code>&nbsp;<a·href="https://github.com/rust-lang/rust/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
108 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:·1a00be8efe0263bc0d09f5d47be04890b1d27a20c3429d1f4531805a03591fdb·...·]/core/primitive.bool.html">bool</a><div·class="where">where108 closure·returns·a·failure,·the·failure·is·propagated·back·to·the·caller·immediately.·<a·href="https://doc.rust-lang.org/1.78.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:·bc0d658d56e348823de15386e1cd4ab49109f3a7a055a4573a19391b47071193·...·]/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.78.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:·850,·SHA:·c15cbdf9d3f54700b6eac2f717541f7f5a3cf811d73f48ef7118096c1a240102·...·]/core/primitive.bool.html">bool</a><div·class="where">where110 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·1018,·SHA:·e61cd6bdd36729cc38e57fcaea2ccb91a23a5acbda3c8986071f19bf1ecfc52a·...·]/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.78.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:·980,·SHA:·80fef1533a0c8783ee74be0f29290d7dec960bcd19223b11639b3e6377220faa·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;<div·class="where">where112 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·1172,·SHA:·e64ab74d116d286191ad43d9d9e10411fc011c23724aa806e9a8f9b0be0757e3·...·]/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.78.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;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:·f441e2966ff8db4214e57fcd74f81262d6e371aa51cea97ebde5921e81b4da79·...·]/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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·1051,·SHA:·ecc0b8fccd861464760f9ae047ff6ab98c91a1db010cb5fa59a8c2ab883db7c4·...·]/core/option/enum.Option.html"·title="enum·core::option::Option">Option</a>&lt;B&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.78.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::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·returns116 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·130,·SHA:·130a13019dc175d02304b4f550157e2f13ac15c2f25a979c74161d10b146ab89·...·]/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.try_find"·class="method·trait-impl"><a·class="src·rightside"·href="../../../src/cor[·...·truncated·by·diffoscope;·len:·143,·SHA:·ec4fb002625b166504031522e52a66812b279e6735a67cb718813205909c3fb7·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_find"·class="fn">try_find</a>&lt;F,·R&gt;(117 the·first·non-none·result.·<a·href="https://doc.rust-lang.org/1.78.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:·8ced1b10e78750774c5c8ed995ed83dcd13983aa75d329acf8069da106ab9f4a·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_find"·class="fn">try_find</a>&lt;F,·R&gt;(
118 ····&amp;mut·self,118 ····&amp;mut·self,
119 ····f:·F119 ····f:·F
120 )·-&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">where120 )·-&gt;·&lt;&lt;R·as·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&gt;::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/ops/try_trait/trait.Try.html#associatedtype.Residual"·title="type[·...·truncated·by·diffoscope;·len:·626,·SHA:·95f9831257b68862cbcbf54f0ad2ff4e597a4c9f763112d1da8a0897dadcf872·...·]/core/ops/try_trait/trait.Residual.html#associatedtype.TryType"·title="type·core::ops::try_trait::Residual::TryType">TryType</a><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.78.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;·R,122 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·R,
123 ····R:·<a·class="trait"·href="../../../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.78.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.78.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</[·...·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·returns124 ····&lt;R·as·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&gt;::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/ops/try_trait/trait.Try.html#associatedtype.Residual"·title="type[·...·truncated·by·diffoscope;·len:·412,·SHA:·22b8cbb007e5cce82b9d13a65bfa56aa8d83c32541fac25f4d9b3857b0540908·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;&gt;,</div></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"·tit[·...·truncated·by·diffoscope;·len:·515,·SHA:·6dfeba1124bae8f2522e04867675a71c3ba87362983bbcdc0873f094910232cc·...·]/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.78.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:·fa9d94b216f6e4ce6035b4762e3bf17cb86a0272db0a55a056f05c68bcaeb0da·...·]/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.78.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
Max diff block lines reached; 82637/317096 bytes (26.06%) of diff not shown.
307 KB
./usr/share/doc/rust-web-doc/html/alloc/collections/btree_map/struct.IntoValues.html
    
Offset 1, 229 lines modifiedOffset 1, 229 lines modified
1 <!DOCTYPE·html><html·lang="en"><head><meta·charset="utf-8"><meta·name="viewport"·content="width=device-width,·initial-scale=1.0"><meta·name="generator"·content="rustdoc"><meta·name="description"·content="An·owning·iterator·over·the·values·of·a·`BTreeMap`."><title>IntoValues·in·alloc::collections::btree_map·-·Rust</title><script>·if·(window.location.protocol·!==·"file:")·document.write(`<link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../../static.files/SourceSerif4-Regular-46f98efaafac5295.ttf.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../../static.files/FiraSans-Regular-018c141bf0843ffd.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../../static.files/FiraSans-Medium-8f9a781e4970d388.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../../static.files/SourceCodePro-Regular-562dcc5011b6de7d.ttf.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../../static.files/SourceCodePro-Semibold-d899c5a5c4aeb14a.ttf.woff2">`)</script><link·rel="stylesheet"·href="../../../static.files/normalize-76eba96aa4d2e634.css"><link·rel="stylesheet"·href="../../../static.files/rustdoc-35f9e32502181f1e.css"><meta·name="rustdoc-vars"·data-root-path="../../../"·data-static-root-path="../../../static.files/"·data-current-crate="alloc"·data-themes=""·data-resource-suffix="1.78.0"·data-rustdoc-version="1.78.0"·data-channel="1.78.0"·data-search-js="search-42d8da7a6b9792c2.js"·data-settings-js="settings-4313503d2e1961c2.js"·><script·src="../../../static.files/storage-4c98445ec4002617.js"></script><script·defer·src="sidebar-items1.78.0.js"></script><script·defer·src="../../../static.files/main-12cf3b4f4f9dc36d.js"></script><noscript><link·rel="stylesheet"·href="../../../static.files/noscript-04d5337699b92874.css"></noscript><link·rel="alternate·icon"·type="image/png"·href="../../../static.files/favicon-16x16-8b506e7a72182f1c.png"><link·rel="alternate·icon"·type="image/png"·href="../../../static.files/favicon-32x32-422f7d1d52889060.png"><link·rel="icon"·type="image/svg+xml"·href="../../../static.files/favicon-2c020d218678b618.svg"></head><body·class="rustdoc·struct"><!--[if·lte·IE·11]><div·class="warning">This·old·browser·is·unsupported·and·will·most·likely·display·funky·things.</div><![endif]--><nav·class="mobile-topbar"><button·class="sidebar-menu-toggle"·title="show·sidebar"></button><a·class="logo-container"·href="../../../alloc/index.html"><img·class="rust-logo"·src="../../../static.files/rust-logo-151179464ae7ed46.svg"·alt=""></a></nav><nav·class="sidebar"><div·class="sidebar-crate"><a·class="logo-container"·href="../../../alloc/index.html"><img·class="rust-logo"·src="../../../static.files/rust-logo-151179464ae7ed46.svg"·alt="logo"></a><h2><a·href="../../../alloc/index.html">alloc</a><span·class="version">1.78.0</span></h2></div><h2·class="location"><a·href="#">IntoValues</a></h2><div·class="sidebar-elems"><section><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">Debug</a></li><li><a·href="#impl-Default-for-IntoValues%3CK,+V,+A%3E">Default</a></li><li><a·href="#impl-DoubleEndedIterator-for-IntoValues%3CK,+V,+A%3E">DoubleEndedIterator</a></li><li><a·href="#impl-ExactSizeIterator-for-IntoValues%3CK,+V,+A%3E">ExactSizeIterator</a></li><li><a·href="#impl-FusedIterator-for-IntoValues%3CK,+V,+A%3E">FusedIterator</a></li><li><a·href="#impl-Iterator-for-IntoValues%3CK,+V,+A%3E">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">Freeze</a></li><li><a·href="#impl-RefUnwindSafe-for-IntoValues%3CK,+V,+A%3E">RefUnwindSafe</a></li><li><a·href="#impl-Send-for-IntoValues%3CK,+V,+A%3E">Send</a></li><li><a·href="#impl-Sync-for-IntoValues%3CK,+V,+A%3E">Sync</a></li><li><a·href="#impl-Unpin-for-IntoValues%3CK,+V,+A%3E">Unpin</a></li><li><a·href="#impl-UnwindSafe-for-IntoValues%3CK,+V,+A%3E">UnwindSafe</a></li></ul><h3><a·href="#blanket-implementations">Blanket·Implementations</a></h3><ul·class="block·blanket-implementation"><li><a·href="#impl-Any-for-T">Any</a></li><li><a·href="#impl-Borrow%3CT%3E-for-T">Borrow&lt;T&gt;</a></li><li><a·href="#impl-BorrowMut%3CT%3E-for-T">BorrowMut&lt;T&gt;</a></li><li><a·href="#impl-From%3CT%3E-for-T">From&lt;T&gt;</a></li><li><a·href="#impl-Into%3CU%3E-for-T">Into&lt;U&gt;</a></li><li><a·href="#impl-IntoIterator-for-I">IntoIterator</a></li><li><a·href="#impl-TryFrom%3CU%3E-for-T">TryFrom&lt;U&gt;</a></li><li><a·href="#impl-TryInto%3CU%3E-for-T">TryInto&lt;U&gt;</a></li></ul></section><h2><a·href="index.html">In·alloc::collections::btree_map</a></h2></div></nav><div·class="sidebar-resizer"></div>1 <!DOCTYPE·html><html·lang="en"><head><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.write(`<link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../../static.files/SourceSerif4-Regular-46f98efaafac5295.ttf.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../../static.files/FiraSans-Regular-018c141bf0843ffd.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../../static.files/FiraSans-Medium-8f9a781e4970d388.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../../static.files/SourceCodePro-Regular-562dcc5011b6de7d.ttf.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../../static.files/SourceCodePro-Semibold-d899c5a5c4aeb14a.ttf.woff2">`)</script><link·rel="stylesheet"·href="../../../static.files/normalize-76eba96aa4d2e634.css"><link·rel="stylesheet"·href="../../../static.files/rustdoc-35f9e32502181f1e.css"><meta·name="rustdoc-vars"·data-root-path="../../../"·data-static-root-path="../../../static.files/"·data-current-crate="alloc"·data-themes=""·data-resource-suffix="1.78.0"·data-rustdoc-version="1.78.0"·data-channel="1.78.0"·data-search-js="search-42d8da7a6b9792c2.js"·data-settings-js="settings-4313503d2e1961c2.js"·><script·src="../../../static.files/storage-4c98445ec4002617.js"></script><script·defer·src="sidebar-items1.78.0.js"></script><script·defer·src="../../../static.files/main-12cf3b4f4f9dc36d.js"></script><noscript><link·rel="stylesheet"·href="../../../static.files/noscript-04d5337699b92874.css"></noscript><link·rel="alternate·icon"·type="image/png"·href="../../../static.files/favicon-16x16-8b506e7a72182f1c.png"><link·rel="alternate·icon"·type="image/png"·href="../../../static.files/favicon-32x32-422f7d1d52889060.png"><link·rel="icon"·type="image/svg+xml"·href="../../../static.files/favicon-2c020d218678b618.svg"></head><body·class="rustdoc·struct"><!--[if·lte·IE·11]><div·class="warning">This·old·browser·is·unsupported·and·will·most·likely·display·funky·things.</div><![endif]--><nav·class="mobile-topbar"><button·class="sidebar-menu-toggle"·title="show·sidebar"></button><a·class="logo-container"·href="../../../alloc/index.html"><img·class="rust-logo"·src="../../../static.files/rust-logo-151179464ae7ed46.svg"·alt=""></a></nav><nav·class="sidebar"><div·class="sidebar-crate"><a·class="logo-container"·href="../../../alloc/index.html"><img·class="rust-logo"·src="../../../static.files/rust-logo-151179464ae7ed46.svg"·alt="logo"></a><h2><a·href="../../../alloc/index.html">alloc</a><span·class="version">1.78.0</span></h2></div><h2·class="location"><a·href="#">IntoValues</a></h2><div·class="sidebar-elems"><section><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">Debug</a></li><li><a·href="#impl-Default-for-IntoValues%3CK,+V,+A%3E">Default</a></li><li><a·href="#impl-DoubleEndedIterator-for-IntoValues%3CK,+V,+A%3E">DoubleEndedIterator</a></li><li><a·href="#impl-ExactSizeIterator-for-IntoValues%3CK,+V,+A%3E">ExactSizeIterator</a></li><li><a·href="#impl-FusedIterator-for-IntoValues%3CK,+V,+A%3E">FusedIterator</a></li><li><a·href="#impl-Iterator-for-IntoValues%3CK,+V,+A%3E">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">Freeze</a></li><li><a·href="#impl-RefUnwindSafe-for-IntoValues%3CK,+V,+A%3E">RefUnwindSafe</a></li><li><a·href="#impl-Send-for-IntoValues%3CK,+V,+A%3E">Send</a></li><li><a·href="#impl-Sync-for-IntoValues%3CK,+V,+A%3E">Sync</a></li><li><a·href="#impl-Unpin-for-IntoValues%3CK,+V,+A%3E">Unpin</a></li><li><a·href="#impl-UnwindSafe-for-IntoValues%3CK,+V,+A%3E">UnwindSafe</a></li></ul><h3><a·href="#blanket-implementations">Blanket·Implementations</a></h3><ul·class="block·blanket-implementation"><li><a·href="#impl-Any-for-T">Any</a></li><li><a·href="#impl-Borrow%3CT%3E-for-T">Borrow&lt;T&gt;</a></li><li><a·href="#impl-BorrowMut%3CT%3E-for-T">BorrowMut&lt;T&gt;</a></li><li><a·href="#impl-From%3CT%3E-for-T">From&lt;T&gt;</a></li><li><a·href="#impl-Into%3CU%3E-for-T">Into&lt;U&gt;</a></li><li><a·href="#impl-IntoIterator-for-I">IntoIterator</a></li><li><a·href="#impl-TryFrom%3CU%3E-for-T">TryFrom&lt;U&gt;</a></li><li><a·href="#impl-TryInto%3CU%3E-for-T">TryInto&lt;U&gt;</a></li></ul></section><h2><a·href="index.html">In·alloc::collections::btree_map</a></h2></div></nav><div·class="sidebar-resizer"></div>
2 ····<main><div·class="width-limiter"><nav·class="sub"><form·class="search-form"><span></span><div·id="sidebar-button"·tabindex="-1"><a·href="../../../alloc/all.html"·title="show·sidebar"></a></div><input·class="search-input"·name="search"·aria-label="Run·search·in·the·documentation"·autocomplete="off"·spellcheck="false"·placeholder="Click·or·press·‘S’·to·search,·‘?’·for·more·options…"·type="search"><div·id="help-button"·tabindex="-1"><a·href="../../../help.html"·title="help">?</a></div><div·id="settings-menu"·tabindex="-1"><a·href="../../../settings.html"·title="settings"><img·width="22"·height="22"·alt="Change·settings"·src="../../../static.files/wheel-7b819b6101059cd0.svg"></a></div></form></nav><section·id="main-content"·class="content"><div·class="main-heading"><h1>Struct·<a·href="../../index.html">alloc</a>::<wbr><a·href="../index.html">collections</a>::<wbr><a·href="index.html">btree_map</a>::<wbr><a·class="struct"·href="#">IntoValues</a><button·id="copy-path"·title="Copy·item·path·to·clipboard"><img·src="../../../static.files/clipboard-7571035ce49a181d.svg"·width="19"·height="18"·alt="Copy·item·path"></button></h1><span·class="out-of-band"><span·class="since"·title="Stable·since·Rust·version·1.54.0">1.54.0</span>···<a·class="src"·href="../../../src/alloc/collections/btree/map.rs.html#553-559">source</a>···<button·id="toggle-all-docs"·title="collapse·all·docs">[<span>&#x2212;</span>]</button></span></div><pre·class="rust·item-decl"><code>pub·struct·IntoValues&lt;K,·V,·A:·<a·class="trait"·href="../../alloc/trait.Allocator.html"·title="trait·alloc::alloc::Allocator">Allocator</a>·+·<a·class="trait"·href="../../../core/clone/trait.Clone.html"·title="trait·core::clone::Clone">Clone</a>·=·<a·class="struct"·href="../../alloc/struct.Global.html"·title="struct·alloc::alloc::Global">Global</a>&gt;·{·<span·class="comment">/*·private·fields·*/</span>·}</code></pre><details·class="toggle·top-doc"·open><summary·class="hideme"><span>Expand·description</span></summary><div·class="docblock"><p>An·owning·iterator·over·the·values·of·a·<code>BTreeMap</code>.</p>2 ····<main><div·class="width-limiter"><nav·class="sub"><form·class="search-form"><span></span><div·id="sidebar-button"·tabindex="-1"><a·href="../../../alloc/all.html"·title="show·sidebar"></a></div><input·class="search-input"·name="search"·aria-label="Run·search·in·the·documentation"·autocomplete="off"·spellcheck="false"·placeholder="Click·or·press·‘S’·to·search,·‘?’·for·more·options…"·type="search"><div·id="help-button"·tabindex="-1"><a·href="../../../help.html"·title="help">?</a></div><div·id="settings-menu"·tabindex="-1"><a·href="../../../settings.html"·title="settings"><img·width="22"·height="22"·alt="Change·settings"·src="../../../static.files/wheel-7b819b6101059cd0.svg"></a></div></form></nav><section·id="main-content"·class="content"><div·class="main-heading"><h1>Struct·<a·href="../../index.html">alloc</a>::<wbr><a·href="../index.html">collections</a>::<wbr><a·href="index.html">btree_map</a>::<wbr><a·class="struct"·href="#">IntoValues</a><button·id="copy-path"·title="Copy·item·path·to·clipboard"><img·src="../../../static.files/clipboard-7571035ce49a181d.svg"·width="19"·height="18"·alt="Copy·item·path"></button></h1><span·class="out-of-band"><span·class="since"·title="Stable·since·Rust·version·1.54.0">1.54.0</span>···<a·class="src"·href="../../../src/alloc/collections/btree/map.rs.html#553-559">source</a>···<button·id="toggle-all-docs"·title="collapse·all·docs">[<span>&#x2212;</span>]</button></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.78.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>
3 <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 <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>.
4 See·its·documentation·for·more.</p>4 See·its·documentation·for·more.</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-IntoValues%3CK,+V,+A%3E"·class="impl"><a·class="src·rightside"·href="../../../src/alloc/collections/btree/map.rs.html#562-566">source</a><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:·d937a6850b18745795691db26ebcc3754445569b6975d7911cdc1607f99c3769·...·]/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">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-IntoValues%3CK,+V,+A%3E"·class="impl"><a·class="src·rightside"·href="../../../src/alloc/collections/btree/map.rs.html#562-566">source</a><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.78.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:·a915f4fa0c6112aa4f45041fc24974170152d469ca0fdaeafabffa5c518b0564·...·]/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
6 ····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:·2cc31e8fed7f078b976ebedf7c8d7a477e4bb7c62cb95f1e92ae2addfbe773f2·...·]/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 ····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.78.0/core/default/trait.Default.html"·title="trait·core::default::Default">Default</a>·+·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/clone/trait.Clone.html"·title="trait·core::clone::Clone">Clone</a>,</div></h3>[·...·truncated·by·diffoscope;·len:·366,·SHA:·e45c364ca2bdbaa28f0a280cf0fa36b98a6df6c407b335f348b25646d8913ba9·...·]/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>
  
7 <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 <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();
8 <span·class="macro">assert_eq!</span>(iter.len(),·<span·class="number">0</span>);</code></pre><a·class="test-arrow"·target="_blank"·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">Run</a></div>8 <span·class="macro">assert_eq!</span>(iter.len(),·<span·class="number">0</span>);</code></pre><a·class="test-arrow"·target="_blank"·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">Run</a></div>
9 </div></details></div></details><details·class="toggle·implementors-toggle"·open><summary><section·id="impl-DoubleEndedIterator-for-IntoValues%3CK,+V,+A%3E"·class="impl"><a·class="src·rightside"·href="../../../src/alloc/collections/btree/map.rs.html#2135-2139">source</a><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:·971ae19bdb2ae21277b6659137d9f300613aec97197c063dc92e18d278cfe9b8·...·]/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 </div></details></div></details><details·class="toggle·implementors-toggle"·open><summary><section·id="impl-DoubleEndedIterator-for-IntoValues%3CK,+V,+A%3E"·class="impl"><a·class="src·rightside"·href="../../../src/alloc/collections/btree/map.rs.html#2135-2139">source</a><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.78.0/core/clone/trait.Clone.html"·title="trait·core::clone::Clone">Clone</a>&gt;·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/double_ended/trait.DoubleEndedIterator.html"·title="trait·core::iter::trai[·...·truncated·by·diffoscope;·len:·4418,·SHA:·7e3a9b940ba4963d0aa2bc095fde3b61bf3b094c96f74f3d5a429f22ac2d37b4·...·]/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.78.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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(B,·Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.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.78.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.7[·...·truncated·by·diffoscope;·len:·3,·SHA:·7b1bd53949b752d143d871408483b5382371b5bc48d195d0c040ec93cfa2748b·...·]/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·clas[·...·truncated·by·diffoscope;·len:·253,·SHA:·b3a5d6383debff0cac836c5889a757f11b019bc049778c518e60e4d37a3c4da1·...·]/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.78.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:·d66ed7e195a53e9945339ef1976aed455dcf80228d8e5b7b0c69a64c3983fea1·...·]/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.78.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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(B,·Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/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="s[·...·truncated·by·diffoscope;·len:·545,·SHA:·d11fd274e41827c1daee0c80a6ab5f978a613ab26297cb460535fef32cff8551·...·]/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.78.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:·c264047794019a6dcf05728ba6a6ee1f8f07c7209958b3366ba94546b527ecdc·...·]/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.78.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:[·...·truncated·by·diffoscope;·len:·7020,·SHA:·6a262d343b6383124207fbb995ecf24159610e7bbbfc3ab0a86c2210e96ad4df·...·]/core/primitive.usize.html">usize</a>&gt;(18 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·7740,·SHA:·8f9fcd2b55246ae70c8d470af9b53e8953aaf26c275129225df62cdda04d6192·...·]/core/primitive.usize.html">usize</a>&gt;(
19 ····&amp;mut·self19 ····&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.78.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.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title=[·...·truncated·by·diffoscope;·len:·381,·SHA:·88c48923c9b7ea5cc47c1087c60e09656e81d4671c58071ba2bef826335388bc·...·]/core/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:·f7c1ca2ff3e425a8295c41d4d2fe540d4a3cb1e7032a9d04d8aed936964c71b6·...·]/core/primitive.usize.html">usize</a><div·class="where">where21 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></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:·89791450da70cbd536c3cf8fbf2dd9891668362f9a252d3ee098222d19960bae·...·]/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:·00fcd590d49f9c95cf7e39437688efce9b3546bce88f836f82a8084a5cad4047·...·]/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.78.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:·5acc2bcc91ab2687c8137eaa20bd4287e0b901b846fa877b4a1d59df04bc4956·...·]/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.78.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:·4ac7445a1207207aeda1789f31c5036d8905fa206c83a58ca48662c081a68134·...·]/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.78.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:·e83c903581753673e083ce8dd809879a2fc81ab3050eb6db267d7fa26b15e035·...·]/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.78.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:·10378641f30fbaa3b3d8ba8984f91955195f5a0ddb70a41cc9ff99666b50a36f·...·]/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.78.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.78.0/core/iter/traits/it[·...·truncated·by·diffoscope;·len:·1329,·SHA:·d9299c8edc606ed82f24d61ce441bec451141d684c2a9a75074f5b19c57f196c·...·]/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.78.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:·b9001dd3131b1425179c94853e1b90fff0f7169b9570e86cd50c6b7fbf1ee8a5·...·]/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.78.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:·98627729f77dcf1c9d258f343354ba600b7134c6b3929080f231e8de7155b70b·...·]/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.78.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.78.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.78.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:·fa2a17b1aaf7dbc4e89f728d099c0a475adcd5ff79e4791795d7c4df5fc2ccec·...·]/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.78.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:·7301b6beba7b6885849be90a625df68ef739a5374af456c51fe2e81d91a25363·...·]/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.78.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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::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:·d75758e0f8262eeea27445cec43f13d84f0c02ba4e03c0c54d041f9ab1965e0f·...·]/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.78.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:·98f6effefa44d759c249143d83623f0055d937382bfc398b7e1f5e92cd413657·...·]/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.78.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:·9009d5c023150c1a97b2d18e30d176e7ff2e48673ad0e4665367958e752bf827·...·]/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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·916,·SHA:·30d0b2a76513c5a880e9aee43e92b18805845cfcfe5783f62dc090167a439e63·...·]/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.78.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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·140,·SHA:·752f473b57e7444ebfddf5ea7fd40a332e83ec55524a6c31b5ee0f82a5dea819·...·]/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:·7c1da0b93b40e2b4f823a0d24b5a27f092ffdb68175a9c14fe21a97d84bb2244·...·]/core/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.78.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:·76aa2ad154f88085ee3f8a22721a7e6812680bac785d19059532407f50da1801·...·]/core/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.78.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:·96005685f2d5bf532d7af03cf747a50bdbe5efffccc579afe197789e4cd44a54·...·]/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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·1052,·SHA:·110b47c7083083d565fcfc89337fddc8e5c87e81b2f720f3f7b0ded55e8500fb·...·]/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.78.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:·02bccd69f3cf4a08b24b66a0c9afb8ac49ebd0e9a7d5a183641b471189a35df3·...·]/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.78.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:·8464264e074dde5d84f0414ab3b5b2d8da83f3c9e3ca04c45458241580a8c80d·...·]/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.78.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.78.0/core/iter/adapte[·...·truncated·by·diffoscope;·len:·175,·SHA:·16fe7225bf05b478e2828b347c3d23ded9a22f89d8887a2c65d9f7b3faf1b0e7·...·]/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:·60d233d0587f535c8bae5118522baa81ef2524d4168f9e142529a37902d8e8c4·...·]/core/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.78.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:·00ccbb673c11ed48d8c6aa2a3f8984fb298202e7bccfa42f1ac21290fcc0fb06·...·]/core/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.78.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:·0900235f7b60bdd90fbf9718324068ecf230199603f19da2c38cad64ed6915ff·...·]/core/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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·1234,·SHA:·3b805567411cdcebed740f9e8d400dbe7fb487504f40e284544a140155090fdf·...·]/core/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.78.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:·552b3dd2132886d024e4d5bd2554611e25c1f068adaaf23ecf80da81d31997ef·...·]/core/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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·1058,·SHA:·b390dbdda8d7e93604b5ecd906a93efd03fe19bdaf41cf12893fd361bf974307·...·]/core/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.78.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:·491a83328e39b23cf5191ed5cb6bf83f1a62c9405ed5c39c58117b227b39b16c·...·]/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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·1163,·SHA:·5772149166d344bf8fa5ebbd9db8693a8f2e5f031c50338e8f1523ef72f814d6·...·]/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:·e62b3f87b06b061e799e72ab8f04c531f1c6f241266260eaab33ea2b793dd8d2·...·]/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.78.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:·6216516fe581c401abda3c95818192e8f030e2008c9bbdbaafebba16f33ea9bd·...·]/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.78.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:·7d73eca41cdb0c170bd03419f3563f3fe9e70e11494db546e781d302d3cd5636·...·]/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.78.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:·485843399c56e24bdf020ff0610d0ce1f62fbac5530d9880a1a7417105e3d70f·...·]/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.78.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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(<a·class="primitive"·href="https://doc.rust-lang.org/1.78.0/core/primitive.reference.html">&amp;mut·St</a>,·Self::<a·class="associatedty[·...·truncated·by·diffoscope;·len:·449,·SHA:·f12c268a8a8111b9e7126ad78bf5523a63733caa63d187c4fe792309ea41acdf·...·]/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:·02034aae893b799fa017b2d71546332d96a823cd4ba05c14089559819f3dd720·...·]/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.78.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.78.0/core/iter/trai[·...·truncated·by·diffoscope;·len:·690,·SHA:·371190e5c1bf9b7dde6e84447965a69946212b977b9eb6d89048fbe34c5dda1c·...·]/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.78.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.78.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:·4d1f54658fd1c005b101a2e27b0da3c6ee0cbe2d891660c65470bfec01fa46f6·...·]/core/iter/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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·976,·SHA:·2a9182f6fe88e0b8a9b1ae1f46cace940cc0b8736033c354c0f0ccbf1c196e7a·...·]/core/iter/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.78.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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;[Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtyp[·...·truncated·by·diffoscope;·len:·135,·SHA:·0b06a6094d42ccbc8bce5b01c4383961fe7f1967f05e4c9f1ff33e71e425fb26·...·]/core/primitive.array.html">N</a>])·-&gt;·R,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iter_map_windows</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/87155">#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.78.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:·d83146d48347da8e04ce6fcac96b0b1500203504f596d32c16a5a1493dd375e1·...·]/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.78.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:·0d33056cee8a4f9b70b573c0adecc2f3599a2f8d9fa9f2c2044e9118ab134f73·...·]/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:·e9288f8d879e78d7e79eb2c4255eb99308efd98061b1221968fb17de11019b2e·...·]/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.78.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.78.0/core/op[·...·truncated·by·diffoscope;·len:·841,·SHA:·9cba1b175fb3726d7f1f01da9be7c1a56568a68e4ce7915a468b730902daf8d3·...·]/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.78.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:·790,·SHA:·19293cf7305d77d7ccd51618427cff5e3edb06f162c23796ed392e0ac792f65e·...·]/core/primitive.reference.html">&amp;mut·Self</a><div·class="where">where68 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·934,·SHA:·ea20d2e0fe9388580ea08100baa9120b5e9b6cb48f43fc846f15db8b9649e7f6·...·]/core/primitive.reference.html">&amp;mut·Self</a><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:·cf371b2193fdcddf87cfe994db4d3e364336bb766b15dcfdd0ac7aabbd72e715·...·]/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.78.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.78.0/core/it[·...·truncated·by·diffoscope;·len:·523,·SHA:·97064c705f6f4bdf74469c54fabcf580d21893127d1b4cd9a9c1018a717ef153·...·]/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.78.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.78.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:·d76c3fcf86c63211032a6b22dc5924ef552b1ad26b12e19f15d2f1d5b3d7e394·...·]/core/primitive.reference.html">&amp;mut·E</a><div·class="where">where71 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.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.78.0/core/iter/tr[·...·truncated·by·diffoscope;·len:·728,·SHA:·01937c2dc314c259495665570ae249c94b4a5b0719718f5f1188e6fc64ecf487·...·]/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.78.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.78.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:·fa6f33be71e9184cfecc555b0b832d1a929285d35b47b1212b2176ac555731a1·...·]/core/primitive.tuple.html">(B,·B)</a><div·class="where">where73 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></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:·00bd47017b1bdd1bbe2c3fc932d955a8aa2f7f5eff8c00e3001ae28a982a5883·...·]/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.78.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.78.0/core/default/trait.Default.html"·title="trait·core::default::Default">Default</a>·+·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/collect/trait.Extend.html"·title="trait·core::iter::traits::collec[·...·truncated·by·diffoscope;·len:·95,·SHA:·8b3be1d0042cae0550f865faf5849221240bdf04eb1b2107605b72d48c3ad29c·...·]/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:·281bbd5137cae68dd8057d013e9c9f311461e746663120304e3f6adace77f784·...·]/core/primitive.usize.html">usize</a><div·class="where">where76 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·995,·SHA:·bec3765fdab56713186e2454cd84738b5b28e3280a2f3d5a25cefdbc3089b520·...·]/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.78.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>·+·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/double_ended/trait.DoubleEndedIterator.html"·title="trait·core::iter::trai[·...·truncated·by·diffoscope;·len:·132,·SHA:·e5b2cf5f56946ede1e190ed09879c5821e2de04cf8e5d145142eeb40c6340982·...·]/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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(<a·class="primitive"·href="https://doc.rust-lang.org/1.78.0/core/primitive.reference.html">&amp;T</a>)·-&gt;·<a·class="primitive"·href="[·...·truncated·by·diffoscope;·len:·32,·SHA:·63d052a8ced32bf927ffadd7e884c08caf4970e85dfdf6be0e568d49b174da96·...·]/core/primitive.bool.html">bool</a>,</div></h4></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:·dc6a465df534b0392c5280e79e5249847890045561099b2cfc44bfabc4801d8d·...·]/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.78.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:·0c224636c18baa273f69de21f90083317f2ea0b7367a3f0d0f1c0ace55a36f79·...·]/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.78.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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·135,·SHA:·51ff5f5c7ebd8440623ea71b125c5a5837e809e308fe1a13fbe19cddb941dbd9·...·]/core/primitive.bool.html">bool</a>,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iter_is_partitioned</code>&nbsp;<a·href="https://github.com/rust-lang/rust/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:·bd8fce4ee431c619c98780c4d520e8db93f1e034f12843ffaff5744b7ce2190b·...·]/core/iter/traits/iterator/trait.Iterator.html#method.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.78.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:·2c74873f4e5ba70004a1c7edd1cc3f9e2d91271295dd1591e2d26848df4c02ba·...·]/core/iter/traits/iterator/trait.Iterator.html#method.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.78.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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(B,·Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.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.78.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:·7b4fc32e7634ae85c682a97099be267837713d7e4831893b617ca652f57a89da·...·]/core/iter/traits/iterator/trait.Iterator.html#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.78.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:·52912e82c4b0a760d06f77eb4ee3a59ba70dd76cb532954900c73ae94c652674·...·]/core/iter/traits/iterator/trait.Iterator.html#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.78.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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.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.78.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.78.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:·5cfb1ce7ac10ff40c8d1d0f019b60fc4735736254c2d8357ed62287e51b1ac32·...·]/core/iter/traits/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.78.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:·1d6c4809cea8748e901d3f94777f450d430f3161f6ac05ed1c178d9327f966a3·...·]/core/iter/traits/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.78.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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(B,·Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::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:·2c738ecc68200afa2467bef085de14dcb642dbaac77c4529948f5e259e66691d·...·]/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.78.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:·b60215068a6d9721be05f81098c51167d7138c4042f140cad42f77c4df43f597·...·]/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.78.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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·352,·SHA:·e7c3c296abe2c0a183967153e4ae7fd50bafa2ae7088e3e78b3b48fee253adc6·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::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:·c3f1d50e276def36966943119961a20b09cab3be33483fe4d48d7f322489534b·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_reduce"·class="fn">try_reduce</a>&lt;F,·R&gt;(98 operation.·<a·href="https://doc.rust-lang.org/1.78.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:·7a18fdd041b1a001b4a8feb289ee127fd9240232239269eb35dc3b8f74783ec9·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_reduce"·class="fn">try_reduce</a>&lt;F,·R&gt;(
99 ····&amp;mut·self,99 ····&amp;mut·self,
100 ····f:·F100 ····f:·F
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.78.0/core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&gt;::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/ops/try_trait/trait.Try.html#associatedtype.Residual"·title="type[·...·truncated·by·diffoscope;·len:·754,·SHA:·6fb4dfdb6b4da68921c1e7f8b75d99cf293d58318d684a840254ce9576957bea·...·]/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.78.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:·68,·SHA:·e7e11f257edcac749a5883ad9a3aa42e6e965be419f967b36caa7afd3b36d7c9·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·R,103 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·140,·SHA:·c27972e6fa3464c9476eaa185e8657edb6bb294f148403f3d079285294a9f909·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·R,
104 ····R:·<a·class="trait"·href="../../../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.78.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.78.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.78.0/core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&gt;::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/ops/try_trait/trait.Try.html#associatedtype.Residual"·title="type[·...·truncated·by·diffoscope;·len:·412,·SHA:·22b8cbb007e5cce82b9d13a65bfa56aa8d83c32541fac25f4d9b3857b0540908·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;&gt;,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iterator_try_reduce</code>&nbsp;<a·href="https://github.com/rust-lang/rust/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:·1a00be8efe0263bc0d09f5d47be04890b1d27a20c3429d1f4531805a03591fdb·...·]/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.78.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:·bc0d658d56e348823de15386e1cd4ab49109f3a7a055a4573a19391b47071193·...·]/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.78.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:·c15cbdf9d3f54700b6eac2f717541f7f5a3cf811d73f48ef7118096c1a240102·...·]/core/primitive.bool.html">bool</a><div·class="where">where108 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·1018,·SHA:·e61cd6bdd36729cc38e57fcaea2ccb91a23a5acbda3c8986071f19bf1ecfc52a·...·]/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.78.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:·80fef1533a0c8783ee74be0f29290d7dec960bcd19223b11639b3e6377220faa·...·]/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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·1172,·SHA:·e64ab74d116d286191ad43d9d9e10411fc011c23724aa806e9a8f9b0be0757e3·...·]/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.78.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:·f441e2966ff8db4214e57fcd74f81262d6e371aa51cea97ebde5921e81b4da79·...·]/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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·1051,·SHA:·ecc0b8fccd861464760f9ae047ff6ab98c91a1db010cb5fa59a8c2ab883db7c4·...·]/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.78.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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·130,·SHA:·130a13019dc175d02304b4f550157e2f13ac15c2f25a979c74161d10b146ab89·...·]/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:·ec4fb002625b166504031522e52a66812b279e6735a67cb718813205909c3fb7·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_find"·class="fn">try_find</a>&lt;F,·R&gt;(115 the·first·non-none·result.·<a·href="https://doc.rust-lang.org/1.78.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:·8ced1b10e78750774c5c8ed995ed83dcd13983aa75d329acf8069da106ab9f4a·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_find"·class="fn">try_find</a>&lt;F,·R&gt;(
116 ····&amp;mut·self,116 ····&amp;mut·self,
117 ····f:·F117 ····f:·F
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.78.0/core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&gt;::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/ops/try_trait/trait.Try.html#associatedtype.Residual"·title="type[·...·truncated·by·diffoscope;·len:·626,·SHA:·95f9831257b68862cbcbf54f0ad2ff4e597a4c9f763112d1da8a0897dadcf872·...·]/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.78.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;·R,120 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·R,
121 ····R:·<a·class="trait"·href="../../../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.78.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.78.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</[·...·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·returns122 ····&lt;R·as·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&gt;::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/ops/try_trait/trait.Try.html#associatedtype.Residual"·title="type[·...·truncated·by·diffoscope;·len:·412,·SHA:·22b8cbb007e5cce82b9d13a65bfa56aa8d83c32541fac25f4d9b3857b0540908·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;&gt;,</div></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"·tit[·...·truncated·by·diffoscope;·len:·515,·SHA:·6dfeba1124bae8f2522e04867675a71c3ba87362983bbcdc0873f094910232cc·...·]/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.78.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:·fa9d94b216f6e4ce6035b4762e3bf17cb86a0272db0a55a056f05c68bcaeb0da·...·]/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.78.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::Iter[·...·truncated·by·diffoscope;·len:·997,·SHA:·1816bf02e88be907263fbe5025d7f7700ae5194f5d70d04980f9be1b1607f823·...·]/core/primitive.usize.html">usize</a>&gt;<div·class="where">where125 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·1189,·SHA:·5d7c1922225f55c116c958103921a86cb5416f658d19ceb4428fb21528622af5·...·]/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::Iter[·...·truncated·by·diffoscope;·len:·63,·SHA:·852041c2de8156fdddf9f71111c5ddf1a6b88aabd8c082f1a254f0b21c18ffa1·...·]/core/primitive.bool.html">bool</a>,126 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·135,·SHA:·51ff5f5c7ebd8440623ea71b125c5a5837e809e308fe1a13fbe19cddb941dbd9·...·]/core/primitive.bool.html">bool</a>,
Max diff block lines reached; 82777/313908 bytes (26.37%) of diff not shown.
311 KB
./usr/share/doc/rust-web-doc/html/alloc/collections/btree_map/struct.Iter.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·iterator·over·the·entries·of·a·`BTreeMap`."><title>Iter·in·alloc::collections::btree_map·-·Rust</title><script>·if·(window.location.protocol·!==·"file:")·document.write(`<link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../../static.files/SourceSerif4-Regular-46f98efaafac5295.ttf.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../../static.files/FiraSans-Regular-018c141bf0843ffd.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../../static.files/FiraSans-Medium-8f9a781e4970d388.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../../static.files/SourceCodePro-Regular-562dcc5011b6de7d.ttf.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../../static.files/SourceCodePro-Semibold-d899c5a5c4aeb14a.ttf.woff2">`)</script><link·rel="stylesheet"·href="../../../static.files/normalize-76eba96aa4d2e634.css"><link·rel="stylesheet"·href="../../../static.files/rustdoc-35f9e32502181f1e.css"><meta·name="rustdoc-vars"·data-root-path="../../../"·data-static-root-path="../../../static.files/"·data-current-crate="alloc"·data-themes=""·data-resource-suffix="1.78.0"·data-rustdoc-version="1.78.0"·data-channel="1.78.0"·data-search-js="search-42d8da7a6b9792c2.js"·data-settings-js="settings-4313503d2e1961c2.js"·><script·src="../../../static.files/storage-4c98445ec4002617.js"></script><script·defer·src="sidebar-items1.78.0.js"></script><script·defer·src="../../../static.files/main-12cf3b4f4f9dc36d.js"></script><noscript><link·rel="stylesheet"·href="../../../static.files/noscript-04d5337699b92874.css"></noscript><link·rel="alternate·icon"·type="image/png"·href="../../../static.files/favicon-16x16-8b506e7a72182f1c.png"><link·rel="alternate·icon"·type="image/png"·href="../../../static.files/favicon-32x32-422f7d1d52889060.png"><link·rel="icon"·type="image/svg+xml"·href="../../../static.files/favicon-2c020d218678b618.svg"></head><body·class="rustdoc·struct"><!--[if·lte·IE·11]><div·class="warning">This·old·browser·is·unsupported·and·will·most·likely·display·funky·things.</div><![endif]--><nav·class="mobile-topbar"><button·class="sidebar-menu-toggle"·title="show·sidebar"></button><a·class="logo-container"·href="../../../alloc/index.html"><img·class="rust-logo"·src="../../../static.files/rust-logo-151179464ae7ed46.svg"·alt=""></a></nav><nav·class="sidebar"><div·class="sidebar-crate"><a·class="logo-container"·href="../../../alloc/index.html"><img·class="rust-logo"·src="../../../static.files/rust-logo-151179464ae7ed46.svg"·alt="logo"></a><h2><a·href="../../../alloc/index.html">alloc</a><span·class="version">1.78.0</span></h2></div><h2·class="location"><a·href="#">Iter</a></h2><div·class="sidebar-elems"><section><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">Clone</a></li><li><a·href="#impl-Debug-for-Iter%3C'_,+K,+V%3E">Debug</a></li><li><a·href="#impl-Default-for-Iter%3C'a,+K,+V%3E">Default</a></li><li><a·href="#impl-DoubleEndedIterator-for-Iter%3C'a,+K,+V%3E">DoubleEndedIterator</a></li><li><a·href="#impl-ExactSizeIterator-for-Iter%3C'_,+K,+V%3E">ExactSizeIterator</a></li><li><a·href="#impl-FusedIterator-for-Iter%3C'_,+K,+V%3E">FusedIterator</a></li><li><a·href="#impl-Iterator-for-Iter%3C'a,+K,+V%3E">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">Freeze</a></li><li><a·href="#impl-RefUnwindSafe-for-Iter%3C'a,+K,+V%3E">RefUnwindSafe</a></li><li><a·href="#impl-Send-for-Iter%3C'a,+K,+V%3E">Send</a></li><li><a·href="#impl-Sync-for-Iter%3C'a,+K,+V%3E">Sync</a></li><li><a·href="#impl-Unpin-for-Iter%3C'a,+K,+V%3E">Unpin</a></li><li><a·href="#impl-UnwindSafe-for-Iter%3C'a,+K,+V%3E">UnwindSafe</a></li></ul><h3><a·href="#blanket-implementations">Blanket·Implementations</a></h3><ul·class="block·blanket-implementation"><li><a·href="#impl-Any-for-T">Any</a></li><li><a·href="#impl-Borrow%3CT%3E-for-T">Borrow&lt;T&gt;</a></li><li><a·href="#impl-BorrowMut%3CT%3E-for-T">BorrowMut&lt;T&gt;</a></li><li><a·href="#impl-From%3CT%3E-for-T">From&lt;T&gt;</a></li><li><a·href="#impl-Into%3CU%3E-for-T">Into&lt;U&gt;</a></li><li><a·href="#impl-IntoIterator-for-I">IntoIterator</a></li><li><a·href="#impl-ToOwned-for-T">ToOwned</a></li><li><a·href="#impl-TryFrom%3CU%3E-for-T">TryFrom&lt;U&gt;</a></li><li><a·href="#impl-TryInto%3CU%3E-for-T">TryInto&lt;U&gt;</a></li></ul></section><h2><a·href="index.html">In·alloc::collections::btree_map</a></h2></div></nav><div·class="sidebar-resizer"></div>1 <!DOCTYPE·html><html·lang="en"><head><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.write(`<link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../../static.files/SourceSerif4-Regular-46f98efaafac5295.ttf.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../../static.files/FiraSans-Regular-018c141bf0843ffd.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../../static.files/FiraSans-Medium-8f9a781e4970d388.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../../static.files/SourceCodePro-Regular-562dcc5011b6de7d.ttf.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../../static.files/SourceCodePro-Semibold-d899c5a5c4aeb14a.ttf.woff2">`)</script><link·rel="stylesheet"·href="../../../static.files/normalize-76eba96aa4d2e634.css"><link·rel="stylesheet"·href="../../../static.files/rustdoc-35f9e32502181f1e.css"><meta·name="rustdoc-vars"·data-root-path="../../../"·data-static-root-path="../../../static.files/"·data-current-crate="alloc"·data-themes=""·data-resource-suffix="1.78.0"·data-rustdoc-version="1.78.0"·data-channel="1.78.0"·data-search-js="search-42d8da7a6b9792c2.js"·data-settings-js="settings-4313503d2e1961c2.js"·><script·src="../../../static.files/storage-4c98445ec4002617.js"></script><script·defer·src="sidebar-items1.78.0.js"></script><script·defer·src="../../../static.files/main-12cf3b4f4f9dc36d.js"></script><noscript><link·rel="stylesheet"·href="../../../static.files/noscript-04d5337699b92874.css"></noscript><link·rel="alternate·icon"·type="image/png"·href="../../../static.files/favicon-16x16-8b506e7a72182f1c.png"><link·rel="alternate·icon"·type="image/png"·href="../../../static.files/favicon-32x32-422f7d1d52889060.png"><link·rel="icon"·type="image/svg+xml"·href="../../../static.files/favicon-2c020d218678b618.svg"></head><body·class="rustdoc·struct"><!--[if·lte·IE·11]><div·class="warning">This·old·browser·is·unsupported·and·will·most·likely·display·funky·things.</div><![endif]--><nav·class="mobile-topbar"><button·class="sidebar-menu-toggle"·title="show·sidebar"></button><a·class="logo-container"·href="../../../alloc/index.html"><img·class="rust-logo"·src="../../../static.files/rust-logo-151179464ae7ed46.svg"·alt=""></a></nav><nav·class="sidebar"><div·class="sidebar-crate"><a·class="logo-container"·href="../../../alloc/index.html"><img·class="rust-logo"·src="../../../static.files/rust-logo-151179464ae7ed46.svg"·alt="logo"></a><h2><a·href="../../../alloc/index.html">alloc</a><span·class="version">1.78.0</span></h2></div><h2·class="location"><a·href="#">Iter</a></h2><div·class="sidebar-elems"><section><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">Clone</a></li><li><a·href="#impl-Debug-for-Iter%3C'_,+K,+V%3E">Debug</a></li><li><a·href="#impl-Default-for-Iter%3C'a,+K,+V%3E">Default</a></li><li><a·href="#impl-DoubleEndedIterator-for-Iter%3C'a,+K,+V%3E">DoubleEndedIterator</a></li><li><a·href="#impl-ExactSizeIterator-for-Iter%3C'_,+K,+V%3E">ExactSizeIterator</a></li><li><a·href="#impl-FusedIterator-for-Iter%3C'_,+K,+V%3E">FusedIterator</a></li><li><a·href="#impl-Iterator-for-Iter%3C'a,+K,+V%3E">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">Freeze</a></li><li><a·href="#impl-RefUnwindSafe-for-Iter%3C'a,+K,+V%3E">RefUnwindSafe</a></li><li><a·href="#impl-Send-for-Iter%3C'a,+K,+V%3E">Send</a></li><li><a·href="#impl-Sync-for-Iter%3C'a,+K,+V%3E">Sync</a></li><li><a·href="#impl-Unpin-for-Iter%3C'a,+K,+V%3E">Unpin</a></li><li><a·href="#impl-UnwindSafe-for-Iter%3C'a,+K,+V%3E">UnwindSafe</a></li></ul><h3><a·href="#blanket-implementations">Blanket·Implementations</a></h3><ul·class="block·blanket-implementation"><li><a·href="#impl-Any-for-T">Any</a></li><li><a·href="#impl-Borrow%3CT%3E-for-T">Borrow&lt;T&gt;</a></li><li><a·href="#impl-BorrowMut%3CT%3E-for-T">BorrowMut&lt;T&gt;</a></li><li><a·href="#impl-From%3CT%3E-for-T">From&lt;T&gt;</a></li><li><a·href="#impl-Into%3CU%3E-for-T">Into&lt;U&gt;</a></li><li><a·href="#impl-IntoIterator-for-I">IntoIterator</a></li><li><a·href="#impl-ToOwned-for-T">ToOwned</a></li><li><a·href="#impl-TryFrom%3CU%3E-for-T">TryFrom&lt;U&gt;</a></li><li><a·href="#impl-TryInto%3CU%3E-for-T">TryInto&lt;U&gt;</a></li></ul></section><h2><a·href="index.html">In·alloc::collections::btree_map</a></h2></div></nav><div·class="sidebar-resizer"></div>
2 ····<main><div·class="width-limiter"><nav·class="sub"><form·class="search-form"><span></span><div·id="sidebar-button"·tabindex="-1"><a·href="../../../alloc/all.html"·title="show·sidebar"></a></div><input·class="search-input"·name="search"·aria-label="Run·search·in·the·documentation"·autocomplete="off"·spellcheck="false"·placeholder="Click·or·press·‘S’·to·search,·‘?’·for·more·options…"·type="search"><div·id="help-button"·tabindex="-1"><a·href="../../../help.html"·title="help">?</a></div><div·id="settings-menu"·tabindex="-1"><a·href="../../../settings.html"·title="settings"><img·width="22"·height="22"·alt="Change·settings"·src="../../../static.files/wheel-7b819b6101059cd0.svg"></a></div></form></nav><section·id="main-content"·class="content"><div·class="main-heading"><h1>Struct·<a·href="../../index.html">alloc</a>::<wbr><a·href="../index.html">collections</a>::<wbr><a·href="index.html">btree_map</a>::<wbr><a·class="struct"·href="#">Iter</a><button·id="copy-path"·title="Copy·item·path·to·clipboard"><img·src="../../../static.files/clipboard-7571035ce49a181d.svg"·width="19"·height="18"·alt="Copy·item·path"></button></h1><span·class="out-of-band"><span·class="since"·title="Stable·since·Rust·version·1.0.0">1.0.0</span>···<a·class="src"·href="../../../src/alloc/collections/btree/map.rs.html#354-357">source</a>···<button·id="toggle-all-docs"·title="collapse·all·docs">[<span>&#x2212;</span>]</button></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 ····<main><div·class="width-limiter"><nav·class="sub"><form·class="search-form"><span></span><div·id="sidebar-button"·tabindex="-1"><a·href="../../../alloc/all.html"·title="show·sidebar"></a></div><input·class="search-input"·name="search"·aria-label="Run·search·in·the·documentation"·autocomplete="off"·spellcheck="false"·placeholder="Click·or·press·‘S’·to·search,·‘?’·for·more·options…"·type="search"><div·id="help-button"·tabindex="-1"><a·href="../../../help.html"·title="help">?</a></div><div·id="settings-menu"·tabindex="-1"><a·href="../../../settings.html"·title="settings"><img·width="22"·height="22"·alt="Change·settings"·src="../../../static.files/wheel-7b819b6101059cd0.svg"></a></div></form></nav><section·id="main-content"·class="content"><div·class="main-heading"><h1>Struct·<a·href="../../index.html">alloc</a>::<wbr><a·href="../index.html">collections</a>::<wbr><a·href="index.html">btree_map</a>::<wbr><a·class="struct"·href="#">Iter</a><button·id="copy-path"·title="Copy·item·path·to·clipboard"><img·src="../../../static.files/clipboard-7571035ce49a181d.svg"·width="19"·height="18"·alt="Copy·item·path"></button></h1><span·class="out-of-band"><span·class="since"·title="Stable·since·Rust·version·1.0.0">1.0.0</span>···<a·class="src"·href="../../../src/alloc/collections/btree/map.rs.html#354-357">source</a>···<button·id="toggle-all-docs"·title="collapse·all·docs">[<span>&#x2212;</span>]</button></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>
3 <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·its3 <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
4 documentation·for·more.</p>4 documentation·for·more.</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-Iter%3C'_,+K,+V%3E"·class="impl"><a·class="src·rightside"·href="../../../src/alloc/collections/btree/map.rs.html#1553-1557">source</a><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:·3868,·SHA:·0b56b6c7ef9204647d9a17cae1a87a08bc90f3d5a70b30d5ee68d85d45e28147·...·]/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></details><h2·id="trait-implementations"·class="section-header">Trait·Implementations<a·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"><a·class="src·rightside"·href="../../../src/alloc/collections/btree/map.rs.html#1553-1557">source</a><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.78.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:·4084,·SHA:·dc578064a7aebe0bb50a9e649e02acf259d2f58f1a2d6e66632b1207bccad538·...·]/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>
  
6 <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 <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();
7 <span·class="macro">assert_eq!</span>(iter.len(),·<span·class="number">0</span>);</code></pre><a·class="test-arrow"·target="_blank"·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">Run</a></div>7 <span·class="macro">assert_eq!</span>(iter.len(),·<span·class="number">0</span>);</code></pre><a·class="test-arrow"·target="_blank"·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">Run</a></div>
8 </div></details></div></details><details·class="toggle·implementors-toggle"·open><summary><section·id="impl-DoubleEndedIterator-for-Iter%3C'a,+K,+V%3E"·class="impl"><a·class="src·rightside"·href="../../../src/alloc/collections/btree/map.rs.html#1534-1543">source</a><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:·53fbd1cb9f0841aeb4dcd9c9708ce50c5c3c0aaaf77c03dafa11be166cf6cc6e·...·]/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-Iter%3C'a,+K,+V%3E"·class="impl"><a·class="src·rightside"·href="../../../src/alloc/collections/btree/map.rs.html#1534-1543">source</a><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.78.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:·342e4145c81a5a03c65d37b5389dcee6b40b38ba45330d77581d58b4d4b05634·...·]/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.78.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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(B,·Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.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.78.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.7[·...·truncated·by·diffoscope;·len:·3,·SHA:·7b1bd53949b752d143d871408483b5382371b5bc48d195d0c040ec93cfa2748b·...·]/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:·b3a5d6383debff0cac836c5889a757f11b019bc049778c518e60e4d37a3c4da1·...·]/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.78.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:·d66ed7e195a53e9945339ef1976aed455dcf80228d8e5b7b0c69a64c3983fea1·...·]/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.78.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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(B,·Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/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:·d11fd274e41827c1daee0c80a6ab5f978a613ab26297cb460535fef32cff8551·...·]/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.78.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:·c264047794019a6dcf05728ba6a6ee1f8f07c7209958b3366ba94546b527ecdc·...·]/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.78.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:·7197,·SHA:·6721e662081c707cd9e247dd099b07e2e74fc70c2fa09e7957e0dd341d7b852f·...·]/core/primitive.reference.html">&amp;'a·V</a>)&gt;<div·class="where">where17 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·8037,·SHA:·8c6ed35cdec4d4cb7d5bb83f27b01d6ef262275c0a5286803a1152b5fb8fe100·...·]/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:·785,·SHA:·f8d59ed04317f70e1abf7e09e702f9410ea7aada54fbcceb6e8845fe2b443701·...·]/core/primitive.reference.html">&amp;'a·V</a>)&gt;<div·class="where">where18 ····(<a·class="primitive"·href="https://doc.rust-lang.org/1.78.0/core/primitive.reference.html">&amp;'a·K</a>,·<a·class="primitive"·href="https://doc.rust-lang.org/1.78.0/core/primitive.reference.html">&amp;'a·V</a>):·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/cmp/trait[·...·truncated·by·diffoscope;·len:·977,·SHA:·02a62a39837b0f49085284493c6ad5bd0d516b9eae0807b1c4e13b6f51d37d13·...·]/core/primitive.reference.html">&amp;'a·V</a>)&gt;<div·class="where">where
19 ····(<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:·d1c1ba4728719bf1fd15e134c828c45d681cd9edd6726364e9ea05893d5c5cd3·...·]/core/primitive.usize.html">usize</a>&gt;(19 ····(<a·class="primitive"·href="https://doc.rust-lang.org/1.78.0/core/primitive.reference.html">&amp;'a·K</a>,·<a·class="primitive"·href="https://doc.rust-lang.org/1.78.0/core/primitive.reference.html">&amp;'a·V</a>):·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/cmp/trait[·...·truncated·by·diffoscope;·len:·785,·SHA:·28a74dcef0587c559da99047dc8aed5333e5bdf3770247682db58231173834f7·...·]/core/primitive.usize.html">usize</a>&gt;(
20 ····&amp;mut·self20 ····&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.78.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.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title=[·...·truncated·by·diffoscope;·len:·381,·SHA:·88c48923c9b7ea5cc47c1087c60e09656e81d4671c58071ba2bef826335388bc·...·]/core/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:·746,·SHA:·99cc415a31b91c57f7eeb82ad0d2d1ba424489bee49de37c86a4ea21c663ccda·...·]/core/primitive.usize.html">usize</a><div·class="where">where22 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experiment[·...·truncated·by·diffoscope;·len:·866,·SHA:·945d2d86f0c4c5ca3e3ee3b181d18b2bbea57ee1a5a7efe16c0c915a5bf2c3ad·...·]/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:·2953,·SHA:·2e5656679d63218ae5d5d1b1a4dfc8d59cd28ba505be6dd08ba60caae9804629·...·]/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.78.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:·3433,·SHA:·49d1274908fa1d1e8e571a7a381dde77211770148791bbfb1cd851b4f911e155·...·]/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.78.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"><a·class="src·rightside"·href="../../../src/core/it[·...·truncated·by·diffoscope;·len:·602,·SHA:·cfe4c4d300dddc2abdc2f8194eb969c68b2240c28239969b5be2af6a564ed8cc·...·]/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.78.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"><a·class="src·rightside"·hr[·...·truncated·by·diffoscope;·len:·746,·SHA:·f1f70d650c102c8658e13890c7dbfc87418f07e7b522246fb579ec434ef64f7c·...·]/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.78.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:·1041,·SHA:·a281d174c9671021427f0b458ac94e87746ac44730475aa725652c6c15e2b972·...·]/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.78.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.78.0/core/iter/traits/it[·...·truncated·by·diffoscope;·len:·1233,·SHA:·f677df2d893dfe0dc1a9d31ebb0ba71a346d265781813e0d664d3f18369b6163·...·]/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.78.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:·b9001dd3131b1425179c94853e1b90fff0f7169b9570e86cd50c6b7fbf1ee8a5·...·]/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.78.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:·98627729f77dcf1c9d258f343354ba600b7134c6b3929080f231e8de7155b70b·...·]/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.78.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.78.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.78.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"><a·class="src·rightside"·href="../../../src/[·...·truncated·by·diffoscope;·len:·279,·SHA:·f2c34c2e64e77c66684f837812ebc4a94c81b2ad5862cc0131f80c3ce89e008a·...·]/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.78.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"><a·class="src·rights[·...·truncated·by·diffoscope;·len:·375,·SHA:·58419346f92e1709dadb70cc3cf356e3cd27972451bdc6b4fc4267e6f7e8bdae·...·]/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.78.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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::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:·d75758e0f8262eeea27445cec43f13d84f0c02ba4e03c0c54d041f9ab1965e0f·...·]/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.78.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:·98f6effefa44d759c249143d83623f0055d937382bfc398b7e1f5e92cd413657·...·]/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.78.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:·676,·SHA:·9ae42ed293737a3dd44c1ee9d98c6aabb1552fbb9d203cb852ee9fcc7834a6ca·...·]/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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·820,·SHA:·a664bbcbc0891663662e4eb7b4394d0fcd72e568136fc4d34097fea242cc32e7·...·]/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.78.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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·140,·SHA:·752f473b57e7444ebfddf5ea7fd40a332e83ec55524a6c31b5ee0f82a5dea819·...·]/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"><a·class="src·rightside"·href="../../../src/cor[·...·truncated·by·diffoscope;·len:·297,·SHA:·f01e44d4caf6c6ad80b37656b9300f7111340711dcd74d70867b5a652dbfb538·...·]/core/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.78.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"><a·class="src·rightside[·...·truncated·by·diffoscope;·len:·393,·SHA:·2e2aa7c9c9c087e7b346da376749064ab8c1894795a2f0a0f646cdc8c7bea997·...·]/core/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.78.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:·788,·SHA:·b788f412af946d2bd7646ba39a8c316ebfa88109f9626dbad9bf9964f975cd0c·...·]/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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·956,·SHA:·faba0521e870dbbd26d466fadba3522e7d29013a9b86376fffafffac11a57e0e·...·]/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.78.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"><a·class="src·rightside"·href="../../../src/co[·...·truncated·by·diffoscope;·len:·276,·SHA:·e337ee1b810d3ec0480569c4ed323ebf0a2315c8ae3c522a73fcca3aa8e6efb3·...·]/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.78.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"><a·class="src·rightsid[·...·truncated·by·diffoscope;·len:·372,·SHA:·03eea0861575eb80d3f7a87a3ba747adb1a33fe7e9ce72aa2172e7a287c63a94·...·]/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.78.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.78.0/core/iter/adapte[·...·truncated·by·diffoscope;·len:·175,·SHA:·16fe7225bf05b478e2828b347c3d23ded9a22f89d8887a2c65d9f7b3faf1b0e7·...·]/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"><a·class="src·rightside"·href="../../../src/c[·...·truncated·by·diffoscope;·len:·306,·SHA:·a9bc004bf639fa188165a336061c6c98ec7ff9d266a18f10db200dfa9a880b88·...·]/core/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.78.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"><a·class="src·rightsi[·...·truncated·by·diffoscope;·len:·402,·SHA:·7689a974f800fd069d1b4453ef62d6d6ad1b654462d624d36e3672051d502030·...·]/core/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.78.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:·946,·SHA:·877b8718d9df1464a912dd50eef16402225367db4e4b26484b5ee20d30644524·...·]/core/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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·1138,·SHA:·f6ae06b7de8e94df014341c5cf589a5e4a1298367b2ef7a968ec499c5170a70e·...·]/core/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.78.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:·552b3dd2132886d024e4d5bd2554611e25c1f068adaaf23ecf80da81d31997ef·...·]/core/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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·1058,·SHA:·b390dbdda8d7e93604b5ecd906a93efd03fe19bdaf41cf12893fd361bf974307·...·]/core/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.78.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:·875,·SHA:·5c5c44422f75cbb66ebcf54bea70536713b810843cc484b051aed088c6422d78·...·]/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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·1067,·SHA:·415d32e1211c35d3bb405de1d6e51c2102c14cadc3333894f063148dbe0b1f69·...·]/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:·543,·SHA:·f199bafab360be9b80e9f45c5ba799a52348b742ddb0fa9afdb1624729c36e58·...·]/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.78.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:·687,·SHA:·7f5256104c35c5948a2cb42b55f3048c9d2887e48a4a8226537a284f959c562a·...·]/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.78.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"><a·class="src·rightside"·href="../../../src/core/iter/t[·...·truncated·by·diffoscope;·len:·296,·SHA:·aea014801138aeee574964545b1e9ad297288a120113db6844b569d2b183e0a7·...·]/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.78.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"><a·class="src·rightside"·href="[·...·truncated·by·diffoscope;·len:·392,·SHA:·4e7da68f7be2622ef173653eca78d58e1f202b544a2e6abd14d8335c298c93a7·...·]/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.78.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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(<a·class="primitive"·href="https://doc.rust-lang.org/1.78.0/core/primitive.reference.html">&amp;mut·St</a>,·Self::<a·class="associatedty[·...·truncated·by·diffoscope;·len:·449,·SHA:·f12c268a8a8111b9e7126ad78bf5523a63733caa63d187c4fe792309ea41acdf·...·]/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:·474,·SHA:·c0ed850df640319d919b8c053c540caa158602207623bed65abbcd69ad9d2c9d·...·]/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.78.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.78.0/core/iter/trai[·...·truncated·by·diffoscope;·len:·594,·SHA:·02960742fa7892efaa08f289ce85865fc5efb6a4cd138c22e3566ca6fc727d78·...·]/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.78.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.78.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:·4d1f54658fd1c005b101a2e27b0da3c6ee0cbe2d891660c65470bfec01fa46f6·...·]/core/iter/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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·976,·SHA:·2a9182f6fe88e0b8a9b1ae1f46cace940cc0b8736033c354c0f0ccbf1c196e7a·...·]/core/iter/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.78.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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;[Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtyp[·...·truncated·by·diffoscope;·len:·135,·SHA:·0b06a6094d42ccbc8bce5b01c4383961fe7f1967f05e4c9f1ff33e71e425fb26·...·]/core/primitive.array.html">N</a>])·-&gt;·R,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iter_map_windows</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/87155">#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.78.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"><a·class="src·rightside"·href="../../../src/core[·...·truncated·by·diffoscope;·len:·262,·SHA:·6125a8b2b88486b3735bbd00905fe9ae55b6eb1491c8a493be9c8121dc3cb440·...·]/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.78.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"><a·class="src·rightside"[·...·truncated·by·diffoscope;·len:·358,·SHA:·d91b2ab18e0ce069e262cf523c6ef961f56eecad042ea1e9bcefe33cff28fc8f·...·]/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:·601,·SHA:·bdf3796aa87e911258d56122ffdaa3f8591a5c9db4ed6fd89c3dfd3660787f78·...·]/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.78.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.78.0/core/op[·...·truncated·by·diffoscope;·len:·745,·SHA:·424783f22102f4446d3ad4d362b1aafdb7531fa777213f97ee138aa878f67bd1·...·]/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.78.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:·694,·SHA:·db4bb2630979aa4504432e8d422265d943c9063bcf3d2e3be970003014226f1e·...·]/core/primitive.reference.html">&amp;mut·Self</a><div·class="where">where69 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·838,·SHA:·9b4fd8df7f41e9a76fd4cfca0a233b74b9bd27c3fe8228248abc3f940425a3e3·...·]/core/primitive.reference.html">&amp;mut·Self</a><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:·331,·SHA:·d13641714c275840abbb473011613a4e19924a453f5e1b83912681a9b7c5579b·...·]/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.78.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.78.0/core/it[·...·truncated·by·diffoscope;·len:·427,·SHA:·ecfaaac5d1d10c1bc4fcee9a050af0a268bee0b528c2d8ea4e9774440bd8a279·...·]/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.78.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.78.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:·d76c3fcf86c63211032a6b22dc5924ef552b1ad26b12e19f15d2f1d5b3d7e394·...·]/core/primitive.reference.html">&amp;mut·E</a><div·class="where">where72 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.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.78.0/core/iter/tr[·...·truncated·by·diffoscope;·len:·728,·SHA:·01937c2dc314c259495665570ae249c94b4a5b0719718f5f1188e6fc64ecf487·...·]/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.78.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.78.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:·759,·SHA:·3cf174fac64a83c8e22066c3d77741118f89b13411537fc82c1004faa5c9e2ae·...·]/core/primitive.tuple.html">(B,·B)</a><div·class="where">where74 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experiment[·...·truncated·by·diffoscope;·len:·879,·SHA:·e773b2222c92d001e295030cb47a780ab0c1132d7fc8e9e3a98de4f532e6c520·...·]/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.78.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.78.0/core/default/trait.Default.html"·title="trait·core::default::Default">Default</a>·+·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/collect/trait.Extend.html"·title="trait·core::iter::traits::collec[·...·truncated·by·diffoscope;·len:·95,·SHA:·8b3be1d0042cae0550f865faf5849221240bdf04eb1b2107605b72d48c3ad29c·...·]/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:·281bbd5137cae68dd8057d013e9c9f311461e746663120304e3f6adace77f784·...·]/core/primitive.usize.html">usize</a><div·class="where">where77 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·995,·SHA:·bec3765fdab56713186e2454cd84738b5b28e3280a2f3d5a25cefdbc3089b520·...·]/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.78.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>·+·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/double_ended/trait.DoubleEndedIterator.html"·title="trait·core::iter::trai[·...·truncated·by·diffoscope;·len:·132,·SHA:·e5b2cf5f56946ede1e190ed09879c5821e2de04cf8e5d145142eeb40c6340982·...·]/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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(<a·class="primitive"·href="https://doc.rust-lang.org/1.78.0/core/primitive.reference.html">&amp;T</a>)·-&gt;·<a·class="primitive"·href="[·...·truncated·by·diffoscope;·len:·32,·SHA:·63d052a8ced32bf927ffadd7e884c08caf4970e85dfdf6be0e568d49b174da96·...·]/core/primitive.bool.html">bool</a>,</div></h4></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:·dc6a465df534b0392c5280e79e5249847890045561099b2cfc44bfabc4801d8d·...·]/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.78.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:·0c224636c18baa273f69de21f90083317f2ea0b7367a3f0d0f1c0ace55a36f79·...·]/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.78.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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·135,·SHA:·51ff5f5c7ebd8440623ea71b125c5a5837e809e308fe1a13fbe19cddb941dbd9·...·]/core/primitive.bool.html">bool</a>,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iter_is_partitioned</code>&nbsp;<a·href="https://github.com/rust-lang/rust/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:·bd8fce4ee431c619c98780c4d520e8db93f1e034f12843ffaff5744b7ce2190b·...·]/core/iter/traits/iterator/trait.Iterator.html#method.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.78.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:·2c74873f4e5ba70004a1c7edd1cc3f9e2d91271295dd1591e2d26848df4c02ba·...·]/core/iter/traits/iterator/trait.Iterator.html#method.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.78.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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(B,·Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.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.78.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:·7b4fc32e7634ae85c682a97099be267837713d7e4831893b617ca652f57a89da·...·]/core/iter/traits/iterator/trait.Iterator.html#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.78.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:·52912e82c4b0a760d06f77eb4ee3a59ba70dd76cb532954900c73ae94c652674·...·]/core/iter/traits/iterator/trait.Iterator.html#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.78.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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.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.78.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.78.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"><a·class="src·rightside"·href="../../../src/cor[·...·truncated·by·diffoscope;·len:·139,·SHA:·dc7fb7a70636459a0d7de28cbcb454050f39c184bab178c95c524a6eb9ca51cf·...·]/core/iter/traits/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.78.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"><a·class="src·rightside[·...·truncated·by·diffoscope;·len:·211,·SHA:·924e062acd8127e8d6158162219ee5d57a941854e14063d21d7768edae549431·...·]/core/iter/traits/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.78.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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(B,·Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::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:·2c738ecc68200afa2467bef085de14dcb642dbaac77c4529948f5e259e66691d·...·]/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.78.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:·b60215068a6d9721be05f81098c51167d7138c4042f140cad42f77c4df43f597·...·]/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.78.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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·352,·SHA:·e7c3c296abe2c0a183967153e4ae7fd50bafa2ae7088e3e78b3b48fee253adc6·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::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:·c3f1d50e276def36966943119961a20b09cab3be33483fe4d48d7f322489534b·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_reduce"·class="fn">try_reduce</a>&lt;F,·R&gt;(99 operation.·<a·href="https://doc.rust-lang.org/1.78.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:·7a18fdd041b1a001b4a8feb289ee127fd9240232239269eb35dc3b8f74783ec9·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_reduce"·class="fn">try_reduce</a>&lt;F,·R&gt;(
100 ····&amp;mut·self,100 ····&amp;mut·self,
101 ····f:·F101 ····f:·F
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.78.0/core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&gt;::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/ops/try_trait/trait.Try.html#associatedtype.Residual"·title="type[·...·truncated·by·diffoscope;·len:·754,·SHA:·6fb4dfdb6b4da68921c1e7f8b75d99cf293d58318d684a840254ce9576957bea·...·]/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.78.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:·68,·SHA:·e7e11f257edcac749a5883ad9a3aa42e6e965be419f967b36caa7afd3b36d7c9·...·]/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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·140,·SHA:·c27972e6fa3464c9476eaa185e8657edb6bb294f148403f3d079285294a9f909·...·]/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·=·Self::<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.78.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.78.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</[·...·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·the106 ····&lt;R·as·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&gt;::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/ops/try_trait/trait.Try.html#associatedtype.Residual"·title="type[·...·truncated·by·diffoscope;·len:·412,·SHA:·22b8cbb007e5cce82b9d13a65bfa56aa8d83c32541fac25f4d9b3857b0540908·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;&gt;,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iterator_try_reduce</code>&nbsp;<a·href="https://github.com/rust-lang/rust/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"><a·class="src·rightside"·href="../../../src/core/i[·...·truncated·by·diffoscope;·len:·284,·SHA:·fbacd9a305d3a60d42d9adcc5ea9e5f579f4ff5d970999f333eaf0c7f9baf66c·...·]/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.78.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"><a·class="src·rightside"·h[·...·truncated·by·diffoscope;·len:·380,·SHA:·29c4004d4d8b0c8c9dfe9023f8b2c5ef801d9dc4688893035d182c1ae774c453·...·]/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.78.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:·754,·SHA:·e3afac523bd4c054d94fbbb6c5c856ac78a6359550526fa0726732b36529c33d·...·]/core/primitive.bool.html">bool</a><div·class="where">where109 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·922,·SHA:·f4fd532c280e18f28bd6dda6c2a129e2e92114b67f27235bb5fd39f725be9c43·...·]/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.78.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:·884,·SHA:·32570d141a71827f9ac19bf566a51ca4814ccafaf6f8a961920ce107fe9657d7·...·]/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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·1076,·SHA:·2dd9de8adaee4a5ee96501d9a58bfac2fea00ba8d78b834bfca29949b3afe18b·...·]/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.78.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:[·...·truncated·by·diffoscope;·len:·883,·SHA:·f441e2966ff8db4214e57fcd74f81262d6e371aa51cea97ebde5921e81b4da79·...·]/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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·1051,·SHA:·ecc0b8fccd861464760f9ae047ff6ab98c91a1db010cb5fa59a8c2ab883db7c4·...·]/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.78.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::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·returns115 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·130,·SHA:·130a13019dc175d02304b4f550157e2f13ac15c2f25a979c74161d10b146ab89·...·]/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/cor[·...·truncated·by·diffoscope;·len:·143,·SHA:·ec4fb002625b166504031522e52a66812b279e6735a67cb718813205909c3fb7·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_find"·class="fn">try_find</a>&lt;F,·R&gt;(116 the·first·non-none·result.·<a·href="https://doc.rust-lang.org/1.78.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:·8ced1b10e78750774c5c8ed995ed83dcd13983aa75d329acf8069da106ab9f4a·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_find"·class="fn">try_find</a>&lt;F,·R&gt;(
117 ····&amp;mut·self,117 ····&amp;mut·self,
118 ····f:·F118 ····f:·F
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</[·...·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">where119 )·-&gt;·&lt;&lt;R·as·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&gt;::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/ops/try_trait/trait.Try.html#associatedtype.Residual"·title="type[·...·truncated·by·diffoscope;·len:·626,·SHA:·95f9831257b68862cbcbf54f0ad2ff4e597a4c9f763112d1da8a0897dadcf872·...·]/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.78.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::Iterator::Item">Item</a>)·-&gt;·R,121 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·R,
122 ····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;,122 ····R:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.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.78.0/core/primitive.bool.html">bool</a>&gt;,
123 ····&lt;R·as·<a·class="trait"·href="../../../core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</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·returns123 ····&lt;R·as·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&gt;::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/ops/try_trait/trait.Try.html#associatedtype.Residual"·title="type[·...·truncated·by·diffoscope;·len:·412,·SHA:·22b8cbb007e5cce82b9d13a65bfa56aa8d83c32541fac25f4d9b3857b0540908·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;&gt;,</div></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
124 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"><a·class="src·rightside"·href="../../../src/cor[·...·truncated·by·diffoscope;·len:·419,·SHA:·4337d283573b9683aaa605a7d2417318ef2a03902876e7da2ec26f2a5febf794·...·]/core/primitive.usize.html">usize</a>&gt;<div·class="where">where124 the·first·true·result·or·the·first·error.·<a·href="https://doc.rust-lang.org/1.78.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"><a·class="src·rightside[·...·truncated·by·diffoscope;·len:·539,·SHA:·04e329705f11ed9ec269a68b0b75ac4ab26c78e4316a571ee9336c28bbca6359·...·]/core/primitive.usize.html">usize</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.78.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
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::Iter[·...·truncated·by·diffoscope;·len:·901,·SHA:·a6eb7314148a1006184790a26873440fac678952c99874de84cb66644e250c0b·...·]/core/primitive.usize.html">usize</a>&gt;<div·class="where">where126 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·1093,·SHA:·623dbacabfe45799103c799fb60a4d212ceb8759ff853a11209a07793257c9cd·...·]/core/primitive.usize.html">usize</a>&gt;<div·class="where">where
Max diff block lines reached; 84777/317825 bytes (26.67%) of diff not shown.
300 KB
./usr/share/doc/rust-web-doc/html/alloc/collections/btree_map/struct.IterMut.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="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.write(`<link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../../static.files/SourceSerif4-Regular-46f98efaafac5295.ttf.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../../static.files/FiraSans-Regular-018c141bf0843ffd.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../../static.files/FiraSans-Medium-8f9a781e4970d388.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../../static.files/SourceCodePro-Regular-562dcc5011b6de7d.ttf.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../../static.files/SourceCodePro-Semibold-d899c5a5c4aeb14a.ttf.woff2">`)</script><link·rel="stylesheet"·href="../../../static.files/normalize-76eba96aa4d2e634.css"><link·rel="stylesheet"·href="../../../static.files/rustdoc-35f9e32502181f1e.css"><meta·name="rustdoc-vars"·data-root-path="../../../"·data-static-root-path="../../../static.files/"·data-current-crate="alloc"·data-themes=""·data-resource-suffix="1.78.0"·data-rustdoc-version="1.78.0"·data-channel="1.78.0"·data-search-js="search-42d8da7a6b9792c2.js"·data-settings-js="settings-4313503d2e1961c2.js"·><script·src="../../../static.files/storage-4c98445ec4002617.js"></script><script·defer·src="sidebar-items1.78.0.js"></script><script·defer·src="../../../static.files/main-12cf3b4f4f9dc36d.js"></script><noscript><link·rel="stylesheet"·href="../../../static.files/noscript-04d5337699b92874.css"></noscript><link·rel="alternate·icon"·type="image/png"·href="../../../static.files/favicon-16x16-8b506e7a72182f1c.png"><link·rel="alternate·icon"·type="image/png"·href="../../../static.files/favicon-32x32-422f7d1d52889060.png"><link·rel="icon"·type="image/svg+xml"·href="../../../static.files/favicon-2c020d218678b618.svg"></head><body·class="rustdoc·struct"><!--[if·lte·IE·11]><div·class="warning">This·old·browser·is·unsupported·and·will·most·likely·display·funky·things.</div><![endif]--><nav·class="mobile-topbar"><button·class="sidebar-menu-toggle"·title="show·sidebar"></button><a·class="logo-container"·href="../../../alloc/index.html"><img·class="rust-logo"·src="../../../static.files/rust-logo-151179464ae7ed46.svg"·alt=""></a></nav><nav·class="sidebar"><div·class="sidebar-crate"><a·class="logo-container"·href="../../../alloc/index.html"><img·class="rust-logo"·src="../../../static.files/rust-logo-151179464ae7ed46.svg"·alt="logo"></a><h2><a·href="../../../alloc/index.html">alloc</a><span·class="version">1.78.0</span></h2></div><h2·class="location"><a·href="#">IterMut</a></h2><div·class="sidebar-elems"><section><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">Debug</a></li><li><a·href="#impl-Default-for-IterMut%3C'a,+K,+V%3E">Default</a></li><li><a·href="#impl-DoubleEndedIterator-for-IterMut%3C'a,+K,+V%3E">DoubleEndedIterator</a></li><li><a·href="#impl-ExactSizeIterator-for-IterMut%3C'_,+K,+V%3E">ExactSizeIterator</a></li><li><a·href="#impl-FusedIterator-for-IterMut%3C'_,+K,+V%3E">FusedIterator</a></li><li><a·href="#impl-Iterator-for-IterMut%3C'a,+K,+V%3E">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">!UnwindSafe</a></li><li><a·href="#impl-Freeze-for-IterMut%3C'a,+K,+V%3E">Freeze</a></li><li><a·href="#impl-RefUnwindSafe-for-IterMut%3C'a,+K,+V%3E">RefUnwindSafe</a></li><li><a·href="#impl-Send-for-IterMut%3C'a,+K,+V%3E">Send</a></li><li><a·href="#impl-Sync-for-IterMut%3C'a,+K,+V%3E">Sync</a></li><li><a·href="#impl-Unpin-for-IterMut%3C'a,+K,+V%3E">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">Any</a></li><li><a·href="#impl-Borrow%3CT%3E-for-T">Borrow&lt;T&gt;</a></li><li><a·href="#impl-BorrowMut%3CT%3E-for-T">BorrowMut&lt;T&gt;</a></li><li><a·href="#impl-From%3CT%3E-for-T">From&lt;T&gt;</a></li><li><a·href="#impl-Into%3CU%3E-for-T">Into&lt;U&gt;</a></li><li><a·href="#impl-IntoIterator-for-I">IntoIterator</a></li><li><a·href="#impl-TryFrom%3CU%3E-for-T">TryFrom&lt;U&gt;</a></li><li><a·href="#impl-TryInto%3CU%3E-for-T">TryInto&lt;U&gt;</a></li></ul></section><h2><a·href="index.html">In·alloc::collections::btree_map</a></h2></div></nav><div·class="sidebar-resizer"></div>1 <!DOCTYPE·html><html·lang="en"><head><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.write(`<link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../../static.files/SourceSerif4-Regular-46f98efaafac5295.ttf.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../../static.files/FiraSans-Regular-018c141bf0843ffd.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../../static.files/FiraSans-Medium-8f9a781e4970d388.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../../static.files/SourceCodePro-Regular-562dcc5011b6de7d.ttf.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../../static.files/SourceCodePro-Semibold-d899c5a5c4aeb14a.ttf.woff2">`)</script><link·rel="stylesheet"·href="../../../static.files/normalize-76eba96aa4d2e634.css"><link·rel="stylesheet"·href="../../../static.files/rustdoc-35f9e32502181f1e.css"><meta·name="rustdoc-vars"·data-root-path="../../../"·data-static-root-path="../../../static.files/"·data-current-crate="alloc"·data-themes=""·data-resource-suffix="1.78.0"·data-rustdoc-version="1.78.0"·data-channel="1.78.0"·data-search-js="search-42d8da7a6b9792c2.js"·data-settings-js="settings-4313503d2e1961c2.js"·><script·src="../../../static.files/storage-4c98445ec4002617.js"></script><script·defer·src="sidebar-items1.78.0.js"></script><script·defer·src="../../../static.files/main-12cf3b4f4f9dc36d.js"></script><noscript><link·rel="stylesheet"·href="../../../static.files/noscript-04d5337699b92874.css"></noscript><link·rel="alternate·icon"·type="image/png"·href="../../../static.files/favicon-16x16-8b506e7a72182f1c.png"><link·rel="alternate·icon"·type="image/png"·href="../../../static.files/favicon-32x32-422f7d1d52889060.png"><link·rel="icon"·type="image/svg+xml"·href="../../../static.files/favicon-2c020d218678b618.svg"></head><body·class="rustdoc·struct"><!--[if·lte·IE·11]><div·class="warning">This·old·browser·is·unsupported·and·will·most·likely·display·funky·things.</div><![endif]--><nav·class="mobile-topbar"><button·class="sidebar-menu-toggle"·title="show·sidebar"></button><a·class="logo-container"·href="../../../alloc/index.html"><img·class="rust-logo"·src="../../../static.files/rust-logo-151179464ae7ed46.svg"·alt=""></a></nav><nav·class="sidebar"><div·class="sidebar-crate"><a·class="logo-container"·href="../../../alloc/index.html"><img·class="rust-logo"·src="../../../static.files/rust-logo-151179464ae7ed46.svg"·alt="logo"></a><h2><a·href="../../../alloc/index.html">alloc</a><span·class="version">1.78.0</span></h2></div><h2·class="location"><a·href="#">IterMut</a></h2><div·class="sidebar-elems"><section><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">Debug</a></li><li><a·href="#impl-Default-for-IterMut%3C'a,+K,+V%3E">Default</a></li><li><a·href="#impl-DoubleEndedIterator-for-IterMut%3C'a,+K,+V%3E">DoubleEndedIterator</a></li><li><a·href="#impl-ExactSizeIterator-for-IterMut%3C'_,+K,+V%3E">ExactSizeIterator</a></li><li><a·href="#impl-FusedIterator-for-IterMut%3C'_,+K,+V%3E">FusedIterator</a></li><li><a·href="#impl-Iterator-for-IterMut%3C'a,+K,+V%3E">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">!UnwindSafe</a></li><li><a·href="#impl-Freeze-for-IterMut%3C'a,+K,+V%3E">Freeze</a></li><li><a·href="#impl-RefUnwindSafe-for-IterMut%3C'a,+K,+V%3E">RefUnwindSafe</a></li><li><a·href="#impl-Send-for-IterMut%3C'a,+K,+V%3E">Send</a></li><li><a·href="#impl-Sync-for-IterMut%3C'a,+K,+V%3E">Sync</a></li><li><a·href="#impl-Unpin-for-IterMut%3C'a,+K,+V%3E">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">Any</a></li><li><a·href="#impl-Borrow%3CT%3E-for-T">Borrow&lt;T&gt;</a></li><li><a·href="#impl-BorrowMut%3CT%3E-for-T">BorrowMut&lt;T&gt;</a></li><li><a·href="#impl-From%3CT%3E-for-T">From&lt;T&gt;</a></li><li><a·href="#impl-Into%3CU%3E-for-T">Into&lt;U&gt;</a></li><li><a·href="#impl-IntoIterator-for-I">IntoIterator</a></li><li><a·href="#impl-TryFrom%3CU%3E-for-T">TryFrom&lt;U&gt;</a></li><li><a·href="#impl-TryInto%3CU%3E-for-T">TryInto&lt;U&gt;</a></li></ul></section><h2><a·href="index.html">In·alloc::collections::btree_map</a></h2></div></nav><div·class="sidebar-resizer"></div>
2 ····<main><div·class="width-limiter"><nav·class="sub"><form·class="search-form"><span></span><div·id="sidebar-button"·tabindex="-1"><a·href="../../../alloc/all.html"·title="show·sidebar"></a></div><input·class="search-input"·name="search"·aria-label="Run·search·in·the·documentation"·autocomplete="off"·spellcheck="false"·placeholder="Click·or·press·‘S’·to·search,·‘?’·for·more·options…"·type="search"><div·id="help-button"·tabindex="-1"><a·href="../../../help.html"·title="help">?</a></div><div·id="settings-menu"·tabindex="-1"><a·href="../../../settings.html"·title="settings"><img·width="22"·height="22"·alt="Change·settings"·src="../../../static.files/wheel-7b819b6101059cd0.svg"></a></div></form></nav><section·id="main-content"·class="content"><div·class="main-heading"><h1>Struct·<a·href="../../index.html">alloc</a>::<wbr><a·href="../index.html">collections</a>::<wbr><a·href="index.html">btree_map</a>::<wbr><a·class="struct"·href="#">IterMut</a><button·id="copy-path"·title="Copy·item·path·to·clipboard"><img·src="../../../static.files/clipboard-7571035ce49a181d.svg"·width="19"·height="18"·alt="Copy·item·path"></button></h1><span·class="out-of-band"><span·class="since"·title="Stable·since·Rust·version·1.0.0">1.0.0</span>···<a·class="src"·href="../../../src/alloc/collections/btree/map.rs.html#387-393">source</a>···<button·id="toggle-all-docs"·title="collapse·all·docs">[<span>&#x2212;</span>]</button></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 ····<main><div·class="width-limiter"><nav·class="sub"><form·class="search-form"><span></span><div·id="sidebar-button"·tabindex="-1"><a·href="../../../alloc/all.html"·title="show·sidebar"></a></div><input·class="search-input"·name="search"·aria-label="Run·search·in·the·documentation"·autocomplete="off"·spellcheck="false"·placeholder="Click·or·press·‘S’·to·search,·‘?’·for·more·options…"·type="search"><div·id="help-button"·tabindex="-1"><a·href="../../../help.html"·title="help">?</a></div><div·id="settings-menu"·tabindex="-1"><a·href="../../../settings.html"·title="settings"><img·width="22"·height="22"·alt="Change·settings"·src="../../../static.files/wheel-7b819b6101059cd0.svg"></a></div></form></nav><section·id="main-content"·class="content"><div·class="main-heading"><h1>Struct·<a·href="../../index.html">alloc</a>::<wbr><a·href="../index.html">collections</a>::<wbr><a·href="index.html">btree_map</a>::<wbr><a·class="struct"·href="#">IterMut</a><button·id="copy-path"·title="Copy·item·path·to·clipboard"><img·src="../../../static.files/clipboard-7571035ce49a181d.svg"·width="19"·height="18"·alt="Copy·item·path"></button></h1><span·class="out-of-band"><span·class="since"·title="Stable·since·Rust·version·1.0.0">1.0.0</span>···<a·class="src"·href="../../../src/alloc/collections/btree/map.rs.html#387-393">source</a>···<button·id="toggle-all-docs"·title="collapse·all·docs">[<span>&#x2212;</span>]</button></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>
3 <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·its3 <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
4 documentation·for·more.</p>4 documentation·for·more.</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-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>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-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.78.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:·3c02cfc8931201c536da7d0d7aa050833dbff4996c800e90ff06121aa7f7676c·...·]/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>
  
6 <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 <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();
7 <span·class="macro">assert_eq!</span>(iter.len(),·<span·class="number">0</span>);</code></pre><a·class="test-arrow"·target="_blank"·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">Run</a></div>7 <span·class="macro">assert_eq!</span>(iter.len(),·<span·class="number">0</span>);</code></pre><a·class="test-arrow"·target="_blank"·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">Run</a></div>
8 </div></details></div></details><details·class="toggle·implementors-toggle"·open><summary><section·id="impl-DoubleEndedIterator-for-IterMut%3C'a,+K,+V%3E"·class="impl"><a·class="src·rightside"·href="../../../src/alloc/collections/btree/map.rs.html#1606-1615">source</a><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:·0cb5e8c7bfb33f3cb2b5f6a11ff7cc5566ae70cfc68a884e5f206f214034b683·...·]/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-IterMut%3C'a,+K,+V%3E"·class="impl"><a·class="src·rightside"·href="../../../src/alloc/collections/btree/map.rs.html#1606-1615">source</a><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.78.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:·76bc862fdb3d9b57cbe066f62a48c02a71e9bf43a2fbb1f129bb84032b969456·...·]/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.78.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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(B,·Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.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.78.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.7[·...·truncated·by·diffoscope;·len:·3,·SHA:·7b1bd53949b752d143d871408483b5382371b5bc48d195d0c040ec93cfa2748b·...·]/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:·b3a5d6383debff0cac836c5889a757f11b019bc049778c518e60e4d37a3c4da1·...·]/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.78.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:·d66ed7e195a53e9945339ef1976aed455dcf80228d8e5b7b0c69a64c3983fea1·...·]/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.78.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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(B,·Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/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:·d11fd274e41827c1daee0c80a6ab5f978a613ab26297cb460535fef32cff8551·...·]/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.78.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:·c264047794019a6dcf05728ba6a6ee1f8f07c7209958b3366ba94546b527ecdc·...·]/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.78.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:·7231,·SHA:·6f82be7bd0a04a5faea06771018ba492249c210110e8cc7a62ae57db1eb666e0·...·]/core/primitive.reference.html">&amp;'a·mut·V</a>)&gt;<div·class="where">where17 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·8071,·SHA:·1272ff126ee52fc636feb20624b7268266bf03d36a0f8c700e8f9dc4118160fe·...·]/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:·789,·SHA:·6db34a94d3462aa2ccd6105f95229e6f27050ab5fb0bfa1e1a50a247be9cf4fe·...·]/core/primitive.reference.html">&amp;'a·mut·V</a>)&gt;<div·class="where">where18 ····(<a·class="primitive"·href="https://doc.rust-lang.org/1.78.0/core/primitive.reference.html">&amp;'a·K</a>,·<a·class="primitive"·href="https://doc.rust-lang.org/1.78.0/core/primitive.reference.html">&amp;'a·mut·V</a>):·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/cmp/t[·...·truncated·by·diffoscope;·len:·981,·SHA:·d849a2c82c38fc3f71f766067959b69df7f3a4390cbf851528d52154174673e1·...·]/core/primitive.reference.html">&amp;'a·mut·V</a>)&gt;<div·class="where">where
19 ····(<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:·d987a85b2fb302201b8f1b0d6cce9c551f5a0979312adf14926bcb42b940170b·...·]/core/primitive.usize.html">usize</a>&gt;(19 ····(<a·class="primitive"·href="https://doc.rust-lang.org/1.78.0/core/primitive.reference.html">&amp;'a·K</a>,·<a·class="primitive"·href="https://doc.rust-lang.org/1.78.0/core/primitive.reference.html">&amp;'a·mut·V</a>):·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/cmp/t[·...·truncated·by·diffoscope;·len:·789,·SHA:·074f7d8a4afae1793003dfd488ee03a3b7d30e1f8a2179b06374ca59cf006e9e·...·]/core/primitive.usize.html">usize</a>&gt;(
20 ····&amp;mut·self20 ····&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.78.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.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title=[·...·truncated·by·diffoscope;·len:·381,·SHA:·88c48923c9b7ea5cc47c1087c60e09656e81d4671c58071ba2bef826335388bc·...·]/core/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:·746,·SHA:·99cc415a31b91c57f7eeb82ad0d2d1ba424489bee49de37c86a4ea21c663ccda·...·]/core/primitive.usize.html">usize</a><div·class="where">where22 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experiment[·...·truncated·by·diffoscope;·len:·866,·SHA:·945d2d86f0c4c5ca3e3ee3b181d18b2bbea57ee1a5a7efe16c0c915a5bf2c3ad·...·]/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:·2953,·SHA:·2e5656679d63218ae5d5d1b1a4dfc8d59cd28ba505be6dd08ba60caae9804629·...·]/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.78.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:·3433,·SHA:·49d1274908fa1d1e8e571a7a381dde77211770148791bbfb1cd851b4f911e155·...·]/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.78.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"><a·class="src·rightside"·href="../../../src/core/it[·...·truncated·by·diffoscope;·len:·602,·SHA:·cfe4c4d300dddc2abdc2f8194eb969c68b2240c28239969b5be2af6a564ed8cc·...·]/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.78.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"><a·class="src·rightside"·hr[·...·truncated·by·diffoscope;·len:·746,·SHA:·f1f70d650c102c8658e13890c7dbfc87418f07e7b522246fb579ec434ef64f7c·...·]/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.78.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:·1041,·SHA:·a281d174c9671021427f0b458ac94e87746ac44730475aa725652c6c15e2b972·...·]/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.78.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.78.0/core/iter/traits/it[·...·truncated·by·diffoscope;·len:·1233,·SHA:·f677df2d893dfe0dc1a9d31ebb0ba71a346d265781813e0d664d3f18369b6163·...·]/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.78.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:·b9001dd3131b1425179c94853e1b90fff0f7169b9570e86cd50c6b7fbf1ee8a5·...·]/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.78.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:·98627729f77dcf1c9d258f343354ba600b7134c6b3929080f231e8de7155b70b·...·]/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.78.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.78.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.78.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"><a·class="src·rightside"·href="../../../src/[·...·truncated·by·diffoscope;·len:·279,·SHA:·f2c34c2e64e77c66684f837812ebc4a94c81b2ad5862cc0131f80c3ce89e008a·...·]/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.78.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"><a·class="src·rights[·...·truncated·by·diffoscope;·len:·375,·SHA:·58419346f92e1709dadb70cc3cf356e3cd27972451bdc6b4fc4267e6f7e8bdae·...·]/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.78.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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::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:·d75758e0f8262eeea27445cec43f13d84f0c02ba4e03c0c54d041f9ab1965e0f·...·]/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.78.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:·98f6effefa44d759c249143d83623f0055d937382bfc398b7e1f5e92cd413657·...·]/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.78.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:·676,·SHA:·9ae42ed293737a3dd44c1ee9d98c6aabb1552fbb9d203cb852ee9fcc7834a6ca·...·]/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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·820,·SHA:·a664bbcbc0891663662e4eb7b4394d0fcd72e568136fc4d34097fea242cc32e7·...·]/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.78.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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·140,·SHA:·752f473b57e7444ebfddf5ea7fd40a332e83ec55524a6c31b5ee0f82a5dea819·...·]/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"><a·class="src·rightside"·href="../../../src/cor[·...·truncated·by·diffoscope;·len:·297,·SHA:·f01e44d4caf6c6ad80b37656b9300f7111340711dcd74d70867b5a652dbfb538·...·]/core/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.78.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"><a·class="src·rightside[·...·truncated·by·diffoscope;·len:·393,·SHA:·2e2aa7c9c9c087e7b346da376749064ab8c1894795a2f0a0f646cdc8c7bea997·...·]/core/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.78.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:·788,·SHA:·b788f412af946d2bd7646ba39a8c316ebfa88109f9626dbad9bf9964f975cd0c·...·]/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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·956,·SHA:·faba0521e870dbbd26d466fadba3522e7d29013a9b86376fffafffac11a57e0e·...·]/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.78.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"><a·class="src·rightside"·href="../../../src/co[·...·truncated·by·diffoscope;·len:·276,·SHA:·e337ee1b810d3ec0480569c4ed323ebf0a2315c8ae3c522a73fcca3aa8e6efb3·...·]/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.78.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"><a·class="src·rightsid[·...·truncated·by·diffoscope;·len:·372,·SHA:·03eea0861575eb80d3f7a87a3ba747adb1a33fe7e9ce72aa2172e7a287c63a94·...·]/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.78.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.78.0/core/iter/adapte[·...·truncated·by·diffoscope;·len:·175,·SHA:·16fe7225bf05b478e2828b347c3d23ded9a22f89d8887a2c65d9f7b3faf1b0e7·...·]/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"><a·class="src·rightside"·href="../../../src/c[·...·truncated·by·diffoscope;·len:·306,·SHA:·a9bc004bf639fa188165a336061c6c98ec7ff9d266a18f10db200dfa9a880b88·...·]/core/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.78.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"><a·class="src·rightsi[·...·truncated·by·diffoscope;·len:·402,·SHA:·7689a974f800fd069d1b4453ef62d6d6ad1b654462d624d36e3672051d502030·...·]/core/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.78.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:·946,·SHA:·877b8718d9df1464a912dd50eef16402225367db4e4b26484b5ee20d30644524·...·]/core/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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·1138,·SHA:·f6ae06b7de8e94df014341c5cf589a5e4a1298367b2ef7a968ec499c5170a70e·...·]/core/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.78.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:·552b3dd2132886d024e4d5bd2554611e25c1f068adaaf23ecf80da81d31997ef·...·]/core/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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·1058,·SHA:·b390dbdda8d7e93604b5ecd906a93efd03fe19bdaf41cf12893fd361bf974307·...·]/core/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.78.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:·875,·SHA:·5c5c44422f75cbb66ebcf54bea70536713b810843cc484b051aed088c6422d78·...·]/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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·1067,·SHA:·415d32e1211c35d3bb405de1d6e51c2102c14cadc3333894f063148dbe0b1f69·...·]/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:·543,·SHA:·f199bafab360be9b80e9f45c5ba799a52348b742ddb0fa9afdb1624729c36e58·...·]/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.78.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:·687,·SHA:·7f5256104c35c5948a2cb42b55f3048c9d2887e48a4a8226537a284f959c562a·...·]/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.78.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"><a·class="src·rightside"·href="../../../src/core/iter/t[·...·truncated·by·diffoscope;·len:·296,·SHA:·aea014801138aeee574964545b1e9ad297288a120113db6844b569d2b183e0a7·...·]/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.78.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"><a·class="src·rightside"·href="[·...·truncated·by·diffoscope;·len:·392,·SHA:·4e7da68f7be2622ef173653eca78d58e1f202b544a2e6abd14d8335c298c93a7·...·]/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.78.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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(<a·class="primitive"·href="https://doc.rust-lang.org/1.78.0/core/primitive.reference.html">&amp;mut·St</a>,·Self::<a·class="associatedty[·...·truncated·by·diffoscope;·len:·449,·SHA:·f12c268a8a8111b9e7126ad78bf5523a63733caa63d187c4fe792309ea41acdf·...·]/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:·474,·SHA:·c0ed850df640319d919b8c053c540caa158602207623bed65abbcd69ad9d2c9d·...·]/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.78.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.78.0/core/iter/trai[·...·truncated·by·diffoscope;·len:·594,·SHA:·02960742fa7892efaa08f289ce85865fc5efb6a4cd138c22e3566ca6fc727d78·...·]/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.78.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.78.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:·4d1f54658fd1c005b101a2e27b0da3c6ee0cbe2d891660c65470bfec01fa46f6·...·]/core/iter/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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·976,·SHA:·2a9182f6fe88e0b8a9b1ae1f46cace940cc0b8736033c354c0f0ccbf1c196e7a·...·]/core/iter/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.78.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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;[Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtyp[·...·truncated·by·diffoscope;·len:·135,·SHA:·0b06a6094d42ccbc8bce5b01c4383961fe7f1967f05e4c9f1ff33e71e425fb26·...·]/core/primitive.array.html">N</a>])·-&gt;·R,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iter_map_windows</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/87155">#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.78.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"><a·class="src·rightside"·href="../../../src/core[·...·truncated·by·diffoscope;·len:·262,·SHA:·6125a8b2b88486b3735bbd00905fe9ae55b6eb1491c8a493be9c8121dc3cb440·...·]/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.78.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"><a·class="src·rightside"[·...·truncated·by·diffoscope;·len:·358,·SHA:·d91b2ab18e0ce069e262cf523c6ef961f56eecad042ea1e9bcefe33cff28fc8f·...·]/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:·601,·SHA:·bdf3796aa87e911258d56122ffdaa3f8591a5c9db4ed6fd89c3dfd3660787f78·...·]/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.78.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.78.0/core/op[·...·truncated·by·diffoscope;·len:·745,·SHA:·424783f22102f4446d3ad4d362b1aafdb7531fa777213f97ee138aa878f67bd1·...·]/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.78.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:·694,·SHA:·db4bb2630979aa4504432e8d422265d943c9063bcf3d2e3be970003014226f1e·...·]/core/primitive.reference.html">&amp;mut·Self</a><div·class="where">where69 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·838,·SHA:·9b4fd8df7f41e9a76fd4cfca0a233b74b9bd27c3fe8228248abc3f940425a3e3·...·]/core/primitive.reference.html">&amp;mut·Self</a><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:·331,·SHA:·d13641714c275840abbb473011613a4e19924a453f5e1b83912681a9b7c5579b·...·]/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.78.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.78.0/core/it[·...·truncated·by·diffoscope;·len:·427,·SHA:·ecfaaac5d1d10c1bc4fcee9a050af0a268bee0b528c2d8ea4e9774440bd8a279·...·]/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.78.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.78.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:·d76c3fcf86c63211032a6b22dc5924ef552b1ad26b12e19f15d2f1d5b3d7e394·...·]/core/primitive.reference.html">&amp;mut·E</a><div·class="where">where72 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.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.78.0/core/iter/tr[·...·truncated·by·diffoscope;·len:·728,·SHA:·01937c2dc314c259495665570ae249c94b4a5b0719718f5f1188e6fc64ecf487·...·]/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.78.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.78.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:·759,·SHA:·3cf174fac64a83c8e22066c3d77741118f89b13411537fc82c1004faa5c9e2ae·...·]/core/primitive.tuple.html">(B,·B)</a><div·class="where">where74 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experiment[·...·truncated·by·diffoscope;·len:·879,·SHA:·e773b2222c92d001e295030cb47a780ab0c1132d7fc8e9e3a98de4f532e6c520·...·]/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.78.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.78.0/core/default/trait.Default.html"·title="trait·core::default::Default">Default</a>·+·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/collect/trait.Extend.html"·title="trait·core::iter::traits::collec[·...·truncated·by·diffoscope;·len:·95,·SHA:·8b3be1d0042cae0550f865faf5849221240bdf04eb1b2107605b72d48c3ad29c·...·]/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:·281bbd5137cae68dd8057d013e9c9f311461e746663120304e3f6adace77f784·...·]/core/primitive.usize.html">usize</a><div·class="where">where77 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·995,·SHA:·bec3765fdab56713186e2454cd84738b5b28e3280a2f3d5a25cefdbc3089b520·...·]/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.78.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>·+·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/double_ended/trait.DoubleEndedIterator.html"·title="trait·core::iter::trai[·...·truncated·by·diffoscope;·len:·132,·SHA:·e5b2cf5f56946ede1e190ed09879c5821e2de04cf8e5d145142eeb40c6340982·...·]/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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(<a·class="primitive"·href="https://doc.rust-lang.org/1.78.0/core/primitive.reference.html">&amp;T</a>)·-&gt;·<a·class="primitive"·href="[·...·truncated·by·diffoscope;·len:·32,·SHA:·63d052a8ced32bf927ffadd7e884c08caf4970e85dfdf6be0e568d49b174da96·...·]/core/primitive.bool.html">bool</a>,</div></h4></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:·dc6a465df534b0392c5280e79e5249847890045561099b2cfc44bfabc4801d8d·...·]/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.78.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:·0c224636c18baa273f69de21f90083317f2ea0b7367a3f0d0f1c0ace55a36f79·...·]/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.78.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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·135,·SHA:·51ff5f5c7ebd8440623ea71b125c5a5837e809e308fe1a13fbe19cddb941dbd9·...·]/core/primitive.bool.html">bool</a>,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iter_is_partitioned</code>&nbsp;<a·href="https://github.com/rust-lang/rust/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:·bd8fce4ee431c619c98780c4d520e8db93f1e034f12843ffaff5744b7ce2190b·...·]/core/iter/traits/iterator/trait.Iterator.html#method.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.78.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:·2c74873f4e5ba70004a1c7edd1cc3f9e2d91271295dd1591e2d26848df4c02ba·...·]/core/iter/traits/iterator/trait.Iterator.html#method.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.78.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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(B,·Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.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.78.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:·7b4fc32e7634ae85c682a97099be267837713d7e4831893b617ca652f57a89da·...·]/core/iter/traits/iterator/trait.Iterator.html#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.78.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:·52912e82c4b0a760d06f77eb4ee3a59ba70dd76cb532954900c73ae94c652674·...·]/core/iter/traits/iterator/trait.Iterator.html#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.78.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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.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.78.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.78.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"><a·class="src·rightside"·href="../../../src/cor[·...·truncated·by·diffoscope;·len:·139,·SHA:·dc7fb7a70636459a0d7de28cbcb454050f39c184bab178c95c524a6eb9ca51cf·...·]/core/iter/traits/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.78.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"><a·class="src·rightside[·...·truncated·by·diffoscope;·len:·211,·SHA:·924e062acd8127e8d6158162219ee5d57a941854e14063d21d7768edae549431·...·]/core/iter/traits/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.78.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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(B,·Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::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:·2c738ecc68200afa2467bef085de14dcb642dbaac77c4529948f5e259e66691d·...·]/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.78.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:·b60215068a6d9721be05f81098c51167d7138c4042f140cad42f77c4df43f597·...·]/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.78.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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·352,·SHA:·e7c3c296abe2c0a183967153e4ae7fd50bafa2ae7088e3e78b3b48fee253adc6·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::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:·c3f1d50e276def36966943119961a20b09cab3be33483fe4d48d7f322489534b·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_reduce"·class="fn">try_reduce</a>&lt;F,·R&gt;(99 operation.·<a·href="https://doc.rust-lang.org/1.78.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:·7a18fdd041b1a001b4a8feb289ee127fd9240232239269eb35dc3b8f74783ec9·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_reduce"·class="fn">try_reduce</a>&lt;F,·R&gt;(
100 ····&amp;mut·self,100 ····&amp;mut·self,
101 ····f:·F101 ····f:·F
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.78.0/core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&gt;::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/ops/try_trait/trait.Try.html#associatedtype.Residual"·title="type[·...·truncated·by·diffoscope;·len:·754,·SHA:·6fb4dfdb6b4da68921c1e7f8b75d99cf293d58318d684a840254ce9576957bea·...·]/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.78.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:·68,·SHA:·e7e11f257edcac749a5883ad9a3aa42e6e965be419f967b36caa7afd3b36d7c9·...·]/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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·140,·SHA:·c27972e6fa3464c9476eaa185e8657edb6bb294f148403f3d079285294a9f909·...·]/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·=·Self::<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.78.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.78.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</[·...·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·the106 ····&lt;R·as·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&gt;::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/ops/try_trait/trait.Try.html#associatedtype.Residual"·title="type[·...·truncated·by·diffoscope;·len:·412,·SHA:·22b8cbb007e5cce82b9d13a65bfa56aa8d83c32541fac25f4d9b3857b0540908·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;&gt;,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iterator_try_reduce</code>&nbsp;<a·href="https://github.com/rust-lang/rust/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"><a·class="src·rightside"·href="../../../src/core/i[·...·truncated·by·diffoscope;·len:·284,·SHA:·fbacd9a305d3a60d42d9adcc5ea9e5f579f4ff5d970999f333eaf0c7f9baf66c·...·]/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.78.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"><a·class="src·rightside"·h[·...·truncated·by·diffoscope;·len:·380,·SHA:·29c4004d4d8b0c8c9dfe9023f8b2c5ef801d9dc4688893035d182c1ae774c453·...·]/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.78.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:·754,·SHA:·e3afac523bd4c054d94fbbb6c5c856ac78a6359550526fa0726732b36529c33d·...·]/core/primitive.bool.html">bool</a><div·class="where">where109 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·922,·SHA:·f4fd532c280e18f28bd6dda6c2a129e2e92114b67f27235bb5fd39f725be9c43·...·]/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.78.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:·884,·SHA:·32570d141a71827f9ac19bf566a51ca4814ccafaf6f8a961920ce107fe9657d7·...·]/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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·1076,·SHA:·2dd9de8adaee4a5ee96501d9a58bfac2fea00ba8d78b834bfca29949b3afe18b·...·]/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.78.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:[·...·truncated·by·diffoscope;·len:·883,·SHA:·f441e2966ff8db4214e57fcd74f81262d6e371aa51cea97ebde5921e81b4da79·...·]/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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·1051,·SHA:·ecc0b8fccd861464760f9ae047ff6ab98c91a1db010cb5fa59a8c2ab883db7c4·...·]/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.78.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::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·returns115 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·130,·SHA:·130a13019dc175d02304b4f550157e2f13ac15c2f25a979c74161d10b146ab89·...·]/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/cor[·...·truncated·by·diffoscope;·len:·143,·SHA:·ec4fb002625b166504031522e52a66812b279e6735a67cb718813205909c3fb7·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_find"·class="fn">try_find</a>&lt;F,·R&gt;(116 the·first·non-none·result.·<a·href="https://doc.rust-lang.org/1.78.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:·8ced1b10e78750774c5c8ed995ed83dcd13983aa75d329acf8069da106ab9f4a·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_find"·class="fn">try_find</a>&lt;F,·R&gt;(
117 ····&amp;mut·self,117 ····&amp;mut·self,
118 ····f:·F118 ····f:·F
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</[·...·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">where119 )·-&gt;·&lt;&lt;R·as·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&gt;::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/ops/try_trait/trait.Try.html#associatedtype.Residual"·title="type[·...·truncated·by·diffoscope;·len:·626,·SHA:·95f9831257b68862cbcbf54f0ad2ff4e597a4c9f763112d1da8a0897dadcf872·...·]/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.78.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::Iterator::Item">Item</a>)·-&gt;·R,121 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·R,
122 ····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;,122 ····R:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.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.78.0/core/primitive.bool.html">bool</a>&gt;,
123 ····&lt;R·as·<a·class="trait"·href="../../../core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</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·returns123 ····&lt;R·as·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&gt;::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/ops/try_trait/trait.Try.html#associatedtype.Residual"·title="type[·...·truncated·by·diffoscope;·len:·412,·SHA:·22b8cbb007e5cce82b9d13a65bfa56aa8d83c32541fac25f4d9b3857b0540908·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;&gt;,</div></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
124 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"><a·class="src·rightside"·href="../../../src/cor[·...·truncated·by·diffoscope;·len:·419,·SHA:·4337d283573b9683aaa605a7d2417318ef2a03902876e7da2ec26f2a5febf794·...·]/core/primitive.usize.html">usize</a>&gt;<div·class="where">where124 the·first·true·result·or·the·first·error.·<a·href="https://doc.rust-lang.org/1.78.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"><a·class="src·rightside[·...·truncated·by·diffoscope;·len:·539,·SHA:·04e329705f11ed9ec269a68b0b75ac4ab26c78e4316a571ee9336c28bbca6359·...·]/core/primitive.usize.html">usize</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.78.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
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::Iter[·...·truncated·by·diffoscope;·len:·901,·SHA:·a6eb7314148a1006184790a26873440fac678952c99874de84cb66644e250c0b·...·]/core/primitive.usize.html">usize</a>&gt;<div·class="where">where126 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·1093,·SHA:·623dbacabfe45799103c799fb60a4d212ceb8759ff853a11209a07793257c9cd·...·]/core/primitive.usize.html">usize</a>&gt;<div·class="where">where
Max diff block lines reached; 79793/307109 bytes (25.98%) of diff not shown.
309 KB
./usr/share/doc/rust-web-doc/html/alloc/collections/btree_map/struct.Keys.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·iterator·over·the·keys·of·a·`BTreeMap`."><title>Keys·in·alloc::collections::btree_map·-·Rust</title><script>·if·(window.location.protocol·!==·"file:")·document.write(`<link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../../static.files/SourceSerif4-Regular-46f98efaafac5295.ttf.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../../static.files/FiraSans-Regular-018c141bf0843ffd.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../../static.files/FiraSans-Medium-8f9a781e4970d388.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../../static.files/SourceCodePro-Regular-562dcc5011b6de7d.ttf.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../../static.files/SourceCodePro-Semibold-d899c5a5c4aeb14a.ttf.woff2">`)</script><link·rel="stylesheet"·href="../../../static.files/normalize-76eba96aa4d2e634.css"><link·rel="stylesheet"·href="../../../static.files/rustdoc-35f9e32502181f1e.css"><meta·name="rustdoc-vars"·data-root-path="../../../"·data-static-root-path="../../../static.files/"·data-current-crate="alloc"·data-themes=""·data-resource-suffix="1.78.0"·data-rustdoc-version="1.78.0"·data-channel="1.78.0"·data-search-js="search-42d8da7a6b9792c2.js"·data-settings-js="settings-4313503d2e1961c2.js"·><script·src="../../../static.files/storage-4c98445ec4002617.js"></script><script·defer·src="sidebar-items1.78.0.js"></script><script·defer·src="../../../static.files/main-12cf3b4f4f9dc36d.js"></script><noscript><link·rel="stylesheet"·href="../../../static.files/noscript-04d5337699b92874.css"></noscript><link·rel="alternate·icon"·type="image/png"·href="../../../static.files/favicon-16x16-8b506e7a72182f1c.png"><link·rel="alternate·icon"·type="image/png"·href="../../../static.files/favicon-32x32-422f7d1d52889060.png"><link·rel="icon"·type="image/svg+xml"·href="../../../static.files/favicon-2c020d218678b618.svg"></head><body·class="rustdoc·struct"><!--[if·lte·IE·11]><div·class="warning">This·old·browser·is·unsupported·and·will·most·likely·display·funky·things.</div><![endif]--><nav·class="mobile-topbar"><button·class="sidebar-menu-toggle"·title="show·sidebar"></button><a·class="logo-container"·href="../../../alloc/index.html"><img·class="rust-logo"·src="../../../static.files/rust-logo-151179464ae7ed46.svg"·alt=""></a></nav><nav·class="sidebar"><div·class="sidebar-crate"><a·class="logo-container"·href="../../../alloc/index.html"><img·class="rust-logo"·src="../../../static.files/rust-logo-151179464ae7ed46.svg"·alt="logo"></a><h2><a·href="../../../alloc/index.html">alloc</a><span·class="version">1.78.0</span></h2></div><h2·class="location"><a·href="#">Keys</a></h2><div·class="sidebar-elems"><section><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">Clone</a></li><li><a·href="#impl-Debug-for-Keys%3C'_,+K,+V%3E">Debug</a></li><li><a·href="#impl-Default-for-Keys%3C'_,+K,+V%3E">Default</a></li><li><a·href="#impl-DoubleEndedIterator-for-Keys%3C'a,+K,+V%3E">DoubleEndedIterator</a></li><li><a·href="#impl-ExactSizeIterator-for-Keys%3C'_,+K,+V%3E">ExactSizeIterator</a></li><li><a·href="#impl-FusedIterator-for-Keys%3C'_,+K,+V%3E">FusedIterator</a></li><li><a·href="#impl-Iterator-for-Keys%3C'a,+K,+V%3E">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">Freeze</a></li><li><a·href="#impl-RefUnwindSafe-for-Keys%3C'a,+K,+V%3E">RefUnwindSafe</a></li><li><a·href="#impl-Send-for-Keys%3C'a,+K,+V%3E">Send</a></li><li><a·href="#impl-Sync-for-Keys%3C'a,+K,+V%3E">Sync</a></li><li><a·href="#impl-Unpin-for-Keys%3C'a,+K,+V%3E">Unpin</a></li><li><a·href="#impl-UnwindSafe-for-Keys%3C'a,+K,+V%3E">UnwindSafe</a></li></ul><h3><a·href="#blanket-implementations">Blanket·Implementations</a></h3><ul·class="block·blanket-implementation"><li><a·href="#impl-Any-for-T">Any</a></li><li><a·href="#impl-Borrow%3CT%3E-for-T">Borrow&lt;T&gt;</a></li><li><a·href="#impl-BorrowMut%3CT%3E-for-T">BorrowMut&lt;T&gt;</a></li><li><a·href="#impl-From%3CT%3E-for-T">From&lt;T&gt;</a></li><li><a·href="#impl-Into%3CU%3E-for-T">Into&lt;U&gt;</a></li><li><a·href="#impl-IntoIterator-for-I">IntoIterator</a></li><li><a·href="#impl-ToOwned-for-T">ToOwned</a></li><li><a·href="#impl-TryFrom%3CU%3E-for-T">TryFrom&lt;U&gt;</a></li><li><a·href="#impl-TryInto%3CU%3E-for-T">TryInto&lt;U&gt;</a></li></ul></section><h2><a·href="index.html">In·alloc::collections::btree_map</a></h2></div></nav><div·class="sidebar-resizer"></div>1 <!DOCTYPE·html><html·lang="en"><head><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.write(`<link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../../static.files/SourceSerif4-Regular-46f98efaafac5295.ttf.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../../static.files/FiraSans-Regular-018c141bf0843ffd.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../../static.files/FiraSans-Medium-8f9a781e4970d388.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../../static.files/SourceCodePro-Regular-562dcc5011b6de7d.ttf.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../../static.files/SourceCodePro-Semibold-d899c5a5c4aeb14a.ttf.woff2">`)</script><link·rel="stylesheet"·href="../../../static.files/normalize-76eba96aa4d2e634.css"><link·rel="stylesheet"·href="../../../static.files/rustdoc-35f9e32502181f1e.css"><meta·name="rustdoc-vars"·data-root-path="../../../"·data-static-root-path="../../../static.files/"·data-current-crate="alloc"·data-themes=""·data-resource-suffix="1.78.0"·data-rustdoc-version="1.78.0"·data-channel="1.78.0"·data-search-js="search-42d8da7a6b9792c2.js"·data-settings-js="settings-4313503d2e1961c2.js"·><script·src="../../../static.files/storage-4c98445ec4002617.js"></script><script·defer·src="sidebar-items1.78.0.js"></script><script·defer·src="../../../static.files/main-12cf3b4f4f9dc36d.js"></script><noscript><link·rel="stylesheet"·href="../../../static.files/noscript-04d5337699b92874.css"></noscript><link·rel="alternate·icon"·type="image/png"·href="../../../static.files/favicon-16x16-8b506e7a72182f1c.png"><link·rel="alternate·icon"·type="image/png"·href="../../../static.files/favicon-32x32-422f7d1d52889060.png"><link·rel="icon"·type="image/svg+xml"·href="../../../static.files/favicon-2c020d218678b618.svg"></head><body·class="rustdoc·struct"><!--[if·lte·IE·11]><div·class="warning">This·old·browser·is·unsupported·and·will·most·likely·display·funky·things.</div><![endif]--><nav·class="mobile-topbar"><button·class="sidebar-menu-toggle"·title="show·sidebar"></button><a·class="logo-container"·href="../../../alloc/index.html"><img·class="rust-logo"·src="../../../static.files/rust-logo-151179464ae7ed46.svg"·alt=""></a></nav><nav·class="sidebar"><div·class="sidebar-crate"><a·class="logo-container"·href="../../../alloc/index.html"><img·class="rust-logo"·src="../../../static.files/rust-logo-151179464ae7ed46.svg"·alt="logo"></a><h2><a·href="../../../alloc/index.html">alloc</a><span·class="version">1.78.0</span></h2></div><h2·class="location"><a·href="#">Keys</a></h2><div·class="sidebar-elems"><section><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">Clone</a></li><li><a·href="#impl-Debug-for-Keys%3C'_,+K,+V%3E">Debug</a></li><li><a·href="#impl-Default-for-Keys%3C'_,+K,+V%3E">Default</a></li><li><a·href="#impl-DoubleEndedIterator-for-Keys%3C'a,+K,+V%3E">DoubleEndedIterator</a></li><li><a·href="#impl-ExactSizeIterator-for-Keys%3C'_,+K,+V%3E">ExactSizeIterator</a></li><li><a·href="#impl-FusedIterator-for-Keys%3C'_,+K,+V%3E">FusedIterator</a></li><li><a·href="#impl-Iterator-for-Keys%3C'a,+K,+V%3E">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">Freeze</a></li><li><a·href="#impl-RefUnwindSafe-for-Keys%3C'a,+K,+V%3E">RefUnwindSafe</a></li><li><a·href="#impl-Send-for-Keys%3C'a,+K,+V%3E">Send</a></li><li><a·href="#impl-Sync-for-Keys%3C'a,+K,+V%3E">Sync</a></li><li><a·href="#impl-Unpin-for-Keys%3C'a,+K,+V%3E">Unpin</a></li><li><a·href="#impl-UnwindSafe-for-Keys%3C'a,+K,+V%3E">UnwindSafe</a></li></ul><h3><a·href="#blanket-implementations">Blanket·Implementations</a></h3><ul·class="block·blanket-implementation"><li><a·href="#impl-Any-for-T">Any</a></li><li><a·href="#impl-Borrow%3CT%3E-for-T">Borrow&lt;T&gt;</a></li><li><a·href="#impl-BorrowMut%3CT%3E-for-T">BorrowMut&lt;T&gt;</a></li><li><a·href="#impl-From%3CT%3E-for-T">From&lt;T&gt;</a></li><li><a·href="#impl-Into%3CU%3E-for-T">Into&lt;U&gt;</a></li><li><a·href="#impl-IntoIterator-for-I">IntoIterator</a></li><li><a·href="#impl-ToOwned-for-T">ToOwned</a></li><li><a·href="#impl-TryFrom%3CU%3E-for-T">TryFrom&lt;U&gt;</a></li><li><a·href="#impl-TryInto%3CU%3E-for-T">TryInto&lt;U&gt;</a></li></ul></section><h2><a·href="index.html">In·alloc::collections::btree_map</a></h2></div></nav><div·class="sidebar-resizer"></div>
2 ····<main><div·class="width-limiter"><nav·class="sub"><form·class="search-form"><span></span><div·id="sidebar-button"·tabindex="-1"><a·href="../../../alloc/all.html"·title="show·sidebar"></a></div><input·class="search-input"·name="search"·aria-label="Run·search·in·the·documentation"·autocomplete="off"·spellcheck="false"·placeholder="Click·or·press·‘S’·to·search,·‘?’·for·more·options…"·type="search"><div·id="help-button"·tabindex="-1"><a·href="../../../help.html"·title="help">?</a></div><div·id="settings-menu"·tabindex="-1"><a·href="../../../settings.html"·title="settings"><img·width="22"·height="22"·alt="Change·settings"·src="../../../static.files/wheel-7b819b6101059cd0.svg"></a></div></form></nav><section·id="main-content"·class="content"><div·class="main-heading"><h1>Struct·<a·href="../../index.html">alloc</a>::<wbr><a·href="../index.html">collections</a>::<wbr><a·href="index.html">btree_map</a>::<wbr><a·class="struct"·href="#">Keys</a><button·id="copy-path"·title="Copy·item·path·to·clipboard"><img·src="../../../static.files/clipboard-7571035ce49a181d.svg"·width="19"·height="18"·alt="Copy·item·path"></button></h1><span·class="out-of-band"><span·class="since"·title="Stable·since·Rust·version·1.0.0">1.0.0</span>···<a·class="src"·href="../../../src/alloc/collections/btree/map.rs.html#477-479">source</a>···<button·id="toggle-all-docs"·title="collapse·all·docs">[<span>&#x2212;</span>]</button></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 ····<main><div·class="width-limiter"><nav·class="sub"><form·class="search-form"><span></span><div·id="sidebar-button"·tabindex="-1"><a·href="../../../alloc/all.html"·title="show·sidebar"></a></div><input·class="search-input"·name="search"·aria-label="Run·search·in·the·documentation"·autocomplete="off"·spellcheck="false"·placeholder="Click·or·press·‘S’·to·search,·‘?’·for·more·options…"·type="search"><div·id="help-button"·tabindex="-1"><a·href="../../../help.html"·title="help">?</a></div><div·id="settings-menu"·tabindex="-1"><a·href="../../../settings.html"·title="settings"><img·width="22"·height="22"·alt="Change·settings"·src="../../../static.files/wheel-7b819b6101059cd0.svg"></a></div></form></nav><section·id="main-content"·class="content"><div·class="main-heading"><h1>Struct·<a·href="../../index.html">alloc</a>::<wbr><a·href="../index.html">collections</a>::<wbr><a·href="index.html">btree_map</a>::<wbr><a·class="struct"·href="#">Keys</a><button·id="copy-path"·title="Copy·item·path·to·clipboard"><img·src="../../../static.files/clipboard-7571035ce49a181d.svg"·width="19"·height="18"·alt="Copy·item·path"></button></h1><span·class="out-of-band"><span·class="since"·title="Stable·since·Rust·version·1.0.0">1.0.0</span>···<a·class="src"·href="../../../src/alloc/collections/btree/map.rs.html#477-479">source</a>···<button·id="toggle-all-docs"·title="collapse·all·docs">[<span>&#x2212;</span>]</button></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>
3 <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·its3 <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
4 documentation·for·more.</p>4 documentation·for·more.</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-Keys%3C'_,+K,+V%3E"·class="impl"><a·class="src·rightside"·href="../../../src/alloc/collections/btree/map.rs.html#1796-1800">source</a><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:·3766,·SHA:·2c9cd8bda7f470f95f2d502867ab9604830601ff67fdf301c7af26c1195a34ea·...·]/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></details><h2·id="trait-implementations"·class="section-header">Trait·Implementations<a·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"><a·class="src·rightside"·href="../../../src/alloc/collections/btree/map.rs.html#1796-1800">source</a><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.78.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:·3982,·SHA:·da522047502b407e30dee9a57b896c9d099e0ad35b075eacd4433e3376deb174·...·]/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>
  
6 <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 <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();
7 <span·class="macro">assert_eq!</span>(iter.len(),·<span·class="number">0</span>);</code></pre><a·class="test-arrow"·target="_blank"·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">Run</a></div>7 <span·class="macro">assert_eq!</span>(iter.len(),·<span·class="number">0</span>);</code></pre><a·class="test-arrow"·target="_blank"·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">Run</a></div>
8 </div></details></div></details><details·class="toggle·implementors-toggle"·open><summary><section·id="impl-DoubleEndedIterator-for-Keys%3C'a,+K,+V%3E"·class="impl"><a·class="src·rightside"·href="../../../src/alloc/collections/btree/map.rs.html#1779-1783">source</a><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:·2753dadfe9a612c9f3540a0d80938753de2bfd46adfe2a1d1558facb73987bbc·...·]/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-Keys%3C'a,+K,+V%3E"·class="impl"><a·class="src·rightside"·href="../../../src/alloc/collections/btree/map.rs.html#1779-1783">source</a><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.78.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:·40c4c5a824b088a5c3e77a92e3df3fbaa79d0defc041cb6b2bc06bef65daf450·...·]/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.78.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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(B,·Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.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.78.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.7[·...·truncated·by·diffoscope;·len:·3,·SHA:·7b1bd53949b752d143d871408483b5382371b5bc48d195d0c040ec93cfa2748b·...·]/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:·b3a5d6383debff0cac836c5889a757f11b019bc049778c518e60e4d37a3c4da1·...·]/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.78.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:·d66ed7e195a53e9945339ef1976aed455dcf80228d8e5b7b0c69a64c3983fea1·...·]/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.78.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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(B,·Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/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:·d11fd274e41827c1daee0c80a6ab5f978a613ab26297cb460535fef32cff8551·...·]/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.78.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:·c264047794019a6dcf05728ba6a6ee1f8f07c7209958b3366ba94546b527ecdc·...·]/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.78.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:·6854,·SHA:·655580605ddced442da82aa8b5c5f183fc812366b9be256878e2f40f8824a022·...·]/core/primitive.reference.html">&amp;'a·K</a>&gt;<div·class="where">where17 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·7598,·SHA:·7992a8fb529b22e5cb3d75a6165073b3c5578015207d9c2e4726430294192184·...·]/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·minimum·element·of·an·iterator.·<a·href=".[·...·truncated·by·diffoscope;·len:·619,·SHA:·02415a0587c8c455ebcd49c1a219aa29a39783c65c5580492ee8ce14f83b71d8·...·]/core/primitive.reference.html">&amp;'a·K</a>&gt;<div·class="where">where18 ····<a·class="primitive"·href="https://doc.rust-lang.org/1.78.0/core/primitive.reference.html">&amp;'a·K</a>:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.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:·12590b79d93ef18d2235f16d15e15a5e17101aa2a0bb1db2d59e527621fe9e2f·...·]/core/primitive.reference.html">&amp;'a·K</a>&gt;<div·class="where">where
19 ····<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:·d54aa3470f25772b3e683a4a30dbc4d9b84be9c4af3e985671139ba75faecc60·...·]/core/primitive.usize.html">usize</a>&gt;(19 ····<a·class="primitive"·href="https://doc.rust-lang.org/1.78.0/core/primitive.reference.html">&amp;'a·K</a>:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.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:·06c44c04806bb1b7d0ccf1974876e0233c8d283896e6224a16191c961665d23a·...·]/core/primitive.usize.html">usize</a>&gt;(
20 ····&amp;mut·self20 ····&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.78.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.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title=[·...·truncated·by·diffoscope;·len:·381,·SHA:·88c48923c9b7ea5cc47c1087c60e09656e81d4671c58071ba2bef826335388bc·...·]/core/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:·746,·SHA:·99cc415a31b91c57f7eeb82ad0d2d1ba424489bee49de37c86a4ea21c663ccda·...·]/core/primitive.usize.html">usize</a><div·class="where">where22 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experiment[·...·truncated·by·diffoscope;·len:·866,·SHA:·945d2d86f0c4c5ca3e3ee3b181d18b2bbea57ee1a5a7efe16c0c915a5bf2c3ad·...·]/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:·2953,·SHA:·2e5656679d63218ae5d5d1b1a4dfc8d59cd28ba505be6dd08ba60caae9804629·...·]/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.78.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:·3433,·SHA:·49d1274908fa1d1e8e571a7a381dde77211770148791bbfb1cd851b4f911e155·...·]/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.78.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"><a·class="src·rightside"·href="../../../src/core/it[·...·truncated·by·diffoscope;·len:·602,·SHA:·cfe4c4d300dddc2abdc2f8194eb969c68b2240c28239969b5be2af6a564ed8cc·...·]/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.78.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"><a·class="src·rightside"·hr[·...·truncated·by·diffoscope;·len:·746,·SHA:·f1f70d650c102c8658e13890c7dbfc87418f07e7b522246fb579ec434ef64f7c·...·]/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.78.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:·1041,·SHA:·a281d174c9671021427f0b458ac94e87746ac44730475aa725652c6c15e2b972·...·]/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.78.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.78.0/core/iter/traits/it[·...·truncated·by·diffoscope;·len:·1233,·SHA:·f677df2d893dfe0dc1a9d31ebb0ba71a346d265781813e0d664d3f18369b6163·...·]/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.78.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:·b9001dd3131b1425179c94853e1b90fff0f7169b9570e86cd50c6b7fbf1ee8a5·...·]/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.78.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:·98627729f77dcf1c9d258f343354ba600b7134c6b3929080f231e8de7155b70b·...·]/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.78.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.78.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.78.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"><a·class="src·rightside"·href="../../../src/[·...·truncated·by·diffoscope;·len:·279,·SHA:·f2c34c2e64e77c66684f837812ebc4a94c81b2ad5862cc0131f80c3ce89e008a·...·]/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.78.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"><a·class="src·rights[·...·truncated·by·diffoscope;·len:·375,·SHA:·58419346f92e1709dadb70cc3cf356e3cd27972451bdc6b4fc4267e6f7e8bdae·...·]/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.78.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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::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:·d75758e0f8262eeea27445cec43f13d84f0c02ba4e03c0c54d041f9ab1965e0f·...·]/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.78.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:·98f6effefa44d759c249143d83623f0055d937382bfc398b7e1f5e92cd413657·...·]/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.78.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:·676,·SHA:·9ae42ed293737a3dd44c1ee9d98c6aabb1552fbb9d203cb852ee9fcc7834a6ca·...·]/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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·820,·SHA:·a664bbcbc0891663662e4eb7b4394d0fcd72e568136fc4d34097fea242cc32e7·...·]/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.78.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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·140,·SHA:·752f473b57e7444ebfddf5ea7fd40a332e83ec55524a6c31b5ee0f82a5dea819·...·]/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"><a·class="src·rightside"·href="../../../src/cor[·...·truncated·by·diffoscope;·len:·297,·SHA:·f01e44d4caf6c6ad80b37656b9300f7111340711dcd74d70867b5a652dbfb538·...·]/core/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.78.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"><a·class="src·rightside[·...·truncated·by·diffoscope;·len:·393,·SHA:·2e2aa7c9c9c087e7b346da376749064ab8c1894795a2f0a0f646cdc8c7bea997·...·]/core/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.78.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:·788,·SHA:·b788f412af946d2bd7646ba39a8c316ebfa88109f9626dbad9bf9964f975cd0c·...·]/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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·956,·SHA:·faba0521e870dbbd26d466fadba3522e7d29013a9b86376fffafffac11a57e0e·...·]/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.78.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"><a·class="src·rightside"·href="../../../src/co[·...·truncated·by·diffoscope;·len:·276,·SHA:·e337ee1b810d3ec0480569c4ed323ebf0a2315c8ae3c522a73fcca3aa8e6efb3·...·]/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.78.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"><a·class="src·rightsid[·...·truncated·by·diffoscope;·len:·372,·SHA:·03eea0861575eb80d3f7a87a3ba747adb1a33fe7e9ce72aa2172e7a287c63a94·...·]/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.78.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.78.0/core/iter/adapte[·...·truncated·by·diffoscope;·len:·175,·SHA:·16fe7225bf05b478e2828b347c3d23ded9a22f89d8887a2c65d9f7b3faf1b0e7·...·]/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"><a·class="src·rightside"·href="../../../src/c[·...·truncated·by·diffoscope;·len:·306,·SHA:·a9bc004bf639fa188165a336061c6c98ec7ff9d266a18f10db200dfa9a880b88·...·]/core/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.78.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"><a·class="src·rightsi[·...·truncated·by·diffoscope;·len:·402,·SHA:·7689a974f800fd069d1b4453ef62d6d6ad1b654462d624d36e3672051d502030·...·]/core/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.78.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:·946,·SHA:·877b8718d9df1464a912dd50eef16402225367db4e4b26484b5ee20d30644524·...·]/core/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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·1138,·SHA:·f6ae06b7de8e94df014341c5cf589a5e4a1298367b2ef7a968ec499c5170a70e·...·]/core/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.78.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:·552b3dd2132886d024e4d5bd2554611e25c1f068adaaf23ecf80da81d31997ef·...·]/core/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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·1058,·SHA:·b390dbdda8d7e93604b5ecd906a93efd03fe19bdaf41cf12893fd361bf974307·...·]/core/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.78.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:·875,·SHA:·5c5c44422f75cbb66ebcf54bea70536713b810843cc484b051aed088c6422d78·...·]/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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·1067,·SHA:·415d32e1211c35d3bb405de1d6e51c2102c14cadc3333894f063148dbe0b1f69·...·]/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:·543,·SHA:·f199bafab360be9b80e9f45c5ba799a52348b742ddb0fa9afdb1624729c36e58·...·]/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.78.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:·687,·SHA:·7f5256104c35c5948a2cb42b55f3048c9d2887e48a4a8226537a284f959c562a·...·]/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.78.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"><a·class="src·rightside"·href="../../../src/core/iter/t[·...·truncated·by·diffoscope;·len:·296,·SHA:·aea014801138aeee574964545b1e9ad297288a120113db6844b569d2b183e0a7·...·]/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.78.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"><a·class="src·rightside"·href="[·...·truncated·by·diffoscope;·len:·392,·SHA:·4e7da68f7be2622ef173653eca78d58e1f202b544a2e6abd14d8335c298c93a7·...·]/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.78.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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(<a·class="primitive"·href="https://doc.rust-lang.org/1.78.0/core/primitive.reference.html">&amp;mut·St</a>,·Self::<a·class="associatedty[·...·truncated·by·diffoscope;·len:·449,·SHA:·f12c268a8a8111b9e7126ad78bf5523a63733caa63d187c4fe792309ea41acdf·...·]/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:·474,·SHA:·c0ed850df640319d919b8c053c540caa158602207623bed65abbcd69ad9d2c9d·...·]/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.78.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.78.0/core/iter/trai[·...·truncated·by·diffoscope;·len:·594,·SHA:·02960742fa7892efaa08f289ce85865fc5efb6a4cd138c22e3566ca6fc727d78·...·]/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.78.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.78.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:·4d1f54658fd1c005b101a2e27b0da3c6ee0cbe2d891660c65470bfec01fa46f6·...·]/core/iter/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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·976,·SHA:·2a9182f6fe88e0b8a9b1ae1f46cace940cc0b8736033c354c0f0ccbf1c196e7a·...·]/core/iter/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.78.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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;[Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtyp[·...·truncated·by·diffoscope;·len:·135,·SHA:·0b06a6094d42ccbc8bce5b01c4383961fe7f1967f05e4c9f1ff33e71e425fb26·...·]/core/primitive.array.html">N</a>])·-&gt;·R,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iter_map_windows</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/87155">#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.78.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"><a·class="src·rightside"·href="../../../src/core[·...·truncated·by·diffoscope;·len:·262,·SHA:·6125a8b2b88486b3735bbd00905fe9ae55b6eb1491c8a493be9c8121dc3cb440·...·]/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.78.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"><a·class="src·rightside"[·...·truncated·by·diffoscope;·len:·358,·SHA:·d91b2ab18e0ce069e262cf523c6ef961f56eecad042ea1e9bcefe33cff28fc8f·...·]/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:·601,·SHA:·bdf3796aa87e911258d56122ffdaa3f8591a5c9db4ed6fd89c3dfd3660787f78·...·]/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.78.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.78.0/core/op[·...·truncated·by·diffoscope;·len:·745,·SHA:·424783f22102f4446d3ad4d362b1aafdb7531fa777213f97ee138aa878f67bd1·...·]/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.78.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:·694,·SHA:·db4bb2630979aa4504432e8d422265d943c9063bcf3d2e3be970003014226f1e·...·]/core/primitive.reference.html">&amp;mut·Self</a><div·class="where">where69 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·838,·SHA:·9b4fd8df7f41e9a76fd4cfca0a233b74b9bd27c3fe8228248abc3f940425a3e3·...·]/core/primitive.reference.html">&amp;mut·Self</a><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:·331,·SHA:·d13641714c275840abbb473011613a4e19924a453f5e1b83912681a9b7c5579b·...·]/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.78.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.78.0/core/it[·...·truncated·by·diffoscope;·len:·427,·SHA:·ecfaaac5d1d10c1bc4fcee9a050af0a268bee0b528c2d8ea4e9774440bd8a279·...·]/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.78.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.78.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:·d76c3fcf86c63211032a6b22dc5924ef552b1ad26b12e19f15d2f1d5b3d7e394·...·]/core/primitive.reference.html">&amp;mut·E</a><div·class="where">where72 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.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.78.0/core/iter/tr[·...·truncated·by·diffoscope;·len:·728,·SHA:·01937c2dc314c259495665570ae249c94b4a5b0719718f5f1188e6fc64ecf487·...·]/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.78.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.78.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:·759,·SHA:·3cf174fac64a83c8e22066c3d77741118f89b13411537fc82c1004faa5c9e2ae·...·]/core/primitive.tuple.html">(B,·B)</a><div·class="where">where74 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experiment[·...·truncated·by·diffoscope;·len:·879,·SHA:·e773b2222c92d001e295030cb47a780ab0c1132d7fc8e9e3a98de4f532e6c520·...·]/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.78.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.78.0/core/default/trait.Default.html"·title="trait·core::default::Default">Default</a>·+·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/collect/trait.Extend.html"·title="trait·core::iter::traits::collec[·...·truncated·by·diffoscope;·len:·95,·SHA:·8b3be1d0042cae0550f865faf5849221240bdf04eb1b2107605b72d48c3ad29c·...·]/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:·281bbd5137cae68dd8057d013e9c9f311461e746663120304e3f6adace77f784·...·]/core/primitive.usize.html">usize</a><div·class="where">where77 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·995,·SHA:·bec3765fdab56713186e2454cd84738b5b28e3280a2f3d5a25cefdbc3089b520·...·]/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.78.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>·+·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/double_ended/trait.DoubleEndedIterator.html"·title="trait·core::iter::trai[·...·truncated·by·diffoscope;·len:·132,·SHA:·e5b2cf5f56946ede1e190ed09879c5821e2de04cf8e5d145142eeb40c6340982·...·]/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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(<a·class="primitive"·href="https://doc.rust-lang.org/1.78.0/core/primitive.reference.html">&amp;T</a>)·-&gt;·<a·class="primitive"·href="[·...·truncated·by·diffoscope;·len:·32,·SHA:·63d052a8ced32bf927ffadd7e884c08caf4970e85dfdf6be0e568d49b174da96·...·]/core/primitive.bool.html">bool</a>,</div></h4></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:·dc6a465df534b0392c5280e79e5249847890045561099b2cfc44bfabc4801d8d·...·]/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.78.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:·0c224636c18baa273f69de21f90083317f2ea0b7367a3f0d0f1c0ace55a36f79·...·]/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.78.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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·135,·SHA:·51ff5f5c7ebd8440623ea71b125c5a5837e809e308fe1a13fbe19cddb941dbd9·...·]/core/primitive.bool.html">bool</a>,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iter_is_partitioned</code>&nbsp;<a·href="https://github.com/rust-lang/rust/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:·bd8fce4ee431c619c98780c4d520e8db93f1e034f12843ffaff5744b7ce2190b·...·]/core/iter/traits/iterator/trait.Iterator.html#method.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.78.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:·2c74873f4e5ba70004a1c7edd1cc3f9e2d91271295dd1591e2d26848df4c02ba·...·]/core/iter/traits/iterator/trait.Iterator.html#method.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.78.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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(B,·Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.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.78.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:·7b4fc32e7634ae85c682a97099be267837713d7e4831893b617ca652f57a89da·...·]/core/iter/traits/iterator/trait.Iterator.html#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.78.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:·52912e82c4b0a760d06f77eb4ee3a59ba70dd76cb532954900c73ae94c652674·...·]/core/iter/traits/iterator/trait.Iterator.html#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.78.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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.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.78.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.78.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"><a·class="src·rightside"·href="../../../src/cor[·...·truncated·by·diffoscope;·len:·139,·SHA:·dc7fb7a70636459a0d7de28cbcb454050f39c184bab178c95c524a6eb9ca51cf·...·]/core/iter/traits/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.78.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"><a·class="src·rightside[·...·truncated·by·diffoscope;·len:·211,·SHA:·924e062acd8127e8d6158162219ee5d57a941854e14063d21d7768edae549431·...·]/core/iter/traits/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.78.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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(B,·Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::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:·2c738ecc68200afa2467bef085de14dcb642dbaac77c4529948f5e259e66691d·...·]/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.78.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:·b60215068a6d9721be05f81098c51167d7138c4042f140cad42f77c4df43f597·...·]/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.78.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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·352,·SHA:·e7c3c296abe2c0a183967153e4ae7fd50bafa2ae7088e3e78b3b48fee253adc6·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::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:·c3f1d50e276def36966943119961a20b09cab3be33483fe4d48d7f322489534b·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_reduce"·class="fn">try_reduce</a>&lt;F,·R&gt;(99 operation.·<a·href="https://doc.rust-lang.org/1.78.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:·7a18fdd041b1a001b4a8feb289ee127fd9240232239269eb35dc3b8f74783ec9·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_reduce"·class="fn">try_reduce</a>&lt;F,·R&gt;(
100 ····&amp;mut·self,100 ····&amp;mut·self,
101 ····f:·F101 ····f:·F
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.78.0/core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&gt;::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/ops/try_trait/trait.Try.html#associatedtype.Residual"·title="type[·...·truncated·by·diffoscope;·len:·754,·SHA:·6fb4dfdb6b4da68921c1e7f8b75d99cf293d58318d684a840254ce9576957bea·...·]/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.78.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:·68,·SHA:·e7e11f257edcac749a5883ad9a3aa42e6e965be419f967b36caa7afd3b36d7c9·...·]/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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·140,·SHA:·c27972e6fa3464c9476eaa185e8657edb6bb294f148403f3d079285294a9f909·...·]/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·=·Self::<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.78.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.78.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</[·...·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·the106 ····&lt;R·as·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&gt;::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/ops/try_trait/trait.Try.html#associatedtype.Residual"·title="type[·...·truncated·by·diffoscope;·len:·412,·SHA:·22b8cbb007e5cce82b9d13a65bfa56aa8d83c32541fac25f4d9b3857b0540908·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;&gt;,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iterator_try_reduce</code>&nbsp;<a·href="https://github.com/rust-lang/rust/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"><a·class="src·rightside"·href="../../../src/core/i[·...·truncated·by·diffoscope;·len:·284,·SHA:·fbacd9a305d3a60d42d9adcc5ea9e5f579f4ff5d970999f333eaf0c7f9baf66c·...·]/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.78.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"><a·class="src·rightside"·h[·...·truncated·by·diffoscope;·len:·380,·SHA:·29c4004d4d8b0c8c9dfe9023f8b2c5ef801d9dc4688893035d182c1ae774c453·...·]/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.78.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:·754,·SHA:·e3afac523bd4c054d94fbbb6c5c856ac78a6359550526fa0726732b36529c33d·...·]/core/primitive.bool.html">bool</a><div·class="where">where109 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·922,·SHA:·f4fd532c280e18f28bd6dda6c2a129e2e92114b67f27235bb5fd39f725be9c43·...·]/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.78.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:·884,·SHA:·32570d141a71827f9ac19bf566a51ca4814ccafaf6f8a961920ce107fe9657d7·...·]/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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·1076,·SHA:·2dd9de8adaee4a5ee96501d9a58bfac2fea00ba8d78b834bfca29949b3afe18b·...·]/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.78.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:[·...·truncated·by·diffoscope;·len:·883,·SHA:·f441e2966ff8db4214e57fcd74f81262d6e371aa51cea97ebde5921e81b4da79·...·]/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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·1051,·SHA:·ecc0b8fccd861464760f9ae047ff6ab98c91a1db010cb5fa59a8c2ab883db7c4·...·]/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.78.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::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·returns115 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·130,·SHA:·130a13019dc175d02304b4f550157e2f13ac15c2f25a979c74161d10b146ab89·...·]/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/cor[·...·truncated·by·diffoscope;·len:·143,·SHA:·ec4fb002625b166504031522e52a66812b279e6735a67cb718813205909c3fb7·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_find"·class="fn">try_find</a>&lt;F,·R&gt;(116 the·first·non-none·result.·<a·href="https://doc.rust-lang.org/1.78.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:·8ced1b10e78750774c5c8ed995ed83dcd13983aa75d329acf8069da106ab9f4a·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_find"·class="fn">try_find</a>&lt;F,·R&gt;(
117 ····&amp;mut·self,117 ····&amp;mut·self,
118 ····f:·F118 ····f:·F
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</[·...·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">where119 )·-&gt;·&lt;&lt;R·as·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&gt;::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/ops/try_trait/trait.Try.html#associatedtype.Residual"·title="type[·...·truncated·by·diffoscope;·len:·626,·SHA:·95f9831257b68862cbcbf54f0ad2ff4e597a4c9f763112d1da8a0897dadcf872·...·]/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.78.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::Iterator::Item">Item</a>)·-&gt;·R,121 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·R,
122 ····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;,122 ····R:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.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.78.0/core/primitive.bool.html">bool</a>&gt;,
123 ····&lt;R·as·<a·class="trait"·href="../../../core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</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·returns123 ····&lt;R·as·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&gt;::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/ops/try_trait/trait.Try.html#associatedtype.Residual"·title="type[·...·truncated·by·diffoscope;·len:·412,·SHA:·22b8cbb007e5cce82b9d13a65bfa56aa8d83c32541fac25f4d9b3857b0540908·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;&gt;,</div></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
124 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"><a·class="src·rightside"·href="../../../src/cor[·...·truncated·by·diffoscope;·len:·419,·SHA:·4337d283573b9683aaa605a7d2417318ef2a03902876e7da2ec26f2a5febf794·...·]/core/primitive.usize.html">usize</a>&gt;<div·class="where">where124 the·first·true·result·or·the·first·error.·<a·href="https://doc.rust-lang.org/1.78.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"><a·class="src·rightside[·...·truncated·by·diffoscope;·len:·539,·SHA:·04e329705f11ed9ec269a68b0b75ac4ab26c78e4316a571ee9336c28bbca6359·...·]/core/primitive.usize.html">usize</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.78.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
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::Iter[·...·truncated·by·diffoscope;·len:·901,·SHA:·a6eb7314148a1006184790a26873440fac678952c99874de84cb66644e250c0b·...·]/core/primitive.usize.html">usize</a>&gt;<div·class="where">where126 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·1093,·SHA:·623dbacabfe45799103c799fb60a4d212ceb8759ff853a11209a07793257c9cd·...·]/core/primitive.usize.html">usize</a>&gt;<div·class="where">where
Max diff block lines reached; 84777/316039 bytes (26.82%) of diff not shown.
59.1 KB
./usr/share/doc/rust-web-doc/html/alloc/collections/btree_map/struct.OccupiedEntry.html
    
Offset 1, 44 lines modifiedOffset 1, 44 lines modified
1 <!DOCTYPE·html><html·lang="en"><head><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.write(`<link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../../static.files/SourceSerif4-Regular-46f98efaafac5295.ttf.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../../static.files/FiraSans-Regular-018c141bf0843ffd.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../../static.files/FiraSans-Medium-8f9a781e4970d388.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../../static.files/SourceCodePro-Regular-562dcc5011b6de7d.ttf.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../../static.files/SourceCodePro-Semibold-d899c5a5c4aeb14a.ttf.woff2">`)</script><link·rel="stylesheet"·href="../../../static.files/normalize-76eba96aa4d2e634.css"><link·rel="stylesheet"·href="../../../static.files/rustdoc-35f9e32502181f1e.css"><meta·name="rustdoc-vars"·data-root-path="../../../"·data-static-root-path="../../../static.files/"·data-current-crate="alloc"·data-themes=""·data-resource-suffix="1.78.0"·data-rustdoc-version="1.78.0"·data-channel="1.78.0"·data-search-js="search-42d8da7a6b9792c2.js"·data-settings-js="settings-4313503d2e1961c2.js"·><script·src="../../../static.files/storage-4c98445ec4002617.js"></script><script·defer·src="sidebar-items1.78.0.js"></script><script·defer·src="../../../static.files/main-12cf3b4f4f9dc36d.js"></script><noscript><link·rel="stylesheet"·href="../../../static.files/noscript-04d5337699b92874.css"></noscript><link·rel="alternate·icon"·type="image/png"·href="../../../static.files/favicon-16x16-8b506e7a72182f1c.png"><link·rel="alternate·icon"·type="image/png"·href="../../../static.files/favicon-32x32-422f7d1d52889060.png"><link·rel="icon"·type="image/svg+xml"·href="../../../static.files/favicon-2c020d218678b618.svg"></head><body·class="rustdoc·struct"><!--[if·lte·IE·11]><div·class="warning">This·old·browser·is·unsupported·and·will·most·likely·display·funky·things.</div><![endif]--><nav·class="mobile-topbar"><button·class="sidebar-menu-toggle"·title="show·sidebar"></button><a·class="logo-container"·href="../../../alloc/index.html"><img·class="rust-logo"·src="../../../static.files/rust-logo-151179464ae7ed46.svg"·alt=""></a></nav><nav·class="sidebar"><div·class="sidebar-crate"><a·class="logo-container"·href="../../../alloc/index.html"><img·class="rust-logo"·src="../../../static.files/rust-logo-151179464ae7ed46.svg"·alt="logo"></a><h2><a·href="../../../alloc/index.html">alloc</a><span·class="version">1.78.0</span></h2></div><h2·class="location"><a·href="#">OccupiedEntry</a></h2><div·class="sidebar-elems"><section><h3><a·href="#implementations">Methods</a></h3><ul·class="block·method"><li><a·href="#method.get">get</a></li><li><a·href="#method.get_mut">get_mut</a></li><li><a·href="#method.insert">insert</a></li><li><a·href="#method.into_mut">into_mut</a></li><li><a·href="#method.key">key</a></li><li><a·href="#method.remove">remove</a></li><li><a·href="#method.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">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">!UnwindSafe</a></li><li><a·href="#impl-Freeze-for-OccupiedEntry%3C'a,+K,+V,+A%3E">Freeze</a></li><li><a·href="#impl-RefUnwindSafe-for-OccupiedEntry%3C'a,+K,+V,+A%3E">RefUnwindSafe</a></li><li><a·href="#impl-Send-for-OccupiedEntry%3C'a,+K,+V,+A%3E">Send</a></li><li><a·href="#impl-Sync-for-OccupiedEntry%3C'a,+K,+V,+A%3E">Sync</a></li><li><a·href="#impl-Unpin-for-OccupiedEntry%3C'a,+K,+V,+A%3E">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">Any</a></li><li><a·href="#impl-Borrow%3CT%3E-for-T">Borrow&lt;T&gt;</a></li><li><a·href="#impl-BorrowMut%3CT%3E-for-T">BorrowMut&lt;T&gt;</a></li><li><a·href="#impl-From%3CT%3E-for-T">From&lt;T&gt;</a></li><li><a·href="#impl-Into%3CU%3E-for-T">Into&lt;U&gt;</a></li><li><a·href="#impl-TryFrom%3CU%3E-for-T">TryFrom&lt;U&gt;</a></li><li><a·href="#impl-TryInto%3CU%3E-for-T">TryInto&lt;U&gt;</a></li></ul></section><h2><a·href="index.html">In·alloc::collections::btree_map</a></h2></div></nav><div·class="sidebar-resizer"></div>1 <!DOCTYPE·html><html·lang="en"><head><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.write(`<link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../../static.files/SourceSerif4-Regular-46f98efaafac5295.ttf.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../../static.files/FiraSans-Regular-018c141bf0843ffd.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../../static.files/FiraSans-Medium-8f9a781e4970d388.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../../static.files/SourceCodePro-Regular-562dcc5011b6de7d.ttf.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../../static.files/SourceCodePro-Semibold-d899c5a5c4aeb14a.ttf.woff2">`)</script><link·rel="stylesheet"·href="../../../static.files/normalize-76eba96aa4d2e634.css"><link·rel="stylesheet"·href="../../../static.files/rustdoc-35f9e32502181f1e.css"><meta·name="rustdoc-vars"·data-root-path="../../../"·data-static-root-path="../../../static.files/"·data-current-crate="alloc"·data-themes=""·data-resource-suffix="1.78.0"·data-rustdoc-version="1.78.0"·data-channel="1.78.0"·data-search-js="search-42d8da7a6b9792c2.js"·data-settings-js="settings-4313503d2e1961c2.js"·><script·src="../../../static.files/storage-4c98445ec4002617.js"></script><script·defer·src="sidebar-items1.78.0.js"></script><script·defer·src="../../../static.files/main-12cf3b4f4f9dc36d.js"></script><noscript><link·rel="stylesheet"·href="../../../static.files/noscript-04d5337699b92874.css"></noscript><link·rel="alternate·icon"·type="image/png"·href="../../../static.files/favicon-16x16-8b506e7a72182f1c.png"><link·rel="alternate·icon"·type="image/png"·href="../../../static.files/favicon-32x32-422f7d1d52889060.png"><link·rel="icon"·type="image/svg+xml"·href="../../../static.files/favicon-2c020d218678b618.svg"></head><body·class="rustdoc·struct"><!--[if·lte·IE·11]><div·class="warning">This·old·browser·is·unsupported·and·will·most·likely·display·funky·things.</div><![endif]--><nav·class="mobile-topbar"><button·class="sidebar-menu-toggle"·title="show·sidebar"></button><a·class="logo-container"·href="../../../alloc/index.html"><img·class="rust-logo"·src="../../../static.files/rust-logo-151179464ae7ed46.svg"·alt=""></a></nav><nav·class="sidebar"><div·class="sidebar-crate"><a·class="logo-container"·href="../../../alloc/index.html"><img·class="rust-logo"·src="../../../static.files/rust-logo-151179464ae7ed46.svg"·alt="logo"></a><h2><a·href="../../../alloc/index.html">alloc</a><span·class="version">1.78.0</span></h2></div><h2·class="location"><a·href="#">OccupiedEntry</a></h2><div·class="sidebar-elems"><section><h3><a·href="#implementations">Methods</a></h3><ul·class="block·method"><li><a·href="#method.get">get</a></li><li><a·href="#method.get_mut">get_mut</a></li><li><a·href="#method.insert">insert</a></li><li><a·href="#method.into_mut">into_mut</a></li><li><a·href="#method.key">key</a></li><li><a·href="#method.remove">remove</a></li><li><a·href="#method.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">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">!UnwindSafe</a></li><li><a·href="#impl-Freeze-for-OccupiedEntry%3C'a,+K,+V,+A%3E">Freeze</a></li><li><a·href="#impl-RefUnwindSafe-for-OccupiedEntry%3C'a,+K,+V,+A%3E">RefUnwindSafe</a></li><li><a·href="#impl-Send-for-OccupiedEntry%3C'a,+K,+V,+A%3E">Send</a></li><li><a·href="#impl-Sync-for-OccupiedEntry%3C'a,+K,+V,+A%3E">Sync</a></li><li><a·href="#impl-Unpin-for-OccupiedEntry%3C'a,+K,+V,+A%3E">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">Any</a></li><li><a·href="#impl-Borrow%3CT%3E-for-T">Borrow&lt;T&gt;</a></li><li><a·href="#impl-BorrowMut%3CT%3E-for-T">BorrowMut&lt;T&gt;</a></li><li><a·href="#impl-From%3CT%3E-for-T">From&lt;T&gt;</a></li><li><a·href="#impl-Into%3CU%3E-for-T">Into&lt;U&gt;</a></li><li><a·href="#impl-TryFrom%3CU%3E-for-T">TryFrom&lt;U&gt;</a></li><li><a·href="#impl-TryInto%3CU%3E-for-T">TryInto&lt;U&gt;</a></li></ul></section><h2><a·href="index.html">In·alloc::collections::btree_map</a></h2></div></nav><div·class="sidebar-resizer"></div>
2 ····<main><div·class="width-limiter"><nav·class="sub"><form·class="search-form"><span></span><div·id="sidebar-button"·tabindex="-1"><a·href="../../../alloc/all.html"·title="show·sidebar"></a></div><input·class="search-input"·name="search"·aria-label="Run·search·in·the·documentation"·autocomplete="off"·spellcheck="false"·placeholder="Click·or·press·‘S’·to·search,·‘?’·for·more·options…"·type="search"><div·id="help-button"·tabindex="-1"><a·href="../../../help.html"·title="help">?</a></div><div·id="settings-menu"·tabindex="-1"><a·href="../../../settings.html"·title="settings"><img·width="22"·height="22"·alt="Change·settings"·src="../../../static.files/wheel-7b819b6101059cd0.svg"></a></div></form></nav><section·id="main-content"·class="content"><div·class="main-heading"><h1>Struct·<a·href="../../index.html">alloc</a>::<wbr><a·href="../index.html">collections</a>::<wbr><a·href="index.html">btree_map</a>::<wbr><a·class="struct"·href="#">OccupiedEntry</a><button·id="copy-path"·title="Copy·item·path·to·clipboard"><img·src="../../../static.files/clipboard-7571035ce49a181d.svg"·width="19"·height="18"·alt="Copy·item·path"></button></h1><span·class="out-of-band"><span·class="since"·title="Stable·since·Rust·version·1.0.0">1.0.0</span>···<a·class="src"·href="../../../src/alloc/collections/btree/map/entry.rs.html#76-90">source</a>···<button·id="toggle-all-docs"·title="collapse·all·docs">[<span>&#x2212;</span>]</button></span></div><pre·class="rust·item-decl"><code>pub·struct·OccupiedEntry&lt;'a,·K,·V,·A:·<a·class="trait"·href="../../alloc/trait.Allocator.html"·title="trait·alloc::alloc::Allocator">Allocator</a>·+·<a·class="trait"·href="../../../core/clone/trait.Clone.html"·title="trait·core::clone::Clone">Clone</a>·=·<a·class="struct"·href="../../alloc/struct.Global.html"·title="struct·alloc::alloc::Global">Global</a>&gt;·{·<span·class="comment">/*·private·fields·*/</span>·}</code></pre><details·class="toggle·top-doc"·open><summary·class="hideme"><span>Expand·description</span></summary><div·class="docblock"><p>A·view·into·an·occupied·entry·in·a·<code>BTreeMap</code>.2 ····<main><div·class="width-limiter"><nav·class="sub"><form·class="search-form"><span></span><div·id="sidebar-button"·tabindex="-1"><a·href="../../../alloc/all.html"·title="show·sidebar"></a></div><input·class="search-input"·name="search"·aria-label="Run·search·in·the·documentation"·autocomplete="off"·spellcheck="false"·placeholder="Click·or·press·‘S’·to·search,·‘?’·for·more·options…"·type="search"><div·id="help-button"·tabindex="-1"><a·href="../../../help.html"·title="help">?</a></div><div·id="settings-menu"·tabindex="-1"><a·href="../../../settings.html"·title="settings"><img·width="22"·height="22"·alt="Change·settings"·src="../../../static.files/wheel-7b819b6101059cd0.svg"></a></div></form></nav><section·id="main-content"·class="content"><div·class="main-heading"><h1>Struct·<a·href="../../index.html">alloc</a>::<wbr><a·href="../index.html">collections</a>::<wbr><a·href="index.html">btree_map</a>::<wbr><a·class="struct"·href="#">OccupiedEntry</a><button·id="copy-path"·title="Copy·item·path·to·clipboard"><img·src="../../../static.files/clipboard-7571035ce49a181d.svg"·width="19"·height="18"·alt="Copy·item·path"></button></h1><span·class="out-of-band"><span·class="since"·title="Stable·since·Rust·version·1.0.0">1.0.0</span>···<a·class="src"·href="../../../src/alloc/collections/btree/map/entry.rs.html#76-90">source</a>···<button·id="toggle-all-docs"·title="collapse·all·docs">[<span>&#x2212;</span>]</button></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.78.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>.
3 It·is·part·of·the·<a·href="enum.Entry.html"·title="enum·alloc::collections::btree_map::Entry"><code>Entry</code></a>·enum.</p>3 It·is·part·of·the·<a·href="enum.Entry.html"·title="enum·alloc::collections::btree_map::Entry"><code>Entry</code></a>·enum.</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-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>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-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.78.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:·42bef889f642adccaafa5d5f460c210a0251f8bb61d825009dd33e64fa0168e4·...·]/core/primitive.reference.html">&amp;K</a></h4></section></summary><div·class="docblock"><p>Gets·a·reference·to·the·key·in·the·entry.</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 map.entry(<span·class="string">"poneyland"</span>).or_insert(<span·class="number">12</span>);8 map.entry(<span·class="string">"poneyland"</span>).or_insert(<span·class="number">12</span>);
9 <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"·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">Run</a></div>9 <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"·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">Run</a></div>
10 </div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.remove_entry"·class="method"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.12.0">1.12.0</span>···<a·class="src"·href="../../../src/alloc/collections/btree/map/entry.rs.html#427-429">source</a></span><h4·class="code-header">pub·fn·<a·href="#method.remove_entry"·class="fn">remove_entry</a>(self)·-&gt;·<a·class="primitive"·href="../../../core/primitive.tuple.html">(K,·V)</a></h4></section></summary><div·class="docblock"><p>Take·ownership·of·the·key·and·value·from·the·map.</p>10 </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.78.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>
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::collections::BTreeMap;12 <div·class="example-wrap"><pre·class="rust·rust-example-rendered"><code><span·class="kw">use·</span>std::collections::BTreeMap;
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 map.entry(<span·class="string">"poneyland"</span>).or_insert(<span·class="number">12</span>);15 map.entry(<span·class="string">"poneyland"</span>).or_insert(<span·class="number">12</span>);
  
16 <span·class="kw">if·let·</span>Entry::Occupied(o)·=·map.entry(<span·class="string">"poneyland"</span>)·{16 <span·class="kw">if·let·</span>Entry::Occupied(o)·=·map.entry(<span·class="string">"poneyland"</span>)·{
17 ····<span·class="comment">//·We·delete·the·entry·from·the·map.17 ····<span·class="comment">//·We·delete·the·entry·from·the·map.
18 ····</span>o.remove_entry();18 ····</span>o.remove_entry();
19 }19 }
  
20 <span·class="comment">//·If·now·try·to·get·the·value,·it·will·panic:20 <span·class="comment">//·If·now·try·to·get·the·value,·it·will·panic:
21 //·println!("{}",·map["poneyland"]);</span></code></pre><a·class="test-arrow"·target="_blank"·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">Run</a></div>21 //·println!("{}",·map["poneyland"]);</span></code></pre><a·class="test-arrow"·target="_blank"·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">Run</a></div>
22 </div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.get"·class="method"><a·class="src·rightside"·href="../../../src/alloc/collections/btree/map/entry.rs.html#448-450">source</a><h4·class="code-header">pub·fn·<a·href="#method.get"·class="fn">get</a>(&amp;self)·-&gt;·<a·class="primitive"·href="../../../core/primitive.reference.html">&amp;V</a></h4></section></summary><div·class="docblock"><p>Gets·a·reference·to·the·value·in·the·entry.</p>22 </div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.get"·class="method"><a·class="src·rightside"·href="../../../src/alloc/collections/btree/map/entry.rs.html#448-450">source</a><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.78.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>
23 <h5·id="examples-2"><a·class="doc-anchor"·href="#examples-2">§</a>Examples</h5>23 <h5·id="examples-2"><a·class="doc-anchor"·href="#examples-2">§</a>Examples</h5>
24 <div·class="example-wrap"><pre·class="rust·rust-example-rendered"><code><span·class="kw">use·</span>std::collections::BTreeMap;24 <div·class="example-wrap"><pre·class="rust·rust-example-rendered"><code><span·class="kw">use·</span>std::collections::BTreeMap;
25 <span·class="kw">use·</span>std::collections::btree_map::Entry;25 <span·class="kw">use·</span>std::collections::btree_map::Entry;
  
26 <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 <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();
27 map.entry(<span·class="string">"poneyland"</span>).or_insert(<span·class="number">12</span>);27 map.entry(<span·class="string">"poneyland"</span>).or_insert(<span·class="number">12</span>);
  
28 <span·class="kw">if·let·</span>Entry::Occupied(o)·=·map.entry(<span·class="string">"poneyland"</span>)·{28 <span·class="kw">if·let·</span>Entry::Occupied(o)·=·map.entry(<span·class="string">"poneyland"</span>)·{
29 ····<span·class="macro">assert_eq!</span>(o.get(),·<span·class="kw-2">&amp;</span><span·class="number">12</span>);29 ····<span·class="macro">assert_eq!</span>(o.get(),·<span·class="kw-2">&amp;</span><span·class="number">12</span>);
30 }</code></pre><a·class="test-arrow"·target="_blank"·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">Run</a></div>30 }</code></pre><a·class="test-arrow"·target="_blank"·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">Run</a></div>
31 </div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.get_mut"·class="method"><a·class="src·rightside"·href="../../../src/alloc/collections/btree/map/entry.rs.html#479-481">source</a><h4·class="code-header">pub·fn·<a·href="#method.get_mut"·class="fn">get_mut</a>(&amp;mut·self)·-&gt;·<a·class="primitive"·href="../../../core/primitive.reference.html">&amp;mut·V</a></h4></section></summary><div·class="docblock"><p>Gets·a·mutable·reference·to·the·value·in·the·entry.</p>31 </div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.get_mut"·class="method"><a·class="src·rightside"·href="../../../src/alloc/collections/btree/map/entry.rs.html#479-481">source</a><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.78.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>
32 <p>If·you·need·a·reference·to·the·<code>OccupiedEntry</code>·that·may·outlive·the32 <p>If·you·need·a·reference·to·the·<code>OccupiedEntry</code>·that·may·outlive·the
33 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 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>
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">use·</span>std::collections::btree_map::Entry;36 <span·class="kw">use·</span>std::collections::btree_map::Entry;
  
37 <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="kw">let·</span><span·class="kw-2">mut·</span>map:·BTreeMap&lt;<span·class="kw-2">&amp;</span>str,·usize&gt;·=·BTreeMap::new();
Offset 49, 15 lines modifiedOffset 49, 15 lines modified
49 ····<span·class="kw-2">*</span>o.get_mut()·+=·<span·class="number">10</span>;49 ····<span·class="kw-2">*</span>o.get_mut()·+=·<span·class="number">10</span>;
50 ····<span·class="macro">assert_eq!</span>(<span·class="kw-2">*</span>o.get(),·<span·class="number">22</span>);50 ····<span·class="macro">assert_eq!</span>(<span·class="kw-2">*</span>o.get(),·<span·class="number">22</span>);
  
51 ····<span·class="comment">//·We·can·use·the·same·Entry·multiple·times.51 ····<span·class="comment">//·We·can·use·the·same·Entry·multiple·times.
52 ····</span><span·class="kw-2">*</span>o.get_mut()·+=·<span·class="number">2</span>;52 ····</span><span·class="kw-2">*</span>o.get_mut()·+=·<span·class="number">2</span>;
53 }53 }
54 <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"·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">Run</a></div>54 <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"·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">Run</a></div>
55 </div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.into_mut"·class="method"><a·class="src·rightside"·href="../../../src/alloc/collections/btree/map/entry.rs.html#506-508">source</a><h4·class="code-header">pub·fn·<a·href="#method.into_mut"·class="fn">into_mut</a>(self)·-&gt;·<a·class="primitive"·href="../../../core/primitive.reference.html">&amp;'a·mut·V</a></h4></section></summary><div·class="docblock"><p>Converts·the·entry·into·a·mutable·reference·to·its·value.</p>55 </div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.into_mut"·class="method"><a·class="src·rightside"·href="../../../src/alloc/collections/btree/map/entry.rs.html#506-508">source</a><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.78.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>
56 <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 <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>
57 <h5·id="examples-4"><a·class="doc-anchor"·href="#examples-4">§</a>Examples</h5>57 <h5·id="examples-4"><a·class="doc-anchor"·href="#examples-4">§</a>Examples</h5>
58 <div·class="example-wrap"><pre·class="rust·rust-example-rendered"><code><span·class="kw">use·</span>std::collections::BTreeMap;58 <div·class="example-wrap"><pre·class="rust·rust-example-rendered"><code><span·class="kw">use·</span>std::collections::BTreeMap;
59 <span·class="kw">use·</span>std::collections::btree_map::Entry;59 <span·class="kw">use·</span>std::collections::btree_map::Entry;
  
60 <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 <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();
61 map.entry(<span·class="string">"poneyland"</span>).or_insert(<span·class="number">12</span>);61 map.entry(<span·class="string">"poneyland"</span>).or_insert(<span·class="number">12</span>);
Offset 89, 29 lines modifiedOffset 89, 29 lines modified
89 map.entry(<span·class="string">"poneyland"</span>).or_insert(<span·class="number">12</span>);89 map.entry(<span·class="string">"poneyland"</span>).or_insert(<span·class="number">12</span>);
  
90 <span·class="kw">if·let·</span>Entry::Occupied(o)·=·map.entry(<span·class="string">"poneyland"</span>)·{90 <span·class="kw">if·let·</span>Entry::Occupied(o)·=·map.entry(<span·class="string">"poneyland"</span>)·{
91 ····<span·class="macro">assert_eq!</span>(o.remove(),·<span·class="number">12</span>);91 ····<span·class="macro">assert_eq!</span>(o.remove(),·<span·class="number">12</span>);
92 }92 }
93 <span·class="comment">//·If·we·try·to·get·"poneyland"'s·value,·it'll·panic:93 <span·class="comment">//·If·we·try·to·get·"poneyland"'s·value,·it'll·panic:
94 //·println!("{}",·map["poneyland"]);</span></code></pre><a·class="test-arrow"·target="_blank"·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">Run</a></div>94 //·println!("{}",·map["poneyland"]);</span></code></pre><a·class="test-arrow"·target="_blank"·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">Run</a></div>
95 </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#93-97">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:·7c8cf7c082875813e805ac1ddb6e400e3734686dd993652ae7c75eb9d4071838·...·]/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">where95 </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#93-97">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.78.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:·017e55ef66e0af62550bab457be01dcf5079d23452e3ae1e3d5d66a1a8842477·...·]/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
96 ····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">where96 ····A:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.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:·6a497f3d5912cc08a51b018d679d4ca456d33e3169b66b624bd1b0dc29e29184·...·]/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
97 ····A:·<a·class="trait"·href="../../../core/panic/unwind_safe/trait.RefUnwindSafe.html"·title="trait·core::panic::unwind_safe::RefUnwindSafe">RefUnwindSafe</a>,97 ····A:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/panic/unwind_safe/trait.RefUnwindSafe.html"·title="trait·core::panic::unwind_safe::RefUnwindSafe">RefUnwindSafe</a>,
98 ····K:·<a·class="trait"·href="../../../core/panic/unwind_safe/trait.RefUnwindSafe.html"·title="trait·core::panic::unwind_safe::RefUnwindSafe">RefUnwindSafe</a>,98 ····K:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/panic/unwind_safe/trait.RefUnwindSafe.html"·title="trait·core::panic::unwind_safe::RefUnwindSafe">RefUnwindSafe</a>,
99 ····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">where99 ····V:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.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:·9a5d5e1dff8fa84437233fda092fe51b6dc0f534dd844fe03489fa7989990fb6·...·]/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
100 ····A:·<a·class="trait"·href="../../../core/marker/trait.Send.html"·title="trait·core::marker::Send">Send</a>,100 ····A:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/marker/trait.Send.html"·title="trait·core::marker::Send">Send</a>,
101 ····K:·<a·class="trait"·href="../../../core/marker/trait.Send.html"·title="trait·core::marker::Send">Send</a>,101 ····K:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/marker/trait.Send.html"·title="trait·core::marker::Send">Send</a>,
102 ····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">where102 ····V:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.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:·d76f132b5ece5b92e8e7551b7e41b76e18c1a937a614476ef35ff27e89f750b5·...·]/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
103 ····A:·<a·class="trait"·href="../../../core/marker/trait.Sync.html"·title="trait·core::marker::Sync">Sync</a>,103 ····A:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/marker/trait.Sync.html"·title="trait·core::marker::Sync">Sync</a>,
104 ····K:·<a·class="trait"·href="../../../core/marker/trait.Sync.html"·title="trait·core::marker::Sync">Sync</a>,104 ····K:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/marker/trait.Sync.html"·title="trait·core::marker::Sync">Sync</a>,
105 ····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">where105 ····V:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.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:·dca0e4fc172c75908ed255e066745ffb2625c58168d83e137713104273cd5a9e·...·]/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
106 ····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:·2913770f07cd0ef0143aa656500b13e98a9203e52976636f02ce5415b37f98ba·...·]/core/any/trait.Any.html"·title="trait·core::any::Any">Any</a>·for·T<div·class="where">where106 ····A:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.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:·a051b75fc1f45b06dfadd34c3711cb4cfc1661ca8a34892b76334639b38f8f6f·...·]/core/any/trait.Any.html"·title="trait·core::any::Any">Any</a>·for·T<div·class="where">where
107 ····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:·60266624df43cdf1ecb412e35aaf311341d62543468bcbd4041716fbafffc07b·...·]/src/core/borrow.rs.html#208">source</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">where107 ····T:·'static·+·?<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">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:·039b8952ccb1ab7d8f15cd519cbc10f4afc149276d0f9cfd3a53117d606059df·...·]/src/core/borrow.rs.html#208">source</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
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"·class="method·trait-impl"><a·class="sr[·...·truncated·by·diffoscope;·len:·647,·SHA:·8124d60df08ac71436917cb874e0ec9c0ffe7e4515e2ea246a1f1009f83ac6a1·...·]/src/core/borrow.rs.html#216">source</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">where108 ····T:·?<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/marker/trait.Sized.html"·title="trait·core::marker::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:·b03884aeae1813f459b6ebe4b7e3f3c22d5d37e0ad023677fd3869bc5a735be2·...·]/src/core/borrow.rs.html#216">source</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
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_mut"·class="method·trait-impl"><a·class[·...·truncated·by·diffoscope;·len:·1254,·SHA:·88cecdca8f65ac7671462e07b83fc0153c4024bd8b3f1bfba320be439fbe3a4f·...·]/core/convert/trait.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 ····T:·?<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/marker/trait.Sized.html"·title="trait·core::marker::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:·aaf5505cf4d2f5510949d066675a02996763e3167f43d15d7a3f114042a751b5·...·]/core/convert/trait.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 </div></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">where110 </div></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.78.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.78.0/core/convert/trait.Into.html"·title="trait·core::convert::Into">Into</a>&lt;U&gt;·for·T<div·class="where">where
111 ····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>111 ····U:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.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:·2cf76a8ca501b2a1fef209fed846779ab1bed3b75f52c7425335e3ce04e6b272·...·]/core/convert/trait.Into.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 <p>That·is,·this·conversion·is·whatever·the·implementation·of112 <p>That·is,·this·conversion·is·whatever·the·implementation·of
113 <code><a·href="../../../core/convert/trait.From.html"·title="trait·core::convert::From">From</a>&lt;T&gt;·for·U</code>·chooses·to·do.</p>113 <code><a·href="https://doc.rust-lang.org/1.78.0/core/convert/trait.From.html"·title="trait·core::convert::From">From</a>&lt;T&gt;·for·U</code>·chooses·to·do.</p>
114 </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">where114 </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.78.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.78.0/core/convert/trait.TryFrom.html"·title="trait·core::convert::TryFrom">TryFrom</a>&lt;U&gt;·for·T<div·class="where">where
115 ····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"·class="associatedtype·trait-impl"><a·[·...·truncated·by·diffoscope;·len:·1621,·SHA:·6a7315ddf4ab9fa76e45d600a396b342519e12c73d2e6dd09bf01e1fa1b0aac0·...·]/core/convert/trait.TryInto.html"·title="trait·core::convert::TryInto">TryInto</a>&lt;U&gt;·for·T<div·class="where">where115 ····U:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.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"·class="associ[·...·truncated·by·diffoscope;·len:·1861,·SHA:·78398046ba16de2f66a8201a11d6a2dd405fceedeabfcaa37481e77092687e6f·...·]/core/convert/trait.TryInto.html"·title="trait·core::convert::TryInto">TryInto</a>&lt;U&gt;·for·T<div·class="where">where
116 ····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-1"·class="associatedtype·trai[·...·truncated·by·diffoscope;·len:·1258,·SHA:·33d8749d0be17f35431e59e57d3fb79a5cc4320bd6fc26ab5ef088d04d3c929a·...·]/core/convert/trait.TryFrom.html#associatedtype.Error"·title="type·core::convert::TryFrom::Error">Error</a>&gt;</h4></section></summary><div·class='docblock'>Performs·the·conversion.</div></details></div></details></div></section></div></main></body></html>116 ····U:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.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-1"·cl[·...·truncated·by·diffoscope;·len:·1474,·SHA:·ca90cccb6c86c654c95a1aaec456fbbe4b115f0d5a700e7d156e823346d70894·...·]/core/convert/trait.TryFrom.html#associatedtype.Error"·title="type·core::convert::TryFrom::Error">Error</a>&gt;</h4></section></summary><div·class='docblock'>Performs·the·conversion.</div></details></div></details></div></section></div></main></body></html>
61.3 KB
./usr/share/doc/rust-web-doc/html/alloc/collections/btree_map/struct.OccupiedError.html
    
Offset 1, 33 lines modifiedOffset 1, 33 lines modified
1 <!DOCTYPE·html><html·lang="en"><head><meta·charset="utf-8"><meta·name="viewport"·content="width=device-width,·initial-scale=1.0"><meta·name="generator"·content="rustdoc"><meta·name="description"·content="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.write(`<link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../../static.files/SourceSerif4-Regular-46f98efaafac5295.ttf.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../../static.files/FiraSans-Regular-018c141bf0843ffd.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../../static.files/FiraSans-Medium-8f9a781e4970d388.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../../static.files/SourceCodePro-Regular-562dcc5011b6de7d.ttf.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../../static.files/SourceCodePro-Semibold-d899c5a5c4aeb14a.ttf.woff2">`)</script><link·rel="stylesheet"·href="../../../static.files/normalize-76eba96aa4d2e634.css"><link·rel="stylesheet"·href="../../../static.files/rustdoc-35f9e32502181f1e.css"><meta·name="rustdoc-vars"·data-root-path="../../../"·data-static-root-path="../../../static.files/"·data-current-crate="alloc"·data-themes=""·data-resource-suffix="1.78.0"·data-rustdoc-version="1.78.0"·data-channel="1.78.0"·data-search-js="search-42d8da7a6b9792c2.js"·data-settings-js="settings-4313503d2e1961c2.js"·><script·src="../../../static.files/storage-4c98445ec4002617.js"></script><script·defer·src="sidebar-items1.78.0.js"></script><script·defer·src="../../../static.files/main-12cf3b4f4f9dc36d.js"></script><noscript><link·rel="stylesheet"·href="../../../static.files/noscript-04d5337699b92874.css"></noscript><link·rel="alternate·icon"·type="image/png"·href="../../../static.files/favicon-16x16-8b506e7a72182f1c.png"><link·rel="alternate·icon"·type="image/png"·href="../../../static.files/favicon-32x32-422f7d1d52889060.png"><link·rel="icon"·type="image/svg+xml"·href="../../../static.files/favicon-2c020d218678b618.svg"></head><body·class="rustdoc·struct"><!--[if·lte·IE·11]><div·class="warning">This·old·browser·is·unsupported·and·will·most·likely·display·funky·things.</div><![endif]--><nav·class="mobile-topbar"><button·class="sidebar-menu-toggle"·title="show·sidebar"></button><a·class="logo-container"·href="../../../alloc/index.html"><img·class="rust-logo"·src="../../../static.files/rust-logo-151179464ae7ed46.svg"·alt=""></a></nav><nav·class="sidebar"><div·class="sidebar-crate"><a·class="logo-container"·href="../../../alloc/index.html"><img·class="rust-logo"·src="../../../static.files/rust-logo-151179464ae7ed46.svg"·alt="logo"></a><h2><a·href="../../../alloc/index.html">alloc</a><span·class="version">1.78.0</span></h2></div><h2·class="location"><a·href="#">OccupiedError</a></h2><div·class="sidebar-elems"><section><h3><a·href="#fields">Fields</a></h3><ul·class="block·structfield"><li><a·href="#structfield.entry">entry</a></li><li><a·href="#structfield.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">Debug</a></li><li><a·href="#impl-Display-for-OccupiedError%3C'a,+K,+V,+A%3E">Display</a></li><li><a·href="#impl-Error-for-OccupiedError%3C'a,+K,+V%3E">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">!UnwindSafe</a></li><li><a·href="#impl-Freeze-for-OccupiedError%3C'a,+K,+V,+A%3E">Freeze</a></li><li><a·href="#impl-RefUnwindSafe-for-OccupiedError%3C'a,+K,+V,+A%3E">RefUnwindSafe</a></li><li><a·href="#impl-Send-for-OccupiedError%3C'a,+K,+V,+A%3E">Send</a></li><li><a·href="#impl-Sync-for-OccupiedError%3C'a,+K,+V,+A%3E">Sync</a></li><li><a·href="#impl-Unpin-for-OccupiedError%3C'a,+K,+V,+A%3E">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">Any</a></li><li><a·href="#impl-Borrow%3CT%3E-for-T">Borrow&lt;T&gt;</a></li><li><a·href="#impl-BorrowMut%3CT%3E-for-T">BorrowMut&lt;T&gt;</a></li><li><a·href="#impl-From%3CT%3E-for-T">From&lt;T&gt;</a></li><li><a·href="#impl-Into%3CU%3E-for-T">Into&lt;U&gt;</a></li><li><a·href="#impl-ToString-for-T">ToString</a></li><li><a·href="#impl-TryFrom%3CU%3E-for-T">TryFrom&lt;U&gt;</a></li><li><a·href="#impl-TryInto%3CU%3E-for-T">TryInto&lt;U&gt;</a></li></ul></section><h2><a·href="index.html">In·alloc::collections::btree_map</a></h2></div></nav><div·class="sidebar-resizer"></div>1 <!DOCTYPE·html><html·lang="en"><head><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.write(`<link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../../static.files/SourceSerif4-Regular-46f98efaafac5295.ttf.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../../static.files/FiraSans-Regular-018c141bf0843ffd.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../../static.files/FiraSans-Medium-8f9a781e4970d388.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../../static.files/SourceCodePro-Regular-562dcc5011b6de7d.ttf.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../../static.files/SourceCodePro-Semibold-d899c5a5c4aeb14a.ttf.woff2">`)</script><link·rel="stylesheet"·href="../../../static.files/normalize-76eba96aa4d2e634.css"><link·rel="stylesheet"·href="../../../static.files/rustdoc-35f9e32502181f1e.css"><meta·name="rustdoc-vars"·data-root-path="../../../"·data-static-root-path="../../../static.files/"·data-current-crate="alloc"·data-themes=""·data-resource-suffix="1.78.0"·data-rustdoc-version="1.78.0"·data-channel="1.78.0"·data-search-js="search-42d8da7a6b9792c2.js"·data-settings-js="settings-4313503d2e1961c2.js"·><script·src="../../../static.files/storage-4c98445ec4002617.js"></script><script·defer·src="sidebar-items1.78.0.js"></script><script·defer·src="../../../static.files/main-12cf3b4f4f9dc36d.js"></script><noscript><link·rel="stylesheet"·href="../../../static.files/noscript-04d5337699b92874.css"></noscript><link·rel="alternate·icon"·type="image/png"·href="../../../static.files/favicon-16x16-8b506e7a72182f1c.png"><link·rel="alternate·icon"·type="image/png"·href="../../../static.files/favicon-32x32-422f7d1d52889060.png"><link·rel="icon"·type="image/svg+xml"·href="../../../static.files/favicon-2c020d218678b618.svg"></head><body·class="rustdoc·struct"><!--[if·lte·IE·11]><div·class="warning">This·old·browser·is·unsupported·and·will·most·likely·display·funky·things.</div><![endif]--><nav·class="mobile-topbar"><button·class="sidebar-menu-toggle"·title="show·sidebar"></button><a·class="logo-container"·href="../../../alloc/index.html"><img·class="rust-logo"·src="../../../static.files/rust-logo-151179464ae7ed46.svg"·alt=""></a></nav><nav·class="sidebar"><div·class="sidebar-crate"><a·class="logo-container"·href="../../../alloc/index.html"><img·class="rust-logo"·src="../../../static.files/rust-logo-151179464ae7ed46.svg"·alt="logo"></a><h2><a·href="../../../alloc/index.html">alloc</a><span·class="version">1.78.0</span></h2></div><h2·class="location"><a·href="#">OccupiedError</a></h2><div·class="sidebar-elems"><section><h3><a·href="#fields">Fields</a></h3><ul·class="block·structfield"><li><a·href="#structfield.entry">entry</a></li><li><a·href="#structfield.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">Debug</a></li><li><a·href="#impl-Display-for-OccupiedError%3C'a,+K,+V,+A%3E">Display</a></li><li><a·href="#impl-Error-for-OccupiedError%3C'a,+K,+V%3E">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">!UnwindSafe</a></li><li><a·href="#impl-Freeze-for-OccupiedError%3C'a,+K,+V,+A%3E">Freeze</a></li><li><a·href="#impl-RefUnwindSafe-for-OccupiedError%3C'a,+K,+V,+A%3E">RefUnwindSafe</a></li><li><a·href="#impl-Send-for-OccupiedError%3C'a,+K,+V,+A%3E">Send</a></li><li><a·href="#impl-Sync-for-OccupiedError%3C'a,+K,+V,+A%3E">Sync</a></li><li><a·href="#impl-Unpin-for-OccupiedError%3C'a,+K,+V,+A%3E">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">Any</a></li><li><a·href="#impl-Borrow%3CT%3E-for-T">Borrow&lt;T&gt;</a></li><li><a·href="#impl-BorrowMut%3CT%3E-for-T">BorrowMut&lt;T&gt;</a></li><li><a·href="#impl-From%3CT%3E-for-T">From&lt;T&gt;</a></li><li><a·href="#impl-Into%3CU%3E-for-T">Into&lt;U&gt;</a></li><li><a·href="#impl-ToString-for-T">ToString</a></li><li><a·href="#impl-TryFrom%3CU%3E-for-T">TryFrom&lt;U&gt;</a></li><li><a·href="#impl-TryInto%3CU%3E-for-T">TryInto&lt;U&gt;</a></li></ul></section><h2><a·href="index.html">In·alloc::collections::btree_map</a></h2></div></nav><div·class="sidebar-resizer"></div>
2 ····<main><div·class="width-limiter"><nav·class="sub"><form·class="search-form"><span></span><div·id="sidebar-button"·tabindex="-1"><a·href="../../../alloc/all.html"·title="show·sidebar"></a></div><input·class="search-input"·name="search"·aria-label="Run·search·in·the·documentation"·autocomplete="off"·spellcheck="false"·placeholder="Click·or·press·‘S’·to·search,·‘?’·for·more·options…"·type="search"><div·id="help-button"·tabindex="-1"><a·href="../../../help.html"·title="help">?</a></div><div·id="settings-menu"·tabindex="-1"><a·href="../../../settings.html"·title="settings"><img·width="22"·height="22"·alt="Change·settings"·src="../../../static.files/wheel-7b819b6101059cd0.svg"></a></div></form></nav><section·id="main-content"·class="content"><div·class="main-heading"><h1>Struct·<a·href="../../index.html">alloc</a>::<wbr><a·href="../index.html">collections</a>::<wbr><a·href="index.html">btree_map</a>::<wbr><a·class="struct"·href="#">OccupiedError</a><button·id="copy-path"·title="Copy·item·path·to·clipboard"><img·src="../../../static.files/clipboard-7571035ce49a181d.svg"·width="19"·height="18"·alt="Copy·item·path"></button></h1><span·class="out-of-band"><a·class="src"·href="../../../src/alloc/collections/btree/map/entry.rs.html#103-108">source</a>···<button·id="toggle-all-docs"·title="collapse·all·docs">[<span>&#x2212;</span>]</button></span></div><pre·class="rust·item-decl"><code>pub·struct·OccupiedError&lt;'a,·K:·'a,·V:·'a,·A:·<a·class="trait"·href="../../alloc/trait.Allocator.html"·title="trait·alloc::alloc::Allocator">Allocator</a>·+·<a·class="trait"·href="../../../core/clone/trait.Clone.html"·title="trait·core::clone::Clone">Clone</a>·=·<a·class="struct"·href="../../alloc/struct.Global.html"·title="struct·alloc::alloc::Global">Global</a>&gt;·{2 ····<main><div·class="width-limiter"><nav·class="sub"><form·class="search-form"><span></span><div·id="sidebar-button"·tabindex="-1"><a·href="../../../alloc/all.html"·title="show·sidebar"></a></div><input·class="search-input"·name="search"·aria-label="Run·search·in·the·documentation"·autocomplete="off"·spellcheck="false"·placeholder="Click·or·press·‘S’·to·search,·‘?’·for·more·options…"·type="search"><div·id="help-button"·tabindex="-1"><a·href="../../../help.html"·title="help">?</a></div><div·id="settings-menu"·tabindex="-1"><a·href="../../../settings.html"·title="settings"><img·width="22"·height="22"·alt="Change·settings"·src="../../../static.files/wheel-7b819b6101059cd0.svg"></a></div></form></nav><section·id="main-content"·class="content"><div·class="main-heading"><h1>Struct·<a·href="../../index.html">alloc</a>::<wbr><a·href="../index.html">collections</a>::<wbr><a·href="index.html">btree_map</a>::<wbr><a·class="struct"·href="#">OccupiedError</a><button·id="copy-path"·title="Copy·item·path·to·clipboard"><img·src="../../../static.files/clipboard-7571035ce49a181d.svg"·width="19"·height="18"·alt="Copy·item·path"></button></h1><span·class="out-of-band"><a·class="src"·href="../../../src/alloc/collections/btree/map/entry.rs.html#103-108">source</a>···<button·id="toggle-all-docs"·title="collapse·all·docs">[<span>&#x2212;</span>]</button></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.78.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;·{
3 ····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·entry:·<a·class="struct"·href="struct.OccupiedEntry.html"·title="struct·alloc::collections::btree_map::OccupiedEntry">OccupiedEntry</a>&lt;'a,·K,·V,·A&gt;,
4 ····pub·value:·V,4 ····pub·value:·V,
5 }</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 }</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>
6 <p>Contains·the·occupied·entry,·and·the·value·that·was·not·inserted.</p>6 <p>Contains·the·occupied·entry,·and·the·value·that·was·not·inserted.</p>
7 </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></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>
8 </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><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>
9 </div><h2·id="trait-implementations"·class="section-header">Trait·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#111-119">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:·8051,·SHA:·d50b13226132390249642ccf5319544ad6e7a648f3bf15be2813d310aea790a1·...·]/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">where9 </div><h2·id="trait-implementations"·class="section-header">Trait·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#111-119">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.78.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:·8603,·SHA:·023fb141c76ea61dc8ae4175498cd37b44a354357c92f7cfa4fe2c8882d03c9f·...·]/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
10 ····A:·<a·class="trait"·href="../../../core/marker/trait.Freeze.html"·title="trait·core::marker::Freeze">Freeze</a>,10 ····A:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/marker/trait.Freeze.html"·title="trait·core::marker::Freeze">Freeze</a>,
11 ····V:·<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">where11 ····V:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.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:·16d14eced091166acdbbe7787eba3d8c647d1fae4b84dc7f00b5c152943c7b9d·...·]/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
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.78.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>,13 ····K:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/panic/unwind_safe/trait.RefUnwindSafe.html"·title="trait·core::panic::unwind_safe::RefUnwindSafe">RefUnwindSafe</a>,
14 ····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-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">where14 ····V:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.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:·dae82eabc9126d5ebd535e250d6a1f2ef025beafa644cb70b680e3f5c7240052·...·]/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
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.78.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>,16 ····K:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/marker/trait.Send.html"·title="trait·core::marker::Send">Send</a>,
17 ····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-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">where17 ····V:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.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:·d76f132b5ece5b92e8e7551b7e41b76e18c1a937a614476ef35ff27e89f750b5·...·]/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
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.78.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>,19 ····K:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/marker/trait.Sync.html"·title="trait·core::marker::Sync">Sync</a>,
20 ····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-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">where20 ····V:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.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:·dca0e4fc172c75908ed255e066745ffb2625c58168d83e137713104273cd5a9e·...·]/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
21 ····A:·<a·class="trait"·href="../../../core/marker/trait.Unpin.html"·title="trait·core::marker::Unpin">Unpin</a>,21 ····A:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/marker/trait.Unpin.html"·title="trait·core::marker::Unpin">Unpin</a>,
22 ····V:·<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:·89faa47c5834757f1fbfb67ac3e61efb9a4c57a79638060f14949865f2953c0f·...·]/core/any/trait.Any.html"·title="trait·core::any::Any">Any</a>·for·T<div·class="where">where22 ····V:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.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:·e21009d59fd84252cb67d5fbe98cc666d185fb5e7cef6740bb5890e30012f5ba·...·]/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:·60266624df43cdf1ecb412e35aaf311341d62543468bcbd4041716fbafffc07b·...·]/src/core/borrow.rs.html#208">source</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.78.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">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:·039b8952ccb1ab7d8f15cd519cbc10f4afc149276d0f9cfd3a53117d606059df·...·]/src/core/borrow.rs.html#208">source</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:·8124d60df08ac71436917cb874e0ec9c0ffe7e4515e2ea246a1f1009f83ac6a1·...·]/src/core/borrow.rs.html#216">source</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.78.0/core/marker/trait.Sized.html"·title="trait·core::marker::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:·b03884aeae1813f459b6ebe4b7e3f3c22d5d37e0ad023677fd3869bc5a735be2·...·]/src/core/borrow.rs.html#216">source</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:·1254,·SHA:·88cecdca8f65ac7671462e07b83fc0153c4024bd8b3f1bfba320be439fbe3a4f·...·]/core/convert/trait.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 ····T:·?<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/marker/trait.Sized.html"·title="trait·core::marker::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:·aaf5505cf4d2f5510949d066675a02996763e3167f43d15d7a3f114042a751b5·...·]/core/convert/trait.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 </div></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">where26 </div></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.78.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.78.0/core/convert/trait.Into.html"·title="trait·core::convert::Into">Into</a>&lt;U&gt;·for·T<div·class="where">where
27 ····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>27 ····U:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.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:·2cf76a8ca501b2a1fef209fed846779ab1bed3b75f52c7425335e3ce04e6b272·...·]/core/convert/trait.Into.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 <p>That·is,·this·conversion·is·whatever·the·implementation·of28 <p>That·is,·this·conversion·is·whatever·the·implementation·of
29 <code><a·href="../../../core/convert/trait.From.html"·title="trait·core::convert::From">From</a>&lt;T&gt;·for·U</code>·chooses·to·do.</p>29 <code><a·href="https://doc.rust-lang.org/1.78.0/core/convert/trait.From.html"·title="trait·core::convert::From">From</a>&lt;T&gt;·for·U</code>·chooses·to·do.</p>
30 </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#2543-2557">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">where30 </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#2543-2557">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
31 ····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:·704b82019ade31064015a1ccdbf96947b1218dfdbea76d6f72eb963cae6c811d·...·]/core/convert/trait.TryFrom.html"·title="trait·core::convert::TryFrom">TryFrom</a>&lt;U&gt;·for·T<div·class="where">where31 ····T:·<a·class="trait"·href="../../fmt/trait.Display.html"·title="trait·alloc::fmt::Display">Display</a>·+·?<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/marker/trait.Sized.html"·title="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:·dc1580c4251df722434b40f1582e9a089d6018e24820e7d5bd3f7eb69ec4f8e2·...·]/core/convert/trait.TryFrom.html"·title="trait·core::convert::TryFrom">TryFrom</a>&lt;U&gt;·for·T<div·class="where">where
32 ····U:·<a·class="trait"·href="../../../core/convert/trait.Into.html"·title="trait·core::convert::Into">Into</a>&lt;T&gt;,</div></h3></section></summary><div·class="impl-items"><details·class="toggle"·open><summary><section·id="associatedtype.Error"·class="associatedtype·trait-impl"><a·[·...·truncated·by·diffoscope;·len:·1621,·SHA:·6a7315ddf4ab9fa76e45d600a396b342519e12c73d2e6dd09bf01e1fa1b0aac0·...·]/core/convert/trait.TryInto.html"·title="trait·core::convert::TryInto">TryInto</a>&lt;U&gt;·for·T<div·class="where">where32 ····U:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.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"·class="associ[·...·truncated·by·diffoscope;·len:·1861,·SHA:·78398046ba16de2f66a8201a11d6a2dd405fceedeabfcaa37481e77092687e6f·...·]/core/convert/trait.TryInto.html"·title="trait·core::convert::TryInto">TryInto</a>&lt;U&gt;·for·T<div·class="where">where
33 ····U:·<a·class="trait"·href="../../../core/convert/trait.TryFrom.html"·title="trait·core::convert::TryFrom">TryFrom</a>&lt;T&gt;,</div></h3></section></summary><div·class="impl-items"><details·class="toggle"·open><summary><section·id="associatedtype.Error-1"·class="associatedtype·trai[·...·truncated·by·diffoscope;·len:·1258,·SHA:·33d8749d0be17f35431e59e57d3fb79a5cc4320bd6fc26ab5ef088d04d3c929a·...·]/core/convert/trait.TryFrom.html#associatedtype.Error"·title="type·core::convert::TryFrom::Error">Error</a>&gt;</h4></section></summary><div·class='docblock'>Performs·the·conversion.</div></details></div></details></div></section></div></main></body></html>33 ····U:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.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-1"·cl[·...·truncated·by·diffoscope;·len:·1474,·SHA:·ca90cccb6c86c654c95a1aaec456fbbe4b115f0d5a700e7d156e823346d70894·...·]/core/convert/trait.TryFrom.html#associatedtype.Error"·title="type·core::convert::TryFrom::Error">Error</a>&gt;</h4></section></summary><div·class='docblock'>Performs·the·conversion.</div></details></div></details></div></section></div></main></body></html>
308 KB
./usr/share/doc/rust-web-doc/html/alloc/collections/btree_map/struct.Range.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·sub-range·of·entries·in·a·`BTreeMap`."><title>Range·in·alloc::collections::btree_map·-·Rust</title><script>·if·(window.location.protocol·!==·"file:")·document.write(`<link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../../static.files/SourceSerif4-Regular-46f98efaafac5295.ttf.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../../static.files/FiraSans-Regular-018c141bf0843ffd.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../../static.files/FiraSans-Medium-8f9a781e4970d388.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../../static.files/SourceCodePro-Regular-562dcc5011b6de7d.ttf.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../../static.files/SourceCodePro-Semibold-d899c5a5c4aeb14a.ttf.woff2">`)</script><link·rel="stylesheet"·href="../../../static.files/normalize-76eba96aa4d2e634.css"><link·rel="stylesheet"·href="../../../static.files/rustdoc-35f9e32502181f1e.css"><meta·name="rustdoc-vars"·data-root-path="../../../"·data-static-root-path="../../../static.files/"·data-current-crate="alloc"·data-themes=""·data-resource-suffix="1.78.0"·data-rustdoc-version="1.78.0"·data-channel="1.78.0"·data-search-js="search-42d8da7a6b9792c2.js"·data-settings-js="settings-4313503d2e1961c2.js"·><script·src="../../../static.files/storage-4c98445ec4002617.js"></script><script·defer·src="sidebar-items1.78.0.js"></script><script·defer·src="../../../static.files/main-12cf3b4f4f9dc36d.js"></script><noscript><link·rel="stylesheet"·href="../../../static.files/noscript-04d5337699b92874.css"></noscript><link·rel="alternate·icon"·type="image/png"·href="../../../static.files/favicon-16x16-8b506e7a72182f1c.png"><link·rel="alternate·icon"·type="image/png"·href="../../../static.files/favicon-32x32-422f7d1d52889060.png"><link·rel="icon"·type="image/svg+xml"·href="../../../static.files/favicon-2c020d218678b618.svg"></head><body·class="rustdoc·struct"><!--[if·lte·IE·11]><div·class="warning">This·old·browser·is·unsupported·and·will·most·likely·display·funky·things.</div><![endif]--><nav·class="mobile-topbar"><button·class="sidebar-menu-toggle"·title="show·sidebar"></button><a·class="logo-container"·href="../../../alloc/index.html"><img·class="rust-logo"·src="../../../static.files/rust-logo-151179464ae7ed46.svg"·alt=""></a></nav><nav·class="sidebar"><div·class="sidebar-crate"><a·class="logo-container"·href="../../../alloc/index.html"><img·class="rust-logo"·src="../../../static.files/rust-logo-151179464ae7ed46.svg"·alt="logo"></a><h2><a·href="../../../alloc/index.html">alloc</a><span·class="version">1.78.0</span></h2></div><h2·class="location"><a·href="#">Range</a></h2><div·class="sidebar-elems"><section><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">Clone</a></li><li><a·href="#impl-Debug-for-Range%3C'_,+K,+V%3E">Debug</a></li><li><a·href="#impl-Default-for-Range%3C'_,+K,+V%3E">Default</a></li><li><a·href="#impl-DoubleEndedIterator-for-Range%3C'a,+K,+V%3E">DoubleEndedIterator</a></li><li><a·href="#impl-FusedIterator-for-Range%3C'_,+K,+V%3E">FusedIterator</a></li><li><a·href="#impl-Iterator-for-Range%3C'a,+K,+V%3E">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">Freeze</a></li><li><a·href="#impl-RefUnwindSafe-for-Range%3C'a,+K,+V%3E">RefUnwindSafe</a></li><li><a·href="#impl-Send-for-Range%3C'a,+K,+V%3E">Send</a></li><li><a·href="#impl-Sync-for-Range%3C'a,+K,+V%3E">Sync</a></li><li><a·href="#impl-Unpin-for-Range%3C'a,+K,+V%3E">Unpin</a></li><li><a·href="#impl-UnwindSafe-for-Range%3C'a,+K,+V%3E">UnwindSafe</a></li></ul><h3><a·href="#blanket-implementations">Blanket·Implementations</a></h3><ul·class="block·blanket-implementation"><li><a·href="#impl-Any-for-T">Any</a></li><li><a·href="#impl-Borrow%3CT%3E-for-T">Borrow&lt;T&gt;</a></li><li><a·href="#impl-BorrowMut%3CT%3E-for-T">BorrowMut&lt;T&gt;</a></li><li><a·href="#impl-From%3CT%3E-for-T">From&lt;T&gt;</a></li><li><a·href="#impl-Into%3CU%3E-for-T">Into&lt;U&gt;</a></li><li><a·href="#impl-IntoIterator-for-I">IntoIterator</a></li><li><a·href="#impl-ToOwned-for-T">ToOwned</a></li><li><a·href="#impl-TryFrom%3CU%3E-for-T">TryFrom&lt;U&gt;</a></li><li><a·href="#impl-TryInto%3CU%3E-for-T">TryInto&lt;U&gt;</a></li></ul></section><h2><a·href="index.html">In·alloc::collections::btree_map</a></h2></div></nav><div·class="sidebar-resizer"></div>1 <!DOCTYPE·html><html·lang="en"><head><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.write(`<link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../../static.files/SourceSerif4-Regular-46f98efaafac5295.ttf.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../../static.files/FiraSans-Regular-018c141bf0843ffd.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../../static.files/FiraSans-Medium-8f9a781e4970d388.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../../static.files/SourceCodePro-Regular-562dcc5011b6de7d.ttf.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../../static.files/SourceCodePro-Semibold-d899c5a5c4aeb14a.ttf.woff2">`)</script><link·rel="stylesheet"·href="../../../static.files/normalize-76eba96aa4d2e634.css"><link·rel="stylesheet"·href="../../../static.files/rustdoc-35f9e32502181f1e.css"><meta·name="rustdoc-vars"·data-root-path="../../../"·data-static-root-path="../../../static.files/"·data-current-crate="alloc"·data-themes=""·data-resource-suffix="1.78.0"·data-rustdoc-version="1.78.0"·data-channel="1.78.0"·data-search-js="search-42d8da7a6b9792c2.js"·data-settings-js="settings-4313503d2e1961c2.js"·><script·src="../../../static.files/storage-4c98445ec4002617.js"></script><script·defer·src="sidebar-items1.78.0.js"></script><script·defer·src="../../../static.files/main-12cf3b4f4f9dc36d.js"></script><noscript><link·rel="stylesheet"·href="../../../static.files/noscript-04d5337699b92874.css"></noscript><link·rel="alternate·icon"·type="image/png"·href="../../../static.files/favicon-16x16-8b506e7a72182f1c.png"><link·rel="alternate·icon"·type="image/png"·href="../../../static.files/favicon-32x32-422f7d1d52889060.png"><link·rel="icon"·type="image/svg+xml"·href="../../../static.files/favicon-2c020d218678b618.svg"></head><body·class="rustdoc·struct"><!--[if·lte·IE·11]><div·class="warning">This·old·browser·is·unsupported·and·will·most·likely·display·funky·things.</div><![endif]--><nav·class="mobile-topbar"><button·class="sidebar-menu-toggle"·title="show·sidebar"></button><a·class="logo-container"·href="../../../alloc/index.html"><img·class="rust-logo"·src="../../../static.files/rust-logo-151179464ae7ed46.svg"·alt=""></a></nav><nav·class="sidebar"><div·class="sidebar-crate"><a·class="logo-container"·href="../../../alloc/index.html"><img·class="rust-logo"·src="../../../static.files/rust-logo-151179464ae7ed46.svg"·alt="logo"></a><h2><a·href="../../../alloc/index.html">alloc</a><span·class="version">1.78.0</span></h2></div><h2·class="location"><a·href="#">Range</a></h2><div·class="sidebar-elems"><section><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">Clone</a></li><li><a·href="#impl-Debug-for-Range%3C'_,+K,+V%3E">Debug</a></li><li><a·href="#impl-Default-for-Range%3C'_,+K,+V%3E">Default</a></li><li><a·href="#impl-DoubleEndedIterator-for-Range%3C'a,+K,+V%3E">DoubleEndedIterator</a></li><li><a·href="#impl-FusedIterator-for-Range%3C'_,+K,+V%3E">FusedIterator</a></li><li><a·href="#impl-Iterator-for-Range%3C'a,+K,+V%3E">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">Freeze</a></li><li><a·href="#impl-RefUnwindSafe-for-Range%3C'a,+K,+V%3E">RefUnwindSafe</a></li><li><a·href="#impl-Send-for-Range%3C'a,+K,+V%3E">Send</a></li><li><a·href="#impl-Sync-for-Range%3C'a,+K,+V%3E">Sync</a></li><li><a·href="#impl-Unpin-for-Range%3C'a,+K,+V%3E">Unpin</a></li><li><a·href="#impl-UnwindSafe-for-Range%3C'a,+K,+V%3E">UnwindSafe</a></li></ul><h3><a·href="#blanket-implementations">Blanket·Implementations</a></h3><ul·class="block·blanket-implementation"><li><a·href="#impl-Any-for-T">Any</a></li><li><a·href="#impl-Borrow%3CT%3E-for-T">Borrow&lt;T&gt;</a></li><li><a·href="#impl-BorrowMut%3CT%3E-for-T">BorrowMut&lt;T&gt;</a></li><li><a·href="#impl-From%3CT%3E-for-T">From&lt;T&gt;</a></li><li><a·href="#impl-Into%3CU%3E-for-T">Into&lt;U&gt;</a></li><li><a·href="#impl-IntoIterator-for-I">IntoIterator</a></li><li><a·href="#impl-ToOwned-for-T">ToOwned</a></li><li><a·href="#impl-TryFrom%3CU%3E-for-T">TryFrom&lt;U&gt;</a></li><li><a·href="#impl-TryInto%3CU%3E-for-T">TryInto&lt;U&gt;</a></li></ul></section><h2><a·href="index.html">In·alloc::collections::btree_map</a></h2></div></nav><div·class="sidebar-resizer"></div>
2 ····<main><div·class="width-limiter"><nav·class="sub"><form·class="search-form"><span></span><div·id="sidebar-button"·tabindex="-1"><a·href="../../../alloc/all.html"·title="show·sidebar"></a></div><input·class="search-input"·name="search"·aria-label="Run·search·in·the·documentation"·autocomplete="off"·spellcheck="false"·placeholder="Click·or·press·‘S’·to·search,·‘?’·for·more·options…"·type="search"><div·id="help-button"·tabindex="-1"><a·href="../../../help.html"·title="help">?</a></div><div·id="settings-menu"·tabindex="-1"><a·href="../../../settings.html"·title="settings"><img·width="22"·height="22"·alt="Change·settings"·src="../../../static.files/wheel-7b819b6101059cd0.svg"></a></div></form></nav><section·id="main-content"·class="content"><div·class="main-heading"><h1>Struct·<a·href="../../index.html">alloc</a>::<wbr><a·href="../index.html">collections</a>::<wbr><a·href="index.html">btree_map</a>::<wbr><a·class="struct"·href="#">Range</a><button·id="copy-path"·title="Copy·item·path·to·clipboard"><img·src="../../../static.files/clipboard-7571035ce49a181d.svg"·width="19"·height="18"·alt="Copy·item·path"></button></h1><span·class="out-of-band"><span·class="since"·title="Stable·since·Rust·version·1.17.0">1.17.0</span>···<a·class="src"·href="../../../src/alloc/collections/btree/map.rs.html#576-578">source</a>···<button·id="toggle-all-docs"·title="collapse·all·docs">[<span>&#x2212;</span>]</button></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 ····<main><div·class="width-limiter"><nav·class="sub"><form·class="search-form"><span></span><div·id="sidebar-button"·tabindex="-1"><a·href="../../../alloc/all.html"·title="show·sidebar"></a></div><input·class="search-input"·name="search"·aria-label="Run·search·in·the·documentation"·autocomplete="off"·spellcheck="false"·placeholder="Click·or·press·‘S’·to·search,·‘?’·for·more·options…"·type="search"><div·id="help-button"·tabindex="-1"><a·href="../../../help.html"·title="help">?</a></div><div·id="settings-menu"·tabindex="-1"><a·href="../../../settings.html"·title="settings"><img·width="22"·height="22"·alt="Change·settings"·src="../../../static.files/wheel-7b819b6101059cd0.svg"></a></div></form></nav><section·id="main-content"·class="content"><div·class="main-heading"><h1>Struct·<a·href="../../index.html">alloc</a>::<wbr><a·href="../index.html">collections</a>::<wbr><a·href="index.html">btree_map</a>::<wbr><a·class="struct"·href="#">Range</a><button·id="copy-path"·title="Copy·item·path·to·clipboard"><img·src="../../../static.files/clipboard-7571035ce49a181d.svg"·width="19"·height="18"·alt="Copy·item·path"></button></h1><span·class="out-of-band"><span·class="since"·title="Stable·since·Rust·version·1.17.0">1.17.0</span>···<a·class="src"·href="../../../src/alloc/collections/btree/map.rs.html#576-578">source</a>···<button·id="toggle-all-docs"·title="collapse·all·docs">[<span>&#x2212;</span>]</button></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>
3 <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·its3 <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
4 documentation·for·more.</p>4 documentation·for·more.</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-Range%3C'_,+K,+V%3E"·class="impl"><a·class="src·rightside"·href="../../../src/alloc/collections/btree/map.rs.html#2179-2183">source</a><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:·3871,·SHA:·5558bf992d4567c2859bcb75991d46e239869b98983b4b7fa102d5ebd0c94bc8·...·]/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></details><h2·id="trait-implementations"·class="section-header">Trait·Implementations<a·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"><a·class="src·rightside"·href="../../../src/alloc/collections/btree/map.rs.html#2179-2183">source</a><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.78.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:·4087,·SHA:·ec8d49b1cb0e5792a07f79b990aa9e3e989b6a0817a9e280b7696f15a713557b·...·]/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>
  
6 <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 <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();
7 <span·class="macro">assert_eq!</span>(iter.count(),·<span·class="number">0</span>);</code></pre><a·class="test-arrow"·target="_blank"·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">Run</a></div>7 <span·class="macro">assert_eq!</span>(iter.count(),·<span·class="number">0</span>);</code></pre><a·class="test-arrow"·target="_blank"·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">Run</a></div>
8 </div></details></div></details><details·class="toggle·implementors-toggle"·open><summary><section·id="impl-DoubleEndedIterator-for-Range%3C'a,+K,+V%3E"·class="impl"><a·class="src·rightside"·href="../../../src/alloc/collections/btree/map.rs.html#2169-2173">source</a><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:·f90acdb9d50a4f6867db9a07ff5699d01a2947f8583cc75ee7c9e713cf96a8d1·...·]/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-Range%3C'a,+K,+V%3E"·class="impl"><a·class="src·rightside"·href="../../../src/alloc/collections/btree/map.rs.html#2169-2173">source</a><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.78.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:·a25560d73dfa56229f94c2ef3bb3967bd4d1e36229e06dbb90ec2a951bbc8161·...·]/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.78.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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(B,·Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.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.78.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.7[·...·truncated·by·diffoscope;·len:·3,·SHA:·7b1bd53949b752d143d871408483b5382371b5bc48d195d0c040ec93cfa2748b·...·]/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:·b3a5d6383debff0cac836c5889a757f11b019bc049778c518e60e4d37a3c4da1·...·]/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.78.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:·d66ed7e195a53e9945339ef1976aed455dcf80228d8e5b7b0c69a64c3983fea1·...·]/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.78.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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(B,·Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/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:·d11fd274e41827c1daee0c80a6ab5f978a613ab26297cb460535fef32cff8551·...·]/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.78.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:·c264047794019a6dcf05728ba6a6ee1f8f07c7209958b3366ba94546b527ecdc·...·]/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.78.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:·3958,·SHA:·00cf64a7ceb3af05e2d3231f109a96f1819e998346920d1ff90e523d561aeb05·...·]/core/primitive.reference.html">&amp;'a·V</a>)&gt;<div·class="where">where17 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·4486,·SHA:·5cc4e5074cf1f06560d6fba5ac1bc8bd0805599f190c44dd18f31a29e54c4461·...·]/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:·785,·SHA:·5d938ea4302ca9250b9f841c48ed90da2895a4c789bb3b256bc6febb7891501a·...·]/core/primitive.reference.html">&amp;'a·V</a>)&gt;<div·class="where">where18 ····(<a·class="primitive"·href="https://doc.rust-lang.org/1.78.0/core/primitive.reference.html">&amp;'a·K</a>,·<a·class="primitive"·href="https://doc.rust-lang.org/1.78.0/core/primitive.reference.html">&amp;'a·V</a>):·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/cmp/trait[·...·truncated·by·diffoscope;·len:·977,·SHA:·51c3070a06c0df1d6d839a24fc1bfb50e609eea97fa357f82ade7af2ff5114ad·...·]/core/primitive.reference.html">&amp;'a·V</a>)&gt;<div·class="where">where
19 ····(<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:·d1c1ba4728719bf1fd15e134c828c45d681cd9edd6726364e9ea05893d5c5cd3·...·]/core/primitive.usize.html">usize</a>&gt;(19 ····(<a·class="primitive"·href="https://doc.rust-lang.org/1.78.0/core/primitive.reference.html">&amp;'a·K</a>,·<a·class="primitive"·href="https://doc.rust-lang.org/1.78.0/core/primitive.reference.html">&amp;'a·V</a>):·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/cmp/trait[·...·truncated·by·diffoscope;·len:·785,·SHA:·28a74dcef0587c559da99047dc8aed5333e5bdf3770247682db58231173834f7·...·]/core/primitive.usize.html">usize</a>&gt;(
20 ····&amp;mut·self20 ····&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.78.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.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title=[·...·truncated·by·diffoscope;·len:·381,·SHA:·88c48923c9b7ea5cc47c1087c60e09656e81d4671c58071ba2bef826335388bc·...·]/core/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:·1818,·SHA:·2c4ab8ee637ea0883fc707bcc67678122b90e2c5f8c9054d201481512105dd79·...·]/core/primitive.usize.html">usize</a><div·class="where">where22 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></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:·402867e9e3549fef747dcb22b92bda79093f02d1378ea733f633e3a91e074bca·...·]/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:·00fcd590d49f9c95cf7e39437688efce9b3546bce88f836f82a8084a5cad4047·...·]/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.78.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:·5acc2bcc91ab2687c8137eaa20bd4287e0b901b846fa877b4a1d59df04bc4956·...·]/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.78.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:·4ac7445a1207207aeda1789f31c5036d8905fa206c83a58ca48662c081a68134·...·]/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.78.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:·e83c903581753673e083ce8dd809879a2fc81ab3050eb6db267d7fa26b15e035·...·]/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.78.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:·10378641f30fbaa3b3d8ba8984f91955195f5a0ddb70a41cc9ff99666b50a36f·...·]/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.78.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.78.0/core/iter/traits/it[·...·truncated·by·diffoscope;·len:·1329,·SHA:·d9299c8edc606ed82f24d61ce441bec451141d684c2a9a75074f5b19c57f196c·...·]/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.78.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:·b9001dd3131b1425179c94853e1b90fff0f7169b9570e86cd50c6b7fbf1ee8a5·...·]/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.78.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:·98627729f77dcf1c9d258f343354ba600b7134c6b3929080f231e8de7155b70b·...·]/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.78.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.78.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.78.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:·fa2a17b1aaf7dbc4e89f728d099c0a475adcd5ff79e4791795d7c4df5fc2ccec·...·]/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.78.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:·7301b6beba7b6885849be90a625df68ef739a5374af456c51fe2e81d91a25363·...·]/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.78.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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::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:·d75758e0f8262eeea27445cec43f13d84f0c02ba4e03c0c54d041f9ab1965e0f·...·]/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.78.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:·98f6effefa44d759c249143d83623f0055d937382bfc398b7e1f5e92cd413657·...·]/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.78.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:·9009d5c023150c1a97b2d18e30d176e7ff2e48673ad0e4665367958e752bf827·...·]/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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·916,·SHA:·30d0b2a76513c5a880e9aee43e92b18805845cfcfe5783f62dc090167a439e63·...·]/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.78.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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·140,·SHA:·752f473b57e7444ebfddf5ea7fd40a332e83ec55524a6c31b5ee0f82a5dea819·...·]/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:·7c1da0b93b40e2b4f823a0d24b5a27f092ffdb68175a9c14fe21a97d84bb2244·...·]/core/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.78.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:·76aa2ad154f88085ee3f8a22721a7e6812680bac785d19059532407f50da1801·...·]/core/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.78.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:·96005685f2d5bf532d7af03cf747a50bdbe5efffccc579afe197789e4cd44a54·...·]/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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·1052,·SHA:·110b47c7083083d565fcfc89337fddc8e5c87e81b2f720f3f7b0ded55e8500fb·...·]/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.78.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:·02bccd69f3cf4a08b24b66a0c9afb8ac49ebd0e9a7d5a183641b471189a35df3·...·]/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.78.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:·8464264e074dde5d84f0414ab3b5b2d8da83f3c9e3ca04c45458241580a8c80d·...·]/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.78.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.78.0/core/iter/adapte[·...·truncated·by·diffoscope;·len:·175,·SHA:·16fe7225bf05b478e2828b347c3d23ded9a22f89d8887a2c65d9f7b3faf1b0e7·...·]/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:·60d233d0587f535c8bae5118522baa81ef2524d4168f9e142529a37902d8e8c4·...·]/core/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.78.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:·00ccbb673c11ed48d8c6aa2a3f8984fb298202e7bccfa42f1ac21290fcc0fb06·...·]/core/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.78.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:·0900235f7b60bdd90fbf9718324068ecf230199603f19da2c38cad64ed6915ff·...·]/core/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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·1234,·SHA:·3b805567411cdcebed740f9e8d400dbe7fb487504f40e284544a140155090fdf·...·]/core/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.78.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:·552b3dd2132886d024e4d5bd2554611e25c1f068adaaf23ecf80da81d31997ef·...·]/core/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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·1058,·SHA:·b390dbdda8d7e93604b5ecd906a93efd03fe19bdaf41cf12893fd361bf974307·...·]/core/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.78.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:·491a83328e39b23cf5191ed5cb6bf83f1a62c9405ed5c39c58117b227b39b16c·...·]/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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·1163,·SHA:·5772149166d344bf8fa5ebbd9db8693a8f2e5f031c50338e8f1523ef72f814d6·...·]/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:·e62b3f87b06b061e799e72ab8f04c531f1c6f241266260eaab33ea2b793dd8d2·...·]/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.78.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:·6216516fe581c401abda3c95818192e8f030e2008c9bbdbaafebba16f33ea9bd·...·]/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.78.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:·7d73eca41cdb0c170bd03419f3563f3fe9e70e11494db546e781d302d3cd5636·...·]/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.78.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:·485843399c56e24bdf020ff0610d0ce1f62fbac5530d9880a1a7417105e3d70f·...·]/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.78.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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(<a·class="primitive"·href="https://doc.rust-lang.org/1.78.0/core/primitive.reference.html">&amp;mut·St</a>,·Self::<a·class="associatedty[·...·truncated·by·diffoscope;·len:·449,·SHA:·f12c268a8a8111b9e7126ad78bf5523a63733caa63d187c4fe792309ea41acdf·...·]/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:·02034aae893b799fa017b2d71546332d96a823cd4ba05c14089559819f3dd720·...·]/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.78.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.78.0/core/iter/trai[·...·truncated·by·diffoscope;·len:·690,·SHA:·371190e5c1bf9b7dde6e84447965a69946212b977b9eb6d89048fbe34c5dda1c·...·]/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.78.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.78.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:·4d1f54658fd1c005b101a2e27b0da3c6ee0cbe2d891660c65470bfec01fa46f6·...·]/core/iter/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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·976,·SHA:·2a9182f6fe88e0b8a9b1ae1f46cace940cc0b8736033c354c0f0ccbf1c196e7a·...·]/core/iter/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.78.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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;[Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtyp[·...·truncated·by·diffoscope;·len:·135,·SHA:·0b06a6094d42ccbc8bce5b01c4383961fe7f1967f05e4c9f1ff33e71e425fb26·...·]/core/primitive.array.html">N</a>])·-&gt;·R,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iter_map_windows</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/87155">#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.78.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:·d83146d48347da8e04ce6fcac96b0b1500203504f596d32c16a5a1493dd375e1·...·]/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.78.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:·0d33056cee8a4f9b70b573c0adecc2f3599a2f8d9fa9f2c2044e9118ab134f73·...·]/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:·e9288f8d879e78d7e79eb2c4255eb99308efd98061b1221968fb17de11019b2e·...·]/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.78.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.78.0/core/op[·...·truncated·by·diffoscope;·len:·841,·SHA:·9cba1b175fb3726d7f1f01da9be7c1a56568a68e4ce7915a468b730902daf8d3·...·]/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.78.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:·790,·SHA:·19293cf7305d77d7ccd51618427cff5e3edb06f162c23796ed392e0ac792f65e·...·]/core/primitive.reference.html">&amp;mut·Self</a><div·class="where">where69 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·934,·SHA:·ea20d2e0fe9388580ea08100baa9120b5e9b6cb48f43fc846f15db8b9649e7f6·...·]/core/primitive.reference.html">&amp;mut·Self</a><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:·cf371b2193fdcddf87cfe994db4d3e364336bb766b15dcfdd0ac7aabbd72e715·...·]/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.78.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.78.0/core/it[·...·truncated·by·diffoscope;·len:·523,·SHA:·97064c705f6f4bdf74469c54fabcf580d21893127d1b4cd9a9c1018a717ef153·...·]/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.78.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.78.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:·d76c3fcf86c63211032a6b22dc5924ef552b1ad26b12e19f15d2f1d5b3d7e394·...·]/core/primitive.reference.html">&amp;mut·E</a><div·class="where">where72 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.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.78.0/core/iter/tr[·...·truncated·by·diffoscope;·len:·728,·SHA:·01937c2dc314c259495665570ae249c94b4a5b0719718f5f1188e6fc64ecf487·...·]/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.78.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.78.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:·fa6f33be71e9184cfecc555b0b832d1a929285d35b47b1212b2176ac555731a1·...·]/core/primitive.tuple.html">(B,·B)</a><div·class="where">where74 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></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:·00bd47017b1bdd1bbe2c3fc932d955a8aa2f7f5eff8c00e3001ae28a982a5883·...·]/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.78.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.78.0/core/default/trait.Default.html"·title="trait·core::default::Default">Default</a>·+·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/collect/trait.Extend.html"·title="trait·core::iter::traits::collec[·...·truncated·by·diffoscope;·len:·95,·SHA:·8b3be1d0042cae0550f865faf5849221240bdf04eb1b2107605b72d48c3ad29c·...·]/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:·281bbd5137cae68dd8057d013e9c9f311461e746663120304e3f6adace77f784·...·]/core/primitive.usize.html">usize</a><div·class="where">where77 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·995,·SHA:·bec3765fdab56713186e2454cd84738b5b28e3280a2f3d5a25cefdbc3089b520·...·]/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.78.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>·+·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/double_ended/trait.DoubleEndedIterator.html"·title="trait·core::iter::trai[·...·truncated·by·diffoscope;·len:·132,·SHA:·e5b2cf5f56946ede1e190ed09879c5821e2de04cf8e5d145142eeb40c6340982·...·]/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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(<a·class="primitive"·href="https://doc.rust-lang.org/1.78.0/core/primitive.reference.html">&amp;T</a>)·-&gt;·<a·class="primitive"·href="[·...·truncated·by·diffoscope;·len:·32,·SHA:·63d052a8ced32bf927ffadd7e884c08caf4970e85dfdf6be0e568d49b174da96·...·]/core/primitive.bool.html">bool</a>,</div></h4></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:·dc6a465df534b0392c5280e79e5249847890045561099b2cfc44bfabc4801d8d·...·]/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.78.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:·0c224636c18baa273f69de21f90083317f2ea0b7367a3f0d0f1c0ace55a36f79·...·]/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.78.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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·135,·SHA:·51ff5f5c7ebd8440623ea71b125c5a5837e809e308fe1a13fbe19cddb941dbd9·...·]/core/primitive.bool.html">bool</a>,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iter_is_partitioned</code>&nbsp;<a·href="https://github.com/rust-lang/rust/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:·bd8fce4ee431c619c98780c4d520e8db93f1e034f12843ffaff5744b7ce2190b·...·]/core/iter/traits/iterator/trait.Iterator.html#method.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.78.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:·2c74873f4e5ba70004a1c7edd1cc3f9e2d91271295dd1591e2d26848df4c02ba·...·]/core/iter/traits/iterator/trait.Iterator.html#method.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.78.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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(B,·Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.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.78.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:·7b4fc32e7634ae85c682a97099be267837713d7e4831893b617ca652f57a89da·...·]/core/iter/traits/iterator/trait.Iterator.html#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.78.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:·52912e82c4b0a760d06f77eb4ee3a59ba70dd76cb532954900c73ae94c652674·...·]/core/iter/traits/iterator/trait.Iterator.html#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.78.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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.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.78.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.78.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:·5cfb1ce7ac10ff40c8d1d0f019b60fc4735736254c2d8357ed62287e51b1ac32·...·]/core/iter/traits/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.78.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:·1d6c4809cea8748e901d3f94777f450d430f3161f6ac05ed1c178d9327f966a3·...·]/core/iter/traits/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.78.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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(B,·Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::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:·2c738ecc68200afa2467bef085de14dcb642dbaac77c4529948f5e259e66691d·...·]/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.78.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:·b60215068a6d9721be05f81098c51167d7138c4042f140cad42f77c4df43f597·...·]/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.78.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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·352,·SHA:·e7c3c296abe2c0a183967153e4ae7fd50bafa2ae7088e3e78b3b48fee253adc6·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::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:·c3f1d50e276def36966943119961a20b09cab3be33483fe4d48d7f322489534b·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_reduce"·class="fn">try_reduce</a>&lt;F,·R&gt;(99 operation.·<a·href="https://doc.rust-lang.org/1.78.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:·7a18fdd041b1a001b4a8feb289ee127fd9240232239269eb35dc3b8f74783ec9·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_reduce"·class="fn">try_reduce</a>&lt;F,·R&gt;(
100 ····&amp;mut·self,100 ····&amp;mut·self,
101 ····f:·F101 ····f:·F
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.78.0/core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&gt;::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/ops/try_trait/trait.Try.html#associatedtype.Residual"·title="type[·...·truncated·by·diffoscope;·len:·754,·SHA:·6fb4dfdb6b4da68921c1e7f8b75d99cf293d58318d684a840254ce9576957bea·...·]/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.78.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:·68,·SHA:·e7e11f257edcac749a5883ad9a3aa42e6e965be419f967b36caa7afd3b36d7c9·...·]/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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·140,·SHA:·c27972e6fa3464c9476eaa185e8657edb6bb294f148403f3d079285294a9f909·...·]/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·=·Self::<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.78.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.78.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</[·...·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·the106 ····&lt;R·as·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&gt;::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/ops/try_trait/trait.Try.html#associatedtype.Residual"·title="type[·...·truncated·by·diffoscope;·len:·412,·SHA:·22b8cbb007e5cce82b9d13a65bfa56aa8d83c32541fac25f4d9b3857b0540908·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;&gt;,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iterator_try_reduce</code>&nbsp;<a·href="https://github.com/rust-lang/rust/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=[·...·truncated·by·diffoscope;·len:·380,·SHA:·1a00be8efe0263bc0d09f5d47be04890b1d27a20c3429d1f4531805a03591fdb·...·]/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.78.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:·bc0d658d56e348823de15386e1cd4ab49109f3a7a055a4573a19391b47071193·...·]/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.78.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:·850,·SHA:·c15cbdf9d3f54700b6eac2f717541f7f5a3cf811d73f48ef7118096c1a240102·...·]/core/primitive.bool.html">bool</a><div·class="where">where109 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·1018,·SHA:·e61cd6bdd36729cc38e57fcaea2ccb91a23a5acbda3c8986071f19bf1ecfc52a·...·]/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.78.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:·980,·SHA:·80fef1533a0c8783ee74be0f29290d7dec960bcd19223b11639b3e6377220faa·...·]/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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·1172,·SHA:·e64ab74d116d286191ad43d9d9e10411fc011c23724aa806e9a8f9b0be0757e3·...·]/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.78.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:[·...·truncated·by·diffoscope;·len:·883,·SHA:·f441e2966ff8db4214e57fcd74f81262d6e371aa51cea97ebde5921e81b4da79·...·]/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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·1051,·SHA:·ecc0b8fccd861464760f9ae047ff6ab98c91a1db010cb5fa59a8c2ab883db7c4·...·]/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.78.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::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·returns115 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·130,·SHA:·130a13019dc175d02304b4f550157e2f13ac15c2f25a979c74161d10b146ab89·...·]/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/cor[·...·truncated·by·diffoscope;·len:·143,·SHA:·ec4fb002625b166504031522e52a66812b279e6735a67cb718813205909c3fb7·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_find"·class="fn">try_find</a>&lt;F,·R&gt;(116 the·first·non-none·result.·<a·href="https://doc.rust-lang.org/1.78.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:·8ced1b10e78750774c5c8ed995ed83dcd13983aa75d329acf8069da106ab9f4a·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_find"·class="fn">try_find</a>&lt;F,·R&gt;(
117 ····&amp;mut·self,117 ····&amp;mut·self,
118 ····f:·F118 ····f:·F
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</[·...·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">where119 )·-&gt;·&lt;&lt;R·as·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&gt;::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/ops/try_trait/trait.Try.html#associatedtype.Residual"·title="type[·...·truncated·by·diffoscope;·len:·626,·SHA:·95f9831257b68862cbcbf54f0ad2ff4e597a4c9f763112d1da8a0897dadcf872·...·]/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.78.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::Iterator::Item">Item</a>)·-&gt;·R,121 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·R,
122 ····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;,122 ····R:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.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.78.0/core/primitive.bool.html">bool</a>&gt;,
123 ····&lt;R·as·<a·class="trait"·href="../../../core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</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·returns123 ····&lt;R·as·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&gt;::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/ops/try_trait/trait.Try.html#associatedtype.Residual"·title="type[·...·truncated·by·diffoscope;·len:·412,·SHA:·22b8cbb007e5cce82b9d13a65bfa56aa8d83c32541fac25f4d9b3857b0540908·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;&gt;,</div></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
124 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">where124 the·first·true·result·or·the·first·error.·<a·href="https://doc.rust-lang.org/1.78.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:·fa9d94b216f6e4ce6035b4762e3bf17cb86a0272db0a55a056f05c68bcaeb0da·...·]/core/primitive.usize.html">usize</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.78.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
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::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">where126 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·1190,·SHA:·882e9e9a037f916d0ed4aa6d749399e6e01ca81811eacfc54a484818cb5d5029·...·]/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; 84847/314963 bytes (26.94%) of diff not shown.
294 KB
./usr/share/doc/rust-web-doc/html/alloc/collections/btree_map/struct.RangeMut.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="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.write(`<link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../../static.files/SourceSerif4-Regular-46f98efaafac5295.ttf.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../../static.files/FiraSans-Regular-018c141bf0843ffd.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../../static.files/FiraSans-Medium-8f9a781e4970d388.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../../static.files/SourceCodePro-Regular-562dcc5011b6de7d.ttf.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../../static.files/SourceCodePro-Semibold-d899c5a5c4aeb14a.ttf.woff2">`)</script><link·rel="stylesheet"·href="../../../static.files/normalize-76eba96aa4d2e634.css"><link·rel="stylesheet"·href="../../../static.files/rustdoc-35f9e32502181f1e.css"><meta·name="rustdoc-vars"·data-root-path="../../../"·data-static-root-path="../../../static.files/"·data-current-crate="alloc"·data-themes=""·data-resource-suffix="1.78.0"·data-rustdoc-version="1.78.0"·data-channel="1.78.0"·data-search-js="search-42d8da7a6b9792c2.js"·data-settings-js="settings-4313503d2e1961c2.js"·><script·src="../../../static.files/storage-4c98445ec4002617.js"></script><script·defer·src="sidebar-items1.78.0.js"></script><script·defer·src="../../../static.files/main-12cf3b4f4f9dc36d.js"></script><noscript><link·rel="stylesheet"·href="../../../static.files/noscript-04d5337699b92874.css"></noscript><link·rel="alternate·icon"·type="image/png"·href="../../../static.files/favicon-16x16-8b506e7a72182f1c.png"><link·rel="alternate·icon"·type="image/png"·href="../../../static.files/favicon-32x32-422f7d1d52889060.png"><link·rel="icon"·type="image/svg+xml"·href="../../../static.files/favicon-2c020d218678b618.svg"></head><body·class="rustdoc·struct"><!--[if·lte·IE·11]><div·class="warning">This·old·browser·is·unsupported·and·will·most·likely·display·funky·things.</div><![endif]--><nav·class="mobile-topbar"><button·class="sidebar-menu-toggle"·title="show·sidebar"></button><a·class="logo-container"·href="../../../alloc/index.html"><img·class="rust-logo"·src="../../../static.files/rust-logo-151179464ae7ed46.svg"·alt=""></a></nav><nav·class="sidebar"><div·class="sidebar-crate"><a·class="logo-container"·href="../../../alloc/index.html"><img·class="rust-logo"·src="../../../static.files/rust-logo-151179464ae7ed46.svg"·alt="logo"></a><h2><a·href="../../../alloc/index.html">alloc</a><span·class="version">1.78.0</span></h2></div><h2·class="location"><a·href="#">RangeMut</a></h2><div·class="sidebar-elems"><section><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">Debug</a></li><li><a·href="#impl-DoubleEndedIterator-for-RangeMut%3C'a,+K,+V%3E">DoubleEndedIterator</a></li><li><a·href="#impl-FusedIterator-for-RangeMut%3C'_,+K,+V%3E">FusedIterator</a></li><li><a·href="#impl-Iterator-for-RangeMut%3C'a,+K,+V%3E">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">!UnwindSafe</a></li><li><a·href="#impl-Freeze-for-RangeMut%3C'a,+K,+V%3E">Freeze</a></li><li><a·href="#impl-RefUnwindSafe-for-RangeMut%3C'a,+K,+V%3E">RefUnwindSafe</a></li><li><a·href="#impl-Send-for-RangeMut%3C'a,+K,+V%3E">Send</a></li><li><a·href="#impl-Sync-for-RangeMut%3C'a,+K,+V%3E">Sync</a></li><li><a·href="#impl-Unpin-for-RangeMut%3C'a,+K,+V%3E">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">Any</a></li><li><a·href="#impl-Borrow%3CT%3E-for-T">Borrow&lt;T&gt;</a></li><li><a·href="#impl-BorrowMut%3CT%3E-for-T">BorrowMut&lt;T&gt;</a></li><li><a·href="#impl-From%3CT%3E-for-T">From&lt;T&gt;</a></li><li><a·href="#impl-Into%3CU%3E-for-T">Into&lt;U&gt;</a></li><li><a·href="#impl-IntoIterator-for-I">IntoIterator</a></li><li><a·href="#impl-TryFrom%3CU%3E-for-T">TryFrom&lt;U&gt;</a></li><li><a·href="#impl-TryInto%3CU%3E-for-T">TryInto&lt;U&gt;</a></li></ul></section><h2><a·href="index.html">In·alloc::collections::btree_map</a></h2></div></nav><div·class="sidebar-resizer"></div>1 <!DOCTYPE·html><html·lang="en"><head><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.write(`<link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../../static.files/SourceSerif4-Regular-46f98efaafac5295.ttf.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../../static.files/FiraSans-Regular-018c141bf0843ffd.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../../static.files/FiraSans-Medium-8f9a781e4970d388.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../../static.files/SourceCodePro-Regular-562dcc5011b6de7d.ttf.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../../static.files/SourceCodePro-Semibold-d899c5a5c4aeb14a.ttf.woff2">`)</script><link·rel="stylesheet"·href="../../../static.files/normalize-76eba96aa4d2e634.css"><link·rel="stylesheet"·href="../../../static.files/rustdoc-35f9e32502181f1e.css"><meta·name="rustdoc-vars"·data-root-path="../../../"·data-static-root-path="../../../static.files/"·data-current-crate="alloc"·data-themes=""·data-resource-suffix="1.78.0"·data-rustdoc-version="1.78.0"·data-channel="1.78.0"·data-search-js="search-42d8da7a6b9792c2.js"·data-settings-js="settings-4313503d2e1961c2.js"·><script·src="../../../static.files/storage-4c98445ec4002617.js"></script><script·defer·src="sidebar-items1.78.0.js"></script><script·defer·src="../../../static.files/main-12cf3b4f4f9dc36d.js"></script><noscript><link·rel="stylesheet"·href="../../../static.files/noscript-04d5337699b92874.css"></noscript><link·rel="alternate·icon"·type="image/png"·href="../../../static.files/favicon-16x16-8b506e7a72182f1c.png"><link·rel="alternate·icon"·type="image/png"·href="../../../static.files/favicon-32x32-422f7d1d52889060.png"><link·rel="icon"·type="image/svg+xml"·href="../../../static.files/favicon-2c020d218678b618.svg"></head><body·class="rustdoc·struct"><!--[if·lte·IE·11]><div·class="warning">This·old·browser·is·unsupported·and·will·most·likely·display·funky·things.</div><![endif]--><nav·class="mobile-topbar"><button·class="sidebar-menu-toggle"·title="show·sidebar"></button><a·class="logo-container"·href="../../../alloc/index.html"><img·class="rust-logo"·src="../../../static.files/rust-logo-151179464ae7ed46.svg"·alt=""></a></nav><nav·class="sidebar"><div·class="sidebar-crate"><a·class="logo-container"·href="../../../alloc/index.html"><img·class="rust-logo"·src="../../../static.files/rust-logo-151179464ae7ed46.svg"·alt="logo"></a><h2><a·href="../../../alloc/index.html">alloc</a><span·class="version">1.78.0</span></h2></div><h2·class="location"><a·href="#">RangeMut</a></h2><div·class="sidebar-elems"><section><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">Debug</a></li><li><a·href="#impl-DoubleEndedIterator-for-RangeMut%3C'a,+K,+V%3E">DoubleEndedIterator</a></li><li><a·href="#impl-FusedIterator-for-RangeMut%3C'_,+K,+V%3E">FusedIterator</a></li><li><a·href="#impl-Iterator-for-RangeMut%3C'a,+K,+V%3E">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">!UnwindSafe</a></li><li><a·href="#impl-Freeze-for-RangeMut%3C'a,+K,+V%3E">Freeze</a></li><li><a·href="#impl-RefUnwindSafe-for-RangeMut%3C'a,+K,+V%3E">RefUnwindSafe</a></li><li><a·href="#impl-Send-for-RangeMut%3C'a,+K,+V%3E">Send</a></li><li><a·href="#impl-Sync-for-RangeMut%3C'a,+K,+V%3E">Sync</a></li><li><a·href="#impl-Unpin-for-RangeMut%3C'a,+K,+V%3E">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">Any</a></li><li><a·href="#impl-Borrow%3CT%3E-for-T">Borrow&lt;T&gt;</a></li><li><a·href="#impl-BorrowMut%3CT%3E-for-T">BorrowMut&lt;T&gt;</a></li><li><a·href="#impl-From%3CT%3E-for-T">From&lt;T&gt;</a></li><li><a·href="#impl-Into%3CU%3E-for-T">Into&lt;U&gt;</a></li><li><a·href="#impl-IntoIterator-for-I">IntoIterator</a></li><li><a·href="#impl-TryFrom%3CU%3E-for-T">TryFrom&lt;U&gt;</a></li><li><a·href="#impl-TryInto%3CU%3E-for-T">TryInto&lt;U&gt;</a></li></ul></section><h2><a·href="index.html">In·alloc::collections::btree_map</a></h2></div></nav><div·class="sidebar-resizer"></div>
2 ····<main><div·class="width-limiter"><nav·class="sub"><form·class="search-form"><span></span><div·id="sidebar-button"·tabindex="-1"><a·href="../../../alloc/all.html"·title="show·sidebar"></a></div><input·class="search-input"·name="search"·aria-label="Run·search·in·the·documentation"·autocomplete="off"·spellcheck="false"·placeholder="Click·or·press·‘S’·to·search,·‘?’·for·more·options…"·type="search"><div·id="help-button"·tabindex="-1"><a·href="../../../help.html"·title="help">?</a></div><div·id="settings-menu"·tabindex="-1"><a·href="../../../settings.html"·title="settings"><img·width="22"·height="22"·alt="Change·settings"·src="../../../static.files/wheel-7b819b6101059cd0.svg"></a></div></form></nav><section·id="main-content"·class="content"><div·class="main-heading"><h1>Struct·<a·href="../../index.html">alloc</a>::<wbr><a·href="../index.html">collections</a>::<wbr><a·href="index.html">btree_map</a>::<wbr><a·class="struct"·href="#">RangeMut</a><button·id="copy-path"·title="Copy·item·path·to·clipboard"><img·src="../../../static.files/clipboard-7571035ce49a181d.svg"·width="19"·height="18"·alt="Copy·item·path"></button></h1><span·class="out-of-band"><span·class="since"·title="Stable·since·Rust·version·1.17.0">1.17.0</span>···<a·class="src"·href="../../../src/alloc/collections/btree/map.rs.html#595-600">source</a>···<button·id="toggle-all-docs"·title="collapse·all·docs">[<span>&#x2212;</span>]</button></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 ····<main><div·class="width-limiter"><nav·class="sub"><form·class="search-form"><span></span><div·id="sidebar-button"·tabindex="-1"><a·href="../../../alloc/all.html"·title="show·sidebar"></a></div><input·class="search-input"·name="search"·aria-label="Run·search·in·the·documentation"·autocomplete="off"·spellcheck="false"·placeholder="Click·or·press·‘S’·to·search,·‘?’·for·more·options…"·type="search"><div·id="help-button"·tabindex="-1"><a·href="../../../help.html"·title="help">?</a></div><div·id="settings-menu"·tabindex="-1"><a·href="../../../settings.html"·title="settings"><img·width="22"·height="22"·alt="Change·settings"·src="../../../static.files/wheel-7b819b6101059cd0.svg"></a></div></form></nav><section·id="main-content"·class="content"><div·class="main-heading"><h1>Struct·<a·href="../../index.html">alloc</a>::<wbr><a·href="../index.html">collections</a>::<wbr><a·href="index.html">btree_map</a>::<wbr><a·class="struct"·href="#">RangeMut</a><button·id="copy-path"·title="Copy·item·path·to·clipboard"><img·src="../../../static.files/clipboard-7571035ce49a181d.svg"·width="19"·height="18"·alt="Copy·item·path"></button></h1><span·class="out-of-band"><span·class="since"·title="Stable·since·Rust·version·1.17.0">1.17.0</span>···<a·class="src"·href="../../../src/alloc/collections/btree/map.rs.html#595-600">source</a>···<button·id="toggle-all-docs"·title="collapse·all·docs">[<span>&#x2212;</span>]</button></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>
3 <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·its3 <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
4 documentation·for·more.</p>4 documentation·for·more.</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-RangeMut%3C'_,+K,+V%3E"·class="impl"><a·class="src·rightside"·href="../../../src/alloc/collections/btree/map.rs.html#603-608">source</a><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-DoubleEndedIterator-for-RangeMut%3C'a,+K,+V%3E"·class="impl"><a·class="src·rightside"·href="../../../src/alloc/collections/btree/map.rs.html#2213-2217">source</a><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:·269aa0a49796b1af297882112fa8253ac7f8ee37167f1a1b49bea0b609113705·...·]/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><h2·id="trait-implementations"·class="section-header">Trait·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"><a·class="src·rightside"·href="../../../src/alloc/collections/btree/map.rs.html#603-608">source</a><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-DoubleEndedIterator-for-RangeMut%3C'a,+K,+V%3E"·class="impl"><a·class="src·rightside"·href="../../../src/alloc/collections/btree/map.rs.html#2213-2217">source</a><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.78.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:·704d0862cace54e1db5f1cf13d85542f3e6c332abe1a7408fe6636ec19e8eedb·...·]/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.78.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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(B,·Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.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.78.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.7[·...·truncated·by·diffoscope;·len:·3,·SHA:·7b1bd53949b752d143d871408483b5382371b5bc48d195d0c040ec93cfa2748b·...·]/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:·b3a5d6383debff0cac836c5889a757f11b019bc049778c518e60e4d37a3c4da1·...·]/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.78.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:·d66ed7e195a53e9945339ef1976aed455dcf80228d8e5b7b0c69a64c3983fea1·...·]/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.78.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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(B,·Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/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:·d11fd274e41827c1daee0c80a6ab5f978a613ab26297cb460535fef32cff8551·...·]/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.78.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:·c264047794019a6dcf05728ba6a6ee1f8f07c7209958b3366ba94546b527ecdc·...·]/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.78.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:·3985,·SHA:·a55ac9fb33877adb8452153b915fbcdbb98a47d7471120bc8a511efab60bac20·...·]/core/primitive.reference.html">&amp;'a·mut·V</a>)&gt;<div·class="where">where14 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·4513,·SHA:·ca6bea3c8cab9704ae560c34c48aaed1bdac4e38cf5e9e6c003a6cef5319ae2f·...·]/core/primitive.reference.html">&amp;'a·mut·V</a>)&gt;<div·class="where">where
15 ····(<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:·54fe9d70abea4f536759e9b41546b31b20b3f5c028f475d55fc2a1cb3af3c80f·...·]/core/primitive.reference.html">&amp;'a·mut·V</a>)&gt;<div·class="where">where15 ····(<a·class="primitive"·href="https://doc.rust-lang.org/1.78.0/core/primitive.reference.html">&amp;'a·K</a>,·<a·class="primitive"·href="https://doc.rust-lang.org/1.78.0/core/primitive.reference.html">&amp;'a·mut·V</a>):·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/cmp/t[·...·truncated·by·diffoscope;·len:·981,·SHA:·0e8941ebfde97c01e7e377c13113c131edc9112e8ebf8f3cab97a328fec89f9f·...·]/core/primitive.reference.html">&amp;'a·mut·V</a>)&gt;<div·class="where">where
16 ····(<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:·d987a85b2fb302201b8f1b0d6cce9c551f5a0979312adf14926bcb42b940170b·...·]/core/primitive.usize.html">usize</a>&gt;(16 ····(<a·class="primitive"·href="https://doc.rust-lang.org/1.78.0/core/primitive.reference.html">&amp;'a·K</a>,·<a·class="primitive"·href="https://doc.rust-lang.org/1.78.0/core/primitive.reference.html">&amp;'a·mut·V</a>):·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/cmp/t[·...·truncated·by·diffoscope;·len:·789,·SHA:·074f7d8a4afae1793003dfd488ee03a3b7d30e1f8a2179b06374ca59cf006e9e·...·]/core/primitive.usize.html">usize</a>&gt;(
17 ····&amp;mut·self17 ····&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.78.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.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title=[·...·truncated·by·diffoscope;·len:·381,·SHA:·88c48923c9b7ea5cc47c1087c60e09656e81d4671c58071ba2bef826335388bc·...·]/core/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:·1818,·SHA:·2c4ab8ee637ea0883fc707bcc67678122b90e2c5f8c9054d201481512105dd79·...·]/core/primitive.usize.html">usize</a><div·class="where">where19 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></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:·402867e9e3549fef747dcb22b92bda79093f02d1378ea733f633e3a91e074bca·...·]/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:·00fcd590d49f9c95cf7e39437688efce9b3546bce88f836f82a8084a5cad4047·...·]/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.78.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:·5acc2bcc91ab2687c8137eaa20bd4287e0b901b846fa877b4a1d59df04bc4956·...·]/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.78.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:·4ac7445a1207207aeda1789f31c5036d8905fa206c83a58ca48662c081a68134·...·]/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.78.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:·e83c903581753673e083ce8dd809879a2fc81ab3050eb6db267d7fa26b15e035·...·]/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.78.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:·10378641f30fbaa3b3d8ba8984f91955195f5a0ddb70a41cc9ff99666b50a36f·...·]/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.78.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.78.0/core/iter/traits/it[·...·truncated·by·diffoscope;·len:·1329,·SHA:·d9299c8edc606ed82f24d61ce441bec451141d684c2a9a75074f5b19c57f196c·...·]/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.78.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:·b9001dd3131b1425179c94853e1b90fff0f7169b9570e86cd50c6b7fbf1ee8a5·...·]/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.78.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:·98627729f77dcf1c9d258f343354ba600b7134c6b3929080f231e8de7155b70b·...·]/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.78.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.78.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.78.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:·fa2a17b1aaf7dbc4e89f728d099c0a475adcd5ff79e4791795d7c4df5fc2ccec·...·]/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.78.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:·7301b6beba7b6885849be90a625df68ef739a5374af456c51fe2e81d91a25363·...·]/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.78.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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::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:·d75758e0f8262eeea27445cec43f13d84f0c02ba4e03c0c54d041f9ab1965e0f·...·]/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.78.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:·98f6effefa44d759c249143d83623f0055d937382bfc398b7e1f5e92cd413657·...·]/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.78.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:·9009d5c023150c1a97b2d18e30d176e7ff2e48673ad0e4665367958e752bf827·...·]/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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·916,·SHA:·30d0b2a76513c5a880e9aee43e92b18805845cfcfe5783f62dc090167a439e63·...·]/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.78.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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·140,·SHA:·752f473b57e7444ebfddf5ea7fd40a332e83ec55524a6c31b5ee0f82a5dea819·...·]/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:·7c1da0b93b40e2b4f823a0d24b5a27f092ffdb68175a9c14fe21a97d84bb2244·...·]/core/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.78.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:·76aa2ad154f88085ee3f8a22721a7e6812680bac785d19059532407f50da1801·...·]/core/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.78.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:·96005685f2d5bf532d7af03cf747a50bdbe5efffccc579afe197789e4cd44a54·...·]/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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·1052,·SHA:·110b47c7083083d565fcfc89337fddc8e5c87e81b2f720f3f7b0ded55e8500fb·...·]/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.78.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:·02bccd69f3cf4a08b24b66a0c9afb8ac49ebd0e9a7d5a183641b471189a35df3·...·]/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.78.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:·8464264e074dde5d84f0414ab3b5b2d8da83f3c9e3ca04c45458241580a8c80d·...·]/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.78.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.78.0/core/iter/adapte[·...·truncated·by·diffoscope;·len:·175,·SHA:·16fe7225bf05b478e2828b347c3d23ded9a22f89d8887a2c65d9f7b3faf1b0e7·...·]/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:·60d233d0587f535c8bae5118522baa81ef2524d4168f9e142529a37902d8e8c4·...·]/core/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.78.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:·00ccbb673c11ed48d8c6aa2a3f8984fb298202e7bccfa42f1ac21290fcc0fb06·...·]/core/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.78.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:·0900235f7b60bdd90fbf9718324068ecf230199603f19da2c38cad64ed6915ff·...·]/core/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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·1234,·SHA:·3b805567411cdcebed740f9e8d400dbe7fb487504f40e284544a140155090fdf·...·]/core/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.78.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:·552b3dd2132886d024e4d5bd2554611e25c1f068adaaf23ecf80da81d31997ef·...·]/core/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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·1058,·SHA:·b390dbdda8d7e93604b5ecd906a93efd03fe19bdaf41cf12893fd361bf974307·...·]/core/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.78.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:·491a83328e39b23cf5191ed5cb6bf83f1a62c9405ed5c39c58117b227b39b16c·...·]/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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·1163,·SHA:·5772149166d344bf8fa5ebbd9db8693a8f2e5f031c50338e8f1523ef72f814d6·...·]/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:·e62b3f87b06b061e799e72ab8f04c531f1c6f241266260eaab33ea2b793dd8d2·...·]/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.78.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:·6216516fe581c401abda3c95818192e8f030e2008c9bbdbaafebba16f33ea9bd·...·]/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.78.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:·7d73eca41cdb0c170bd03419f3563f3fe9e70e11494db546e781d302d3cd5636·...·]/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.78.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:·485843399c56e24bdf020ff0610d0ce1f62fbac5530d9880a1a7417105e3d70f·...·]/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.78.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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(<a·class="primitive"·href="https://doc.rust-lang.org/1.78.0/core/primitive.reference.html">&amp;mut·St</a>,·Self::<a·class="associatedty[·...·truncated·by·diffoscope;·len:·449,·SHA:·f12c268a8a8111b9e7126ad78bf5523a63733caa63d187c4fe792309ea41acdf·...·]/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:·02034aae893b799fa017b2d71546332d96a823cd4ba05c14089559819f3dd720·...·]/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.78.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.78.0/core/iter/trai[·...·truncated·by·diffoscope;·len:·690,·SHA:·371190e5c1bf9b7dde6e84447965a69946212b977b9eb6d89048fbe34c5dda1c·...·]/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.78.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.78.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:·4d1f54658fd1c005b101a2e27b0da3c6ee0cbe2d891660c65470bfec01fa46f6·...·]/core/iter/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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·976,·SHA:·2a9182f6fe88e0b8a9b1ae1f46cace940cc0b8736033c354c0f0ccbf1c196e7a·...·]/core/iter/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.78.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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;[Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtyp[·...·truncated·by·diffoscope;·len:·135,·SHA:·0b06a6094d42ccbc8bce5b01c4383961fe7f1967f05e4c9f1ff33e71e425fb26·...·]/core/primitive.array.html">N</a>])·-&gt;·R,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iter_map_windows</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/87155">#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.78.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:·d83146d48347da8e04ce6fcac96b0b1500203504f596d32c16a5a1493dd375e1·...·]/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.78.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:·0d33056cee8a4f9b70b573c0adecc2f3599a2f8d9fa9f2c2044e9118ab134f73·...·]/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:·e9288f8d879e78d7e79eb2c4255eb99308efd98061b1221968fb17de11019b2e·...·]/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.78.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.78.0/core/op[·...·truncated·by·diffoscope;·len:·841,·SHA:·9cba1b175fb3726d7f1f01da9be7c1a56568a68e4ce7915a468b730902daf8d3·...·]/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.78.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:·790,·SHA:·19293cf7305d77d7ccd51618427cff5e3edb06f162c23796ed392e0ac792f65e·...·]/core/primitive.reference.html">&amp;mut·Self</a><div·class="where">where66 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·934,·SHA:·ea20d2e0fe9388580ea08100baa9120b5e9b6cb48f43fc846f15db8b9649e7f6·...·]/core/primitive.reference.html">&amp;mut·Self</a><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:·cf371b2193fdcddf87cfe994db4d3e364336bb766b15dcfdd0ac7aabbd72e715·...·]/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.78.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.78.0/core/it[·...·truncated·by·diffoscope;·len:·523,·SHA:·97064c705f6f4bdf74469c54fabcf580d21893127d1b4cd9a9c1018a717ef153·...·]/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.78.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.78.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:·d76c3fcf86c63211032a6b22dc5924ef552b1ad26b12e19f15d2f1d5b3d7e394·...·]/core/primitive.reference.html">&amp;mut·E</a><div·class="where">where69 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.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.78.0/core/iter/tr[·...·truncated·by·diffoscope;·len:·728,·SHA:·01937c2dc314c259495665570ae249c94b4a5b0719718f5f1188e6fc64ecf487·...·]/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.78.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.78.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:·fa6f33be71e9184cfecc555b0b832d1a929285d35b47b1212b2176ac555731a1·...·]/core/primitive.tuple.html">(B,·B)</a><div·class="where">where71 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></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:·00bd47017b1bdd1bbe2c3fc932d955a8aa2f7f5eff8c00e3001ae28a982a5883·...·]/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.78.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.78.0/core/default/trait.Default.html"·title="trait·core::default::Default">Default</a>·+·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/collect/trait.Extend.html"·title="trait·core::iter::traits::collec[·...·truncated·by·diffoscope;·len:·95,·SHA:·8b3be1d0042cae0550f865faf5849221240bdf04eb1b2107605b72d48c3ad29c·...·]/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:·281bbd5137cae68dd8057d013e9c9f311461e746663120304e3f6adace77f784·...·]/core/primitive.usize.html">usize</a><div·class="where">where74 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·995,·SHA:·bec3765fdab56713186e2454cd84738b5b28e3280a2f3d5a25cefdbc3089b520·...·]/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.78.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>·+·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/double_ended/trait.DoubleEndedIterator.html"·title="trait·core::iter::trai[·...·truncated·by·diffoscope;·len:·132,·SHA:·e5b2cf5f56946ede1e190ed09879c5821e2de04cf8e5d145142eeb40c6340982·...·]/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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(<a·class="primitive"·href="https://doc.rust-lang.org/1.78.0/core/primitive.reference.html">&amp;T</a>)·-&gt;·<a·class="primitive"·href="[·...·truncated·by·diffoscope;·len:·32,·SHA:·63d052a8ced32bf927ffadd7e884c08caf4970e85dfdf6be0e568d49b174da96·...·]/core/primitive.bool.html">bool</a>,</div></h4></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:·dc6a465df534b0392c5280e79e5249847890045561099b2cfc44bfabc4801d8d·...·]/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.78.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:·0c224636c18baa273f69de21f90083317f2ea0b7367a3f0d0f1c0ace55a36f79·...·]/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.78.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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·135,·SHA:·51ff5f5c7ebd8440623ea71b125c5a5837e809e308fe1a13fbe19cddb941dbd9·...·]/core/primitive.bool.html">bool</a>,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iter_is_partitioned</code>&nbsp;<a·href="https://github.com/rust-lang/rust/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:·bd8fce4ee431c619c98780c4d520e8db93f1e034f12843ffaff5744b7ce2190b·...·]/core/iter/traits/iterator/trait.Iterator.html#method.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.78.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:·2c74873f4e5ba70004a1c7edd1cc3f9e2d91271295dd1591e2d26848df4c02ba·...·]/core/iter/traits/iterator/trait.Iterator.html#method.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.78.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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(B,·Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.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.78.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:·7b4fc32e7634ae85c682a97099be267837713d7e4831893b617ca652f57a89da·...·]/core/iter/traits/iterator/trait.Iterator.html#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.78.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:·52912e82c4b0a760d06f77eb4ee3a59ba70dd76cb532954900c73ae94c652674·...·]/core/iter/traits/iterator/trait.Iterator.html#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.78.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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.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.78.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.78.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:·5cfb1ce7ac10ff40c8d1d0f019b60fc4735736254c2d8357ed62287e51b1ac32·...·]/core/iter/traits/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.78.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:·1d6c4809cea8748e901d3f94777f450d430f3161f6ac05ed1c178d9327f966a3·...·]/core/iter/traits/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.78.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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(B,·Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::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:·2c738ecc68200afa2467bef085de14dcb642dbaac77c4529948f5e259e66691d·...·]/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.78.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:·b60215068a6d9721be05f81098c51167d7138c4042f140cad42f77c4df43f597·...·]/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.78.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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·352,·SHA:·e7c3c296abe2c0a183967153e4ae7fd50bafa2ae7088e3e78b3b48fee253adc6·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::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:·c3f1d50e276def36966943119961a20b09cab3be33483fe4d48d7f322489534b·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_reduce"·class="fn">try_reduce</a>&lt;F,·R&gt;(96 operation.·<a·href="https://doc.rust-lang.org/1.78.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:·7a18fdd041b1a001b4a8feb289ee127fd9240232239269eb35dc3b8f74783ec9·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_reduce"·class="fn">try_reduce</a>&lt;F,·R&gt;(
97 ····&amp;mut·self,97 ····&amp;mut·self,
98 ····f:·F98 ····f:·F
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.78.0/core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&gt;::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/ops/try_trait/trait.Try.html#associatedtype.Residual"·title="type[·...·truncated·by·diffoscope;·len:·754,·SHA:·6fb4dfdb6b4da68921c1e7f8b75d99cf293d58318d684a840254ce9576957bea·...·]/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.78.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:·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:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·140,·SHA:·c27972e6fa3464c9476eaa185e8657edb6bb294f148403f3d079285294a9f909·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·R,
102 ····R:·<a·class="trait"·href="../../../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.78.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.78.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.78.0/core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&gt;::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/ops/try_trait/trait.Try.html#associatedtype.Residual"·title="type[·...·truncated·by·diffoscope;·len:·412,·SHA:·22b8cbb007e5cce82b9d13a65bfa56aa8d83c32541fac25f4d9b3857b0540908·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;&gt;,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iterator_try_reduce</code>&nbsp;<a·href="https://github.com/rust-lang/rust/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:·1a00be8efe0263bc0d09f5d47be04890b1d27a20c3429d1f4531805a03591fdb·...·]/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.78.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:·bc0d658d56e348823de15386e1cd4ab49109f3a7a055a4573a19391b47071193·...·]/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.78.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:·c15cbdf9d3f54700b6eac2f717541f7f5a3cf811d73f48ef7118096c1a240102·...·]/core/primitive.bool.html">bool</a><div·class="where">where106 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·1018,·SHA:·e61cd6bdd36729cc38e57fcaea2ccb91a23a5acbda3c8986071f19bf1ecfc52a·...·]/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.78.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:·80fef1533a0c8783ee74be0f29290d7dec960bcd19223b11639b3e6377220faa·...·]/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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·1172,·SHA:·e64ab74d116d286191ad43d9d9e10411fc011c23724aa806e9a8f9b0be0757e3·...·]/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.78.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:·f441e2966ff8db4214e57fcd74f81262d6e371aa51cea97ebde5921e81b4da79·...·]/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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·1051,·SHA:·ecc0b8fccd861464760f9ae047ff6ab98c91a1db010cb5fa59a8c2ab883db7c4·...·]/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.78.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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·130,·SHA:·130a13019dc175d02304b4f550157e2f13ac15c2f25a979c74161d10b146ab89·...·]/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:·ec4fb002625b166504031522e52a66812b279e6735a67cb718813205909c3fb7·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_find"·class="fn">try_find</a>&lt;F,·R&gt;(113 the·first·non-none·result.·<a·href="https://doc.rust-lang.org/1.78.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:·8ced1b10e78750774c5c8ed995ed83dcd13983aa75d329acf8069da106ab9f4a·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_find"·class="fn">try_find</a>&lt;F,·R&gt;(
114 ····&amp;mut·self,114 ····&amp;mut·self,
115 ····f:·F115 ····f:·F
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.78.0/core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&gt;::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/ops/try_trait/trait.Try.html#associatedtype.Residual"·title="type[·...·truncated·by·diffoscope;·len:·626,·SHA:·95f9831257b68862cbcbf54f0ad2ff4e597a4c9f763112d1da8a0897dadcf872·...·]/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.78.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;·R,118 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·R,
119 ····R:·<a·class="trait"·href="../../../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.78.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.78.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.78.0/core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&gt;::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/ops/try_trait/trait.Try.html#associatedtype.Residual"·title="type[·...·truncated·by·diffoscope;·len:·412,·SHA:·22b8cbb007e5cce82b9d13a65bfa56aa8d83c32541fac25f4d9b3857b0540908·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;&gt;,</div></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.78.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:·fa9d94b216f6e4ce6035b4762e3bf17cb86a0272db0a55a056f05c68bcaeb0da·...·]/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.78.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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·1190,·SHA:·882e9e9a037f916d0ed4aa6d749399e6e01ca81811eacfc54a484818cb5d5029·...·]/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.78.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.78.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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/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.78.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:·0367b1bacc0a7d8e05f1c5181f8c4ea428f3f11edbae0e76811f3ef1d4925e41·...·]/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; 79863/300625 bytes (26.57%) of diff not shown.
65.9 KB
./usr/share/doc/rust-web-doc/html/alloc/collections/btree_map/struct.UnorderedKeyError.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="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.write(`<link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../../static.files/SourceSerif4-Regular-46f98efaafac5295.ttf.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../../static.files/FiraSans-Regular-018c141bf0843ffd.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../../static.files/FiraSans-Medium-8f9a781e4970d388.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../../static.files/SourceCodePro-Regular-562dcc5011b6de7d.ttf.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../../static.files/SourceCodePro-Semibold-d899c5a5c4aeb14a.ttf.woff2">`)</script><link·rel="stylesheet"·href="../../../static.files/normalize-76eba96aa4d2e634.css"><link·rel="stylesheet"·href="../../../static.files/rustdoc-35f9e32502181f1e.css"><meta·name="rustdoc-vars"·data-root-path="../../../"·data-static-root-path="../../../static.files/"·data-current-crate="alloc"·data-themes=""·data-resource-suffix="1.78.0"·data-rustdoc-version="1.78.0"·data-channel="1.78.0"·data-search-js="search-42d8da7a6b9792c2.js"·data-settings-js="settings-4313503d2e1961c2.js"·><script·src="../../../static.files/storage-4c98445ec4002617.js"></script><script·defer·src="sidebar-items1.78.0.js"></script><script·defer·src="../../../static.files/main-12cf3b4f4f9dc36d.js"></script><noscript><link·rel="stylesheet"·href="../../../static.files/noscript-04d5337699b92874.css"></noscript><link·rel="alternate·icon"·type="image/png"·href="../../../static.files/favicon-16x16-8b506e7a72182f1c.png"><link·rel="alternate·icon"·type="image/png"·href="../../../static.files/favicon-32x32-422f7d1d52889060.png"><link·rel="icon"·type="image/svg+xml"·href="../../../static.files/favicon-2c020d218678b618.svg"></head><body·class="rustdoc·struct"><!--[if·lte·IE·11]><div·class="warning">This·old·browser·is·unsupported·and·will·most·likely·display·funky·things.</div><![endif]--><nav·class="mobile-topbar"><button·class="sidebar-menu-toggle"·title="show·sidebar"></button><a·class="logo-container"·href="../../../alloc/index.html"><img·class="rust-logo"·src="../../../static.files/rust-logo-151179464ae7ed46.svg"·alt=""></a></nav><nav·class="sidebar"><div·class="sidebar-crate"><a·class="logo-container"·href="../../../alloc/index.html"><img·class="rust-logo"·src="../../../static.files/rust-logo-151179464ae7ed46.svg"·alt="logo"></a><h2><a·href="../../../alloc/index.html">alloc</a><span·class="version">1.78.0</span></h2></div><h2·class="location"><a·href="#">UnorderedKeyError</a></h2><div·class="sidebar-elems"><section><h3><a·href="#trait-implementations">Trait·Implementations</a></h3><ul·class="block·trait-implementation"><li><a·href="#impl-Clone-for-UnorderedKeyError">Clone</a></li><li><a·href="#impl-Debug-for-UnorderedKeyError">Debug</a></li><li><a·href="#impl-Display-for-UnorderedKeyError">Display</a></li><li><a·href="#impl-Eq-for-UnorderedKeyError">Eq</a></li><li><a·href="#impl-Error-for-UnorderedKeyError">Error</a></li><li><a·href="#impl-PartialEq-for-UnorderedKeyError">PartialEq</a></li><li><a·href="#impl-StructuralPartialEq-for-UnorderedKeyError">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">Freeze</a></li><li><a·href="#impl-RefUnwindSafe-for-UnorderedKeyError">RefUnwindSafe</a></li><li><a·href="#impl-Send-for-UnorderedKeyError">Send</a></li><li><a·href="#impl-Sync-for-UnorderedKeyError">Sync</a></li><li><a·href="#impl-Unpin-for-UnorderedKeyError">Unpin</a></li><li><a·href="#impl-UnwindSafe-for-UnorderedKeyError">UnwindSafe</a></li></ul><h3><a·href="#blanket-implementations">Blanket·Implementations</a></h3><ul·class="block·blanket-implementation"><li><a·href="#impl-Any-for-T">Any</a></li><li><a·href="#impl-Borrow%3CT%3E-for-T">Borrow&lt;T&gt;</a></li><li><a·href="#impl-BorrowMut%3CT%3E-for-T">BorrowMut&lt;T&gt;</a></li><li><a·href="#impl-From%3CT%3E-for-T">From&lt;T&gt;</a></li><li><a·href="#impl-Into%3CU%3E-for-T">Into&lt;U&gt;</a></li><li><a·href="#impl-ToOwned-for-T">ToOwned</a></li><li><a·href="#impl-ToString-for-T">ToString</a></li><li><a·href="#impl-TryFrom%3CU%3E-for-T">TryFrom&lt;U&gt;</a></li><li><a·href="#impl-TryInto%3CU%3E-for-T">TryInto&lt;U&gt;</a></li></ul></section><h2><a·href="index.html">In·alloc::collections::btree_map</a></h2></div></nav><div·class="sidebar-resizer"></div>1 <!DOCTYPE·html><html·lang="en"><head><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.write(`<link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../../static.files/SourceSerif4-Regular-46f98efaafac5295.ttf.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../../static.files/FiraSans-Regular-018c141bf0843ffd.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../../static.files/FiraSans-Medium-8f9a781e4970d388.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../../static.files/SourceCodePro-Regular-562dcc5011b6de7d.ttf.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../../static.files/SourceCodePro-Semibold-d899c5a5c4aeb14a.ttf.woff2">`)</script><link·rel="stylesheet"·href="../../../static.files/normalize-76eba96aa4d2e634.css"><link·rel="stylesheet"·href="../../../static.files/rustdoc-35f9e32502181f1e.css"><meta·name="rustdoc-vars"·data-root-path="../../../"·data-static-root-path="../../../static.files/"·data-current-crate="alloc"·data-themes=""·data-resource-suffix="1.78.0"·data-rustdoc-version="1.78.0"·data-channel="1.78.0"·data-search-js="search-42d8da7a6b9792c2.js"·data-settings-js="settings-4313503d2e1961c2.js"·><script·src="../../../static.files/storage-4c98445ec4002617.js"></script><script·defer·src="sidebar-items1.78.0.js"></script><script·defer·src="../../../static.files/main-12cf3b4f4f9dc36d.js"></script><noscript><link·rel="stylesheet"·href="../../../static.files/noscript-04d5337699b92874.css"></noscript><link·rel="alternate·icon"·type="image/png"·href="../../../static.files/favicon-16x16-8b506e7a72182f1c.png"><link·rel="alternate·icon"·type="image/png"·href="../../../static.files/favicon-32x32-422f7d1d52889060.png"><link·rel="icon"·type="image/svg+xml"·href="../../../static.files/favicon-2c020d218678b618.svg"></head><body·class="rustdoc·struct"><!--[if·lte·IE·11]><div·class="warning">This·old·browser·is·unsupported·and·will·most·likely·display·funky·things.</div><![endif]--><nav·class="mobile-topbar"><button·class="sidebar-menu-toggle"·title="show·sidebar"></button><a·class="logo-container"·href="../../../alloc/index.html"><img·class="rust-logo"·src="../../../static.files/rust-logo-151179464ae7ed46.svg"·alt=""></a></nav><nav·class="sidebar"><div·class="sidebar-crate"><a·class="logo-container"·href="../../../alloc/index.html"><img·class="rust-logo"·src="../../../static.files/rust-logo-151179464ae7ed46.svg"·alt="logo"></a><h2><a·href="../../../alloc/index.html">alloc</a><span·class="version">1.78.0</span></h2></div><h2·class="location"><a·href="#">UnorderedKeyError</a></h2><div·class="sidebar-elems"><section><h3><a·href="#trait-implementations">Trait·Implementations</a></h3><ul·class="block·trait-implementation"><li><a·href="#impl-Clone-for-UnorderedKeyError">Clone</a></li><li><a·href="#impl-Debug-for-UnorderedKeyError">Debug</a></li><li><a·href="#impl-Display-for-UnorderedKeyError">Display</a></li><li><a·href="#impl-Eq-for-UnorderedKeyError">Eq</a></li><li><a·href="#impl-Error-for-UnorderedKeyError">Error</a></li><li><a·href="#impl-PartialEq-for-UnorderedKeyError">PartialEq</a></li><li><a·href="#impl-StructuralPartialEq-for-UnorderedKeyError">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">Freeze</a></li><li><a·href="#impl-RefUnwindSafe-for-UnorderedKeyError">RefUnwindSafe</a></li><li><a·href="#impl-Send-for-UnorderedKeyError">Send</a></li><li><a·href="#impl-Sync-for-UnorderedKeyError">Sync</a></li><li><a·href="#impl-Unpin-for-UnorderedKeyError">Unpin</a></li><li><a·href="#impl-UnwindSafe-for-UnorderedKeyError">UnwindSafe</a></li></ul><h3><a·href="#blanket-implementations">Blanket·Implementations</a></h3><ul·class="block·blanket-implementation"><li><a·href="#impl-Any-for-T">Any</a></li><li><a·href="#impl-Borrow%3CT%3E-for-T">Borrow&lt;T&gt;</a></li><li><a·href="#impl-BorrowMut%3CT%3E-for-T">BorrowMut&lt;T&gt;</a></li><li><a·href="#impl-From%3CT%3E-for-T">From&lt;T&gt;</a></li><li><a·href="#impl-Into%3CU%3E-for-T">Into&lt;U&gt;</a></li><li><a·href="#impl-ToOwned-for-T">ToOwned</a></li><li><a·href="#impl-ToString-for-T">ToString</a></li><li><a·href="#impl-TryFrom%3CU%3E-for-T">TryFrom&lt;U&gt;</a></li><li><a·href="#impl-TryInto%3CU%3E-for-T">TryInto&lt;U&gt;</a></li></ul></section><h2><a·href="index.html">In·alloc::collections::btree_map</a></h2></div></nav><div·class="sidebar-resizer"></div>
2 ····<main><div·class="width-limiter"><nav·class="sub"><form·class="search-form"><span></span><div·id="sidebar-button"·tabindex="-1"><a·href="../../../alloc/all.html"·title="show·sidebar"></a></div><input·class="search-input"·name="search"·aria-label="Run·search·in·the·documentation"·autocomplete="off"·spellcheck="false"·placeholder="Click·or·press·‘S’·to·search,·‘?’·for·more·options…"·type="search"><div·id="help-button"·tabindex="-1"><a·href="../../../help.html"·title="help">?</a></div><div·id="settings-menu"·tabindex="-1"><a·href="../../../settings.html"·title="settings"><img·width="22"·height="22"·alt="Change·settings"·src="../../../static.files/wheel-7b819b6101059cd0.svg"></a></div></form></nav><section·id="main-content"·class="content"><div·class="main-heading"><h1>Struct·<a·href="../../index.html">alloc</a>::<wbr><a·href="../index.html">collections</a>::<wbr><a·href="index.html">btree_map</a>::<wbr><a·class="struct"·href="#">UnorderedKeyError</a><button·id="copy-path"·title="Copy·item·path·to·clipboard"><img·src="../../../static.files/clipboard-7571035ce49a181d.svg"·width="19"·height="18"·alt="Copy·item·path"></button></h1><span·class="out-of-band"><a·class="src"·href="../../../src/alloc/collections/btree/map.rs.html#3397">source</a>···<button·id="toggle-all-docs"·title="collapse·all·docs">[<span>&#x2212;</span>]</button></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>·and2 ····<main><div·class="width-limiter"><nav·class="sub"><form·class="search-form"><span></span><div·id="sidebar-button"·tabindex="-1"><a·href="../../../alloc/all.html"·title="show·sidebar"></a></div><input·class="search-input"·name="search"·aria-label="Run·search·in·the·documentation"·autocomplete="off"·spellcheck="false"·placeholder="Click·or·press·‘S’·to·search,·‘?’·for·more·options…"·type="search"><div·id="help-button"·tabindex="-1"><a·href="../../../help.html"·title="help">?</a></div><div·id="settings-menu"·tabindex="-1"><a·href="../../../settings.html"·title="settings"><img·width="22"·height="22"·alt="Change·settings"·src="../../../static.files/wheel-7b819b6101059cd0.svg"></a></div></form></nav><section·id="main-content"·class="content"><div·class="main-heading"><h1>Struct·<a·href="../../index.html">alloc</a>::<wbr><a·href="../index.html">collections</a>::<wbr><a·href="index.html">btree_map</a>::<wbr><a·class="struct"·href="#">UnorderedKeyError</a><button·id="copy-path"·title="Copy·item·path·to·clipboard"><img·src="../../../static.files/clipboard-7571035ce49a181d.svg"·width="19"·height="18"·alt="Copy·item·path"></button></h1><span·class="out-of-band"><a·class="src"·href="../../../src/alloc/collections/btree/map.rs.html#3397">source</a>···<button·id="toggle-all-docs"·title="collapse·all·docs">[<span>&#x2212;</span>]</button></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
3 <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·properly3 <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
4 ordered·with·regards·to·adjacent·keys.</p>4 ordered·with·regards·to·adjacent·keys.</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-UnorderedKeyError"·class="impl"><a·class="src·rightside"·href="../../../src/alloc/collections/btree/map.rs.html#3395">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:·9590,·SHA:·b3503f7ec60bd75696a44ff5d4b638422c920d038782288e84eff58558b2916a·...·]/core/primitive.bool.html">bool</a></h4></section></summary><div·class='docblock'>This·method·tests·for·<code>self</code>·and·<code>other</code>·values·to·be·equal,·and·is·used5 </div></details><h2·id="trait-implementations"·class="section-header">Trait·Implementations<a·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#3395">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.78.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:·10262,·SHA:·0c93ce295e0d8d8d95485c088c4759c86ee29e14b781cd1742203309c1ebc294·...·]/core/primitive.bool.html">bool</a></h4></section></summary><div·class='docblock'>This·method·tests·for·<code>self</code>·and·<code>other</code>·values·to·be·equal,·and·is·used
6 by·<code>==</code>.</div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.ne"·class="method·trait-impl"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.0.0">1.0.0</span>···<a·class="src"·href="../../../src/core/cmp.rs.html#263">source</a></span><a·href="#method.ne"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../../../core/cmp/trait.PartialEq.html#method.ne"·class="fn">ne</a>(&amp;self,·other:·<a·class="primitive"·href="../../../core/[·...·truncated·by·diffoscope;·len:·81,·SHA:·2ba6e57f82d380e3f3fee865de22084b088301df9b3f69d725dd871f7e356b09·...·]/core/primitive.bool.html">bool</a></h4></section></summary><div·class='docblock'>This·method·tests·for·<code>!=</code>.·The·default·implementation·is·almost·always6 by·<code>==</code>.</div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.ne"·class="method·trait-impl"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.0.0">1.0.0</span>···<a·class="src"·href="https://doc.rust-lang.org/1.78.0/src/core/cmp.rs.html#263">source</a></span><a·href="#method.ne"·class="anchor">§</a><h4·class="code-header">fn·<a·href="https://doc.rust-lang.org/1.78.0/core/cmp/trait.PartialEq.html#method.ne"·class="fn">ne</a>(&amp;self,·[·...·truncated·by·diffoscope;·len:·177,·SHA:·e1e3f9b9b78644c807cda06ba58cbf80a7a50ed17e7136cd156da5dd11dec66f·...·]/core/primitive.bool.html">bool</a></h4></section></summary><div·class='docblock'>This·method·tests·for·<code>!=</code>.·The·default·implementation·is·almost·always
7 sufficient,·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#3395">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:·16dc5b1bcfaef0c7af2d86f573e02c2b06bccda899bd991a3f70d87dc88082b7·...·]/core/any/trait.Any.html"·title="trait·core::any::Any">Any</a>·for·T<div·class="where">where7 sufficient,·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#3395">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.78.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:·0e547d9ab2bf7c75c07f77c695cf9264bbc39c5cc41d973b091f5994b0330765·...·]/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="s[·...·truncated·by·diffoscope;·len:·690,·SHA:·60266624df43cdf1ecb412e35aaf311341d62543468bcbd4041716fbafffc07b·...·]/src/core/borrow.rs.html#208">source</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.78.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">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:·039b8952ccb1ab7d8f15cd519cbc10f4afc149276d0f9cfd3a53117d606059df·...·]/src/core/borrow.rs.html#208">source</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="sr[·...·truncated·by·diffoscope;·len:·647,·SHA:·8124d60df08ac71436917cb874e0ec9c0ffe7e4515e2ea246a1f1009f83ac6a1·...·]/src/core/borrow.rs.html#216">source</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.78.0/core/marker/trait.Sized.html"·title="trait·core::marker::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:·b03884aeae1813f459b6ebe4b7e3f3c22d5d37e0ad023677fd3869bc5a735be2·...·]/src/core/borrow.rs.html#216">source</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[·...·truncated·by·diffoscope;·len:·1254,·SHA:·88cecdca8f65ac7671462e07b83fc0153c4024bd8b3f1bfba320be439fbe3a4f·...·]/core/convert/trait.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.78.0/core/marker/trait.Sized.html"·title="trait·core::marker::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:·aaf5505cf4d2f5510949d066675a02996763e3167f43d15d7a3f114042a751b5·...·]/core/convert/trait.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.78.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.78.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·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>12 ····U:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.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:·2cf76a8ca501b2a1fef209fed846779ab1bed3b75f52c7425335e3ce04e6b272·...·]/core/convert/trait.Into.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.78.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#83-95">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#83-95">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·href="#ass[·...·truncated·by·diffoscope;·len:·1244,·SHA:·69cacd1082b48ca1f5bfab4ae1e367f5f763da3ad72609b32e822cf57c8c8c3f·...·]/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#2543-2557">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.78.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:·1292,·SHA:·478a67fbd7248810c65ae304934fad33df64f589bd9dd6c1998b62182b3a8996·...·]/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#2543-2557">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=[·...·truncated·by·diffoscope;·len:·896,·SHA:·704b82019ade31064015a1ccdbf96947b1218dfdbea76d6f72eb963cae6c811d·...·]/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.78.0/core/marker/trait.Sized.html"·title="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:·dc1580c4251df722434b40f1582e9a089d6018e24820e7d5bd3f7eb69ec4f8e2·...·]/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"·class="associatedtype·trait-impl"><a·[·...·truncated·by·diffoscope;·len:·1621,·SHA:·6a7315ddf4ab9fa76e45d600a396b342519e12c73d2e6dd09bf01e1fa1b0aac0·...·]/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.78.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"·class="associ[·...·truncated·by·diffoscope;·len:·1861,·SHA:·78398046ba16de2f66a8201a11d6a2dd405fceedeabfcaa37481e77092687e6f·...·]/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-1"·class="associatedtype·trai[·...·truncated·by·diffoscope;·len:·1258,·SHA:·33d8749d0be17f35431e59e57d3fb79a5cc4320bd6fc26ab5ef088d04d3c929a·...·]/core/convert/trait.TryFrom.html#associatedtype.Error"·title="type·core::convert::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.78.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-1"·cl[·...·truncated·by·diffoscope;·len:·1474,·SHA:·ca90cccb6c86c654c95a1aaec456fbbe4b115f0d5a700e7d156e823346d70894·...·]/core/convert/trait.TryFrom.html#associatedtype.Error"·title="type·core::convert::TryFrom::Error">Error</a>&gt;</h4></section></summary><div·class='docblock'>Performs·the·conversion.</div></details></div></details></div></section></div></main></body></html>
52.0 KB
./usr/share/doc/rust-web-doc/html/alloc/collections/btree_map/struct.VacantEntry.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·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.write(`<link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../../static.files/SourceSerif4-Regular-46f98efaafac5295.ttf.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../../static.files/FiraSans-Regular-018c141bf0843ffd.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../../static.files/FiraSans-Medium-8f9a781e4970d388.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../../static.files/SourceCodePro-Regular-562dcc5011b6de7d.ttf.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../../static.files/SourceCodePro-Semibold-d899c5a5c4aeb14a.ttf.woff2">`)</script><link·rel="stylesheet"·href="../../../static.files/normalize-76eba96aa4d2e634.css"><link·rel="stylesheet"·href="../../../static.files/rustdoc-35f9e32502181f1e.css"><meta·name="rustdoc-vars"·data-root-path="../../../"·data-static-root-path="../../../static.files/"·data-current-crate="alloc"·data-themes=""·data-resource-suffix="1.78.0"·data-rustdoc-version="1.78.0"·data-channel="1.78.0"·data-search-js="search-42d8da7a6b9792c2.js"·data-settings-js="settings-4313503d2e1961c2.js"·><script·src="../../../static.files/storage-4c98445ec4002617.js"></script><script·defer·src="sidebar-items1.78.0.js"></script><script·defer·src="../../../static.files/main-12cf3b4f4f9dc36d.js"></script><noscript><link·rel="stylesheet"·href="../../../static.files/noscript-04d5337699b92874.css"></noscript><link·rel="alternate·icon"·type="image/png"·href="../../../static.files/favicon-16x16-8b506e7a72182f1c.png"><link·rel="alternate·icon"·type="image/png"·href="../../../static.files/favicon-32x32-422f7d1d52889060.png"><link·rel="icon"·type="image/svg+xml"·href="../../../static.files/favicon-2c020d218678b618.svg"></head><body·class="rustdoc·struct"><!--[if·lte·IE·11]><div·class="warning">This·old·browser·is·unsupported·and·will·most·likely·display·funky·things.</div><![endif]--><nav·class="mobile-topbar"><button·class="sidebar-menu-toggle"·title="show·sidebar"></button><a·class="logo-container"·href="../../../alloc/index.html"><img·class="rust-logo"·src="../../../static.files/rust-logo-151179464ae7ed46.svg"·alt=""></a></nav><nav·class="sidebar"><div·class="sidebar-crate"><a·class="logo-container"·href="../../../alloc/index.html"><img·class="rust-logo"·src="../../../static.files/rust-logo-151179464ae7ed46.svg"·alt="logo"></a><h2><a·href="../../../alloc/index.html">alloc</a><span·class="version">1.78.0</span></h2></div><h2·class="location"><a·href="#">VacantEntry</a></h2><div·class="sidebar-elems"><section><h3><a·href="#implementations">Methods</a></h3><ul·class="block·method"><li><a·href="#method.insert">insert</a></li><li><a·href="#method.into_key">into_key</a></li><li><a·href="#method.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">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">!UnwindSafe</a></li><li><a·href="#impl-Freeze-for-VacantEntry%3C'a,+K,+V,+A%3E">Freeze</a></li><li><a·href="#impl-RefUnwindSafe-for-VacantEntry%3C'a,+K,+V,+A%3E">RefUnwindSafe</a></li><li><a·href="#impl-Send-for-VacantEntry%3C'a,+K,+V,+A%3E">Send</a></li><li><a·href="#impl-Sync-for-VacantEntry%3C'a,+K,+V,+A%3E">Sync</a></li><li><a·href="#impl-Unpin-for-VacantEntry%3C'a,+K,+V,+A%3E">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">Any</a></li><li><a·href="#impl-Borrow%3CT%3E-for-T">Borrow&lt;T&gt;</a></li><li><a·href="#impl-BorrowMut%3CT%3E-for-T">BorrowMut&lt;T&gt;</a></li><li><a·href="#impl-From%3CT%3E-for-T">From&lt;T&gt;</a></li><li><a·href="#impl-Into%3CU%3E-for-T">Into&lt;U&gt;</a></li><li><a·href="#impl-TryFrom%3CU%3E-for-T">TryFrom&lt;U&gt;</a></li><li><a·href="#impl-TryInto%3CU%3E-for-T">TryInto&lt;U&gt;</a></li></ul></section><h2><a·href="index.html">In·alloc::collections::btree_map</a></h2></div></nav><div·class="sidebar-resizer"></div>1 <!DOCTYPE·html><html·lang="en"><head><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.write(`<link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../../static.files/SourceSerif4-Regular-46f98efaafac5295.ttf.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../../static.files/FiraSans-Regular-018c141bf0843ffd.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../../static.files/FiraSans-Medium-8f9a781e4970d388.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../../static.files/SourceCodePro-Regular-562dcc5011b6de7d.ttf.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../../static.files/SourceCodePro-Semibold-d899c5a5c4aeb14a.ttf.woff2">`)</script><link·rel="stylesheet"·href="../../../static.files/normalize-76eba96aa4d2e634.css"><link·rel="stylesheet"·href="../../../static.files/rustdoc-35f9e32502181f1e.css"><meta·name="rustdoc-vars"·data-root-path="../../../"·data-static-root-path="../../../static.files/"·data-current-crate="alloc"·data-themes=""·data-resource-suffix="1.78.0"·data-rustdoc-version="1.78.0"·data-channel="1.78.0"·data-search-js="search-42d8da7a6b9792c2.js"·data-settings-js="settings-4313503d2e1961c2.js"·><script·src="../../../static.files/storage-4c98445ec4002617.js"></script><script·defer·src="sidebar-items1.78.0.js"></script><script·defer·src="../../../static.files/main-12cf3b4f4f9dc36d.js"></script><noscript><link·rel="stylesheet"·href="../../../static.files/noscript-04d5337699b92874.css"></noscript><link·rel="alternate·icon"·type="image/png"·href="../../../static.files/favicon-16x16-8b506e7a72182f1c.png"><link·rel="alternate·icon"·type="image/png"·href="../../../static.files/favicon-32x32-422f7d1d52889060.png"><link·rel="icon"·type="image/svg+xml"·href="../../../static.files/favicon-2c020d218678b618.svg"></head><body·class="rustdoc·struct"><!--[if·lte·IE·11]><div·class="warning">This·old·browser·is·unsupported·and·will·most·likely·display·funky·things.</div><![endif]--><nav·class="mobile-topbar"><button·class="sidebar-menu-toggle"·title="show·sidebar"></button><a·class="logo-container"·href="../../../alloc/index.html"><img·class="rust-logo"·src="../../../static.files/rust-logo-151179464ae7ed46.svg"·alt=""></a></nav><nav·class="sidebar"><div·class="sidebar-crate"><a·class="logo-container"·href="../../../alloc/index.html"><img·class="rust-logo"·src="../../../static.files/rust-logo-151179464ae7ed46.svg"·alt="logo"></a><h2><a·href="../../../alloc/index.html">alloc</a><span·class="version">1.78.0</span></h2></div><h2·class="location"><a·href="#">VacantEntry</a></h2><div·class="sidebar-elems"><section><h3><a·href="#implementations">Methods</a></h3><ul·class="block·method"><li><a·href="#method.insert">insert</a></li><li><a·href="#method.into_key">into_key</a></li><li><a·href="#method.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">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">!UnwindSafe</a></li><li><a·href="#impl-Freeze-for-VacantEntry%3C'a,+K,+V,+A%3E">Freeze</a></li><li><a·href="#impl-RefUnwindSafe-for-VacantEntry%3C'a,+K,+V,+A%3E">RefUnwindSafe</a></li><li><a·href="#impl-Send-for-VacantEntry%3C'a,+K,+V,+A%3E">Send</a></li><li><a·href="#impl-Sync-for-VacantEntry%3C'a,+K,+V,+A%3E">Sync</a></li><li><a·href="#impl-Unpin-for-VacantEntry%3C'a,+K,+V,+A%3E">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">Any</a></li><li><a·href="#impl-Borrow%3CT%3E-for-T">Borrow&lt;T&gt;</a></li><li><a·href="#impl-BorrowMut%3CT%3E-for-T">BorrowMut&lt;T&gt;</a></li><li><a·href="#impl-From%3CT%3E-for-T">From&lt;T&gt;</a></li><li><a·href="#impl-Into%3CU%3E-for-T">Into&lt;U&gt;</a></li><li><a·href="#impl-TryFrom%3CU%3E-for-T">TryFrom&lt;U&gt;</a></li><li><a·href="#impl-TryInto%3CU%3E-for-T">TryInto&lt;U&gt;</a></li></ul></section><h2><a·href="index.html">In·alloc::collections::btree_map</a></h2></div></nav><div·class="sidebar-resizer"></div>
2 ····<main><div·class="width-limiter"><nav·class="sub"><form·class="search-form"><span></span><div·id="sidebar-button"·tabindex="-1"><a·href="../../../alloc/all.html"·title="show·sidebar"></a></div><input·class="search-input"·name="search"·aria-label="Run·search·in·the·documentation"·autocomplete="off"·spellcheck="false"·placeholder="Click·or·press·‘S’·to·search,·‘?’·for·more·options…"·type="search"><div·id="help-button"·tabindex="-1"><a·href="../../../help.html"·title="help">?</a></div><div·id="settings-menu"·tabindex="-1"><a·href="../../../settings.html"·title="settings"><img·width="22"·height="22"·alt="Change·settings"·src="../../../static.files/wheel-7b819b6101059cd0.svg"></a></div></form></nav><section·id="main-content"·class="content"><div·class="main-heading"><h1>Struct·<a·href="../../index.html">alloc</a>::<wbr><a·href="../index.html">collections</a>::<wbr><a·href="index.html">btree_map</a>::<wbr><a·class="struct"·href="#">VacantEntry</a><button·id="copy-path"·title="Copy·item·path·to·clipboard"><img·src="../../../static.files/clipboard-7571035ce49a181d.svg"·width="19"·height="18"·alt="Copy·item·path"></button></h1><span·class="out-of-band"><span·class="since"·title="Stable·since·Rust·version·1.0.0">1.0.0</span>···<a·class="src"·href="../../../src/alloc/collections/btree/map/entry.rs.html#48-64">source</a>···<button·id="toggle-all-docs"·title="collapse·all·docs">[<span>&#x2212;</span>]</button></span></div><pre·class="rust·item-decl"><code>pub·struct·VacantEntry&lt;'a,·K,·V,·A:·<a·class="trait"·href="../../alloc/trait.Allocator.html"·title="trait·alloc::alloc::Allocator">Allocator</a>·+·<a·class="trait"·href="../../../core/clone/trait.Clone.html"·title="trait·core::clone::Clone">Clone</a>·=·<a·class="struct"·href="../../alloc/struct.Global.html"·title="struct·alloc::alloc::Global">Global</a>&gt;·{·<span·class="comment">/*·private·fields·*/</span>·}</code></pre><details·class="toggle·top-doc"·open><summary·class="hideme"><span>Expand·description</span></summary><div·class="docblock"><p>A·view·into·a·vacant·entry·in·a·<code>BTreeMap</code>.2 ····<main><div·class="width-limiter"><nav·class="sub"><form·class="search-form"><span></span><div·id="sidebar-button"·tabindex="-1"><a·href="../../../alloc/all.html"·title="show·sidebar"></a></div><input·class="search-input"·name="search"·aria-label="Run·search·in·the·documentation"·autocomplete="off"·spellcheck="false"·placeholder="Click·or·press·‘S’·to·search,·‘?’·for·more·options…"·type="search"><div·id="help-button"·tabindex="-1"><a·href="../../../help.html"·title="help">?</a></div><div·id="settings-menu"·tabindex="-1"><a·href="../../../settings.html"·title="settings"><img·width="22"·height="22"·alt="Change·settings"·src="../../../static.files/wheel-7b819b6101059cd0.svg"></a></div></form></nav><section·id="main-content"·class="content"><div·class="main-heading"><h1>Struct·<a·href="../../index.html">alloc</a>::<wbr><a·href="../index.html">collections</a>::<wbr><a·href="index.html">btree_map</a>::<wbr><a·class="struct"·href="#">VacantEntry</a><button·id="copy-path"·title="Copy·item·path·to·clipboard"><img·src="../../../static.files/clipboard-7571035ce49a181d.svg"·width="19"·height="18"·alt="Copy·item·path"></button></h1><span·class="out-of-band"><span·class="since"·title="Stable·since·Rust·version·1.0.0">1.0.0</span>···<a·class="src"·href="../../../src/alloc/collections/btree/map/entry.rs.html#48-64">source</a>···<button·id="toggle-all-docs"·title="collapse·all·docs">[<span>&#x2212;</span>]</button></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.78.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>.
3 It·is·part·of·the·<a·href="enum.Entry.html"·title="enum·alloc::collections::btree_map::Entry"><code>Entry</code></a>·enum.</p>3 It·is·part·of·the·<a·href="enum.Entry.html"·title="enum·alloc::collections::btree_map::Entry"><code>Entry</code></a>·enum.</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-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·value4 </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.78.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:·cf35ad562bfdb5579a0c733257462786bdd37645a57ed3d1e65d4d15b90560a3·...·]/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
5 through·the·VacantEntry.</p>5 through·the·VacantEntry.</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="kw">use·</span>std::collections::BTreeMap;7 <div·class="example-wrap"><pre·class="rust·rust-example-rendered"><code><span·class="kw">use·</span>std::collections::BTreeMap;
  
8 <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="kw">let·</span><span·class="kw-2">mut·</span>map:·BTreeMap&lt;<span·class="kw-2">&amp;</span>str,·usize&gt;·=·BTreeMap::new();
9 <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"·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">Run</a></div>9 <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"·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">Run</a></div>
10 </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>10 </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 14, 43 lines modifiedOffset 14, 43 lines modified
14 <span·class="kw">use·</span>std::collections::btree_map::Entry;14 <span·class="kw">use·</span>std::collections::btree_map::Entry;
  
15 <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">let·</span><span·class="kw-2">mut·</span>map:·BTreeMap&lt;<span·class="kw-2">&amp;</span>str,·usize&gt;·=·BTreeMap::new();
  
16 <span·class="kw">if·let·</span>Entry::Vacant(v)·=·map.entry(<span·class="string">"poneyland"</span>)·{16 <span·class="kw">if·let·</span>Entry::Vacant(v)·=·map.entry(<span·class="string">"poneyland"</span>)·{
17 ····v.into_key();17 ····v.into_key();
18 }</code></pre><a·class="test-arrow"·target="_blank"·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">Run</a></div>18 }</code></pre><a·class="test-arrow"·target="_blank"·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">Run</a></div>
19 </div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.insert"·class="method"><a·class="src·rightside"·href="../../../src/alloc/collections/btree/map/entry.rs.html#351-386">source</a><h4·class="code-header">pub·fn·<a·href="#method.insert"·class="fn">insert</a>(self,·value:·V)·-&gt;·<a·class="primitive"·href="../../../core/primitive.reference.html">&amp;'a·mut·V</a></h4></section></summary><div·class="docblock"><p>Sets·the·value·of·the·entry·with·the·<code>VacantEntry</code>’s·key,19 </div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.insert"·class="method"><a·class="src·rightside"·href="../../../src/alloc/collections/btree/map/entry.rs.html#351-386">source</a><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.78.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,
20 and·returns·a·mutable·reference·to·it.</p>20 and·returns·a·mutable·reference·to·it.</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 <div·class="example-wrap"><pre·class="rust·rust-example-rendered"><code><span·class="kw">use·</span>std::collections::BTreeMap;22 <div·class="example-wrap"><pre·class="rust·rust-example-rendered"><code><span·class="kw">use·</span>std::collections::BTreeMap;
23 <span·class="kw">use·</span>std::collections::btree_map::Entry;23 <span·class="kw">use·</span>std::collections::btree_map::Entry;
  
24 <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">let·</span><span·class="kw-2">mut·</span>map:·BTreeMap&lt;<span·class="kw-2">&amp;</span>str,·u32&gt;·=·BTreeMap::new();
  
25 <span·class="kw">if·let·</span>Entry::Vacant(o)·=·map.entry(<span·class="string">"poneyland"</span>)·{25 <span·class="kw">if·let·</span>Entry::Vacant(o)·=·map.entry(<span·class="string">"poneyland"</span>)·{
26 ····o.insert(<span·class="number">37</span>);26 ····o.insert(<span·class="number">37</span>);
27 }27 }
28 <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"·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">Run</a></div>28 <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"·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">Run</a></div>
29 </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#67-71">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:·0e162a6c5be018365120e244c0c9cb1049aea42da946602be3c7c0b63f727150·...·]/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">where29 </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#67-71">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.78.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:·229bf68452b2eb50ba045e3dbcfacbc05c8c200b4488691b39c2fba7311cfc76·...·]/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
30 ····A:·<a·class="trait"·href="../../../core/marker/trait.Freeze.html"·title="trait·core::marker::Freeze">Freeze</a>,30 ····A:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/marker/trait.Freeze.html"·title="trait·core::marker::Freeze">Freeze</a>,
31 ····K:·<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">where31 ····K:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.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:·a25d4111d6d967a1fbc699bba2276d99ec00c8e96498f847d53a170c7f0570db·...·]/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
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.78.0/core/panic/unwind_safe/trait.RefUnwindSafe.html"·title="trait·core::panic::unwind_safe::RefUnwindSafe">RefUnwindSafe</a>,
33 ····K:·<a·class="trait"·href="../../../core/panic/unwind_safe/trait.RefUnwindSafe.html"·title="trait·core::panic::unwind_safe::RefUnwindSafe">RefUnwindSafe</a>,33 ····K:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/panic/unwind_safe/trait.RefUnwindSafe.html"·title="trait·core::panic::unwind_safe::RefUnwindSafe">RefUnwindSafe</a>,
34 ····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">where34 ····V:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.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:·29a5ac99b96d0a3311037f222d7aa053284cd9bc0870477862498a5ce5c4078e·...·]/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
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.78.0/core/marker/trait.Send.html"·title="trait·core::marker::Send">Send</a>,
36 ····K:·<a·class="trait"·href="../../../core/marker/trait.Send.html"·title="trait·core::marker::Send">Send</a>,36 ····K:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/marker/trait.Send.html"·title="trait·core::marker::Send">Send</a>,
37 ····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">where37 ····V:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.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:·ff614908937c35c733c7ee2913b339706306f2c308c1833de1f6de1e4230eada·...·]/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
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.78.0/core/marker/trait.Sync.html"·title="trait·core::marker::Sync">Sync</a>,
39 ····K:·<a·class="trait"·href="../../../core/marker/trait.Sync.html"·title="trait·core::marker::Sync">Sync</a>,39 ····K:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/marker/trait.Sync.html"·title="trait·core::marker::Sync">Sync</a>,
40 ····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">where40 ····V:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.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:·509a275fc1a690cf74ed11ce0743cf913f285eb7b246f7143f63f7e9c19eb187·...·]/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
41 ····A:·<a·class="trait"·href="../../../core/marker/trait.Unpin.html"·title="trait·core::marker::Unpin">Unpin</a>,41 ····A:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/marker/trait.Unpin.html"·title="trait·core::marker::Unpin">Unpin</a>,
42 ····K:·<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:·e6e3d12f0eb40c67153cccb114df5c88976d2416e9fe5bc1ad68c10aa45f0b86·...·]/core/any/trait.Any.html"·title="trait·core::any::Any">Any</a>·for·T<div·class="where">where42 ····K:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.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:·5fe4232886bdf675ce56f1d2b868b948ccbfc0d105192c881cab63e2bddb8417·...·]/core/any/trait.Any.html"·title="trait·core::any::Any">Any</a>·for·T<div·class="where">where
43 ····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:·60266624df43cdf1ecb412e35aaf311341d62543468bcbd4041716fbafffc07b·...·]/src/core/borrow.rs.html#208">source</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">where43 ····T:·'static·+·?<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">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:·039b8952ccb1ab7d8f15cd519cbc10f4afc149276d0f9cfd3a53117d606059df·...·]/src/core/borrow.rs.html#208">source</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
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"·class="method·trait-impl"><a·class="sr[·...·truncated·by·diffoscope;·len:·647,·SHA:·8124d60df08ac71436917cb874e0ec9c0ffe7e4515e2ea246a1f1009f83ac6a1·...·]/src/core/borrow.rs.html#216">source</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">where44 ····T:·?<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/marker/trait.Sized.html"·title="trait·core::marker::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:·b03884aeae1813f459b6ebe4b7e3f3c22d5d37e0ad023677fd3869bc5a735be2·...·]/src/core/borrow.rs.html#216">source</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
45 ····T:·?<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::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:·88cecdca8f65ac7671462e07b83fc0153c4024bd8b3f1bfba320be439fbe3a4f·...·]/core/convert/trait.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 ····T:·?<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/marker/trait.Sized.html"·title="trait·core::marker::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:·aaf5505cf4d2f5510949d066675a02996763e3167f43d15d7a3f114042a751b5·...·]/core/convert/trait.From.html#tymethod.from"·class="fn">from</a>(t:·T)·-&gt;·T</h4></section></summary><div·class="docblock"><p>Returns·the·argument·unchanged.</p>
46 </div></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">where46 </div></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.78.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.78.0/core/convert/trait.Into.html"·title="trait·core::convert::Into">Into</a>&lt;U&gt;·for·T<div·class="where">where
47 ····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>47 ····U:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.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:·2cf76a8ca501b2a1fef209fed846779ab1bed3b75f52c7425335e3ce04e6b272·...·]/core/convert/trait.Into.html#tymethod.into"·class="fn">into</a>(self)·-&gt;·U</h4></section></summary><div·class="docblock"><p>Calls·<code>U::from(self)</code>.</p>
48 <p>That·is,·this·conversion·is·whatever·the·implementation·of48 <p>That·is,·this·conversion·is·whatever·the·implementation·of
49 <code><a·href="../../../core/convert/trait.From.html"·title="trait·core::convert::From">From</a>&lt;T&gt;·for·U</code>·chooses·to·do.</p>49 <code><a·href="https://doc.rust-lang.org/1.78.0/core/convert/trait.From.html"·title="trait·core::convert::From">From</a>&lt;T&gt;·for·U</code>·chooses·to·do.</p>
50 </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">where50 </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.78.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.78.0/core/convert/trait.TryFrom.html"·title="trait·core::convert::TryFrom">TryFrom</a>&lt;U&gt;·for·T<div·class="where">where
51 ····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"·class="associatedtype·trait-impl"><a·[·...·truncated·by·diffoscope;·len:·1621,·SHA:·6a7315ddf4ab9fa76e45d600a396b342519e12c73d2e6dd09bf01e1fa1b0aac0·...·]/core/convert/trait.TryInto.html"·title="trait·core::convert::TryInto">TryInto</a>&lt;U&gt;·for·T<div·class="where">where51 ····U:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.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"·class="associ[·...·truncated·by·diffoscope;·len:·1861,·SHA:·78398046ba16de2f66a8201a11d6a2dd405fceedeabfcaa37481e77092687e6f·...·]/core/convert/trait.TryInto.html"·title="trait·core::convert::TryInto">TryInto</a>&lt;U&gt;·for·T<div·class="where">where
52 ····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-1"·class="associatedtype·trai[·...·truncated·by·diffoscope;·len:·1258,·SHA:·33d8749d0be17f35431e59e57d3fb79a5cc4320bd6fc26ab5ef088d04d3c929a·...·]/core/convert/trait.TryFrom.html#associatedtype.Error"·title="type·core::convert::TryFrom::Error">Error</a>&gt;</h4></section></summary><div·class='docblock'>Performs·the·conversion.</div></details></div></details></div></section></div></main></body></html>52 ····U:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.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-1"·cl[·...·truncated·by·diffoscope;·len:·1474,·SHA:·ca90cccb6c86c654c95a1aaec456fbbe4b115f0d5a700e7d156e823346d70894·...·]/core/convert/trait.TryFrom.html#associatedtype.Error"·title="type·core::convert::TryFrom::Error">Error</a>&gt;</h4></section></summary><div·class='docblock'>Performs·the·conversion.</div></details></div></details></div></section></div></main></body></html>
305 KB
./usr/share/doc/rust-web-doc/html/alloc/collections/btree_map/struct.Values.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·values·of·a·`BTreeMap`."><title>Values·in·alloc::collections::btree_map·-·Rust</title><script>·if·(window.location.protocol·!==·"file:")·document.write(`<link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../../static.files/SourceSerif4-Regular-46f98efaafac5295.ttf.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../../static.files/FiraSans-Regular-018c141bf0843ffd.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../../static.files/FiraSans-Medium-8f9a781e4970d388.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../../static.files/SourceCodePro-Regular-562dcc5011b6de7d.ttf.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../../static.files/SourceCodePro-Semibold-d899c5a5c4aeb14a.ttf.woff2">`)</script><link·rel="stylesheet"·href="../../../static.files/normalize-76eba96aa4d2e634.css"><link·rel="stylesheet"·href="../../../static.files/rustdoc-35f9e32502181f1e.css"><meta·name="rustdoc-vars"·data-root-path="../../../"·data-static-root-path="../../../static.files/"·data-current-crate="alloc"·data-themes=""·data-resource-suffix="1.78.0"·data-rustdoc-version="1.78.0"·data-channel="1.78.0"·data-search-js="search-42d8da7a6b9792c2.js"·data-settings-js="settings-4313503d2e1961c2.js"·><script·src="../../../static.files/storage-4c98445ec4002617.js"></script><script·defer·src="sidebar-items1.78.0.js"></script><script·defer·src="../../../static.files/main-12cf3b4f4f9dc36d.js"></script><noscript><link·rel="stylesheet"·href="../../../static.files/noscript-04d5337699b92874.css"></noscript><link·rel="alternate·icon"·type="image/png"·href="../../../static.files/favicon-16x16-8b506e7a72182f1c.png"><link·rel="alternate·icon"·type="image/png"·href="../../../static.files/favicon-32x32-422f7d1d52889060.png"><link·rel="icon"·type="image/svg+xml"·href="../../../static.files/favicon-2c020d218678b618.svg"></head><body·class="rustdoc·struct"><!--[if·lte·IE·11]><div·class="warning">This·old·browser·is·unsupported·and·will·most·likely·display·funky·things.</div><![endif]--><nav·class="mobile-topbar"><button·class="sidebar-menu-toggle"·title="show·sidebar"></button><a·class="logo-container"·href="../../../alloc/index.html"><img·class="rust-logo"·src="../../../static.files/rust-logo-151179464ae7ed46.svg"·alt=""></a></nav><nav·class="sidebar"><div·class="sidebar-crate"><a·class="logo-container"·href="../../../alloc/index.html"><img·class="rust-logo"·src="../../../static.files/rust-logo-151179464ae7ed46.svg"·alt="logo"></a><h2><a·href="../../../alloc/index.html">alloc</a><span·class="version">1.78.0</span></h2></div><h2·class="location"><a·href="#">Values</a></h2><div·class="sidebar-elems"><section><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">Clone</a></li><li><a·href="#impl-Debug-for-Values%3C'_,+K,+V%3E">Debug</a></li><li><a·href="#impl-Default-for-Values%3C'_,+K,+V%3E">Default</a></li><li><a·href="#impl-DoubleEndedIterator-for-Values%3C'a,+K,+V%3E">DoubleEndedIterator</a></li><li><a·href="#impl-ExactSizeIterator-for-Values%3C'_,+K,+V%3E">ExactSizeIterator</a></li><li><a·href="#impl-FusedIterator-for-Values%3C'_,+K,+V%3E">FusedIterator</a></li><li><a·href="#impl-Iterator-for-Values%3C'a,+K,+V%3E">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">Freeze</a></li><li><a·href="#impl-RefUnwindSafe-for-Values%3C'a,+K,+V%3E">RefUnwindSafe</a></li><li><a·href="#impl-Send-for-Values%3C'a,+K,+V%3E">Send</a></li><li><a·href="#impl-Sync-for-Values%3C'a,+K,+V%3E">Sync</a></li><li><a·href="#impl-Unpin-for-Values%3C'a,+K,+V%3E">Unpin</a></li><li><a·href="#impl-UnwindSafe-for-Values%3C'a,+K,+V%3E">UnwindSafe</a></li></ul><h3><a·href="#blanket-implementations">Blanket·Implementations</a></h3><ul·class="block·blanket-implementation"><li><a·href="#impl-Any-for-T">Any</a></li><li><a·href="#impl-Borrow%3CT%3E-for-T">Borrow&lt;T&gt;</a></li><li><a·href="#impl-BorrowMut%3CT%3E-for-T">BorrowMut&lt;T&gt;</a></li><li><a·href="#impl-From%3CT%3E-for-T">From&lt;T&gt;</a></li><li><a·href="#impl-Into%3CU%3E-for-T">Into&lt;U&gt;</a></li><li><a·href="#impl-IntoIterator-for-I">IntoIterator</a></li><li><a·href="#impl-ToOwned-for-T">ToOwned</a></li><li><a·href="#impl-TryFrom%3CU%3E-for-T">TryFrom&lt;U&gt;</a></li><li><a·href="#impl-TryInto%3CU%3E-for-T">TryInto&lt;U&gt;</a></li></ul></section><h2><a·href="index.html">In·alloc::collections::btree_map</a></h2></div></nav><div·class="sidebar-resizer"></div>1 <!DOCTYPE·html><html·lang="en"><head><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.write(`<link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../../static.files/SourceSerif4-Regular-46f98efaafac5295.ttf.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../../static.files/FiraSans-Regular-018c141bf0843ffd.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../../static.files/FiraSans-Medium-8f9a781e4970d388.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../../static.files/SourceCodePro-Regular-562dcc5011b6de7d.ttf.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../../static.files/SourceCodePro-Semibold-d899c5a5c4aeb14a.ttf.woff2">`)</script><link·rel="stylesheet"·href="../../../static.files/normalize-76eba96aa4d2e634.css"><link·rel="stylesheet"·href="../../../static.files/rustdoc-35f9e32502181f1e.css"><meta·name="rustdoc-vars"·data-root-path="../../../"·data-static-root-path="../../../static.files/"·data-current-crate="alloc"·data-themes=""·data-resource-suffix="1.78.0"·data-rustdoc-version="1.78.0"·data-channel="1.78.0"·data-search-js="search-42d8da7a6b9792c2.js"·data-settings-js="settings-4313503d2e1961c2.js"·><script·src="../../../static.files/storage-4c98445ec4002617.js"></script><script·defer·src="sidebar-items1.78.0.js"></script><script·defer·src="../../../static.files/main-12cf3b4f4f9dc36d.js"></script><noscript><link·rel="stylesheet"·href="../../../static.files/noscript-04d5337699b92874.css"></noscript><link·rel="alternate·icon"·type="image/png"·href="../../../static.files/favicon-16x16-8b506e7a72182f1c.png"><link·rel="alternate·icon"·type="image/png"·href="../../../static.files/favicon-32x32-422f7d1d52889060.png"><link·rel="icon"·type="image/svg+xml"·href="../../../static.files/favicon-2c020d218678b618.svg"></head><body·class="rustdoc·struct"><!--[if·lte·IE·11]><div·class="warning">This·old·browser·is·unsupported·and·will·most·likely·display·funky·things.</div><![endif]--><nav·class="mobile-topbar"><button·class="sidebar-menu-toggle"·title="show·sidebar"></button><a·class="logo-container"·href="../../../alloc/index.html"><img·class="rust-logo"·src="../../../static.files/rust-logo-151179464ae7ed46.svg"·alt=""></a></nav><nav·class="sidebar"><div·class="sidebar-crate"><a·class="logo-container"·href="../../../alloc/index.html"><img·class="rust-logo"·src="../../../static.files/rust-logo-151179464ae7ed46.svg"·alt="logo"></a><h2><a·href="../../../alloc/index.html">alloc</a><span·class="version">1.78.0</span></h2></div><h2·class="location"><a·href="#">Values</a></h2><div·class="sidebar-elems"><section><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">Clone</a></li><li><a·href="#impl-Debug-for-Values%3C'_,+K,+V%3E">Debug</a></li><li><a·href="#impl-Default-for-Values%3C'_,+K,+V%3E">Default</a></li><li><a·href="#impl-DoubleEndedIterator-for-Values%3C'a,+K,+V%3E">DoubleEndedIterator</a></li><li><a·href="#impl-ExactSizeIterator-for-Values%3C'_,+K,+V%3E">ExactSizeIterator</a></li><li><a·href="#impl-FusedIterator-for-Values%3C'_,+K,+V%3E">FusedIterator</a></li><li><a·href="#impl-Iterator-for-Values%3C'a,+K,+V%3E">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">Freeze</a></li><li><a·href="#impl-RefUnwindSafe-for-Values%3C'a,+K,+V%3E">RefUnwindSafe</a></li><li><a·href="#impl-Send-for-Values%3C'a,+K,+V%3E">Send</a></li><li><a·href="#impl-Sync-for-Values%3C'a,+K,+V%3E">Sync</a></li><li><a·href="#impl-Unpin-for-Values%3C'a,+K,+V%3E">Unpin</a></li><li><a·href="#impl-UnwindSafe-for-Values%3C'a,+K,+V%3E">UnwindSafe</a></li></ul><h3><a·href="#blanket-implementations">Blanket·Implementations</a></h3><ul·class="block·blanket-implementation"><li><a·href="#impl-Any-for-T">Any</a></li><li><a·href="#impl-Borrow%3CT%3E-for-T">Borrow&lt;T&gt;</a></li><li><a·href="#impl-BorrowMut%3CT%3E-for-T">BorrowMut&lt;T&gt;</a></li><li><a·href="#impl-From%3CT%3E-for-T">From&lt;T&gt;</a></li><li><a·href="#impl-Into%3CU%3E-for-T">Into&lt;U&gt;</a></li><li><a·href="#impl-IntoIterator-for-I">IntoIterator</a></li><li><a·href="#impl-ToOwned-for-T">ToOwned</a></li><li><a·href="#impl-TryFrom%3CU%3E-for-T">TryFrom&lt;U&gt;</a></li><li><a·href="#impl-TryInto%3CU%3E-for-T">TryInto&lt;U&gt;</a></li></ul></section><h2><a·href="index.html">In·alloc::collections::btree_map</a></h2></div></nav><div·class="sidebar-resizer"></div>
2 ····<main><div·class="width-limiter"><nav·class="sub"><form·class="search-form"><span></span><div·id="sidebar-button"·tabindex="-1"><a·href="../../../alloc/all.html"·title="show·sidebar"></a></div><input·class="search-input"·name="search"·aria-label="Run·search·in·the·documentation"·autocomplete="off"·spellcheck="false"·placeholder="Click·or·press·‘S’·to·search,·‘?’·for·more·options…"·type="search"><div·id="help-button"·tabindex="-1"><a·href="../../../help.html"·title="help">?</a></div><div·id="settings-menu"·tabindex="-1"><a·href="../../../settings.html"·title="settings"><img·width="22"·height="22"·alt="Change·settings"·src="../../../static.files/wheel-7b819b6101059cd0.svg"></a></div></form></nav><section·id="main-content"·class="content"><div·class="main-heading"><h1>Struct·<a·href="../../index.html">alloc</a>::<wbr><a·href="../index.html">collections</a>::<wbr><a·href="index.html">btree_map</a>::<wbr><a·class="struct"·href="#">Values</a><button·id="copy-path"·title="Copy·item·path·to·clipboard"><img·src="../../../static.files/clipboard-7571035ce49a181d.svg"·width="19"·height="18"·alt="Copy·item·path"></button></h1><span·class="out-of-band"><span·class="since"·title="Stable·since·Rust·version·1.0.0">1.0.0</span>···<a·class="src"·href="../../../src/alloc/collections/btree/map.rs.html#496-498">source</a>···<button·id="toggle-all-docs"·title="collapse·all·docs">[<span>&#x2212;</span>]</button></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 ····<main><div·class="width-limiter"><nav·class="sub"><form·class="search-form"><span></span><div·id="sidebar-button"·tabindex="-1"><a·href="../../../alloc/all.html"·title="show·sidebar"></a></div><input·class="search-input"·name="search"·aria-label="Run·search·in·the·documentation"·autocomplete="off"·spellcheck="false"·placeholder="Click·or·press·‘S’·to·search,·‘?’·for·more·options…"·type="search"><div·id="help-button"·tabindex="-1"><a·href="../../../help.html"·title="help">?</a></div><div·id="settings-menu"·tabindex="-1"><a·href="../../../settings.html"·title="settings"><img·width="22"·height="22"·alt="Change·settings"·src="../../../static.files/wheel-7b819b6101059cd0.svg"></a></div></form></nav><section·id="main-content"·class="content"><div·class="main-heading"><h1>Struct·<a·href="../../index.html">alloc</a>::<wbr><a·href="../index.html">collections</a>::<wbr><a·href="index.html">btree_map</a>::<wbr><a·class="struct"·href="#">Values</a><button·id="copy-path"·title="Copy·item·path·to·clipboard"><img·src="../../../static.files/clipboard-7571035ce49a181d.svg"·width="19"·height="18"·alt="Copy·item·path"></button></h1><span·class="out-of-band"><span·class="since"·title="Stable·since·Rust·version·1.0.0">1.0.0</span>···<a·class="src"·href="../../../src/alloc/collections/btree/map.rs.html#496-498">source</a>···<button·id="toggle-all-docs"·title="collapse·all·docs">[<span>&#x2212;</span>]</button></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>
3 <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·its3 <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
4 documentation·for·more.</p>4 documentation·for·more.</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-Values%3C'_,+K,+V%3E"·class="impl"><a·class="src·rightside"·href="../../../src/alloc/collections/btree/map.rs.html#1851-1855">source</a><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:·3792,·SHA:·958a49121f5427ea361b424ec052a9e6465d6c6e86b849732a6f150c2e935066·...·]/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></details><h2·id="trait-implementations"·class="section-header">Trait·Implementations<a·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"><a·class="src·rightside"·href="../../../src/alloc/collections/btree/map.rs.html#1851-1855">source</a><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.78.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:·4008,·SHA:·ebfc5871afcc4acd1437ba8c0e7d205dafd3756942ae795dbe24f04f394826e0·...·]/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>
  
6 <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 <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();
7 <span·class="macro">assert_eq!</span>(iter.len(),·<span·class="number">0</span>);</code></pre><a·class="test-arrow"·target="_blank"·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">Run</a></div>7 <span·class="macro">assert_eq!</span>(iter.len(),·<span·class="number">0</span>);</code></pre><a·class="test-arrow"·target="_blank"·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">Run</a></div>
8 </div></details></div></details><details·class="toggle·implementors-toggle"·open><summary><section·id="impl-DoubleEndedIterator-for-Values%3C'a,+K,+V%3E"·class="impl"><a·class="src·rightside"·href="../../../src/alloc/collections/btree/map.rs.html#1834-1838">source</a><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:·8a97eae95db20921c8bc04d5dd326d1b127776f63dd38feb4b287da8c514a171·...·]/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-Values%3C'a,+K,+V%3E"·class="impl"><a·class="src·rightside"·href="../../../src/alloc/collections/btree/map.rs.html#1834-1838">source</a><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.78.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:·a978bd051f2bd3b94f39b40a6d7ede559654642601eff223bc1fb81d7e2ec5a4·...·]/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.78.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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(B,·Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.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.78.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.7[·...·truncated·by·diffoscope;·len:·3,·SHA:·7b1bd53949b752d143d871408483b5382371b5bc48d195d0c040ec93cfa2748b·...·]/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:·b3a5d6383debff0cac836c5889a757f11b019bc049778c518e60e4d37a3c4da1·...·]/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.78.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:·d66ed7e195a53e9945339ef1976aed455dcf80228d8e5b7b0c69a64c3983fea1·...·]/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.78.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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(B,·Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/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:·d11fd274e41827c1daee0c80a6ab5f978a613ab26297cb460535fef32cff8551·...·]/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.78.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:·c264047794019a6dcf05728ba6a6ee1f8f07c7209958b3366ba94546b527ecdc·...·]/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.78.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:·6789,·SHA:·aa6e8b18eae4c9c1a5a30bf177a65d86d0976ad6f5a0e0df6f142e8dee6b8558·...·]/core/primitive.usize.html">usize</a>&gt;(17 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·7533,·SHA:·3f3b81f7532f53f71c11d1e5aa8026a2ce2d58728ed999f1f12a492ba06f8b20·...·]/core/primitive.usize.html">usize</a>&gt;(
18 ····&amp;mut·self18 ····&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.78.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.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title=[·...·truncated·by·diffoscope;·len:·381,·SHA:·88c48923c9b7ea5cc47c1087c60e09656e81d4671c58071ba2bef826335388bc·...·]/core/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:·746,·SHA:·99cc415a31b91c57f7eeb82ad0d2d1ba424489bee49de37c86a4ea21c663ccda·...·]/core/primitive.usize.html">usize</a><div·class="where">where20 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experiment[·...·truncated·by·diffoscope;·len:·866,·SHA:·945d2d86f0c4c5ca3e3ee3b181d18b2bbea57ee1a5a7efe16c0c915a5bf2c3ad·...·]/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:·2953,·SHA:·2e5656679d63218ae5d5d1b1a4dfc8d59cd28ba505be6dd08ba60caae9804629·...·]/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.78.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:·3433,·SHA:·49d1274908fa1d1e8e571a7a381dde77211770148791bbfb1cd851b4f911e155·...·]/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.78.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"><a·class="src·rightside"·href="../../../src/core/it[·...·truncated·by·diffoscope;·len:·602,·SHA:·cfe4c4d300dddc2abdc2f8194eb969c68b2240c28239969b5be2af6a564ed8cc·...·]/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.78.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"><a·class="src·rightside"·hr[·...·truncated·by·diffoscope;·len:·746,·SHA:·f1f70d650c102c8658e13890c7dbfc87418f07e7b522246fb579ec434ef64f7c·...·]/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.78.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:·1041,·SHA:·a281d174c9671021427f0b458ac94e87746ac44730475aa725652c6c15e2b972·...·]/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.78.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.78.0/core/iter/traits/it[·...·truncated·by·diffoscope;·len:·1233,·SHA:·f677df2d893dfe0dc1a9d31ebb0ba71a346d265781813e0d664d3f18369b6163·...·]/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.78.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:·b9001dd3131b1425179c94853e1b90fff0f7169b9570e86cd50c6b7fbf1ee8a5·...·]/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.78.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:·98627729f77dcf1c9d258f343354ba600b7134c6b3929080f231e8de7155b70b·...·]/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.78.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.78.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.78.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"><a·class="src·rightside"·href="../../../src/[·...·truncated·by·diffoscope;·len:·279,·SHA:·f2c34c2e64e77c66684f837812ebc4a94c81b2ad5862cc0131f80c3ce89e008a·...·]/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.78.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"><a·class="src·rights[·...·truncated·by·diffoscope;·len:·375,·SHA:·58419346f92e1709dadb70cc3cf356e3cd27972451bdc6b4fc4267e6f7e8bdae·...·]/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.78.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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::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:·d75758e0f8262eeea27445cec43f13d84f0c02ba4e03c0c54d041f9ab1965e0f·...·]/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.78.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:·98f6effefa44d759c249143d83623f0055d937382bfc398b7e1f5e92cd413657·...·]/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.78.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:·676,·SHA:·9ae42ed293737a3dd44c1ee9d98c6aabb1552fbb9d203cb852ee9fcc7834a6ca·...·]/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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·820,·SHA:·a664bbcbc0891663662e4eb7b4394d0fcd72e568136fc4d34097fea242cc32e7·...·]/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.78.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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·140,·SHA:·752f473b57e7444ebfddf5ea7fd40a332e83ec55524a6c31b5ee0f82a5dea819·...·]/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"><a·class="src·rightside"·href="../../../src/cor[·...·truncated·by·diffoscope;·len:·297,·SHA:·f01e44d4caf6c6ad80b37656b9300f7111340711dcd74d70867b5a652dbfb538·...·]/core/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.78.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"><a·class="src·rightside[·...·truncated·by·diffoscope;·len:·393,·SHA:·2e2aa7c9c9c087e7b346da376749064ab8c1894795a2f0a0f646cdc8c7bea997·...·]/core/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.78.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:·788,·SHA:·b788f412af946d2bd7646ba39a8c316ebfa88109f9626dbad9bf9964f975cd0c·...·]/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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·956,·SHA:·faba0521e870dbbd26d466fadba3522e7d29013a9b86376fffafffac11a57e0e·...·]/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.78.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"><a·class="src·rightside"·href="../../../src/co[·...·truncated·by·diffoscope;·len:·276,·SHA:·e337ee1b810d3ec0480569c4ed323ebf0a2315c8ae3c522a73fcca3aa8e6efb3·...·]/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.78.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"><a·class="src·rightsid[·...·truncated·by·diffoscope;·len:·372,·SHA:·03eea0861575eb80d3f7a87a3ba747adb1a33fe7e9ce72aa2172e7a287c63a94·...·]/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.78.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.78.0/core/iter/adapte[·...·truncated·by·diffoscope;·len:·175,·SHA:·16fe7225bf05b478e2828b347c3d23ded9a22f89d8887a2c65d9f7b3faf1b0e7·...·]/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"><a·class="src·rightside"·href="../../../src/c[·...·truncated·by·diffoscope;·len:·306,·SHA:·a9bc004bf639fa188165a336061c6c98ec7ff9d266a18f10db200dfa9a880b88·...·]/core/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.78.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"><a·class="src·rightsi[·...·truncated·by·diffoscope;·len:·402,·SHA:·7689a974f800fd069d1b4453ef62d6d6ad1b654462d624d36e3672051d502030·...·]/core/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.78.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:·946,·SHA:·877b8718d9df1464a912dd50eef16402225367db4e4b26484b5ee20d30644524·...·]/core/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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·1138,·SHA:·f6ae06b7de8e94df014341c5cf589a5e4a1298367b2ef7a968ec499c5170a70e·...·]/core/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.78.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:·552b3dd2132886d024e4d5bd2554611e25c1f068adaaf23ecf80da81d31997ef·...·]/core/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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·1058,·SHA:·b390dbdda8d7e93604b5ecd906a93efd03fe19bdaf41cf12893fd361bf974307·...·]/core/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.78.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:·875,·SHA:·5c5c44422f75cbb66ebcf54bea70536713b810843cc484b051aed088c6422d78·...·]/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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·1067,·SHA:·415d32e1211c35d3bb405de1d6e51c2102c14cadc3333894f063148dbe0b1f69·...·]/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:·543,·SHA:·f199bafab360be9b80e9f45c5ba799a52348b742ddb0fa9afdb1624729c36e58·...·]/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.78.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:·687,·SHA:·7f5256104c35c5948a2cb42b55f3048c9d2887e48a4a8226537a284f959c562a·...·]/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.78.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"><a·class="src·rightside"·href="../../../src/core/iter/t[·...·truncated·by·diffoscope;·len:·296,·SHA:·aea014801138aeee574964545b1e9ad297288a120113db6844b569d2b183e0a7·...·]/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.78.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"><a·class="src·rightside"·href="[·...·truncated·by·diffoscope;·len:·392,·SHA:·4e7da68f7be2622ef173653eca78d58e1f202b544a2e6abd14d8335c298c93a7·...·]/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.78.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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(<a·class="primitive"·href="https://doc.rust-lang.org/1.78.0/core/primitive.reference.html">&amp;mut·St</a>,·Self::<a·class="associatedty[·...·truncated·by·diffoscope;·len:·449,·SHA:·f12c268a8a8111b9e7126ad78bf5523a63733caa63d187c4fe792309ea41acdf·...·]/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:·474,·SHA:·c0ed850df640319d919b8c053c540caa158602207623bed65abbcd69ad9d2c9d·...·]/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.78.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.78.0/core/iter/trai[·...·truncated·by·diffoscope;·len:·594,·SHA:·02960742fa7892efaa08f289ce85865fc5efb6a4cd138c22e3566ca6fc727d78·...·]/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.78.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.78.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:·4d1f54658fd1c005b101a2e27b0da3c6ee0cbe2d891660c65470bfec01fa46f6·...·]/core/iter/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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·976,·SHA:·2a9182f6fe88e0b8a9b1ae1f46cace940cc0b8736033c354c0f0ccbf1c196e7a·...·]/core/iter/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.78.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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;[Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtyp[·...·truncated·by·diffoscope;·len:·135,·SHA:·0b06a6094d42ccbc8bce5b01c4383961fe7f1967f05e4c9f1ff33e71e425fb26·...·]/core/primitive.array.html">N</a>])·-&gt;·R,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iter_map_windows</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/87155">#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.78.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"><a·class="src·rightside"·href="../../../src/core[·...·truncated·by·diffoscope;·len:·262,·SHA:·6125a8b2b88486b3735bbd00905fe9ae55b6eb1491c8a493be9c8121dc3cb440·...·]/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.78.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"><a·class="src·rightside"[·...·truncated·by·diffoscope;·len:·358,·SHA:·d91b2ab18e0ce069e262cf523c6ef961f56eecad042ea1e9bcefe33cff28fc8f·...·]/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:·601,·SHA:·bdf3796aa87e911258d56122ffdaa3f8591a5c9db4ed6fd89c3dfd3660787f78·...·]/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.78.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.78.0/core/op[·...·truncated·by·diffoscope;·len:·745,·SHA:·424783f22102f4446d3ad4d362b1aafdb7531fa777213f97ee138aa878f67bd1·...·]/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.78.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:·694,·SHA:·db4bb2630979aa4504432e8d422265d943c9063bcf3d2e3be970003014226f1e·...·]/core/primitive.reference.html">&amp;mut·Self</a><div·class="where">where67 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·838,·SHA:·9b4fd8df7f41e9a76fd4cfca0a233b74b9bd27c3fe8228248abc3f940425a3e3·...·]/core/primitive.reference.html">&amp;mut·Self</a><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:·331,·SHA:·d13641714c275840abbb473011613a4e19924a453f5e1b83912681a9b7c5579b·...·]/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.78.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.78.0/core/it[·...·truncated·by·diffoscope;·len:·427,·SHA:·ecfaaac5d1d10c1bc4fcee9a050af0a268bee0b528c2d8ea4e9774440bd8a279·...·]/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.78.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.78.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:·d76c3fcf86c63211032a6b22dc5924ef552b1ad26b12e19f15d2f1d5b3d7e394·...·]/core/primitive.reference.html">&amp;mut·E</a><div·class="where">where70 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.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.78.0/core/iter/tr[·...·truncated·by·diffoscope;·len:·728,·SHA:·01937c2dc314c259495665570ae249c94b4a5b0719718f5f1188e6fc64ecf487·...·]/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.78.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.78.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:·759,·SHA:·3cf174fac64a83c8e22066c3d77741118f89b13411537fc82c1004faa5c9e2ae·...·]/core/primitive.tuple.html">(B,·B)</a><div·class="where">where72 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experiment[·...·truncated·by·diffoscope;·len:·879,·SHA:·e773b2222c92d001e295030cb47a780ab0c1132d7fc8e9e3a98de4f532e6c520·...·]/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.78.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.78.0/core/default/trait.Default.html"·title="trait·core::default::Default">Default</a>·+·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/collect/trait.Extend.html"·title="trait·core::iter::traits::collec[·...·truncated·by·diffoscope;·len:·95,·SHA:·8b3be1d0042cae0550f865faf5849221240bdf04eb1b2107605b72d48c3ad29c·...·]/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:·281bbd5137cae68dd8057d013e9c9f311461e746663120304e3f6adace77f784·...·]/core/primitive.usize.html">usize</a><div·class="where">where75 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·995,·SHA:·bec3765fdab56713186e2454cd84738b5b28e3280a2f3d5a25cefdbc3089b520·...·]/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.78.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>·+·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/double_ended/trait.DoubleEndedIterator.html"·title="trait·core::iter::trai[·...·truncated·by·diffoscope;·len:·132,·SHA:·e5b2cf5f56946ede1e190ed09879c5821e2de04cf8e5d145142eeb40c6340982·...·]/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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(<a·class="primitive"·href="https://doc.rust-lang.org/1.78.0/core/primitive.reference.html">&amp;T</a>)·-&gt;·<a·class="primitive"·href="[·...·truncated·by·diffoscope;·len:·32,·SHA:·63d052a8ced32bf927ffadd7e884c08caf4970e85dfdf6be0e568d49b174da96·...·]/core/primitive.bool.html">bool</a>,</div></h4></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:·dc6a465df534b0392c5280e79e5249847890045561099b2cfc44bfabc4801d8d·...·]/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.78.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:·0c224636c18baa273f69de21f90083317f2ea0b7367a3f0d0f1c0ace55a36f79·...·]/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.78.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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·135,·SHA:·51ff5f5c7ebd8440623ea71b125c5a5837e809e308fe1a13fbe19cddb941dbd9·...·]/core/primitive.bool.html">bool</a>,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iter_is_partitioned</code>&nbsp;<a·href="https://github.com/rust-lang/rust/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:·bd8fce4ee431c619c98780c4d520e8db93f1e034f12843ffaff5744b7ce2190b·...·]/core/iter/traits/iterator/trait.Iterator.html#method.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.78.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:·2c74873f4e5ba70004a1c7edd1cc3f9e2d91271295dd1591e2d26848df4c02ba·...·]/core/iter/traits/iterator/trait.Iterator.html#method.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.78.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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(B,·Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.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.78.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:·7b4fc32e7634ae85c682a97099be267837713d7e4831893b617ca652f57a89da·...·]/core/iter/traits/iterator/trait.Iterator.html#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.78.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:·52912e82c4b0a760d06f77eb4ee3a59ba70dd76cb532954900c73ae94c652674·...·]/core/iter/traits/iterator/trait.Iterator.html#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.78.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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.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.78.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.78.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"><a·class="src·rightside"·href="../../../src/cor[·...·truncated·by·diffoscope;·len:·139,·SHA:·dc7fb7a70636459a0d7de28cbcb454050f39c184bab178c95c524a6eb9ca51cf·...·]/core/iter/traits/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.78.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"><a·class="src·rightside[·...·truncated·by·diffoscope;·len:·211,·SHA:·924e062acd8127e8d6158162219ee5d57a941854e14063d21d7768edae549431·...·]/core/iter/traits/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.78.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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(B,·Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::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:·2c738ecc68200afa2467bef085de14dcb642dbaac77c4529948f5e259e66691d·...·]/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.78.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:·b60215068a6d9721be05f81098c51167d7138c4042f140cad42f77c4df43f597·...·]/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.78.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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·352,·SHA:·e7c3c296abe2c0a183967153e4ae7fd50bafa2ae7088e3e78b3b48fee253adc6·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::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:·c3f1d50e276def36966943119961a20b09cab3be33483fe4d48d7f322489534b·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_reduce"·class="fn">try_reduce</a>&lt;F,·R&gt;(97 operation.·<a·href="https://doc.rust-lang.org/1.78.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:·7a18fdd041b1a001b4a8feb289ee127fd9240232239269eb35dc3b8f74783ec9·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_reduce"·class="fn">try_reduce</a>&lt;F,·R&gt;(
98 ····&amp;mut·self,98 ····&amp;mut·self,
99 ····f:·F99 ····f:·F
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.78.0/core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&gt;::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/ops/try_trait/trait.Try.html#associatedtype.Residual"·title="type[·...·truncated·by·diffoscope;·len:·754,·SHA:·6fb4dfdb6b4da68921c1e7f8b75d99cf293d58318d684a840254ce9576957bea·...·]/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.78.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:·68,·SHA:·e7e11f257edcac749a5883ad9a3aa42e6e965be419f967b36caa7afd3b36d7c9·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·R,102 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·140,·SHA:·c27972e6fa3464c9476eaa185e8657edb6bb294f148403f3d079285294a9f909·...·]/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·=·Self::<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.78.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.78.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.78.0/core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&gt;::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/ops/try_trait/trait.Try.html#associatedtype.Residual"·title="type[·...·truncated·by·diffoscope;·len:·412,·SHA:·22b8cbb007e5cce82b9d13a65bfa56aa8d83c32541fac25f4d9b3857b0540908·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;&gt;,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iterator_try_reduce</code>&nbsp;<a·href="https://github.com/rust-lang/rust/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"><a·class="src·rightside"·href="../../../src/core/i[·...·truncated·by·diffoscope;·len:·284,·SHA:·fbacd9a305d3a60d42d9adcc5ea9e5f579f4ff5d970999f333eaf0c7f9baf66c·...·]/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.78.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"><a·class="src·rightside"·h[·...·truncated·by·diffoscope;·len:·380,·SHA:·29c4004d4d8b0c8c9dfe9023f8b2c5ef801d9dc4688893035d182c1ae774c453·...·]/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.78.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:·754,·SHA:·e3afac523bd4c054d94fbbb6c5c856ac78a6359550526fa0726732b36529c33d·...·]/core/primitive.bool.html">bool</a><div·class="where">where107 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·922,·SHA:·f4fd532c280e18f28bd6dda6c2a129e2e92114b67f27235bb5fd39f725be9c43·...·]/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.78.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:·884,·SHA:·32570d141a71827f9ac19bf566a51ca4814ccafaf6f8a961920ce107fe9657d7·...·]/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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·1076,·SHA:·2dd9de8adaee4a5ee96501d9a58bfac2fea00ba8d78b834bfca29949b3afe18b·...·]/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.78.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:·f441e2966ff8db4214e57fcd74f81262d6e371aa51cea97ebde5921e81b4da79·...·]/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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·1051,·SHA:·ecc0b8fccd861464760f9ae047ff6ab98c91a1db010cb5fa59a8c2ab883db7c4·...·]/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.78.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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·130,·SHA:·130a13019dc175d02304b4f550157e2f13ac15c2f25a979c74161d10b146ab89·...·]/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:·ec4fb002625b166504031522e52a66812b279e6735a67cb718813205909c3fb7·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_find"·class="fn">try_find</a>&lt;F,·R&gt;(114 the·first·non-none·result.·<a·href="https://doc.rust-lang.org/1.78.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:·8ced1b10e78750774c5c8ed995ed83dcd13983aa75d329acf8069da106ab9f4a·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_find"·class="fn">try_find</a>&lt;F,·R&gt;(
115 ····&amp;mut·self,115 ····&amp;mut·self,
116 ····f:·F116 ····f:·F
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.78.0/core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&gt;::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/ops/try_trait/trait.Try.html#associatedtype.Residual"·title="type[·...·truncated·by·diffoscope;·len:·626,·SHA:·95f9831257b68862cbcbf54f0ad2ff4e597a4c9f763112d1da8a0897dadcf872·...·]/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.78.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;·R,119 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·R,
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.78.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.78.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.78.0/core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&gt;::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/ops/try_trait/trait.Try.html#associatedtype.Residual"·title="type[·...·truncated·by·diffoscope;·len:·412,·SHA:·22b8cbb007e5cce82b9d13a65bfa56aa8d83c32541fac25f4d9b3857b0540908·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;&gt;,</div></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"><a·class="src·rightside"·href="../../../src/cor[·...·truncated·by·diffoscope;·len:·419,·SHA:·4337d283573b9683aaa605a7d2417318ef2a03902876e7da2ec26f2a5febf794·...·]/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.78.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"><a·class="src·rightside[·...·truncated·by·diffoscope;·len:·539,·SHA:·04e329705f11ed9ec269a68b0b75ac4ab26c78e4316a571ee9336c28bbca6359·...·]/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.78.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:·901,·SHA:·a6eb7314148a1006184790a26873440fac678952c99874de84cb66644e250c0b·...·]/core/primitive.usize.html">usize</a>&gt;<div·class="where">where124 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·1093,·SHA:·623dbacabfe45799103c799fb60a4d212ceb8759ff853a11209a07793257c9cd·...·]/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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·135,·SHA:·51ff5f5c7ebd8440623ea71b125c5a5837e809e308fe1a13fbe19cddb941dbd9·...·]/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.78.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>·+·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/exact_size/trait.ExactSizeIterator.html"·title="trait·core::iter::traits::[·...·truncated·by·diffoscope;·len:·110,·SHA:·a8846fff2831d0de2de7dbb91c4e50f6f60fac276813cbaa471bf32fb45120d4·...·]/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; 84917/312139 bytes (27.20%) of diff not shown.
297 KB
./usr/share/doc/rust-web-doc/html/alloc/collections/btree_map/struct.ValuesMut.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·the·values·of·a·`BTreeMap`."><title>ValuesMut·in·alloc::collections::btree_map·-·Rust</title><script>·if·(window.location.protocol·!==·"file:")·document.write(`<link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../../static.files/SourceSerif4-Regular-46f98efaafac5295.ttf.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../../static.files/FiraSans-Regular-018c141bf0843ffd.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../../static.files/FiraSans-Medium-8f9a781e4970d388.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../../static.files/SourceCodePro-Regular-562dcc5011b6de7d.ttf.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../../static.files/SourceCodePro-Semibold-d899c5a5c4aeb14a.ttf.woff2">`)</script><link·rel="stylesheet"·href="../../../static.files/normalize-76eba96aa4d2e634.css"><link·rel="stylesheet"·href="../../../static.files/rustdoc-35f9e32502181f1e.css"><meta·name="rustdoc-vars"·data-root-path="../../../"·data-static-root-path="../../../static.files/"·data-current-crate="alloc"·data-themes=""·data-resource-suffix="1.78.0"·data-rustdoc-version="1.78.0"·data-channel="1.78.0"·data-search-js="search-42d8da7a6b9792c2.js"·data-settings-js="settings-4313503d2e1961c2.js"·><script·src="../../../static.files/storage-4c98445ec4002617.js"></script><script·defer·src="sidebar-items1.78.0.js"></script><script·defer·src="../../../static.files/main-12cf3b4f4f9dc36d.js"></script><noscript><link·rel="stylesheet"·href="../../../static.files/noscript-04d5337699b92874.css"></noscript><link·rel="alternate·icon"·type="image/png"·href="../../../static.files/favicon-16x16-8b506e7a72182f1c.png"><link·rel="alternate·icon"·type="image/png"·href="../../../static.files/favicon-32x32-422f7d1d52889060.png"><link·rel="icon"·type="image/svg+xml"·href="../../../static.files/favicon-2c020d218678b618.svg"></head><body·class="rustdoc·struct"><!--[if·lte·IE·11]><div·class="warning">This·old·browser·is·unsupported·and·will·most·likely·display·funky·things.</div><![endif]--><nav·class="mobile-topbar"><button·class="sidebar-menu-toggle"·title="show·sidebar"></button><a·class="logo-container"·href="../../../alloc/index.html"><img·class="rust-logo"·src="../../../static.files/rust-logo-151179464ae7ed46.svg"·alt=""></a></nav><nav·class="sidebar"><div·class="sidebar-crate"><a·class="logo-container"·href="../../../alloc/index.html"><img·class="rust-logo"·src="../../../static.files/rust-logo-151179464ae7ed46.svg"·alt="logo"></a><h2><a·href="../../../alloc/index.html">alloc</a><span·class="version">1.78.0</span></h2></div><h2·class="location"><a·href="#">ValuesMut</a></h2><div·class="sidebar-elems"><section><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">Debug</a></li><li><a·href="#impl-DoubleEndedIterator-for-ValuesMut%3C'a,+K,+V%3E">DoubleEndedIterator</a></li><li><a·href="#impl-ExactSizeIterator-for-ValuesMut%3C'_,+K,+V%3E">ExactSizeIterator</a></li><li><a·href="#impl-FusedIterator-for-ValuesMut%3C'_,+K,+V%3E">FusedIterator</a></li><li><a·href="#impl-Iterator-for-ValuesMut%3C'a,+K,+V%3E">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">!UnwindSafe</a></li><li><a·href="#impl-Freeze-for-ValuesMut%3C'a,+K,+V%3E">Freeze</a></li><li><a·href="#impl-RefUnwindSafe-for-ValuesMut%3C'a,+K,+V%3E">RefUnwindSafe</a></li><li><a·href="#impl-Send-for-ValuesMut%3C'a,+K,+V%3E">Send</a></li><li><a·href="#impl-Sync-for-ValuesMut%3C'a,+K,+V%3E">Sync</a></li><li><a·href="#impl-Unpin-for-ValuesMut%3C'a,+K,+V%3E">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">Any</a></li><li><a·href="#impl-Borrow%3CT%3E-for-T">Borrow&lt;T&gt;</a></li><li><a·href="#impl-BorrowMut%3CT%3E-for-T">BorrowMut&lt;T&gt;</a></li><li><a·href="#impl-From%3CT%3E-for-T">From&lt;T&gt;</a></li><li><a·href="#impl-Into%3CU%3E-for-T">Into&lt;U&gt;</a></li><li><a·href="#impl-IntoIterator-for-I">IntoIterator</a></li><li><a·href="#impl-TryFrom%3CU%3E-for-T">TryFrom&lt;U&gt;</a></li><li><a·href="#impl-TryInto%3CU%3E-for-T">TryInto&lt;U&gt;</a></li></ul></section><h2><a·href="index.html">In·alloc::collections::btree_map</a></h2></div></nav><div·class="sidebar-resizer"></div>1 <!DOCTYPE·html><html·lang="en"><head><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.write(`<link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../../static.files/SourceSerif4-Regular-46f98efaafac5295.ttf.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../../static.files/FiraSans-Regular-018c141bf0843ffd.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../../static.files/FiraSans-Medium-8f9a781e4970d388.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../../static.files/SourceCodePro-Regular-562dcc5011b6de7d.ttf.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../../static.files/SourceCodePro-Semibold-d899c5a5c4aeb14a.ttf.woff2">`)</script><link·rel="stylesheet"·href="../../../static.files/normalize-76eba96aa4d2e634.css"><link·rel="stylesheet"·href="../../../static.files/rustdoc-35f9e32502181f1e.css"><meta·name="rustdoc-vars"·data-root-path="../../../"·data-static-root-path="../../../static.files/"·data-current-crate="alloc"·data-themes=""·data-resource-suffix="1.78.0"·data-rustdoc-version="1.78.0"·data-channel="1.78.0"·data-search-js="search-42d8da7a6b9792c2.js"·data-settings-js="settings-4313503d2e1961c2.js"·><script·src="../../../static.files/storage-4c98445ec4002617.js"></script><script·defer·src="sidebar-items1.78.0.js"></script><script·defer·src="../../../static.files/main-12cf3b4f4f9dc36d.js"></script><noscript><link·rel="stylesheet"·href="../../../static.files/noscript-04d5337699b92874.css"></noscript><link·rel="alternate·icon"·type="image/png"·href="../../../static.files/favicon-16x16-8b506e7a72182f1c.png"><link·rel="alternate·icon"·type="image/png"·href="../../../static.files/favicon-32x32-422f7d1d52889060.png"><link·rel="icon"·type="image/svg+xml"·href="../../../static.files/favicon-2c020d218678b618.svg"></head><body·class="rustdoc·struct"><!--[if·lte·IE·11]><div·class="warning">This·old·browser·is·unsupported·and·will·most·likely·display·funky·things.</div><![endif]--><nav·class="mobile-topbar"><button·class="sidebar-menu-toggle"·title="show·sidebar"></button><a·class="logo-container"·href="../../../alloc/index.html"><img·class="rust-logo"·src="../../../static.files/rust-logo-151179464ae7ed46.svg"·alt=""></a></nav><nav·class="sidebar"><div·class="sidebar-crate"><a·class="logo-container"·href="../../../alloc/index.html"><img·class="rust-logo"·src="../../../static.files/rust-logo-151179464ae7ed46.svg"·alt="logo"></a><h2><a·href="../../../alloc/index.html">alloc</a><span·class="version">1.78.0</span></h2></div><h2·class="location"><a·href="#">ValuesMut</a></h2><div·class="sidebar-elems"><section><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">Debug</a></li><li><a·href="#impl-DoubleEndedIterator-for-ValuesMut%3C'a,+K,+V%3E">DoubleEndedIterator</a></li><li><a·href="#impl-ExactSizeIterator-for-ValuesMut%3C'_,+K,+V%3E">ExactSizeIterator</a></li><li><a·href="#impl-FusedIterator-for-ValuesMut%3C'_,+K,+V%3E">FusedIterator</a></li><li><a·href="#impl-Iterator-for-ValuesMut%3C'a,+K,+V%3E">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">!UnwindSafe</a></li><li><a·href="#impl-Freeze-for-ValuesMut%3C'a,+K,+V%3E">Freeze</a></li><li><a·href="#impl-RefUnwindSafe-for-ValuesMut%3C'a,+K,+V%3E">RefUnwindSafe</a></li><li><a·href="#impl-Send-for-ValuesMut%3C'a,+K,+V%3E">Send</a></li><li><a·href="#impl-Sync-for-ValuesMut%3C'a,+K,+V%3E">Sync</a></li><li><a·href="#impl-Unpin-for-ValuesMut%3C'a,+K,+V%3E">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">Any</a></li><li><a·href="#impl-Borrow%3CT%3E-for-T">Borrow&lt;T&gt;</a></li><li><a·href="#impl-BorrowMut%3CT%3E-for-T">BorrowMut&lt;T&gt;</a></li><li><a·href="#impl-From%3CT%3E-for-T">From&lt;T&gt;</a></li><li><a·href="#impl-Into%3CU%3E-for-T">Into&lt;U&gt;</a></li><li><a·href="#impl-IntoIterator-for-I">IntoIterator</a></li><li><a·href="#impl-TryFrom%3CU%3E-for-T">TryFrom&lt;U&gt;</a></li><li><a·href="#impl-TryInto%3CU%3E-for-T">TryInto&lt;U&gt;</a></li></ul></section><h2><a·href="index.html">In·alloc::collections::btree_map</a></h2></div></nav><div·class="sidebar-resizer"></div>
2 ····<main><div·class="width-limiter"><nav·class="sub"><form·class="search-form"><span></span><div·id="sidebar-button"·tabindex="-1"><a·href="../../../alloc/all.html"·title="show·sidebar"></a></div><input·class="search-input"·name="search"·aria-label="Run·search·in·the·documentation"·autocomplete="off"·spellcheck="false"·placeholder="Click·or·press·‘S’·to·search,·‘?’·for·more·options…"·type="search"><div·id="help-button"·tabindex="-1"><a·href="../../../help.html"·title="help">?</a></div><div·id="settings-menu"·tabindex="-1"><a·href="../../../settings.html"·title="settings"><img·width="22"·height="22"·alt="Change·settings"·src="../../../static.files/wheel-7b819b6101059cd0.svg"></a></div></form></nav><section·id="main-content"·class="content"><div·class="main-heading"><h1>Struct·<a·href="../../index.html">alloc</a>::<wbr><a·href="../index.html">collections</a>::<wbr><a·href="index.html">btree_map</a>::<wbr><a·class="struct"·href="#">ValuesMut</a><button·id="copy-path"·title="Copy·item·path·to·clipboard"><img·src="../../../static.files/clipboard-7571035ce49a181d.svg"·width="19"·height="18"·alt="Copy·item·path"></button></h1><span·class="out-of-band"><span·class="since"·title="Stable·since·Rust·version·1.10.0">1.10.0</span>···<a·class="src"·href="../../../src/alloc/collections/btree/map.rs.html#515-517">source</a>···<button·id="toggle-all-docs"·title="collapse·all·docs">[<span>&#x2212;</span>]</button></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 ····<main><div·class="width-limiter"><nav·class="sub"><form·class="search-form"><span></span><div·id="sidebar-button"·tabindex="-1"><a·href="../../../alloc/all.html"·title="show·sidebar"></a></div><input·class="search-input"·name="search"·aria-label="Run·search·in·the·documentation"·autocomplete="off"·spellcheck="false"·placeholder="Click·or·press·‘S’·to·search,·‘?’·for·more·options…"·type="search"><div·id="help-button"·tabindex="-1"><a·href="../../../help.html"·title="help">?</a></div><div·id="settings-menu"·tabindex="-1"><a·href="../../../settings.html"·title="settings"><img·width="22"·height="22"·alt="Change·settings"·src="../../../static.files/wheel-7b819b6101059cd0.svg"></a></div></form></nav><section·id="main-content"·class="content"><div·class="main-heading"><h1>Struct·<a·href="../../index.html">alloc</a>::<wbr><a·href="../index.html">collections</a>::<wbr><a·href="index.html">btree_map</a>::<wbr><a·class="struct"·href="#">ValuesMut</a><button·id="copy-path"·title="Copy·item·path·to·clipboard"><img·src="../../../static.files/clipboard-7571035ce49a181d.svg"·width="19"·height="18"·alt="Copy·item·path"></button></h1><span·class="out-of-band"><span·class="since"·title="Stable·since·Rust·version·1.10.0">1.10.0</span>···<a·class="src"·href="../../../src/alloc/collections/btree/map.rs.html#515-517">source</a>···<button·id="toggle-all-docs"·title="collapse·all·docs">[<span>&#x2212;</span>]</button></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>
3 <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·its3 <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
4 documentation·for·more.</p>4 documentation·for·more.</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-ValuesMut%3C'_,+K,+V%3E"·class="impl"><a·class="src·rightside"·href="../../../src/alloc/collections/btree/map.rs.html#520-524">source</a><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-DoubleEndedIterator-for-ValuesMut%3C'a,+K,+V%3E"·class="impl"><a·class="src·rightside"·href="../../../src/alloc/collections/btree/map.rs.html#2036-2040">source</a><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:·ad13ae92f92ac9e92fba46a0a411f4b4632dad632f7be03439fea9b554581678·...·]/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><h2·id="trait-implementations"·class="section-header">Trait·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"><a·class="src·rightside"·href="../../../src/alloc/collections/btree/map.rs.html#520-524">source</a><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-DoubleEndedIterator-for-ValuesMut%3C'a,+K,+V%3E"·class="impl"><a·class="src·rightside"·href="../../../src/alloc/collections/btree/map.rs.html#2036-2040">source</a><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.78.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:·f9a1bc52d7e74e91d2ae9b5d732aaf6276ecc286351ebf37e0600c0ddf30f832·...·]/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.78.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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(B,·Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.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.78.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.7[·...·truncated·by·diffoscope;·len:·3,·SHA:·7b1bd53949b752d143d871408483b5382371b5bc48d195d0c040ec93cfa2748b·...·]/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:·b3a5d6383debff0cac836c5889a757f11b019bc049778c518e60e4d37a3c4da1·...·]/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.78.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:·d66ed7e195a53e9945339ef1976aed455dcf80228d8e5b7b0c69a64c3983fea1·...·]/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.78.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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(B,·Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/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:·d11fd274e41827c1daee0c80a6ab5f978a613ab26297cb460535fef32cff8551·...·]/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.78.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:·c264047794019a6dcf05728ba6a6ee1f8f07c7209958b3366ba94546b527ecdc·...·]/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.78.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:·6831,·SHA:·de2621160b00cc57d44ba31e39037d9387df51edbfed1b46afc50d69bd65079e·...·]/core/primitive.usize.html">usize</a>&gt;(14 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·7575,·SHA:·d2bb5813381b017eccda162d859ad68dfa0d6379fb659253bd553056c39a1ea8·...·]/core/primitive.usize.html">usize</a>&gt;(
15 ····&amp;mut·self15 ····&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.78.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.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title=[·...·truncated·by·diffoscope;·len:·381,·SHA:·88c48923c9b7ea5cc47c1087c60e09656e81d4671c58071ba2bef826335388bc·...·]/core/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:·f7c1ca2ff3e425a8295c41d4d2fe540d4a3cb1e7032a9d04d8aed936964c71b6·...·]/core/primitive.usize.html">usize</a><div·class="where">where17 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></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:·89791450da70cbd536c3cf8fbf2dd9891668362f9a252d3ee098222d19960bae·...·]/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:·3049,·SHA:·00fcd590d49f9c95cf7e39437688efce9b3546bce88f836f82a8084a5cad4047·...·]/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.78.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:·5acc2bcc91ab2687c8137eaa20bd4287e0b901b846fa877b4a1d59df04bc4956·...·]/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.78.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:·4ac7445a1207207aeda1789f31c5036d8905fa206c83a58ca48662c081a68134·...·]/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.78.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:·e83c903581753673e083ce8dd809879a2fc81ab3050eb6db267d7fa26b15e035·...·]/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.78.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:·10378641f30fbaa3b3d8ba8984f91955195f5a0ddb70a41cc9ff99666b50a36f·...·]/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.78.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.78.0/core/iter/traits/it[·...·truncated·by·diffoscope;·len:·1329,·SHA:·d9299c8edc606ed82f24d61ce441bec451141d684c2a9a75074f5b19c57f196c·...·]/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.78.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:·b9001dd3131b1425179c94853e1b90fff0f7169b9570e86cd50c6b7fbf1ee8a5·...·]/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.78.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:·98627729f77dcf1c9d258f343354ba600b7134c6b3929080f231e8de7155b70b·...·]/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.78.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.78.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.78.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:·fa2a17b1aaf7dbc4e89f728d099c0a475adcd5ff79e4791795d7c4df5fc2ccec·...·]/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.78.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:·7301b6beba7b6885849be90a625df68ef739a5374af456c51fe2e81d91a25363·...·]/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.78.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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::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:·d75758e0f8262eeea27445cec43f13d84f0c02ba4e03c0c54d041f9ab1965e0f·...·]/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.78.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:·98f6effefa44d759c249143d83623f0055d937382bfc398b7e1f5e92cd413657·...·]/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.78.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:·9009d5c023150c1a97b2d18e30d176e7ff2e48673ad0e4665367958e752bf827·...·]/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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·916,·SHA:·30d0b2a76513c5a880e9aee43e92b18805845cfcfe5783f62dc090167a439e63·...·]/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.78.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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·140,·SHA:·752f473b57e7444ebfddf5ea7fd40a332e83ec55524a6c31b5ee0f82a5dea819·...·]/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:·7c1da0b93b40e2b4f823a0d24b5a27f092ffdb68175a9c14fe21a97d84bb2244·...·]/core/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.78.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:·76aa2ad154f88085ee3f8a22721a7e6812680bac785d19059532407f50da1801·...·]/core/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.78.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:·96005685f2d5bf532d7af03cf747a50bdbe5efffccc579afe197789e4cd44a54·...·]/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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·1052,·SHA:·110b47c7083083d565fcfc89337fddc8e5c87e81b2f720f3f7b0ded55e8500fb·...·]/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.78.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:·02bccd69f3cf4a08b24b66a0c9afb8ac49ebd0e9a7d5a183641b471189a35df3·...·]/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.78.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:·8464264e074dde5d84f0414ab3b5b2d8da83f3c9e3ca04c45458241580a8c80d·...·]/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.78.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.78.0/core/iter/adapte[·...·truncated·by·diffoscope;·len:·175,·SHA:·16fe7225bf05b478e2828b347c3d23ded9a22f89d8887a2c65d9f7b3faf1b0e7·...·]/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:·60d233d0587f535c8bae5118522baa81ef2524d4168f9e142529a37902d8e8c4·...·]/core/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.78.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:·00ccbb673c11ed48d8c6aa2a3f8984fb298202e7bccfa42f1ac21290fcc0fb06·...·]/core/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.78.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:·0900235f7b60bdd90fbf9718324068ecf230199603f19da2c38cad64ed6915ff·...·]/core/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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·1234,·SHA:·3b805567411cdcebed740f9e8d400dbe7fb487504f40e284544a140155090fdf·...·]/core/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.78.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:·552b3dd2132886d024e4d5bd2554611e25c1f068adaaf23ecf80da81d31997ef·...·]/core/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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·1058,·SHA:·b390dbdda8d7e93604b5ecd906a93efd03fe19bdaf41cf12893fd361bf974307·...·]/core/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.78.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:·491a83328e39b23cf5191ed5cb6bf83f1a62c9405ed5c39c58117b227b39b16c·...·]/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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·1163,·SHA:·5772149166d344bf8fa5ebbd9db8693a8f2e5f031c50338e8f1523ef72f814d6·...·]/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:·e62b3f87b06b061e799e72ab8f04c531f1c6f241266260eaab33ea2b793dd8d2·...·]/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.78.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:·6216516fe581c401abda3c95818192e8f030e2008c9bbdbaafebba16f33ea9bd·...·]/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.78.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:·7d73eca41cdb0c170bd03419f3563f3fe9e70e11494db546e781d302d3cd5636·...·]/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.78.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:·485843399c56e24bdf020ff0610d0ce1f62fbac5530d9880a1a7417105e3d70f·...·]/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.78.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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(<a·class="primitive"·href="https://doc.rust-lang.org/1.78.0/core/primitive.reference.html">&amp;mut·St</a>,·Self::<a·class="associatedty[·...·truncated·by·diffoscope;·len:·449,·SHA:·f12c268a8a8111b9e7126ad78bf5523a63733caa63d187c4fe792309ea41acdf·...·]/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:·02034aae893b799fa017b2d71546332d96a823cd4ba05c14089559819f3dd720·...·]/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.78.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.78.0/core/iter/trai[·...·truncated·by·diffoscope;·len:·690,·SHA:·371190e5c1bf9b7dde6e84447965a69946212b977b9eb6d89048fbe34c5dda1c·...·]/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.78.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.78.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:·4d1f54658fd1c005b101a2e27b0da3c6ee0cbe2d891660c65470bfec01fa46f6·...·]/core/iter/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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·976,·SHA:·2a9182f6fe88e0b8a9b1ae1f46cace940cc0b8736033c354c0f0ccbf1c196e7a·...·]/core/iter/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.78.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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;[Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtyp[·...·truncated·by·diffoscope;·len:·135,·SHA:·0b06a6094d42ccbc8bce5b01c4383961fe7f1967f05e4c9f1ff33e71e425fb26·...·]/core/primitive.array.html">N</a>])·-&gt;·R,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iter_map_windows</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/87155">#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.78.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:·d83146d48347da8e04ce6fcac96b0b1500203504f596d32c16a5a1493dd375e1·...·]/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.78.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:·0d33056cee8a4f9b70b573c0adecc2f3599a2f8d9fa9f2c2044e9118ab134f73·...·]/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:·e9288f8d879e78d7e79eb2c4255eb99308efd98061b1221968fb17de11019b2e·...·]/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.78.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.78.0/core/op[·...·truncated·by·diffoscope;·len:·841,·SHA:·9cba1b175fb3726d7f1f01da9be7c1a56568a68e4ce7915a468b730902daf8d3·...·]/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.78.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:·790,·SHA:·19293cf7305d77d7ccd51618427cff5e3edb06f162c23796ed392e0ac792f65e·...·]/core/primitive.reference.html">&amp;mut·Self</a><div·class="where">where64 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·934,·SHA:·ea20d2e0fe9388580ea08100baa9120b5e9b6cb48f43fc846f15db8b9649e7f6·...·]/core/primitive.reference.html">&amp;mut·Self</a><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:·cf371b2193fdcddf87cfe994db4d3e364336bb766b15dcfdd0ac7aabbd72e715·...·]/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.78.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.78.0/core/it[·...·truncated·by·diffoscope;·len:·523,·SHA:·97064c705f6f4bdf74469c54fabcf580d21893127d1b4cd9a9c1018a717ef153·...·]/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.78.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.78.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:·d76c3fcf86c63211032a6b22dc5924ef552b1ad26b12e19f15d2f1d5b3d7e394·...·]/core/primitive.reference.html">&amp;mut·E</a><div·class="where">where67 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.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.78.0/core/iter/tr[·...·truncated·by·diffoscope;·len:·728,·SHA:·01937c2dc314c259495665570ae249c94b4a5b0719718f5f1188e6fc64ecf487·...·]/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.78.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.78.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:·fa6f33be71e9184cfecc555b0b832d1a929285d35b47b1212b2176ac555731a1·...·]/core/primitive.tuple.html">(B,·B)</a><div·class="where">where69 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></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:·00bd47017b1bdd1bbe2c3fc932d955a8aa2f7f5eff8c00e3001ae28a982a5883·...·]/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.78.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.78.0/core/default/trait.Default.html"·title="trait·core::default::Default">Default</a>·+·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/collect/trait.Extend.html"·title="trait·core::iter::traits::collec[·...·truncated·by·diffoscope;·len:·95,·SHA:·8b3be1d0042cae0550f865faf5849221240bdf04eb1b2107605b72d48c3ad29c·...·]/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:·281bbd5137cae68dd8057d013e9c9f311461e746663120304e3f6adace77f784·...·]/core/primitive.usize.html">usize</a><div·class="where">where72 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·995,·SHA:·bec3765fdab56713186e2454cd84738b5b28e3280a2f3d5a25cefdbc3089b520·...·]/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.78.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>·+·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/double_ended/trait.DoubleEndedIterator.html"·title="trait·core::iter::trai[·...·truncated·by·diffoscope;·len:·132,·SHA:·e5b2cf5f56946ede1e190ed09879c5821e2de04cf8e5d145142eeb40c6340982·...·]/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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(<a·class="primitive"·href="https://doc.rust-lang.org/1.78.0/core/primitive.reference.html">&amp;T</a>)·-&gt;·<a·class="primitive"·href="[·...·truncated·by·diffoscope;·len:·32,·SHA:·63d052a8ced32bf927ffadd7e884c08caf4970e85dfdf6be0e568d49b174da96·...·]/core/primitive.bool.html">bool</a>,</div></h4></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:·dc6a465df534b0392c5280e79e5249847890045561099b2cfc44bfabc4801d8d·...·]/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.78.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:·0c224636c18baa273f69de21f90083317f2ea0b7367a3f0d0f1c0ace55a36f79·...·]/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.78.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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·135,·SHA:·51ff5f5c7ebd8440623ea71b125c5a5837e809e308fe1a13fbe19cddb941dbd9·...·]/core/primitive.bool.html">bool</a>,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iter_is_partitioned</code>&nbsp;<a·href="https://github.com/rust-lang/rust/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:·bd8fce4ee431c619c98780c4d520e8db93f1e034f12843ffaff5744b7ce2190b·...·]/core/iter/traits/iterator/trait.Iterator.html#method.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.78.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:·2c74873f4e5ba70004a1c7edd1cc3f9e2d91271295dd1591e2d26848df4c02ba·...·]/core/iter/traits/iterator/trait.Iterator.html#method.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.78.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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(B,·Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.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.78.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:·7b4fc32e7634ae85c682a97099be267837713d7e4831893b617ca652f57a89da·...·]/core/iter/traits/iterator/trait.Iterator.html#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.78.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:·52912e82c4b0a760d06f77eb4ee3a59ba70dd76cb532954900c73ae94c652674·...·]/core/iter/traits/iterator/trait.Iterator.html#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.78.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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.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.78.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.78.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:·5cfb1ce7ac10ff40c8d1d0f019b60fc4735736254c2d8357ed62287e51b1ac32·...·]/core/iter/traits/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.78.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:·1d6c4809cea8748e901d3f94777f450d430f3161f6ac05ed1c178d9327f966a3·...·]/core/iter/traits/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.78.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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(B,·Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::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:·2c738ecc68200afa2467bef085de14dcb642dbaac77c4529948f5e259e66691d·...·]/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.78.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:·b60215068a6d9721be05f81098c51167d7138c4042f140cad42f77c4df43f597·...·]/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.78.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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·352,·SHA:·e7c3c296abe2c0a183967153e4ae7fd50bafa2ae7088e3e78b3b48fee253adc6·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::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:·c3f1d50e276def36966943119961a20b09cab3be33483fe4d48d7f322489534b·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_reduce"·class="fn">try_reduce</a>&lt;F,·R&gt;(94 operation.·<a·href="https://doc.rust-lang.org/1.78.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:·7a18fdd041b1a001b4a8feb289ee127fd9240232239269eb35dc3b8f74783ec9·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_reduce"·class="fn">try_reduce</a>&lt;F,·R&gt;(
95 ····&amp;mut·self,95 ····&amp;mut·self,
96 ····f:·F96 ····f:·F
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.78.0/core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&gt;::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/ops/try_trait/trait.Try.html#associatedtype.Residual"·title="type[·...·truncated·by·diffoscope;·len:·754,·SHA:·6fb4dfdb6b4da68921c1e7f8b75d99cf293d58318d684a840254ce9576957bea·...·]/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.78.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::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:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·140,·SHA:·c27972e6fa3464c9476eaa185e8657edb6bb294f148403f3d079285294a9f909·...·]/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·=·Self::<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.78.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.78.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.78.0/core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&gt;::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/ops/try_trait/trait.Try.html#associatedtype.Residual"·title="type[·...·truncated·by·diffoscope;·len:·412,·SHA:·22b8cbb007e5cce82b9d13a65bfa56aa8d83c32541fac25f4d9b3857b0540908·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;&gt;,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iterator_try_reduce</code>&nbsp;<a·href="https://github.com/rust-lang/rust/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:·1a00be8efe0263bc0d09f5d47be04890b1d27a20c3429d1f4531805a03591fdb·...·]/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.78.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:·bc0d658d56e348823de15386e1cd4ab49109f3a7a055a4573a19391b47071193·...·]/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.78.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:·c15cbdf9d3f54700b6eac2f717541f7f5a3cf811d73f48ef7118096c1a240102·...·]/core/primitive.bool.html">bool</a><div·class="where">where104 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·1018,·SHA:·e61cd6bdd36729cc38e57fcaea2ccb91a23a5acbda3c8986071f19bf1ecfc52a·...·]/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.78.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:·80fef1533a0c8783ee74be0f29290d7dec960bcd19223b11639b3e6377220faa·...·]/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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·1172,·SHA:·e64ab74d116d286191ad43d9d9e10411fc011c23724aa806e9a8f9b0be0757e3·...·]/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.78.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:·f441e2966ff8db4214e57fcd74f81262d6e371aa51cea97ebde5921e81b4da79·...·]/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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·1051,·SHA:·ecc0b8fccd861464760f9ae047ff6ab98c91a1db010cb5fa59a8c2ab883db7c4·...·]/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.78.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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·130,·SHA:·130a13019dc175d02304b4f550157e2f13ac15c2f25a979c74161d10b146ab89·...·]/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:·ec4fb002625b166504031522e52a66812b279e6735a67cb718813205909c3fb7·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_find"·class="fn">try_find</a>&lt;F,·R&gt;(111 the·first·non-none·result.·<a·href="https://doc.rust-lang.org/1.78.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:·8ced1b10e78750774c5c8ed995ed83dcd13983aa75d329acf8069da106ab9f4a·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_find"·class="fn">try_find</a>&lt;F,·R&gt;(
112 ····&amp;mut·self,112 ····&amp;mut·self,
113 ····f:·F113 ····f:·F
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.78.0/core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&gt;::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/ops/try_trait/trait.Try.html#associatedtype.Residual"·title="type[·...·truncated·by·diffoscope;·len:·626,·SHA:·95f9831257b68862cbcbf54f0ad2ff4e597a4c9f763112d1da8a0897dadcf872·...·]/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.78.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;·R,116 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·R,
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.78.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.78.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.78.0/core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&gt;::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/ops/try_trait/trait.Try.html#associatedtype.Residual"·title="type[·...·truncated·by·diffoscope;·len:·412,·SHA:·22b8cbb007e5cce82b9d13a65bfa56aa8d83c32541fac25f4d9b3857b0540908·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;&gt;,</div></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.78.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:·fa9d94b216f6e4ce6035b4762e3bf17cb86a0272db0a55a056f05c68bcaeb0da·...·]/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.78.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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·1189,·SHA:·5d7c1922225f55c116c958103921a86cb5416f658d19ceb4428fb21528622af5·...·]/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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·135,·SHA:·51ff5f5c7ebd8440623ea71b125c5a5837e809e308fe1a13fbe19cddb941dbd9·...·]/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.78.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>·+·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/exact_size/trait.ExactSizeIterator.html"·title="trait·core::iter::traits::[·...·truncated·by·diffoscope;·len:·110,·SHA:·a8846fff2831d0de2de7dbb91c4e50f6f60fac276813cbaa471bf32fb45120d4·...·]/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.78.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:·c876e8603f9248b122c6d4a7db3091b70f098f834ba7b3112a8b68d5e7ade3ed·...·]/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.78.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.78.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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/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; 79933/303538 bytes (26.33%) of diff not shown.
246 KB
./usr/share/doc/rust-web-doc/html/alloc/collections/btree_set/struct.BTreeSet.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·ordered·set·based·on·a·B-Tree."><title>BTreeSet·in·alloc::collections::btree_set·-·Rust</title><script>·if·(window.location.protocol·!==·"file:")·document.write(`<link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../../static.files/SourceSerif4-Regular-46f98efaafac5295.ttf.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../../static.files/FiraSans-Regular-018c141bf0843ffd.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../../static.files/FiraSans-Medium-8f9a781e4970d388.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../../static.files/SourceCodePro-Regular-562dcc5011b6de7d.ttf.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../../static.files/SourceCodePro-Semibold-d899c5a5c4aeb14a.ttf.woff2">`)</script><link·rel="stylesheet"·href="../../../static.files/normalize-76eba96aa4d2e634.css"><link·rel="stylesheet"·href="../../../static.files/rustdoc-35f9e32502181f1e.css"><meta·name="rustdoc-vars"·data-root-path="../../../"·data-static-root-path="../../../static.files/"·data-current-crate="alloc"·data-themes=""·data-resource-suffix="1.78.0"·data-rustdoc-version="1.78.0"·data-channel="1.78.0"·data-search-js="search-42d8da7a6b9792c2.js"·data-settings-js="settings-4313503d2e1961c2.js"·><script·src="../../../static.files/storage-4c98445ec4002617.js"></script><script·defer·src="sidebar-items1.78.0.js"></script><script·defer·src="../../../static.files/main-12cf3b4f4f9dc36d.js"></script><noscript><link·rel="stylesheet"·href="../../../static.files/noscript-04d5337699b92874.css"></noscript><link·rel="alternate·icon"·type="image/png"·href="../../../static.files/favicon-16x16-8b506e7a72182f1c.png"><link·rel="alternate·icon"·type="image/png"·href="../../../static.files/favicon-32x32-422f7d1d52889060.png"><link·rel="icon"·type="image/svg+xml"·href="../../../static.files/favicon-2c020d218678b618.svg"></head><body·class="rustdoc·struct"><!--[if·lte·IE·11]><div·class="warning">This·old·browser·is·unsupported·and·will·most·likely·display·funky·things.</div><![endif]--><nav·class="mobile-topbar"><button·class="sidebar-menu-toggle"·title="show·sidebar"></button><a·class="logo-container"·href="../../../alloc/index.html"><img·class="rust-logo"·src="../../../static.files/rust-logo-151179464ae7ed46.svg"·alt=""></a></nav><nav·class="sidebar"><div·class="sidebar-crate"><a·class="logo-container"·href="../../../alloc/index.html"><img·class="rust-logo"·src="../../../static.files/rust-logo-151179464ae7ed46.svg"·alt="logo"></a><h2><a·href="../../../alloc/index.html">alloc</a><span·class="version">1.78.0</span></h2></div><h2·class="location"><a·href="#">BTreeSet</a></h2><div·class="sidebar-elems"><section><h3><a·href="#implementations">Methods</a></h3><ul·class="block·method"><li><a·href="#method.append">append</a></li><li><a·href="#method.clear">clear</a></li><li><a·href="#method.contains">contains</a></li><li><a·href="#method.difference">difference</a></li><li><a·href="#method.extract_if">extract_if</a></li><li><a·href="#method.first">first</a></li><li><a·href="#method.get">get</a></li><li><a·href="#method.insert">insert</a></li><li><a·href="#method.intersection">intersection</a></li><li><a·href="#method.is_disjoint">is_disjoint</a></li><li><a·href="#method.is_empty">is_empty</a></li><li><a·href="#method.is_subset">is_subset</a></li><li><a·href="#method.is_superset">is_superset</a></li><li><a·href="#method.iter">iter</a></li><li><a·href="#method.last">last</a></li><li><a·href="#method.len">len</a></li><li><a·href="#method.new">new</a></li><li><a·href="#method.new_in">new_in</a></li><li><a·href="#method.pop_first">pop_first</a></li><li><a·href="#method.pop_last">pop_last</a></li><li><a·href="#method.range">range</a></li><li><a·href="#method.remove">remove</a></li><li><a·href="#method.replace">replace</a></li><li><a·href="#method.retain">retain</a></li><li><a·href="#method.split_off">split_off</a></li><li><a·href="#method.symmetric_difference">symmetric_difference</a></li><li><a·href="#method.take">take</a></li><li><a·href="#method.union">union</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">BitAnd&lt;&amp;BTreeSet&lt;T,·A&gt;&gt;</a></li><li><a·href="#impl-BitOr%3C%26BTreeSet%3CT,+A%3E%3E-for-%26BTreeSet%3CT,+A%3E">BitOr&lt;&amp;BTreeSet&lt;T,·A&gt;&gt;</a></li><li><a·href="#impl-BitXor%3C%26BTreeSet%3CT,+A%3E%3E-for-%26BTreeSet%3CT,+A%3E">BitXor&lt;&amp;BTreeSet&lt;T,·A&gt;&gt;</a></li><li><a·href="#impl-Clone-for-BTreeSet%3CT,+A%3E">Clone</a></li><li><a·href="#impl-Debug-for-BTreeSet%3CT,+A%3E">Debug</a></li><li><a·href="#impl-Default-for-BTreeSet%3CT%3E">Default</a></li><li><a·href="#impl-Eq-for-BTreeSet%3CT,+A%3E">Eq</a></li><li><a·href="#impl-Extend%3C%26T%3E-for-BTreeSet%3CT,+A%3E">Extend&lt;&amp;&#x27;a·T&gt;</a></li><li><a·href="#impl-Extend%3CT%3E-for-BTreeSet%3CT,+A%3E">Extend&lt;T&gt;</a></li><li><a·href="#impl-From%3C%5BT;+N%5D%3E-for-BTreeSet%3CT%3E">From&lt;[T;·N]&gt;</a></li><li><a·href="#impl-FromIterator%3CT%3E-for-BTreeSet%3CT%3E">FromIterator&lt;T&gt;</a></li><li><a·href="#impl-Hash-for-BTreeSet%3CT,+A%3E">Hash</a></li><li><a·href="#impl-IntoIterator-for-%26BTreeSet%3CT,+A%3E">IntoIterator</a></li><li><a·href="#impl-IntoIterator-for-BTreeSet%3CT,+A%3E">IntoIterator</a></li><li><a·href="#impl-Ord-for-BTreeSet%3CT,+A%3E">Ord</a></li><li><a·href="#impl-PartialEq-for-BTreeSet%3CT,+A%3E">PartialEq</a></li><li><a·href="#impl-PartialOrd-for-BTreeSet%3CT,+A%3E">PartialOrd</a></li><li><a·href="#impl-Sub%3C%26BTreeSet%3CT,+A%3E%3E-for-%26BTreeSet%3CT,+A%3E">Sub&lt;&amp;BTreeSet&lt;T,·A&gt;&gt;</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">Freeze</a></li><li><a·href="#impl-RefUnwindSafe-for-BTreeSet%3CT,+A%3E">RefUnwindSafe</a></li><li><a·href="#impl-Send-for-BTreeSet%3CT,+A%3E">Send</a></li><li><a·href="#impl-Sync-for-BTreeSet%3CT,+A%3E">Sync</a></li><li><a·href="#impl-Unpin-for-BTreeSet%3CT,+A%3E">Unpin</a></li><li><a·href="#impl-UnwindSafe-for-BTreeSet%3CT,+A%3E">UnwindSafe</a></li></ul><h3><a·href="#blanket-implementations">Blanket·Implementations</a></h3><ul·class="block·blanket-implementation"><li><a·href="#impl-Any-for-T">Any</a></li><li><a·href="#impl-Borrow%3CT%3E-for-T">Borrow&lt;T&gt;</a></li><li><a·href="#impl-BorrowMut%3CT%3E-for-T">BorrowMut&lt;T&gt;</a></li><li><a·href="#impl-From%3CT%3E-for-T">From&lt;T&gt;</a></li><li><a·href="#impl-Into%3CU%3E-for-T">Into&lt;U&gt;</a></li><li><a·href="#impl-ToOwned-for-T">ToOwned</a></li><li><a·href="#impl-TryFrom%3CU%3E-for-T">TryFrom&lt;U&gt;</a></li><li><a·href="#impl-TryInto%3CU%3E-for-T">TryInto&lt;U&gt;</a></li></ul></section><h2><a·href="index.html">In·alloc::collections::btree_set</a></h2></div></nav><div·class="sidebar-resizer"></div>1 <!DOCTYPE·html><html·lang="en"><head><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.write(`<link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../../static.files/SourceSerif4-Regular-46f98efaafac5295.ttf.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../../static.files/FiraSans-Regular-018c141bf0843ffd.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../../static.files/FiraSans-Medium-8f9a781e4970d388.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../../static.files/SourceCodePro-Regular-562dcc5011b6de7d.ttf.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../../static.files/SourceCodePro-Semibold-d899c5a5c4aeb14a.ttf.woff2">`)</script><link·rel="stylesheet"·href="../../../static.files/normalize-76eba96aa4d2e634.css"><link·rel="stylesheet"·href="../../../static.files/rustdoc-35f9e32502181f1e.css"><meta·name="rustdoc-vars"·data-root-path="../../../"·data-static-root-path="../../../static.files/"·data-current-crate="alloc"·data-themes=""·data-resource-suffix="1.78.0"·data-rustdoc-version="1.78.0"·data-channel="1.78.0"·data-search-js="search-42d8da7a6b9792c2.js"·data-settings-js="settings-4313503d2e1961c2.js"·><script·src="../../../static.files/storage-4c98445ec4002617.js"></script><script·defer·src="sidebar-items1.78.0.js"></script><script·defer·src="../../../static.files/main-12cf3b4f4f9dc36d.js"></script><noscript><link·rel="stylesheet"·href="../../../static.files/noscript-04d5337699b92874.css"></noscript><link·rel="alternate·icon"·type="image/png"·href="../../../static.files/favicon-16x16-8b506e7a72182f1c.png"><link·rel="alternate·icon"·type="image/png"·href="../../../static.files/favicon-32x32-422f7d1d52889060.png"><link·rel="icon"·type="image/svg+xml"·href="../../../static.files/favicon-2c020d218678b618.svg"></head><body·class="rustdoc·struct"><!--[if·lte·IE·11]><div·class="warning">This·old·browser·is·unsupported·and·will·most·likely·display·funky·things.</div><![endif]--><nav·class="mobile-topbar"><button·class="sidebar-menu-toggle"·title="show·sidebar"></button><a·class="logo-container"·href="../../../alloc/index.html"><img·class="rust-logo"·src="../../../static.files/rust-logo-151179464ae7ed46.svg"·alt=""></a></nav><nav·class="sidebar"><div·class="sidebar-crate"><a·class="logo-container"·href="../../../alloc/index.html"><img·class="rust-logo"·src="../../../static.files/rust-logo-151179464ae7ed46.svg"·alt="logo"></a><h2><a·href="../../../alloc/index.html">alloc</a><span·class="version">1.78.0</span></h2></div><h2·class="location"><a·href="#">BTreeSet</a></h2><div·class="sidebar-elems"><section><h3><a·href="#implementations">Methods</a></h3><ul·class="block·method"><li><a·href="#method.append">append</a></li><li><a·href="#method.clear">clear</a></li><li><a·href="#method.contains">contains</a></li><li><a·href="#method.difference">difference</a></li><li><a·href="#method.extract_if">extract_if</a></li><li><a·href="#method.first">first</a></li><li><a·href="#method.get">get</a></li><li><a·href="#method.insert">insert</a></li><li><a·href="#method.intersection">intersection</a></li><li><a·href="#method.is_disjoint">is_disjoint</a></li><li><a·href="#method.is_empty">is_empty</a></li><li><a·href="#method.is_subset">is_subset</a></li><li><a·href="#method.is_superset">is_superset</a></li><li><a·href="#method.iter">iter</a></li><li><a·href="#method.last">last</a></li><li><a·href="#method.len">len</a></li><li><a·href="#method.new">new</a></li><li><a·href="#method.new_in">new_in</a></li><li><a·href="#method.pop_first">pop_first</a></li><li><a·href="#method.pop_last">pop_last</a></li><li><a·href="#method.range">range</a></li><li><a·href="#method.remove">remove</a></li><li><a·href="#method.replace">replace</a></li><li><a·href="#method.retain">retain</a></li><li><a·href="#method.split_off">split_off</a></li><li><a·href="#method.symmetric_difference">symmetric_difference</a></li><li><a·href="#method.take">take</a></li><li><a·href="#method.union">union</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">BitAnd&lt;&amp;BTreeSet&lt;T,·A&gt;&gt;</a></li><li><a·href="#impl-BitOr%3C%26BTreeSet%3CT,+A%3E%3E-for-%26BTreeSet%3CT,+A%3E">BitOr&lt;&amp;BTreeSet&lt;T,·A&gt;&gt;</a></li><li><a·href="#impl-BitXor%3C%26BTreeSet%3CT,+A%3E%3E-for-%26BTreeSet%3CT,+A%3E">BitXor&lt;&amp;BTreeSet&lt;T,·A&gt;&gt;</a></li><li><a·href="#impl-Clone-for-BTreeSet%3CT,+A%3E">Clone</a></li><li><a·href="#impl-Debug-for-BTreeSet%3CT,+A%3E">Debug</a></li><li><a·href="#impl-Default-for-BTreeSet%3CT%3E">Default</a></li><li><a·href="#impl-Eq-for-BTreeSet%3CT,+A%3E">Eq</a></li><li><a·href="#impl-Extend%3C%26T%3E-for-BTreeSet%3CT,+A%3E">Extend&lt;&amp;&#x27;a·T&gt;</a></li><li><a·href="#impl-Extend%3CT%3E-for-BTreeSet%3CT,+A%3E">Extend&lt;T&gt;</a></li><li><a·href="#impl-From%3C%5BT;+N%5D%3E-for-BTreeSet%3CT%3E">From&lt;[T;·N]&gt;</a></li><li><a·href="#impl-FromIterator%3CT%3E-for-BTreeSet%3CT%3E">FromIterator&lt;T&gt;</a></li><li><a·href="#impl-Hash-for-BTreeSet%3CT,+A%3E">Hash</a></li><li><a·href="#impl-IntoIterator-for-%26BTreeSet%3CT,+A%3E">IntoIterator</a></li><li><a·href="#impl-IntoIterator-for-BTreeSet%3CT,+A%3E">IntoIterator</a></li><li><a·href="#impl-Ord-for-BTreeSet%3CT,+A%3E">Ord</a></li><li><a·href="#impl-PartialEq-for-BTreeSet%3CT,+A%3E">PartialEq</a></li><li><a·href="#impl-PartialOrd-for-BTreeSet%3CT,+A%3E">PartialOrd</a></li><li><a·href="#impl-Sub%3C%26BTreeSet%3CT,+A%3E%3E-for-%26BTreeSet%3CT,+A%3E">Sub&lt;&amp;BTreeSet&lt;T,·A&gt;&gt;</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">Freeze</a></li><li><a·href="#impl-RefUnwindSafe-for-BTreeSet%3CT,+A%3E">RefUnwindSafe</a></li><li><a·href="#impl-Send-for-BTreeSet%3CT,+A%3E">Send</a></li><li><a·href="#impl-Sync-for-BTreeSet%3CT,+A%3E">Sync</a></li><li><a·href="#impl-Unpin-for-BTreeSet%3CT,+A%3E">Unpin</a></li><li><a·href="#impl-UnwindSafe-for-BTreeSet%3CT,+A%3E">UnwindSafe</a></li></ul><h3><a·href="#blanket-implementations">Blanket·Implementations</a></h3><ul·class="block·blanket-implementation"><li><a·href="#impl-Any-for-T">Any</a></li><li><a·href="#impl-Borrow%3CT%3E-for-T">Borrow&lt;T&gt;</a></li><li><a·href="#impl-BorrowMut%3CT%3E-for-T">BorrowMut&lt;T&gt;</a></li><li><a·href="#impl-From%3CT%3E-for-T">From&lt;T&gt;</a></li><li><a·href="#impl-Into%3CU%3E-for-T">Into&lt;U&gt;</a></li><li><a·href="#impl-ToOwned-for-T">ToOwned</a></li><li><a·href="#impl-TryFrom%3CU%3E-for-T">TryFrom&lt;U&gt;</a></li><li><a·href="#impl-TryInto%3CU%3E-for-T">TryInto&lt;U&gt;</a></li></ul></section><h2><a·href="index.html">In·alloc::collections::btree_set</a></h2></div></nav><div·class="sidebar-resizer"></div>
2 ····<main><div·class="width-limiter"><nav·class="sub"><form·class="search-form"><span></span><div·id="sidebar-button"·tabindex="-1"><a·href="../../../alloc/all.html"·title="show·sidebar"></a></div><input·class="search-input"·name="search"·aria-label="Run·search·in·the·documentation"·autocomplete="off"·spellcheck="false"·placeholder="Click·or·press·‘S’·to·search,·‘?’·for·more·options…"·type="search"><div·id="help-button"·tabindex="-1"><a·href="../../../help.html"·title="help">?</a></div><div·id="settings-menu"·tabindex="-1"><a·href="../../../settings.html"·title="settings"><img·width="22"·height="22"·alt="Change·settings"·src="../../../static.files/wheel-7b819b6101059cd0.svg"></a></div></form></nav><section·id="main-content"·class="content"><div·class="main-heading"><h1>Struct·<a·href="../../index.html">alloc</a>::<wbr><a·href="../index.html">collections</a>::<wbr><a·href="index.html">btree_set</a>::<wbr><a·class="struct"·href="#">BTreeSet</a><button·id="copy-path"·title="Copy·item·path·to·clipboard"><img·src="../../../static.files/clipboard-7571035ce49a181d.svg"·width="19"·height="18"·alt="Copy·item·path"></button></h1><span·class="out-of-band"><span·class="since"·title="Stable·since·Rust·version·1.0.0">1.0.0</span>···<a·class="src"·href="../../../src/alloc/collections/btree/set.rs.html#75-80">source</a>···<button·id="toggle-all-docs"·title="collapse·all·docs">[<span>&#x2212;</span>]</button></span></div><pre·class="rust·item-decl"><code>pub·struct·BTreeSet&lt;T,·A:·<a·class="trait"·href="../../alloc/trait.Allocator.html"·title="trait·alloc::alloc::Allocator">Allocator</a>·+·<a·class="trait"·href="../../../core/clone/trait.Clone.html"·title="trait·core::clone::Clone">Clone</a>·=·<a·class="struct"·href="../../alloc/struct.Global.html"·title="struct·alloc::alloc::Global">Global</a>&gt;·{·<span·class="comment">/*·private·fields·*/</span>·}</code></pre><details·class="toggle·top-doc"·open><summary·class="hideme"><span>Expand·description</span></summary><div·class="docblock"><p>An·ordered·set·based·on·a·B-Tree.</p>2 ····<main><div·class="width-limiter"><nav·class="sub"><form·class="search-form"><span></span><div·id="sidebar-button"·tabindex="-1"><a·href="../../../alloc/all.html"·title="show·sidebar"></a></div><input·class="search-input"·name="search"·aria-label="Run·search·in·the·documentation"·autocomplete="off"·spellcheck="false"·placeholder="Click·or·press·‘S’·to·search,·‘?’·for·more·options…"·type="search"><div·id="help-button"·tabindex="-1"><a·href="../../../help.html"·title="help">?</a></div><div·id="settings-menu"·tabindex="-1"><a·href="../../../settings.html"·title="settings"><img·width="22"·height="22"·alt="Change·settings"·src="../../../static.files/wheel-7b819b6101059cd0.svg"></a></div></form></nav><section·id="main-content"·class="content"><div·class="main-heading"><h1>Struct·<a·href="../../index.html">alloc</a>::<wbr><a·href="../index.html">collections</a>::<wbr><a·href="index.html">btree_set</a>::<wbr><a·class="struct"·href="#">BTreeSet</a><button·id="copy-path"·title="Copy·item·path·to·clipboard"><img·src="../../../static.files/clipboard-7571035ce49a181d.svg"·width="19"·height="18"·alt="Copy·item·path"></button></h1><span·class="out-of-band"><span·class="since"·title="Stable·since·Rust·version·1.0.0">1.0.0</span>···<a·class="src"·href="../../../src/alloc/collections/btree/set.rs.html#75-80">source</a>···<button·id="toggle-all-docs"·title="collapse·all·docs">[<span>&#x2212;</span>]</button></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.78.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>
3 <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·performance3 <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
4 benefits·and·drawbacks.</p>4 benefits·and·drawbacks.</p>
5 <p>It·is·a·logic·error·for·an·item·to·be·modified·in·such·a·way·that·the·item’s·ordering·relative5 <p>It·is·a·logic·error·for·an·item·to·be·modified·in·such·a·way·that·the·item’s·ordering·relative
6 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·is6 to·any·other·item,·as·determined·by·the·<a·href="https://doc.rust-lang.org/1.78.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
7 normally·only·possible·through·<a·href="../../../core/cell/struct.Cell.html"·title="struct·core::cell::Cell"><code>Cell</code></a>,·<a·href="../../../core/cell/struct.RefCell.html"·title="struct·core::cell::RefCell"><code>RefCell</code></a>,·global·state,·I/O,·or·unsafe·code.7 normally·only·possible·through·<a·href="https://doc.rust-lang.org/1.78.0/core/cell/struct.Cell.html"·title="struct·core::cell::Cell"><code>Cell</code></a>,·<a·href="https://doc.rust-lang.org/1.78.0/core/cell/struct.RefCell.html"·title="struct·core::cell::RefCell"><code>RefCell</code></a>,·global·state,·I/O,·or·unsafe·code.
8 The·behavior·resulting·from·such·a·logic·error·is·not·specified,·but·will·be·encapsulated·to·the8 The·behavior·resulting·from·such·a·logic·error·is·not·specified,·but·will·be·encapsulated·to·the
9 <code>BTreeSet</code>·that·observed·the·logic·error·and·not·result·in·undefined·behavior.·This·could9 <code>BTreeSet</code>·that·observed·the·logic·error·and·not·result·in·undefined·behavior.·This·could
10 include·panics,·incorrect·results,·aborts,·memory·leaks,·and·non-termination.</p>10 include·panics,·incorrect·results,·aborts,·memory·leaks,·and·non-termination.</p>
11 <p>Iterators·returned·by·<a·href="struct.BTreeSet.html#method.iter"·title="method·alloc::collections::btree_set::BTreeSet::iter"><code>BTreeSet::iter</code></a>·produce·their·items·in·order,·and·take·worst-case11 <p>Iterators·returned·by·<a·href="struct.BTreeSet.html#method.iter"·title="method·alloc::collections::btree_set::BTreeSet::iter"><code>BTreeSet::iter</code></a>·produce·their·items·in·order,·and·take·worst-case
12 logarithmic·and·amortized·constant·time·per·item·returned.</p>12 logarithmic·and·amortized·constant·time·per·item·returned.</p>
13 <h2·id="examples"><a·class="doc-anchor"·href="#examples">§</a>Examples</h2>13 <h2·id="examples"><a·class="doc-anchor"·href="#examples">§</a>Examples</h2>
14 <div·class="example-wrap"><pre·class="rust·rust-example-rendered"><code><span·class="kw">use·</span>std::collections::BTreeSet;14 <div·class="example-wrap"><pre·class="rust·rust-example-rendered"><code><span·class="kw">use·</span>std::collections::BTreeSet;
Offset 43, 24 lines modifiedOffset 43, 24 lines modified
43 <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"·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">Run</a></div>43 <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"·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">Run</a></div>
44 </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#325-344">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="const·since·1.66.0">const:·1.66.0</span>···<a·class="src"·href="../../../src/alloc/collections/btree/set.rs.html#341-343">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 </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#325-344">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="const·since·1.66.0">const:·1.66.0</span>···<a·class="src"·href="../../../src/alloc/collections/btree/set.rs.html#341-343">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>
45 <p>Does·not·allocate·anything·on·its·own.</p>45 <p>Does·not·allocate·anything·on·its·own.</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::collections::BTreeSet;47 <div·class="example-wrap"><pre·class="rust·rust-example-rendered"><code><span·class="kw">use·</span>std::collections::BTreeSet;
  
48 <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"·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">Run</a></div>48 <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"·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">Run</a></div>
49 </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#346-1186">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#361-363">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 </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#346-1186">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.78.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#361-363">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>
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>
51 <div·class="example-wrap"><pre·class="rust·rust-example-rendered"><code><span·class="kw">use·</span>std::collections::BTreeSet;51 <div·class="example-wrap"><pre·class="rust·rust-example-rendered"><code><span·class="kw">use·</span>std::collections::BTreeSet;
52 <span·class="kw">use·</span>std::alloc::Global;52 <span·class="kw">use·</span>std::alloc::Global;
  
53 <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"·href="https://play.rust-lang.org/?code=%23!%5Ballow(unused)%5D%0A%23!%5Ballow(unused_mut)%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::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">Run</a></div>53 <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"·href="https://play.rust-lang.org/?code=%23!%5Ballow(unused)%5D%0A%23!%5Ballow(unused_mut)%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::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">Run</a></div>
54 </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#393-400">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">where54 </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#393-400">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
55 ····K:·<a·class="trait"·href="../../../core/cmp/trait.Ord.html"·title="trait·core::cmp::Ord">Ord</a>·+·?<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,55 ····K:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/cmp/trait.Ord.html"·title="trait·core::cmp::Ord">Ord</a>·+·?<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
56 ····T:·<a·class="trait"·href="../../borrow/trait.Borrow.html"·title="trait·alloc::borrow::Borrow">Borrow</a>&lt;K&gt;·+·<a·class="trait"·href="../../../core/cmp/trait.Ord.html"·title="trait·core::cmp::Ord">Ord</a>,56 ····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.78.0/core/cmp/trait.Ord.html"·title="trait·core::cmp::Ord">Ord</a>,
57 ····R:·<a·class="trait"·href="../../../core/ops/range/trait.RangeBounds.html"·title="trait·core::ops::range::RangeBounds">RangeBounds</a>&lt;K&gt;,</div></h4></section></summary><div·class="docblock"><p>Constructs·a·double-ended·iterator·over·a·sub-range·of·elements·in·the·set.57 ····R:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.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.
58 The·simplest·way·is·to·use·the·range·syntax·<code>min..max</code>,·thus·<code>range(min..max)</code>·will58 The·simplest·way·is·to·use·the·range·syntax·<code>min..max</code>,·thus·<code>range(min..max)</code>·will
59 yield·elements·from·min·(inclusive)·to·max·(exclusive).59 yield·elements·from·min·(inclusive)·to·max·(exclusive).
60 The·range·may·also·be·entered·as·<code>(Bound&lt;T&gt;,·Bound&lt;T&gt;)</code>,·so·for·example60 The·range·may·also·be·entered·as·<code>(Bound&lt;T&gt;,·Bound&lt;T&gt;)</code>,·so·for·example
61 <code>range((Excluded(4),·Included(10)))</code>·will·yield·a·left-exclusive,·right-inclusive61 <code>range((Excluded(4),·Included(10)))</code>·will·yield·a·left-exclusive,·right-inclusive
62 range·from·4·to·10.</p>62 range·from·4·to·10.</p>
63 <h5·id="panics"><a·class="doc-anchor"·href="#panics">§</a>Panics</h5>63 <h5·id="panics"><a·class="doc-anchor"·href="#panics">§</a>Panics</h5>
64 <p>Panics·if·range·<code>start·&gt;·end</code>.64 <p>Panics·if·range·<code>start·&gt;·end</code>.
Offset 77, 15 lines modifiedOffset 77, 15 lines modified
77 ····<span·class="macro">println!</span>(<span·class="string">"{elem}"</span>);77 ····<span·class="macro">println!</span>(<span·class="string">"{elem}"</span>);
78 }78 }
79 <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"·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">Run</a></div>79 <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"·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">Run</a></div>
80 </div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.difference"·class="method"><a·class="src·rightside"·href="../../../src/alloc/collections/btree/set.rs.html#423-461">source</a><h4·class="code-header">pub·fn·<a·href="#method.difference"·class="fn">difference</a>&lt;'a&gt;(80 </div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.difference"·class="method"><a·class="src·rightside"·href="../../../src/alloc/collections/btree/set.rs.html#423-461">source</a><h4·class="code-header">pub·fn·<a·href="#method.difference"·class="fn">difference</a>&lt;'a&gt;(
81 ····&amp;'a·self,81 ····&amp;'a·self,
82 ····other:·&amp;'a·<a·class="struct"·href="struct.BTreeSet.html"·title="struct·alloc::collections::btree_set::BTreeSet">BTreeSet</a>&lt;T,·A&gt;82 ····other:·&amp;'a·<a·class="struct"·href="struct.BTreeSet.html"·title="struct·alloc::collections::btree_set::BTreeSet">BTreeSet</a>&lt;T,·A&gt;
83 )·-&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">where83 )·-&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
84 ····T:·<a·class="trait"·href="../../../core/cmp/trait.Ord.html"·title="trait·core::cmp::Ord">Ord</a>,</div></h4></section></summary><div·class="docblock"><p>Visits·the·elements·representing·the·difference,84 ····T:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.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,
85 i.e.,·the·elements·that·are·in·<code>self</code>·but·not·in·<code>other</code>,85 i.e.,·the·elements·that·are·in·<code>self</code>·but·not·in·<code>other</code>,
86 in·ascending·order.</p>86 in·ascending·order.</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::collections::BTreeSet;88 <div·class="example-wrap"><pre·class="rust·rust-example-rendered"><code><span·class="kw">use·</span>std::collections::BTreeSet;
  
89 <span·class="kw">let·</span><span·class="kw-2">mut·</span>a·=·BTreeSet::new();89 <span·class="kw">let·</span><span·class="kw-2">mut·</span>a·=·BTreeSet::new();
90 a.insert(<span·class="number">1</span>);90 a.insert(<span·class="number">1</span>);
Offset 97, 15 lines modifiedOffset 97, 15 lines modified
  
97 <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="kw">let·</span>diff:·Vec&lt;<span·class="kw">_</span>&gt;·=·a.difference(<span·class="kw-2">&amp;</span>b).cloned().collect();
98 <span·class="macro">assert_eq!</span>(diff,·[<span·class="number">1</span>]);</code></pre><a·class="test-arrow"·target="_blank"·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">Run</a></div>98 <span·class="macro">assert_eq!</span>(diff,·[<span·class="number">1</span>]);</code></pre><a·class="test-arrow"·target="_blank"·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">Run</a></div>
99 </div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.symmetric_difference"·class="method"><a·class="src·rightside"·href="../../../src/alloc/collections/btree/set.rs.html#484-492">source</a><h4·class="code-header">pub·fn·<a·href="#method.symmetric_difference"·class="fn">symmetric_difference</a>&lt;'a&gt;(99 </div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.symmetric_difference"·class="method"><a·class="src·rightside"·href="../../../src/alloc/collections/btree/set.rs.html#484-492">source</a><h4·class="code-header">pub·fn·<a·href="#method.symmetric_difference"·class="fn">symmetric_difference</a>&lt;'a&gt;(
100 ····&amp;'a·self,100 ····&amp;'a·self,
101 ····other:·&amp;'a·<a·class="struct"·href="struct.BTreeSet.html"·title="struct·alloc::collections::btree_set::BTreeSet">BTreeSet</a>&lt;T,·A&gt;101 ····other:·&amp;'a·<a·class="struct"·href="struct.BTreeSet.html"·title="struct·alloc::collections::btree_set::BTreeSet">BTreeSet</a>&lt;T,·A&gt;
102 )·-&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">where102 )·-&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
103 ····T:·<a·class="trait"·href="../../../core/cmp/trait.Ord.html"·title="trait·core::cmp::Ord">Ord</a>,</div></h4></section></summary><div·class="docblock"><p>Visits·the·elements·representing·the·symmetric·difference,103 ····T:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.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,
104 i.e.,·the·elements·that·are·in·<code>self</code>·or·in·<code>other</code>·but·not·in·both,104 i.e.,·the·elements·that·are·in·<code>self</code>·or·in·<code>other</code>·but·not·in·both,
105 in·ascending·order.</p>105 in·ascending·order.</p>
106 <h5·id="examples-5"><a·class="doc-anchor"·href="#examples-5">§</a>Examples</h5>106 <h5·id="examples-5"><a·class="doc-anchor"·href="#examples-5">§</a>Examples</h5>
107 <div·class="example-wrap"><pre·class="rust·rust-example-rendered"><code><span·class="kw">use·</span>std::collections::BTreeSet;107 <div·class="example-wrap"><pre·class="rust·rust-example-rendered"><code><span·class="kw">use·</span>std::collections::BTreeSet;
  
108 <span·class="kw">let·</span><span·class="kw-2">mut·</span>a·=·BTreeSet::new();108 <span·class="kw">let·</span><span·class="kw-2">mut·</span>a·=·BTreeSet::new();
109 a.insert(<span·class="number">1</span>);109 a.insert(<span·class="number">1</span>);
Offset 117, 15 lines modifiedOffset 117, 15 lines modified
  
117 <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="kw">let·</span>sym_diff:·Vec&lt;<span·class="kw">_</span>&gt;·=·a.symmetric_difference(<span·class="kw-2">&amp;</span>b).cloned().collect();
118 <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"·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">Run</a></div>118 <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"·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">Run</a></div>
119 </div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.intersection"·class="method"><a·class="src·rightside"·href="../../../src/alloc/collections/btree/set.rs.html#515-545">source</a><h4·class="code-header">pub·fn·<a·href="#method.intersection"·class="fn">intersection</a>&lt;'a&gt;(119 </div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.intersection"·class="method"><a·class="src·rightside"·href="../../../src/alloc/collections/btree/set.rs.html#515-545">source</a><h4·class="code-header">pub·fn·<a·href="#method.intersection"·class="fn">intersection</a>&lt;'a&gt;(
120 ····&amp;'a·self,120 ····&amp;'a·self,
121 ····other:·&amp;'a·<a·class="struct"·href="struct.BTreeSet.html"·title="struct·alloc::collections::btree_set::BTreeSet">BTreeSet</a>&lt;T,·A&gt;121 ····other:·&amp;'a·<a·class="struct"·href="struct.BTreeSet.html"·title="struct·alloc::collections::btree_set::BTreeSet">BTreeSet</a>&lt;T,·A&gt;
122 )·-&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">where122 )·-&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
123 ····T:·<a·class="trait"·href="../../../core/cmp/trait.Ord.html"·title="trait·core::cmp::Ord">Ord</a>,</div></h4></section></summary><div·class="docblock"><p>Visits·the·elements·representing·the·intersection,123 ····T:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.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,
124 i.e.,·the·elements·that·are·both·in·<code>self</code>·and·<code>other</code>,124 i.e.,·the·elements·that·are·both·in·<code>self</code>·and·<code>other</code>,
125 in·ascending·order.</p>125 in·ascending·order.</p>
126 <h5·id="examples-6"><a·class="doc-anchor"·href="#examples-6">§</a>Examples</h5>126 <h5·id="examples-6"><a·class="doc-anchor"·href="#examples-6">§</a>Examples</h5>
127 <div·class="example-wrap"><pre·class="rust·rust-example-rendered"><code><span·class="kw">use·</span>std::collections::BTreeSet;127 <div·class="example-wrap"><pre·class="rust·rust-example-rendered"><code><span·class="kw">use·</span>std::collections::BTreeSet;
  
128 <span·class="kw">let·</span><span·class="kw-2">mut·</span>a·=·BTreeSet::new();128 <span·class="kw">let·</span><span·class="kw-2">mut·</span>a·=·BTreeSet::new();
129 a.insert(<span·class="number">1</span>);129 a.insert(<span·class="number">1</span>);
Offset 134, 92 lines modifiedOffset 134, 92 lines modified
134 <span·class="kw">let·</span><span·class="kw-2">mut·</span>b·=·BTreeSet::new();134 <span·class="kw">let·</span><span·class="kw-2">mut·</span>b·=·BTreeSet::new();
135 b.insert(<span·class="number">2</span>);135 b.insert(<span·class="number">2</span>);
136 b.insert(<span·class="number">3</span>);136 b.insert(<span·class="number">3</span>);
  
137 <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="kw">let·</span>intersection:·Vec&lt;<span·class="kw">_</span>&gt;·=·a.intersection(<span·class="kw-2">&amp;</span>b).cloned().collect();
138 <span·class="macro">assert_eq!</span>(intersection,·[<span·class="number">2</span>]);</code></pre><a·class="test-arrow"·target="_blank"·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">Run</a></div>138 <span·class="macro">assert_eq!</span>(intersection,·[<span·class="number">2</span>]);</code></pre><a·class="test-arrow"·target="_blank"·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">Run</a></div>
139 </div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.union"·class="method"><a·class="src·rightside"·href="../../../src/alloc/collections/btree/set.rs.html#566-571">source</a><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">where139 </div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.union"·class="method"><a·class="src·rightside"·href="../../../src/alloc/collections/btree/set.rs.html#566-571">source</a><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
140 ····T:·<a·class="trait"·href="../../../core/cmp/trait.Ord.html"·title="trait·core::cmp::Ord">Ord</a>,</div></h4></section></summary><div·class="docblock"><p>Visits·the·elements·representing·the·union,140 ····T:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.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,
141 i.e.,·all·the·elements·in·<code>self</code>·or·<code>other</code>,·without·duplicates,141 i.e.,·all·the·elements·in·<code>self</code>·or·<code>other</code>,·without·duplicates,
142 in·ascending·order.</p>142 in·ascending·order.</p>
143 <h5·id="examples-7"><a·class="doc-anchor"·href="#examples-7">§</a>Examples</h5>143 <h5·id="examples-7"><a·class="doc-anchor"·href="#examples-7">§</a>Examples</h5>
144 <div·class="example-wrap"><pre·class="rust·rust-example-rendered"><code><span·class="kw">use·</span>std::collections::BTreeSet;144 <div·class="example-wrap"><pre·class="rust·rust-example-rendered"><code><span·class="kw">use·</span>std::collections::BTreeSet;
  
145 <span·class="kw">let·</span><span·class="kw-2">mut·</span>a·=·BTreeSet::new();145 <span·class="kw">let·</span><span·class="kw-2">mut·</span>a·=·BTreeSet::new();
146 a.insert(<span·class="number">1</span>);146 a.insert(<span·class="number">1</span>);
  
147 <span·class="kw">let·</span><span·class="kw-2">mut·</span>b·=·BTreeSet::new();147 <span·class="kw">let·</span><span·class="kw-2">mut·</span>b·=·BTreeSet::new();
148 b.insert(<span·class="number">2</span>);148 b.insert(<span·class="number">2</span>);
  
149 <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="kw">let·union</span>:·Vec&lt;<span·class="kw">_</span>&gt;·=·a.union(<span·class="kw-2">&amp;</span>b).cloned().collect();
150 <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"·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">Run</a></div>150 <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"·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">Run</a></div>
151 </div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.clear"·class="method"><a·class="src·rightside"·href="../../../src/alloc/collections/btree/set.rs.html#586-591">source</a><h4·class="code-header">pub·fn·<a·href="#method.clear"·class="fn">clear</a>(&amp;mut·self)<div·class="where">where151 </div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.clear"·class="method"><a·class="src·rightside"·href="../../../src/alloc/collections/btree/set.rs.html#586-591">source</a><h4·class="code-header">pub·fn·<a·href="#method.clear"·class="fn">clear</a>(&amp;mut·self)<div·class="where">where
152 ····A:·<a·class="trait"·href="../../../core/clone/trait.Clone.html"·title="trait·core::clone::Clone">Clone</a>,</div></h4></section></summary><div·class="docblock"><p>Clears·the·set,·removing·all·elements.</p>152 ····A:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.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>
153 <h5·id="examples-8"><a·class="doc-anchor"·href="#examples-8">§</a>Examples</h5>153 <h5·id="examples-8"><a·class="doc-anchor"·href="#examples-8">§</a>Examples</h5>
154 <div·class="example-wrap"><pre·class="rust·rust-example-rendered"><code><span·class="kw">use·</span>std::collections::BTreeSet;154 <div·class="example-wrap"><pre·class="rust·rust-example-rendered"><code><span·class="kw">use·</span>std::collections::BTreeSet;
  
155 <span·class="kw">let·</span><span·class="kw-2">mut·</span>v·=·BTreeSet::new();155 <span·class="kw">let·</span><span·class="kw-2">mut·</span>v·=·BTreeSet::new();
156 v.insert(<span·class="number">1</span>);156 v.insert(<span·class="number">1</span>);
157 v.clear();157 v.clear();
158 <span·class="macro">assert!</span>(v.is_empty());</code></pre><a·class="test-arrow"·target="_blank"·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">Run</a></div>158 <span·class="macro">assert!</span>(v.is_empty());</code></pre><a·class="test-arrow"·target="_blank"·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">Run</a></div>
159 </div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.contains"·class="method"><a·class="src·rightside"·href="../../../src/alloc/collections/btree/set.rs.html#609-615">source</a><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">where159 </div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.contains"·class="method"><a·class="src·rightside"·href="../../../src/alloc/collections/btree/set.rs.html#609-615">source</a><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.78.0/core/primitive.reference.html">&amp;Q</a>)·-&gt;·<a·class="primitive"·href="https://doc.rust-lang.org/1.78.0/core/primitive.bool.html">bool</a><div·class="where">where
160 ····T:·<a·class="trait"·href="../../borrow/trait.Borrow.html"·title="trait·alloc::borrow::Borrow">Borrow</a>&lt;Q&gt;·+·<a·class="trait"·href="../../../core/cmp/trait.Ord.html"·title="trait·core::cmp::Ord">Ord</a>,160 ····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.78.0/core/cmp/trait.Ord.html"·title="trait·core::cmp::Ord">Ord</a>,
161 ····Q:·<a·class="trait"·href="../../../core/cmp/trait.Ord.html"·title="trait·core::cmp::Ord">Ord</a>·+·?<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class="docblock"><p>Returns·<code>true</code>·if·the·set·contains·an·element·equal·to·the·value.</p>161 ····Q:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/cmp/trait.Ord.html"·title="trait·core::cmp::Ord">Ord</a>·+·?<a·class="trait"·href="https://doc.rust-lang.org/1.78.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>
162 <p>The·value·may·be·any·borrowed·form·of·the·set’s·element·type,162 <p>The·value·may·be·any·borrowed·form·of·the·set’s·element·type,
163 but·the·ordering·on·the·borrowed·form·<em>must</em>·match·the163 but·the·ordering·on·the·borrowed·form·<em>must</em>·match·the
164 ordering·on·the·element·type.</p>164 ordering·on·the·element·type.</p>
165 <h5·id="examples-9"><a·class="doc-anchor"·href="#examples-9">§</a>Examples</h5>165 <h5·id="examples-9"><a·class="doc-anchor"·href="#examples-9">§</a>Examples</h5>
166 <div·class="example-wrap"><pre·class="rust·rust-example-rendered"><code><span·class="kw">use·</span>std::collections::BTreeSet;166 <div·class="example-wrap"><pre·class="rust·rust-example-rendered"><code><span·class="kw">use·</span>std::collections::BTreeSet;
  
Max diff block lines reached; 215121/252207 bytes (85.30%) of diff not shown.
276 KB
./usr/share/doc/rust-web-doc/html/alloc/collections/btree_set/struct.Difference.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="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.write(`<link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../../static.files/SourceSerif4-Regular-46f98efaafac5295.ttf.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../../static.files/FiraSans-Regular-018c141bf0843ffd.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../../static.files/FiraSans-Medium-8f9a781e4970d388.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../../static.files/SourceCodePro-Regular-562dcc5011b6de7d.ttf.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../../static.files/SourceCodePro-Semibold-d899c5a5c4aeb14a.ttf.woff2">`)</script><link·rel="stylesheet"·href="../../../static.files/normalize-76eba96aa4d2e634.css"><link·rel="stylesheet"·href="../../../static.files/rustdoc-35f9e32502181f1e.css"><meta·name="rustdoc-vars"·data-root-path="../../../"·data-static-root-path="../../../static.files/"·data-current-crate="alloc"·data-themes=""·data-resource-suffix="1.78.0"·data-rustdoc-version="1.78.0"·data-channel="1.78.0"·data-search-js="search-42d8da7a6b9792c2.js"·data-settings-js="settings-4313503d2e1961c2.js"·><script·src="../../../static.files/storage-4c98445ec4002617.js"></script><script·defer·src="sidebar-items1.78.0.js"></script><script·defer·src="../../../static.files/main-12cf3b4f4f9dc36d.js"></script><noscript><link·rel="stylesheet"·href="../../../static.files/noscript-04d5337699b92874.css"></noscript><link·rel="alternate·icon"·type="image/png"·href="../../../static.files/favicon-16x16-8b506e7a72182f1c.png"><link·rel="alternate·icon"·type="image/png"·href="../../../static.files/favicon-32x32-422f7d1d52889060.png"><link·rel="icon"·type="image/svg+xml"·href="../../../static.files/favicon-2c020d218678b618.svg"></head><body·class="rustdoc·struct"><!--[if·lte·IE·11]><div·class="warning">This·old·browser·is·unsupported·and·will·most·likely·display·funky·things.</div><![endif]--><nav·class="mobile-topbar"><button·class="sidebar-menu-toggle"·title="show·sidebar"></button><a·class="logo-container"·href="../../../alloc/index.html"><img·class="rust-logo"·src="../../../static.files/rust-logo-151179464ae7ed46.svg"·alt=""></a></nav><nav·class="sidebar"><div·class="sidebar-crate"><a·class="logo-container"·href="../../../alloc/index.html"><img·class="rust-logo"·src="../../../static.files/rust-logo-151179464ae7ed46.svg"·alt="logo"></a><h2><a·href="../../../alloc/index.html">alloc</a><span·class="version">1.78.0</span></h2></div><h2·class="location"><a·href="#">Difference</a></h2><div·class="sidebar-elems"><section><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">Clone</a></li><li><a·href="#impl-Debug-for-Difference%3C'_,+T,+A%3E">Debug</a></li><li><a·href="#impl-FusedIterator-for-Difference%3C'_,+T,+A%3E">FusedIterator</a></li><li><a·href="#impl-Iterator-for-Difference%3C'a,+T,+A%3E">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">Freeze</a></li><li><a·href="#impl-RefUnwindSafe-for-Difference%3C'a,+T,+A%3E">RefUnwindSafe</a></li><li><a·href="#impl-Send-for-Difference%3C'a,+T,+A%3E">Send</a></li><li><a·href="#impl-Sync-for-Difference%3C'a,+T,+A%3E">Sync</a></li><li><a·href="#impl-Unpin-for-Difference%3C'a,+T,+A%3E">Unpin</a></li><li><a·href="#impl-UnwindSafe-for-Difference%3C'a,+T,+A%3E">UnwindSafe</a></li></ul><h3><a·href="#blanket-implementations">Blanket·Implementations</a></h3><ul·class="block·blanket-implementation"><li><a·href="#impl-Any-for-T">Any</a></li><li><a·href="#impl-Borrow%3CT%3E-for-T">Borrow&lt;T&gt;</a></li><li><a·href="#impl-BorrowMut%3CT%3E-for-T">BorrowMut&lt;T&gt;</a></li><li><a·href="#impl-From%3CT%3E-for-T">From&lt;T&gt;</a></li><li><a·href="#impl-Into%3CU%3E-for-T">Into&lt;U&gt;</a></li><li><a·href="#impl-IntoIterator-for-I">IntoIterator</a></li><li><a·href="#impl-ToOwned-for-T">ToOwned</a></li><li><a·href="#impl-TryFrom%3CU%3E-for-T">TryFrom&lt;U&gt;</a></li><li><a·href="#impl-TryInto%3CU%3E-for-T">TryInto&lt;U&gt;</a></li></ul></section><h2><a·href="index.html">In·alloc::collections::btree_set</a></h2></div></nav><div·class="sidebar-resizer"></div>1 <!DOCTYPE·html><html·lang="en"><head><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.write(`<link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../../static.files/SourceSerif4-Regular-46f98efaafac5295.ttf.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../../static.files/FiraSans-Regular-018c141bf0843ffd.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../../static.files/FiraSans-Medium-8f9a781e4970d388.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../../static.files/SourceCodePro-Regular-562dcc5011b6de7d.ttf.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../../static.files/SourceCodePro-Semibold-d899c5a5c4aeb14a.ttf.woff2">`)</script><link·rel="stylesheet"·href="../../../static.files/normalize-76eba96aa4d2e634.css"><link·rel="stylesheet"·href="../../../static.files/rustdoc-35f9e32502181f1e.css"><meta·name="rustdoc-vars"·data-root-path="../../../"·data-static-root-path="../../../static.files/"·data-current-crate="alloc"·data-themes=""·data-resource-suffix="1.78.0"·data-rustdoc-version="1.78.0"·data-channel="1.78.0"·data-search-js="search-42d8da7a6b9792c2.js"·data-settings-js="settings-4313503d2e1961c2.js"·><script·src="../../../static.files/storage-4c98445ec4002617.js"></script><script·defer·src="sidebar-items1.78.0.js"></script><script·defer·src="../../../static.files/main-12cf3b4f4f9dc36d.js"></script><noscript><link·rel="stylesheet"·href="../../../static.files/noscript-04d5337699b92874.css"></noscript><link·rel="alternate·icon"·type="image/png"·href="../../../static.files/favicon-16x16-8b506e7a72182f1c.png"><link·rel="alternate·icon"·type="image/png"·href="../../../static.files/favicon-32x32-422f7d1d52889060.png"><link·rel="icon"·type="image/svg+xml"·href="../../../static.files/favicon-2c020d218678b618.svg"></head><body·class="rustdoc·struct"><!--[if·lte·IE·11]><div·class="warning">This·old·browser·is·unsupported·and·will·most·likely·display·funky·things.</div><![endif]--><nav·class="mobile-topbar"><button·class="sidebar-menu-toggle"·title="show·sidebar"></button><a·class="logo-container"·href="../../../alloc/index.html"><img·class="rust-logo"·src="../../../static.files/rust-logo-151179464ae7ed46.svg"·alt=""></a></nav><nav·class="sidebar"><div·class="sidebar-crate"><a·class="logo-container"·href="../../../alloc/index.html"><img·class="rust-logo"·src="../../../static.files/rust-logo-151179464ae7ed46.svg"·alt="logo"></a><h2><a·href="../../../alloc/index.html">alloc</a><span·class="version">1.78.0</span></h2></div><h2·class="location"><a·href="#">Difference</a></h2><div·class="sidebar-elems"><section><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">Clone</a></li><li><a·href="#impl-Debug-for-Difference%3C'_,+T,+A%3E">Debug</a></li><li><a·href="#impl-FusedIterator-for-Difference%3C'_,+T,+A%3E">FusedIterator</a></li><li><a·href="#impl-Iterator-for-Difference%3C'a,+T,+A%3E">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">Freeze</a></li><li><a·href="#impl-RefUnwindSafe-for-Difference%3C'a,+T,+A%3E">RefUnwindSafe</a></li><li><a·href="#impl-Send-for-Difference%3C'a,+T,+A%3E">Send</a></li><li><a·href="#impl-Sync-for-Difference%3C'a,+T,+A%3E">Sync</a></li><li><a·href="#impl-Unpin-for-Difference%3C'a,+T,+A%3E">Unpin</a></li><li><a·href="#impl-UnwindSafe-for-Difference%3C'a,+T,+A%3E">UnwindSafe</a></li></ul><h3><a·href="#blanket-implementations">Blanket·Implementations</a></h3><ul·class="block·blanket-implementation"><li><a·href="#impl-Any-for-T">Any</a></li><li><a·href="#impl-Borrow%3CT%3E-for-T">Borrow&lt;T&gt;</a></li><li><a·href="#impl-BorrowMut%3CT%3E-for-T">BorrowMut&lt;T&gt;</a></li><li><a·href="#impl-From%3CT%3E-for-T">From&lt;T&gt;</a></li><li><a·href="#impl-Into%3CU%3E-for-T">Into&lt;U&gt;</a></li><li><a·href="#impl-IntoIterator-for-I">IntoIterator</a></li><li><a·href="#impl-ToOwned-for-T">ToOwned</a></li><li><a·href="#impl-TryFrom%3CU%3E-for-T">TryFrom&lt;U&gt;</a></li><li><a·href="#impl-TryInto%3CU%3E-for-T">TryInto&lt;U&gt;</a></li></ul></section><h2><a·href="index.html">In·alloc::collections::btree_set</a></h2></div></nav><div·class="sidebar-resizer"></div>
2 ····<main><div·class="width-limiter"><nav·class="sub"><form·class="search-form"><span></span><div·id="sidebar-button"·tabindex="-1"><a·href="../../../alloc/all.html"·title="show·sidebar"></a></div><input·class="search-input"·name="search"·aria-label="Run·search·in·the·documentation"·autocomplete="off"·spellcheck="false"·placeholder="Click·or·press·‘S’·to·search,·‘?’·for·more·options…"·type="search"><div·id="help-button"·tabindex="-1"><a·href="../../../help.html"·title="help">?</a></div><div·id="settings-menu"·tabindex="-1"><a·href="../../../settings.html"·title="settings"><img·width="22"·height="22"·alt="Change·settings"·src="../../../static.files/wheel-7b819b6101059cd0.svg"></a></div></form></nav><section·id="main-content"·class="content"><div·class="main-heading"><h1>Struct·<a·href="../../index.html">alloc</a>::<wbr><a·href="../index.html">collections</a>::<wbr><a·href="index.html">btree_set</a>::<wbr><a·class="struct"·href="#">Difference</a><button·id="copy-path"·title="Copy·item·path·to·clipboard"><img·src="../../../static.files/clipboard-7571035ce49a181d.svg"·width="19"·height="18"·alt="Copy·item·path"></button></h1><span·class="out-of-band"><span·class="since"·title="Stable·since·Rust·version·1.0.0">1.0.0</span>···<a·class="src"·href="../../../src/alloc/collections/btree/set.rs.html#180-186">source</a>···<button·id="toggle-all-docs"·title="collapse·all·docs">[<span>&#x2212;</span>]</button></span></div><pre·class="rust·item-decl"><code>pub·struct·Difference&lt;'a,·T:·'a,·A:·<a·class="trait"·href="../../alloc/trait.Allocator.html"·title="trait·alloc::alloc::Allocator">Allocator</a>·+·<a·class="trait"·href="../../../core/clone/trait.Clone.html"·title="trait·core::clone::Clone">Clone</a>·=·<a·class="struct"·href="../../alloc/struct.Global.html"·title="struct·alloc::alloc::Global">Global</a>&gt;·{·<span·class="comment">/*·private·fields·*/</span>·}</code></pre><details·class="toggle·top-doc"·open><summary·class="hideme"><span>Expand·description</span></summary><div·class="docblock"><p>A·lazy·iterator·producing·elements·in·the·difference·of·<code>BTreeSet</code>s.</p>2 ····<main><div·class="width-limiter"><nav·class="sub"><form·class="search-form"><span></span><div·id="sidebar-button"·tabindex="-1"><a·href="../../../alloc/all.html"·title="show·sidebar"></a></div><input·class="search-input"·name="search"·aria-label="Run·search·in·the·documentation"·autocomplete="off"·spellcheck="false"·placeholder="Click·or·press·‘S’·to·search,·‘?’·for·more·options…"·type="search"><div·id="help-button"·tabindex="-1"><a·href="../../../help.html"·title="help">?</a></div><div·id="settings-menu"·tabindex="-1"><a·href="../../../settings.html"·title="settings"><img·width="22"·height="22"·alt="Change·settings"·src="../../../static.files/wheel-7b819b6101059cd0.svg"></a></div></form></nav><section·id="main-content"·class="content"><div·class="main-heading"><h1>Struct·<a·href="../../index.html">alloc</a>::<wbr><a·href="../index.html">collections</a>::<wbr><a·href="index.html">btree_set</a>::<wbr><a·class="struct"·href="#">Difference</a><button·id="copy-path"·title="Copy·item·path·to·clipboard"><img·src="../../../static.files/clipboard-7571035ce49a181d.svg"·width="19"·height="18"·alt="Copy·item·path"></button></h1><span·class="out-of-band"><span·class="since"·title="Stable·since·Rust·version·1.0.0">1.0.0</span>···<a·class="src"·href="../../../src/alloc/collections/btree/set.rs.html#180-186">source</a>···<button·id="toggle-all-docs"·title="collapse·all·docs">[<span>&#x2212;</span>]</button></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.78.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>
3 <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 <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>.
4 See·its·documentation·for·more.</p>4 See·its·documentation·for·more.</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-Difference%3C'_,+T,+A%3E"·class="impl"><a·class="src·rightside"·href="../../../src/alloc/collections/btree/set.rs.html#1630-1645">source</a><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:·7502,·SHA:·37ff910eb7f8bad0a2d8554468f2b72de2e835cdf6e3a09b098c0767ddd8d0c8·...·]/core/primitive.usize.html">usize</a>&gt;(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-Difference%3C'_,+T,+A%3E"·class="impl"><a·class="src·rightside"·href="../../../src/alloc/collections/btree/set.rs.html#1630-1645">source</a><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.78.0/core/clone/trait.Clone.html"·title="trait·core::clone::Clone">Clone</a>&gt;·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/clone/trait.Clone.html"·title="trait·core::clone::Clone">Clone</a>·for·<a·class="struc[·...·truncated·by·diffoscope;·len:·8222,·SHA:·90e5d01830f202c2da38fb66cf3bf7111052cbf1716ce3f75bc7e3187a39ad47·...·]/core/primitive.usize.html">usize</a>&gt;(
6 ····&amp;mut·self6 ····&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.78.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.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title=[·...·truncated·by·diffoscope;·len:·381,·SHA:·88c48923c9b7ea5cc47c1087c60e09656e81d4671c58071ba2bef826335388bc·...·]/core/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:·746,·SHA:·99cc415a31b91c57f7eeb82ad0d2d1ba424489bee49de37c86a4ea21c663ccda·...·]/core/primitive.usize.html">usize</a><div·class="where">where8 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experiment[·...·truncated·by·diffoscope;·len:·866,·SHA:·945d2d86f0c4c5ca3e3ee3b181d18b2bbea57ee1a5a7efe16c0c915a5bf2c3ad·...·]/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:·597,·SHA:·be3babc2f9096ec8bacc872099ff5a03375deb1461cf1d651cfbfb072fb72581·...·]/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.78.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:·741,·SHA:·f3078cc3fddd62af2c1a8814c5854bb49f40b79e4fbc9b3addf5862a72370f82·...·]/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:·2928,·SHA:·dd9dc6c66a208fe3371784c1d048fbccf7b880bff34f93a1694f746d814568db·...·]/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.78.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.78.0/cor[·...·truncated·by·diffoscope;·len:·3408,·SHA:·b62c6ed65b31a8b555c142d9d15f3ce30e5c76ad2630a0e5a9b13cfd478c6eee·...·]/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.78.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"><a·class="src·rightside"·href="../../../src/core/it[·...·truncated·by·diffoscope;·len:·602,·SHA:·cfe4c4d300dddc2abdc2f8194eb969c68b2240c28239969b5be2af6a564ed8cc·...·]/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.78.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"><a·class="src·rightside"·hr[·...·truncated·by·diffoscope;·len:·746,·SHA:·f1f70d650c102c8658e13890c7dbfc87418f07e7b522246fb579ec434ef64f7c·...·]/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.78.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:·1041,·SHA:·a281d174c9671021427f0b458ac94e87746ac44730475aa725652c6c15e2b972·...·]/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.78.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.78.0/core/iter/traits/it[·...·truncated·by·diffoscope;·len:·1233,·SHA:·f677df2d893dfe0dc1a9d31ebb0ba71a346d265781813e0d664d3f18369b6163·...·]/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.78.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:·b9001dd3131b1425179c94853e1b90fff0f7169b9570e86cd50c6b7fbf1ee8a5·...·]/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.78.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:·98627729f77dcf1c9d258f343354ba600b7134c6b3929080f231e8de7155b70b·...·]/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.78.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.78.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.78.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"><a·class="src·rightside"·href="../../../src/[·...·truncated·by·diffoscope;·len:·279,·SHA:·f2c34c2e64e77c66684f837812ebc4a94c81b2ad5862cc0131f80c3ce89e008a·...·]/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.78.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"><a·class="src·rights[·...·truncated·by·diffoscope;·len:·375,·SHA:·58419346f92e1709dadb70cc3cf356e3cd27972451bdc6b4fc4267e6f7e8bdae·...·]/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.78.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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::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:·d75758e0f8262eeea27445cec43f13d84f0c02ba4e03c0c54d041f9ab1965e0f·...·]/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.78.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:·98f6effefa44d759c249143d83623f0055d937382bfc398b7e1f5e92cd413657·...·]/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.78.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:·676,·SHA:·9ae42ed293737a3dd44c1ee9d98c6aabb1552fbb9d203cb852ee9fcc7834a6ca·...·]/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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·820,·SHA:·a664bbcbc0891663662e4eb7b4394d0fcd72e568136fc4d34097fea242cc32e7·...·]/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.78.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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·140,·SHA:·752f473b57e7444ebfddf5ea7fd40a332e83ec55524a6c31b5ee0f82a5dea819·...·]/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"><a·class="src·rightside"·href="../../../src/cor[·...·truncated·by·diffoscope;·len:·297,·SHA:·f01e44d4caf6c6ad80b37656b9300f7111340711dcd74d70867b5a652dbfb538·...·]/core/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.78.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"><a·class="src·rightside[·...·truncated·by·diffoscope;·len:·393,·SHA:·2e2aa7c9c9c087e7b346da376749064ab8c1894795a2f0a0f646cdc8c7bea997·...·]/core/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.78.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:·788,·SHA:·b788f412af946d2bd7646ba39a8c316ebfa88109f9626dbad9bf9964f975cd0c·...·]/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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·956,·SHA:·faba0521e870dbbd26d466fadba3522e7d29013a9b86376fffafffac11a57e0e·...·]/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.78.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"><a·class="src·rightside"·href="../../../src/co[·...·truncated·by·diffoscope;·len:·276,·SHA:·e337ee1b810d3ec0480569c4ed323ebf0a2315c8ae3c522a73fcca3aa8e6efb3·...·]/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.78.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"><a·class="src·rightsid[·...·truncated·by·diffoscope;·len:·372,·SHA:·03eea0861575eb80d3f7a87a3ba747adb1a33fe7e9ce72aa2172e7a287c63a94·...·]/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.78.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.78.0/core/iter/adapte[·...·truncated·by·diffoscope;·len:·175,·SHA:·16fe7225bf05b478e2828b347c3d23ded9a22f89d8887a2c65d9f7b3faf1b0e7·...·]/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"><a·class="src·rightside"·href="../../../src/c[·...·truncated·by·diffoscope;·len:·306,·SHA:·a9bc004bf639fa188165a336061c6c98ec7ff9d266a18f10db200dfa9a880b88·...·]/core/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.78.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"><a·class="src·rightsi[·...·truncated·by·diffoscope;·len:·402,·SHA:·7689a974f800fd069d1b4453ef62d6d6ad1b654462d624d36e3672051d502030·...·]/core/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.78.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:·946,·SHA:·877b8718d9df1464a912dd50eef16402225367db4e4b26484b5ee20d30644524·...·]/core/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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·1138,·SHA:·f6ae06b7de8e94df014341c5cf589a5e4a1298367b2ef7a968ec499c5170a70e·...·]/core/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.78.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:·552b3dd2132886d024e4d5bd2554611e25c1f068adaaf23ecf80da81d31997ef·...·]/core/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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·1058,·SHA:·b390dbdda8d7e93604b5ecd906a93efd03fe19bdaf41cf12893fd361bf974307·...·]/core/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.78.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:·875,·SHA:·5c5c44422f75cbb66ebcf54bea70536713b810843cc484b051aed088c6422d78·...·]/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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·1067,·SHA:·415d32e1211c35d3bb405de1d6e51c2102c14cadc3333894f063148dbe0b1f69·...·]/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:·543,·SHA:·f199bafab360be9b80e9f45c5ba799a52348b742ddb0fa9afdb1624729c36e58·...·]/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.78.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:·687,·SHA:·7f5256104c35c5948a2cb42b55f3048c9d2887e48a4a8226537a284f959c562a·...·]/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.78.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"><a·class="src·rightside"·href="../../../src/core/iter/t[·...·truncated·by·diffoscope;·len:·296,·SHA:·aea014801138aeee574964545b1e9ad297288a120113db6844b569d2b183e0a7·...·]/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.78.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"><a·class="src·rightside"·href="[·...·truncated·by·diffoscope;·len:·392,·SHA:·4e7da68f7be2622ef173653eca78d58e1f202b544a2e6abd14d8335c298c93a7·...·]/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.78.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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(<a·class="primitive"·href="https://doc.rust-lang.org/1.78.0/core/primitive.reference.html">&amp;mut·St</a>,·Self::<a·class="associatedty[·...·truncated·by·diffoscope;·len:·449,·SHA:·f12c268a8a8111b9e7126ad78bf5523a63733caa63d187c4fe792309ea41acdf·...·]/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:·474,·SHA:·c0ed850df640319d919b8c053c540caa158602207623bed65abbcd69ad9d2c9d·...·]/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.78.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.78.0/core/iter/trai[·...·truncated·by·diffoscope;·len:·594,·SHA:·02960742fa7892efaa08f289ce85865fc5efb6a4cd138c22e3566ca6fc727d78·...·]/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.78.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.78.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:·4d1f54658fd1c005b101a2e27b0da3c6ee0cbe2d891660c65470bfec01fa46f6·...·]/core/iter/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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·976,·SHA:·2a9182f6fe88e0b8a9b1ae1f46cace940cc0b8736033c354c0f0ccbf1c196e7a·...·]/core/iter/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.78.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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;[Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtyp[·...·truncated·by·diffoscope;·len:·135,·SHA:·0b06a6094d42ccbc8bce5b01c4383961fe7f1967f05e4c9f1ff33e71e425fb26·...·]/core/primitive.array.html">N</a>])·-&gt;·R,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iter_map_windows</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/87155">#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.78.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"><a·class="src·rightside"·href="../../../src/core[·...·truncated·by·diffoscope;·len:·262,·SHA:·6125a8b2b88486b3735bbd00905fe9ae55b6eb1491c8a493be9c8121dc3cb440·...·]/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.78.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"><a·class="src·rightside"[·...·truncated·by·diffoscope;·len:·358,·SHA:·d91b2ab18e0ce069e262cf523c6ef961f56eecad042ea1e9bcefe33cff28fc8f·...·]/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:·601,·SHA:·bdf3796aa87e911258d56122ffdaa3f8591a5c9db4ed6fd89c3dfd3660787f78·...·]/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.78.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.78.0/core/op[·...·truncated·by·diffoscope;·len:·745,·SHA:·424783f22102f4446d3ad4d362b1aafdb7531fa777213f97ee138aa878f67bd1·...·]/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.78.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:·694,·SHA:·db4bb2630979aa4504432e8d422265d943c9063bcf3d2e3be970003014226f1e·...·]/core/primitive.reference.html">&amp;mut·Self</a><div·class="where">where56 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·838,·SHA:·9b4fd8df7f41e9a76fd4cfca0a233b74b9bd27c3fe8228248abc3f940425a3e3·...·]/core/primitive.reference.html">&amp;mut·Self</a><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:·331,·SHA:·d13641714c275840abbb473011613a4e19924a453f5e1b83912681a9b7c5579b·...·]/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.78.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.78.0/core/it[·...·truncated·by·diffoscope;·len:·427,·SHA:·ecfaaac5d1d10c1bc4fcee9a050af0a268bee0b528c2d8ea4e9774440bd8a279·...·]/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.78.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.78.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:·d76c3fcf86c63211032a6b22dc5924ef552b1ad26b12e19f15d2f1d5b3d7e394·...·]/core/primitive.reference.html">&amp;mut·E</a><div·class="where">where59 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.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.78.0/core/iter/tr[·...·truncated·by·diffoscope;·len:·728,·SHA:·01937c2dc314c259495665570ae249c94b4a5b0719718f5f1188e6fc64ecf487·...·]/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.78.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.78.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:·759,·SHA:·3cf174fac64a83c8e22066c3d77741118f89b13411537fc82c1004faa5c9e2ae·...·]/core/primitive.tuple.html">(B,·B)</a><div·class="where">where61 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experiment[·...·truncated·by·diffoscope;·len:·879,·SHA:·e773b2222c92d001e295030cb47a780ab0c1132d7fc8e9e3a98de4f532e6c520·...·]/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.78.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.78.0/core/default/trait.Default.html"·title="trait·core::default::Default">Default</a>·+·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/collect/trait.Extend.html"·title="trait·core::iter::traits::collec[·...·truncated·by·diffoscope;·len:·95,·SHA:·8b3be1d0042cae0550f865faf5849221240bdf04eb1b2107605b72d48c3ad29c·...·]/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:·f996a0de22717256dd2ecf4d61d81611f9c7dfe5a493e4b882abb4030f3c80f9·...·]/core/primitive.bool.html">bool</a><div·class="where">where64 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·972,·SHA:·6de765542031617a9c28ac98fe6df619e58e62d9c65ec5b1c185a7152b8944e5·...·]/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.78.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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·135,·SHA:·51ff5f5c7ebd8440623ea71b125c5a5837e809e308fe1a13fbe19cddb941dbd9·...·]/core/primitive.bool.html">bool</a>,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iter_is_partitioned</code>&nbsp;<a·href="https://github.com/rust-lang/rust/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:·bd8fce4ee431c619c98780c4d520e8db93f1e034f12843ffaff5744b7ce2190b·...·]/core/iter/traits/iterator/trait.Iterator.html#method.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.78.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:·2c74873f4e5ba70004a1c7edd1cc3f9e2d91271295dd1591e2d26848df4c02ba·...·]/core/iter/traits/iterator/trait.Iterator.html#method.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.78.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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(B,·Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.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.78.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:·7b4fc32e7634ae85c682a97099be267837713d7e4831893b617ca652f57a89da·...·]/core/iter/traits/iterator/trait.Iterator.html#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.78.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:·52912e82c4b0a760d06f77eb4ee3a59ba70dd76cb532954900c73ae94c652674·...·]/core/iter/traits/iterator/trait.Iterator.html#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.78.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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.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.78.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.78.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"><a·class="src·rightside"·href="../../../src/cor[·...·truncated·by·diffoscope;·len:·139,·SHA:·dc7fb7a70636459a0d7de28cbcb454050f39c184bab178c95c524a6eb9ca51cf·...·]/core/iter/traits/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.78.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"><a·class="src·rightside[·...·truncated·by·diffoscope;·len:·211,·SHA:·924e062acd8127e8d6158162219ee5d57a941854e14063d21d7768edae549431·...·]/core/iter/traits/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.78.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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(B,·Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::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:·2c738ecc68200afa2467bef085de14dcb642dbaac77c4529948f5e259e66691d·...·]/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.78.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:·b60215068a6d9721be05f81098c51167d7138c4042f140cad42f77c4df43f597·...·]/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.78.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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·352,·SHA:·e7c3c296abe2c0a183967153e4ae7fd50bafa2ae7088e3e78b3b48fee253adc6·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::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:·c3f1d50e276def36966943119961a20b09cab3be33483fe4d48d7f322489534b·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_reduce"·class="fn">try_reduce</a>&lt;F,·R&gt;(81 operation.·<a·href="https://doc.rust-lang.org/1.78.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:·7a18fdd041b1a001b4a8feb289ee127fd9240232239269eb35dc3b8f74783ec9·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_reduce"·class="fn">try_reduce</a>&lt;F,·R&gt;(
82 ····&amp;mut·self,82 ····&amp;mut·self,
83 ····f:·F83 ····f:·F
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.78.0/core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&gt;::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/ops/try_trait/trait.Try.html#associatedtype.Residual"·title="type[·...·truncated·by·diffoscope;·len:·754,·SHA:·6fb4dfdb6b4da68921c1e7f8b75d99cf293d58318d684a840254ce9576957bea·...·]/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.78.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:·68,·SHA:·e7e11f257edcac749a5883ad9a3aa42e6e965be419f967b36caa7afd3b36d7c9·...·]/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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·140,·SHA:·c27972e6fa3464c9476eaa185e8657edb6bb294f148403f3d079285294a9f909·...·]/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·=·Self::<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.78.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.78.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.78.0/core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&gt;::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/ops/try_trait/trait.Try.html#associatedtype.Residual"·title="type[·...·truncated·by·diffoscope;·len:·412,·SHA:·22b8cbb007e5cce82b9d13a65bfa56aa8d83c32541fac25f4d9b3857b0540908·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;&gt;,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iterator_try_reduce</code>&nbsp;<a·href="https://github.com/rust-lang/rust/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"><a·class="src·rightside"·href="../../../src/core/i[·...·truncated·by·diffoscope;·len:·284,·SHA:·fbacd9a305d3a60d42d9adcc5ea9e5f579f4ff5d970999f333eaf0c7f9baf66c·...·]/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.78.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"><a·class="src·rightside"·h[·...·truncated·by·diffoscope;·len:·380,·SHA:·29c4004d4d8b0c8c9dfe9023f8b2c5ef801d9dc4688893035d182c1ae774c453·...·]/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.78.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:·754,·SHA:·e3afac523bd4c054d94fbbb6c5c856ac78a6359550526fa0726732b36529c33d·...·]/core/primitive.bool.html">bool</a><div·class="where">where91 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·922,·SHA:·f4fd532c280e18f28bd6dda6c2a129e2e92114b67f27235bb5fd39f725be9c43·...·]/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.78.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:·884,·SHA:·32570d141a71827f9ac19bf566a51ca4814ccafaf6f8a961920ce107fe9657d7·...·]/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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·1076,·SHA:·2dd9de8adaee4a5ee96501d9a58bfac2fea00ba8d78b834bfca29949b3afe18b·...·]/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.78.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:·f441e2966ff8db4214e57fcd74f81262d6e371aa51cea97ebde5921e81b4da79·...·]/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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·1051,·SHA:·ecc0b8fccd861464760f9ae047ff6ab98c91a1db010cb5fa59a8c2ab883db7c4·...·]/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.78.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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·130,·SHA:·130a13019dc175d02304b4f550157e2f13ac15c2f25a979c74161d10b146ab89·...·]/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:·ec4fb002625b166504031522e52a66812b279e6735a67cb718813205909c3fb7·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_find"·class="fn">try_find</a>&lt;F,·R&gt;(98 the·first·non-none·result.·<a·href="https://doc.rust-lang.org/1.78.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:·8ced1b10e78750774c5c8ed995ed83dcd13983aa75d329acf8069da106ab9f4a·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_find"·class="fn">try_find</a>&lt;F,·R&gt;(
99 ····&amp;mut·self,99 ····&amp;mut·self,
100 ····f:·F100 ····f:·F
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.78.0/core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&gt;::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/ops/try_trait/trait.Try.html#associatedtype.Residual"·title="type[·...·truncated·by·diffoscope;·len:·626,·SHA:·95f9831257b68862cbcbf54f0ad2ff4e597a4c9f763112d1da8a0897dadcf872·...·]/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.78.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>(&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,103 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·R,
104 ····R:·<a·class="trait"·href="../../../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.78.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.78.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.78.0/core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&gt;::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/ops/try_trait/trait.Try.html#associatedtype.Residual"·title="type[·...·truncated·by·diffoscope;·len:·412,·SHA:·22b8cbb007e5cce82b9d13a65bfa56aa8d83c32541fac25f4d9b3857b0540908·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;&gt;,</div></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"><a·class="src·rightside"·href="../../../src/cor[·...·truncated·by·diffoscope;·len:·419,·SHA:·4337d283573b9683aaa605a7d2417318ef2a03902876e7da2ec26f2a5febf794·...·]/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.78.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"><a·class="src·rightside[·...·truncated·by·diffoscope;·len:·539,·SHA:·04e329705f11ed9ec269a68b0b75ac4ab26c78e4316a571ee9336c28bbca6359·...·]/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.78.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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·1190,·SHA:·882e9e9a037f916d0ed4aa6d749399e6e01ca81811eacfc54a484818cb5d5029·...·]/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.78.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.78.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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/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.78.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:·0367b1bacc0a7d8e05f1c5181f8c4ea428f3f11edbae0e76811f3ef1d4925e41·...·]/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.78.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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·346,·SHA:·7113e4c2d65a123253bb18971efdc2d49241cfc2dd4c2b18e4cfa4e4d7d4140f·...·]/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.78.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:·db89d4cca0becf2a4ab904adac2870de6fd83cfad5131f5a1431a67766274f81·...·]/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.78.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.78.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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/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.78.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:·39ce6bc28062c0df48bff6a8faa3e4f2266988879092cf2970d2e9ee092742b0·...·]/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.78.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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·346,·SHA:·7113e4c2d65a123253bb18971efdc2d49241cfc2dd4c2b18e4cfa4e4d7d4140f·...·]/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"><a·class="src·rightside"·href="../../../src/core/ite[·...·truncated·by·diffoscope;·len:·290,·SHA:·26ecd6ca88d5e349c58bc913b23b9442cdb94453483075726671ca2068939441·...·]/core/primitive.tuple.html">(FromA,·FromB)</a><div·class="where">where122 specified·comparison·function.·<a·href="https://doc.rust-lang.org/1.78.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"><a·class="src·rightside"·hre[·...·truncated·by·diffoscope;·len:·386,·SHA:·1483264e6e3f1a115dc7d273497cc865330cbe32459eec952d5e2d8bd0e9d686·...·]/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.78.0/core/default/trait.Default.html"·title="trait·core::default::Default">Default</a>·+·<a·class="trait"·href="https://doc.rust-lang.org/1.78.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.78.0/core/default/trait.Default.html"·title="trait·core::default::Default">Default</a>·+·<a·class="trait"·href="https://doc.rust-lang.org/1.78.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:·653aec8e646bd1e33f0a5bbac618099785271b214c53936117e7d07a68d11aa3·...·]/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.78.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>·+·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html"·title="trait·core::iter::traits::iterator::I[·...·truncated·by·diffoscope;·len:·980,·SHA:·8f6df3c40809d9a55d4dab64faffa89b8268cb5f886608ccbcab921d7ab8e9fc·...·]/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.78.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:·719,·SHA:·1b4b7b4f2c3e01a6730853a7897c01c7ca2999128cde44557d82b0ad951c1ee4·...·]/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.78.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>·+·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html"·title="trait·core::iter::traits::iterator::I[·...·truncated·by·diffoscope;·len:·887,·SHA:·d20d302b6091047fdb4e7850279e51911212047c48f118cfe992c0e9de39ba76·...·]/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; 85867/282962 bytes (30.35%) of diff not shown.
272 KB
./usr/share/doc/rust-web-doc/html/alloc/collections/btree_set/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·BTreeSet."><title>ExtractIf·in·alloc::collections::btree_set·-·Rust</title><script>·if·(window.location.protocol·!==·"file:")·document.write(`<link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../../static.files/SourceSerif4-Regular-46f98efaafac5295.ttf.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../../static.files/FiraSans-Regular-018c141bf0843ffd.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../../static.files/FiraSans-Medium-8f9a781e4970d388.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../../static.files/SourceCodePro-Regular-562dcc5011b6de7d.ttf.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../../static.files/SourceCodePro-Semibold-d899c5a5c4aeb14a.ttf.woff2">`)</script><link·rel="stylesheet"·href="../../../static.files/normalize-76eba96aa4d2e634.css"><link·rel="stylesheet"·href="../../../static.files/rustdoc-35f9e32502181f1e.css"><meta·name="rustdoc-vars"·data-root-path="../../../"·data-static-root-path="../../../static.files/"·data-current-crate="alloc"·data-themes=""·data-resource-suffix="1.78.0"·data-rustdoc-version="1.78.0"·data-channel="1.78.0"·data-search-js="search-42d8da7a6b9792c2.js"·data-settings-js="settings-4313503d2e1961c2.js"·><script·src="../../../static.files/storage-4c98445ec4002617.js"></script><script·defer·src="sidebar-items1.78.0.js"></script><script·defer·src="../../../static.files/main-12cf3b4f4f9dc36d.js"></script><noscript><link·rel="stylesheet"·href="../../../static.files/noscript-04d5337699b92874.css"></noscript><link·rel="alternate·icon"·type="image/png"·href="../../../static.files/favicon-16x16-8b506e7a72182f1c.png"><link·rel="alternate·icon"·type="image/png"·href="../../../static.files/favicon-32x32-422f7d1d52889060.png"><link·rel="icon"·type="image/svg+xml"·href="../../../static.files/favicon-2c020d218678b618.svg"></head><body·class="rustdoc·struct"><!--[if·lte·IE·11]><div·class="warning">This·old·browser·is·unsupported·and·will·most·likely·display·funky·things.</div><![endif]--><nav·class="mobile-topbar"><button·class="sidebar-menu-toggle"·title="show·sidebar"></button><a·class="logo-container"·href="../../../alloc/index.html"><img·class="rust-logo"·src="../../../static.files/rust-logo-151179464ae7ed46.svg"·alt=""></a></nav><nav·class="sidebar"><div·class="sidebar-crate"><a·class="logo-container"·href="../../../alloc/index.html"><img·class="rust-logo"·src="../../../static.files/rust-logo-151179464ae7ed46.svg"·alt="logo"></a><h2><a·href="../../../alloc/index.html">alloc</a><span·class="version">1.78.0</span></h2></div><h2·class="location"><a·href="#">ExtractIf</a></h2><div·class="sidebar-elems"><section><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">Debug</a></li><li><a·href="#impl-FusedIterator-for-ExtractIf%3C'_,+T,+F,+A%3E">FusedIterator</a></li><li><a·href="#impl-Iterator-for-ExtractIf%3C'_,+T,+F,+A%3E">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">!UnwindSafe</a></li><li><a·href="#impl-Freeze-for-ExtractIf%3C'a,+T,+F,+A%3E">Freeze</a></li><li><a·href="#impl-RefUnwindSafe-for-ExtractIf%3C'a,+T,+F,+A%3E">RefUnwindSafe</a></li><li><a·href="#impl-Send-for-ExtractIf%3C'a,+T,+F,+A%3E">Send</a></li><li><a·href="#impl-Sync-for-ExtractIf%3C'a,+T,+F,+A%3E">Sync</a></li><li><a·href="#impl-Unpin-for-ExtractIf%3C'a,+T,+F,+A%3E">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">Any</a></li><li><a·href="#impl-Borrow%3CT%3E-for-T">Borrow&lt;T&gt;</a></li><li><a·href="#impl-BorrowMut%3CT%3E-for-T">BorrowMut&lt;T&gt;</a></li><li><a·href="#impl-From%3CT%3E-for-T">From&lt;T&gt;</a></li><li><a·href="#impl-Into%3CU%3E-for-T">Into&lt;U&gt;</a></li><li><a·href="#impl-IntoIterator-for-I">IntoIterator</a></li><li><a·href="#impl-TryFrom%3CU%3E-for-T">TryFrom&lt;U&gt;</a></li><li><a·href="#impl-TryInto%3CU%3E-for-T">TryInto&lt;U&gt;</a></li></ul></section><h2><a·href="index.html">In·alloc::collections::btree_set</a></h2></div></nav><div·class="sidebar-resizer"></div>1 <!DOCTYPE·html><html·lang="en"><head><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.write(`<link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../../static.files/SourceSerif4-Regular-46f98efaafac5295.ttf.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../../static.files/FiraSans-Regular-018c141bf0843ffd.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../../static.files/FiraSans-Medium-8f9a781e4970d388.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../../static.files/SourceCodePro-Regular-562dcc5011b6de7d.ttf.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../../static.files/SourceCodePro-Semibold-d899c5a5c4aeb14a.ttf.woff2">`)</script><link·rel="stylesheet"·href="../../../static.files/normalize-76eba96aa4d2e634.css"><link·rel="stylesheet"·href="../../../static.files/rustdoc-35f9e32502181f1e.css"><meta·name="rustdoc-vars"·data-root-path="../../../"·data-static-root-path="../../../static.files/"·data-current-crate="alloc"·data-themes=""·data-resource-suffix="1.78.0"·data-rustdoc-version="1.78.0"·data-channel="1.78.0"·data-search-js="search-42d8da7a6b9792c2.js"·data-settings-js="settings-4313503d2e1961c2.js"·><script·src="../../../static.files/storage-4c98445ec4002617.js"></script><script·defer·src="sidebar-items1.78.0.js"></script><script·defer·src="../../../static.files/main-12cf3b4f4f9dc36d.js"></script><noscript><link·rel="stylesheet"·href="../../../static.files/noscript-04d5337699b92874.css"></noscript><link·rel="alternate·icon"·type="image/png"·href="../../../static.files/favicon-16x16-8b506e7a72182f1c.png"><link·rel="alternate·icon"·type="image/png"·href="../../../static.files/favicon-32x32-422f7d1d52889060.png"><link·rel="icon"·type="image/svg+xml"·href="../../../static.files/favicon-2c020d218678b618.svg"></head><body·class="rustdoc·struct"><!--[if·lte·IE·11]><div·class="warning">This·old·browser·is·unsupported·and·will·most·likely·display·funky·things.</div><![endif]--><nav·class="mobile-topbar"><button·class="sidebar-menu-toggle"·title="show·sidebar"></button><a·class="logo-container"·href="../../../alloc/index.html"><img·class="rust-logo"·src="../../../static.files/rust-logo-151179464ae7ed46.svg"·alt=""></a></nav><nav·class="sidebar"><div·class="sidebar-crate"><a·class="logo-container"·href="../../../alloc/index.html"><img·class="rust-logo"·src="../../../static.files/rust-logo-151179464ae7ed46.svg"·alt="logo"></a><h2><a·href="../../../alloc/index.html">alloc</a><span·class="version">1.78.0</span></h2></div><h2·class="location"><a·href="#">ExtractIf</a></h2><div·class="sidebar-elems"><section><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">Debug</a></li><li><a·href="#impl-FusedIterator-for-ExtractIf%3C'_,+T,+F,+A%3E">FusedIterator</a></li><li><a·href="#impl-Iterator-for-ExtractIf%3C'_,+T,+F,+A%3E">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">!UnwindSafe</a></li><li><a·href="#impl-Freeze-for-ExtractIf%3C'a,+T,+F,+A%3E">Freeze</a></li><li><a·href="#impl-RefUnwindSafe-for-ExtractIf%3C'a,+T,+F,+A%3E">RefUnwindSafe</a></li><li><a·href="#impl-Send-for-ExtractIf%3C'a,+T,+F,+A%3E">Send</a></li><li><a·href="#impl-Sync-for-ExtractIf%3C'a,+T,+F,+A%3E">Sync</a></li><li><a·href="#impl-Unpin-for-ExtractIf%3C'a,+T,+F,+A%3E">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">Any</a></li><li><a·href="#impl-Borrow%3CT%3E-for-T">Borrow&lt;T&gt;</a></li><li><a·href="#impl-BorrowMut%3CT%3E-for-T">BorrowMut&lt;T&gt;</a></li><li><a·href="#impl-From%3CT%3E-for-T">From&lt;T&gt;</a></li><li><a·href="#impl-Into%3CU%3E-for-T">Into&lt;U&gt;</a></li><li><a·href="#impl-IntoIterator-for-I">IntoIterator</a></li><li><a·href="#impl-TryFrom%3CU%3E-for-T">TryFrom&lt;U&gt;</a></li><li><a·href="#impl-TryInto%3CU%3E-for-T">TryInto&lt;U&gt;</a></li></ul></section><h2><a·href="index.html">In·alloc::collections::btree_set</a></h2></div></nav><div·class="sidebar-resizer"></div>
2 ····<main><div·class="width-limiter"><nav·class="sub"><form·class="search-form"><span></span><div·id="sidebar-button"·tabindex="-1"><a·href="../../../alloc/all.html"·title="show·sidebar"></a></div><input·class="search-input"·name="search"·aria-label="Run·search·in·the·documentation"·autocomplete="off"·spellcheck="false"·placeholder="Click·or·press·‘S’·to·search,·‘?’·for·more·options…"·type="search"><div·id="help-button"·tabindex="-1"><a·href="../../../help.html"·title="help">?</a></div><div·id="settings-menu"·tabindex="-1"><a·href="../../../settings.html"·title="settings"><img·width="22"·height="22"·alt="Change·settings"·src="../../../static.files/wheel-7b819b6101059cd0.svg"></a></div></form></nav><section·id="main-content"·class="content"><div·class="main-heading"><h1>Struct·<a·href="../../index.html">alloc</a>::<wbr><a·href="../index.html">collections</a>::<wbr><a·href="index.html">btree_set</a>::<wbr><a·class="struct"·href="#">ExtractIf</a><button·id="copy-path"·title="Copy·item·path·to·clipboard"><img·src="../../../static.files/clipboard-7571035ce49a181d.svg"·width="19"·height="18"·alt="Copy·item·path"></button></h1><span·class="out-of-band"><a·class="src"·href="../../../src/alloc/collections/btree/set.rs.html#1270-1283">source</a>···<button·id="toggle-all-docs"·title="collapse·all·docs">[<span>&#x2212;</span>]</button></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">where2 ····<main><div·class="width-limiter"><nav·class="sub"><form·class="search-form"><span></span><div·id="sidebar-button"·tabindex="-1"><a·href="../../../alloc/all.html"·title="show·sidebar"></a></div><input·class="search-input"·name="search"·aria-label="Run·search·in·the·documentation"·autocomplete="off"·spellcheck="false"·placeholder="Click·or·press·‘S’·to·search,·‘?’·for·more·options…"·type="search"><div·id="help-button"·tabindex="-1"><a·href="../../../help.html"·title="help">?</a></div><div·id="settings-menu"·tabindex="-1"><a·href="../../../settings.html"·title="settings"><img·width="22"·height="22"·alt="Change·settings"·src="../../../static.files/wheel-7b819b6101059cd0.svg"></a></div></form></nav><section·id="main-content"·class="content"><div·class="main-heading"><h1>Struct·<a·href="../../index.html">alloc</a>::<wbr><a·href="../index.html">collections</a>::<wbr><a·href="index.html">btree_set</a>::<wbr><a·class="struct"·href="#">ExtractIf</a><button·id="copy-path"·title="Copy·item·path·to·clipboard"><img·src="../../../static.files/clipboard-7571035ce49a181d.svg"·width="19"·height="18"·alt="Copy·item·path"></button></h1><span·class="out-of-band"><a·class="src"·href="../../../src/alloc/collections/btree/set.rs.html#1270-1283">source</a>···<button·id="toggle-all-docs"·title="collapse·all·docs">[<span>&#x2212;</span>]</button></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.78.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
3 ····T:·'a,3 ····T:·'a,
4 ····F:·'a·+·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(<a·class="primitive"·href="../../../core/primitive.reference.html">&amp;T</a>)·-&gt;·<a·class="primitive"·href="../../../core/primitive.bool.html">bool</a>,</div>{·<span·class="comment">/*·private·fields·*/</span>·}</code></pre><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>btree_extract_if</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/70530">#70530</a>)</span></div></span><details·class="toggle·top-doc"·open><summary·class="hideme"><span>Expand·description</span></summary><div·class="docblock"><p>An·iterator·produced·by·calling·<code>extract_if</code>·on·BTreeSet.</p>4 ····F:·'a·+·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(<a·class="primitive"·href="https://doc.rust-lang.org/1.78.0/core/primitive.reference.html">&amp;T</a>)·-&gt;·<a·class="primitive"·href="[·...·truncated·by·diffoscope;·len:·32,·SHA:·63d052a8ced32bf927ffadd7e884c08caf4970e85dfdf6be0e568d49b174da96·...·]/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>
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-ExtractIf%3C'_,+T,+F,+A%3E"·class="impl"><a·class="src·rightside"·href="../../../src/alloc/collections/btree/set.rs.html#1286-1294">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">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-ExtractIf%3C'_,+T,+F,+A%3E"·class="impl"><a·class="src·rightside"·href="../../../src/alloc/collections/btree/set.rs.html#1286-1294">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.78.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
6 ····T:·<a·class="trait"·href="../../fmt/trait.Debug.html"·title="trait·alloc::fmt::Debug">Debug</a>,6 ····T:·<a·class="trait"·href="../../fmt/trait.Debug.html"·title="trait·alloc::fmt::Debug">Debug</a>,
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;T</a>)·-&gt;·<a·class="primitive"·href="../../../core/primitive.bool.html">bool</a>,</di[·...·truncated·by·diffoscope;·len:·1422,·SHA:·68903dab3a8a5adc099ef93587e3cd64557c1675872a2b8efa56fd98faa5b9ce·...·]/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">where7 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(<a·class="primitive"·href="https://doc.rust-lang.org/1.78.0/core/primitive.reference.html">&amp;T</a>)·-&gt;·<a·class="primitive"·href="[·...·truncated·by·diffoscope;·len:·1542,·SHA:·82ffb32b9d34932ce7a6534e8cc314a295deb6b493744df99eaf201c98f231cc·...·]/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
8 ····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:·2506,·SHA:·fcd22f8a02ec2010393a48efc7209c15179062302a2cbeb80652f17463cafe88·...·]/core/primitive.usize.html">usize</a>&gt;(8 ····F:·'a·+·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(<a·class="primitive"·href="https://doc.rust-lang.org/1.78.0/core/primitive.reference.html">&amp;T</a>)·-&gt;·<a·class="primitive"·href="[·...·truncated·by·diffoscope;·len:·2866,·SHA:·d07ed8260df3de4160a9225daca5ebcc31eaad5ac368cf8f4fe908445b4243dc·...·]/core/primitive.usize.html">usize</a>&gt;(
9 ····&amp;mut·self9 ····&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::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">where10 )·-&gt;·<a·class="enum"·href="https://doc.rust-lang.org/1.78.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.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title=[·...·truncated·by·diffoscope;·len:·381,·SHA:·88c48923c9b7ea5cc47c1087c60e09656e81d4671c58071ba2bef826335388bc·...·]/core/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[·...·truncated·by·diffoscope;·len:·842,·SHA:·f7c1ca2ff3e425a8295c41d4d2fe540d4a3cb1e7032a9d04d8aed936964c71b6·...·]/core/primitive.usize.html">usize</a><div·class="where">where11 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></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:·89791450da70cbd536c3cf8fbf2dd9891668362f9a252d3ee098222d19960bae·...·]/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/t[·...·truncated·by·diffoscope;·len:·693,·SHA:·a0deafb68573233cf98843dcb8980b408fa28f99c350115f667afd7858ad6f7e·...·]/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.78.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:·84ae0beb16240102bae2355bb8c543b17f3f107e3c06b320839aa401eebb1945·...·]/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#metho[·...·truncated·by·diffoscope;·len:·3024,·SHA:·28bd88719f8c6dacf69b206ecda434ff3ac19011adf99793edd5fafa883cbd71·...·]/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.78.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.78.0/cor[·...·truncated·by·diffoscope;·len:·3504,·SHA:·6d21b6d637e0b2e9953a37a26fd19e00da089147d4acaf696c94d448de4ce419·...·]/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.78.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="[·...·truncated·by·diffoscope;·len:·698,·SHA:·4ac7445a1207207aeda1789f31c5036d8905fa206c83a58ca48662c081a68134·...·]/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.78.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:·e83c903581753673e083ce8dd809879a2fc81ab3050eb6db267d7fa26b15e035·...·]/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.78.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"·[·...·truncated·by·diffoscope;·len:·1137,·SHA:·10378641f30fbaa3b3d8ba8984f91955195f5a0ddb70a41cc9ff99666b50a36f·...·]/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.78.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.78.0/core/iter/traits/it[·...·truncated·by·diffoscope;·len:·1329,·SHA:·d9299c8edc606ed82f24d61ce441bec451141d684c2a9a75074f5b19c57f196c·...·]/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.78.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="../..[·...·truncated·by·diffoscope;·len:·574,·SHA:·b9001dd3131b1425179c94853e1b90fff0f7169b9570e86cd50c6b7fbf1ee8a5·...·]/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.78.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:·98627729f77dcf1c9d258f343354ba600b7134c6b3929080f231e8de7155b70b·...·]/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.78.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.78.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.78.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"·[·...·truncated·by·diffoscope;·len:·375,·SHA:·fa2a17b1aaf7dbc4e89f728d099c0a475adcd5ff79e4791795d7c4df5fc2ccec·...·]/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.78.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:·7301b6beba7b6885849be90a625df68ef739a5374af456c51fe2e81d91a25363·...·]/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.78.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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::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="S[·...·truncated·by·diffoscope;·len:·234,·SHA:·d75758e0f8262eeea27445cec43f13d84f0c02ba4e03c0c54d041f9ab1965e0f·...·]/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.78.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:·98f6effefa44d759c249143d83623f0055d937382bfc398b7e1f5e92cd413657·...·]/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.78.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::Iter[·...·truncated·by·diffoscope;·len:·772,·SHA:·9009d5c023150c1a97b2d18e30d176e7ff2e48673ad0e4665367958e752bf827·...·]/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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·916,·SHA:·30d0b2a76513c5a880e9aee43e92b18805845cfcfe5783f62dc090167a439e63·...·]/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.78.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:[·...·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·element29 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·140,·SHA:·752f473b57e7444ebfddf5ea7fd40a332e83ec55524a6c31b5ee0f82a5dea819·...·]/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"·tit[·...·truncated·by·diffoscope;·len:·393,·SHA:·7c1da0b93b40e2b4f823a0d24b5a27f092ffdb68175a9c14fe21a97d84bb2244·...·]/core/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.78.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:·76aa2ad154f88085ee3f8a22721a7e6812680bac785d19059532407f50da1801·...·]/core/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.78.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:·884,·SHA:·96005685f2d5bf532d7af03cf747a50bdbe5efffccc579afe197789e4cd44a54·...·]/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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·1052,·SHA:·110b47c7083083d565fcfc89337fddc8e5c87e81b2f720f3f7b0ded55e8500fb·...·]/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.78.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"·ti[·...·truncated·by·diffoscope;·len:·372,·SHA:·02bccd69f3cf4a08b24b66a0c9afb8ac49ebd0e9a7d5a183641b471189a35df3·...·]/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.78.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:·8464264e074dde5d84f0414ab3b5b2d8da83f3c9e3ca04c45458241580a8c80d·...·]/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"·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>·methods35 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.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.78.0/core/iter/adapte[·...·truncated·by·diffoscope;·len:·175,·SHA:·16fe7225bf05b478e2828b347c3d23ded9a22f89d8887a2c65d9f7b3faf1b0e7·...·]/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"·t[·...·truncated·by·diffoscope;·len:·402,·SHA:·60d233d0587f535c8bae5118522baa81ef2524d4168f9e142529a37902d8e8c4·...·]/core/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.78.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:·00ccbb673c11ed48d8c6aa2a3f8984fb298202e7bccfa42f1ac21290fcc0fb06·...·]/core/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.78.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:·1042,·SHA:·0900235f7b60bdd90fbf9718324068ecf230199603f19da2c38cad64ed6915ff·...·]/core/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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·1234,·SHA:·3b805567411cdcebed740f9e8d400dbe7fb487504f40e284544a140155090fdf·...·]/core/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.78.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:[·...·truncated·by·diffoscope;·len:·890,·SHA:·552b3dd2132886d024e4d5bd2554611e25c1f068adaaf23ecf80da81d31997ef·...·]/core/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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·1058,·SHA:·b390dbdda8d7e93604b5ecd906a93efd03fe19bdaf41cf12893fd361bf974307·...·]/core/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.78.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::Iter[·...·truncated·by·diffoscope;·len:·971,·SHA:·491a83328e39b23cf5191ed5cb6bf83f1a62c9405ed5c39c58117b227b39b16c·...·]/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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·1163,·SHA:·5772149166d344bf8fa5ebbd9db8693a8f2e5f031c50338e8f1523ef72f814d6·...·]/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.Iter[·...·truncated·by·diffoscope;·len:·639,·SHA:·e62b3f87b06b061e799e72ab8f04c531f1c6f241266260eaab33ea2b793dd8d2·...·]/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.78.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:·6216516fe581c401abda3c95818192e8f030e2008c9bbdbaafebba16f33ea9bd·...·]/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.78.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="Stab[·...·truncated·by·diffoscope;·len:·392,·SHA:·7d73eca41cdb0c170bd03419f3563f3fe9e70e11494db546e781d302d3cd5636·...·]/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.78.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:·485843399c56e24bdf020ff0610d0ce1f62fbac5530d9880a1a7417105e3d70f·...·]/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.78.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/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,·but48 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(<a·class="primitive"·href="https://doc.rust-lang.org/1.78.0/core/primitive.reference.html">&amp;mut·St</a>,·Self::<a·class="associatedty[·...·truncated·by·diffoscope;·len:·449,·SHA:·f12c268a8a8111b9e7126ad78bf5523a63733caa63d187c4fe792309ea41acdf·...·]/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">Rea[·...·truncated·by·diffoscope;·len:·570,·SHA:·02034aae893b799fa017b2d71546332d96a823cd4ba05c14089559819f3dd720·...·]/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.78.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.78.0/core/iter/trai[·...·truncated·by·diffoscope;·len:·690,·SHA:·371190e5c1bf9b7dde6e84447965a69946212b977b9eb6d89048fbe34c5dda1c·...·]/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.78.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.78.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::Iter[·...·truncated·by·diffoscope;·len:·808,·SHA:·4d1f54658fd1c005b101a2e27b0da3c6ee0cbe2d891660c65470bfec01fa46f6·...·]/core/iter/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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·976,·SHA:·2a9182f6fe88e0b8a9b1ae1f46cace940cc0b8736033c354c0f0ccbf1c196e7a·...·]/core/iter/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.78.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[·...·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>·over54 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;[Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtyp[·...·truncated·by·diffoscope;·len:·135,·SHA:·0b06a6094d42ccbc8bce5b01c4383961fe7f1967f05e4c9f1ff33e71e425fb26·...·]/core/primitive.array.html">N</a>])·-&gt;·R,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iter_map_windows</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/87155">#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.78.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"·titl[·...·truncated·by·diffoscope;·len:·358,·SHA:·d83146d48347da8e04ce6fcac96b0b1500203504f596d32c16a5a1493dd375e1·...·]/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.78.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:·0d33056cee8a4f9b70b573c0adecc2f3599a2f8d9fa9f2c2044e9118ab134f73·...·]/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="varia[·...·truncated·by·diffoscope;·len:·697,·SHA:·e9288f8d879e78d7e79eb2c4255eb99308efd98061b1221968fb17de11019b2e·...·]/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.78.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.78.0/core/op[·...·truncated·by·diffoscope;·len:·841,·SHA:·9cba1b175fb3726d7f1f01da9be7c1a56568a68e4ce7915a468b730902daf8d3·...·]/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.78.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:·790,·SHA:·19293cf7305d77d7ccd51618427cff5e3edb06f162c23796ed392e0ac792f65e·...·]/core/primitive.reference.html">&amp;mut·Self</a><div·class="where">where59 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·934,·SHA:·ea20d2e0fe9388580ea08100baa9120b5e9b6cb48f43fc846f15db8b9649e7f6·...·]/core/primitive.reference.html">&amp;mut·Self</a><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[·...·truncated·by·diffoscope;·len:·427,·SHA:·cf371b2193fdcddf87cfe994db4d3e364336bb766b15dcfdd0ac7aabbd72e715·...·]/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.78.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.78.0/core/it[·...·truncated·by·diffoscope;·len:·523,·SHA:·97064c705f6f4bdf74469c54fabcf580d21893127d1b4cd9a9c1018a717ef153·...·]/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.78.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.78.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[·...·truncated·by·diffoscope;·len:·584,·SHA:·d76c3fcf86c63211032a6b22dc5924ef552b1ad26b12e19f15d2f1d5b3d7e394·...·]/core/primitive.reference.html">&amp;mut·E</a><div·class="where">where62 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.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.78.0/core/iter/tr[·...·truncated·by·diffoscope;·len:·728,·SHA:·01937c2dc314c259495665570ae249c94b4a5b0719718f5f1188e6fc64ecf487·...·]/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.78.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.78.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_coll[·...·truncated·by·diffoscope;·len:·855,·SHA:·fa6f33be71e9184cfecc555b0b832d1a929285d35b47b1212b2176ac555731a1·...·]/core/primitive.tuple.html">(B,·B)</a><div·class="where">where64 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></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:·00bd47017b1bdd1bbe2c3fc932d955a8aa2f7f5eff8c00e3001ae28a982a5883·...·]/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.78.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="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;,66 ····B:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/default/trait.Default.html"·title="trait·core::default::Default">Default</a>·+·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/collect/trait.Extend.html"·title="trait·core::iter::traits::collec[·...·truncated·by·diffoscope;·len:·95,·SHA:·8b3be1d0042cae0550f865faf5849221240bdf04eb1b2107605b72d48c3ad29c·...·]/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:[·...·truncated·by·diffoscope;·len:·804,·SHA:·f996a0de22717256dd2ecf4d61d81611f9c7dfe5a493e4b882abb4030f3c80f9·...·]/core/primitive.bool.html">bool</a><div·class="where">where67 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·972,·SHA:·6de765542031617a9c28ac98fe6df619e58e62d9c65ec5b1c185a7152b8944e5·...·]/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.78.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::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,69 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·135,·SHA:·51ff5f5c7ebd8440623ea71b125c5a5837e809e308fe1a13fbe19cddb941dbd9·...·]/core/primitive.bool.html">bool</a>,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iter_is_partitioned</code>&nbsp;<a·href="https://github.com/rust-lang/rust/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_fold"·class="method·trait-impl"><span·class="rightside"><span·class="sinc[·...·truncated·by·diffoscope;·len:·247,·SHA:·bd8fce4ee431c619c98780c4d520e8db93f1e034f12843ffaff5744b7ce2190b·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_fold"·class="fn">try_fold</a>&lt;B,·F,·R&gt;(&amp;mut·self,·init:·B,·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.78.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:·2c74873f4e5ba70004a1c7edd1cc3f9e2d91271295dd1591e2d26848df4c02ba·...·]/core/iter/traits/iterator/trait.Iterator.html#method.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
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.78.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>(B,·Self::<a·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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(B,·Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.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·=·B&gt;,</div></h4></section></summary><div·class='docblock'>An·iterator·method·that·applies·a·function·as·long·as·it·returns73 ····R:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.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
74 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:·7b4fc32e7634ae85c682a97099be267837713d7e4831893b617ca652f57a89da·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_for_each"·class="fn">try_for_each</a>&lt;F,·R&gt;(&amp;mut·self,·f:·F)·-&gt;·R<div·class="where">where74 successfully,·producing·a·single,·final·value.·<a·href="https://doc.rust-lang.org/1.78.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:·52912e82c4b0a760d06f77eb4ee3a59ba70dd76cb532954900c73ae94c652674·...·]/core/iter/traits/iterator/trait.Iterator.html#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
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.78.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::Item">Item</a>)·-&gt;·R,76 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.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·=·<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·the77 ····R:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.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.78.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
78 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:·5cfb1ce7ac10ff40c8d1d0f019b60fc4735736254c2d8357ed62287e51b1ac32·...·]/core/iter/traits/iterator/trait.Iterator.html#method.fold"·class="fn">fold</a>&lt;B,·F&gt;(self,·init:·B,·f:·F)·-&gt;·B<div·class="where">where78 iterator,·stopping·at·the·first·error·and·returning·that·error.·<a·href="https://doc.rust-lang.org/1.78.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:·1d6c4809cea8748e901d3f94777f450d430f3161f6ac05ed1c178d9327f966a3·...·]/core/iter/traits/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
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.78.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;·B,</div></h4></section></summary><div·class='docblock'>Folds·every·element·into·an·accumulator·by·applying·an·operation,80 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(B,·Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·B,</div></h4></section></summary><div·class='docblock'>Folds·every·element·into·an·accumulator·by·applying·an·operation,
81 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:·2c738ecc68200afa2467bef085de14dcb642dbaac77c4529948f5e259e66691d·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;<div·class="where">where81 returning·the·final·result.·<a·href="https://doc.rust-lang.org/1.78.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:·b60215068a6d9721be05f81098c51167d7138c4042f140cad42f77c4df43f597·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&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.78.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::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·reducing83 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·352,·SHA:·e7c3c296abe2c0a183967153e4ae7fd50bafa2ae7088e3e78b3b48fee253adc6·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::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
84 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:·c3f1d50e276def36966943119961a20b09cab3be33483fe4d48d7f322489534b·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_reduce"·class="fn">try_reduce</a>&lt;F,·R&gt;(84 operation.·<a·href="https://doc.rust-lang.org/1.78.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:·7a18fdd041b1a001b4a8feb289ee127fd9240232239269eb35dc3b8f74783ec9·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_reduce"·class="fn">try_reduce</a>&lt;F,·R&gt;(
85 ····&amp;mut·self,85 ····&amp;mut·self,
86 ····f:·F86 ····f:·F
87 )·-&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">where87 )·-&gt;·&lt;&lt;R·as·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&gt;::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/ops/try_trait/trait.Try.html#associatedtype.Residual"·title="type[·...·truncated·by·diffoscope;·len:·754,·SHA:·6fb4dfdb6b4da68921c1e7f8b75d99cf293d58318d684a840254ce9576957bea·...·]/core/ops/try_trait/trait.Residual.html#associatedtype.TryType"·title="type·core::ops::try_trait::Residual::TryType">TryType</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.78.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:·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:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·140,·SHA:·c27972e6fa3464c9476eaa185e8657edb6bb294f148403f3d079285294a9f909·...·]/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·=·Self::<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 ····R:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.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.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;,
91 ····&lt;R·as·<a·class="trait"·href="../../../core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</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·the91 ····&lt;R·as·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&gt;::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/ops/try_trait/trait.Try.html#associatedtype.Residual"·title="type[·...·truncated·by·diffoscope;·len:·412,·SHA:·22b8cbb007e5cce82b9d13a65bfa56aa8d83c32541fac25f4d9b3857b0540908·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;&gt;,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iterator_try_reduce</code>&nbsp;<a·href="https://github.com/rust-lang/rust/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
92 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:·1a00be8efe0263bc0d09f5d47be04890b1d27a20c3429d1f4531805a03591fdb·...·]/core/primitive.bool.html">bool</a><div·class="where">where92 closure·returns·a·failure,·the·failure·is·propagated·back·to·the·caller·immediately.·<a·href="https://doc.rust-lang.org/1.78.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:·bc0d658d56e348823de15386e1cd4ab49109f3a7a055a4573a19391b47071193·...·]/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.78.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:·850,·SHA:·c15cbdf9d3f54700b6eac2f717541f7f5a3cf811d73f48ef7118096c1a240102·...·]/core/primitive.bool.html">bool</a><div·class="where">where94 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·1018,·SHA:·e61cd6bdd36729cc38e57fcaea2ccb91a23a5acbda3c8986071f19bf1ecfc52a·...·]/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.78.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:·980,·SHA:·80fef1533a0c8783ee74be0f29290d7dec960bcd19223b11639b3e6377220faa·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;<div·class="where">where96 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·1172,·SHA:·e64ab74d116d286191ad43d9d9e10411fc011c23724aa806e9a8f9b0be0757e3·...·]/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.78.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
98 ····P:·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;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:·f441e2966ff8db4214e57fcd74f81262d6e371aa51cea97ebde5921e81b4da79·...·]/core/option/enum.Option.html"·title="enum·core::option::Option">Option</a>&lt;B&gt;<div·class="where">where98 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·1051,·SHA:·ecc0b8fccd861464760f9ae047ff6ab98c91a1db010cb5fa59a8c2ab883db7c4·...·]/core/option/enum.Option.html"·title="enum·core::option::Option">Option</a>&lt;B&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.78.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::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·returns100 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·130,·SHA:·130a13019dc175d02304b4f550157e2f13ac15c2f25a979c74161d10b146ab89·...·]/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
101 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:·ec4fb002625b166504031522e52a66812b279e6735a67cb718813205909c3fb7·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_find"·class="fn">try_find</a>&lt;F,·R&gt;(101 the·first·non-none·result.·<a·href="https://doc.rust-lang.org/1.78.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:·8ced1b10e78750774c5c8ed995ed83dcd13983aa75d329acf8069da106ab9f4a·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_find"·class="fn">try_find</a>&lt;F,·R&gt;(
102 ····&amp;mut·self,102 ····&amp;mut·self,
103 ····f:·F103 ····f:·F
104 )·-&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">where104 )·-&gt;·&lt;&lt;R·as·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&gt;::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/ops/try_trait/trait.Try.html#associatedtype.Residual"·title="type[·...·truncated·by·diffoscope;·len:·626,·SHA:·95f9831257b68862cbcbf54f0ad2ff4e597a4c9f763112d1da8a0897dadcf872·...·]/core/ops/try_trait/trait.Residual.html#associatedtype.TryType"·title="type·core::ops::try_trait::Residual::TryType">TryType</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.78.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;·R,106 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.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·=·<a·class="primitive"·href="../../../core/primitive.bool.html">bool</a>&gt;,107 ····R:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.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.78.0/core/primitive.bool.html">bool</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</[·...·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·returns108 ····&lt;R·as·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&gt;::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/ops/try_trait/trait.Try.html#associatedtype.Residual"·title="type[·...·truncated·by·diffoscope;·len:·412,·SHA:·22b8cbb007e5cce82b9d13a65bfa56aa8d83c32541fac25f4d9b3857b0540908·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;&gt;,</div></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
109 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">where109 the·first·true·result·or·the·first·error.·<a·href="https://doc.rust-lang.org/1.78.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:·fa9d94b216f6e4ce6035b4762e3bf17cb86a0272db0a55a056f05c68bcaeb0da·...·]/core/primitive.usize.html">usize</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.78.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>(Self::<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">where111 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·1190,·SHA:·882e9e9a037f916d0ed4aa6d749399e6e01ca81811eacfc54a484818cb5d5029·...·]/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 ····B:·<a·class="trait"·href="../../../core/cmp/trait.Ord.html"·title="trait·core::cmp::Ord">Ord</a>,112 ····B:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/cmp/trait.Ord.html"·title="trait·core::cmp::Ord">Ord</a>,
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.78.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::Iterator::Item">Item</a>)·-&gt;·B,</div></h4></section></summary><div·class='docblock'>Returns·the·element·that·gives·the·maximum·value·from·the114 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/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
115 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">where115 specified·function.·<a·href="https://doc.rust-lang.org/1.78.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:·0367b1bacc0a7d8e05f1c5181f8c4ea428f3f11edbae0e76811f3ef1d4925e41·...·]/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.78.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:[·...·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·the117 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·346,·SHA:·7113e4c2d65a123253bb18971efdc2d49241cfc2dd4c2b18e4cfa4e4d7d4140f·...·]/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
118 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">where118 specified·comparison·function.·<a·href="https://doc.rust-lang.org/1.78.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:·db89d4cca0becf2a4ab904adac2870de6fd83cfad5131f5a1431a67766274f81·...·]/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 ····B:·<a·class="trait"·href="../../../core/cmp/trait.Ord.html"·title="trait·core::cmp::Ord">Ord</a>,119 ····B:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/cmp/trait.Ord.html"·title="trait·core::cmp::Ord">Ord</a>,
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.78.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::Iterator::Item">Item</a>)·-&gt;·B,</div></h4></section></summary><div·class='docblock'>Returns·the·element·that·gives·the·minimum·value·from·the121 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/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
122 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">where122 specified·function.·<a·href="https://doc.rust-lang.org/1.78.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:·39ce6bc28062c0df48bff6a8faa3e4f2266988879092cf2970d2e9ee092742b0·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;<div·class="where">where
123 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,123 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.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:[·...·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·the124 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·346,·SHA:·7113e4c2d65a123253bb18971efdc2d49241cfc2dd4c2b18e4cfa4e4d7d4140f·...·]/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
125 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">where125 specified·comparison·function.·<a·href="https://doc.rust-lang.org/1.78.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:·64f5ac8109ab8e5164c24b53640d938d0bb2486cf55faea0ff483f1e9ad27c8f·...·]/core/primitive.tuple.html">(FromA,·FromB)</a><div·class="where">where
126 ····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;,126 ····FromA:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/default/trait.Default.html"·title="trait·core::default::Default">Default</a>·+·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/collect/trait.Extend.html"·title="trait·core::iter::traits::collect::Extend">Extend</a>&lt;A&gt;,
127 ····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;,127 ····FromB:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/default/trait.Default.html"·title="trait·core::default::Default">Default</a>·+·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/collect/trait.Extend.html"·title="trait·core::iter::traits::collect::Extend">Extend</a>&lt;B&gt;,
Max diff block lines reached; 83263/278864 bytes (29.86%) of diff not shown.
277 KB
./usr/share/doc/rust-web-doc/html/alloc/collections/btree_set/struct.Intersection.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="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.write(`<link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../../static.files/SourceSerif4-Regular-46f98efaafac5295.ttf.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../../static.files/FiraSans-Regular-018c141bf0843ffd.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../../static.files/FiraSans-Medium-8f9a781e4970d388.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../../static.files/SourceCodePro-Regular-562dcc5011b6de7d.ttf.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../../static.files/SourceCodePro-Semibold-d899c5a5c4aeb14a.ttf.woff2">`)</script><link·rel="stylesheet"·href="../../../static.files/normalize-76eba96aa4d2e634.css"><link·rel="stylesheet"·href="../../../static.files/rustdoc-35f9e32502181f1e.css"><meta·name="rustdoc-vars"·data-root-path="../../../"·data-static-root-path="../../../static.files/"·data-current-crate="alloc"·data-themes=""·data-resource-suffix="1.78.0"·data-rustdoc-version="1.78.0"·data-channel="1.78.0"·data-search-js="search-42d8da7a6b9792c2.js"·data-settings-js="settings-4313503d2e1961c2.js"·><script·src="../../../static.files/storage-4c98445ec4002617.js"></script><script·defer·src="sidebar-items1.78.0.js"></script><script·defer·src="../../../static.files/main-12cf3b4f4f9dc36d.js"></script><noscript><link·rel="stylesheet"·href="../../../static.files/noscript-04d5337699b92874.css"></noscript><link·rel="alternate·icon"·type="image/png"·href="../../../static.files/favicon-16x16-8b506e7a72182f1c.png"><link·rel="alternate·icon"·type="image/png"·href="../../../static.files/favicon-32x32-422f7d1d52889060.png"><link·rel="icon"·type="image/svg+xml"·href="../../../static.files/favicon-2c020d218678b618.svg"></head><body·class="rustdoc·struct"><!--[if·lte·IE·11]><div·class="warning">This·old·browser·is·unsupported·and·will·most·likely·display·funky·things.</div><![endif]--><nav·class="mobile-topbar"><button·class="sidebar-menu-toggle"·title="show·sidebar"></button><a·class="logo-container"·href="../../../alloc/index.html"><img·class="rust-logo"·src="../../../static.files/rust-logo-151179464ae7ed46.svg"·alt=""></a></nav><nav·class="sidebar"><div·class="sidebar-crate"><a·class="logo-container"·href="../../../alloc/index.html"><img·class="rust-logo"·src="../../../static.files/rust-logo-151179464ae7ed46.svg"·alt="logo"></a><h2><a·href="../../../alloc/index.html">alloc</a><span·class="version">1.78.0</span></h2></div><h2·class="location"><a·href="#">Intersection</a></h2><div·class="sidebar-elems"><section><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">Clone</a></li><li><a·href="#impl-Debug-for-Intersection%3C'_,+T,+A%3E">Debug</a></li><li><a·href="#impl-FusedIterator-for-Intersection%3C'_,+T,+A%3E">FusedIterator</a></li><li><a·href="#impl-Iterator-for-Intersection%3C'a,+T,+A%3E">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">Freeze</a></li><li><a·href="#impl-RefUnwindSafe-for-Intersection%3C'a,+T,+A%3E">RefUnwindSafe</a></li><li><a·href="#impl-Send-for-Intersection%3C'a,+T,+A%3E">Send</a></li><li><a·href="#impl-Sync-for-Intersection%3C'a,+T,+A%3E">Sync</a></li><li><a·href="#impl-Unpin-for-Intersection%3C'a,+T,+A%3E">Unpin</a></li><li><a·href="#impl-UnwindSafe-for-Intersection%3C'a,+T,+A%3E">UnwindSafe</a></li></ul><h3><a·href="#blanket-implementations">Blanket·Implementations</a></h3><ul·class="block·blanket-implementation"><li><a·href="#impl-Any-for-T">Any</a></li><li><a·href="#impl-Borrow%3CT%3E-for-T">Borrow&lt;T&gt;</a></li><li><a·href="#impl-BorrowMut%3CT%3E-for-T">BorrowMut&lt;T&gt;</a></li><li><a·href="#impl-From%3CT%3E-for-T">From&lt;T&gt;</a></li><li><a·href="#impl-Into%3CU%3E-for-T">Into&lt;U&gt;</a></li><li><a·href="#impl-IntoIterator-for-I">IntoIterator</a></li><li><a·href="#impl-ToOwned-for-T">ToOwned</a></li><li><a·href="#impl-TryFrom%3CU%3E-for-T">TryFrom&lt;U&gt;</a></li><li><a·href="#impl-TryInto%3CU%3E-for-T">TryInto&lt;U&gt;</a></li></ul></section><h2><a·href="index.html">In·alloc::collections::btree_set</a></h2></div></nav><div·class="sidebar-resizer"></div>1 <!DOCTYPE·html><html·lang="en"><head><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.write(`<link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../../static.files/SourceSerif4-Regular-46f98efaafac5295.ttf.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../../static.files/FiraSans-Regular-018c141bf0843ffd.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../../static.files/FiraSans-Medium-8f9a781e4970d388.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../../static.files/SourceCodePro-Regular-562dcc5011b6de7d.ttf.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../../static.files/SourceCodePro-Semibold-d899c5a5c4aeb14a.ttf.woff2">`)</script><link·rel="stylesheet"·href="../../../static.files/normalize-76eba96aa4d2e634.css"><link·rel="stylesheet"·href="../../../static.files/rustdoc-35f9e32502181f1e.css"><meta·name="rustdoc-vars"·data-root-path="../../../"·data-static-root-path="../../../static.files/"·data-current-crate="alloc"·data-themes=""·data-resource-suffix="1.78.0"·data-rustdoc-version="1.78.0"·data-channel="1.78.0"·data-search-js="search-42d8da7a6b9792c2.js"·data-settings-js="settings-4313503d2e1961c2.js"·><script·src="../../../static.files/storage-4c98445ec4002617.js"></script><script·defer·src="sidebar-items1.78.0.js"></script><script·defer·src="../../../static.files/main-12cf3b4f4f9dc36d.js"></script><noscript><link·rel="stylesheet"·href="../../../static.files/noscript-04d5337699b92874.css"></noscript><link·rel="alternate·icon"·type="image/png"·href="../../../static.files/favicon-16x16-8b506e7a72182f1c.png"><link·rel="alternate·icon"·type="image/png"·href="../../../static.files/favicon-32x32-422f7d1d52889060.png"><link·rel="icon"·type="image/svg+xml"·href="../../../static.files/favicon-2c020d218678b618.svg"></head><body·class="rustdoc·struct"><!--[if·lte·IE·11]><div·class="warning">This·old·browser·is·unsupported·and·will·most·likely·display·funky·things.</div><![endif]--><nav·class="mobile-topbar"><button·class="sidebar-menu-toggle"·title="show·sidebar"></button><a·class="logo-container"·href="../../../alloc/index.html"><img·class="rust-logo"·src="../../../static.files/rust-logo-151179464ae7ed46.svg"·alt=""></a></nav><nav·class="sidebar"><div·class="sidebar-crate"><a·class="logo-container"·href="../../../alloc/index.html"><img·class="rust-logo"·src="../../../static.files/rust-logo-151179464ae7ed46.svg"·alt="logo"></a><h2><a·href="../../../alloc/index.html">alloc</a><span·class="version">1.78.0</span></h2></div><h2·class="location"><a·href="#">Intersection</a></h2><div·class="sidebar-elems"><section><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">Clone</a></li><li><a·href="#impl-Debug-for-Intersection%3C'_,+T,+A%3E">Debug</a></li><li><a·href="#impl-FusedIterator-for-Intersection%3C'_,+T,+A%3E">FusedIterator</a></li><li><a·href="#impl-Iterator-for-Intersection%3C'a,+T,+A%3E">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">Freeze</a></li><li><a·href="#impl-RefUnwindSafe-for-Intersection%3C'a,+T,+A%3E">RefUnwindSafe</a></li><li><a·href="#impl-Send-for-Intersection%3C'a,+T,+A%3E">Send</a></li><li><a·href="#impl-Sync-for-Intersection%3C'a,+T,+A%3E">Sync</a></li><li><a·href="#impl-Unpin-for-Intersection%3C'a,+T,+A%3E">Unpin</a></li><li><a·href="#impl-UnwindSafe-for-Intersection%3C'a,+T,+A%3E">UnwindSafe</a></li></ul><h3><a·href="#blanket-implementations">Blanket·Implementations</a></h3><ul·class="block·blanket-implementation"><li><a·href="#impl-Any-for-T">Any</a></li><li><a·href="#impl-Borrow%3CT%3E-for-T">Borrow&lt;T&gt;</a></li><li><a·href="#impl-BorrowMut%3CT%3E-for-T">BorrowMut&lt;T&gt;</a></li><li><a·href="#impl-From%3CT%3E-for-T">From&lt;T&gt;</a></li><li><a·href="#impl-Into%3CU%3E-for-T">Into&lt;U&gt;</a></li><li><a·href="#impl-IntoIterator-for-I">IntoIterator</a></li><li><a·href="#impl-ToOwned-for-T">ToOwned</a></li><li><a·href="#impl-TryFrom%3CU%3E-for-T">TryFrom&lt;U&gt;</a></li><li><a·href="#impl-TryInto%3CU%3E-for-T">TryInto&lt;U&gt;</a></li></ul></section><h2><a·href="index.html">In·alloc::collections::btree_set</a></h2></div></nav><div·class="sidebar-resizer"></div>
2 ····<main><div·class="width-limiter"><nav·class="sub"><form·class="search-form"><span></span><div·id="sidebar-button"·tabindex="-1"><a·href="../../../alloc/all.html"·title="show·sidebar"></a></div><input·class="search-input"·name="search"·aria-label="Run·search·in·the·documentation"·autocomplete="off"·spellcheck="false"·placeholder="Click·or·press·‘S’·to·search,·‘?’·for·more·options…"·type="search"><div·id="help-button"·tabindex="-1"><a·href="../../../help.html"·title="help">?</a></div><div·id="settings-menu"·tabindex="-1"><a·href="../../../settings.html"·title="settings"><img·width="22"·height="22"·alt="Change·settings"·src="../../../static.files/wheel-7b819b6101059cd0.svg"></a></div></form></nav><section·id="main-content"·class="content"><div·class="main-heading"><h1>Struct·<a·href="../../index.html">alloc</a>::<wbr><a·href="../index.html">collections</a>::<wbr><a·href="index.html">btree_set</a>::<wbr><a·class="struct"·href="#">Intersection</a><button·id="copy-path"·title="Copy·item·path·to·clipboard"><img·src="../../../static.files/clipboard-7571035ce49a181d.svg"·width="19"·height="18"·alt="Copy·item·path"></button></h1><span·class="out-of-band"><span·class="since"·title="Stable·since·Rust·version·1.0.0">1.0.0</span>···<a·class="src"·href="../../../src/alloc/collections/btree/set.rs.html#254-260">source</a>···<button·id="toggle-all-docs"·title="collapse·all·docs">[<span>&#x2212;</span>]</button></span></div><pre·class="rust·item-decl"><code>pub·struct·Intersection&lt;'a,·T:·'a,·A:·<a·class="trait"·href="../../alloc/trait.Allocator.html"·title="trait·alloc::alloc::Allocator">Allocator</a>·+·<a·class="trait"·href="../../../core/clone/trait.Clone.html"·title="trait·core::clone::Clone">Clone</a>·=·<a·class="struct"·href="../../alloc/struct.Global.html"·title="struct·alloc::alloc::Global">Global</a>&gt;·{·<span·class="comment">/*·private·fields·*/</span>·}</code></pre><details·class="toggle·top-doc"·open><summary·class="hideme"><span>Expand·description</span></summary><div·class="docblock"><p>A·lazy·iterator·producing·elements·in·the·intersection·of·<code>BTreeSet</code>s.</p>2 ····<main><div·class="width-limiter"><nav·class="sub"><form·class="search-form"><span></span><div·id="sidebar-button"·tabindex="-1"><a·href="../../../alloc/all.html"·title="show·sidebar"></a></div><input·class="search-input"·name="search"·aria-label="Run·search·in·the·documentation"·autocomplete="off"·spellcheck="false"·placeholder="Click·or·press·‘S’·to·search,·‘?’·for·more·options…"·type="search"><div·id="help-button"·tabindex="-1"><a·href="../../../help.html"·title="help">?</a></div><div·id="settings-menu"·tabindex="-1"><a·href="../../../settings.html"·title="settings"><img·width="22"·height="22"·alt="Change·settings"·src="../../../static.files/wheel-7b819b6101059cd0.svg"></a></div></form></nav><section·id="main-content"·class="content"><div·class="main-heading"><h1>Struct·<a·href="../../index.html">alloc</a>::<wbr><a·href="../index.html">collections</a>::<wbr><a·href="index.html">btree_set</a>::<wbr><a·class="struct"·href="#">Intersection</a><button·id="copy-path"·title="Copy·item·path·to·clipboard"><img·src="../../../static.files/clipboard-7571035ce49a181d.svg"·width="19"·height="18"·alt="Copy·item·path"></button></h1><span·class="out-of-band"><span·class="since"·title="Stable·since·Rust·version·1.0.0">1.0.0</span>···<a·class="src"·href="../../../src/alloc/collections/btree/set.rs.html#254-260">source</a>···<button·id="toggle-all-docs"·title="collapse·all·docs">[<span>&#x2212;</span>]</button></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.78.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>
3 <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 <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>.
4 See·its·documentation·for·more.</p>4 See·its·documentation·for·more.</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-Intersection%3C'_,+T,+A%3E"·class="impl"><a·class="src·rightside"·href="../../../src/alloc/collections/btree/set.rs.html#1732-1746">source</a><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:·7528,·SHA:·700d043e06f6f5c565b959471deb4e5f574965306a06ee470077ccbd015c58b6·...·]/core/primitive.usize.html">usize</a>&gt;(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-Intersection%3C'_,+T,+A%3E"·class="impl"><a·class="src·rightside"·href="../../../src/alloc/collections/btree/set.rs.html#1732-1746">source</a><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.78.0/core/clone/trait.Clone.html"·title="trait·core::clone::Clone">Clone</a>&gt;·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/clone/trait.Clone.html"·title="trait·core::clone::Clone">Clone</a>·for·<a·class="struc[·...·truncated·by·diffoscope;·len:·8248,·SHA:·e707a90ec3e8d17812c721c231d6b5cd43d877f7e699c5b42604d3dcce9c22c5·...·]/core/primitive.usize.html">usize</a>&gt;(
6 ····&amp;mut·self6 ····&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.78.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.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title=[·...·truncated·by·diffoscope;·len:·381,·SHA:·88c48923c9b7ea5cc47c1087c60e09656e81d4671c58071ba2bef826335388bc·...·]/core/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:·746,·SHA:·99cc415a31b91c57f7eeb82ad0d2d1ba424489bee49de37c86a4ea21c663ccda·...·]/core/primitive.usize.html">usize</a><div·class="where">where8 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experiment[·...·truncated·by·diffoscope;·len:·866,·SHA:·945d2d86f0c4c5ca3e3ee3b181d18b2bbea57ee1a5a7efe16c0c915a5bf2c3ad·...·]/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:·597,·SHA:·be3babc2f9096ec8bacc872099ff5a03375deb1461cf1d651cfbfb072fb72581·...·]/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.78.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:·741,·SHA:·f3078cc3fddd62af2c1a8814c5854bb49f40b79e4fbc9b3addf5862a72370f82·...·]/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:·2928,·SHA:·dd9dc6c66a208fe3371784c1d048fbccf7b880bff34f93a1694f746d814568db·...·]/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.78.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.78.0/cor[·...·truncated·by·diffoscope;·len:·3408,·SHA:·b62c6ed65b31a8b555c142d9d15f3ce30e5c76ad2630a0e5a9b13cfd478c6eee·...·]/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.78.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"><a·class="src·rightside"·href="../../../src/core/it[·...·truncated·by·diffoscope;·len:·602,·SHA:·cfe4c4d300dddc2abdc2f8194eb969c68b2240c28239969b5be2af6a564ed8cc·...·]/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.78.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"><a·class="src·rightside"·hr[·...·truncated·by·diffoscope;·len:·746,·SHA:·f1f70d650c102c8658e13890c7dbfc87418f07e7b522246fb579ec434ef64f7c·...·]/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.78.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:·1041,·SHA:·a281d174c9671021427f0b458ac94e87746ac44730475aa725652c6c15e2b972·...·]/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.78.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.78.0/core/iter/traits/it[·...·truncated·by·diffoscope;·len:·1233,·SHA:·f677df2d893dfe0dc1a9d31ebb0ba71a346d265781813e0d664d3f18369b6163·...·]/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.78.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:·b9001dd3131b1425179c94853e1b90fff0f7169b9570e86cd50c6b7fbf1ee8a5·...·]/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.78.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:·98627729f77dcf1c9d258f343354ba600b7134c6b3929080f231e8de7155b70b·...·]/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.78.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.78.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.78.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"><a·class="src·rightside"·href="../../../src/[·...·truncated·by·diffoscope;·len:·279,·SHA:·f2c34c2e64e77c66684f837812ebc4a94c81b2ad5862cc0131f80c3ce89e008a·...·]/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.78.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"><a·class="src·rights[·...·truncated·by·diffoscope;·len:·375,·SHA:·58419346f92e1709dadb70cc3cf356e3cd27972451bdc6b4fc4267e6f7e8bdae·...·]/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.78.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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::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:·d75758e0f8262eeea27445cec43f13d84f0c02ba4e03c0c54d041f9ab1965e0f·...·]/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.78.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:·98f6effefa44d759c249143d83623f0055d937382bfc398b7e1f5e92cd413657·...·]/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.78.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:·676,·SHA:·9ae42ed293737a3dd44c1ee9d98c6aabb1552fbb9d203cb852ee9fcc7834a6ca·...·]/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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·820,·SHA:·a664bbcbc0891663662e4eb7b4394d0fcd72e568136fc4d34097fea242cc32e7·...·]/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.78.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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·140,·SHA:·752f473b57e7444ebfddf5ea7fd40a332e83ec55524a6c31b5ee0f82a5dea819·...·]/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"><a·class="src·rightside"·href="../../../src/cor[·...·truncated·by·diffoscope;·len:·297,·SHA:·f01e44d4caf6c6ad80b37656b9300f7111340711dcd74d70867b5a652dbfb538·...·]/core/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.78.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"><a·class="src·rightside[·...·truncated·by·diffoscope;·len:·393,·SHA:·2e2aa7c9c9c087e7b346da376749064ab8c1894795a2f0a0f646cdc8c7bea997·...·]/core/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.78.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:·788,·SHA:·b788f412af946d2bd7646ba39a8c316ebfa88109f9626dbad9bf9964f975cd0c·...·]/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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·956,·SHA:·faba0521e870dbbd26d466fadba3522e7d29013a9b86376fffafffac11a57e0e·...·]/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.78.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"><a·class="src·rightside"·href="../../../src/co[·...·truncated·by·diffoscope;·len:·276,·SHA:·e337ee1b810d3ec0480569c4ed323ebf0a2315c8ae3c522a73fcca3aa8e6efb3·...·]/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.78.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"><a·class="src·rightsid[·...·truncated·by·diffoscope;·len:·372,·SHA:·03eea0861575eb80d3f7a87a3ba747adb1a33fe7e9ce72aa2172e7a287c63a94·...·]/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.78.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.78.0/core/iter/adapte[·...·truncated·by·diffoscope;·len:·175,·SHA:·16fe7225bf05b478e2828b347c3d23ded9a22f89d8887a2c65d9f7b3faf1b0e7·...·]/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"><a·class="src·rightside"·href="../../../src/c[·...·truncated·by·diffoscope;·len:·306,·SHA:·a9bc004bf639fa188165a336061c6c98ec7ff9d266a18f10db200dfa9a880b88·...·]/core/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.78.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"><a·class="src·rightsi[·...·truncated·by·diffoscope;·len:·402,·SHA:·7689a974f800fd069d1b4453ef62d6d6ad1b654462d624d36e3672051d502030·...·]/core/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.78.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:·946,·SHA:·877b8718d9df1464a912dd50eef16402225367db4e4b26484b5ee20d30644524·...·]/core/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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·1138,·SHA:·f6ae06b7de8e94df014341c5cf589a5e4a1298367b2ef7a968ec499c5170a70e·...·]/core/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.78.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:·552b3dd2132886d024e4d5bd2554611e25c1f068adaaf23ecf80da81d31997ef·...·]/core/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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·1058,·SHA:·b390dbdda8d7e93604b5ecd906a93efd03fe19bdaf41cf12893fd361bf974307·...·]/core/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.78.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:·875,·SHA:·5c5c44422f75cbb66ebcf54bea70536713b810843cc484b051aed088c6422d78·...·]/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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·1067,·SHA:·415d32e1211c35d3bb405de1d6e51c2102c14cadc3333894f063148dbe0b1f69·...·]/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:·543,·SHA:·f199bafab360be9b80e9f45c5ba799a52348b742ddb0fa9afdb1624729c36e58·...·]/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.78.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:·687,·SHA:·7f5256104c35c5948a2cb42b55f3048c9d2887e48a4a8226537a284f959c562a·...·]/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.78.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"><a·class="src·rightside"·href="../../../src/core/iter/t[·...·truncated·by·diffoscope;·len:·296,·SHA:·aea014801138aeee574964545b1e9ad297288a120113db6844b569d2b183e0a7·...·]/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.78.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"><a·class="src·rightside"·href="[·...·truncated·by·diffoscope;·len:·392,·SHA:·4e7da68f7be2622ef173653eca78d58e1f202b544a2e6abd14d8335c298c93a7·...·]/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.78.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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(<a·class="primitive"·href="https://doc.rust-lang.org/1.78.0/core/primitive.reference.html">&amp;mut·St</a>,·Self::<a·class="associatedty[·...·truncated·by·diffoscope;·len:·449,·SHA:·f12c268a8a8111b9e7126ad78bf5523a63733caa63d187c4fe792309ea41acdf·...·]/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:·474,·SHA:·c0ed850df640319d919b8c053c540caa158602207623bed65abbcd69ad9d2c9d·...·]/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.78.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.78.0/core/iter/trai[·...·truncated·by·diffoscope;·len:·594,·SHA:·02960742fa7892efaa08f289ce85865fc5efb6a4cd138c22e3566ca6fc727d78·...·]/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.78.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.78.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:·4d1f54658fd1c005b101a2e27b0da3c6ee0cbe2d891660c65470bfec01fa46f6·...·]/core/iter/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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·976,·SHA:·2a9182f6fe88e0b8a9b1ae1f46cace940cc0b8736033c354c0f0ccbf1c196e7a·...·]/core/iter/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.78.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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;[Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtyp[·...·truncated·by·diffoscope;·len:·135,·SHA:·0b06a6094d42ccbc8bce5b01c4383961fe7f1967f05e4c9f1ff33e71e425fb26·...·]/core/primitive.array.html">N</a>])·-&gt;·R,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iter_map_windows</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/87155">#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.78.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"><a·class="src·rightside"·href="../../../src/core[·...·truncated·by·diffoscope;·len:·262,·SHA:·6125a8b2b88486b3735bbd00905fe9ae55b6eb1491c8a493be9c8121dc3cb440·...·]/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.78.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"><a·class="src·rightside"[·...·truncated·by·diffoscope;·len:·358,·SHA:·d91b2ab18e0ce069e262cf523c6ef961f56eecad042ea1e9bcefe33cff28fc8f·...·]/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:·601,·SHA:·bdf3796aa87e911258d56122ffdaa3f8591a5c9db4ed6fd89c3dfd3660787f78·...·]/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.78.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.78.0/core/op[·...·truncated·by·diffoscope;·len:·745,·SHA:·424783f22102f4446d3ad4d362b1aafdb7531fa777213f97ee138aa878f67bd1·...·]/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.78.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:·694,·SHA:·db4bb2630979aa4504432e8d422265d943c9063bcf3d2e3be970003014226f1e·...·]/core/primitive.reference.html">&amp;mut·Self</a><div·class="where">where56 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·838,·SHA:·9b4fd8df7f41e9a76fd4cfca0a233b74b9bd27c3fe8228248abc3f940425a3e3·...·]/core/primitive.reference.html">&amp;mut·Self</a><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:·331,·SHA:·d13641714c275840abbb473011613a4e19924a453f5e1b83912681a9b7c5579b·...·]/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.78.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.78.0/core/it[·...·truncated·by·diffoscope;·len:·427,·SHA:·ecfaaac5d1d10c1bc4fcee9a050af0a268bee0b528c2d8ea4e9774440bd8a279·...·]/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.78.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.78.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:·d76c3fcf86c63211032a6b22dc5924ef552b1ad26b12e19f15d2f1d5b3d7e394·...·]/core/primitive.reference.html">&amp;mut·E</a><div·class="where">where59 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.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.78.0/core/iter/tr[·...·truncated·by·diffoscope;·len:·728,·SHA:·01937c2dc314c259495665570ae249c94b4a5b0719718f5f1188e6fc64ecf487·...·]/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.78.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.78.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:·759,·SHA:·3cf174fac64a83c8e22066c3d77741118f89b13411537fc82c1004faa5c9e2ae·...·]/core/primitive.tuple.html">(B,·B)</a><div·class="where">where61 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experiment[·...·truncated·by·diffoscope;·len:·879,·SHA:·e773b2222c92d001e295030cb47a780ab0c1132d7fc8e9e3a98de4f532e6c520·...·]/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.78.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.78.0/core/default/trait.Default.html"·title="trait·core::default::Default">Default</a>·+·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/collect/trait.Extend.html"·title="trait·core::iter::traits::collec[·...·truncated·by·diffoscope;·len:·95,·SHA:·8b3be1d0042cae0550f865faf5849221240bdf04eb1b2107605b72d48c3ad29c·...·]/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:·f996a0de22717256dd2ecf4d61d81611f9c7dfe5a493e4b882abb4030f3c80f9·...·]/core/primitive.bool.html">bool</a><div·class="where">where64 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·972,·SHA:·6de765542031617a9c28ac98fe6df619e58e62d9c65ec5b1c185a7152b8944e5·...·]/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.78.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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·135,·SHA:·51ff5f5c7ebd8440623ea71b125c5a5837e809e308fe1a13fbe19cddb941dbd9·...·]/core/primitive.bool.html">bool</a>,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iter_is_partitioned</code>&nbsp;<a·href="https://github.com/rust-lang/rust/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:·bd8fce4ee431c619c98780c4d520e8db93f1e034f12843ffaff5744b7ce2190b·...·]/core/iter/traits/iterator/trait.Iterator.html#method.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.78.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:·2c74873f4e5ba70004a1c7edd1cc3f9e2d91271295dd1591e2d26848df4c02ba·...·]/core/iter/traits/iterator/trait.Iterator.html#method.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.78.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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(B,·Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.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.78.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:·7b4fc32e7634ae85c682a97099be267837713d7e4831893b617ca652f57a89da·...·]/core/iter/traits/iterator/trait.Iterator.html#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.78.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:·52912e82c4b0a760d06f77eb4ee3a59ba70dd76cb532954900c73ae94c652674·...·]/core/iter/traits/iterator/trait.Iterator.html#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.78.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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.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.78.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.78.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"><a·class="src·rightside"·href="../../../src/cor[·...·truncated·by·diffoscope;·len:·139,·SHA:·dc7fb7a70636459a0d7de28cbcb454050f39c184bab178c95c524a6eb9ca51cf·...·]/core/iter/traits/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.78.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"><a·class="src·rightside[·...·truncated·by·diffoscope;·len:·211,·SHA:·924e062acd8127e8d6158162219ee5d57a941854e14063d21d7768edae549431·...·]/core/iter/traits/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.78.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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(B,·Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::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:·2c738ecc68200afa2467bef085de14dcb642dbaac77c4529948f5e259e66691d·...·]/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.78.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:·b60215068a6d9721be05f81098c51167d7138c4042f140cad42f77c4df43f597·...·]/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.78.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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·352,·SHA:·e7c3c296abe2c0a183967153e4ae7fd50bafa2ae7088e3e78b3b48fee253adc6·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::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:·c3f1d50e276def36966943119961a20b09cab3be33483fe4d48d7f322489534b·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_reduce"·class="fn">try_reduce</a>&lt;F,·R&gt;(81 operation.·<a·href="https://doc.rust-lang.org/1.78.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:·7a18fdd041b1a001b4a8feb289ee127fd9240232239269eb35dc3b8f74783ec9·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_reduce"·class="fn">try_reduce</a>&lt;F,·R&gt;(
82 ····&amp;mut·self,82 ····&amp;mut·self,
83 ····f:·F83 ····f:·F
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.78.0/core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&gt;::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/ops/try_trait/trait.Try.html#associatedtype.Residual"·title="type[·...·truncated·by·diffoscope;·len:·754,·SHA:·6fb4dfdb6b4da68921c1e7f8b75d99cf293d58318d684a840254ce9576957bea·...·]/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.78.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:·68,·SHA:·e7e11f257edcac749a5883ad9a3aa42e6e965be419f967b36caa7afd3b36d7c9·...·]/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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·140,·SHA:·c27972e6fa3464c9476eaa185e8657edb6bb294f148403f3d079285294a9f909·...·]/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·=·Self::<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.78.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.78.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.78.0/core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&gt;::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/ops/try_trait/trait.Try.html#associatedtype.Residual"·title="type[·...·truncated·by·diffoscope;·len:·412,·SHA:·22b8cbb007e5cce82b9d13a65bfa56aa8d83c32541fac25f4d9b3857b0540908·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;&gt;,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iterator_try_reduce</code>&nbsp;<a·href="https://github.com/rust-lang/rust/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"><a·class="src·rightside"·href="../../../src/core/i[·...·truncated·by·diffoscope;·len:·284,·SHA:·fbacd9a305d3a60d42d9adcc5ea9e5f579f4ff5d970999f333eaf0c7f9baf66c·...·]/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.78.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"><a·class="src·rightside"·h[·...·truncated·by·diffoscope;·len:·380,·SHA:·29c4004d4d8b0c8c9dfe9023f8b2c5ef801d9dc4688893035d182c1ae774c453·...·]/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.78.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:·754,·SHA:·e3afac523bd4c054d94fbbb6c5c856ac78a6359550526fa0726732b36529c33d·...·]/core/primitive.bool.html">bool</a><div·class="where">where91 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·922,·SHA:·f4fd532c280e18f28bd6dda6c2a129e2e92114b67f27235bb5fd39f725be9c43·...·]/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.78.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:·884,·SHA:·32570d141a71827f9ac19bf566a51ca4814ccafaf6f8a961920ce107fe9657d7·...·]/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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·1076,·SHA:·2dd9de8adaee4a5ee96501d9a58bfac2fea00ba8d78b834bfca29949b3afe18b·...·]/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.78.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:·f441e2966ff8db4214e57fcd74f81262d6e371aa51cea97ebde5921e81b4da79·...·]/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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·1051,·SHA:·ecc0b8fccd861464760f9ae047ff6ab98c91a1db010cb5fa59a8c2ab883db7c4·...·]/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.78.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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·130,·SHA:·130a13019dc175d02304b4f550157e2f13ac15c2f25a979c74161d10b146ab89·...·]/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:·ec4fb002625b166504031522e52a66812b279e6735a67cb718813205909c3fb7·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_find"·class="fn">try_find</a>&lt;F,·R&gt;(98 the·first·non-none·result.·<a·href="https://doc.rust-lang.org/1.78.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:·8ced1b10e78750774c5c8ed995ed83dcd13983aa75d329acf8069da106ab9f4a·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_find"·class="fn">try_find</a>&lt;F,·R&gt;(
99 ····&amp;mut·self,99 ····&amp;mut·self,
100 ····f:·F100 ····f:·F
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.78.0/core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&gt;::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/ops/try_trait/trait.Try.html#associatedtype.Residual"·title="type[·...·truncated·by·diffoscope;·len:·626,·SHA:·95f9831257b68862cbcbf54f0ad2ff4e597a4c9f763112d1da8a0897dadcf872·...·]/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.78.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>(&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,103 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·R,
104 ····R:·<a·class="trait"·href="../../../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.78.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.78.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.78.0/core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&gt;::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/ops/try_trait/trait.Try.html#associatedtype.Residual"·title="type[·...·truncated·by·diffoscope;·len:·412,·SHA:·22b8cbb007e5cce82b9d13a65bfa56aa8d83c32541fac25f4d9b3857b0540908·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;&gt;,</div></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"><a·class="src·rightside"·href="../../../src/cor[·...·truncated·by·diffoscope;·len:·419,·SHA:·4337d283573b9683aaa605a7d2417318ef2a03902876e7da2ec26f2a5febf794·...·]/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.78.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"><a·class="src·rightside[·...·truncated·by·diffoscope;·len:·539,·SHA:·04e329705f11ed9ec269a68b0b75ac4ab26c78e4316a571ee9336c28bbca6359·...·]/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.78.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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·1190,·SHA:·882e9e9a037f916d0ed4aa6d749399e6e01ca81811eacfc54a484818cb5d5029·...·]/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.78.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.78.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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/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.78.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:·0367b1bacc0a7d8e05f1c5181f8c4ea428f3f11edbae0e76811f3ef1d4925e41·...·]/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.78.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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·346,·SHA:·7113e4c2d65a123253bb18971efdc2d49241cfc2dd4c2b18e4cfa4e4d7d4140f·...·]/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.78.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:·db89d4cca0becf2a4ab904adac2870de6fd83cfad5131f5a1431a67766274f81·...·]/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.78.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.78.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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/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.78.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:·39ce6bc28062c0df48bff6a8faa3e4f2266988879092cf2970d2e9ee092742b0·...·]/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.78.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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·346,·SHA:·7113e4c2d65a123253bb18971efdc2d49241cfc2dd4c2b18e4cfa4e4d7d4140f·...·]/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"><a·class="src·rightside"·href="../../../src/core/ite[·...·truncated·by·diffoscope;·len:·290,·SHA:·26ecd6ca88d5e349c58bc913b23b9442cdb94453483075726671ca2068939441·...·]/core/primitive.tuple.html">(FromA,·FromB)</a><div·class="where">where122 specified·comparison·function.·<a·href="https://doc.rust-lang.org/1.78.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"><a·class="src·rightside"·hre[·...·truncated·by·diffoscope;·len:·386,·SHA:·1483264e6e3f1a115dc7d273497cc865330cbe32459eec952d5e2d8bd0e9d686·...·]/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.78.0/core/default/trait.Default.html"·title="trait·core::default::Default">Default</a>·+·<a·class="trait"·href="https://doc.rust-lang.org/1.78.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.78.0/core/default/trait.Default.html"·title="trait·core::default::Default">Default</a>·+·<a·class="trait"·href="https://doc.rust-lang.org/1.78.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:·653aec8e646bd1e33f0a5bbac618099785271b214c53936117e7d07a68d11aa3·...·]/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.78.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>·+·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html"·title="trait·core::iter::traits::iterator::I[·...·truncated·by·diffoscope;·len:·980,·SHA:·8f6df3c40809d9a55d4dab64faffa89b8268cb5f886608ccbcab921d7ab8e9fc·...·]/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.78.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:·719,·SHA:·1b4b7b4f2c3e01a6730853a7897c01c7ca2999128cde44557d82b0ad951c1ee4·...·]/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.78.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>·+·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html"·title="trait·core::iter::traits::iterator::I[·...·truncated·by·diffoscope;·len:·887,·SHA:·d20d302b6091047fdb4e7850279e51911212047c48f118cfe992c0e9de39ba76·...·]/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; 86007/283206 bytes (30.37%) of diff not shown.
301 KB
./usr/share/doc/rust-web-doc/html/alloc/collections/btree_set/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·items·of·a·`BTreeSet`."><title>IntoIter·in·alloc::collections::btree_set·-·Rust</title><script>·if·(window.location.protocol·!==·"file:")·document.write(`<link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../../static.files/SourceSerif4-Regular-46f98efaafac5295.ttf.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../../static.files/FiraSans-Regular-018c141bf0843ffd.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../../static.files/FiraSans-Medium-8f9a781e4970d388.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../../static.files/SourceCodePro-Regular-562dcc5011b6de7d.ttf.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../../static.files/SourceCodePro-Semibold-d899c5a5c4aeb14a.ttf.woff2">`)</script><link·rel="stylesheet"·href="../../../static.files/normalize-76eba96aa4d2e634.css"><link·rel="stylesheet"·href="../../../static.files/rustdoc-35f9e32502181f1e.css"><meta·name="rustdoc-vars"·data-root-path="../../../"·data-static-root-path="../../../static.files/"·data-current-crate="alloc"·data-themes=""·data-resource-suffix="1.78.0"·data-rustdoc-version="1.78.0"·data-channel="1.78.0"·data-search-js="search-42d8da7a6b9792c2.js"·data-settings-js="settings-4313503d2e1961c2.js"·><script·src="../../../static.files/storage-4c98445ec4002617.js"></script><script·defer·src="sidebar-items1.78.0.js"></script><script·defer·src="../../../static.files/main-12cf3b4f4f9dc36d.js"></script><noscript><link·rel="stylesheet"·href="../../../static.files/noscript-04d5337699b92874.css"></noscript><link·rel="alternate·icon"·type="image/png"·href="../../../static.files/favicon-16x16-8b506e7a72182f1c.png"><link·rel="alternate·icon"·type="image/png"·href="../../../static.files/favicon-32x32-422f7d1d52889060.png"><link·rel="icon"·type="image/svg+xml"·href="../../../static.files/favicon-2c020d218678b618.svg"></head><body·class="rustdoc·struct"><!--[if·lte·IE·11]><div·class="warning">This·old·browser·is·unsupported·and·will·most·likely·display·funky·things.</div><![endif]--><nav·class="mobile-topbar"><button·class="sidebar-menu-toggle"·title="show·sidebar"></button><a·class="logo-container"·href="../../../alloc/index.html"><img·class="rust-logo"·src="../../../static.files/rust-logo-151179464ae7ed46.svg"·alt=""></a></nav><nav·class="sidebar"><div·class="sidebar-crate"><a·class="logo-container"·href="../../../alloc/index.html"><img·class="rust-logo"·src="../../../static.files/rust-logo-151179464ae7ed46.svg"·alt="logo"></a><h2><a·href="../../../alloc/index.html">alloc</a><span·class="version">1.78.0</span></h2></div><h2·class="location"><a·href="#">IntoIter</a></h2><div·class="sidebar-elems"><section><h3><a·href="#trait-implementations">Trait·Implementations</a></h3><ul·class="block·trait-implementation"><li><a·href="#impl-Debug-for-IntoIter%3CT,+A%3E">Debug</a></li><li><a·href="#impl-Default-for-IntoIter%3CT,+A%3E">Default</a></li><li><a·href="#impl-DoubleEndedIterator-for-IntoIter%3CT,+A%3E">DoubleEndedIterator</a></li><li><a·href="#impl-ExactSizeIterator-for-IntoIter%3CT,+A%3E">ExactSizeIterator</a></li><li><a·href="#impl-FusedIterator-for-IntoIter%3CT,+A%3E">FusedIterator</a></li><li><a·href="#impl-Iterator-for-IntoIter%3CT,+A%3E">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">Freeze</a></li><li><a·href="#impl-RefUnwindSafe-for-IntoIter%3CT,+A%3E">RefUnwindSafe</a></li><li><a·href="#impl-Send-for-IntoIter%3CT,+A%3E">Send</a></li><li><a·href="#impl-Sync-for-IntoIter%3CT,+A%3E">Sync</a></li><li><a·href="#impl-Unpin-for-IntoIter%3CT,+A%3E">Unpin</a></li><li><a·href="#impl-UnwindSafe-for-IntoIter%3CT,+A%3E">UnwindSafe</a></li></ul><h3><a·href="#blanket-implementations">Blanket·Implementations</a></h3><ul·class="block·blanket-implementation"><li><a·href="#impl-Any-for-T">Any</a></li><li><a·href="#impl-Borrow%3CT%3E-for-T">Borrow&lt;T&gt;</a></li><li><a·href="#impl-BorrowMut%3CT%3E-for-T">BorrowMut&lt;T&gt;</a></li><li><a·href="#impl-From%3CT%3E-for-T">From&lt;T&gt;</a></li><li><a·href="#impl-Into%3CU%3E-for-T">Into&lt;U&gt;</a></li><li><a·href="#impl-IntoIterator-for-I">IntoIterator</a></li><li><a·href="#impl-TryFrom%3CU%3E-for-T">TryFrom&lt;U&gt;</a></li><li><a·href="#impl-TryInto%3CU%3E-for-T">TryInto&lt;U&gt;</a></li></ul></section><h2><a·href="index.html">In·alloc::collections::btree_set</a></h2></div></nav><div·class="sidebar-resizer"></div>1 <!DOCTYPE·html><html·lang="en"><head><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`."><title>IntoIter·in·alloc::collections::btree_set·-·Rust</title><script>·if·(window.location.protocol·!==·"file:")·document.write(`<link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../../static.files/SourceSerif4-Regular-46f98efaafac5295.ttf.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../../static.files/FiraSans-Regular-018c141bf0843ffd.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../../static.files/FiraSans-Medium-8f9a781e4970d388.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../../static.files/SourceCodePro-Regular-562dcc5011b6de7d.ttf.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../../static.files/SourceCodePro-Semibold-d899c5a5c4aeb14a.ttf.woff2">`)</script><link·rel="stylesheet"·href="../../../static.files/normalize-76eba96aa4d2e634.css"><link·rel="stylesheet"·href="../../../static.files/rustdoc-35f9e32502181f1e.css"><meta·name="rustdoc-vars"·data-root-path="../../../"·data-static-root-path="../../../static.files/"·data-current-crate="alloc"·data-themes=""·data-resource-suffix="1.78.0"·data-rustdoc-version="1.78.0"·data-channel="1.78.0"·data-search-js="search-42d8da7a6b9792c2.js"·data-settings-js="settings-4313503d2e1961c2.js"·><script·src="../../../static.files/storage-4c98445ec4002617.js"></script><script·defer·src="sidebar-items1.78.0.js"></script><script·defer·src="../../../static.files/main-12cf3b4f4f9dc36d.js"></script><noscript><link·rel="stylesheet"·href="../../../static.files/noscript-04d5337699b92874.css"></noscript><link·rel="alternate·icon"·type="image/png"·href="../../../static.files/favicon-16x16-8b506e7a72182f1c.png"><link·rel="alternate·icon"·type="image/png"·href="../../../static.files/favicon-32x32-422f7d1d52889060.png"><link·rel="icon"·type="image/svg+xml"·href="../../../static.files/favicon-2c020d218678b618.svg"></head><body·class="rustdoc·struct"><!--[if·lte·IE·11]><div·class="warning">This·old·browser·is·unsupported·and·will·most·likely·display·funky·things.</div><![endif]--><nav·class="mobile-topbar"><button·class="sidebar-menu-toggle"·title="show·sidebar"></button><a·class="logo-container"·href="../../../alloc/index.html"><img·class="rust-logo"·src="../../../static.files/rust-logo-151179464ae7ed46.svg"·alt=""></a></nav><nav·class="sidebar"><div·class="sidebar-crate"><a·class="logo-container"·href="../../../alloc/index.html"><img·class="rust-logo"·src="../../../static.files/rust-logo-151179464ae7ed46.svg"·alt="logo"></a><h2><a·href="../../../alloc/index.html">alloc</a><span·class="version">1.78.0</span></h2></div><h2·class="location"><a·href="#">IntoIter</a></h2><div·class="sidebar-elems"><section><h3><a·href="#trait-implementations">Trait·Implementations</a></h3><ul·class="block·trait-implementation"><li><a·href="#impl-Debug-for-IntoIter%3CT,+A%3E">Debug</a></li><li><a·href="#impl-Default-for-IntoIter%3CT,+A%3E">Default</a></li><li><a·href="#impl-DoubleEndedIterator-for-IntoIter%3CT,+A%3E">DoubleEndedIterator</a></li><li><a·href="#impl-ExactSizeIterator-for-IntoIter%3CT,+A%3E">ExactSizeIterator</a></li><li><a·href="#impl-FusedIterator-for-IntoIter%3CT,+A%3E">FusedIterator</a></li><li><a·href="#impl-Iterator-for-IntoIter%3CT,+A%3E">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">Freeze</a></li><li><a·href="#impl-RefUnwindSafe-for-IntoIter%3CT,+A%3E">RefUnwindSafe</a></li><li><a·href="#impl-Send-for-IntoIter%3CT,+A%3E">Send</a></li><li><a·href="#impl-Sync-for-IntoIter%3CT,+A%3E">Sync</a></li><li><a·href="#impl-Unpin-for-IntoIter%3CT,+A%3E">Unpin</a></li><li><a·href="#impl-UnwindSafe-for-IntoIter%3CT,+A%3E">UnwindSafe</a></li></ul><h3><a·href="#blanket-implementations">Blanket·Implementations</a></h3><ul·class="block·blanket-implementation"><li><a·href="#impl-Any-for-T">Any</a></li><li><a·href="#impl-Borrow%3CT%3E-for-T">Borrow&lt;T&gt;</a></li><li><a·href="#impl-BorrowMut%3CT%3E-for-T">BorrowMut&lt;T&gt;</a></li><li><a·href="#impl-From%3CT%3E-for-T">From&lt;T&gt;</a></li><li><a·href="#impl-Into%3CU%3E-for-T">Into&lt;U&gt;</a></li><li><a·href="#impl-IntoIterator-for-I">IntoIterator</a></li><li><a·href="#impl-TryFrom%3CU%3E-for-T">TryFrom&lt;U&gt;</a></li><li><a·href="#impl-TryInto%3CU%3E-for-T">TryInto&lt;U&gt;</a></li></ul></section><h2><a·href="index.html">In·alloc::collections::btree_set</a></h2></div></nav><div·class="sidebar-resizer"></div>
2 ····<main><div·class="width-limiter"><nav·class="sub"><form·class="search-form"><span></span><div·id="sidebar-button"·tabindex="-1"><a·href="../../../alloc/all.html"·title="show·sidebar"></a></div><input·class="search-input"·name="search"·aria-label="Run·search·in·the·documentation"·autocomplete="off"·spellcheck="false"·placeholder="Click·or·press·‘S’·to·search,·‘?’·for·more·options…"·type="search"><div·id="help-button"·tabindex="-1"><a·href="../../../help.html"·title="help">?</a></div><div·id="settings-menu"·tabindex="-1"><a·href="../../../settings.html"·title="settings"><img·width="22"·height="22"·alt="Change·settings"·src="../../../static.files/wheel-7b819b6101059cd0.svg"></a></div></form></nav><section·id="main-content"·class="content"><div·class="main-heading"><h1>Struct·<a·href="../../index.html">alloc</a>::<wbr><a·href="../index.html">collections</a>::<wbr><a·href="index.html">btree_set</a>::<wbr><a·class="struct"·href="#">IntoIter</a><button·id="copy-path"·title="Copy·item·path·to·clipboard"><img·src="../../../static.files/clipboard-7571035ce49a181d.svg"·width="19"·height="18"·alt="Copy·item·path"></button></h1><span·class="out-of-band"><span·class="since"·title="Stable·since·Rust·version·1.0.0">1.0.0</span>···<a·class="src"·href="../../../src/alloc/collections/btree/set.rs.html#151-156">source</a>···<button·id="toggle-all-docs"·title="collapse·all·docs">[<span>&#x2212;</span>]</button></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>.</p>2 ····<main><div·class="width-limiter"><nav·class="sub"><form·class="search-form"><span></span><div·id="sidebar-button"·tabindex="-1"><a·href="../../../alloc/all.html"·title="show·sidebar"></a></div><input·class="search-input"·name="search"·aria-label="Run·search·in·the·documentation"·autocomplete="off"·spellcheck="false"·placeholder="Click·or·press·‘S’·to·search,·‘?’·for·more·options…"·type="search"><div·id="help-button"·tabindex="-1"><a·href="../../../help.html"·title="help">?</a></div><div·id="settings-menu"·tabindex="-1"><a·href="../../../settings.html"·title="settings"><img·width="22"·height="22"·alt="Change·settings"·src="../../../static.files/wheel-7b819b6101059cd0.svg"></a></div></form></nav><section·id="main-content"·class="content"><div·class="main-heading"><h1>Struct·<a·href="../../index.html">alloc</a>::<wbr><a·href="../index.html">collections</a>::<wbr><a·href="index.html">btree_set</a>::<wbr><a·class="struct"·href="#">IntoIter</a><button·id="copy-path"·title="Copy·item·path·to·clipboard"><img·src="../../../static.files/clipboard-7571035ce49a181d.svg"·width="19"·height="18"·alt="Copy·item·path"></button></h1><span·class="out-of-band"><span·class="since"·title="Stable·since·Rust·version·1.0.0">1.0.0</span>···<a·class="src"·href="../../../src/alloc/collections/btree/set.rs.html#151-156">source</a>···<button·id="toggle-all-docs"·title="collapse·all·docs">[<span>&#x2212;</span>]</button></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.78.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>.</p>
3 <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 <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>
4 (provided·by·the·<a·href="../../../core/iter/traits/collect/trait.IntoIterator.html"·title="trait·core::iter::traits::collect::IntoIterator"><code>IntoIterator</code></a>·trait).·See·its·documentation·for·more.</p>4 (provided·by·the·<a·href="https://doc.rust-lang.org/1.78.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>
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-IntoIter%3CT,+A%3E"·class="impl"><a·class="src·rightside"·href="../../../src/alloc/collections/btree/set.rs.html#150">source</a><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:·2b1c8ac70b8be720ab0c3ee7dd24070070f541469d9e89810b5b62074c4932cd·...·]/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">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-IntoIter%3CT,+A%3E"·class="impl"><a·class="src·rightside"·href="../../../src/alloc/collections/btree/set.rs.html#150">source</a><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.78.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:·fca330fe4a287861c16a78e8306af3cd317408691f51d6e144c3fbc805659301·...·]/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
6 ····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:·1f0488e87cade147cdcebc52ef8f4cf0219d132afb6049223e8f108896eb07a6·...·]/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 ····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.78.0/core/default/trait.Default.html"·title="trait·core::default::Default">Default</a>·+·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/clone/trait.Clone.html"·title="trait·core::clone::Clone">Clone</a>,</div></h3>[·...·truncated·by·diffoscope;·len:·366,·SHA:·1a7978fde5569d7038169bbec5cb33c0562e70264393e81a1d1de738b56b4ef8·...·]/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>
  
7 <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 <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();
8 <span·class="macro">assert_eq!</span>(iter.len(),·<span·class="number">0</span>);</code></pre><a·class="test-arrow"·target="_blank"·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">Run</a></div>8 <span·class="macro">assert_eq!</span>(iter.len(),·<span·class="number">0</span>);</code></pre><a·class="test-arrow"·target="_blank"·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">Run</a></div>
9 </div></details></div></details><details·class="toggle·implementors-toggle"·open><summary><section·id="impl-DoubleEndedIterator-for-IntoIter%3CT,+A%3E"·class="impl"><a·class="src·rightside"·href="../../../src/alloc/collections/btree/set.rs.html#1539-1543">source</a><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:·518599e609764ec127db50767f39c600c752917b9a4c5679e478be52900f2f48·...·]/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 </div></details></div></details><details·class="toggle·implementors-toggle"·open><summary><section·id="impl-DoubleEndedIterator-for-IntoIter%3CT,+A%3E"·class="impl"><a·class="src·rightside"·href="../../../src/alloc/collections/btree/set.rs.html#1539-1543">source</a><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.78.0/core/clone/trait.Clone.html"·title="trait·core::clone::Clone">Clone</a>&gt;·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/double_ended/trait.DoubleEndedIterator.html"·title="trait·core::iter::trai[·...·truncated·by·diffoscope;·len:·4409,·SHA:·a1d7548b87d1873864be04110c5a0dafe25e0e01c92574025ad79fd2ef389542·...·]/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.78.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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(B,·Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.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.78.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.7[·...·truncated·by·diffoscope;·len:·3,·SHA:·7b1bd53949b752d143d871408483b5382371b5bc48d195d0c040ec93cfa2748b·...·]/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·clas[·...·truncated·by·diffoscope;·len:·253,·SHA:·b3a5d6383debff0cac836c5889a757f11b019bc049778c518e60e4d37a3c4da1·...·]/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.78.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:·d66ed7e195a53e9945339ef1976aed455dcf80228d8e5b7b0c69a64c3983fea1·...·]/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.78.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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(B,·Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/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="s[·...·truncated·by·diffoscope;·len:·545,·SHA:·d11fd274e41827c1daee0c80a6ab5f978a613ab26297cb460535fef32cff8551·...·]/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.78.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:·c264047794019a6dcf05728ba6a6ee1f8f07c7209958b3366ba94546b527ecdc·...·]/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.78.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:[·...·truncated·by·diffoscope;·len:·6274,·SHA:·e8edc8488cf04dad7769e6a91cdb864f943f8c07db20bc1e46cc85d50304dcd7·...·]/core/primitive.usize.html">usize</a>&gt;(18 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·6922,·SHA:·e29304ffddaeba632a8712b020e2a7ba5b9e97dfb985b7e8b787b432e10f4afa·...·]/core/primitive.usize.html">usize</a>&gt;(
19 ····&amp;mut·self19 ····&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.78.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.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title=[·...·truncated·by·diffoscope;·len:·381,·SHA:·88c48923c9b7ea5cc47c1087c60e09656e81d4671c58071ba2bef826335388bc·...·]/core/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:·746,·SHA:·99cc415a31b91c57f7eeb82ad0d2d1ba424489bee49de37c86a4ea21c663ccda·...·]/core/primitive.usize.html">usize</a><div·class="where">where21 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experiment[·...·truncated·by·diffoscope;·len:·866,·SHA:·945d2d86f0c4c5ca3e3ee3b181d18b2bbea57ee1a5a7efe16c0c915a5bf2c3ad·...·]/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:·597,·SHA:·be3babc2f9096ec8bacc872099ff5a03375deb1461cf1d651cfbfb072fb72581·...·]/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.78.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:·741,·SHA:·f3078cc3fddd62af2c1a8814c5854bb49f40b79e4fbc9b3addf5862a72370f82·...·]/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#metho[·...·truncated·by·diffoscope;·len:·2928,·SHA:·dd9dc6c66a208fe3371784c1d048fbccf7b880bff34f93a1694f746d814568db·...·]/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.78.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.78.0/cor[·...·truncated·by·diffoscope;·len:·3408,·SHA:·b62c6ed65b31a8b555c142d9d15f3ce30e5c76ad2630a0e5a9b13cfd478c6eee·...·]/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.78.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"><a·class="src·rightside"·href="../../../src/core/it[·...·truncated·by·diffoscope;·len:·602,·SHA:·cfe4c4d300dddc2abdc2f8194eb969c68b2240c28239969b5be2af6a564ed8cc·...·]/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.78.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"><a·class="src·rightside"·hr[·...·truncated·by·diffoscope;·len:·746,·SHA:·f1f70d650c102c8658e13890c7dbfc87418f07e7b522246fb579ec434ef64f7c·...·]/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.78.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:·1041,·SHA:·a281d174c9671021427f0b458ac94e87746ac44730475aa725652c6c15e2b972·...·]/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.78.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.78.0/core/iter/traits/it[·...·truncated·by·diffoscope;·len:·1233,·SHA:·f677df2d893dfe0dc1a9d31ebb0ba71a346d265781813e0d664d3f18369b6163·...·]/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.78.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:·b9001dd3131b1425179c94853e1b90fff0f7169b9570e86cd50c6b7fbf1ee8a5·...·]/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.78.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:·98627729f77dcf1c9d258f343354ba600b7134c6b3929080f231e8de7155b70b·...·]/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.78.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.78.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.78.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"><a·class="src·rightside"·href="../../../src/[·...·truncated·by·diffoscope;·len:·279,·SHA:·f2c34c2e64e77c66684f837812ebc4a94c81b2ad5862cc0131f80c3ce89e008a·...·]/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.78.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"><a·class="src·rights[·...·truncated·by·diffoscope;·len:·375,·SHA:·58419346f92e1709dadb70cc3cf356e3cd27972451bdc6b4fc4267e6f7e8bdae·...·]/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.78.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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::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:·d75758e0f8262eeea27445cec43f13d84f0c02ba4e03c0c54d041f9ab1965e0f·...·]/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.78.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:·98f6effefa44d759c249143d83623f0055d937382bfc398b7e1f5e92cd413657·...·]/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.78.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:·676,·SHA:·9ae42ed293737a3dd44c1ee9d98c6aabb1552fbb9d203cb852ee9fcc7834a6ca·...·]/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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·820,·SHA:·a664bbcbc0891663662e4eb7b4394d0fcd72e568136fc4d34097fea242cc32e7·...·]/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.78.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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·140,·SHA:·752f473b57e7444ebfddf5ea7fd40a332e83ec55524a6c31b5ee0f82a5dea819·...·]/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"><a·class="src·rightside"·href="../../../src/cor[·...·truncated·by·diffoscope;·len:·297,·SHA:·f01e44d4caf6c6ad80b37656b9300f7111340711dcd74d70867b5a652dbfb538·...·]/core/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.78.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"><a·class="src·rightside[·...·truncated·by·diffoscope;·len:·393,·SHA:·2e2aa7c9c9c087e7b346da376749064ab8c1894795a2f0a0f646cdc8c7bea997·...·]/core/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.78.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:·788,·SHA:·b788f412af946d2bd7646ba39a8c316ebfa88109f9626dbad9bf9964f975cd0c·...·]/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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·956,·SHA:·faba0521e870dbbd26d466fadba3522e7d29013a9b86376fffafffac11a57e0e·...·]/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.78.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"><a·class="src·rightside"·href="../../../src/co[·...·truncated·by·diffoscope;·len:·276,·SHA:·e337ee1b810d3ec0480569c4ed323ebf0a2315c8ae3c522a73fcca3aa8e6efb3·...·]/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.78.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"><a·class="src·rightsid[·...·truncated·by·diffoscope;·len:·372,·SHA:·03eea0861575eb80d3f7a87a3ba747adb1a33fe7e9ce72aa2172e7a287c63a94·...·]/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.78.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.78.0/core/iter/adapte[·...·truncated·by·diffoscope;·len:·175,·SHA:·16fe7225bf05b478e2828b347c3d23ded9a22f89d8887a2c65d9f7b3faf1b0e7·...·]/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"><a·class="src·rightside"·href="../../../src/c[·...·truncated·by·diffoscope;·len:·306,·SHA:·a9bc004bf639fa188165a336061c6c98ec7ff9d266a18f10db200dfa9a880b88·...·]/core/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.78.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"><a·class="src·rightsi[·...·truncated·by·diffoscope;·len:·402,·SHA:·7689a974f800fd069d1b4453ef62d6d6ad1b654462d624d36e3672051d502030·...·]/core/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.78.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:·946,·SHA:·877b8718d9df1464a912dd50eef16402225367db4e4b26484b5ee20d30644524·...·]/core/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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·1138,·SHA:·f6ae06b7de8e94df014341c5cf589a5e4a1298367b2ef7a968ec499c5170a70e·...·]/core/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.78.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:·552b3dd2132886d024e4d5bd2554611e25c1f068adaaf23ecf80da81d31997ef·...·]/core/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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·1058,·SHA:·b390dbdda8d7e93604b5ecd906a93efd03fe19bdaf41cf12893fd361bf974307·...·]/core/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.78.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:·875,·SHA:·5c5c44422f75cbb66ebcf54bea70536713b810843cc484b051aed088c6422d78·...·]/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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·1067,·SHA:·415d32e1211c35d3bb405de1d6e51c2102c14cadc3333894f063148dbe0b1f69·...·]/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:·543,·SHA:·f199bafab360be9b80e9f45c5ba799a52348b742ddb0fa9afdb1624729c36e58·...·]/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.78.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:·687,·SHA:·7f5256104c35c5948a2cb42b55f3048c9d2887e48a4a8226537a284f959c562a·...·]/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.78.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"><a·class="src·rightside"·href="../../../src/core/iter/t[·...·truncated·by·diffoscope;·len:·296,·SHA:·aea014801138aeee574964545b1e9ad297288a120113db6844b569d2b183e0a7·...·]/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.78.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"><a·class="src·rightside"·href="[·...·truncated·by·diffoscope;·len:·392,·SHA:·4e7da68f7be2622ef173653eca78d58e1f202b544a2e6abd14d8335c298c93a7·...·]/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.78.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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(<a·class="primitive"·href="https://doc.rust-lang.org/1.78.0/core/primitive.reference.html">&amp;mut·St</a>,·Self::<a·class="associatedty[·...·truncated·by·diffoscope;·len:·449,·SHA:·f12c268a8a8111b9e7126ad78bf5523a63733caa63d187c4fe792309ea41acdf·...·]/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:·474,·SHA:·c0ed850df640319d919b8c053c540caa158602207623bed65abbcd69ad9d2c9d·...·]/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.78.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.78.0/core/iter/trai[·...·truncated·by·diffoscope;·len:·594,·SHA:·02960742fa7892efaa08f289ce85865fc5efb6a4cd138c22e3566ca6fc727d78·...·]/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.78.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.78.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:·4d1f54658fd1c005b101a2e27b0da3c6ee0cbe2d891660c65470bfec01fa46f6·...·]/core/iter/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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·976,·SHA:·2a9182f6fe88e0b8a9b1ae1f46cace940cc0b8736033c354c0f0ccbf1c196e7a·...·]/core/iter/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.78.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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;[Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtyp[·...·truncated·by·diffoscope;·len:·135,·SHA:·0b06a6094d42ccbc8bce5b01c4383961fe7f1967f05e4c9f1ff33e71e425fb26·...·]/core/primitive.array.html">N</a>])·-&gt;·R,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iter_map_windows</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/87155">#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.78.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"><a·class="src·rightside"·href="../../../src/core[·...·truncated·by·diffoscope;·len:·262,·SHA:·6125a8b2b88486b3735bbd00905fe9ae55b6eb1491c8a493be9c8121dc3cb440·...·]/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.78.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"><a·class="src·rightside"[·...·truncated·by·diffoscope;·len:·358,·SHA:·d91b2ab18e0ce069e262cf523c6ef961f56eecad042ea1e9bcefe33cff28fc8f·...·]/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:·601,·SHA:·bdf3796aa87e911258d56122ffdaa3f8591a5c9db4ed6fd89c3dfd3660787f78·...·]/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.78.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.78.0/core/op[·...·truncated·by·diffoscope;·len:·745,·SHA:·424783f22102f4446d3ad4d362b1aafdb7531fa777213f97ee138aa878f67bd1·...·]/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.78.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:·694,·SHA:·db4bb2630979aa4504432e8d422265d943c9063bcf3d2e3be970003014226f1e·...·]/core/primitive.reference.html">&amp;mut·Self</a><div·class="where">where69 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·838,·SHA:·9b4fd8df7f41e9a76fd4cfca0a233b74b9bd27c3fe8228248abc3f940425a3e3·...·]/core/primitive.reference.html">&amp;mut·Self</a><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:·331,·SHA:·d13641714c275840abbb473011613a4e19924a453f5e1b83912681a9b7c5579b·...·]/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.78.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.78.0/core/it[·...·truncated·by·diffoscope;·len:·427,·SHA:·ecfaaac5d1d10c1bc4fcee9a050af0a268bee0b528c2d8ea4e9774440bd8a279·...·]/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.78.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.78.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:·d76c3fcf86c63211032a6b22dc5924ef552b1ad26b12e19f15d2f1d5b3d7e394·...·]/core/primitive.reference.html">&amp;mut·E</a><div·class="where">where72 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.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.78.0/core/iter/tr[·...·truncated·by·diffoscope;·len:·728,·SHA:·01937c2dc314c259495665570ae249c94b4a5b0719718f5f1188e6fc64ecf487·...·]/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.78.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.78.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:·759,·SHA:·3cf174fac64a83c8e22066c3d77741118f89b13411537fc82c1004faa5c9e2ae·...·]/core/primitive.tuple.html">(B,·B)</a><div·class="where">where74 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experiment[·...·truncated·by·diffoscope;·len:·879,·SHA:·e773b2222c92d001e295030cb47a780ab0c1132d7fc8e9e3a98de4f532e6c520·...·]/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.78.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.78.0/core/default/trait.Default.html"·title="trait·core::default::Default">Default</a>·+·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/collect/trait.Extend.html"·title="trait·core::iter::traits::collec[·...·truncated·by·diffoscope;·len:·95,·SHA:·8b3be1d0042cae0550f865faf5849221240bdf04eb1b2107605b72d48c3ad29c·...·]/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:·281bbd5137cae68dd8057d013e9c9f311461e746663120304e3f6adace77f784·...·]/core/primitive.usize.html">usize</a><div·class="where">where77 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·995,·SHA:·bec3765fdab56713186e2454cd84738b5b28e3280a2f3d5a25cefdbc3089b520·...·]/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.78.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>·+·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/double_ended/trait.DoubleEndedIterator.html"·title="trait·core::iter::trai[·...·truncated·by·diffoscope;·len:·132,·SHA:·e5b2cf5f56946ede1e190ed09879c5821e2de04cf8e5d145142eeb40c6340982·...·]/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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(<a·class="primitive"·href="https://doc.rust-lang.org/1.78.0/core/primitive.reference.html">&amp;T</a>)·-&gt;·<a·class="primitive"·href="[·...·truncated·by·diffoscope;·len:·32,·SHA:·63d052a8ced32bf927ffadd7e884c08caf4970e85dfdf6be0e568d49b174da96·...·]/core/primitive.bool.html">bool</a>,</div></h4></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:·dc6a465df534b0392c5280e79e5249847890045561099b2cfc44bfabc4801d8d·...·]/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.78.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:·0c224636c18baa273f69de21f90083317f2ea0b7367a3f0d0f1c0ace55a36f79·...·]/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.78.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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·135,·SHA:·51ff5f5c7ebd8440623ea71b125c5a5837e809e308fe1a13fbe19cddb941dbd9·...·]/core/primitive.bool.html">bool</a>,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iter_is_partitioned</code>&nbsp;<a·href="https://github.com/rust-lang/rust/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:·bd8fce4ee431c619c98780c4d520e8db93f1e034f12843ffaff5744b7ce2190b·...·]/core/iter/traits/iterator/trait.Iterator.html#method.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.78.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:·2c74873f4e5ba70004a1c7edd1cc3f9e2d91271295dd1591e2d26848df4c02ba·...·]/core/iter/traits/iterator/trait.Iterator.html#method.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.78.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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(B,·Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.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.78.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:·7b4fc32e7634ae85c682a97099be267837713d7e4831893b617ca652f57a89da·...·]/core/iter/traits/iterator/trait.Iterator.html#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.78.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:·52912e82c4b0a760d06f77eb4ee3a59ba70dd76cb532954900c73ae94c652674·...·]/core/iter/traits/iterator/trait.Iterator.html#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.78.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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.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.78.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.78.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"><a·class="src·rightside"·href="../../../src/cor[·...·truncated·by·diffoscope;·len:·139,·SHA:·dc7fb7a70636459a0d7de28cbcb454050f39c184bab178c95c524a6eb9ca51cf·...·]/core/iter/traits/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.78.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"><a·class="src·rightside[·...·truncated·by·diffoscope;·len:·211,·SHA:·924e062acd8127e8d6158162219ee5d57a941854e14063d21d7768edae549431·...·]/core/iter/traits/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.78.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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(B,·Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::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:·2c738ecc68200afa2467bef085de14dcb642dbaac77c4529948f5e259e66691d·...·]/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.78.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:·b60215068a6d9721be05f81098c51167d7138c4042f140cad42f77c4df43f597·...·]/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.78.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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·352,·SHA:·e7c3c296abe2c0a183967153e4ae7fd50bafa2ae7088e3e78b3b48fee253adc6·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::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:·c3f1d50e276def36966943119961a20b09cab3be33483fe4d48d7f322489534b·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_reduce"·class="fn">try_reduce</a>&lt;F,·R&gt;(99 operation.·<a·href="https://doc.rust-lang.org/1.78.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:·7a18fdd041b1a001b4a8feb289ee127fd9240232239269eb35dc3b8f74783ec9·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_reduce"·class="fn">try_reduce</a>&lt;F,·R&gt;(
100 ····&amp;mut·self,100 ····&amp;mut·self,
101 ····f:·F101 ····f:·F
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.78.0/core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&gt;::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/ops/try_trait/trait.Try.html#associatedtype.Residual"·title="type[·...·truncated·by·diffoscope;·len:·754,·SHA:·6fb4dfdb6b4da68921c1e7f8b75d99cf293d58318d684a840254ce9576957bea·...·]/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.78.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:·68,·SHA:·e7e11f257edcac749a5883ad9a3aa42e6e965be419f967b36caa7afd3b36d7c9·...·]/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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·140,·SHA:·c27972e6fa3464c9476eaa185e8657edb6bb294f148403f3d079285294a9f909·...·]/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·=·Self::<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.78.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.78.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</[·...·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·the106 ····&lt;R·as·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&gt;::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/ops/try_trait/trait.Try.html#associatedtype.Residual"·title="type[·...·truncated·by·diffoscope;·len:·412,·SHA:·22b8cbb007e5cce82b9d13a65bfa56aa8d83c32541fac25f4d9b3857b0540908·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;&gt;,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iterator_try_reduce</code>&nbsp;<a·href="https://github.com/rust-lang/rust/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"><a·class="src·rightside"·href="../../../src/core/i[·...·truncated·by·diffoscope;·len:·284,·SHA:·fbacd9a305d3a60d42d9adcc5ea9e5f579f4ff5d970999f333eaf0c7f9baf66c·...·]/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.78.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"><a·class="src·rightside"·h[·...·truncated·by·diffoscope;·len:·380,·SHA:·29c4004d4d8b0c8c9dfe9023f8b2c5ef801d9dc4688893035d182c1ae774c453·...·]/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.78.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:·754,·SHA:·e3afac523bd4c054d94fbbb6c5c856ac78a6359550526fa0726732b36529c33d·...·]/core/primitive.bool.html">bool</a><div·class="where">where109 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·922,·SHA:·f4fd532c280e18f28bd6dda6c2a129e2e92114b67f27235bb5fd39f725be9c43·...·]/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.78.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:·884,·SHA:·32570d141a71827f9ac19bf566a51ca4814ccafaf6f8a961920ce107fe9657d7·...·]/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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·1076,·SHA:·2dd9de8adaee4a5ee96501d9a58bfac2fea00ba8d78b834bfca29949b3afe18b·...·]/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.78.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:[·...·truncated·by·diffoscope;·len:·883,·SHA:·f441e2966ff8db4214e57fcd74f81262d6e371aa51cea97ebde5921e81b4da79·...·]/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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·1051,·SHA:·ecc0b8fccd861464760f9ae047ff6ab98c91a1db010cb5fa59a8c2ab883db7c4·...·]/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.78.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::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·returns115 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·130,·SHA:·130a13019dc175d02304b4f550157e2f13ac15c2f25a979c74161d10b146ab89·...·]/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/cor[·...·truncated·by·diffoscope;·len:·143,·SHA:·ec4fb002625b166504031522e52a66812b279e6735a67cb718813205909c3fb7·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_find"·class="fn">try_find</a>&lt;F,·R&gt;(116 the·first·non-none·result.·<a·href="https://doc.rust-lang.org/1.78.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:·8ced1b10e78750774c5c8ed995ed83dcd13983aa75d329acf8069da106ab9f4a·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_find"·class="fn">try_find</a>&lt;F,·R&gt;(
117 ····&amp;mut·self,117 ····&amp;mut·self,
118 ····f:·F118 ····f:·F
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</[·...·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">where119 )·-&gt;·&lt;&lt;R·as·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&gt;::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/ops/try_trait/trait.Try.html#associatedtype.Residual"·title="type[·...·truncated·by·diffoscope;·len:·626,·SHA:·95f9831257b68862cbcbf54f0ad2ff4e597a4c9f763112d1da8a0897dadcf872·...·]/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.78.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::Iterator::Item">Item</a>)·-&gt;·R,121 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·R,
122 ····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;,122 ····R:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.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.78.0/core/primitive.bool.html">bool</a>&gt;,
123 ····&lt;R·as·<a·class="trait"·href="../../../core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</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·returns123 ····&lt;R·as·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&gt;::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/ops/try_trait/trait.Try.html#associatedtype.Residual"·title="type[·...·truncated·by·diffoscope;·len:·412,·SHA:·22b8cbb007e5cce82b9d13a65bfa56aa8d83c32541fac25f4d9b3857b0540908·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;&gt;,</div></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
124 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"><a·class="src·rightside"·href="../../../src/cor[·...·truncated·by·diffoscope;·len:·419,·SHA:·4337d283573b9683aaa605a7d2417318ef2a03902876e7da2ec26f2a5febf794·...·]/core/primitive.usize.html">usize</a>&gt;<div·class="where">where124 the·first·true·result·or·the·first·error.·<a·href="https://doc.rust-lang.org/1.78.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"><a·class="src·rightside[·...·truncated·by·diffoscope;·len:·539,·SHA:·04e329705f11ed9ec269a68b0b75ac4ab26c78e4316a571ee9336c28bbca6359·...·]/core/primitive.usize.html">usize</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.78.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
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::Iter[·...·truncated·by·diffoscope;·len:·901,·SHA:·a6eb7314148a1006184790a26873440fac678952c99874de84cb66644e250c0b·...·]/core/primitive.usize.html">usize</a>&gt;<div·class="where">where126 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·1093,·SHA:·623dbacabfe45799103c799fb60a4d212ceb8759ff853a11209a07793257c9cd·...·]/core/primitive.usize.html">usize</a>&gt;<div·class="where">where
Max diff block lines reached; 81473/308008 bytes (26.45%) of diff not shown.
307 KB
./usr/share/doc/rust-web-doc/html/alloc/collections/btree_set/struct.Iter.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·items·of·a·`BTreeSet`."><title>Iter·in·alloc::collections::btree_set·-·Rust</title><script>·if·(window.location.protocol·!==·"file:")·document.write(`<link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../../static.files/SourceSerif4-Regular-46f98efaafac5295.ttf.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../../static.files/FiraSans-Regular-018c141bf0843ffd.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../../static.files/FiraSans-Medium-8f9a781e4970d388.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../../static.files/SourceCodePro-Regular-562dcc5011b6de7d.ttf.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../../static.files/SourceCodePro-Semibold-d899c5a5c4aeb14a.ttf.woff2">`)</script><link·rel="stylesheet"·href="../../../static.files/normalize-76eba96aa4d2e634.css"><link·rel="stylesheet"·href="../../../static.files/rustdoc-35f9e32502181f1e.css"><meta·name="rustdoc-vars"·data-root-path="../../../"·data-static-root-path="../../../static.files/"·data-current-crate="alloc"·data-themes=""·data-resource-suffix="1.78.0"·data-rustdoc-version="1.78.0"·data-channel="1.78.0"·data-search-js="search-42d8da7a6b9792c2.js"·data-settings-js="settings-4313503d2e1961c2.js"·><script·src="../../../static.files/storage-4c98445ec4002617.js"></script><script·defer·src="sidebar-items1.78.0.js"></script><script·defer·src="../../../static.files/main-12cf3b4f4f9dc36d.js"></script><noscript><link·rel="stylesheet"·href="../../../static.files/noscript-04d5337699b92874.css"></noscript><link·rel="alternate·icon"·type="image/png"·href="../../../static.files/favicon-16x16-8b506e7a72182f1c.png"><link·rel="alternate·icon"·type="image/png"·href="../../../static.files/favicon-32x32-422f7d1d52889060.png"><link·rel="icon"·type="image/svg+xml"·href="../../../static.files/favicon-2c020d218678b618.svg"></head><body·class="rustdoc·struct"><!--[if·lte·IE·11]><div·class="warning">This·old·browser·is·unsupported·and·will·most·likely·display·funky·things.</div><![endif]--><nav·class="mobile-topbar"><button·class="sidebar-menu-toggle"·title="show·sidebar"></button><a·class="logo-container"·href="../../../alloc/index.html"><img·class="rust-logo"·src="../../../static.files/rust-logo-151179464ae7ed46.svg"·alt=""></a></nav><nav·class="sidebar"><div·class="sidebar-crate"><a·class="logo-container"·href="../../../alloc/index.html"><img·class="rust-logo"·src="../../../static.files/rust-logo-151179464ae7ed46.svg"·alt="logo"></a><h2><a·href="../../../alloc/index.html">alloc</a><span·class="version">1.78.0</span></h2></div><h2·class="location"><a·href="#">Iter</a></h2><div·class="sidebar-elems"><section><h3><a·href="#trait-implementations">Trait·Implementations</a></h3><ul·class="block·trait-implementation"><li><a·href="#impl-Clone-for-Iter%3C'_,+T%3E">Clone</a></li><li><a·href="#impl-Debug-for-Iter%3C'_,+T%3E">Debug</a></li><li><a·href="#impl-Default-for-Iter%3C'_,+T%3E">Default</a></li><li><a·href="#impl-DoubleEndedIterator-for-Iter%3C'a,+T%3E">DoubleEndedIterator</a></li><li><a·href="#impl-ExactSizeIterator-for-Iter%3C'_,+T%3E">ExactSizeIterator</a></li><li><a·href="#impl-FusedIterator-for-Iter%3C'_,+T%3E">FusedIterator</a></li><li><a·href="#impl-Iterator-for-Iter%3C'a,+T%3E">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">Freeze</a></li><li><a·href="#impl-RefUnwindSafe-for-Iter%3C'a,+T%3E">RefUnwindSafe</a></li><li><a·href="#impl-Send-for-Iter%3C'a,+T%3E">Send</a></li><li><a·href="#impl-Sync-for-Iter%3C'a,+T%3E">Sync</a></li><li><a·href="#impl-Unpin-for-Iter%3C'a,+T%3E">Unpin</a></li><li><a·href="#impl-UnwindSafe-for-Iter%3C'a,+T%3E">UnwindSafe</a></li></ul><h3><a·href="#blanket-implementations">Blanket·Implementations</a></h3><ul·class="block·blanket-implementation"><li><a·href="#impl-Any-for-T">Any</a></li><li><a·href="#impl-Borrow%3CT%3E-for-T">Borrow&lt;T&gt;</a></li><li><a·href="#impl-BorrowMut%3CT%3E-for-T">BorrowMut&lt;T&gt;</a></li><li><a·href="#impl-From%3CT%3E-for-T">From&lt;T&gt;</a></li><li><a·href="#impl-Into%3CU%3E-for-T">Into&lt;U&gt;</a></li><li><a·href="#impl-IntoIterator-for-I">IntoIterator</a></li><li><a·href="#impl-ToOwned-for-T">ToOwned</a></li><li><a·href="#impl-TryFrom%3CU%3E-for-T">TryFrom&lt;U&gt;</a></li><li><a·href="#impl-TryInto%3CU%3E-for-T">TryInto&lt;U&gt;</a></li></ul></section><h2><a·href="index.html">In·alloc::collections::btree_set</a></h2></div></nav><div·class="sidebar-resizer"></div>1 <!DOCTYPE·html><html·lang="en"><head><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.write(`<link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../../static.files/SourceSerif4-Regular-46f98efaafac5295.ttf.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../../static.files/FiraSans-Regular-018c141bf0843ffd.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../../static.files/FiraSans-Medium-8f9a781e4970d388.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../../static.files/SourceCodePro-Regular-562dcc5011b6de7d.ttf.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../../static.files/SourceCodePro-Semibold-d899c5a5c4aeb14a.ttf.woff2">`)</script><link·rel="stylesheet"·href="../../../static.files/normalize-76eba96aa4d2e634.css"><link·rel="stylesheet"·href="../../../static.files/rustdoc-35f9e32502181f1e.css"><meta·name="rustdoc-vars"·data-root-path="../../../"·data-static-root-path="../../../static.files/"·data-current-crate="alloc"·data-themes=""·data-resource-suffix="1.78.0"·data-rustdoc-version="1.78.0"·data-channel="1.78.0"·data-search-js="search-42d8da7a6b9792c2.js"·data-settings-js="settings-4313503d2e1961c2.js"·><script·src="../../../static.files/storage-4c98445ec4002617.js"></script><script·defer·src="sidebar-items1.78.0.js"></script><script·defer·src="../../../static.files/main-12cf3b4f4f9dc36d.js"></script><noscript><link·rel="stylesheet"·href="../../../static.files/noscript-04d5337699b92874.css"></noscript><link·rel="alternate·icon"·type="image/png"·href="../../../static.files/favicon-16x16-8b506e7a72182f1c.png"><link·rel="alternate·icon"·type="image/png"·href="../../../static.files/favicon-32x32-422f7d1d52889060.png"><link·rel="icon"·type="image/svg+xml"·href="../../../static.files/favicon-2c020d218678b618.svg"></head><body·class="rustdoc·struct"><!--[if·lte·IE·11]><div·class="warning">This·old·browser·is·unsupported·and·will·most·likely·display·funky·things.</div><![endif]--><nav·class="mobile-topbar"><button·class="sidebar-menu-toggle"·title="show·sidebar"></button><a·class="logo-container"·href="../../../alloc/index.html"><img·class="rust-logo"·src="../../../static.files/rust-logo-151179464ae7ed46.svg"·alt=""></a></nav><nav·class="sidebar"><div·class="sidebar-crate"><a·class="logo-container"·href="../../../alloc/index.html"><img·class="rust-logo"·src="../../../static.files/rust-logo-151179464ae7ed46.svg"·alt="logo"></a><h2><a·href="../../../alloc/index.html">alloc</a><span·class="version">1.78.0</span></h2></div><h2·class="location"><a·href="#">Iter</a></h2><div·class="sidebar-elems"><section><h3><a·href="#trait-implementations">Trait·Implementations</a></h3><ul·class="block·trait-implementation"><li><a·href="#impl-Clone-for-Iter%3C'_,+T%3E">Clone</a></li><li><a·href="#impl-Debug-for-Iter%3C'_,+T%3E">Debug</a></li><li><a·href="#impl-Default-for-Iter%3C'_,+T%3E">Default</a></li><li><a·href="#impl-DoubleEndedIterator-for-Iter%3C'a,+T%3E">DoubleEndedIterator</a></li><li><a·href="#impl-ExactSizeIterator-for-Iter%3C'_,+T%3E">ExactSizeIterator</a></li><li><a·href="#impl-FusedIterator-for-Iter%3C'_,+T%3E">FusedIterator</a></li><li><a·href="#impl-Iterator-for-Iter%3C'a,+T%3E">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">Freeze</a></li><li><a·href="#impl-RefUnwindSafe-for-Iter%3C'a,+T%3E">RefUnwindSafe</a></li><li><a·href="#impl-Send-for-Iter%3C'a,+T%3E">Send</a></li><li><a·href="#impl-Sync-for-Iter%3C'a,+T%3E">Sync</a></li><li><a·href="#impl-Unpin-for-Iter%3C'a,+T%3E">Unpin</a></li><li><a·href="#impl-UnwindSafe-for-Iter%3C'a,+T%3E">UnwindSafe</a></li></ul><h3><a·href="#blanket-implementations">Blanket·Implementations</a></h3><ul·class="block·blanket-implementation"><li><a·href="#impl-Any-for-T">Any</a></li><li><a·href="#impl-Borrow%3CT%3E-for-T">Borrow&lt;T&gt;</a></li><li><a·href="#impl-BorrowMut%3CT%3E-for-T">BorrowMut&lt;T&gt;</a></li><li><a·href="#impl-From%3CT%3E-for-T">From&lt;T&gt;</a></li><li><a·href="#impl-Into%3CU%3E-for-T">Into&lt;U&gt;</a></li><li><a·href="#impl-IntoIterator-for-I">IntoIterator</a></li><li><a·href="#impl-ToOwned-for-T">ToOwned</a></li><li><a·href="#impl-TryFrom%3CU%3E-for-T">TryFrom&lt;U&gt;</a></li><li><a·href="#impl-TryInto%3CU%3E-for-T">TryInto&lt;U&gt;</a></li></ul></section><h2><a·href="index.html">In·alloc::collections::btree_set</a></h2></div></nav><div·class="sidebar-resizer"></div>
2 ····<main><div·class="width-limiter"><nav·class="sub"><form·class="search-form"><span></span><div·id="sidebar-button"·tabindex="-1"><a·href="../../../alloc/all.html"·title="show·sidebar"></a></div><input·class="search-input"·name="search"·aria-label="Run·search·in·the·documentation"·autocomplete="off"·spellcheck="false"·placeholder="Click·or·press·‘S’·to·search,·‘?’·for·more·options…"·type="search"><div·id="help-button"·tabindex="-1"><a·href="../../../help.html"·title="help">?</a></div><div·id="settings-menu"·tabindex="-1"><a·href="../../../settings.html"·title="settings"><img·width="22"·height="22"·alt="Change·settings"·src="../../../static.files/wheel-7b819b6101059cd0.svg"></a></div></form></nav><section·id="main-content"·class="content"><div·class="main-heading"><h1>Struct·<a·href="../../index.html">alloc</a>::<wbr><a·href="../index.html">collections</a>::<wbr><a·href="index.html">btree_set</a>::<wbr><a·class="struct"·href="#">Iter</a><button·id="copy-path"·title="Copy·item·path·to·clipboard"><img·src="../../../static.files/clipboard-7571035ce49a181d.svg"·width="19"·height="18"·alt="Copy·item·path"></button></h1><span·class="out-of-band"><span·class="since"·title="Stable·since·Rust·version·1.0.0">1.0.0</span>···<a·class="src"·href="../../../src/alloc/collections/btree/set.rs.html#132-134">source</a>···<button·id="toggle-all-docs"·title="collapse·all·docs">[<span>&#x2212;</span>]</button></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 ····<main><div·class="width-limiter"><nav·class="sub"><form·class="search-form"><span></span><div·id="sidebar-button"·tabindex="-1"><a·href="../../../alloc/all.html"·title="show·sidebar"></a></div><input·class="search-input"·name="search"·aria-label="Run·search·in·the·documentation"·autocomplete="off"·spellcheck="false"·placeholder="Click·or·press·‘S’·to·search,·‘?’·for·more·options…"·type="search"><div·id="help-button"·tabindex="-1"><a·href="../../../help.html"·title="help">?</a></div><div·id="settings-menu"·tabindex="-1"><a·href="../../../settings.html"·title="settings"><img·width="22"·height="22"·alt="Change·settings"·src="../../../static.files/wheel-7b819b6101059cd0.svg"></a></div></form></nav><section·id="main-content"·class="content"><div·class="main-heading"><h1>Struct·<a·href="../../index.html">alloc</a>::<wbr><a·href="../index.html">collections</a>::<wbr><a·href="index.html">btree_set</a>::<wbr><a·class="struct"·href="#">Iter</a><button·id="copy-path"·title="Copy·item·path·to·clipboard"><img·src="../../../static.files/clipboard-7571035ce49a181d.svg"·width="19"·height="18"·alt="Copy·item·path"></button></h1><span·class="out-of-band"><span·class="since"·title="Stable·since·Rust·version·1.0.0">1.0.0</span>···<a·class="src"·href="../../../src/alloc/collections/btree/set.rs.html#132-134">source</a>···<button·id="toggle-all-docs"·title="collapse·all·docs">[<span>&#x2212;</span>]</button></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>
3 <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 <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>.
4 See·its·documentation·for·more.</p>4 See·its·documentation·for·more.</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-Iter%3C'_,+T%3E"·class="impl"><a·class="src·rightside"·href="../../../src/alloc/collections/btree/set.rs.html#1460-1464">source</a><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:·3739,·SHA:·f4746b2ab55694bbd000a4d55b0f82ff87ddfb25af711c037bf127661984ace8·...·]/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></details><h2·id="trait-implementations"·class="section-header">Trait·Implementations<a·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"><a·class="src·rightside"·href="../../../src/alloc/collections/btree/set.rs.html#1460-1464">source</a><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.78.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:·3955,·SHA:·26be88ba11db9533779965a7f308624a3e2e4a2570e949689e134d96d065bc28·...·]/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>
  
6 <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 <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();
7 <span·class="macro">assert_eq!</span>(iter.len(),·<span·class="number">0</span>);</code></pre><a·class="test-arrow"·target="_blank"·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">Run</a></div>7 <span·class="macro">assert_eq!</span>(iter.len(),·<span·class="number">0</span>);</code></pre><a·class="test-arrow"·target="_blank"·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">Run</a></div>
8 </div></details></div></details><details·class="toggle·implementors-toggle"·open><summary><section·id="impl-DoubleEndedIterator-for-Iter%3C'a,+T%3E"·class="impl"><a·class="src·rightside"·href="../../../src/alloc/collections/btree/set.rs.html#1496-1500">source</a><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:·1ca10bc41e313b4eb37063d1343abd592f536591f080a06393799c3e426fee35·...·]/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-Iter%3C'a,+T%3E"·class="impl"><a·class="src·rightside"·href="../../../src/alloc/collections/btree/set.rs.html#1496-1500">source</a><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.78.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:·906989abba5f44ce346dcbb1440acbfeb0ae7aba8223466f41f5207f4056a2f4·...·]/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.78.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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(B,·Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.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.78.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.7[·...·truncated·by·diffoscope;·len:·3,·SHA:·7b1bd53949b752d143d871408483b5382371b5bc48d195d0c040ec93cfa2748b·...·]/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:·b3a5d6383debff0cac836c5889a757f11b019bc049778c518e60e4d37a3c4da1·...·]/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.78.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:·d66ed7e195a53e9945339ef1976aed455dcf80228d8e5b7b0c69a64c3983fea1·...·]/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.78.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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(B,·Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/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:·d11fd274e41827c1daee0c80a6ab5f978a613ab26297cb460535fef32cff8551·...·]/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.78.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:·c264047794019a6dcf05728ba6a6ee1f8f07c7209958b3366ba94546b527ecdc·...·]/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.78.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:·6830,·SHA:·8b24efdfd389b51a2df14ce47ebb0833549f8b79f47cf386fad127e666d8f40b·...·]/core/primitive.reference.html">&amp;'a·T</a>&gt;<div·class="where">where17 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·7574,·SHA:·5723f5bfc6527deb0ea179cd645551df48efcebb52f17dd833c475c1a055ee6c·...·]/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·minimum·element·of·an·iterator.·<a·href=".[·...·truncated·by·diffoscope;·len:·619,·SHA:·a38e0e3e68e4cc06254b0c7c869513cc39d49d581ce19497307a3eb8157f6436·...·]/core/primitive.reference.html">&amp;'a·T</a>&gt;<div·class="where">where18 ····<a·class="primitive"·href="https://doc.rust-lang.org/1.78.0/core/primitive.reference.html">&amp;'a·T</a>:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.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:·08aa69f6824d49e8093415517848d5da1b7543d33a7822deacd4e6ae385a6ea6·...·]/core/primitive.reference.html">&amp;'a·T</a>&gt;<div·class="where">where
19 ····<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:·d54aa3470f25772b3e683a4a30dbc4d9b84be9c4af3e985671139ba75faecc60·...·]/core/primitive.usize.html">usize</a>&gt;(19 ····<a·class="primitive"·href="https://doc.rust-lang.org/1.78.0/core/primitive.reference.html">&amp;'a·T</a>:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.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:·06c44c04806bb1b7d0ccf1974876e0233c8d283896e6224a16191c961665d23a·...·]/core/primitive.usize.html">usize</a>&gt;(
20 ····&amp;mut·self20 ····&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.78.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.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title=[·...·truncated·by·diffoscope;·len:·381,·SHA:·88c48923c9b7ea5cc47c1087c60e09656e81d4671c58071ba2bef826335388bc·...·]/core/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:·746,·SHA:·99cc415a31b91c57f7eeb82ad0d2d1ba424489bee49de37c86a4ea21c663ccda·...·]/core/primitive.usize.html">usize</a><div·class="where">where22 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experiment[·...·truncated·by·diffoscope;·len:·866,·SHA:·945d2d86f0c4c5ca3e3ee3b181d18b2bbea57ee1a5a7efe16c0c915a5bf2c3ad·...·]/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:·2953,·SHA:·2e5656679d63218ae5d5d1b1a4dfc8d59cd28ba505be6dd08ba60caae9804629·...·]/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.78.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:·3433,·SHA:·49d1274908fa1d1e8e571a7a381dde77211770148791bbfb1cd851b4f911e155·...·]/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.78.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"><a·class="src·rightside"·href="../../../src/core/it[·...·truncated·by·diffoscope;·len:·602,·SHA:·cfe4c4d300dddc2abdc2f8194eb969c68b2240c28239969b5be2af6a564ed8cc·...·]/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.78.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"><a·class="src·rightside"·hr[·...·truncated·by·diffoscope;·len:·746,·SHA:·f1f70d650c102c8658e13890c7dbfc87418f07e7b522246fb579ec434ef64f7c·...·]/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.78.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:·1041,·SHA:·a281d174c9671021427f0b458ac94e87746ac44730475aa725652c6c15e2b972·...·]/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.78.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.78.0/core/iter/traits/it[·...·truncated·by·diffoscope;·len:·1233,·SHA:·f677df2d893dfe0dc1a9d31ebb0ba71a346d265781813e0d664d3f18369b6163·...·]/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.78.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:·b9001dd3131b1425179c94853e1b90fff0f7169b9570e86cd50c6b7fbf1ee8a5·...·]/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.78.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:·98627729f77dcf1c9d258f343354ba600b7134c6b3929080f231e8de7155b70b·...·]/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.78.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.78.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.78.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"><a·class="src·rightside"·href="../../../src/[·...·truncated·by·diffoscope;·len:·279,·SHA:·f2c34c2e64e77c66684f837812ebc4a94c81b2ad5862cc0131f80c3ce89e008a·...·]/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.78.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"><a·class="src·rights[·...·truncated·by·diffoscope;·len:·375,·SHA:·58419346f92e1709dadb70cc3cf356e3cd27972451bdc6b4fc4267e6f7e8bdae·...·]/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.78.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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::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:·d75758e0f8262eeea27445cec43f13d84f0c02ba4e03c0c54d041f9ab1965e0f·...·]/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.78.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:·98f6effefa44d759c249143d83623f0055d937382bfc398b7e1f5e92cd413657·...·]/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.78.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:·676,·SHA:·9ae42ed293737a3dd44c1ee9d98c6aabb1552fbb9d203cb852ee9fcc7834a6ca·...·]/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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·820,·SHA:·a664bbcbc0891663662e4eb7b4394d0fcd72e568136fc4d34097fea242cc32e7·...·]/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.78.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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·140,·SHA:·752f473b57e7444ebfddf5ea7fd40a332e83ec55524a6c31b5ee0f82a5dea819·...·]/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"><a·class="src·rightside"·href="../../../src/cor[·...·truncated·by·diffoscope;·len:·297,·SHA:·f01e44d4caf6c6ad80b37656b9300f7111340711dcd74d70867b5a652dbfb538·...·]/core/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.78.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"><a·class="src·rightside[·...·truncated·by·diffoscope;·len:·393,·SHA:·2e2aa7c9c9c087e7b346da376749064ab8c1894795a2f0a0f646cdc8c7bea997·...·]/core/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.78.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:·788,·SHA:·b788f412af946d2bd7646ba39a8c316ebfa88109f9626dbad9bf9964f975cd0c·...·]/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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·956,·SHA:·faba0521e870dbbd26d466fadba3522e7d29013a9b86376fffafffac11a57e0e·...·]/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.78.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"><a·class="src·rightside"·href="../../../src/co[·...·truncated·by·diffoscope;·len:·276,·SHA:·e337ee1b810d3ec0480569c4ed323ebf0a2315c8ae3c522a73fcca3aa8e6efb3·...·]/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.78.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"><a·class="src·rightsid[·...·truncated·by·diffoscope;·len:·372,·SHA:·03eea0861575eb80d3f7a87a3ba747adb1a33fe7e9ce72aa2172e7a287c63a94·...·]/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.78.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.78.0/core/iter/adapte[·...·truncated·by·diffoscope;·len:·175,·SHA:·16fe7225bf05b478e2828b347c3d23ded9a22f89d8887a2c65d9f7b3faf1b0e7·...·]/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"><a·class="src·rightside"·href="../../../src/c[·...·truncated·by·diffoscope;·len:·306,·SHA:·a9bc004bf639fa188165a336061c6c98ec7ff9d266a18f10db200dfa9a880b88·...·]/core/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.78.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"><a·class="src·rightsi[·...·truncated·by·diffoscope;·len:·402,·SHA:·7689a974f800fd069d1b4453ef62d6d6ad1b654462d624d36e3672051d502030·...·]/core/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.78.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:·946,·SHA:·877b8718d9df1464a912dd50eef16402225367db4e4b26484b5ee20d30644524·...·]/core/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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·1138,·SHA:·f6ae06b7de8e94df014341c5cf589a5e4a1298367b2ef7a968ec499c5170a70e·...·]/core/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.78.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:·552b3dd2132886d024e4d5bd2554611e25c1f068adaaf23ecf80da81d31997ef·...·]/core/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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·1058,·SHA:·b390dbdda8d7e93604b5ecd906a93efd03fe19bdaf41cf12893fd361bf974307·...·]/core/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.78.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:·875,·SHA:·5c5c44422f75cbb66ebcf54bea70536713b810843cc484b051aed088c6422d78·...·]/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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·1067,·SHA:·415d32e1211c35d3bb405de1d6e51c2102c14cadc3333894f063148dbe0b1f69·...·]/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:·543,·SHA:·f199bafab360be9b80e9f45c5ba799a52348b742ddb0fa9afdb1624729c36e58·...·]/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.78.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:·687,·SHA:·7f5256104c35c5948a2cb42b55f3048c9d2887e48a4a8226537a284f959c562a·...·]/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.78.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"><a·class="src·rightside"·href="../../../src/core/iter/t[·...·truncated·by·diffoscope;·len:·296,·SHA:·aea014801138aeee574964545b1e9ad297288a120113db6844b569d2b183e0a7·...·]/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.78.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"><a·class="src·rightside"·href="[·...·truncated·by·diffoscope;·len:·392,·SHA:·4e7da68f7be2622ef173653eca78d58e1f202b544a2e6abd14d8335c298c93a7·...·]/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.78.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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(<a·class="primitive"·href="https://doc.rust-lang.org/1.78.0/core/primitive.reference.html">&amp;mut·St</a>,·Self::<a·class="associatedty[·...·truncated·by·diffoscope;·len:·449,·SHA:·f12c268a8a8111b9e7126ad78bf5523a63733caa63d187c4fe792309ea41acdf·...·]/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:·474,·SHA:·c0ed850df640319d919b8c053c540caa158602207623bed65abbcd69ad9d2c9d·...·]/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.78.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.78.0/core/iter/trai[·...·truncated·by·diffoscope;·len:·594,·SHA:·02960742fa7892efaa08f289ce85865fc5efb6a4cd138c22e3566ca6fc727d78·...·]/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.78.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.78.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:·4d1f54658fd1c005b101a2e27b0da3c6ee0cbe2d891660c65470bfec01fa46f6·...·]/core/iter/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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·976,·SHA:·2a9182f6fe88e0b8a9b1ae1f46cace940cc0b8736033c354c0f0ccbf1c196e7a·...·]/core/iter/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.78.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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;[Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtyp[·...·truncated·by·diffoscope;·len:·135,·SHA:·0b06a6094d42ccbc8bce5b01c4383961fe7f1967f05e4c9f1ff33e71e425fb26·...·]/core/primitive.array.html">N</a>])·-&gt;·R,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iter_map_windows</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/87155">#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.78.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"><a·class="src·rightside"·href="../../../src/core[·...·truncated·by·diffoscope;·len:·262,·SHA:·6125a8b2b88486b3735bbd00905fe9ae55b6eb1491c8a493be9c8121dc3cb440·...·]/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.78.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"><a·class="src·rightside"[·...·truncated·by·diffoscope;·len:·358,·SHA:·d91b2ab18e0ce069e262cf523c6ef961f56eecad042ea1e9bcefe33cff28fc8f·...·]/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:·601,·SHA:·bdf3796aa87e911258d56122ffdaa3f8591a5c9db4ed6fd89c3dfd3660787f78·...·]/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.78.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.78.0/core/op[·...·truncated·by·diffoscope;·len:·745,·SHA:·424783f22102f4446d3ad4d362b1aafdb7531fa777213f97ee138aa878f67bd1·...·]/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.78.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:·694,·SHA:·db4bb2630979aa4504432e8d422265d943c9063bcf3d2e3be970003014226f1e·...·]/core/primitive.reference.html">&amp;mut·Self</a><div·class="where">where69 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·838,·SHA:·9b4fd8df7f41e9a76fd4cfca0a233b74b9bd27c3fe8228248abc3f940425a3e3·...·]/core/primitive.reference.html">&amp;mut·Self</a><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:·331,·SHA:·d13641714c275840abbb473011613a4e19924a453f5e1b83912681a9b7c5579b·...·]/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.78.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.78.0/core/it[·...·truncated·by·diffoscope;·len:·427,·SHA:·ecfaaac5d1d10c1bc4fcee9a050af0a268bee0b528c2d8ea4e9774440bd8a279·...·]/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.78.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.78.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:·d76c3fcf86c63211032a6b22dc5924ef552b1ad26b12e19f15d2f1d5b3d7e394·...·]/core/primitive.reference.html">&amp;mut·E</a><div·class="where">where72 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.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.78.0/core/iter/tr[·...·truncated·by·diffoscope;·len:·728,·SHA:·01937c2dc314c259495665570ae249c94b4a5b0719718f5f1188e6fc64ecf487·...·]/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.78.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.78.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:·759,·SHA:·3cf174fac64a83c8e22066c3d77741118f89b13411537fc82c1004faa5c9e2ae·...·]/core/primitive.tuple.html">(B,·B)</a><div·class="where">where74 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experiment[·...·truncated·by·diffoscope;·len:·879,·SHA:·e773b2222c92d001e295030cb47a780ab0c1132d7fc8e9e3a98de4f532e6c520·...·]/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.78.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.78.0/core/default/trait.Default.html"·title="trait·core::default::Default">Default</a>·+·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/collect/trait.Extend.html"·title="trait·core::iter::traits::collec[·...·truncated·by·diffoscope;·len:·95,·SHA:·8b3be1d0042cae0550f865faf5849221240bdf04eb1b2107605b72d48c3ad29c·...·]/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:·281bbd5137cae68dd8057d013e9c9f311461e746663120304e3f6adace77f784·...·]/core/primitive.usize.html">usize</a><div·class="where">where77 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·995,·SHA:·bec3765fdab56713186e2454cd84738b5b28e3280a2f3d5a25cefdbc3089b520·...·]/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.78.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>·+·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/double_ended/trait.DoubleEndedIterator.html"·title="trait·core::iter::trai[·...·truncated·by·diffoscope;·len:·132,·SHA:·e5b2cf5f56946ede1e190ed09879c5821e2de04cf8e5d145142eeb40c6340982·...·]/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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(<a·class="primitive"·href="https://doc.rust-lang.org/1.78.0/core/primitive.reference.html">&amp;T</a>)·-&gt;·<a·class="primitive"·href="[·...·truncated·by·diffoscope;·len:·32,·SHA:·63d052a8ced32bf927ffadd7e884c08caf4970e85dfdf6be0e568d49b174da96·...·]/core/primitive.bool.html">bool</a>,</div></h4></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:·dc6a465df534b0392c5280e79e5249847890045561099b2cfc44bfabc4801d8d·...·]/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.78.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:·0c224636c18baa273f69de21f90083317f2ea0b7367a3f0d0f1c0ace55a36f79·...·]/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.78.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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·135,·SHA:·51ff5f5c7ebd8440623ea71b125c5a5837e809e308fe1a13fbe19cddb941dbd9·...·]/core/primitive.bool.html">bool</a>,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iter_is_partitioned</code>&nbsp;<a·href="https://github.com/rust-lang/rust/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:·bd8fce4ee431c619c98780c4d520e8db93f1e034f12843ffaff5744b7ce2190b·...·]/core/iter/traits/iterator/trait.Iterator.html#method.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.78.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:·2c74873f4e5ba70004a1c7edd1cc3f9e2d91271295dd1591e2d26848df4c02ba·...·]/core/iter/traits/iterator/trait.Iterator.html#method.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.78.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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(B,·Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.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.78.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:·7b4fc32e7634ae85c682a97099be267837713d7e4831893b617ca652f57a89da·...·]/core/iter/traits/iterator/trait.Iterator.html#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.78.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:·52912e82c4b0a760d06f77eb4ee3a59ba70dd76cb532954900c73ae94c652674·...·]/core/iter/traits/iterator/trait.Iterator.html#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.78.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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.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.78.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.78.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"><a·class="src·rightside"·href="../../../src/cor[·...·truncated·by·diffoscope;·len:·139,·SHA:·dc7fb7a70636459a0d7de28cbcb454050f39c184bab178c95c524a6eb9ca51cf·...·]/core/iter/traits/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.78.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"><a·class="src·rightside[·...·truncated·by·diffoscope;·len:·211,·SHA:·924e062acd8127e8d6158162219ee5d57a941854e14063d21d7768edae549431·...·]/core/iter/traits/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.78.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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(B,·Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::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:·2c738ecc68200afa2467bef085de14dcb642dbaac77c4529948f5e259e66691d·...·]/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.78.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:·b60215068a6d9721be05f81098c51167d7138c4042f140cad42f77c4df43f597·...·]/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.78.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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·352,·SHA:·e7c3c296abe2c0a183967153e4ae7fd50bafa2ae7088e3e78b3b48fee253adc6·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::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:·c3f1d50e276def36966943119961a20b09cab3be33483fe4d48d7f322489534b·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_reduce"·class="fn">try_reduce</a>&lt;F,·R&gt;(99 operation.·<a·href="https://doc.rust-lang.org/1.78.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:·7a18fdd041b1a001b4a8feb289ee127fd9240232239269eb35dc3b8f74783ec9·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_reduce"·class="fn">try_reduce</a>&lt;F,·R&gt;(
100 ····&amp;mut·self,100 ····&amp;mut·self,
101 ····f:·F101 ····f:·F
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.78.0/core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&gt;::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/ops/try_trait/trait.Try.html#associatedtype.Residual"·title="type[·...·truncated·by·diffoscope;·len:·754,·SHA:·6fb4dfdb6b4da68921c1e7f8b75d99cf293d58318d684a840254ce9576957bea·...·]/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.78.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:·68,·SHA:·e7e11f257edcac749a5883ad9a3aa42e6e965be419f967b36caa7afd3b36d7c9·...·]/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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·140,·SHA:·c27972e6fa3464c9476eaa185e8657edb6bb294f148403f3d079285294a9f909·...·]/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·=·Self::<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.78.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.78.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</[·...·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·the106 ····&lt;R·as·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&gt;::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/ops/try_trait/trait.Try.html#associatedtype.Residual"·title="type[·...·truncated·by·diffoscope;·len:·412,·SHA:·22b8cbb007e5cce82b9d13a65bfa56aa8d83c32541fac25f4d9b3857b0540908·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;&gt;,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iterator_try_reduce</code>&nbsp;<a·href="https://github.com/rust-lang/rust/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"><a·class="src·rightside"·href="../../../src/core/i[·...·truncated·by·diffoscope;·len:·284,·SHA:·fbacd9a305d3a60d42d9adcc5ea9e5f579f4ff5d970999f333eaf0c7f9baf66c·...·]/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.78.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"><a·class="src·rightside"·h[·...·truncated·by·diffoscope;·len:·380,·SHA:·29c4004d4d8b0c8c9dfe9023f8b2c5ef801d9dc4688893035d182c1ae774c453·...·]/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.78.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:·754,·SHA:·e3afac523bd4c054d94fbbb6c5c856ac78a6359550526fa0726732b36529c33d·...·]/core/primitive.bool.html">bool</a><div·class="where">where109 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·922,·SHA:·f4fd532c280e18f28bd6dda6c2a129e2e92114b67f27235bb5fd39f725be9c43·...·]/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.78.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:·884,·SHA:·32570d141a71827f9ac19bf566a51ca4814ccafaf6f8a961920ce107fe9657d7·...·]/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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·1076,·SHA:·2dd9de8adaee4a5ee96501d9a58bfac2fea00ba8d78b834bfca29949b3afe18b·...·]/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.78.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:[·...·truncated·by·diffoscope;·len:·883,·SHA:·f441e2966ff8db4214e57fcd74f81262d6e371aa51cea97ebde5921e81b4da79·...·]/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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·1051,·SHA:·ecc0b8fccd861464760f9ae047ff6ab98c91a1db010cb5fa59a8c2ab883db7c4·...·]/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.78.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::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·returns115 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·130,·SHA:·130a13019dc175d02304b4f550157e2f13ac15c2f25a979c74161d10b146ab89·...·]/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/cor[·...·truncated·by·diffoscope;·len:·143,·SHA:·ec4fb002625b166504031522e52a66812b279e6735a67cb718813205909c3fb7·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_find"·class="fn">try_find</a>&lt;F,·R&gt;(116 the·first·non-none·result.·<a·href="https://doc.rust-lang.org/1.78.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:·8ced1b10e78750774c5c8ed995ed83dcd13983aa75d329acf8069da106ab9f4a·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_find"·class="fn">try_find</a>&lt;F,·R&gt;(
117 ····&amp;mut·self,117 ····&amp;mut·self,
118 ····f:·F118 ····f:·F
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</[·...·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">where119 )·-&gt;·&lt;&lt;R·as·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&gt;::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/ops/try_trait/trait.Try.html#associatedtype.Residual"·title="type[·...·truncated·by·diffoscope;·len:·626,·SHA:·95f9831257b68862cbcbf54f0ad2ff4e597a4c9f763112d1da8a0897dadcf872·...·]/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.78.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::Iterator::Item">Item</a>)·-&gt;·R,121 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·R,
122 ····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;,122 ····R:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.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.78.0/core/primitive.bool.html">bool</a>&gt;,
123 ····&lt;R·as·<a·class="trait"·href="../../../core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</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·returns123 ····&lt;R·as·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&gt;::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/ops/try_trait/trait.Try.html#associatedtype.Residual"·title="type[·...·truncated·by·diffoscope;·len:·412,·SHA:·22b8cbb007e5cce82b9d13a65bfa56aa8d83c32541fac25f4d9b3857b0540908·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;&gt;,</div></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
124 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"><a·class="src·rightside"·href="../../../src/cor[·...·truncated·by·diffoscope;·len:·419,·SHA:·4337d283573b9683aaa605a7d2417318ef2a03902876e7da2ec26f2a5febf794·...·]/core/primitive.usize.html">usize</a>&gt;<div·class="where">where124 the·first·true·result·or·the·first·error.·<a·href="https://doc.rust-lang.org/1.78.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"><a·class="src·rightside[·...·truncated·by·diffoscope;·len:·539,·SHA:·04e329705f11ed9ec269a68b0b75ac4ab26c78e4316a571ee9336c28bbca6359·...·]/core/primitive.usize.html">usize</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.78.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
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::Iter[·...·truncated·by·diffoscope;·len:·901,·SHA:·a6eb7314148a1006184790a26873440fac678952c99874de84cb66644e250c0b·...·]/core/primitive.usize.html">usize</a>&gt;<div·class="where">where126 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·1093,·SHA:·623dbacabfe45799103c799fb60a4d212ceb8759ff853a11209a07793257c9cd·...·]/core/primitive.usize.html">usize</a>&gt;<div·class="where">where
Max diff block lines reached; 83417/314491 bytes (26.52%) of diff not shown.
305 KB
./usr/share/doc/rust-web-doc/html/alloc/collections/btree_set/struct.Range.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·sub-range·of·items·in·a·`BTreeSet`."><title>Range·in·alloc::collections::btree_set·-·Rust</title><script>·if·(window.location.protocol·!==·"file:")·document.write(`<link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../../static.files/SourceSerif4-Regular-46f98efaafac5295.ttf.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../../static.files/FiraSans-Regular-018c141bf0843ffd.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../../static.files/FiraSans-Medium-8f9a781e4970d388.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../../static.files/SourceCodePro-Regular-562dcc5011b6de7d.ttf.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../../static.files/SourceCodePro-Semibold-d899c5a5c4aeb14a.ttf.woff2">`)</script><link·rel="stylesheet"·href="../../../static.files/normalize-76eba96aa4d2e634.css"><link·rel="stylesheet"·href="../../../static.files/rustdoc-35f9e32502181f1e.css"><meta·name="rustdoc-vars"·data-root-path="../../../"·data-static-root-path="../../../static.files/"·data-current-crate="alloc"·data-themes=""·data-resource-suffix="1.78.0"·data-rustdoc-version="1.78.0"·data-channel="1.78.0"·data-search-js="search-42d8da7a6b9792c2.js"·data-settings-js="settings-4313503d2e1961c2.js"·><script·src="../../../static.files/storage-4c98445ec4002617.js"></script><script·defer·src="sidebar-items1.78.0.js"></script><script·defer·src="../../../static.files/main-12cf3b4f4f9dc36d.js"></script><noscript><link·rel="stylesheet"·href="../../../static.files/noscript-04d5337699b92874.css"></noscript><link·rel="alternate·icon"·type="image/png"·href="../../../static.files/favicon-16x16-8b506e7a72182f1c.png"><link·rel="alternate·icon"·type="image/png"·href="../../../static.files/favicon-32x32-422f7d1d52889060.png"><link·rel="icon"·type="image/svg+xml"·href="../../../static.files/favicon-2c020d218678b618.svg"></head><body·class="rustdoc·struct"><!--[if·lte·IE·11]><div·class="warning">This·old·browser·is·unsupported·and·will·most·likely·display·funky·things.</div><![endif]--><nav·class="mobile-topbar"><button·class="sidebar-menu-toggle"·title="show·sidebar"></button><a·class="logo-container"·href="../../../alloc/index.html"><img·class="rust-logo"·src="../../../static.files/rust-logo-151179464ae7ed46.svg"·alt=""></a></nav><nav·class="sidebar"><div·class="sidebar-crate"><a·class="logo-container"·href="../../../alloc/index.html"><img·class="rust-logo"·src="../../../static.files/rust-logo-151179464ae7ed46.svg"·alt="logo"></a><h2><a·href="../../../alloc/index.html">alloc</a><span·class="version">1.78.0</span></h2></div><h2·class="location"><a·href="#">Range</a></h2><div·class="sidebar-elems"><section><h3><a·href="#trait-implementations">Trait·Implementations</a></h3><ul·class="block·trait-implementation"><li><a·href="#impl-Clone-for-Range%3C'_,+T%3E">Clone</a></li><li><a·href="#impl-Debug-for-Range%3C'a,+T%3E">Debug</a></li><li><a·href="#impl-Default-for-Range%3C'_,+T%3E">Default</a></li><li><a·href="#impl-DoubleEndedIterator-for-Range%3C'a,+T%3E">DoubleEndedIterator</a></li><li><a·href="#impl-FusedIterator-for-Range%3C'_,+T%3E">FusedIterator</a></li><li><a·href="#impl-Iterator-for-Range%3C'a,+T%3E">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">Freeze</a></li><li><a·href="#impl-RefUnwindSafe-for-Range%3C'a,+T%3E">RefUnwindSafe</a></li><li><a·href="#impl-Send-for-Range%3C'a,+T%3E">Send</a></li><li><a·href="#impl-Sync-for-Range%3C'a,+T%3E">Sync</a></li><li><a·href="#impl-Unpin-for-Range%3C'a,+T%3E">Unpin</a></li><li><a·href="#impl-UnwindSafe-for-Range%3C'a,+T%3E">UnwindSafe</a></li></ul><h3><a·href="#blanket-implementations">Blanket·Implementations</a></h3><ul·class="block·blanket-implementation"><li><a·href="#impl-Any-for-T">Any</a></li><li><a·href="#impl-Borrow%3CT%3E-for-T">Borrow&lt;T&gt;</a></li><li><a·href="#impl-BorrowMut%3CT%3E-for-T">BorrowMut&lt;T&gt;</a></li><li><a·href="#impl-From%3CT%3E-for-T">From&lt;T&gt;</a></li><li><a·href="#impl-Into%3CU%3E-for-T">Into&lt;U&gt;</a></li><li><a·href="#impl-IntoIterator-for-I">IntoIterator</a></li><li><a·href="#impl-ToOwned-for-T">ToOwned</a></li><li><a·href="#impl-TryFrom%3CU%3E-for-T">TryFrom&lt;U&gt;</a></li><li><a·href="#impl-TryInto%3CU%3E-for-T">TryInto&lt;U&gt;</a></li></ul></section><h2><a·href="index.html">In·alloc::collections::btree_set</a></h2></div></nav><div·class="sidebar-resizer"></div>1 <!DOCTYPE·html><html·lang="en"><head><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.write(`<link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../../static.files/SourceSerif4-Regular-46f98efaafac5295.ttf.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../../static.files/FiraSans-Regular-018c141bf0843ffd.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../../static.files/FiraSans-Medium-8f9a781e4970d388.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../../static.files/SourceCodePro-Regular-562dcc5011b6de7d.ttf.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../../static.files/SourceCodePro-Semibold-d899c5a5c4aeb14a.ttf.woff2">`)</script><link·rel="stylesheet"·href="../../../static.files/normalize-76eba96aa4d2e634.css"><link·rel="stylesheet"·href="../../../static.files/rustdoc-35f9e32502181f1e.css"><meta·name="rustdoc-vars"·data-root-path="../../../"·data-static-root-path="../../../static.files/"·data-current-crate="alloc"·data-themes=""·data-resource-suffix="1.78.0"·data-rustdoc-version="1.78.0"·data-channel="1.78.0"·data-search-js="search-42d8da7a6b9792c2.js"·data-settings-js="settings-4313503d2e1961c2.js"·><script·src="../../../static.files/storage-4c98445ec4002617.js"></script><script·defer·src="sidebar-items1.78.0.js"></script><script·defer·src="../../../static.files/main-12cf3b4f4f9dc36d.js"></script><noscript><link·rel="stylesheet"·href="../../../static.files/noscript-04d5337699b92874.css"></noscript><link·rel="alternate·icon"·type="image/png"·href="../../../static.files/favicon-16x16-8b506e7a72182f1c.png"><link·rel="alternate·icon"·type="image/png"·href="../../../static.files/favicon-32x32-422f7d1d52889060.png"><link·rel="icon"·type="image/svg+xml"·href="../../../static.files/favicon-2c020d218678b618.svg"></head><body·class="rustdoc·struct"><!--[if·lte·IE·11]><div·class="warning">This·old·browser·is·unsupported·and·will·most·likely·display·funky·things.</div><![endif]--><nav·class="mobile-topbar"><button·class="sidebar-menu-toggle"·title="show·sidebar"></button><a·class="logo-container"·href="../../../alloc/index.html"><img·class="rust-logo"·src="../../../static.files/rust-logo-151179464ae7ed46.svg"·alt=""></a></nav><nav·class="sidebar"><div·class="sidebar-crate"><a·class="logo-container"·href="../../../alloc/index.html"><img·class="rust-logo"·src="../../../static.files/rust-logo-151179464ae7ed46.svg"·alt="logo"></a><h2><a·href="../../../alloc/index.html">alloc</a><span·class="version">1.78.0</span></h2></div><h2·class="location"><a·href="#">Range</a></h2><div·class="sidebar-elems"><section><h3><a·href="#trait-implementations">Trait·Implementations</a></h3><ul·class="block·trait-implementation"><li><a·href="#impl-Clone-for-Range%3C'_,+T%3E">Clone</a></li><li><a·href="#impl-Debug-for-Range%3C'a,+T%3E">Debug</a></li><li><a·href="#impl-Default-for-Range%3C'_,+T%3E">Default</a></li><li><a·href="#impl-DoubleEndedIterator-for-Range%3C'a,+T%3E">DoubleEndedIterator</a></li><li><a·href="#impl-FusedIterator-for-Range%3C'_,+T%3E">FusedIterator</a></li><li><a·href="#impl-Iterator-for-Range%3C'a,+T%3E">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">Freeze</a></li><li><a·href="#impl-RefUnwindSafe-for-Range%3C'a,+T%3E">RefUnwindSafe</a></li><li><a·href="#impl-Send-for-Range%3C'a,+T%3E">Send</a></li><li><a·href="#impl-Sync-for-Range%3C'a,+T%3E">Sync</a></li><li><a·href="#impl-Unpin-for-Range%3C'a,+T%3E">Unpin</a></li><li><a·href="#impl-UnwindSafe-for-Range%3C'a,+T%3E">UnwindSafe</a></li></ul><h3><a·href="#blanket-implementations">Blanket·Implementations</a></h3><ul·class="block·blanket-implementation"><li><a·href="#impl-Any-for-T">Any</a></li><li><a·href="#impl-Borrow%3CT%3E-for-T">Borrow&lt;T&gt;</a></li><li><a·href="#impl-BorrowMut%3CT%3E-for-T">BorrowMut&lt;T&gt;</a></li><li><a·href="#impl-From%3CT%3E-for-T">From&lt;T&gt;</a></li><li><a·href="#impl-Into%3CU%3E-for-T">Into&lt;U&gt;</a></li><li><a·href="#impl-IntoIterator-for-I">IntoIterator</a></li><li><a·href="#impl-ToOwned-for-T">ToOwned</a></li><li><a·href="#impl-TryFrom%3CU%3E-for-T">TryFrom&lt;U&gt;</a></li><li><a·href="#impl-TryInto%3CU%3E-for-T">TryInto&lt;U&gt;</a></li></ul></section><h2><a·href="index.html">In·alloc::collections::btree_set</a></h2></div></nav><div·class="sidebar-resizer"></div>
2 ····<main><div·class="width-limiter"><nav·class="sub"><form·class="search-form"><span></span><div·id="sidebar-button"·tabindex="-1"><a·href="../../../alloc/all.html"·title="show·sidebar"></a></div><input·class="search-input"·name="search"·aria-label="Run·search·in·the·documentation"·autocomplete="off"·spellcheck="false"·placeholder="Click·or·press·‘S’·to·search,·‘?’·for·more·options…"·type="search"><div·id="help-button"·tabindex="-1"><a·href="../../../help.html"·title="help">?</a></div><div·id="settings-menu"·tabindex="-1"><a·href="../../../settings.html"·title="settings"><img·width="22"·height="22"·alt="Change·settings"·src="../../../static.files/wheel-7b819b6101059cd0.svg"></a></div></form></nav><section·id="main-content"·class="content"><div·class="main-heading"><h1>Struct·<a·href="../../index.html">alloc</a>::<wbr><a·href="../index.html">collections</a>::<wbr><a·href="index.html">btree_set</a>::<wbr><a·class="struct"·href="#">Range</a><button·id="copy-path"·title="Copy·item·path·to·clipboard"><img·src="../../../static.files/clipboard-7571035ce49a181d.svg"·width="19"·height="18"·alt="Copy·item·path"></button></h1><span·class="out-of-band"><span·class="since"·title="Stable·since·Rust·version·1.17.0">1.17.0</span>···<a·class="src"·href="../../../src/alloc/collections/btree/set.rs.html#167-169">source</a>···<button·id="toggle-all-docs"·title="collapse·all·docs">[<span>&#x2212;</span>]</button></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 ····<main><div·class="width-limiter"><nav·class="sub"><form·class="search-form"><span></span><div·id="sidebar-button"·tabindex="-1"><a·href="../../../alloc/all.html"·title="show·sidebar"></a></div><input·class="search-input"·name="search"·aria-label="Run·search·in·the·documentation"·autocomplete="off"·spellcheck="false"·placeholder="Click·or·press·‘S’·to·search,·‘?’·for·more·options…"·type="search"><div·id="help-button"·tabindex="-1"><a·href="../../../help.html"·title="help">?</a></div><div·id="settings-menu"·tabindex="-1"><a·href="../../../settings.html"·title="settings"><img·width="22"·height="22"·alt="Change·settings"·src="../../../static.files/wheel-7b819b6101059cd0.svg"></a></div></form></nav><section·id="main-content"·class="content"><div·class="main-heading"><h1>Struct·<a·href="../../index.html">alloc</a>::<wbr><a·href="../index.html">collections</a>::<wbr><a·href="index.html">btree_set</a>::<wbr><a·class="struct"·href="#">Range</a><button·id="copy-path"·title="Copy·item·path·to·clipboard"><img·src="../../../static.files/clipboard-7571035ce49a181d.svg"·width="19"·height="18"·alt="Copy·item·path"></button></h1><span·class="out-of-band"><span·class="since"·title="Stable·since·Rust·version·1.17.0">1.17.0</span>···<a·class="src"·href="../../../src/alloc/collections/btree/set.rs.html#167-169">source</a>···<button·id="toggle-all-docs"·title="collapse·all·docs">[<span>&#x2212;</span>]</button></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>
3 <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 <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>.
4 See·its·documentation·for·more.</p>4 See·its·documentation·for·more.</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-Range%3C'_,+T%3E"·class="impl"><a·class="src·rightside"·href="../../../src/alloc/collections/btree/set.rs.html#1572-1576">source</a><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:·3751,·SHA:·1b13b15c9364a6a1554223e8dbc92be40740b798aeb908753d80daf3164de7cc·...·]/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></details><h2·id="trait-implementations"·class="section-header">Trait·Implementations<a·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"><a·class="src·rightside"·href="../../../src/alloc/collections/btree/set.rs.html#1572-1576">source</a><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.78.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:·3967,·SHA:·6f55bb07904730592fb5c1fc5e0191a786a7e9ad14023ebe90fa2132a043ef65·...·]/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>
  
6 <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 <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();
7 <span·class="macro">assert_eq!</span>(iter.count(),·<span·class="number">0</span>);</code></pre><a·class="test-arrow"·target="_blank"·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">Run</a></div>7 <span·class="macro">assert_eq!</span>(iter.count(),·<span·class="number">0</span>);</code></pre><a·class="test-arrow"·target="_blank"·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">Run</a></div>
8 </div></details></div></details><details·class="toggle·implementors-toggle"·open><summary><section·id="impl-DoubleEndedIterator-for-Range%3C'a,+T%3E"·class="impl"><a·class="src·rightside"·href="../../../src/alloc/collections/btree/set.rs.html#1606-1610">source</a><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:·6f6039f897b896125e9b821f4613f64acd7b2ef2e049c465440ac2181fcf5ab7·...·]/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-Range%3C'a,+T%3E"·class="impl"><a·class="src·rightside"·href="../../../src/alloc/collections/btree/set.rs.html#1606-1610">source</a><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.78.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:·0d8ad18ec6f60624961f42e87a4d57b9d75668af734faa7241b8dd161f836e7d·...·]/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.78.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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(B,·Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.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.78.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.7[·...·truncated·by·diffoscope;·len:·3,·SHA:·7b1bd53949b752d143d871408483b5382371b5bc48d195d0c040ec93cfa2748b·...·]/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:·b3a5d6383debff0cac836c5889a757f11b019bc049778c518e60e4d37a3c4da1·...·]/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.78.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:·d66ed7e195a53e9945339ef1976aed455dcf80228d8e5b7b0c69a64c3983fea1·...·]/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.78.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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(B,·Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/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:·d11fd274e41827c1daee0c80a6ab5f978a613ab26297cb460535fef32cff8551·...·]/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.78.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:·c264047794019a6dcf05728ba6a6ee1f8f07c7209958b3366ba94546b527ecdc·...·]/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.78.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:·3611,·SHA:·82146168ed3b8f27ed0d510347ad73248205ff4af38d5b7a2a460a9155d28225·...·]/core/primitive.reference.html">&amp;'a·T</a>&gt;<div·class="where">where17 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·4043,·SHA:·6242b4f61f5e082c0b7cf22b38100dd3f39c5bf8b7c0f88235848891659f32d5·...·]/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·minimum·element·of·an·iterator.·<a·href=".[·...·truncated·by·diffoscope;·len:·619,·SHA:·659e37d0069d854ee366686beb2db3c4997cb5e17602ea66dde36eae9965bb06·...·]/core/primitive.reference.html">&amp;'a·T</a>&gt;<div·class="where">where18 ····<a·class="primitive"·href="https://doc.rust-lang.org/1.78.0/core/primitive.reference.html">&amp;'a·T</a>:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.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:·ec41e4f3d5a18a397eb9948858efec19f8c76d539ad904c30af79b24ac1f66ae·...·]/core/primitive.reference.html">&amp;'a·T</a>&gt;<div·class="where">where
19 ····<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:·d54aa3470f25772b3e683a4a30dbc4d9b84be9c4af3e985671139ba75faecc60·...·]/core/primitive.usize.html">usize</a>&gt;(19 ····<a·class="primitive"·href="https://doc.rust-lang.org/1.78.0/core/primitive.reference.html">&amp;'a·T</a>:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.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:·06c44c04806bb1b7d0ccf1974876e0233c8d283896e6224a16191c961665d23a·...·]/core/primitive.usize.html">usize</a>&gt;(
20 ····&amp;mut·self20 ····&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.78.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.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title=[·...·truncated·by·diffoscope;·len:·381,·SHA:·88c48923c9b7ea5cc47c1087c60e09656e81d4671c58071ba2bef826335388bc·...·]/core/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:·1818,·SHA:·2c4ab8ee637ea0883fc707bcc67678122b90e2c5f8c9054d201481512105dd79·...·]/core/primitive.usize.html">usize</a><div·class="where">where22 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></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:·402867e9e3549fef747dcb22b92bda79093f02d1378ea733f633e3a91e074bca·...·]/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:·00fcd590d49f9c95cf7e39437688efce9b3546bce88f836f82a8084a5cad4047·...·]/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.78.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:·5acc2bcc91ab2687c8137eaa20bd4287e0b901b846fa877b4a1d59df04bc4956·...·]/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.78.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:·4ac7445a1207207aeda1789f31c5036d8905fa206c83a58ca48662c081a68134·...·]/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.78.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:·e83c903581753673e083ce8dd809879a2fc81ab3050eb6db267d7fa26b15e035·...·]/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.78.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:·10378641f30fbaa3b3d8ba8984f91955195f5a0ddb70a41cc9ff99666b50a36f·...·]/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.78.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.78.0/core/iter/traits/it[·...·truncated·by·diffoscope;·len:·1329,·SHA:·d9299c8edc606ed82f24d61ce441bec451141d684c2a9a75074f5b19c57f196c·...·]/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.78.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:·b9001dd3131b1425179c94853e1b90fff0f7169b9570e86cd50c6b7fbf1ee8a5·...·]/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.78.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:·98627729f77dcf1c9d258f343354ba600b7134c6b3929080f231e8de7155b70b·...·]/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.78.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.78.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.78.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:·fa2a17b1aaf7dbc4e89f728d099c0a475adcd5ff79e4791795d7c4df5fc2ccec·...·]/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.78.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:·7301b6beba7b6885849be90a625df68ef739a5374af456c51fe2e81d91a25363·...·]/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.78.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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::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:·d75758e0f8262eeea27445cec43f13d84f0c02ba4e03c0c54d041f9ab1965e0f·...·]/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.78.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:·98f6effefa44d759c249143d83623f0055d937382bfc398b7e1f5e92cd413657·...·]/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.78.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:·9009d5c023150c1a97b2d18e30d176e7ff2e48673ad0e4665367958e752bf827·...·]/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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·916,·SHA:·30d0b2a76513c5a880e9aee43e92b18805845cfcfe5783f62dc090167a439e63·...·]/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.78.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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·140,·SHA:·752f473b57e7444ebfddf5ea7fd40a332e83ec55524a6c31b5ee0f82a5dea819·...·]/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:·7c1da0b93b40e2b4f823a0d24b5a27f092ffdb68175a9c14fe21a97d84bb2244·...·]/core/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.78.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:·76aa2ad154f88085ee3f8a22721a7e6812680bac785d19059532407f50da1801·...·]/core/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.78.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:·96005685f2d5bf532d7af03cf747a50bdbe5efffccc579afe197789e4cd44a54·...·]/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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·1052,·SHA:·110b47c7083083d565fcfc89337fddc8e5c87e81b2f720f3f7b0ded55e8500fb·...·]/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.78.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:·02bccd69f3cf4a08b24b66a0c9afb8ac49ebd0e9a7d5a183641b471189a35df3·...·]/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.78.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:·8464264e074dde5d84f0414ab3b5b2d8da83f3c9e3ca04c45458241580a8c80d·...·]/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.78.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.78.0/core/iter/adapte[·...·truncated·by·diffoscope;·len:·175,·SHA:·16fe7225bf05b478e2828b347c3d23ded9a22f89d8887a2c65d9f7b3faf1b0e7·...·]/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:·60d233d0587f535c8bae5118522baa81ef2524d4168f9e142529a37902d8e8c4·...·]/core/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.78.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:·00ccbb673c11ed48d8c6aa2a3f8984fb298202e7bccfa42f1ac21290fcc0fb06·...·]/core/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.78.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:·0900235f7b60bdd90fbf9718324068ecf230199603f19da2c38cad64ed6915ff·...·]/core/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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·1234,·SHA:·3b805567411cdcebed740f9e8d400dbe7fb487504f40e284544a140155090fdf·...·]/core/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.78.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:·552b3dd2132886d024e4d5bd2554611e25c1f068adaaf23ecf80da81d31997ef·...·]/core/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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·1058,·SHA:·b390dbdda8d7e93604b5ecd906a93efd03fe19bdaf41cf12893fd361bf974307·...·]/core/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.78.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:·491a83328e39b23cf5191ed5cb6bf83f1a62c9405ed5c39c58117b227b39b16c·...·]/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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·1163,·SHA:·5772149166d344bf8fa5ebbd9db8693a8f2e5f031c50338e8f1523ef72f814d6·...·]/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:·e62b3f87b06b061e799e72ab8f04c531f1c6f241266260eaab33ea2b793dd8d2·...·]/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.78.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:·6216516fe581c401abda3c95818192e8f030e2008c9bbdbaafebba16f33ea9bd·...·]/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.78.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:·7d73eca41cdb0c170bd03419f3563f3fe9e70e11494db546e781d302d3cd5636·...·]/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.78.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:·485843399c56e24bdf020ff0610d0ce1f62fbac5530d9880a1a7417105e3d70f·...·]/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.78.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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(<a·class="primitive"·href="https://doc.rust-lang.org/1.78.0/core/primitive.reference.html">&amp;mut·St</a>,·Self::<a·class="associatedty[·...·truncated·by·diffoscope;·len:·449,·SHA:·f12c268a8a8111b9e7126ad78bf5523a63733caa63d187c4fe792309ea41acdf·...·]/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:·02034aae893b799fa017b2d71546332d96a823cd4ba05c14089559819f3dd720·...·]/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.78.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.78.0/core/iter/trai[·...·truncated·by·diffoscope;·len:·690,·SHA:·371190e5c1bf9b7dde6e84447965a69946212b977b9eb6d89048fbe34c5dda1c·...·]/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.78.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.78.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:·4d1f54658fd1c005b101a2e27b0da3c6ee0cbe2d891660c65470bfec01fa46f6·...·]/core/iter/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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·976,·SHA:·2a9182f6fe88e0b8a9b1ae1f46cace940cc0b8736033c354c0f0ccbf1c196e7a·...·]/core/iter/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.78.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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;[Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtyp[·...·truncated·by·diffoscope;·len:·135,·SHA:·0b06a6094d42ccbc8bce5b01c4383961fe7f1967f05e4c9f1ff33e71e425fb26·...·]/core/primitive.array.html">N</a>])·-&gt;·R,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iter_map_windows</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/87155">#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.78.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:·d83146d48347da8e04ce6fcac96b0b1500203504f596d32c16a5a1493dd375e1·...·]/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.78.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:·0d33056cee8a4f9b70b573c0adecc2f3599a2f8d9fa9f2c2044e9118ab134f73·...·]/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:·e9288f8d879e78d7e79eb2c4255eb99308efd98061b1221968fb17de11019b2e·...·]/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.78.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.78.0/core/op[·...·truncated·by·diffoscope;·len:·841,·SHA:·9cba1b175fb3726d7f1f01da9be7c1a56568a68e4ce7915a468b730902daf8d3·...·]/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.78.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:·790,·SHA:·19293cf7305d77d7ccd51618427cff5e3edb06f162c23796ed392e0ac792f65e·...·]/core/primitive.reference.html">&amp;mut·Self</a><div·class="where">where69 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·934,·SHA:·ea20d2e0fe9388580ea08100baa9120b5e9b6cb48f43fc846f15db8b9649e7f6·...·]/core/primitive.reference.html">&amp;mut·Self</a><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:·cf371b2193fdcddf87cfe994db4d3e364336bb766b15dcfdd0ac7aabbd72e715·...·]/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.78.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.78.0/core/it[·...·truncated·by·diffoscope;·len:·523,·SHA:·97064c705f6f4bdf74469c54fabcf580d21893127d1b4cd9a9c1018a717ef153·...·]/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.78.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.78.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:·d76c3fcf86c63211032a6b22dc5924ef552b1ad26b12e19f15d2f1d5b3d7e394·...·]/core/primitive.reference.html">&amp;mut·E</a><div·class="where">where72 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.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.78.0/core/iter/tr[·...·truncated·by·diffoscope;·len:·728,·SHA:·01937c2dc314c259495665570ae249c94b4a5b0719718f5f1188e6fc64ecf487·...·]/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.78.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.78.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:·fa6f33be71e9184cfecc555b0b832d1a929285d35b47b1212b2176ac555731a1·...·]/core/primitive.tuple.html">(B,·B)</a><div·class="where">where74 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></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:·00bd47017b1bdd1bbe2c3fc932d955a8aa2f7f5eff8c00e3001ae28a982a5883·...·]/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.78.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.78.0/core/default/trait.Default.html"·title="trait·core::default::Default">Default</a>·+·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/collect/trait.Extend.html"·title="trait·core::iter::traits::collec[·...·truncated·by·diffoscope;·len:·95,·SHA:·8b3be1d0042cae0550f865faf5849221240bdf04eb1b2107605b72d48c3ad29c·...·]/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:·281bbd5137cae68dd8057d013e9c9f311461e746663120304e3f6adace77f784·...·]/core/primitive.usize.html">usize</a><div·class="where">where77 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·995,·SHA:·bec3765fdab56713186e2454cd84738b5b28e3280a2f3d5a25cefdbc3089b520·...·]/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.78.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>·+·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/double_ended/trait.DoubleEndedIterator.html"·title="trait·core::iter::trai[·...·truncated·by·diffoscope;·len:·132,·SHA:·e5b2cf5f56946ede1e190ed09879c5821e2de04cf8e5d145142eeb40c6340982·...·]/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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(<a·class="primitive"·href="https://doc.rust-lang.org/1.78.0/core/primitive.reference.html">&amp;T</a>)·-&gt;·<a·class="primitive"·href="[·...·truncated·by·diffoscope;·len:·32,·SHA:·63d052a8ced32bf927ffadd7e884c08caf4970e85dfdf6be0e568d49b174da96·...·]/core/primitive.bool.html">bool</a>,</div></h4></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:·dc6a465df534b0392c5280e79e5249847890045561099b2cfc44bfabc4801d8d·...·]/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.78.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:·0c224636c18baa273f69de21f90083317f2ea0b7367a3f0d0f1c0ace55a36f79·...·]/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.78.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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·135,·SHA:·51ff5f5c7ebd8440623ea71b125c5a5837e809e308fe1a13fbe19cddb941dbd9·...·]/core/primitive.bool.html">bool</a>,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iter_is_partitioned</code>&nbsp;<a·href="https://github.com/rust-lang/rust/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:·bd8fce4ee431c619c98780c4d520e8db93f1e034f12843ffaff5744b7ce2190b·...·]/core/iter/traits/iterator/trait.Iterator.html#method.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.78.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:·2c74873f4e5ba70004a1c7edd1cc3f9e2d91271295dd1591e2d26848df4c02ba·...·]/core/iter/traits/iterator/trait.Iterator.html#method.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.78.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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(B,·Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.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.78.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:·7b4fc32e7634ae85c682a97099be267837713d7e4831893b617ca652f57a89da·...·]/core/iter/traits/iterator/trait.Iterator.html#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.78.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:·52912e82c4b0a760d06f77eb4ee3a59ba70dd76cb532954900c73ae94c652674·...·]/core/iter/traits/iterator/trait.Iterator.html#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.78.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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.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.78.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.78.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:·5cfb1ce7ac10ff40c8d1d0f019b60fc4735736254c2d8357ed62287e51b1ac32·...·]/core/iter/traits/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.78.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:·1d6c4809cea8748e901d3f94777f450d430f3161f6ac05ed1c178d9327f966a3·...·]/core/iter/traits/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.78.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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(B,·Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::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:·2c738ecc68200afa2467bef085de14dcb642dbaac77c4529948f5e259e66691d·...·]/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.78.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:·b60215068a6d9721be05f81098c51167d7138c4042f140cad42f77c4df43f597·...·]/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.78.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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·352,·SHA:·e7c3c296abe2c0a183967153e4ae7fd50bafa2ae7088e3e78b3b48fee253adc6·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::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:·c3f1d50e276def36966943119961a20b09cab3be33483fe4d48d7f322489534b·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_reduce"·class="fn">try_reduce</a>&lt;F,·R&gt;(99 operation.·<a·href="https://doc.rust-lang.org/1.78.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:·7a18fdd041b1a001b4a8feb289ee127fd9240232239269eb35dc3b8f74783ec9·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_reduce"·class="fn">try_reduce</a>&lt;F,·R&gt;(
100 ····&amp;mut·self,100 ····&amp;mut·self,
101 ····f:·F101 ····f:·F
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.78.0/core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&gt;::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/ops/try_trait/trait.Try.html#associatedtype.Residual"·title="type[·...·truncated·by·diffoscope;·len:·754,·SHA:·6fb4dfdb6b4da68921c1e7f8b75d99cf293d58318d684a840254ce9576957bea·...·]/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.78.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:·68,·SHA:·e7e11f257edcac749a5883ad9a3aa42e6e965be419f967b36caa7afd3b36d7c9·...·]/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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·140,·SHA:·c27972e6fa3464c9476eaa185e8657edb6bb294f148403f3d079285294a9f909·...·]/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·=·Self::<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.78.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.78.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</[·...·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·the106 ····&lt;R·as·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&gt;::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/ops/try_trait/trait.Try.html#associatedtype.Residual"·title="type[·...·truncated·by·diffoscope;·len:·412,·SHA:·22b8cbb007e5cce82b9d13a65bfa56aa8d83c32541fac25f4d9b3857b0540908·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;&gt;,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iterator_try_reduce</code>&nbsp;<a·href="https://github.com/rust-lang/rust/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=[·...·truncated·by·diffoscope;·len:·380,·SHA:·1a00be8efe0263bc0d09f5d47be04890b1d27a20c3429d1f4531805a03591fdb·...·]/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.78.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:·bc0d658d56e348823de15386e1cd4ab49109f3a7a055a4573a19391b47071193·...·]/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.78.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:·850,·SHA:·c15cbdf9d3f54700b6eac2f717541f7f5a3cf811d73f48ef7118096c1a240102·...·]/core/primitive.bool.html">bool</a><div·class="where">where109 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·1018,·SHA:·e61cd6bdd36729cc38e57fcaea2ccb91a23a5acbda3c8986071f19bf1ecfc52a·...·]/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.78.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:·980,·SHA:·80fef1533a0c8783ee74be0f29290d7dec960bcd19223b11639b3e6377220faa·...·]/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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·1172,·SHA:·e64ab74d116d286191ad43d9d9e10411fc011c23724aa806e9a8f9b0be0757e3·...·]/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.78.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:[·...·truncated·by·diffoscope;·len:·883,·SHA:·f441e2966ff8db4214e57fcd74f81262d6e371aa51cea97ebde5921e81b4da79·...·]/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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·1051,·SHA:·ecc0b8fccd861464760f9ae047ff6ab98c91a1db010cb5fa59a8c2ab883db7c4·...·]/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.78.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::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·returns115 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·130,·SHA:·130a13019dc175d02304b4f550157e2f13ac15c2f25a979c74161d10b146ab89·...·]/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/cor[·...·truncated·by·diffoscope;·len:·143,·SHA:·ec4fb002625b166504031522e52a66812b279e6735a67cb718813205909c3fb7·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_find"·class="fn">try_find</a>&lt;F,·R&gt;(116 the·first·non-none·result.·<a·href="https://doc.rust-lang.org/1.78.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:·8ced1b10e78750774c5c8ed995ed83dcd13983aa75d329acf8069da106ab9f4a·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_find"·class="fn">try_find</a>&lt;F,·R&gt;(
117 ····&amp;mut·self,117 ····&amp;mut·self,
118 ····f:·F118 ····f:·F
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</[·...·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">where119 )·-&gt;·&lt;&lt;R·as·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&gt;::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/ops/try_trait/trait.Try.html#associatedtype.Residual"·title="type[·...·truncated·by·diffoscope;·len:·626,·SHA:·95f9831257b68862cbcbf54f0ad2ff4e597a4c9f763112d1da8a0897dadcf872·...·]/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.78.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::Iterator::Item">Item</a>)·-&gt;·R,121 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·R,
122 ····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;,122 ····R:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.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.78.0/core/primitive.bool.html">bool</a>&gt;,
123 ····&lt;R·as·<a·class="trait"·href="../../../core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</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·returns123 ····&lt;R·as·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&gt;::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/ops/try_trait/trait.Try.html#associatedtype.Residual"·title="type[·...·truncated·by·diffoscope;·len:·412,·SHA:·22b8cbb007e5cce82b9d13a65bfa56aa8d83c32541fac25f4d9b3857b0540908·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;&gt;,</div></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
124 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">where124 the·first·true·result·or·the·first·error.·<a·href="https://doc.rust-lang.org/1.78.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:·fa9d94b216f6e4ce6035b4762e3bf17cb86a0272db0a55a056f05c68bcaeb0da·...·]/core/primitive.usize.html">usize</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.78.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
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::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">where126 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·1190,·SHA:·882e9e9a037f916d0ed4aa6d749399e6e01ca81811eacfc54a484818cb5d5029·...·]/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; 83487/311706 bytes (26.78%) of diff not shown.
272 KB
./usr/share/doc/rust-web-doc/html/alloc/collections/btree_set/struct.SymmetricDifference.html
    
Offset 1, 199 lines modifiedOffset 1, 199 lines modified
1 <!DOCTYPE·html><html·lang="en"><head><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.write(`<link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../../static.files/SourceSerif4-Regular-46f98efaafac5295.ttf.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../../static.files/FiraSans-Regular-018c141bf0843ffd.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../../static.files/FiraSans-Medium-8f9a781e4970d388.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../../static.files/SourceCodePro-Regular-562dcc5011b6de7d.ttf.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../../static.files/SourceCodePro-Semibold-d899c5a5c4aeb14a.ttf.woff2">`)</script><link·rel="stylesheet"·href="../../../static.files/normalize-76eba96aa4d2e634.css"><link·rel="stylesheet"·href="../../../static.files/rustdoc-35f9e32502181f1e.css"><meta·name="rustdoc-vars"·data-root-path="../../../"·data-static-root-path="../../../static.files/"·data-current-crate="alloc"·data-themes=""·data-resource-suffix="1.78.0"·data-rustdoc-version="1.78.0"·data-channel="1.78.0"·data-search-js="search-42d8da7a6b9792c2.js"·data-settings-js="settings-4313503d2e1961c2.js"·><script·src="../../../static.files/storage-4c98445ec4002617.js"></script><script·defer·src="sidebar-items1.78.0.js"></script><script·defer·src="../../../static.files/main-12cf3b4f4f9dc36d.js"></script><noscript><link·rel="stylesheet"·href="../../../static.files/noscript-04d5337699b92874.css"></noscript><link·rel="alternate·icon"·type="image/png"·href="../../../static.files/favicon-16x16-8b506e7a72182f1c.png"><link·rel="alternate·icon"·type="image/png"·href="../../../static.files/favicon-32x32-422f7d1d52889060.png"><link·rel="icon"·type="image/svg+xml"·href="../../../static.files/favicon-2c020d218678b618.svg"></head><body·class="rustdoc·struct"><!--[if·lte·IE·11]><div·class="warning">This·old·browser·is·unsupported·and·will·most·likely·display·funky·things.</div><![endif]--><nav·class="mobile-topbar"><button·class="sidebar-menu-toggle"·title="show·sidebar"></button><a·class="logo-container"·href="../../../alloc/index.html"><img·class="rust-logo"·src="../../../static.files/rust-logo-151179464ae7ed46.svg"·alt=""></a></nav><nav·class="sidebar"><div·class="sidebar-crate"><a·class="logo-container"·href="../../../alloc/index.html"><img·class="rust-logo"·src="../../../static.files/rust-logo-151179464ae7ed46.svg"·alt="logo"></a><h2><a·href="../../../alloc/index.html">alloc</a><span·class="version">1.78.0</span></h2></div><h2·class="location"><a·href="#">SymmetricDifference</a></h2><div·class="sidebar-elems"><section><h3><a·href="#trait-implementations">Trait·Implementations</a></h3><ul·class="block·trait-implementation"><li><a·href="#impl-Clone-for-SymmetricDifference%3C'_,+T%3E">Clone</a></li><li><a·href="#impl-Debug-for-SymmetricDifference%3C'_,+T%3E">Debug</a></li><li><a·href="#impl-FusedIterator-for-SymmetricDifference%3C'_,+T%3E">FusedIterator</a></li><li><a·href="#impl-Iterator-for-SymmetricDifference%3C'a,+T%3E">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">Freeze</a></li><li><a·href="#impl-RefUnwindSafe-for-SymmetricDifference%3C'a,+T%3E">RefUnwindSafe</a></li><li><a·href="#impl-Send-for-SymmetricDifference%3C'a,+T%3E">Send</a></li><li><a·href="#impl-Sync-for-SymmetricDifference%3C'a,+T%3E">Sync</a></li><li><a·href="#impl-Unpin-for-SymmetricDifference%3C'a,+T%3E">Unpin</a></li><li><a·href="#impl-UnwindSafe-for-SymmetricDifference%3C'a,+T%3E">UnwindSafe</a></li></ul><h3><a·href="#blanket-implementations">Blanket·Implementations</a></h3><ul·class="block·blanket-implementation"><li><a·href="#impl-Any-for-T">Any</a></li><li><a·href="#impl-Borrow%3CT%3E-for-T">Borrow&lt;T&gt;</a></li><li><a·href="#impl-BorrowMut%3CT%3E-for-T">BorrowMut&lt;T&gt;</a></li><li><a·href="#impl-From%3CT%3E-for-T">From&lt;T&gt;</a></li><li><a·href="#impl-Into%3CU%3E-for-T">Into&lt;U&gt;</a></li><li><a·href="#impl-IntoIterator-for-I">IntoIterator</a></li><li><a·href="#impl-ToOwned-for-T">ToOwned</a></li><li><a·href="#impl-TryFrom%3CU%3E-for-T">TryFrom&lt;U&gt;</a></li><li><a·href="#impl-TryInto%3CU%3E-for-T">TryInto&lt;U&gt;</a></li></ul></section><h2><a·href="index.html">In·alloc::collections::btree_set</a></h2></div></nav><div·class="sidebar-resizer"></div>1 <!DOCTYPE·html><html·lang="en"><head><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.write(`<link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../../static.files/SourceSerif4-Regular-46f98efaafac5295.ttf.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../../static.files/FiraSans-Regular-018c141bf0843ffd.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../../static.files/FiraSans-Medium-8f9a781e4970d388.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../../static.files/SourceCodePro-Regular-562dcc5011b6de7d.ttf.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../../static.files/SourceCodePro-Semibold-d899c5a5c4aeb14a.ttf.woff2">`)</script><link·rel="stylesheet"·href="../../../static.files/normalize-76eba96aa4d2e634.css"><link·rel="stylesheet"·href="../../../static.files/rustdoc-35f9e32502181f1e.css"><meta·name="rustdoc-vars"·data-root-path="../../../"·data-static-root-path="../../../static.files/"·data-current-crate="alloc"·data-themes=""·data-resource-suffix="1.78.0"·data-rustdoc-version="1.78.0"·data-channel="1.78.0"·data-search-js="search-42d8da7a6b9792c2.js"·data-settings-js="settings-4313503d2e1961c2.js"·><script·src="../../../static.files/storage-4c98445ec4002617.js"></script><script·defer·src="sidebar-items1.78.0.js"></script><script·defer·src="../../../static.files/main-12cf3b4f4f9dc36d.js"></script><noscript><link·rel="stylesheet"·href="../../../static.files/noscript-04d5337699b92874.css"></noscript><link·rel="alternate·icon"·type="image/png"·href="../../../static.files/favicon-16x16-8b506e7a72182f1c.png"><link·rel="alternate·icon"·type="image/png"·href="../../../static.files/favicon-32x32-422f7d1d52889060.png"><link·rel="icon"·type="image/svg+xml"·href="../../../static.files/favicon-2c020d218678b618.svg"></head><body·class="rustdoc·struct"><!--[if·lte·IE·11]><div·class="warning">This·old·browser·is·unsupported·and·will·most·likely·display·funky·things.</div><![endif]--><nav·class="mobile-topbar"><button·class="sidebar-menu-toggle"·title="show·sidebar"></button><a·class="logo-container"·href="../../../alloc/index.html"><img·class="rust-logo"·src="../../../static.files/rust-logo-151179464ae7ed46.svg"·alt=""></a></nav><nav·class="sidebar"><div·class="sidebar-crate"><a·class="logo-container"·href="../../../alloc/index.html"><img·class="rust-logo"·src="../../../static.files/rust-logo-151179464ae7ed46.svg"·alt="logo"></a><h2><a·href="../../../alloc/index.html">alloc</a><span·class="version">1.78.0</span></h2></div><h2·class="location"><a·href="#">SymmetricDifference</a></h2><div·class="sidebar-elems"><section><h3><a·href="#trait-implementations">Trait·Implementations</a></h3><ul·class="block·trait-implementation"><li><a·href="#impl-Clone-for-SymmetricDifference%3C'_,+T%3E">Clone</a></li><li><a·href="#impl-Debug-for-SymmetricDifference%3C'_,+T%3E">Debug</a></li><li><a·href="#impl-FusedIterator-for-SymmetricDifference%3C'_,+T%3E">FusedIterator</a></li><li><a·href="#impl-Iterator-for-SymmetricDifference%3C'a,+T%3E">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">Freeze</a></li><li><a·href="#impl-RefUnwindSafe-for-SymmetricDifference%3C'a,+T%3E">RefUnwindSafe</a></li><li><a·href="#impl-Send-for-SymmetricDifference%3C'a,+T%3E">Send</a></li><li><a·href="#impl-Sync-for-SymmetricDifference%3C'a,+T%3E">Sync</a></li><li><a·href="#impl-Unpin-for-SymmetricDifference%3C'a,+T%3E">Unpin</a></li><li><a·href="#impl-UnwindSafe-for-SymmetricDifference%3C'a,+T%3E">UnwindSafe</a></li></ul><h3><a·href="#blanket-implementations">Blanket·Implementations</a></h3><ul·class="block·blanket-implementation"><li><a·href="#impl-Any-for-T">Any</a></li><li><a·href="#impl-Borrow%3CT%3E-for-T">Borrow&lt;T&gt;</a></li><li><a·href="#impl-BorrowMut%3CT%3E-for-T">BorrowMut&lt;T&gt;</a></li><li><a·href="#impl-From%3CT%3E-for-T">From&lt;T&gt;</a></li><li><a·href="#impl-Into%3CU%3E-for-T">Into&lt;U&gt;</a></li><li><a·href="#impl-IntoIterator-for-I">IntoIterator</a></li><li><a·href="#impl-ToOwned-for-T">ToOwned</a></li><li><a·href="#impl-TryFrom%3CU%3E-for-T">TryFrom&lt;U&gt;</a></li><li><a·href="#impl-TryInto%3CU%3E-for-T">TryInto&lt;U&gt;</a></li></ul></section><h2><a·href="index.html">In·alloc::collections::btree_set</a></h2></div></nav><div·class="sidebar-resizer"></div>
2 ····<main><div·class="width-limiter"><nav·class="sub"><form·class="search-form"><span></span><div·id="sidebar-button"·tabindex="-1"><a·href="../../../alloc/all.html"·title="show·sidebar"></a></div><input·class="search-input"·name="search"·aria-label="Run·search·in·the·documentation"·autocomplete="off"·spellcheck="false"·placeholder="Click·or·press·‘S’·to·search,·‘?’·for·more·options…"·type="search"><div·id="help-button"·tabindex="-1"><a·href="../../../help.html"·title="help">?</a></div><div·id="settings-menu"·tabindex="-1"><a·href="../../../settings.html"·title="settings"><img·width="22"·height="22"·alt="Change·settings"·src="../../../static.files/wheel-7b819b6101059cd0.svg"></a></div></form></nav><section·id="main-content"·class="content"><div·class="main-heading"><h1>Struct·<a·href="../../index.html">alloc</a>::<wbr><a·href="../index.html">collections</a>::<wbr><a·href="index.html">btree_set</a>::<wbr><a·class="struct"·href="#">SymmetricDifference</a><button·id="copy-path"·title="Copy·item·path·to·clipboard"><img·src="../../../static.files/clipboard-7571035ce49a181d.svg"·width="19"·height="18"·alt="Copy·item·path"></button></h1><span·class="out-of-band"><span·class="since"·title="Stable·since·Rust·version·1.0.0">1.0.0</span>···<a·class="src"·href="../../../src/alloc/collections/btree/set.rs.html#236">source</a>···<button·id="toggle-all-docs"·title="collapse·all·docs">[<span>&#x2212;</span>]</button></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 ····<main><div·class="width-limiter"><nav·class="sub"><form·class="search-form"><span></span><div·id="sidebar-button"·tabindex="-1"><a·href="../../../alloc/all.html"·title="show·sidebar"></a></div><input·class="search-input"·name="search"·aria-label="Run·search·in·the·documentation"·autocomplete="off"·spellcheck="false"·placeholder="Click·or·press·‘S’·to·search,·‘?’·for·more·options…"·type="search"><div·id="help-button"·tabindex="-1"><a·href="../../../help.html"·title="help">?</a></div><div·id="settings-menu"·tabindex="-1"><a·href="../../../settings.html"·title="settings"><img·width="22"·height="22"·alt="Change·settings"·src="../../../static.files/wheel-7b819b6101059cd0.svg"></a></div></form></nav><section·id="main-content"·class="content"><div·class="main-heading"><h1>Struct·<a·href="../../index.html">alloc</a>::<wbr><a·href="../index.html">collections</a>::<wbr><a·href="index.html">btree_set</a>::<wbr><a·class="struct"·href="#">SymmetricDifference</a><button·id="copy-path"·title="Copy·item·path·to·clipboard"><img·src="../../../static.files/clipboard-7571035ce49a181d.svg"·width="19"·height="18"·alt="Copy·item·path"></button></h1><span·class="out-of-band"><span·class="since"·title="Stable·since·Rust·version·1.0.0">1.0.0</span>···<a·class="src"·href="../../../src/alloc/collections/btree/set.rs.html#236">source</a>···<button·id="toggle-all-docs"·title="collapse·all·docs">[<span>&#x2212;</span>]</button></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>
3 <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·on3 <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
4 <a·href="struct.BTreeSet.html"·title="struct·alloc::collections::btree_set::BTreeSet"><code>BTreeSet</code></a>.·See·its·documentation·for·more.</p>4 <a·href="struct.BTreeSet.html"·title="struct·alloc::collections::btree_set::BTreeSet"><code>BTreeSet</code></a>.·See·its·documentation·for·more.</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-SymmetricDifference%3C'_,+T%3E"·class="impl"><a·class="src·rightside"·href="../../../src/alloc/collections/btree/set.rs.html#1697-1701">source</a><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:·7052,·SHA:·78f6038441ee85e64d82046ad3bcb0d1e799078a9398375f8f0de37471466379·...·]/core/primitive.usize.html">usize</a>&gt;(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-SymmetricDifference%3C'_,+T%3E"·class="impl"><a·class="src·rightside"·href="../../../src/alloc/collections/btree/set.rs.html#1697-1701">source</a><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.78.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:·7700,·SHA:·2e754a0270c14407a5931a91c9a7803a1468d7085855abe9bd0acaedc015d836·...·]/core/primitive.usize.html">usize</a>&gt;(
6 ····&amp;mut·self6 ····&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.78.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.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title=[·...·truncated·by·diffoscope;·len:·381,·SHA:·88c48923c9b7ea5cc47c1087c60e09656e81d4671c58071ba2bef826335388bc·...·]/core/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:·746,·SHA:·99cc415a31b91c57f7eeb82ad0d2d1ba424489bee49de37c86a4ea21c663ccda·...·]/core/primitive.usize.html">usize</a><div·class="where">where8 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experiment[·...·truncated·by·diffoscope;·len:·866,·SHA:·945d2d86f0c4c5ca3e3ee3b181d18b2bbea57ee1a5a7efe16c0c915a5bf2c3ad·...·]/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:·597,·SHA:·be3babc2f9096ec8bacc872099ff5a03375deb1461cf1d651cfbfb072fb72581·...·]/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.78.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:·741,·SHA:·f3078cc3fddd62af2c1a8814c5854bb49f40b79e4fbc9b3addf5862a72370f82·...·]/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:·2928,·SHA:·dd9dc6c66a208fe3371784c1d048fbccf7b880bff34f93a1694f746d814568db·...·]/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.78.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.78.0/cor[·...·truncated·by·diffoscope;·len:·3408,·SHA:·b62c6ed65b31a8b555c142d9d15f3ce30e5c76ad2630a0e5a9b13cfd478c6eee·...·]/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.78.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"><a·class="src·rightside"·href="../../../src/core/it[·...·truncated·by·diffoscope;·len:·602,·SHA:·cfe4c4d300dddc2abdc2f8194eb969c68b2240c28239969b5be2af6a564ed8cc·...·]/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.78.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"><a·class="src·rightside"·hr[·...·truncated·by·diffoscope;·len:·746,·SHA:·f1f70d650c102c8658e13890c7dbfc87418f07e7b522246fb579ec434ef64f7c·...·]/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.78.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:·1041,·SHA:·a281d174c9671021427f0b458ac94e87746ac44730475aa725652c6c15e2b972·...·]/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.78.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.78.0/core/iter/traits/it[·...·truncated·by·diffoscope;·len:·1233,·SHA:·f677df2d893dfe0dc1a9d31ebb0ba71a346d265781813e0d664d3f18369b6163·...·]/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.78.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:·b9001dd3131b1425179c94853e1b90fff0f7169b9570e86cd50c6b7fbf1ee8a5·...·]/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.78.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:·98627729f77dcf1c9d258f343354ba600b7134c6b3929080f231e8de7155b70b·...·]/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.78.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.78.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.78.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"><a·class="src·rightside"·href="../../../src/[·...·truncated·by·diffoscope;·len:·279,·SHA:·f2c34c2e64e77c66684f837812ebc4a94c81b2ad5862cc0131f80c3ce89e008a·...·]/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.78.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"><a·class="src·rights[·...·truncated·by·diffoscope;·len:·375,·SHA:·58419346f92e1709dadb70cc3cf356e3cd27972451bdc6b4fc4267e6f7e8bdae·...·]/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.78.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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::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:·d75758e0f8262eeea27445cec43f13d84f0c02ba4e03c0c54d041f9ab1965e0f·...·]/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.78.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:·98f6effefa44d759c249143d83623f0055d937382bfc398b7e1f5e92cd413657·...·]/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.78.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:·676,·SHA:·9ae42ed293737a3dd44c1ee9d98c6aabb1552fbb9d203cb852ee9fcc7834a6ca·...·]/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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·820,·SHA:·a664bbcbc0891663662e4eb7b4394d0fcd72e568136fc4d34097fea242cc32e7·...·]/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.78.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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·140,·SHA:·752f473b57e7444ebfddf5ea7fd40a332e83ec55524a6c31b5ee0f82a5dea819·...·]/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"><a·class="src·rightside"·href="../../../src/cor[·...·truncated·by·diffoscope;·len:·297,·SHA:·f01e44d4caf6c6ad80b37656b9300f7111340711dcd74d70867b5a652dbfb538·...·]/core/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.78.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"><a·class="src·rightside[·...·truncated·by·diffoscope;·len:·393,·SHA:·2e2aa7c9c9c087e7b346da376749064ab8c1894795a2f0a0f646cdc8c7bea997·...·]/core/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.78.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:·788,·SHA:·b788f412af946d2bd7646ba39a8c316ebfa88109f9626dbad9bf9964f975cd0c·...·]/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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·956,·SHA:·faba0521e870dbbd26d466fadba3522e7d29013a9b86376fffafffac11a57e0e·...·]/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.78.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"><a·class="src·rightside"·href="../../../src/co[·...·truncated·by·diffoscope;·len:·276,·SHA:·e337ee1b810d3ec0480569c4ed323ebf0a2315c8ae3c522a73fcca3aa8e6efb3·...·]/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.78.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"><a·class="src·rightsid[·...·truncated·by·diffoscope;·len:·372,·SHA:·03eea0861575eb80d3f7a87a3ba747adb1a33fe7e9ce72aa2172e7a287c63a94·...·]/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.78.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.78.0/core/iter/adapte[·...·truncated·by·diffoscope;·len:·175,·SHA:·16fe7225bf05b478e2828b347c3d23ded9a22f89d8887a2c65d9f7b3faf1b0e7·...·]/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"><a·class="src·rightside"·href="../../../src/c[·...·truncated·by·diffoscope;·len:·306,·SHA:·a9bc004bf639fa188165a336061c6c98ec7ff9d266a18f10db200dfa9a880b88·...·]/core/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.78.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"><a·class="src·rightsi[·...·truncated·by·diffoscope;·len:·402,·SHA:·7689a974f800fd069d1b4453ef62d6d6ad1b654462d624d36e3672051d502030·...·]/core/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.78.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:·946,·SHA:·877b8718d9df1464a912dd50eef16402225367db4e4b26484b5ee20d30644524·...·]/core/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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·1138,·SHA:·f6ae06b7de8e94df014341c5cf589a5e4a1298367b2ef7a968ec499c5170a70e·...·]/core/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.78.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:·552b3dd2132886d024e4d5bd2554611e25c1f068adaaf23ecf80da81d31997ef·...·]/core/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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·1058,·SHA:·b390dbdda8d7e93604b5ecd906a93efd03fe19bdaf41cf12893fd361bf974307·...·]/core/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.78.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:·875,·SHA:·5c5c44422f75cbb66ebcf54bea70536713b810843cc484b051aed088c6422d78·...·]/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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·1067,·SHA:·415d32e1211c35d3bb405de1d6e51c2102c14cadc3333894f063148dbe0b1f69·...·]/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:·543,·SHA:·f199bafab360be9b80e9f45c5ba799a52348b742ddb0fa9afdb1624729c36e58·...·]/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.78.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:·687,·SHA:·7f5256104c35c5948a2cb42b55f3048c9d2887e48a4a8226537a284f959c562a·...·]/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.78.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"><a·class="src·rightside"·href="../../../src/core/iter/t[·...·truncated·by·diffoscope;·len:·296,·SHA:·aea014801138aeee574964545b1e9ad297288a120113db6844b569d2b183e0a7·...·]/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.78.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"><a·class="src·rightside"·href="[·...·truncated·by·diffoscope;·len:·392,·SHA:·4e7da68f7be2622ef173653eca78d58e1f202b544a2e6abd14d8335c298c93a7·...·]/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.78.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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(<a·class="primitive"·href="https://doc.rust-lang.org/1.78.0/core/primitive.reference.html">&amp;mut·St</a>,·Self::<a·class="associatedty[·...·truncated·by·diffoscope;·len:·449,·SHA:·f12c268a8a8111b9e7126ad78bf5523a63733caa63d187c4fe792309ea41acdf·...·]/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:·474,·SHA:·c0ed850df640319d919b8c053c540caa158602207623bed65abbcd69ad9d2c9d·...·]/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.78.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.78.0/core/iter/trai[·...·truncated·by·diffoscope;·len:·594,·SHA:·02960742fa7892efaa08f289ce85865fc5efb6a4cd138c22e3566ca6fc727d78·...·]/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.78.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.78.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:·4d1f54658fd1c005b101a2e27b0da3c6ee0cbe2d891660c65470bfec01fa46f6·...·]/core/iter/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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·976,·SHA:·2a9182f6fe88e0b8a9b1ae1f46cace940cc0b8736033c354c0f0ccbf1c196e7a·...·]/core/iter/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.78.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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;[Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtyp[·...·truncated·by·diffoscope;·len:·135,·SHA:·0b06a6094d42ccbc8bce5b01c4383961fe7f1967f05e4c9f1ff33e71e425fb26·...·]/core/primitive.array.html">N</a>])·-&gt;·R,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iter_map_windows</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/87155">#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.78.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"><a·class="src·rightside"·href="../../../src/core[·...·truncated·by·diffoscope;·len:·262,·SHA:·6125a8b2b88486b3735bbd00905fe9ae55b6eb1491c8a493be9c8121dc3cb440·...·]/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.78.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"><a·class="src·rightside"[·...·truncated·by·diffoscope;·len:·358,·SHA:·d91b2ab18e0ce069e262cf523c6ef961f56eecad042ea1e9bcefe33cff28fc8f·...·]/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:·601,·SHA:·bdf3796aa87e911258d56122ffdaa3f8591a5c9db4ed6fd89c3dfd3660787f78·...·]/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.78.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.78.0/core/op[·...·truncated·by·diffoscope;·len:·745,·SHA:·424783f22102f4446d3ad4d362b1aafdb7531fa777213f97ee138aa878f67bd1·...·]/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.78.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:·694,·SHA:·db4bb2630979aa4504432e8d422265d943c9063bcf3d2e3be970003014226f1e·...·]/core/primitive.reference.html">&amp;mut·Self</a><div·class="where">where56 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·838,·SHA:·9b4fd8df7f41e9a76fd4cfca0a233b74b9bd27c3fe8228248abc3f940425a3e3·...·]/core/primitive.reference.html">&amp;mut·Self</a><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:·331,·SHA:·d13641714c275840abbb473011613a4e19924a453f5e1b83912681a9b7c5579b·...·]/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.78.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.78.0/core/it[·...·truncated·by·diffoscope;·len:·427,·SHA:·ecfaaac5d1d10c1bc4fcee9a050af0a268bee0b528c2d8ea4e9774440bd8a279·...·]/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.78.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.78.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:·d76c3fcf86c63211032a6b22dc5924ef552b1ad26b12e19f15d2f1d5b3d7e394·...·]/core/primitive.reference.html">&amp;mut·E</a><div·class="where">where59 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.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.78.0/core/iter/tr[·...·truncated·by·diffoscope;·len:·728,·SHA:·01937c2dc314c259495665570ae249c94b4a5b0719718f5f1188e6fc64ecf487·...·]/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.78.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.78.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:·759,·SHA:·3cf174fac64a83c8e22066c3d77741118f89b13411537fc82c1004faa5c9e2ae·...·]/core/primitive.tuple.html">(B,·B)</a><div·class="where">where61 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experiment[·...·truncated·by·diffoscope;·len:·879,·SHA:·e773b2222c92d001e295030cb47a780ab0c1132d7fc8e9e3a98de4f532e6c520·...·]/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.78.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.78.0/core/default/trait.Default.html"·title="trait·core::default::Default">Default</a>·+·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/collect/trait.Extend.html"·title="trait·core::iter::traits::collec[·...·truncated·by·diffoscope;·len:·95,·SHA:·8b3be1d0042cae0550f865faf5849221240bdf04eb1b2107605b72d48c3ad29c·...·]/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:·f996a0de22717256dd2ecf4d61d81611f9c7dfe5a493e4b882abb4030f3c80f9·...·]/core/primitive.bool.html">bool</a><div·class="where">where64 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·972,·SHA:·6de765542031617a9c28ac98fe6df619e58e62d9c65ec5b1c185a7152b8944e5·...·]/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.78.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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·135,·SHA:·51ff5f5c7ebd8440623ea71b125c5a5837e809e308fe1a13fbe19cddb941dbd9·...·]/core/primitive.bool.html">bool</a>,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iter_is_partitioned</code>&nbsp;<a·href="https://github.com/rust-lang/rust/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:·bd8fce4ee431c619c98780c4d520e8db93f1e034f12843ffaff5744b7ce2190b·...·]/core/iter/traits/iterator/trait.Iterator.html#method.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.78.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:·2c74873f4e5ba70004a1c7edd1cc3f9e2d91271295dd1591e2d26848df4c02ba·...·]/core/iter/traits/iterator/trait.Iterator.html#method.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.78.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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(B,·Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.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.78.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:·7b4fc32e7634ae85c682a97099be267837713d7e4831893b617ca652f57a89da·...·]/core/iter/traits/iterator/trait.Iterator.html#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.78.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:·52912e82c4b0a760d06f77eb4ee3a59ba70dd76cb532954900c73ae94c652674·...·]/core/iter/traits/iterator/trait.Iterator.html#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.78.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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.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.78.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.78.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"><a·class="src·rightside"·href="../../../src/cor[·...·truncated·by·diffoscope;·len:·139,·SHA:·dc7fb7a70636459a0d7de28cbcb454050f39c184bab178c95c524a6eb9ca51cf·...·]/core/iter/traits/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.78.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"><a·class="src·rightside[·...·truncated·by·diffoscope;·len:·211,·SHA:·924e062acd8127e8d6158162219ee5d57a941854e14063d21d7768edae549431·...·]/core/iter/traits/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.78.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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(B,·Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::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:·2c738ecc68200afa2467bef085de14dcb642dbaac77c4529948f5e259e66691d·...·]/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.78.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:·b60215068a6d9721be05f81098c51167d7138c4042f140cad42f77c4df43f597·...·]/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.78.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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·352,·SHA:·e7c3c296abe2c0a183967153e4ae7fd50bafa2ae7088e3e78b3b48fee253adc6·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::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:·c3f1d50e276def36966943119961a20b09cab3be33483fe4d48d7f322489534b·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_reduce"·class="fn">try_reduce</a>&lt;F,·R&gt;(81 operation.·<a·href="https://doc.rust-lang.org/1.78.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:·7a18fdd041b1a001b4a8feb289ee127fd9240232239269eb35dc3b8f74783ec9·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_reduce"·class="fn">try_reduce</a>&lt;F,·R&gt;(
82 ····&amp;mut·self,82 ····&amp;mut·self,
83 ····f:·F83 ····f:·F
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.78.0/core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&gt;::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/ops/try_trait/trait.Try.html#associatedtype.Residual"·title="type[·...·truncated·by·diffoscope;·len:·754,·SHA:·6fb4dfdb6b4da68921c1e7f8b75d99cf293d58318d684a840254ce9576957bea·...·]/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.78.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:·68,·SHA:·e7e11f257edcac749a5883ad9a3aa42e6e965be419f967b36caa7afd3b36d7c9·...·]/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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·140,·SHA:·c27972e6fa3464c9476eaa185e8657edb6bb294f148403f3d079285294a9f909·...·]/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·=·Self::<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.78.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.78.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.78.0/core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&gt;::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/ops/try_trait/trait.Try.html#associatedtype.Residual"·title="type[·...·truncated·by·diffoscope;·len:·412,·SHA:·22b8cbb007e5cce82b9d13a65bfa56aa8d83c32541fac25f4d9b3857b0540908·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;&gt;,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iterator_try_reduce</code>&nbsp;<a·href="https://github.com/rust-lang/rust/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"><a·class="src·rightside"·href="../../../src/core/i[·...·truncated·by·diffoscope;·len:·284,·SHA:·fbacd9a305d3a60d42d9adcc5ea9e5f579f4ff5d970999f333eaf0c7f9baf66c·...·]/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.78.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"><a·class="src·rightside"·h[·...·truncated·by·diffoscope;·len:·380,·SHA:·29c4004d4d8b0c8c9dfe9023f8b2c5ef801d9dc4688893035d182c1ae774c453·...·]/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.78.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:·754,·SHA:·e3afac523bd4c054d94fbbb6c5c856ac78a6359550526fa0726732b36529c33d·...·]/core/primitive.bool.html">bool</a><div·class="where">where91 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·922,·SHA:·f4fd532c280e18f28bd6dda6c2a129e2e92114b67f27235bb5fd39f725be9c43·...·]/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.78.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:·884,·SHA:·32570d141a71827f9ac19bf566a51ca4814ccafaf6f8a961920ce107fe9657d7·...·]/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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·1076,·SHA:·2dd9de8adaee4a5ee96501d9a58bfac2fea00ba8d78b834bfca29949b3afe18b·...·]/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.78.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:·f441e2966ff8db4214e57fcd74f81262d6e371aa51cea97ebde5921e81b4da79·...·]/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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·1051,·SHA:·ecc0b8fccd861464760f9ae047ff6ab98c91a1db010cb5fa59a8c2ab883db7c4·...·]/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.78.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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·130,·SHA:·130a13019dc175d02304b4f550157e2f13ac15c2f25a979c74161d10b146ab89·...·]/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:·ec4fb002625b166504031522e52a66812b279e6735a67cb718813205909c3fb7·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_find"·class="fn">try_find</a>&lt;F,·R&gt;(98 the·first·non-none·result.·<a·href="https://doc.rust-lang.org/1.78.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:·8ced1b10e78750774c5c8ed995ed83dcd13983aa75d329acf8069da106ab9f4a·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_find"·class="fn">try_find</a>&lt;F,·R&gt;(
99 ····&amp;mut·self,99 ····&amp;mut·self,
100 ····f:·F100 ····f:·F
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.78.0/core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&gt;::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/ops/try_trait/trait.Try.html#associatedtype.Residual"·title="type[·...·truncated·by·diffoscope;·len:·626,·SHA:·95f9831257b68862cbcbf54f0ad2ff4e597a4c9f763112d1da8a0897dadcf872·...·]/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.78.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>(&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,103 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·R,
104 ····R:·<a·class="trait"·href="../../../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.78.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.78.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.78.0/core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&gt;::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/ops/try_trait/trait.Try.html#associatedtype.Residual"·title="type[·...·truncated·by·diffoscope;·len:·412,·SHA:·22b8cbb007e5cce82b9d13a65bfa56aa8d83c32541fac25f4d9b3857b0540908·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;&gt;,</div></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"><a·class="src·rightside"·href="../../../src/cor[·...·truncated·by·diffoscope;·len:·419,·SHA:·4337d283573b9683aaa605a7d2417318ef2a03902876e7da2ec26f2a5febf794·...·]/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.78.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"><a·class="src·rightside[·...·truncated·by·diffoscope;·len:·539,·SHA:·04e329705f11ed9ec269a68b0b75ac4ab26c78e4316a571ee9336c28bbca6359·...·]/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.78.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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·1190,·SHA:·882e9e9a037f916d0ed4aa6d749399e6e01ca81811eacfc54a484818cb5d5029·...·]/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.78.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.78.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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/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.78.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:·0367b1bacc0a7d8e05f1c5181f8c4ea428f3f11edbae0e76811f3ef1d4925e41·...·]/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.78.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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·346,·SHA:·7113e4c2d65a123253bb18971efdc2d49241cfc2dd4c2b18e4cfa4e4d7d4140f·...·]/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.78.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:·db89d4cca0becf2a4ab904adac2870de6fd83cfad5131f5a1431a67766274f81·...·]/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.78.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.78.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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/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.78.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:·39ce6bc28062c0df48bff6a8faa3e4f2266988879092cf2970d2e9ee092742b0·...·]/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.78.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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·346,·SHA:·7113e4c2d65a123253bb18971efdc2d49241cfc2dd4c2b18e4cfa4e4d7d4140f·...·]/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"><a·class="src·rightside"·href="../../../src/core/ite[·...·truncated·by·diffoscope;·len:·290,·SHA:·26ecd6ca88d5e349c58bc913b23b9442cdb94453483075726671ca2068939441·...·]/core/primitive.tuple.html">(FromA,·FromB)</a><div·class="where">where122 specified·comparison·function.·<a·href="https://doc.rust-lang.org/1.78.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"><a·class="src·rightside"·hre[·...·truncated·by·diffoscope;·len:·386,·SHA:·1483264e6e3f1a115dc7d273497cc865330cbe32459eec952d5e2d8bd0e9d686·...·]/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.78.0/core/default/trait.Default.html"·title="trait·core::default::Default">Default</a>·+·<a·class="trait"·href="https://doc.rust-lang.org/1.78.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.78.0/core/default/trait.Default.html"·title="trait·core::default::Default">Default</a>·+·<a·class="trait"·href="https://doc.rust-lang.org/1.78.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:·653aec8e646bd1e33f0a5bbac618099785271b214c53936117e7d07a68d11aa3·...·]/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.78.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>·+·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html"·title="trait·core::iter::traits::iterator::I[·...·truncated·by·diffoscope;·len:·980,·SHA:·8f6df3c40809d9a55d4dab64faffa89b8268cb5f886608ccbcab921d7ab8e9fc·...·]/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.78.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:·719,·SHA:·1b4b7b4f2c3e01a6730853a7897c01c7ca2999128cde44557d82b0ad951c1ee4·...·]/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.78.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>·+·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html"·title="trait·core::iter::traits::iterator::I[·...·truncated·by·diffoscope;·len:·887,·SHA:·d20d302b6091047fdb4e7850279e51911212047c48f118cfe992c0e9de39ba76·...·]/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; 84681/278291 bytes (30.43%) of diff not shown.
270 KB
./usr/share/doc/rust-web-doc/html/alloc/collections/btree_set/struct.Union.html
    
Offset 1, 199 lines modifiedOffset 1, 199 lines modified
1 <!DOCTYPE·html><html·lang="en"><head><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.write(`<link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../../static.files/SourceSerif4-Regular-46f98efaafac5295.ttf.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../../static.files/FiraSans-Regular-018c141bf0843ffd.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../../static.files/FiraSans-Medium-8f9a781e4970d388.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../../static.files/SourceCodePro-Regular-562dcc5011b6de7d.ttf.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../../static.files/SourceCodePro-Semibold-d899c5a5c4aeb14a.ttf.woff2">`)</script><link·rel="stylesheet"·href="../../../static.files/normalize-76eba96aa4d2e634.css"><link·rel="stylesheet"·href="../../../static.files/rustdoc-35f9e32502181f1e.css"><meta·name="rustdoc-vars"·data-root-path="../../../"·data-static-root-path="../../../static.files/"·data-current-crate="alloc"·data-themes=""·data-resource-suffix="1.78.0"·data-rustdoc-version="1.78.0"·data-channel="1.78.0"·data-search-js="search-42d8da7a6b9792c2.js"·data-settings-js="settings-4313503d2e1961c2.js"·><script·src="../../../static.files/storage-4c98445ec4002617.js"></script><script·defer·src="sidebar-items1.78.0.js"></script><script·defer·src="../../../static.files/main-12cf3b4f4f9dc36d.js"></script><noscript><link·rel="stylesheet"·href="../../../static.files/noscript-04d5337699b92874.css"></noscript><link·rel="alternate·icon"·type="image/png"·href="../../../static.files/favicon-16x16-8b506e7a72182f1c.png"><link·rel="alternate·icon"·type="image/png"·href="../../../static.files/favicon-32x32-422f7d1d52889060.png"><link·rel="icon"·type="image/svg+xml"·href="../../../static.files/favicon-2c020d218678b618.svg"></head><body·class="rustdoc·struct"><!--[if·lte·IE·11]><div·class="warning">This·old·browser·is·unsupported·and·will·most·likely·display·funky·things.</div><![endif]--><nav·class="mobile-topbar"><button·class="sidebar-menu-toggle"·title="show·sidebar"></button><a·class="logo-container"·href="../../../alloc/index.html"><img·class="rust-logo"·src="../../../static.files/rust-logo-151179464ae7ed46.svg"·alt=""></a></nav><nav·class="sidebar"><div·class="sidebar-crate"><a·class="logo-container"·href="../../../alloc/index.html"><img·class="rust-logo"·src="../../../static.files/rust-logo-151179464ae7ed46.svg"·alt="logo"></a><h2><a·href="../../../alloc/index.html">alloc</a><span·class="version">1.78.0</span></h2></div><h2·class="location"><a·href="#">Union</a></h2><div·class="sidebar-elems"><section><h3><a·href="#trait-implementations">Trait·Implementations</a></h3><ul·class="block·trait-implementation"><li><a·href="#impl-Clone-for-Union%3C'_,+T%3E">Clone</a></li><li><a·href="#impl-Debug-for-Union%3C'_,+T%3E">Debug</a></li><li><a·href="#impl-FusedIterator-for-Union%3C'_,+T%3E">FusedIterator</a></li><li><a·href="#impl-Iterator-for-Union%3C'a,+T%3E">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">Freeze</a></li><li><a·href="#impl-RefUnwindSafe-for-Union%3C'a,+T%3E">RefUnwindSafe</a></li><li><a·href="#impl-Send-for-Union%3C'a,+T%3E">Send</a></li><li><a·href="#impl-Sync-for-Union%3C'a,+T%3E">Sync</a></li><li><a·href="#impl-Unpin-for-Union%3C'a,+T%3E">Unpin</a></li><li><a·href="#impl-UnwindSafe-for-Union%3C'a,+T%3E">UnwindSafe</a></li></ul><h3><a·href="#blanket-implementations">Blanket·Implementations</a></h3><ul·class="block·blanket-implementation"><li><a·href="#impl-Any-for-T">Any</a></li><li><a·href="#impl-Borrow%3CT%3E-for-T">Borrow&lt;T&gt;</a></li><li><a·href="#impl-BorrowMut%3CT%3E-for-T">BorrowMut&lt;T&gt;</a></li><li><a·href="#impl-From%3CT%3E-for-T">From&lt;T&gt;</a></li><li><a·href="#impl-Into%3CU%3E-for-T">Into&lt;U&gt;</a></li><li><a·href="#impl-IntoIterator-for-I">IntoIterator</a></li><li><a·href="#impl-ToOwned-for-T">ToOwned</a></li><li><a·href="#impl-TryFrom%3CU%3E-for-T">TryFrom&lt;U&gt;</a></li><li><a·href="#impl-TryInto%3CU%3E-for-T">TryInto&lt;U&gt;</a></li></ul></section><h2><a·href="index.html">In·alloc::collections::btree_set</a></h2></div></nav><div·class="sidebar-resizer"></div>1 <!DOCTYPE·html><html·lang="en"><head><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.write(`<link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../../static.files/SourceSerif4-Regular-46f98efaafac5295.ttf.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../../static.files/FiraSans-Regular-018c141bf0843ffd.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../../static.files/FiraSans-Medium-8f9a781e4970d388.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../../static.files/SourceCodePro-Regular-562dcc5011b6de7d.ttf.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../../static.files/SourceCodePro-Semibold-d899c5a5c4aeb14a.ttf.woff2">`)</script><link·rel="stylesheet"·href="../../../static.files/normalize-76eba96aa4d2e634.css"><link·rel="stylesheet"·href="../../../static.files/rustdoc-35f9e32502181f1e.css"><meta·name="rustdoc-vars"·data-root-path="../../../"·data-static-root-path="../../../static.files/"·data-current-crate="alloc"·data-themes=""·data-resource-suffix="1.78.0"·data-rustdoc-version="1.78.0"·data-channel="1.78.0"·data-search-js="search-42d8da7a6b9792c2.js"·data-settings-js="settings-4313503d2e1961c2.js"·><script·src="../../../static.files/storage-4c98445ec4002617.js"></script><script·defer·src="sidebar-items1.78.0.js"></script><script·defer·src="../../../static.files/main-12cf3b4f4f9dc36d.js"></script><noscript><link·rel="stylesheet"·href="../../../static.files/noscript-04d5337699b92874.css"></noscript><link·rel="alternate·icon"·type="image/png"·href="../../../static.files/favicon-16x16-8b506e7a72182f1c.png"><link·rel="alternate·icon"·type="image/png"·href="../../../static.files/favicon-32x32-422f7d1d52889060.png"><link·rel="icon"·type="image/svg+xml"·href="../../../static.files/favicon-2c020d218678b618.svg"></head><body·class="rustdoc·struct"><!--[if·lte·IE·11]><div·class="warning">This·old·browser·is·unsupported·and·will·most·likely·display·funky·things.</div><![endif]--><nav·class="mobile-topbar"><button·class="sidebar-menu-toggle"·title="show·sidebar"></button><a·class="logo-container"·href="../../../alloc/index.html"><img·class="rust-logo"·src="../../../static.files/rust-logo-151179464ae7ed46.svg"·alt=""></a></nav><nav·class="sidebar"><div·class="sidebar-crate"><a·class="logo-container"·href="../../../alloc/index.html"><img·class="rust-logo"·src="../../../static.files/rust-logo-151179464ae7ed46.svg"·alt="logo"></a><h2><a·href="../../../alloc/index.html">alloc</a><span·class="version">1.78.0</span></h2></div><h2·class="location"><a·href="#">Union</a></h2><div·class="sidebar-elems"><section><h3><a·href="#trait-implementations">Trait·Implementations</a></h3><ul·class="block·trait-implementation"><li><a·href="#impl-Clone-for-Union%3C'_,+T%3E">Clone</a></li><li><a·href="#impl-Debug-for-Union%3C'_,+T%3E">Debug</a></li><li><a·href="#impl-FusedIterator-for-Union%3C'_,+T%3E">FusedIterator</a></li><li><a·href="#impl-Iterator-for-Union%3C'a,+T%3E">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">Freeze</a></li><li><a·href="#impl-RefUnwindSafe-for-Union%3C'a,+T%3E">RefUnwindSafe</a></li><li><a·href="#impl-Send-for-Union%3C'a,+T%3E">Send</a></li><li><a·href="#impl-Sync-for-Union%3C'a,+T%3E">Sync</a></li><li><a·href="#impl-Unpin-for-Union%3C'a,+T%3E">Unpin</a></li><li><a·href="#impl-UnwindSafe-for-Union%3C'a,+T%3E">UnwindSafe</a></li></ul><h3><a·href="#blanket-implementations">Blanket·Implementations</a></h3><ul·class="block·blanket-implementation"><li><a·href="#impl-Any-for-T">Any</a></li><li><a·href="#impl-Borrow%3CT%3E-for-T">Borrow&lt;T&gt;</a></li><li><a·href="#impl-BorrowMut%3CT%3E-for-T">BorrowMut&lt;T&gt;</a></li><li><a·href="#impl-From%3CT%3E-for-T">From&lt;T&gt;</a></li><li><a·href="#impl-Into%3CU%3E-for-T">Into&lt;U&gt;</a></li><li><a·href="#impl-IntoIterator-for-I">IntoIterator</a></li><li><a·href="#impl-ToOwned-for-T">ToOwned</a></li><li><a·href="#impl-TryFrom%3CU%3E-for-T">TryFrom&lt;U&gt;</a></li><li><a·href="#impl-TryInto%3CU%3E-for-T">TryInto&lt;U&gt;</a></li></ul></section><h2><a·href="index.html">In·alloc::collections::btree_set</a></h2></div></nav><div·class="sidebar-resizer"></div>
2 ····<main><div·class="width-limiter"><nav·class="sub"><form·class="search-form"><span></span><div·id="sidebar-button"·tabindex="-1"><a·href="../../../alloc/all.html"·title="show·sidebar"></a></div><input·class="search-input"·name="search"·aria-label="Run·search·in·the·documentation"·autocomplete="off"·spellcheck="false"·placeholder="Click·or·press·‘S’·to·search,·‘?’·for·more·options…"·type="search"><div·id="help-button"·tabindex="-1"><a·href="../../../help.html"·title="help">?</a></div><div·id="settings-menu"·tabindex="-1"><a·href="../../../settings.html"·title="settings"><img·width="22"·height="22"·alt="Change·settings"·src="../../../static.files/wheel-7b819b6101059cd0.svg"></a></div></form></nav><section·id="main-content"·class="content"><div·class="main-heading"><h1>Struct·<a·href="../../index.html">alloc</a>::<wbr><a·href="../index.html">collections</a>::<wbr><a·href="index.html">btree_set</a>::<wbr><a·class="struct"·href="#">Union</a><button·id="copy-path"·title="Copy·item·path·to·clipboard"><img·src="../../../static.files/clipboard-7571035ce49a181d.svg"·width="19"·height="18"·alt="Copy·item·path"></button></h1><span·class="out-of-band"><span·class="since"·title="Stable·since·Rust·version·1.0.0">1.0.0</span>···<a·class="src"·href="../../../src/alloc/collections/btree/set.rs.html#308">source</a>···<button·id="toggle-all-docs"·title="collapse·all·docs">[<span>&#x2212;</span>]</button></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 ····<main><div·class="width-limiter"><nav·class="sub"><form·class="search-form"><span></span><div·id="sidebar-button"·tabindex="-1"><a·href="../../../alloc/all.html"·title="show·sidebar"></a></div><input·class="search-input"·name="search"·aria-label="Run·search·in·the·documentation"·autocomplete="off"·spellcheck="false"·placeholder="Click·or·press·‘S’·to·search,·‘?’·for·more·options…"·type="search"><div·id="help-button"·tabindex="-1"><a·href="../../../help.html"·title="help">?</a></div><div·id="settings-menu"·tabindex="-1"><a·href="../../../settings.html"·title="settings"><img·width="22"·height="22"·alt="Change·settings"·src="../../../static.files/wheel-7b819b6101059cd0.svg"></a></div></form></nav><section·id="main-content"·class="content"><div·class="main-heading"><h1>Struct·<a·href="../../index.html">alloc</a>::<wbr><a·href="../index.html">collections</a>::<wbr><a·href="index.html">btree_set</a>::<wbr><a·class="struct"·href="#">Union</a><button·id="copy-path"·title="Copy·item·path·to·clipboard"><img·src="../../../static.files/clipboard-7571035ce49a181d.svg"·width="19"·height="18"·alt="Copy·item·path"></button></h1><span·class="out-of-band"><span·class="since"·title="Stable·since·Rust·version·1.0.0">1.0.0</span>···<a·class="src"·href="../../../src/alloc/collections/btree/set.rs.html#308">source</a>···<button·id="toggle-all-docs"·title="collapse·all·docs">[<span>&#x2212;</span>]</button></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>
3 <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 <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>.
4 See·its·documentation·for·more.</p>4 See·its·documentation·for·more.</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-Union%3C'_,+T%3E"·class="impl"><a·class="src·rightside"·href="../../../src/alloc/collections/btree/set.rs.html#1792-1796">source</a><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:·6870,·SHA:·94464e17a69965b43be224aa61bc93fe7e8c2a4f4214e777827905e561717f33·...·]/core/primitive.usize.html">usize</a>&gt;(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-Union%3C'_,+T%3E"·class="impl"><a·class="src·rightside"·href="../../../src/alloc/collections/btree/set.rs.html#1792-1796">source</a><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.78.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:·7518,·SHA:·a383343614b3ac3da7fc6aadb79356cfeabd8d215b09d3b62c6ba7995bc5f9a5·...·]/core/primitive.usize.html">usize</a>&gt;(
6 ····&amp;mut·self6 ····&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.78.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.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title=[·...·truncated·by·diffoscope;·len:·381,·SHA:·88c48923c9b7ea5cc47c1087c60e09656e81d4671c58071ba2bef826335388bc·...·]/core/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:·746,·SHA:·99cc415a31b91c57f7eeb82ad0d2d1ba424489bee49de37c86a4ea21c663ccda·...·]/core/primitive.usize.html">usize</a><div·class="where">where8 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experiment[·...·truncated·by·diffoscope;·len:·866,·SHA:·945d2d86f0c4c5ca3e3ee3b181d18b2bbea57ee1a5a7efe16c0c915a5bf2c3ad·...·]/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:·597,·SHA:·be3babc2f9096ec8bacc872099ff5a03375deb1461cf1d651cfbfb072fb72581·...·]/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.78.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:·741,·SHA:·f3078cc3fddd62af2c1a8814c5854bb49f40b79e4fbc9b3addf5862a72370f82·...·]/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:·2928,·SHA:·dd9dc6c66a208fe3371784c1d048fbccf7b880bff34f93a1694f746d814568db·...·]/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.78.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.78.0/cor[·...·truncated·by·diffoscope;·len:·3408,·SHA:·b62c6ed65b31a8b555c142d9d15f3ce30e5c76ad2630a0e5a9b13cfd478c6eee·...·]/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.78.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"><a·class="src·rightside"·href="../../../src/core/it[·...·truncated·by·diffoscope;·len:·602,·SHA:·cfe4c4d300dddc2abdc2f8194eb969c68b2240c28239969b5be2af6a564ed8cc·...·]/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.78.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"><a·class="src·rightside"·hr[·...·truncated·by·diffoscope;·len:·746,·SHA:·f1f70d650c102c8658e13890c7dbfc87418f07e7b522246fb579ec434ef64f7c·...·]/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.78.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:·1041,·SHA:·a281d174c9671021427f0b458ac94e87746ac44730475aa725652c6c15e2b972·...·]/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.78.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.78.0/core/iter/traits/it[·...·truncated·by·diffoscope;·len:·1233,·SHA:·f677df2d893dfe0dc1a9d31ebb0ba71a346d265781813e0d664d3f18369b6163·...·]/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.78.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:·b9001dd3131b1425179c94853e1b90fff0f7169b9570e86cd50c6b7fbf1ee8a5·...·]/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.78.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:·98627729f77dcf1c9d258f343354ba600b7134c6b3929080f231e8de7155b70b·...·]/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.78.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.78.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.78.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"><a·class="src·rightside"·href="../../../src/[·...·truncated·by·diffoscope;·len:·279,·SHA:·f2c34c2e64e77c66684f837812ebc4a94c81b2ad5862cc0131f80c3ce89e008a·...·]/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.78.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"><a·class="src·rights[·...·truncated·by·diffoscope;·len:·375,·SHA:·58419346f92e1709dadb70cc3cf356e3cd27972451bdc6b4fc4267e6f7e8bdae·...·]/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.78.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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::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:·d75758e0f8262eeea27445cec43f13d84f0c02ba4e03c0c54d041f9ab1965e0f·...·]/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.78.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:·98f6effefa44d759c249143d83623f0055d937382bfc398b7e1f5e92cd413657·...·]/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.78.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:·676,·SHA:·9ae42ed293737a3dd44c1ee9d98c6aabb1552fbb9d203cb852ee9fcc7834a6ca·...·]/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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·820,·SHA:·a664bbcbc0891663662e4eb7b4394d0fcd72e568136fc4d34097fea242cc32e7·...·]/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.78.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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·140,·SHA:·752f473b57e7444ebfddf5ea7fd40a332e83ec55524a6c31b5ee0f82a5dea819·...·]/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"><a·class="src·rightside"·href="../../../src/cor[·...·truncated·by·diffoscope;·len:·297,·SHA:·f01e44d4caf6c6ad80b37656b9300f7111340711dcd74d70867b5a652dbfb538·...·]/core/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.78.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"><a·class="src·rightside[·...·truncated·by·diffoscope;·len:·393,·SHA:·2e2aa7c9c9c087e7b346da376749064ab8c1894795a2f0a0f646cdc8c7bea997·...·]/core/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.78.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:·788,·SHA:·b788f412af946d2bd7646ba39a8c316ebfa88109f9626dbad9bf9964f975cd0c·...·]/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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·956,·SHA:·faba0521e870dbbd26d466fadba3522e7d29013a9b86376fffafffac11a57e0e·...·]/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.78.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"><a·class="src·rightside"·href="../../../src/co[·...·truncated·by·diffoscope;·len:·276,·SHA:·e337ee1b810d3ec0480569c4ed323ebf0a2315c8ae3c522a73fcca3aa8e6efb3·...·]/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.78.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"><a·class="src·rightsid[·...·truncated·by·diffoscope;·len:·372,·SHA:·03eea0861575eb80d3f7a87a3ba747adb1a33fe7e9ce72aa2172e7a287c63a94·...·]/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.78.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.78.0/core/iter/adapte[·...·truncated·by·diffoscope;·len:·175,·SHA:·16fe7225bf05b478e2828b347c3d23ded9a22f89d8887a2c65d9f7b3faf1b0e7·...·]/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"><a·class="src·rightside"·href="../../../src/c[·...·truncated·by·diffoscope;·len:·306,·SHA:·a9bc004bf639fa188165a336061c6c98ec7ff9d266a18f10db200dfa9a880b88·...·]/core/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.78.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"><a·class="src·rightsi[·...·truncated·by·diffoscope;·len:·402,·SHA:·7689a974f800fd069d1b4453ef62d6d6ad1b654462d624d36e3672051d502030·...·]/core/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.78.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:·946,·SHA:·877b8718d9df1464a912dd50eef16402225367db4e4b26484b5ee20d30644524·...·]/core/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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·1138,·SHA:·f6ae06b7de8e94df014341c5cf589a5e4a1298367b2ef7a968ec499c5170a70e·...·]/core/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.78.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:·552b3dd2132886d024e4d5bd2554611e25c1f068adaaf23ecf80da81d31997ef·...·]/core/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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·1058,·SHA:·b390dbdda8d7e93604b5ecd906a93efd03fe19bdaf41cf12893fd361bf974307·...·]/core/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.78.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:·875,·SHA:·5c5c44422f75cbb66ebcf54bea70536713b810843cc484b051aed088c6422d78·...·]/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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·1067,·SHA:·415d32e1211c35d3bb405de1d6e51c2102c14cadc3333894f063148dbe0b1f69·...·]/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:·543,·SHA:·f199bafab360be9b80e9f45c5ba799a52348b742ddb0fa9afdb1624729c36e58·...·]/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.78.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:·687,·SHA:·7f5256104c35c5948a2cb42b55f3048c9d2887e48a4a8226537a284f959c562a·...·]/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.78.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"><a·class="src·rightside"·href="../../../src/core/iter/t[·...·truncated·by·diffoscope;·len:·296,·SHA:·aea014801138aeee574964545b1e9ad297288a120113db6844b569d2b183e0a7·...·]/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.78.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"><a·class="src·rightside"·href="[·...·truncated·by·diffoscope;·len:·392,·SHA:·4e7da68f7be2622ef173653eca78d58e1f202b544a2e6abd14d8335c298c93a7·...·]/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.78.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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(<a·class="primitive"·href="https://doc.rust-lang.org/1.78.0/core/primitive.reference.html">&amp;mut·St</a>,·Self::<a·class="associatedty[·...·truncated·by·diffoscope;·len:·449,·SHA:·f12c268a8a8111b9e7126ad78bf5523a63733caa63d187c4fe792309ea41acdf·...·]/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:·474,·SHA:·c0ed850df640319d919b8c053c540caa158602207623bed65abbcd69ad9d2c9d·...·]/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.78.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.78.0/core/iter/trai[·...·truncated·by·diffoscope;·len:·594,·SHA:·02960742fa7892efaa08f289ce85865fc5efb6a4cd138c22e3566ca6fc727d78·...·]/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.78.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.78.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:·4d1f54658fd1c005b101a2e27b0da3c6ee0cbe2d891660c65470bfec01fa46f6·...·]/core/iter/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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·976,·SHA:·2a9182f6fe88e0b8a9b1ae1f46cace940cc0b8736033c354c0f0ccbf1c196e7a·...·]/core/iter/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.78.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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;[Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtyp[·...·truncated·by·diffoscope;·len:·135,·SHA:·0b06a6094d42ccbc8bce5b01c4383961fe7f1967f05e4c9f1ff33e71e425fb26·...·]/core/primitive.array.html">N</a>])·-&gt;·R,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iter_map_windows</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/87155">#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.78.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"><a·class="src·rightside"·href="../../../src/core[·...·truncated·by·diffoscope;·len:·262,·SHA:·6125a8b2b88486b3735bbd00905fe9ae55b6eb1491c8a493be9c8121dc3cb440·...·]/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.78.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"><a·class="src·rightside"[·...·truncated·by·diffoscope;·len:·358,·SHA:·d91b2ab18e0ce069e262cf523c6ef961f56eecad042ea1e9bcefe33cff28fc8f·...·]/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:·601,·SHA:·bdf3796aa87e911258d56122ffdaa3f8591a5c9db4ed6fd89c3dfd3660787f78·...·]/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.78.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.78.0/core/op[·...·truncated·by·diffoscope;·len:·745,·SHA:·424783f22102f4446d3ad4d362b1aafdb7531fa777213f97ee138aa878f67bd1·...·]/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.78.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:·694,·SHA:·db4bb2630979aa4504432e8d422265d943c9063bcf3d2e3be970003014226f1e·...·]/core/primitive.reference.html">&amp;mut·Self</a><div·class="where">where56 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·838,·SHA:·9b4fd8df7f41e9a76fd4cfca0a233b74b9bd27c3fe8228248abc3f940425a3e3·...·]/core/primitive.reference.html">&amp;mut·Self</a><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:·331,·SHA:·d13641714c275840abbb473011613a4e19924a453f5e1b83912681a9b7c5579b·...·]/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.78.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.78.0/core/it[·...·truncated·by·diffoscope;·len:·427,·SHA:·ecfaaac5d1d10c1bc4fcee9a050af0a268bee0b528c2d8ea4e9774440bd8a279·...·]/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.78.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.78.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:·d76c3fcf86c63211032a6b22dc5924ef552b1ad26b12e19f15d2f1d5b3d7e394·...·]/core/primitive.reference.html">&amp;mut·E</a><div·class="where">where59 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.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.78.0/core/iter/tr[·...·truncated·by·diffoscope;·len:·728,·SHA:·01937c2dc314c259495665570ae249c94b4a5b0719718f5f1188e6fc64ecf487·...·]/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.78.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.78.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:·759,·SHA:·3cf174fac64a83c8e22066c3d77741118f89b13411537fc82c1004faa5c9e2ae·...·]/core/primitive.tuple.html">(B,·B)</a><div·class="where">where61 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experiment[·...·truncated·by·diffoscope;·len:·879,·SHA:·e773b2222c92d001e295030cb47a780ab0c1132d7fc8e9e3a98de4f532e6c520·...·]/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.78.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.78.0/core/default/trait.Default.html"·title="trait·core::default::Default">Default</a>·+·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/collect/trait.Extend.html"·title="trait·core::iter::traits::collec[·...·truncated·by·diffoscope;·len:·95,·SHA:·8b3be1d0042cae0550f865faf5849221240bdf04eb1b2107605b72d48c3ad29c·...·]/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:·f996a0de22717256dd2ecf4d61d81611f9c7dfe5a493e4b882abb4030f3c80f9·...·]/core/primitive.bool.html">bool</a><div·class="where">where64 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·972,·SHA:·6de765542031617a9c28ac98fe6df619e58e62d9c65ec5b1c185a7152b8944e5·...·]/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.78.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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·135,·SHA:·51ff5f5c7ebd8440623ea71b125c5a5837e809e308fe1a13fbe19cddb941dbd9·...·]/core/primitive.bool.html">bool</a>,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iter_is_partitioned</code>&nbsp;<a·href="https://github.com/rust-lang/rust/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:·bd8fce4ee431c619c98780c4d520e8db93f1e034f12843ffaff5744b7ce2190b·...·]/core/iter/traits/iterator/trait.Iterator.html#method.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.78.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:·2c74873f4e5ba70004a1c7edd1cc3f9e2d91271295dd1591e2d26848df4c02ba·...·]/core/iter/traits/iterator/trait.Iterator.html#method.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.78.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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(B,·Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.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.78.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:·7b4fc32e7634ae85c682a97099be267837713d7e4831893b617ca652f57a89da·...·]/core/iter/traits/iterator/trait.Iterator.html#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.78.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:·52912e82c4b0a760d06f77eb4ee3a59ba70dd76cb532954900c73ae94c652674·...·]/core/iter/traits/iterator/trait.Iterator.html#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.78.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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.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.78.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.78.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"><a·class="src·rightside"·href="../../../src/cor[·...·truncated·by·diffoscope;·len:·139,·SHA:·dc7fb7a70636459a0d7de28cbcb454050f39c184bab178c95c524a6eb9ca51cf·...·]/core/iter/traits/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.78.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"><a·class="src·rightside[·...·truncated·by·diffoscope;·len:·211,·SHA:·924e062acd8127e8d6158162219ee5d57a941854e14063d21d7768edae549431·...·]/core/iter/traits/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.78.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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(B,·Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::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:·2c738ecc68200afa2467bef085de14dcb642dbaac77c4529948f5e259e66691d·...·]/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.78.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:·b60215068a6d9721be05f81098c51167d7138c4042f140cad42f77c4df43f597·...·]/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.78.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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·352,·SHA:·e7c3c296abe2c0a183967153e4ae7fd50bafa2ae7088e3e78b3b48fee253adc6·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::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:·c3f1d50e276def36966943119961a20b09cab3be33483fe4d48d7f322489534b·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_reduce"·class="fn">try_reduce</a>&lt;F,·R&gt;(81 operation.·<a·href="https://doc.rust-lang.org/1.78.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:·7a18fdd041b1a001b4a8feb289ee127fd9240232239269eb35dc3b8f74783ec9·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_reduce"·class="fn">try_reduce</a>&lt;F,·R&gt;(
82 ····&amp;mut·self,82 ····&amp;mut·self,
83 ····f:·F83 ····f:·F
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.78.0/core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&gt;::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/ops/try_trait/trait.Try.html#associatedtype.Residual"·title="type[·...·truncated·by·diffoscope;·len:·754,·SHA:·6fb4dfdb6b4da68921c1e7f8b75d99cf293d58318d684a840254ce9576957bea·...·]/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.78.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:·68,·SHA:·e7e11f257edcac749a5883ad9a3aa42e6e965be419f967b36caa7afd3b36d7c9·...·]/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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·140,·SHA:·c27972e6fa3464c9476eaa185e8657edb6bb294f148403f3d079285294a9f909·...·]/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·=·Self::<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.78.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.78.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.78.0/core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&gt;::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/ops/try_trait/trait.Try.html#associatedtype.Residual"·title="type[·...·truncated·by·diffoscope;·len:·412,·SHA:·22b8cbb007e5cce82b9d13a65bfa56aa8d83c32541fac25f4d9b3857b0540908·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;&gt;,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iterator_try_reduce</code>&nbsp;<a·href="https://github.com/rust-lang/rust/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"><a·class="src·rightside"·href="../../../src/core/i[·...·truncated·by·diffoscope;·len:·284,·SHA:·fbacd9a305d3a60d42d9adcc5ea9e5f579f4ff5d970999f333eaf0c7f9baf66c·...·]/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.78.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"><a·class="src·rightside"·h[·...·truncated·by·diffoscope;·len:·380,·SHA:·29c4004d4d8b0c8c9dfe9023f8b2c5ef801d9dc4688893035d182c1ae774c453·...·]/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.78.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:·754,·SHA:·e3afac523bd4c054d94fbbb6c5c856ac78a6359550526fa0726732b36529c33d·...·]/core/primitive.bool.html">bool</a><div·class="where">where91 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·922,·SHA:·f4fd532c280e18f28bd6dda6c2a129e2e92114b67f27235bb5fd39f725be9c43·...·]/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.78.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:·884,·SHA:·32570d141a71827f9ac19bf566a51ca4814ccafaf6f8a961920ce107fe9657d7·...·]/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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·1076,·SHA:·2dd9de8adaee4a5ee96501d9a58bfac2fea00ba8d78b834bfca29949b3afe18b·...·]/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.78.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:·f441e2966ff8db4214e57fcd74f81262d6e371aa51cea97ebde5921e81b4da79·...·]/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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·1051,·SHA:·ecc0b8fccd861464760f9ae047ff6ab98c91a1db010cb5fa59a8c2ab883db7c4·...·]/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.78.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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·130,·SHA:·130a13019dc175d02304b4f550157e2f13ac15c2f25a979c74161d10b146ab89·...·]/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:·ec4fb002625b166504031522e52a66812b279e6735a67cb718813205909c3fb7·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_find"·class="fn">try_find</a>&lt;F,·R&gt;(98 the·first·non-none·result.·<a·href="https://doc.rust-lang.org/1.78.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:·8ced1b10e78750774c5c8ed995ed83dcd13983aa75d329acf8069da106ab9f4a·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_find"·class="fn">try_find</a>&lt;F,·R&gt;(
99 ····&amp;mut·self,99 ····&amp;mut·self,
100 ····f:·F100 ····f:·F
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.78.0/core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&gt;::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/ops/try_trait/trait.Try.html#associatedtype.Residual"·title="type[·...·truncated·by·diffoscope;·len:·626,·SHA:·95f9831257b68862cbcbf54f0ad2ff4e597a4c9f763112d1da8a0897dadcf872·...·]/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.78.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>(&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,103 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·R,
104 ····R:·<a·class="trait"·href="../../../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.78.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.78.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.78.0/core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&gt;::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/ops/try_trait/trait.Try.html#associatedtype.Residual"·title="type[·...·truncated·by·diffoscope;·len:·412,·SHA:·22b8cbb007e5cce82b9d13a65bfa56aa8d83c32541fac25f4d9b3857b0540908·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;&gt;,</div></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"><a·class="src·rightside"·href="../../../src/cor[·...·truncated·by·diffoscope;·len:·419,·SHA:·4337d283573b9683aaa605a7d2417318ef2a03902876e7da2ec26f2a5febf794·...·]/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.78.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"><a·class="src·rightside[·...·truncated·by·diffoscope;·len:·539,·SHA:·04e329705f11ed9ec269a68b0b75ac4ab26c78e4316a571ee9336c28bbca6359·...·]/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.78.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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·1190,·SHA:·882e9e9a037f916d0ed4aa6d749399e6e01ca81811eacfc54a484818cb5d5029·...·]/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.78.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.78.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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/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.78.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:·0367b1bacc0a7d8e05f1c5181f8c4ea428f3f11edbae0e76811f3ef1d4925e41·...·]/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.78.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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·346,·SHA:·7113e4c2d65a123253bb18971efdc2d49241cfc2dd4c2b18e4cfa4e4d7d4140f·...·]/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.78.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:·db89d4cca0becf2a4ab904adac2870de6fd83cfad5131f5a1431a67766274f81·...·]/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.78.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.78.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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/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.78.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:·39ce6bc28062c0df48bff6a8faa3e4f2266988879092cf2970d2e9ee092742b0·...·]/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.78.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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·346,·SHA:·7113e4c2d65a123253bb18971efdc2d49241cfc2dd4c2b18e4cfa4e4d7d4140f·...·]/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"><a·class="src·rightside"·href="../../../src/core/ite[·...·truncated·by·diffoscope;·len:·290,·SHA:·26ecd6ca88d5e349c58bc913b23b9442cdb94453483075726671ca2068939441·...·]/core/primitive.tuple.html">(FromA,·FromB)</a><div·class="where">where122 specified·comparison·function.·<a·href="https://doc.rust-lang.org/1.78.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"><a·class="src·rightside"·hre[·...·truncated·by·diffoscope;·len:·386,·SHA:·1483264e6e3f1a115dc7d273497cc865330cbe32459eec952d5e2d8bd0e9d686·...·]/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.78.0/core/default/trait.Default.html"·title="trait·core::default::Default">Default</a>·+·<a·class="trait"·href="https://doc.rust-lang.org/1.78.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.78.0/core/default/trait.Default.html"·title="trait·core::default::Default">Default</a>·+·<a·class="trait"·href="https://doc.rust-lang.org/1.78.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:·653aec8e646bd1e33f0a5bbac618099785271b214c53936117e7d07a68d11aa3·...·]/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.78.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>·+·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html"·title="trait·core::iter::traits::iterator::I[·...·truncated·by·diffoscope;·len:·980,·SHA:·8f6df3c40809d9a55d4dab64faffa89b8268cb5f886608ccbcab921d7ab8e9fc·...·]/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.78.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:·719,·SHA:·1b4b7b4f2c3e01a6730853a7897c01c7ca2999128cde44557d82b0ad951c1ee4·...·]/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.78.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>·+·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html"·title="trait·core::iter::traits::iterator::I[·...·truncated·by·diffoscope;·len:·887,·SHA:·d20d302b6091047fdb4e7850279e51911212047c48f118cfe992c0e9de39ba76·...·]/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; 83701/276620 bytes (30.26%) of diff not shown.
52.2 KB
./usr/share/doc/rust-web-doc/html/alloc/collections/enum.TryReserveErrorKind.html
    
Offset 6, 22 lines modifiedOffset 6, 22 lines modified
6 ········<span·class="comment">/*·private·fields·*/</span>6 ········<span·class="comment">/*·private·fields·*/</span>
7 ····},7 ····},
8 }</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 }</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>
9 </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·maximum9 </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
10 (usually·<code>isize::MAX</code>·bytes).</p>10 (usually·<code>isize::MAX</code>·bytes).</p>
11 </div><section·id="variant.AllocError"·class="variant"><a·href="#variant.AllocError"·class="anchor">§</a><h3·class="code-header">AllocError</h3></section><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><section·id="variant.AllocError"·class="variant"><a·href="#variant.AllocError"·class="anchor">§</a><h3·class="code-header">AllocError</h3></section><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><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>12 </div></div></div><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>
13 </div></div><h2·id="trait-implementations"·class="section-header">Trait·Implementations<a·href="#trait-implementations"·class="anchor">§</a></h2><div·id="trait-implementations-list"><details·class="toggle·implementors-toggle"·open><summary><section·id="impl-Clone-for-TryReserveErrorKind"·class="impl"><a·class="src·rightside"·href="../../src/alloc/collections/mod.rs.html#80">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:·3740,·SHA:·ee38ea948ab1be533613a0b68f31285af66377e38e782583ff6b9e2a000845ef·...·]/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></div><h2·id="trait-implementations"·class="section-header">Trait·Implementations<a·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#80">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.78.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:·3983,·SHA:·6d38444e6405afbe52d1605f71cb0ca46eda296283ba28b954853ac5b0b89e78·...·]/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>
14 </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#114-119">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:·1873,·SHA:·89198aab27ab118770710aa790881551ed281683cbeaa8c5834650b469365c12·...·]/core/primitive.bool.html">bool</a></h4></section></summary><div·class='docblock'>This·method·tests·for·<code>self</code>·and·<code>other</code>·values·to·be·equal,·and·is·used14 </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#114-119">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.78.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:·2008,·SHA:·01f15c3d0b3dc8da8cfcf04a53c549655221b8f196a760d1030fc4a87ade24d7·...·]/core/primitive.bool.html">bool</a></h4></section></summary><div·class='docblock'>This·method·tests·for·<code>self</code>·and·<code>other</code>·values·to·be·equal,·and·is·used
15 by·<code>==</code>.</div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.ne"·class="method·trait-impl"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.0.0">1.0.0</span>···<a·class="src"·href="../../src/core/cmp.rs.html#263">source</a></span><a·href="#method.ne"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../../core/cmp/trait.PartialEq.html#method.ne"·class="fn">ne</a>(&amp;self,·other:·<a·class="primitive"·href="../../core/primitive[·...·truncated·by·diffoscope;·len:·69,·SHA:·bb676445ed4716783d5d8ed2fb1ff635f2577a6cd8b41db49822f9e352e394c1·...·]/core/primitive.bool.html">bool</a></h4></section></summary><div·class='docblock'>This·method·tests·for·<code>!=</code>.·The·default·implementation·is·almost·always15 by·<code>==</code>.</div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.ne"·class="method·trait-impl"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.0.0">1.0.0</span>···<a·class="src"·href="https://doc.rust-lang.org/1.78.0/src/core/cmp.rs.html#263">source</a></span><a·href="#method.ne"·class="anchor">§</a><h4·class="code-header">fn·<a·href="https://doc.rust-lang.org/1.78.0/core/cmp/trait.PartialEq.html#method.ne"·class="fn">ne</a>(&amp;self,·[·...·truncated·by·diffoscope;·len:·177,·SHA:·e1e3f9b9b78644c807cda06ba58cbf80a7a50ed17e7136cd156da5dd11dec66f·...·]/core/primitive.bool.html">bool</a></h4></section></summary><div·class='docblock'>This·method·tests·for·<code>!=</code>.·The·default·implementation·is·almost·always
16 sufficient,·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#80">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:·adc44ebe80dabd8027db4714914290481eba56fabcdb238726ed7a0be8bb82e6·...·]/core/any/trait.Any.html"·title="trait·core::any::Any">Any</a>·for·T<div·class="where">where16 sufficient,·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#80">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.78.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:·2962d9897fcab4aec291a08ae045aadd3195837fba42344e47cc94aa9cd5072c·...·]/core/any/trait.Any.html"·title="trait·core::any::Any">Any</a>·for·T<div·class="where">where
17 ····T:·'static·+·?<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.type_id"·class="method·trait-impl"><a·class="src·[·...·truncated·by·diffoscope;·len:·672,·SHA:·9db8bacb767d75cc3351ca7341c388130aa05ebef490d992be5374f16eedc378·...·]/src/core/borrow.rs.html#208">source</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">where17 ····T:·'static·+·?<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">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:·039b8952ccb1ab7d8f15cd519cbc10f4afc149276d0f9cfd3a53117d606059df·...·]/src/core/borrow.rs.html#208">source</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
18 ····T:·?<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.borrow"·class="method·trait-impl"><a·class="src·r[·...·truncated·by·diffoscope;·len:·629,·SHA:·b2ffbab17ff1ef71ba4c506a3aaa515da2082da6f02a53862ce1ca2b2b25f5b4·...·]/src/core/borrow.rs.html#216">source</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">where18 ····T:·?<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/marker/trait.Sized.html"·title="trait·core::marker::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:·952d76e7bcf7b521fffa418ce638abf69976de0942360e56f93e419ca3389394·...·]/src/core/borrow.rs.html#216">source</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
19 ····T:·?<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.borrow_mut"·class="method·trait-impl"><a·class="s[·...·truncated·by·diffoscope;·len:·1231,·SHA:·a0f41dc17dd951e91fe7d4dacbf34ce2579fbd224002f0126a4fde8f42777610·...·]/core/convert/trait.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.78.0/core/marker/trait.Sized.html"·title="trait·core::marker::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:·1420,·SHA:·3c0b1c8adba24e849b7b96bad5a45a5bf13230d17c19f9f7a5961d0b706d17b8·...·]/core/convert/trait.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.78.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.78.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·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>21 ····U:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.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:·2cf76a8ca501b2a1fef209fed846779ab1bed3b75f52c7425335e3ce04e6b272·...·]/core/convert/trait.Into.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.78.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#83-95">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#83-95">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·href="#associ[·...·truncated·by·diffoscope;·len:·1795,·SHA:·b8c26d2756505ca680539dc8d84062e328ba98d1ac09cee9448c528adf7cafc0·...·]/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.78.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:·1903,·SHA:·9a4eb5c800ed211d64f5ef4bbb9fe5e4bfede4b7cdffd1e1968bf0b3d77a2705·...·]/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"·class="associatedtype·trait-impl"><a·hre[·...·truncated·by·diffoscope;·len:·1591,·SHA:·8537afacf1b3cf6b9fb7db778975d49d8a8e5988d420715e464ff4a79dd696c5·...·]/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.78.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"·class="associ[·...·truncated·by·diffoscope;·len:·1861,·SHA:·78398046ba16de2f66a8201a11d6a2dd405fceedeabfcaa37481e77092687e6f·...·]/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-1"·class="associatedtype·trait-i[·...·truncated·by·diffoscope;·len:·1231,·SHA:·7843e7b6cca73922417e4154886c0df66f016d274b48933c21bdb75b67479d5b·...·]/core/convert/trait.TryFrom.html#associatedtype.Error"·title="type·core::convert::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.78.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-1"·cl[·...·truncated·by·diffoscope;·len:·1474,·SHA:·ca90cccb6c86c654c95a1aaec456fbbe4b115f0d5a700e7d156e823346d70894·...·]/core/convert/trait.TryFrom.html#associatedtype.Error"·title="type·core::convert::TryFrom::Error">Error</a>&gt;</h4></section></summary><div·class='docblock'>Performs·the·conversion.</div></details></div></details></div></section></div></main></body></html>
63.7 KB
./usr/share/doc/rust-web-doc/html/alloc/collections/linked_list/struct.Cursor.html
    
Offset 1, 50 lines modifiedOffset 1, 50 lines modified
1 <!DOCTYPE·html><html·lang="en"><head><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.write(`<link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../../static.files/SourceSerif4-Regular-46f98efaafac5295.ttf.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../../static.files/FiraSans-Regular-018c141bf0843ffd.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../../static.files/FiraSans-Medium-8f9a781e4970d388.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../../static.files/SourceCodePro-Regular-562dcc5011b6de7d.ttf.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../../static.files/SourceCodePro-Semibold-d899c5a5c4aeb14a.ttf.woff2">`)</script><link·rel="stylesheet"·href="../../../static.files/normalize-76eba96aa4d2e634.css"><link·rel="stylesheet"·href="../../../static.files/rustdoc-35f9e32502181f1e.css"><meta·name="rustdoc-vars"·data-root-path="../../../"·data-static-root-path="../../../static.files/"·data-current-crate="alloc"·data-themes=""·data-resource-suffix="1.78.0"·data-rustdoc-version="1.78.0"·data-channel="1.78.0"·data-search-js="search-42d8da7a6b9792c2.js"·data-settings-js="settings-4313503d2e1961c2.js"·><script·src="../../../static.files/storage-4c98445ec4002617.js"></script><script·defer·src="sidebar-items1.78.0.js"></script><script·defer·src="../../../static.files/main-12cf3b4f4f9dc36d.js"></script><noscript><link·rel="stylesheet"·href="../../../static.files/noscript-04d5337699b92874.css"></noscript><link·rel="alternate·icon"·type="image/png"·href="../../../static.files/favicon-16x16-8b506e7a72182f1c.png"><link·rel="alternate·icon"·type="image/png"·href="../../../static.files/favicon-32x32-422f7d1d52889060.png"><link·rel="icon"·type="image/svg+xml"·href="../../../static.files/favicon-2c020d218678b618.svg"></head><body·class="rustdoc·struct"><!--[if·lte·IE·11]><div·class="warning">This·old·browser·is·unsupported·and·will·most·likely·display·funky·things.</div><![endif]--><nav·class="mobile-topbar"><button·class="sidebar-menu-toggle"·title="show·sidebar"></button><a·class="logo-container"·href="../../../alloc/index.html"><img·class="rust-logo"·src="../../../static.files/rust-logo-151179464ae7ed46.svg"·alt=""></a></nav><nav·class="sidebar"><div·class="sidebar-crate"><a·class="logo-container"·href="../../../alloc/index.html"><img·class="rust-logo"·src="../../../static.files/rust-logo-151179464ae7ed46.svg"·alt="logo"></a><h2><a·href="../../../alloc/index.html">alloc</a><span·class="version">1.78.0</span></h2></div><h2·class="location"><a·href="#">Cursor</a></h2><div·class="sidebar-elems"><section><h3><a·href="#implementations">Methods</a></h3><ul·class="block·method"><li><a·href="#method.back">back</a></li><li><a·href="#method.current">current</a></li><li><a·href="#method.front">front</a></li><li><a·href="#method.index">index</a></li><li><a·href="#method.move_next">move_next</a></li><li><a·href="#method.move_prev">move_prev</a></li><li><a·href="#method.peek_next">peek_next</a></li><li><a·href="#method.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">Clone</a></li><li><a·href="#impl-Debug-for-Cursor%3C'_,+T,+A%3E">Debug</a></li><li><a·href="#impl-Send-for-Cursor%3C'_,+T,+A%3E">Send</a></li><li><a·href="#impl-Sync-for-Cursor%3C'_,+T,+A%3E">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">Freeze</a></li><li><a·href="#impl-RefUnwindSafe-for-Cursor%3C'a,+T,+A%3E">RefUnwindSafe</a></li><li><a·href="#impl-Unpin-for-Cursor%3C'a,+T,+A%3E">Unpin</a></li><li><a·href="#impl-UnwindSafe-for-Cursor%3C'a,+T,+A%3E">UnwindSafe</a></li></ul><h3><a·href="#blanket-implementations">Blanket·Implementations</a></h3><ul·class="block·blanket-implementation"><li><a·href="#impl-Any-for-T">Any</a></li><li><a·href="#impl-Borrow%3CT%3E-for-T">Borrow&lt;T&gt;</a></li><li><a·href="#impl-BorrowMut%3CT%3E-for-T">BorrowMut&lt;T&gt;</a></li><li><a·href="#impl-From%3CT%3E-for-T">From&lt;T&gt;</a></li><li><a·href="#impl-Into%3CU%3E-for-T">Into&lt;U&gt;</a></li><li><a·href="#impl-ToOwned-for-T">ToOwned</a></li><li><a·href="#impl-TryFrom%3CU%3E-for-T">TryFrom&lt;U&gt;</a></li><li><a·href="#impl-TryInto%3CU%3E-for-T">TryInto&lt;U&gt;</a></li></ul></section><h2><a·href="index.html">In·alloc::collections::linked_list</a></h2></div></nav><div·class="sidebar-resizer"></div>1 <!DOCTYPE·html><html·lang="en"><head><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.write(`<link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../../static.files/SourceSerif4-Regular-46f98efaafac5295.ttf.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../../static.files/FiraSans-Regular-018c141bf0843ffd.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../../static.files/FiraSans-Medium-8f9a781e4970d388.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../../static.files/SourceCodePro-Regular-562dcc5011b6de7d.ttf.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../../static.files/SourceCodePro-Semibold-d899c5a5c4aeb14a.ttf.woff2">`)</script><link·rel="stylesheet"·href="../../../static.files/normalize-76eba96aa4d2e634.css"><link·rel="stylesheet"·href="../../../static.files/rustdoc-35f9e32502181f1e.css"><meta·name="rustdoc-vars"·data-root-path="../../../"·data-static-root-path="../../../static.files/"·data-current-crate="alloc"·data-themes=""·data-resource-suffix="1.78.0"·data-rustdoc-version="1.78.0"·data-channel="1.78.0"·data-search-js="search-42d8da7a6b9792c2.js"·data-settings-js="settings-4313503d2e1961c2.js"·><script·src="../../../static.files/storage-4c98445ec4002617.js"></script><script·defer·src="sidebar-items1.78.0.js"></script><script·defer·src="../../../static.files/main-12cf3b4f4f9dc36d.js"></script><noscript><link·rel="stylesheet"·href="../../../static.files/noscript-04d5337699b92874.css"></noscript><link·rel="alternate·icon"·type="image/png"·href="../../../static.files/favicon-16x16-8b506e7a72182f1c.png"><link·rel="alternate·icon"·type="image/png"·href="../../../static.files/favicon-32x32-422f7d1d52889060.png"><link·rel="icon"·type="image/svg+xml"·href="../../../static.files/favicon-2c020d218678b618.svg"></head><body·class="rustdoc·struct"><!--[if·lte·IE·11]><div·class="warning">This·old·browser·is·unsupported·and·will·most·likely·display·funky·things.</div><![endif]--><nav·class="mobile-topbar"><button·class="sidebar-menu-toggle"·title="show·sidebar"></button><a·class="logo-container"·href="../../../alloc/index.html"><img·class="rust-logo"·src="../../../static.files/rust-logo-151179464ae7ed46.svg"·alt=""></a></nav><nav·class="sidebar"><div·class="sidebar-crate"><a·class="logo-container"·href="../../../alloc/index.html"><img·class="rust-logo"·src="../../../static.files/rust-logo-151179464ae7ed46.svg"·alt="logo"></a><h2><a·href="../../../alloc/index.html">alloc</a><span·class="version">1.78.0</span></h2></div><h2·class="location"><a·href="#">Cursor</a></h2><div·class="sidebar-elems"><section><h3><a·href="#implementations">Methods</a></h3><ul·class="block·method"><li><a·href="#method.back">back</a></li><li><a·href="#method.current">current</a></li><li><a·href="#method.front">front</a></li><li><a·href="#method.index">index</a></li><li><a·href="#method.move_next">move_next</a></li><li><a·href="#method.move_prev">move_prev</a></li><li><a·href="#method.peek_next">peek_next</a></li><li><a·href="#method.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">Clone</a></li><li><a·href="#impl-Debug-for-Cursor%3C'_,+T,+A%3E">Debug</a></li><li><a·href="#impl-Send-for-Cursor%3C'_,+T,+A%3E">Send</a></li><li><a·href="#impl-Sync-for-Cursor%3C'_,+T,+A%3E">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">Freeze</a></li><li><a·href="#impl-RefUnwindSafe-for-Cursor%3C'a,+T,+A%3E">RefUnwindSafe</a></li><li><a·href="#impl-Unpin-for-Cursor%3C'a,+T,+A%3E">Unpin</a></li><li><a·href="#impl-UnwindSafe-for-Cursor%3C'a,+T,+A%3E">UnwindSafe</a></li></ul><h3><a·href="#blanket-implementations">Blanket·Implementations</a></h3><ul·class="block·blanket-implementation"><li><a·href="#impl-Any-for-T">Any</a></li><li><a·href="#impl-Borrow%3CT%3E-for-T">Borrow&lt;T&gt;</a></li><li><a·href="#impl-BorrowMut%3CT%3E-for-T">BorrowMut&lt;T&gt;</a></li><li><a·href="#impl-From%3CT%3E-for-T">From&lt;T&gt;</a></li><li><a·href="#impl-Into%3CU%3E-for-T">Into&lt;U&gt;</a></li><li><a·href="#impl-ToOwned-for-T">ToOwned</a></li><li><a·href="#impl-TryFrom%3CU%3E-for-T">TryFrom&lt;U&gt;</a></li><li><a·href="#impl-TryInto%3CU%3E-for-T">TryInto&lt;U&gt;</a></li></ul></section><h2><a·href="index.html">In·alloc::collections::linked_list</a></h2></div></nav><div·class="sidebar-resizer"></div>
2 ····<main><div·class="width-limiter"><nav·class="sub"><form·class="search-form"><span></span><div·id="sidebar-button"·tabindex="-1"><a·href="../../../alloc/all.html"·title="show·sidebar"></a></div><input·class="search-input"·name="search"·aria-label="Run·search·in·the·documentation"·autocomplete="off"·spellcheck="false"·placeholder="Click·or·press·‘S’·to·search,·‘?’·for·more·options…"·type="search"><div·id="help-button"·tabindex="-1"><a·href="../../../help.html"·title="help">?</a></div><div·id="settings-menu"·tabindex="-1"><a·href="../../../settings.html"·title="settings"><img·width="22"·height="22"·alt="Change·settings"·src="../../../static.files/wheel-7b819b6101059cd0.svg"></a></div></form></nav><section·id="main-content"·class="content"><div·class="main-heading"><h1>Struct·<a·href="../../index.html">alloc</a>::<wbr><a·href="../index.html">collections</a>::<wbr><a·href="index.html">linked_list</a>::<wbr><a·class="struct"·href="#">Cursor</a><button·id="copy-path"·title="Copy·item·path·to·clipboard"><img·src="../../../static.files/clipboard-7571035ce49a181d.svg"·width="19"·height="18"·alt="Copy·item·path"></button></h1><span·class="out-of-band"><a·class="src"·href="../../../src/alloc/collections/linked_list.rs.html#1328-1336">source</a>···<button·id="toggle-all-docs"·title="collapse·all·docs">[<span>&#x2212;</span>]</button></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 ····<main><div·class="width-limiter"><nav·class="sub"><form·class="search-form"><span></span><div·id="sidebar-button"·tabindex="-1"><a·href="../../../alloc/all.html"·title="show·sidebar"></a></div><input·class="search-input"·name="search"·aria-label="Run·search·in·the·documentation"·autocomplete="off"·spellcheck="false"·placeholder="Click·or·press·‘S’·to·search,·‘?’·for·more·options…"·type="search"><div·id="help-button"·tabindex="-1"><a·href="../../../help.html"·title="help">?</a></div><div·id="settings-menu"·tabindex="-1"><a·href="../../../settings.html"·title="settings"><img·width="22"·height="22"·alt="Change·settings"·src="../../../static.files/wheel-7b819b6101059cd0.svg"></a></div></form></nav><section·id="main-content"·class="content"><div·class="main-heading"><h1>Struct·<a·href="../../index.html">alloc</a>::<wbr><a·href="../index.html">collections</a>::<wbr><a·href="index.html">linked_list</a>::<wbr><a·class="struct"·href="#">Cursor</a><button·id="copy-path"·title="Copy·item·path·to·clipboard"><img·src="../../../static.files/clipboard-7571035ce49a181d.svg"·width="19"·height="18"·alt="Copy·item·path"></button></h1><span·class="out-of-band"><a·class="src"·href="../../../src/alloc/collections/linked_list.rs.html#1328-1336">source</a>···<button·id="toggle-all-docs"·title="collapse·all·docs">[<span>&#x2212;</span>]</button></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>
3 <p>A·<code>Cursor</code>·is·like·an·iterator,·except·that·it·can·freely·seek·back-and-forth.</p>3 <p>A·<code>Cursor</code>·is·like·an·iterator,·except·that·it·can·freely·seek·back-and-forth.</p>
4 <p>Cursors·always·rest·between·two·elements·in·the·list,·and·index·in·a·logically·circular·way.4 <p>Cursors·always·rest·between·two·elements·in·the·list,·and·index·in·a·logically·circular·way.
5 To·accommodate·this,·there·is·a·“ghost”·non-element·that·yields·<code>None</code>·between·the·head·and5 To·accommodate·this,·there·is·a·“ghost”·non-element·that·yields·<code>None</code>·between·the·head·and
6 tail·of·the·list.</p>6 tail·of·the·list.</p>
7 <p>When·created,·cursors·start·at·the·front·of·the·list,·or·the·“ghost”·non-element·if·the·list·is·empty.</p>7 <p>When·created,·cursors·start·at·the·front·of·the·list,·or·the·“ghost”·non-element·if·the·list·is·empty.</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-Cursor%3C'a,+T,+A%3E"·class="impl"><a·class="src·rightside"·href="../../../src/alloc/collections/linked_list.rs.html#1381-1498">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#1388-1391">source</a><h4·class="code-header">pub·fn·<a·href="#method.index"·class="fn">index</a>(&amp;self)·-&gt;·<a·class="enum"·href="../../../core/option/enum.Option.html"·title="enum·core::option::Option">Option</a>&lt;<a·class="primitive"·href="../../../core/primitive.usize.html">usize</a>&gt;</h4></section><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>linked_list_cursors</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/58533">#58533</a>)</span></div></span></summary><div·class="docblock"><p>Returns·the·cursor·position·index·within·the·<code>LinkedList</code>.</p>8 </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#1381-1498">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#1388-1391">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.78.0/core/option/enum.Option.html"·title="enum·core::option::Option">Option</a>&lt;<a·class="primitive"·href="https://doc.rust-lang.org/1.78.0/core/primitive.usize.html">usize</a>&gt;</h4></section><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>linked_list_cursors</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/58533">#58533</a>)</span></div></span></summary><div·class="docblock"><p>Returns·the·cursor·position·index·within·the·<code>LinkedList</code>.</p>
9 <p>This·returns·<code>None</code>·if·the·cursor·is·currently·pointing·to·the9 <p>This·returns·<code>None</code>·if·the·cursor·is·currently·pointing·to·the
10 “ghost”·non-element.</p>10 “ghost”·non-element.</p>
11 </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#1399-1413">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 </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#1399-1413">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 <p>If·the·cursor·is·pointing·to·the·“ghost”·non-element·then·this·will·move·it·to12 <p>If·the·cursor·is·pointing·to·the·“ghost”·non-element·then·this·will·move·it·to
13 the·first·element·of·the·<code>LinkedList</code>.·If·it·is·pointing·to·the·last13 the·first·element·of·the·<code>LinkedList</code>.·If·it·is·pointing·to·the·last
14 element·of·the·<code>LinkedList</code>·then·this·will·move·it·to·the·“ghost”·non-element.</p>14 element·of·the·<code>LinkedList</code>·then·this·will·move·it·to·the·“ghost”·non-element.</p>
15 </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#1421-1434">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 </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#1421-1434">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 <p>If·the·cursor·is·pointing·to·the·“ghost”·non-element·then·this·will·move·it·to16 <p>If·the·cursor·is·pointing·to·the·“ghost”·non-element·then·this·will·move·it·to
17 the·last·element·of·the·<code>LinkedList</code>.·If·it·is·pointing·to·the·first17 the·last·element·of·the·<code>LinkedList</code>.·If·it·is·pointing·to·the·first
18 element·of·the·<code>LinkedList</code>·then·this·will·move·it·to·the·“ghost”·non-element.</p>18 element·of·the·<code>LinkedList</code>·then·this·will·move·it·to·the·“ghost”·non-element.</p>
19 </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#1443-1445">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·currently19 </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#1443-1445">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.78.0/core/option/enum.Option.html"·title="enum·core::option::Option">Option</a>&lt;<a·class="primitive"·href="https://doc.rust-lang.org/1.78.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
20 pointing·to.</p>20 pointing·to.</p>
21 <p>This·returns·<code>None</code>·if·the·cursor·is·currently·pointing·to·the21 <p>This·returns·<code>None</code>·if·the·cursor·is·currently·pointing·to·the
22 “ghost”·non-element.</p>22 “ghost”·non-element.</p>
23 </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#1454-1462">source</a><h4·class="code-header">pub·fn·<a·href="#method.peek_next"·class="fn">peek_next</a>(&amp;self)·-&gt;·<a·class="enum"·href="../../../core/option/enum.Option.html"·title="enum·core::option::Option">Option</a>&lt;<a·class="primitive"·href="../../../core/primitive.reference.html">&amp;'a·T</a>&gt;</h4></section><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>linked_list_cursors</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/58533">#58533</a>)</span></div></span></summary><div·class="docblock"><p>Returns·a·reference·to·the·next·element.</p>23 </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#1454-1462">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.78.0/core/option/enum.Option.html"·title="enum·core::option::Option">Option</a>&lt;<a·class="primitive"·href="https://doc.rust-lang.org/1.78.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>
24 <p>If·the·cursor·is·pointing·to·the·“ghost”·non-element·then·this·returns24 <p>If·the·cursor·is·pointing·to·the·“ghost”·non-element·then·this·returns
25 the·first·element·of·the·<code>LinkedList</code>.·If·it·is·pointing·to·the·last25 the·first·element·of·the·<code>LinkedList</code>.·If·it·is·pointing·to·the·last
26 element·of·the·<code>LinkedList</code>·then·this·returns·<code>None</code>.</p>26 element·of·the·<code>LinkedList</code>·then·this·returns·<code>None</code>.</p>
27 </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#1471-1479">source</a><h4·class="code-header">pub·fn·<a·href="#method.peek_prev"·class="fn">peek_prev</a>(&amp;self)·-&gt;·<a·class="enum"·href="../../../core/option/enum.Option.html"·title="enum·core::option::Option">Option</a>&lt;<a·class="primitive"·href="../../../core/primitive.reference.html">&amp;'a·T</a>&gt;</h4></section><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>linked_list_cursors</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/58533">#58533</a>)</span></div></span></summary><div·class="docblock"><p>Returns·a·reference·to·the·previous·element.</p>27 </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#1471-1479">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.78.0/core/option/enum.Option.html"·title="enum·core::option::Option">Option</a>&lt;<a·class="primitive"·href="https://doc.rust-lang.org/1.78.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>
28 <p>If·the·cursor·is·pointing·to·the·“ghost”·non-element·then·this·returns28 <p>If·the·cursor·is·pointing·to·the·“ghost”·non-element·then·this·returns
29 the·last·element·of·the·<code>LinkedList</code>.·If·it·is·pointing·to·the·first29 the·last·element·of·the·<code>LinkedList</code>.·If·it·is·pointing·to·the·first
30 element·of·the·<code>LinkedList</code>·then·this·returns·<code>None</code>.</p>30 element·of·the·<code>LinkedList</code>·then·this·returns·<code>None</code>.</p>
31 </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#1486-1488">source</a><h4·class="code-header">pub·fn·<a·href="#method.front"·class="fn">front</a>(&amp;self)·-&gt;·<a·class="enum"·href="../../../core/option/enum.Option.html"·title="enum·core::option::Option">Option</a>&lt;<a·class="primitive"·href="../../../core/primitive.reference.html">&amp;'a·T</a>&gt;</h4></section><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>linked_list_cursors</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/58533">#58533</a>)</span></div></span></summary><div·class="docblock"><p>Provides·a·reference·to·the·front·element·of·the·cursor’s·parent·list,31 </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#1486-1488">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.78.0/core/option/enum.Option.html"·title="enum·core::option::Option">Option</a>&lt;<a·class="primitive"·href="https://doc.rust-lang.org/1.78.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,
32 or·None·if·the·list·is·empty.</p>32 or·None·if·the·list·is·empty.</p>
33 </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#1495-1497">source</a><h4·class="code-header">pub·fn·<a·href="#method.back"·class="fn">back</a>(&amp;self)·-&gt;·<a·class="enum"·href="../../../core/option/enum.Option.html"·title="enum·core::option::Option">Option</a>&lt;<a·class="primitive"·href="../../../core/primitive.reference.html">&amp;'a·T</a>&gt;</h4></section><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>linked_list_cursors</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/58533">#58533</a>)</span></div></span></summary><div·class="docblock"><p>Provides·a·reference·to·the·back·element·of·the·cursor’s·parent·list,33 </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#1495-1497">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.78.0/core/option/enum.Option.html"·title="enum·core::option::Option">Option</a>&lt;<a·class="primitive"·href="https://doc.rust-lang.org/1.78.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,
34 or·None·if·the·list·is·empty.</p>34 or·None·if·the·list·is·empty.</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#1339-1344">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:·5405,·SHA:·1e22fd81848b081d4538d7d63222bb39cf890a856a43316a2d5636628a4c0887·...·]/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#1339-1344">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.78.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:·5765,·SHA:·2317bafd9ddd15f9f34ed57a66f333f4eab9679f77d8a35b9d9e302369c6b0f8·...·]/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.78.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.78.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:·332b07a69c9038ac7aa1ee78d270000ab2a6538f5703df38833caf215c02f466·...·]/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.78.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:·74ff597bdff107962cb8059c204ff7ad530901f23df831e4a548faafac68be87·...·]/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.78.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:·3cd31b2c95fe4e9c1786646d66533a5f021b60e6f006310c85b3d6a0f75bbf1f·...·]/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:·60266624df43cdf1ecb412e35aaf311341d62543468bcbd4041716fbafffc07b·...·]/src/core/borrow.rs.html#208">source</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.78.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">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:·039b8952ccb1ab7d8f15cd519cbc10f4afc149276d0f9cfd3a53117d606059df·...·]/src/core/borrow.rs.html#208">source</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:·8124d60df08ac71436917cb874e0ec9c0ffe7e4515e2ea246a1f1009f83ac6a1·...·]/src/core/borrow.rs.html#216">source</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.78.0/core/marker/trait.Sized.html"·title="trait·core::marker::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:·b03884aeae1813f459b6ebe4b7e3f3c22d5d37e0ad023677fd3869bc5a735be2·...·]/src/core/borrow.rs.html#216">source</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:·1254,·SHA:·88cecdca8f65ac7671462e07b83fc0153c4024bd8b3f1bfba320be439fbe3a4f·...·]/core/convert/trait.From.html#tymethod.from"·class="fn">from</a>(t:·T)·-&gt;·T</h4></section></summary><div·class="docblock"><p>Returns·the·argument·unchanged.</p>42 ····T:·?<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/marker/trait.Sized.html"·title="trait·core::marker::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:·aaf5505cf4d2f5510949d066675a02996763e3167f43d15d7a3f114042a751b5·...·]/core/convert/trait.From.html#tymethod.from"·class="fn">from</a>(t:·T)·-&gt;·T</h4></section></summary><div·class="docblock"><p>Returns·the·argument·unchanged.</p>
43 </div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-Into%3CU%3E-for-T"·class="impl"><a·class="src·rightside"·href="../../../src/core/convert/mod.rs.html#748-750">source</a><a·href="#impl-Into%3CU%3E-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T,·U&gt;·<a·class="trait"·href="../../../core/convert/trait.Into.html"·title="trait·core::convert::Into">Into</a>&lt;U&gt;·for·T<div·class="where">where43 </div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-Into%3CU%3E-for-T"·class="impl"><a·class="src·rightside"·href="https://doc.rust-lang.org/1.78.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.78.0/core/convert/trait.Into.html"·title="trait·core::convert::Into">Into</a>&lt;U&gt;·for·T<div·class="where">where
44 ····U:·<a·class="trait"·href="../../../core/convert/trait.From.html"·title="trait·core::convert::From">From</a>&lt;T&gt;,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.into"·class="method·trait-impl"><a·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>44 ····U:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.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:·2cf76a8ca501b2a1fef209fed846779ab1bed3b75f52c7425335e3ce04e6b272·...·]/core/convert/trait.Into.html#tymethod.into"·class="fn">into</a>(self)·-&gt;·U</h4></section></summary><div·class="docblock"><p>Calls·<code>U::from(self)</code>.</p>
45 <p>That·is,·this·conversion·is·whatever·the·implementation·of45 <p>That·is,·this·conversion·is·whatever·the·implementation·of
46 <code><a·href="../../../core/convert/trait.From.html"·title="trait·core::convert::From">From</a>&lt;T&gt;·for·U</code>·chooses·to·do.</p>46 <code><a·href="https://doc.rust-lang.org/1.78.0/core/convert/trait.From.html"·title="trait·core::convert::From">From</a>&lt;T&gt;·for·U</code>·chooses·to·do.</p>
47 </div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-ToOwned-for-T"·class="impl"><a·class="src·rightside"·href="../../../src/alloc/borrow.rs.html#83-95">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">where47 </div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-ToOwned-for-T"·class="impl"><a·class="src·rightside"·href="../../../src/alloc/borrow.rs.html#83-95">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
48 ····T:·<a·class="trait"·href="../../../core/clone/trait.Clone.html"·title="trait·core::clone::Clone">Clone</a>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle"·open><summary><section·id="associatedtype.Owned"·class="associatedtype·trait-impl"><a·href="#ass[·...·truncated·by·diffoscope;·len:·1828,·SHA:·326644cdd10ec402cdb69dbc9def5714afb5a2f4c6c9280a5ab9ce010571c2dd·...·]/core/convert/trait.TryFrom.html"·title="trait·core::convert::TryFrom">TryFrom</a>&lt;U&gt;·for·T<div·class="where">where48 ····T:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.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:·1924,·SHA:·db6b4039e0093ed0d5887a096da47da282fdfd36f55651b9bf5f414e44ae56a4·...·]/core/convert/trait.TryFrom.html"·title="trait·core::convert::TryFrom">TryFrom</a>&lt;U&gt;·for·T<div·class="where">where
49 ····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"·class="associatedtype·trait-impl"><a·[·...·truncated·by·diffoscope;·len:·1621,·SHA:·6a7315ddf4ab9fa76e45d600a396b342519e12c73d2e6dd09bf01e1fa1b0aac0·...·]/core/convert/trait.TryInto.html"·title="trait·core::convert::TryInto">TryInto</a>&lt;U&gt;·for·T<div·class="where">where49 ····U:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.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"·class="associ[·...·truncated·by·diffoscope;·len:·1861,·SHA:·78398046ba16de2f66a8201a11d6a2dd405fceedeabfcaa37481e77092687e6f·...·]/core/convert/trait.TryInto.html"·title="trait·core::convert::TryInto">TryInto</a>&lt;U&gt;·for·T<div·class="where">where
50 ····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-1"·class="associatedtype·trai[·...·truncated·by·diffoscope;·len:·1258,·SHA:·33d8749d0be17f35431e59e57d3fb79a5cc4320bd6fc26ab5ef088d04d3c929a·...·]/core/convert/trait.TryFrom.html#associatedtype.Error"·title="type·core::convert::TryFrom::Error">Error</a>&gt;</h4></section></summary><div·class='docblock'>Performs·the·conversion.</div></details></div></details></div></section></div></main></body></html>50 ····U:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.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-1"·cl[·...·truncated·by·diffoscope;·len:·1474,·SHA:·ca90cccb6c86c654c95a1aaec456fbbe4b115f0d5a700e7d156e823346d70894·...·]/core/convert/trait.TryFrom.html#associatedtype.Error"·title="type·core::convert::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.7 KB
./usr/share/doc/rust-web-doc/html/alloc/collections/linked_list/struct.CursorMut.html
    
Offset 3, 34 lines modifiedOffset 3, 34 lines modified
3 <p>A·<code>Cursor</code>·is·like·an·iterator,·except·that·it·can·freely·seek·back-and-forth,·and·can3 <p>A·<code>Cursor</code>·is·like·an·iterator,·except·that·it·can·freely·seek·back-and-forth,·and·can
4 safely·mutate·the·list·during·iteration.·This·is·because·the·lifetime·of·its·yielded4 safely·mutate·the·list·during·iteration.·This·is·because·the·lifetime·of·its·yielded
5 references·is·tied·to·its·own·lifetime,·instead·of·just·the·underlying·list.·This·means5 references·is·tied·to·its·own·lifetime,·instead·of·just·the·underlying·list.·This·means
6 cursors·cannot·yield·multiple·elements·at·once.</p>6 cursors·cannot·yield·multiple·elements·at·once.</p>
7 <p>Cursors·always·rest·between·two·elements·in·the·list,·and·index·in·a·logically·circular·way.7 <p>Cursors·always·rest·between·two·elements·in·the·list,·and·index·in·a·logically·circular·way.
8 To·accommodate·this,·there·is·a·“ghost”·non-element·that·yields·<code>None</code>·between·the·head·and8 To·accommodate·this,·there·is·a·“ghost”·non-element·that·yields·<code>None</code>·between·the·head·and
9 tail·of·the·list.</p>9 tail·of·the·list.</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/linked_list.rs.html#1500-1608">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#1507-1510">source</a><h4·class="code-header">pub·fn·<a·href="#method.index"·class="fn">index</a>(&amp;self)·-&gt;·<a·class="enum"·href="../../../core/option/enum.Option.html"·title="enum·core::option::Option">Option</a>&lt;<a·class="primitive"·href="../../../core/primitive.usize.html">usize</a>&gt;</h4></section><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>linked_list_cursors</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/58533">#58533</a>)</span></div></span></summary><div·class="docblock"><p>Returns·the·cursor·position·index·within·the·<code>LinkedList</code>.</p>10 </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#1500-1608">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#1507-1510">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.78.0/core/option/enum.Option.html"·title="enum·core::option::Option">Option</a>&lt;<a·class="primitive"·href="https://doc.rust-lang.org/1.78.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>
11 <p>This·returns·<code>None</code>·if·the·cursor·is·currently·pointing·to·the11 <p>This·returns·<code>None</code>·if·the·cursor·is·currently·pointing·to·the
12 “ghost”·non-element.</p>12 “ghost”·non-element.</p>
13 </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#1518-1532">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 </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#1518-1532">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>
14 <p>If·the·cursor·is·pointing·to·the·“ghost”·non-element·then·this·will·move·it·to14 <p>If·the·cursor·is·pointing·to·the·“ghost”·non-element·then·this·will·move·it·to
15 the·first·element·of·the·<code>LinkedList</code>.·If·it·is·pointing·to·the·last15 the·first·element·of·the·<code>LinkedList</code>.·If·it·is·pointing·to·the·last
16 element·of·the·<code>LinkedList</code>·then·this·will·move·it·to·the·“ghost”·non-element.</p>16 element·of·the·<code>LinkedList</code>·then·this·will·move·it·to·the·“ghost”·non-element.</p>
17 </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#1540-1553">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 </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#1540-1553">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>
18 <p>If·the·cursor·is·pointing·to·the·“ghost”·non-element·then·this·will·move·it·to18 <p>If·the·cursor·is·pointing·to·the·“ghost”·non-element·then·this·will·move·it·to
19 the·last·element·of·the·<code>LinkedList</code>.·If·it·is·pointing·to·the·first19 the·last·element·of·the·<code>LinkedList</code>.·If·it·is·pointing·to·the·first
20 element·of·the·<code>LinkedList</code>·then·this·will·move·it·to·the·“ghost”·non-element.</p>20 element·of·the·<code>LinkedList</code>·then·this·will·move·it·to·the·“ghost”·non-element.</p>
21 </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#1562-1564">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·currently21 </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#1562-1564">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.78.0/core/option/enum.Option.html"·title="enum·core::option::Option">Option</a>&lt;<a·class="primitive"·href="https://doc.rust-lang.org/1.78.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
22 pointing·to.</p>22 pointing·to.</p>
23 <p>This·returns·<code>None</code>·if·the·cursor·is·currently·pointing·to·the23 <p>This·returns·<code>None</code>·if·the·cursor·is·currently·pointing·to·the
24 “ghost”·non-element.</p>24 “ghost”·non-element.</p>
25 </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#1572-1580">source</a><h4·class="code-header">pub·fn·<a·href="#method.peek_next"·class="fn">peek_next</a>(&amp;mut·self)·-&gt;·<a·class="enum"·href="../../../core/option/enum.Option.html"·title="enum·core::option::Option">Option</a>&lt;<a·class="primitive"·href="../../../core/primitive.reference.html">&amp;mut·T</a>&gt;</h4></section><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>linked_list_cursors</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/58533">#58533</a>)</span></div></span></summary><div·class="docblock"><p>Returns·a·reference·to·the·next·element.</p>25 </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#1572-1580">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.78.0/core/option/enum.Option.html"·title="enum·core::option::Option">Option</a>&lt;<a·class="primitive"·href="https://doc.rust-lang.org/1.78.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>
26 <p>If·the·cursor·is·pointing·to·the·“ghost”·non-element·then·this·returns26 <p>If·the·cursor·is·pointing·to·the·“ghost”·non-element·then·this·returns
27 the·first·element·of·the·<code>LinkedList</code>.·If·it·is·pointing·to·the·last27 the·first·element·of·the·<code>LinkedList</code>.·If·it·is·pointing·to·the·last
28 element·of·the·<code>LinkedList</code>·then·this·returns·<code>None</code>.</p>28 element·of·the·<code>LinkedList</code>·then·this·returns·<code>None</code>.</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/linked_list.rs.html#1588-1596">source</a><h4·class="code-header">pub·fn·<a·href="#method.peek_prev"·class="fn">peek_prev</a>(&amp;mut·self)·-&gt;·<a·class="enum"·href="../../../core/option/enum.Option.html"·title="enum·core::option::Option">Option</a>&lt;<a·class="primitive"·href="../../../core/primitive.reference.html">&amp;mut·T</a>&gt;</h4></section><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>linked_list_cursors</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/58533">#58533</a>)</span></div></span></summary><div·class="docblock"><p>Returns·a·reference·to·the·previous·element.</p>29 </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#1588-1596">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.78.0/core/option/enum.Option.html"·title="enum·core::option::Option">Option</a>&lt;<a·class="primitive"·href="https://doc.rust-lang.org/1.78.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>
30 <p>If·the·cursor·is·pointing·to·the·“ghost”·non-element·then·this·returns30 <p>If·the·cursor·is·pointing·to·the·“ghost”·non-element·then·this·returns
31 the·last·element·of·the·<code>LinkedList</code>.·If·it·is·pointing·to·the·first31 the·last·element·of·the·<code>LinkedList</code>.·If·it·is·pointing·to·the·first
32 element·of·the·<code>LinkedList</code>·then·this·returns·<code>None</code>.</p>32 element·of·the·<code>LinkedList</code>·then·this·returns·<code>None</code>.</p>
33 </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#1605-1607">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 </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#1605-1607">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>
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>CursorMut</code>,·which·means·it·cannot·outlive·the·<code>CursorMut</code>·and·that·the35 <code>CursorMut</code>,·which·means·it·cannot·outlive·the·<code>CursorMut</code>·and·that·the
36 <code>CursorMut</code>·is·frozen·for·the·lifetime·of·the·<code>Cursor</code>.</p>36 <code>CursorMut</code>·is·frozen·for·the·lifetime·of·the·<code>Cursor</code>.</p>
Offset 42, 60 lines modifiedOffset 42, 60 lines modified
42 inserted·at·the·end·of·the·<code>LinkedList</code>.</p>42 inserted·at·the·end·of·the·<code>LinkedList</code>.</p>
43 </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#1657-1913">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#1663-1676">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>43 </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#1657-1913">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#1663-1676">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>
44 <p>If·the·cursor·is·pointing·at·the·“ghost”·non-element·then·the·new·element·is44 <p>If·the·cursor·is·pointing·at·the·“ghost”·non-element·then·the·new·element·is
45 inserted·at·the·front·of·the·<code>LinkedList</code>.</p>45 inserted·at·the·front·of·the·<code>LinkedList</code>.</p>
46 </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#1683-1693">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>46 </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#1683-1693">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>
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·end·of·the·<code>LinkedList</code>.</p>48 inserted·at·the·end·of·the·<code>LinkedList</code>.</p>
49 </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#1703-1711">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>49 </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#1703-1711">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.78.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>
50 <p>The·element·that·was·removed·is·returned,·and·the·cursor·is50 <p>The·element·that·was·removed·is·returned,·and·the·cursor·is
51 moved·to·point·to·the·next·element·in·the·<code>LinkedList</code>.</p>51 moved·to·point·to·the·next·element·in·the·<code>LinkedList</code>.</p>
52 <p>If·the·cursor·is·currently·pointing·to·the·“ghost”·non-element·then·no·element52 <p>If·the·cursor·is·currently·pointing·to·the·“ghost”·non-element·then·no·element
53 is·removed·and·<code>None</code>·is·returned.</p>53 is·removed·and·<code>None</code>·is·returned.</p>
54 </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#1721-1740">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">where54 </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#1721-1740">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.78.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
55 ····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>55 ····A:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.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>
56 <p>The·node·that·was·removed·is·returned·as·a·new·<code>LinkedList</code>·containing·only·this·node.56 <p>The·node·that·was·removed·is·returned·as·a·new·<code>LinkedList</code>·containing·only·this·node.
57 The·cursor·is·moved·to·point·to·the·next·element·in·the·current·<code>LinkedList</code>.</p>57 The·cursor·is·moved·to·point·to·the·next·element·in·the·current·<code>LinkedList</code>.</p>
58 <p>If·the·cursor·is·currently·pointing·to·the·“ghost”·non-element·then·no·element58 <p>If·the·cursor·is·currently·pointing·to·the·“ghost”·non-element·then·no·element
59 is·removed·and·<code>None</code>·is·returned.</p>59 is·removed·and·<code>None</code>·is·returned.</p>
60 </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#1749-1759">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">where60 </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#1749-1759">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
61 ····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·a61 ····A:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.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
62 new·list·consisting·of·everything·after·the·cursor,·with·the·original62 new·list·consisting·of·everything·after·the·cursor,·with·the·original
63 list·retaining·everything·before.</p>63 list·retaining·everything·before.</p>
64 <p>If·the·cursor·is·pointing·at·the·“ghost”·non-element·then·the·entire·contents64 <p>If·the·cursor·is·pointing·at·the·“ghost”·non-element·then·the·entire·contents
65 of·the·<code>LinkedList</code>·are·moved.</p>65 of·the·<code>LinkedList</code>·are·moved.</p>
66 </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#1768-1775">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">where66 </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#1768-1775">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
67 ····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·a67 ····A:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.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
68 new·list·consisting·of·everything·before·the·cursor,·with·the·original68 new·list·consisting·of·everything·before·the·cursor,·with·the·original
69 list·retaining·everything·after.</p>69 list·retaining·everything·after.</p>
70 <p>If·the·cursor·is·pointing·at·the·“ghost”·non-element·then·the·entire·contents70 <p>If·the·cursor·is·pointing·at·the·“ghost”·non-element·then·the·entire·contents
71 of·the·<code>LinkedList</code>·are·moved.</p>71 of·the·<code>LinkedList</code>·are·moved.</p>
72 </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#1784-1790">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·node72 </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#1784-1790">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
73 that·the·cursor·points·to·is·unchanged,·even·if·it·is·the·“ghost”·node.</p>73 that·the·cursor·points·to·is·unchanged,·even·if·it·is·the·“ghost”·node.</p>
74 <p>This·operation·should·compute·in·<em>O</em>(1)·time.</p>74 <p>This·operation·should·compute·in·<em>O</em>(1)·time.</p>
75 </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#1798-1808">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·node75 </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#1798-1808">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
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.pop_front"·class="method"><a·class="src·rightside"·href="../../../src/alloc/collections/linked_list.rs.html#1817-1835">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,78 </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#1817-1835">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.78.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,
79 or·None·if·the·list·is·empty.·The·element·the·cursor·points·to·remains79 or·None·if·the·list·is·empty.·The·element·the·cursor·points·to·remains
80 unchanged,·unless·it·was·pointing·to·the·front·element.·In·that·case,·it80 unchanged,·unless·it·was·pointing·to·the·front·element.·In·that·case,·it
81 points·to·the·new·front·element.</p>81 points·to·the·new·front·element.</p>
82 <p>This·operation·should·compute·in·<em>O</em>(1)·time.</p>82 <p>This·operation·should·compute·in·<em>O</em>(1)·time.</p>
83 </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#1845-1859">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,83 </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#1845-1859">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.78.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,
84 or·None·if·the·list·is·empty.·The·element·the·cursor·points·to·remains84 or·None·if·the·list·is·empty.·The·element·the·cursor·points·to·remains
85 unchanged,·unless·it·was·pointing·to·the·back·element.·In·that·case,·it85 unchanged,·unless·it·was·pointing·to·the·back·element.·In·that·case,·it
86 points·to·the·“ghost”·element.</p>86 points·to·the·“ghost”·element.</p>
87 <p>This·operation·should·compute·in·<em>O</em>(1)·time.</p>87 <p>This·operation·should·compute·in·<em>O</em>(1)·time.</p>
88 </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#1866-1868">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,88 </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#1866-1868">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.78.0/core/option/enum.Option.html"·title="enum·core::option::Option">Option</a>&lt;<a·class="primitive"·href="https://doc.rust-lang.org/1.78.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,
89 or·None·if·the·list·is·empty.</p>89 or·None·if·the·list·is·empty.</p>
90 </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#1874-1876">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’s90 </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#1874-1876">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.78.0/core/option/enum.Option.html"·title="enum·core::option::Option">Option</a>&lt;<a·class="primitive"·href="https://doc.rust-lang.org/1.78.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
91 parent·list,·or·None·if·the·list·is·empty.</p>91 parent·list,·or·None·if·the·list·is·empty.</p>
92 </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#1883-1885">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,92 </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#1883-1885">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.78.0/core/option/enum.Option.html"·title="enum·core::option::Option">Option</a>&lt;<a·class="primitive"·href="https://doc.rust-lang.org/1.78.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,
93 or·None·if·the·list·is·empty.</p>93 or·None·if·the·list·is·empty.</p>
94 </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#1910-1912">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·parent94 </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#1910-1912">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.78.0/core/option/enum.Option.html"·title="enum·core::option::Option">Option</a>&lt;<a·class="primitive"·href="https://doc.rust-lang.org/1.78.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
95 list,·or·<code>None</code>·if·the·list·is·empty.</p>95 list,·or·<code>None</code>·if·the·list·is·empty.</p>
96 <h5·id="examples"><a·class="doc-anchor"·href="#examples">§</a>Examples</h5>96 <h5·id="examples"><a·class="doc-anchor"·href="#examples">§</a>Examples</h5>
97 <p>Building·and·mutating·a·list·with·a·cursor,·then·getting·the·back·element:</p>97 <p>Building·and·mutating·a·list·with·a·cursor,·then·getting·the·back·element:</p>
  
98 <div·class="example-wrap"><pre·class="rust·rust-example-rendered"><code><span·class="attr">#![feature(linked_list_cursors)]98 <div·class="example-wrap"><pre·class="rust·rust-example-rendered"><code><span·class="attr">#![feature(linked_list_cursors)]
99 </span><span·class="kw">use·</span>std::collections::LinkedList;99 </span><span·class="kw">use·</span>std::collections::LinkedList;
100 <span·class="kw">let·</span><span·class="kw-2">mut·</span>dl·=·LinkedList::new();100 <span·class="kw">let·</span><span·class="kw-2">mut·</span>dl·=·LinkedList::new();
Offset 106, 20 lines modifiedOffset 106, 20 lines modified
106 <span·class="kw-2">*</span>cursor.current().unwrap()·=·<span·class="number">99</span>;106 <span·class="kw-2">*</span>cursor.current().unwrap()·=·<span·class="number">99</span>;
107 <span·class="kw-2">*</span>cursor.back_mut().unwrap()·=·<span·class="number">0</span>;107 <span·class="kw-2">*</span>cursor.back_mut().unwrap()·=·<span·class="number">0</span>;
108 <span·class="kw">let·</span><span·class="kw-2">mut·</span>contents·=·dl.into_iter();108 <span·class="kw">let·</span><span·class="kw-2">mut·</span>contents·=·dl.into_iter();
109 <span·class="macro">assert_eq!</span>(contents.next(),·<span·class="prelude-val">Some</span>(<span·class="number">99</span>));109 <span·class="macro">assert_eq!</span>(contents.next(),·<span·class="prelude-val">Some</span>(<span·class="number">99</span>));
110 <span·class="macro">assert_eq!</span>(contents.next(),·<span·class="prelude-val">Some</span>(<span·class="number">2</span>));110 <span·class="macro">assert_eq!</span>(contents.next(),·<span·class="prelude-val">Some</span>(<span·class="number">2</span>));
111 <span·class="macro">assert_eq!</span>(contents.next(),·<span·class="prelude-val">Some</span>(<span·class="number">0</span>));111 <span·class="macro">assert_eq!</span>(contents.next(),·<span·class="prelude-val">Some</span>(<span·class="number">0</span>));
112 <span·class="macro">assert_eq!</span>(contents.next(),·<span·class="prelude-val">None</span>);</code></pre><a·class="test-arrow"·target="_blank"·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">Run</a></div>112 <span·class="macro">assert_eq!</span>(contents.next(),·<span·class="prelude-val">None</span>);</code></pre><a·class="test-arrow"·target="_blank"·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">Run</a></div>
113 </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#1375-1379">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#1376-1378">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#2215">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:·11d36b8e113492bc18ec249ac034f87cf7f73f081430ef1fcd05df3181e82dfd·...·]/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">where113 </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#1375-1379">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#1376-1378">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#2215">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.78.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:·e2a877fd3c5eba4318724b5c056fa1f37e05438b653b792be3fb3c55560c3539·...·]/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
114 ····A:·<a·class="trait"·href="../../../core/panic/unwind_safe/trait.RefUnwindSafe.html"·title="trait·core::panic::unwind_safe::RefUnwindSafe">RefUnwindSafe</a>,114 ····A:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/panic/unwind_safe/trait.RefUnwindSafe.html"·title="trait·core::panic::unwind_safe::RefUnwindSafe">RefUnwindSafe</a>,
115 ····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:·7934412943d0ffb2d4564104e52340ee3f4dcd2be54797d8e8bc2938b97420e4·...·]/core/any/trait.Any.html"·title="trait·core::any::Any">Any</a>·for·T<div·class="where">where115 ····T:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.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:·fbaecda99759a2f742a9a327c159e8e7c019fb7ddce481876821addb6e479a40·...·]/core/any/trait.Any.html"·title="trait·core::any::Any">Any</a>·for·T<div·class="where">where
116 ····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:·60266624df43cdf1ecb412e35aaf311341d62543468bcbd4041716fbafffc07b·...·]/src/core/borrow.rs.html#208">source</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">where116 ····T:·'static·+·?<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">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:·039b8952ccb1ab7d8f15cd519cbc10f4afc149276d0f9cfd3a53117d606059df·...·]/src/core/borrow.rs.html#208">source</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
117 ····T:·?<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::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:·8124d60df08ac71436917cb874e0ec9c0ffe7e4515e2ea246a1f1009f83ac6a1·...·]/src/core/borrow.rs.html#216">source</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">where117 ····T:·?<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/marker/trait.Sized.html"·title="trait·core::marker::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:·b03884aeae1813f459b6ebe4b7e3f3c22d5d37e0ad023677fd3869bc5a735be2·...·]/src/core/borrow.rs.html#216">source</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
118 ····T:·?<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::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:·88cecdca8f65ac7671462e07b83fc0153c4024bd8b3f1bfba320be439fbe3a4f·...·]/core/convert/trait.From.html#tymethod.from"·class="fn">from</a>(t:·T)·-&gt;·T</h4></section></summary><div·class="docblock"><p>Returns·the·argument·unchanged.</p>118 ····T:·?<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/marker/trait.Sized.html"·title="trait·core::marker::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:·aaf5505cf4d2f5510949d066675a02996763e3167f43d15d7a3f114042a751b5·...·]/core/convert/trait.From.html#tymethod.from"·class="fn">from</a>(t:·T)·-&gt;·T</h4></section></summary><div·class="docblock"><p>Returns·the·argument·unchanged.</p>
119 </div></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">where119 </div></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.78.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.78.0/core/convert/trait.Into.html"·title="trait·core::convert::Into">Into</a>&lt;U&gt;·for·T<div·class="where">where
120 ····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>120 ····U:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.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:·2cf76a8ca501b2a1fef209fed846779ab1bed3b75f52c7425335e3ce04e6b272·...·]/core/convert/trait.Into.html#tymethod.into"·class="fn">into</a>(self)·-&gt;·U</h4></section></summary><div·class="docblock"><p>Calls·<code>U::from(self)</code>.</p>
121 <p>That·is,·this·conversion·is·whatever·the·implementation·of121 <p>That·is,·this·conversion·is·whatever·the·implementation·of
122 <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>122 <code><a·href="https://doc.rust-lang.org/1.78.0/core/convert/trait.From.html"·title="trait·core::convert::From">From</a>&lt;T&gt;·for·U</code>·chooses·to·do.</p>
123 </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">where123 </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.78.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.78.0/core/convert/trait.TryFrom.html"·title="trait·core::convert::TryFrom">TryFrom</a>&lt;U&gt;·for·T<div·class="where">where
124 ····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"·class="associatedtype·trait-impl"><a·[·...·truncated·by·diffoscope;·len:·1621,·SHA:·6a7315ddf4ab9fa76e45d600a396b342519e12c73d2e6dd09bf01e1fa1b0aac0·...·]/core/convert/trait.TryInto.html"·title="trait·core::convert::TryInto">TryInto</a>&lt;U&gt;·for·T<div·class="where">where124 ····U:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.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"·class="associ[·...·truncated·by·diffoscope;·len:·1861,·SHA:·78398046ba16de2f66a8201a11d6a2dd405fceedeabfcaa37481e77092687e6f·...·]/core/convert/trait.TryInto.html"·title="trait·core::convert::TryInto">TryInto</a>&lt;U&gt;·for·T<div·class="where">where
125 ····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-1"·class="associatedtype·trai[·...·truncated·by·diffoscope;·len:·1258,·SHA:·33d8749d0be17f35431e59e57d3fb79a5cc4320bd6fc26ab5ef088d04d3c929a·...·]/core/convert/trait.TryFrom.html#associatedtype.Error"·title="type·core::convert::TryFrom::Error">Error</a>&gt;</h4></section></summary><div·class='docblock'>Performs·the·conversion.</div></details></div></details></div></section></div></main></body></html>125 ····U:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.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-1"·cl[·...·truncated·by·diffoscope;·len:·1474,·SHA:·ca90cccb6c86c654c95a1aaec456fbbe4b115f0d5a700e7d156e823346d70894·...·]/core/convert/trait.TryFrom.html#associatedtype.Error"·title="type·core::convert::TryFrom::Error">Error</a>&gt;</h4></section></summary><div·class='docblock'>Performs·the·conversion.</div></details></div></details></div></section></div></main></body></html>
265 KB
./usr/share/doc/rust-web-doc/html/alloc/collections/linked_list/struct.ExtractIf.html
    
Offset 1, 199 lines modifiedOffset 1, 199 lines modified
1 <!DOCTYPE·html><html·lang="en"><head><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.write(`<link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../../static.files/SourceSerif4-Regular-46f98efaafac5295.ttf.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../../static.files/FiraSans-Regular-018c141bf0843ffd.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../../static.files/FiraSans-Medium-8f9a781e4970d388.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../../static.files/SourceCodePro-Regular-562dcc5011b6de7d.ttf.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../../static.files/SourceCodePro-Semibold-d899c5a5c4aeb14a.ttf.woff2">`)</script><link·rel="stylesheet"·href="../../../static.files/normalize-76eba96aa4d2e634.css"><link·rel="stylesheet"·href="../../../static.files/rustdoc-35f9e32502181f1e.css"><meta·name="rustdoc-vars"·data-root-path="../../../"·data-static-root-path="../../../static.files/"·data-current-crate="alloc"·data-themes=""·data-resource-suffix="1.78.0"·data-rustdoc-version="1.78.0"·data-channel="1.78.0"·data-search-js="search-42d8da7a6b9792c2.js"·data-settings-js="settings-4313503d2e1961c2.js"·><script·src="../../../static.files/storage-4c98445ec4002617.js"></script><script·defer·src="sidebar-items1.78.0.js"></script><script·defer·src="../../../static.files/main-12cf3b4f4f9dc36d.js"></script><noscript><link·rel="stylesheet"·href="../../../static.files/noscript-04d5337699b92874.css"></noscript><link·rel="alternate·icon"·type="image/png"·href="../../../static.files/favicon-16x16-8b506e7a72182f1c.png"><link·rel="alternate·icon"·type="image/png"·href="../../../static.files/favicon-32x32-422f7d1d52889060.png"><link·rel="icon"·type="image/svg+xml"·href="../../../static.files/favicon-2c020d218678b618.svg"></head><body·class="rustdoc·struct"><!--[if·lte·IE·11]><div·class="warning">This·old·browser·is·unsupported·and·will·most·likely·display·funky·things.</div><![endif]--><nav·class="mobile-topbar"><button·class="sidebar-menu-toggle"·title="show·sidebar"></button><a·class="logo-container"·href="../../../alloc/index.html"><img·class="rust-logo"·src="../../../static.files/rust-logo-151179464ae7ed46.svg"·alt=""></a></nav><nav·class="sidebar"><div·class="sidebar-crate"><a·class="logo-container"·href="../../../alloc/index.html"><img·class="rust-logo"·src="../../../static.files/rust-logo-151179464ae7ed46.svg"·alt="logo"></a><h2><a·href="../../../alloc/index.html">alloc</a><span·class="version">1.78.0</span></h2></div><h2·class="location"><a·href="#">ExtractIf</a></h2><div·class="sidebar-elems"><section><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">Debug</a></li><li><a·href="#impl-Iterator-for-ExtractIf%3C'_,+T,+F,+A%3E">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">!Send</a></li><li><a·href="#impl-Sync-for-ExtractIf%3C'a,+T,+F,+A%3E">!Sync</a></li><li><a·href="#impl-UnwindSafe-for-ExtractIf%3C'a,+T,+F,+A%3E">!UnwindSafe</a></li><li><a·href="#impl-Freeze-for-ExtractIf%3C'a,+T,+F,+A%3E">Freeze</a></li><li><a·href="#impl-RefUnwindSafe-for-ExtractIf%3C'a,+T,+F,+A%3E">RefUnwindSafe</a></li><li><a·href="#impl-Unpin-for-ExtractIf%3C'a,+T,+F,+A%3E">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">Any</a></li><li><a·href="#impl-Borrow%3CT%3E-for-T">Borrow&lt;T&gt;</a></li><li><a·href="#impl-BorrowMut%3CT%3E-for-T">BorrowMut&lt;T&gt;</a></li><li><a·href="#impl-From%3CT%3E-for-T">From&lt;T&gt;</a></li><li><a·href="#impl-Into%3CU%3E-for-T">Into&lt;U&gt;</a></li><li><a·href="#impl-IntoIterator-for-I">IntoIterator</a></li><li><a·href="#impl-TryFrom%3CU%3E-for-T">TryFrom&lt;U&gt;</a></li><li><a·href="#impl-TryInto%3CU%3E-for-T">TryInto&lt;U&gt;</a></li></ul></section><h2><a·href="index.html">In·alloc::collections::linked_list</a></h2></div></nav><div·class="sidebar-resizer"></div>1 <!DOCTYPE·html><html·lang="en"><head><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.write(`<link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../../static.files/SourceSerif4-Regular-46f98efaafac5295.ttf.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../../static.files/FiraSans-Regular-018c141bf0843ffd.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../../static.files/FiraSans-Medium-8f9a781e4970d388.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../../static.files/SourceCodePro-Regular-562dcc5011b6de7d.ttf.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../../static.files/SourceCodePro-Semibold-d899c5a5c4aeb14a.ttf.woff2">`)</script><link·rel="stylesheet"·href="../../../static.files/normalize-76eba96aa4d2e634.css"><link·rel="stylesheet"·href="../../../static.files/rustdoc-35f9e32502181f1e.css"><meta·name="rustdoc-vars"·data-root-path="../../../"·data-static-root-path="../../../static.files/"·data-current-crate="alloc"·data-themes=""·data-resource-suffix="1.78.0"·data-rustdoc-version="1.78.0"·data-channel="1.78.0"·data-search-js="search-42d8da7a6b9792c2.js"·data-settings-js="settings-4313503d2e1961c2.js"·><script·src="../../../static.files/storage-4c98445ec4002617.js"></script><script·defer·src="sidebar-items1.78.0.js"></script><script·defer·src="../../../static.files/main-12cf3b4f4f9dc36d.js"></script><noscript><link·rel="stylesheet"·href="../../../static.files/noscript-04d5337699b92874.css"></noscript><link·rel="alternate·icon"·type="image/png"·href="../../../static.files/favicon-16x16-8b506e7a72182f1c.png"><link·rel="alternate·icon"·type="image/png"·href="../../../static.files/favicon-32x32-422f7d1d52889060.png"><link·rel="icon"·type="image/svg+xml"·href="../../../static.files/favicon-2c020d218678b618.svg"></head><body·class="rustdoc·struct"><!--[if·lte·IE·11]><div·class="warning">This·old·browser·is·unsupported·and·will·most·likely·display·funky·things.</div><![endif]--><nav·class="mobile-topbar"><button·class="sidebar-menu-toggle"·title="show·sidebar"></button><a·class="logo-container"·href="../../../alloc/index.html"><img·class="rust-logo"·src="../../../static.files/rust-logo-151179464ae7ed46.svg"·alt=""></a></nav><nav·class="sidebar"><div·class="sidebar-crate"><a·class="logo-container"·href="../../../alloc/index.html"><img·class="rust-logo"·src="../../../static.files/rust-logo-151179464ae7ed46.svg"·alt="logo"></a><h2><a·href="../../../alloc/index.html">alloc</a><span·class="version">1.78.0</span></h2></div><h2·class="location"><a·href="#">ExtractIf</a></h2><div·class="sidebar-elems"><section><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">Debug</a></li><li><a·href="#impl-Iterator-for-ExtractIf%3C'_,+T,+F,+A%3E">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">!Send</a></li><li><a·href="#impl-Sync-for-ExtractIf%3C'a,+T,+F,+A%3E">!Sync</a></li><li><a·href="#impl-UnwindSafe-for-ExtractIf%3C'a,+T,+F,+A%3E">!UnwindSafe</a></li><li><a·href="#impl-Freeze-for-ExtractIf%3C'a,+T,+F,+A%3E">Freeze</a></li><li><a·href="#impl-RefUnwindSafe-for-ExtractIf%3C'a,+T,+F,+A%3E">RefUnwindSafe</a></li><li><a·href="#impl-Unpin-for-ExtractIf%3C'a,+T,+F,+A%3E">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">Any</a></li><li><a·href="#impl-Borrow%3CT%3E-for-T">Borrow&lt;T&gt;</a></li><li><a·href="#impl-BorrowMut%3CT%3E-for-T">BorrowMut&lt;T&gt;</a></li><li><a·href="#impl-From%3CT%3E-for-T">From&lt;T&gt;</a></li><li><a·href="#impl-Into%3CU%3E-for-T">Into&lt;U&gt;</a></li><li><a·href="#impl-IntoIterator-for-I">IntoIterator</a></li><li><a·href="#impl-TryFrom%3CU%3E-for-T">TryFrom&lt;U&gt;</a></li><li><a·href="#impl-TryInto%3CU%3E-for-T">TryInto&lt;U&gt;</a></li></ul></section><h2><a·href="index.html">In·alloc::collections::linked_list</a></h2></div></nav><div·class="sidebar-resizer"></div>
2 ····<main><div·class="width-limiter"><nav·class="sub"><form·class="search-form"><span></span><div·id="sidebar-button"·tabindex="-1"><a·href="../../../alloc/all.html"·title="show·sidebar"></a></div><input·class="search-input"·name="search"·aria-label="Run·search·in·the·documentation"·autocomplete="off"·spellcheck="false"·placeholder="Click·or·press·‘S’·to·search,·‘?’·for·more·options…"·type="search"><div·id="help-button"·tabindex="-1"><a·href="../../../help.html"·title="help">?</a></div><div·id="settings-menu"·tabindex="-1"><a·href="../../../settings.html"·title="settings"><img·width="22"·height="22"·alt="Change·settings"·src="../../../static.files/wheel-7b819b6101059cd0.svg"></a></div></form></nav><section·id="main-content"·class="content"><div·class="main-heading"><h1>Struct·<a·href="../../index.html">alloc</a>::<wbr><a·href="../index.html">collections</a>::<wbr><a·href="index.html">linked_list</a>::<wbr><a·class="struct"·href="#">ExtractIf</a><button·id="copy-path"·title="Copy·item·path·to·clipboard"><img·src="../../../static.files/clipboard-7571035ce49a181d.svg"·width="19"·height="18"·alt="Copy·item·path"></button></h1><span·class="out-of-band"><a·class="src"·href="../../../src/alloc/collections/linked_list.rs.html#1918-1931">source</a>···<button·id="toggle-all-docs"·title="collapse·all·docs">[<span>&#x2212;</span>]</button></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">where2 ····<main><div·class="width-limiter"><nav·class="sub"><form·class="search-form"><span></span><div·id="sidebar-button"·tabindex="-1"><a·href="../../../alloc/all.html"·title="show·sidebar"></a></div><input·class="search-input"·name="search"·aria-label="Run·search·in·the·documentation"·autocomplete="off"·spellcheck="false"·placeholder="Click·or·press·‘S’·to·search,·‘?’·for·more·options…"·type="search"><div·id="help-button"·tabindex="-1"><a·href="../../../help.html"·title="help">?</a></div><div·id="settings-menu"·tabindex="-1"><a·href="../../../settings.html"·title="settings"><img·width="22"·height="22"·alt="Change·settings"·src="../../../static.files/wheel-7b819b6101059cd0.svg"></a></div></form></nav><section·id="main-content"·class="content"><div·class="main-heading"><h1>Struct·<a·href="../../index.html">alloc</a>::<wbr><a·href="../index.html">collections</a>::<wbr><a·href="index.html">linked_list</a>::<wbr><a·class="struct"·href="#">ExtractIf</a><button·id="copy-path"·title="Copy·item·path·to·clipboard"><img·src="../../../static.files/clipboard-7571035ce49a181d.svg"·width="19"·height="18"·alt="Copy·item·path"></button></h1><span·class="out-of-band"><a·class="src"·href="../../../src/alloc/collections/linked_list.rs.html#1918-1931">source</a>···<button·id="toggle-all-docs"·title="collapse·all·docs">[<span>&#x2212;</span>]</button></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
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.reference.html">&amp;mut·T</a>)·-&gt;·<a·class="primitive"·href="../../../core/primitive.bool.html">bool</a>·+·'a,</div>{·<span·class="comment">/*·private·fields·*/</span>·}</code></pre><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>extract_if</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/43244">#43244</a>)</span></div></span><details·class="toggle·top-doc"·open><summary·class="hideme"><span>Expand·description</span></summary><div·class="docblock"><p>An·iterator·produced·by·calling·<code>extract_if</code>·on·LinkedList.</p>3 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(<a·class="primitive"·href="https://doc.rust-lang.org/1.78.0/core/primitive.reference.html">&amp;mut·T</a>)·-&gt;·<a·class="primitive"·hr[·...·truncated·by·diffoscope;·len:·36,·SHA:·043df48cfec746bfcafe095bde31580d363117402af6fb43b62085ddd20eaaf8·...·]/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>
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%3E"·class="impl"><a·class="src·rightside"·href="../../../src/alloc/collections/linked_list.rs.html#1963-1970">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">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%3E"·class="impl"><a·class="src·rightside"·href="../../../src/alloc/collections/linked_list.rs.html#1963-1970">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
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:·1320,·SHA:·6da99828b54eaacde7ed3abea84430d0c7dcb75596d1cba8e90b5b93a9c16106·...·]/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">where5 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(<a·class="primitive"·href="https://doc.rust-lang.org/1.78.0/core/primitive.reference.html">&amp;mut·T</a>)·-&gt;·<a·class="primitive"·hr[·...·truncated·by·diffoscope;·len:·1416,·SHA:·6fcbe7e322cc97199baf3fc59f8ac58c4bc57a8c0b40e44869364343a77251a4·...·]/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
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;mut·T</a>)·-&gt;·<a·class="primitive"·href="../../../core/primitive.bool.html">bool</a>,[·...·truncated·by·diffoscope;·len:·2514,·SHA:·092f638caf191f5da192ef4976c535defbde1c1234662f617e6fad9e90d9051d·...·]/core/primitive.usize.html">usize</a>&gt;(6 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(<a·class="primitive"·href="https://doc.rust-lang.org/1.78.0/core/primitive.reference.html">&amp;mut·T</a>)·-&gt;·<a·class="primitive"·hr[·...·truncated·by·diffoscope;·len:·2874,·SHA:·928075769f8f6edc85ae6fd539ff21c7b812b8ab63118a772718539853be9074·...·]/core/primitive.usize.html">usize</a>&gt;(
7 ····&amp;mut·self7 ····&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.78.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.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title=[·...·truncated·by·diffoscope;·len:·381,·SHA:·88c48923c9b7ea5cc47c1087c60e09656e81d4671c58071ba2bef826335388bc·...·]/core/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:·f7c1ca2ff3e425a8295c41d4d2fe540d4a3cb1e7032a9d04d8aed936964c71b6·...·]/core/primitive.usize.html">usize</a><div·class="where">where9 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></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:·89791450da70cbd536c3cf8fbf2dd9891668362f9a252d3ee098222d19960bae·...·]/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:·a0deafb68573233cf98843dcb8980b408fa28f99c350115f667afd7858ad6f7e·...·]/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.78.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:·84ae0beb16240102bae2355bb8c543b17f3f107e3c06b320839aa401eebb1945·...·]/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:·28bd88719f8c6dacf69b206ecda434ff3ac19011adf99793edd5fafa883cbd71·...·]/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.78.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.78.0/cor[·...·truncated·by·diffoscope;·len:·3504,·SHA:·6d21b6d637e0b2e9953a37a26fd19e00da089147d4acaf696c94d448de4ce419·...·]/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.78.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:·4ac7445a1207207aeda1789f31c5036d8905fa206c83a58ca48662c081a68134·...·]/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.78.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:·e83c903581753673e083ce8dd809879a2fc81ab3050eb6db267d7fa26b15e035·...·]/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.78.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:·10378641f30fbaa3b3d8ba8984f91955195f5a0ddb70a41cc9ff99666b50a36f·...·]/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.78.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.78.0/core/iter/traits/it[·...·truncated·by·diffoscope;·len:·1329,·SHA:·d9299c8edc606ed82f24d61ce441bec451141d684c2a9a75074f5b19c57f196c·...·]/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.78.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:·b9001dd3131b1425179c94853e1b90fff0f7169b9570e86cd50c6b7fbf1ee8a5·...·]/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.78.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:·98627729f77dcf1c9d258f343354ba600b7134c6b3929080f231e8de7155b70b·...·]/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.78.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.78.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.78.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:·fa2a17b1aaf7dbc4e89f728d099c0a475adcd5ff79e4791795d7c4df5fc2ccec·...·]/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.78.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:·7301b6beba7b6885849be90a625df68ef739a5374af456c51fe2e81d91a25363·...·]/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.78.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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::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:·d75758e0f8262eeea27445cec43f13d84f0c02ba4e03c0c54d041f9ab1965e0f·...·]/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.78.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:·98f6effefa44d759c249143d83623f0055d937382bfc398b7e1f5e92cd413657·...·]/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.78.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:·9009d5c023150c1a97b2d18e30d176e7ff2e48673ad0e4665367958e752bf827·...·]/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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·916,·SHA:·30d0b2a76513c5a880e9aee43e92b18805845cfcfe5783f62dc090167a439e63·...·]/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.78.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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·140,·SHA:·752f473b57e7444ebfddf5ea7fd40a332e83ec55524a6c31b5ee0f82a5dea819·...·]/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:·7c1da0b93b40e2b4f823a0d24b5a27f092ffdb68175a9c14fe21a97d84bb2244·...·]/core/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.78.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:·76aa2ad154f88085ee3f8a22721a7e6812680bac785d19059532407f50da1801·...·]/core/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.78.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:·96005685f2d5bf532d7af03cf747a50bdbe5efffccc579afe197789e4cd44a54·...·]/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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·1052,·SHA:·110b47c7083083d565fcfc89337fddc8e5c87e81b2f720f3f7b0ded55e8500fb·...·]/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.78.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:·02bccd69f3cf4a08b24b66a0c9afb8ac49ebd0e9a7d5a183641b471189a35df3·...·]/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.78.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:·8464264e074dde5d84f0414ab3b5b2d8da83f3c9e3ca04c45458241580a8c80d·...·]/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.78.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.78.0/core/iter/adapte[·...·truncated·by·diffoscope;·len:·175,·SHA:·16fe7225bf05b478e2828b347c3d23ded9a22f89d8887a2c65d9f7b3faf1b0e7·...·]/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:·60d233d0587f535c8bae5118522baa81ef2524d4168f9e142529a37902d8e8c4·...·]/core/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.78.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:·00ccbb673c11ed48d8c6aa2a3f8984fb298202e7bccfa42f1ac21290fcc0fb06·...·]/core/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.78.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:·0900235f7b60bdd90fbf9718324068ecf230199603f19da2c38cad64ed6915ff·...·]/core/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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·1234,·SHA:·3b805567411cdcebed740f9e8d400dbe7fb487504f40e284544a140155090fdf·...·]/core/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.78.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:·552b3dd2132886d024e4d5bd2554611e25c1f068adaaf23ecf80da81d31997ef·...·]/core/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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·1058,·SHA:·b390dbdda8d7e93604b5ecd906a93efd03fe19bdaf41cf12893fd361bf974307·...·]/core/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.78.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:·491a83328e39b23cf5191ed5cb6bf83f1a62c9405ed5c39c58117b227b39b16c·...·]/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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·1163,·SHA:·5772149166d344bf8fa5ebbd9db8693a8f2e5f031c50338e8f1523ef72f814d6·...·]/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:·e62b3f87b06b061e799e72ab8f04c531f1c6f241266260eaab33ea2b793dd8d2·...·]/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.78.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:·6216516fe581c401abda3c95818192e8f030e2008c9bbdbaafebba16f33ea9bd·...·]/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.78.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:·7d73eca41cdb0c170bd03419f3563f3fe9e70e11494db546e781d302d3cd5636·...·]/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.78.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:·485843399c56e24bdf020ff0610d0ce1f62fbac5530d9880a1a7417105e3d70f·...·]/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.78.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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(<a·class="primitive"·href="https://doc.rust-lang.org/1.78.0/core/primitive.reference.html">&amp;mut·St</a>,·Self::<a·class="associatedty[·...·truncated·by·diffoscope;·len:·449,·SHA:·f12c268a8a8111b9e7126ad78bf5523a63733caa63d187c4fe792309ea41acdf·...·]/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:·02034aae893b799fa017b2d71546332d96a823cd4ba05c14089559819f3dd720·...·]/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.78.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.78.0/core/iter/trai[·...·truncated·by·diffoscope;·len:·690,·SHA:·371190e5c1bf9b7dde6e84447965a69946212b977b9eb6d89048fbe34c5dda1c·...·]/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.78.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.78.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:·4d1f54658fd1c005b101a2e27b0da3c6ee0cbe2d891660c65470bfec01fa46f6·...·]/core/iter/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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·976,·SHA:·2a9182f6fe88e0b8a9b1ae1f46cace940cc0b8736033c354c0f0ccbf1c196e7a·...·]/core/iter/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.78.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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;[Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtyp[·...·truncated·by·diffoscope;·len:·135,·SHA:·0b06a6094d42ccbc8bce5b01c4383961fe7f1967f05e4c9f1ff33e71e425fb26·...·]/core/primitive.array.html">N</a>])·-&gt;·R,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iter_map_windows</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/87155">#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.78.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:·d83146d48347da8e04ce6fcac96b0b1500203504f596d32c16a5a1493dd375e1·...·]/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.78.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:·0d33056cee8a4f9b70b573c0adecc2f3599a2f8d9fa9f2c2044e9118ab134f73·...·]/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:·e9288f8d879e78d7e79eb2c4255eb99308efd98061b1221968fb17de11019b2e·...·]/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.78.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.78.0/core/op[·...·truncated·by·diffoscope;·len:·841,·SHA:·9cba1b175fb3726d7f1f01da9be7c1a56568a68e4ce7915a468b730902daf8d3·...·]/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.78.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:·790,·SHA:·19293cf7305d77d7ccd51618427cff5e3edb06f162c23796ed392e0ac792f65e·...·]/core/primitive.reference.html">&amp;mut·Self</a><div·class="where">where57 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·934,·SHA:·ea20d2e0fe9388580ea08100baa9120b5e9b6cb48f43fc846f15db8b9649e7f6·...·]/core/primitive.reference.html">&amp;mut·Self</a><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:·cf371b2193fdcddf87cfe994db4d3e364336bb766b15dcfdd0ac7aabbd72e715·...·]/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.78.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.78.0/core/it[·...·truncated·by·diffoscope;·len:·523,·SHA:·97064c705f6f4bdf74469c54fabcf580d21893127d1b4cd9a9c1018a717ef153·...·]/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.78.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.78.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:·d76c3fcf86c63211032a6b22dc5924ef552b1ad26b12e19f15d2f1d5b3d7e394·...·]/core/primitive.reference.html">&amp;mut·E</a><div·class="where">where60 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.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.78.0/core/iter/tr[·...·truncated·by·diffoscope;·len:·728,·SHA:·01937c2dc314c259495665570ae249c94b4a5b0719718f5f1188e6fc64ecf487·...·]/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.78.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.78.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:·fa6f33be71e9184cfecc555b0b832d1a929285d35b47b1212b2176ac555731a1·...·]/core/primitive.tuple.html">(B,·B)</a><div·class="where">where62 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></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:·00bd47017b1bdd1bbe2c3fc932d955a8aa2f7f5eff8c00e3001ae28a982a5883·...·]/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.78.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.78.0/core/default/trait.Default.html"·title="trait·core::default::Default">Default</a>·+·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/collect/trait.Extend.html"·title="trait·core::iter::traits::collec[·...·truncated·by·diffoscope;·len:·95,·SHA:·8b3be1d0042cae0550f865faf5849221240bdf04eb1b2107605b72d48c3ad29c·...·]/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:·f996a0de22717256dd2ecf4d61d81611f9c7dfe5a493e4b882abb4030f3c80f9·...·]/core/primitive.bool.html">bool</a><div·class="where">where65 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·972,·SHA:·6de765542031617a9c28ac98fe6df619e58e62d9c65ec5b1c185a7152b8944e5·...·]/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.78.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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·135,·SHA:·51ff5f5c7ebd8440623ea71b125c5a5837e809e308fe1a13fbe19cddb941dbd9·...·]/core/primitive.bool.html">bool</a>,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iter_is_partitioned</code>&nbsp;<a·href="https://github.com/rust-lang/rust/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:·bd8fce4ee431c619c98780c4d520e8db93f1e034f12843ffaff5744b7ce2190b·...·]/core/iter/traits/iterator/trait.Iterator.html#method.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.78.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:·2c74873f4e5ba70004a1c7edd1cc3f9e2d91271295dd1591e2d26848df4c02ba·...·]/core/iter/traits/iterator/trait.Iterator.html#method.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.78.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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(B,·Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.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.78.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:·7b4fc32e7634ae85c682a97099be267837713d7e4831893b617ca652f57a89da·...·]/core/iter/traits/iterator/trait.Iterator.html#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.78.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:·52912e82c4b0a760d06f77eb4ee3a59ba70dd76cb532954900c73ae94c652674·...·]/core/iter/traits/iterator/trait.Iterator.html#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.78.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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.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.78.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.78.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:·5cfb1ce7ac10ff40c8d1d0f019b60fc4735736254c2d8357ed62287e51b1ac32·...·]/core/iter/traits/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.78.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:·1d6c4809cea8748e901d3f94777f450d430f3161f6ac05ed1c178d9327f966a3·...·]/core/iter/traits/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.78.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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(B,·Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::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:·2c738ecc68200afa2467bef085de14dcb642dbaac77c4529948f5e259e66691d·...·]/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.78.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:·b60215068a6d9721be05f81098c51167d7138c4042f140cad42f77c4df43f597·...·]/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.78.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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·352,·SHA:·e7c3c296abe2c0a183967153e4ae7fd50bafa2ae7088e3e78b3b48fee253adc6·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::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:·c3f1d50e276def36966943119961a20b09cab3be33483fe4d48d7f322489534b·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_reduce"·class="fn">try_reduce</a>&lt;F,·R&gt;(82 operation.·<a·href="https://doc.rust-lang.org/1.78.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:·7a18fdd041b1a001b4a8feb289ee127fd9240232239269eb35dc3b8f74783ec9·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_reduce"·class="fn">try_reduce</a>&lt;F,·R&gt;(
83 ····&amp;mut·self,83 ····&amp;mut·self,
84 ····f:·F84 ····f:·F
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.78.0/core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&gt;::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/ops/try_trait/trait.Try.html#associatedtype.Residual"·title="type[·...·truncated·by·diffoscope;·len:·754,·SHA:·6fb4dfdb6b4da68921c1e7f8b75d99cf293d58318d684a840254ce9576957bea·...·]/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.78.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:·68,·SHA:·e7e11f257edcac749a5883ad9a3aa42e6e965be419f967b36caa7afd3b36d7c9·...·]/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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·140,·SHA:·c27972e6fa3464c9476eaa185e8657edb6bb294f148403f3d079285294a9f909·...·]/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·=·Self::<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.78.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.78.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.78.0/core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&gt;::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/ops/try_trait/trait.Try.html#associatedtype.Residual"·title="type[·...·truncated·by·diffoscope;·len:·412,·SHA:·22b8cbb007e5cce82b9d13a65bfa56aa8d83c32541fac25f4d9b3857b0540908·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;&gt;,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iterator_try_reduce</code>&nbsp;<a·href="https://github.com/rust-lang/rust/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:·1a00be8efe0263bc0d09f5d47be04890b1d27a20c3429d1f4531805a03591fdb·...·]/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.78.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:·bc0d658d56e348823de15386e1cd4ab49109f3a7a055a4573a19391b47071193·...·]/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.78.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:·c15cbdf9d3f54700b6eac2f717541f7f5a3cf811d73f48ef7118096c1a240102·...·]/core/primitive.bool.html">bool</a><div·class="where">where92 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·1018,·SHA:·e61cd6bdd36729cc38e57fcaea2ccb91a23a5acbda3c8986071f19bf1ecfc52a·...·]/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.78.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:·80fef1533a0c8783ee74be0f29290d7dec960bcd19223b11639b3e6377220faa·...·]/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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·1172,·SHA:·e64ab74d116d286191ad43d9d9e10411fc011c23724aa806e9a8f9b0be0757e3·...·]/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.78.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:·f441e2966ff8db4214e57fcd74f81262d6e371aa51cea97ebde5921e81b4da79·...·]/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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·1051,·SHA:·ecc0b8fccd861464760f9ae047ff6ab98c91a1db010cb5fa59a8c2ab883db7c4·...·]/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.78.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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·130,·SHA:·130a13019dc175d02304b4f550157e2f13ac15c2f25a979c74161d10b146ab89·...·]/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:·ec4fb002625b166504031522e52a66812b279e6735a67cb718813205909c3fb7·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_find"·class="fn">try_find</a>&lt;F,·R&gt;(99 the·first·non-none·result.·<a·href="https://doc.rust-lang.org/1.78.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:·8ced1b10e78750774c5c8ed995ed83dcd13983aa75d329acf8069da106ab9f4a·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_find"·class="fn">try_find</a>&lt;F,·R&gt;(
100 ····&amp;mut·self,100 ····&amp;mut·self,
101 ····f:·F101 ····f:·F
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.78.0/core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&gt;::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/ops/try_trait/trait.Try.html#associatedtype.Residual"·title="type[·...·truncated·by·diffoscope;·len:·626,·SHA:·95f9831257b68862cbcbf54f0ad2ff4e597a4c9f763112d1da8a0897dadcf872·...·]/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.78.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>(&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,104 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.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.bool.html">bool</a>&gt;,105 ····R:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.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.78.0/core/primitive.bool.html">bool</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</[·...·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·returns106 ····&lt;R·as·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&gt;::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/ops/try_trait/trait.Try.html#associatedtype.Residual"·title="type[·...·truncated·by·diffoscope;·len:·412,·SHA:·22b8cbb007e5cce82b9d13a65bfa56aa8d83c32541fac25f4d9b3857b0540908·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;&gt;,</div></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
107 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">where107 the·first·true·result·or·the·first·error.·<a·href="https://doc.rust-lang.org/1.78.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:·fa9d94b216f6e4ce6035b4762e3bf17cb86a0272db0a55a056f05c68bcaeb0da·...·]/core/primitive.usize.html">usize</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.78.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>(Self::<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">where109 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·1190,·SHA:·882e9e9a037f916d0ed4aa6d749399e6e01ca81811eacfc54a484818cb5d5029·...·]/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.78.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.78.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·maximum·value·from·the112 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/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
113 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">where113 specified·function.·<a·href="https://doc.rust-lang.org/1.78.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:·0367b1bacc0a7d8e05f1c5181f8c4ea428f3f11edbae0e76811f3ef1d4925e41·...·]/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.78.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:[·...·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·the115 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·346,·SHA:·7113e4c2d65a123253bb18971efdc2d49241cfc2dd4c2b18e4cfa4e4d7d4140f·...·]/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
116 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">where116 specified·comparison·function.·<a·href="https://doc.rust-lang.org/1.78.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:·db89d4cca0becf2a4ab904adac2870de6fd83cfad5131f5a1431a67766274f81·...·]/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.78.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.78.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·minimum·value·from·the119 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/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
120 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">where120 specified·function.·<a·href="https://doc.rust-lang.org/1.78.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:·39ce6bc28062c0df48bff6a8faa3e4f2266988879092cf2970d2e9ee092742b0·...·]/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.78.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:[·...·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·the122 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·346,·SHA:·7113e4c2d65a123253bb18971efdc2d49241cfc2dd4c2b18e4cfa4e4d7d4140f·...·]/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
123 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">where123 specified·comparison·function.·<a·href="https://doc.rust-lang.org/1.78.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:·64f5ac8109ab8e5164c24b53640d938d0bb2486cf55faea0ff483f1e9ad27c8f·...·]/core/primitive.tuple.html">(FromA,·FromB)</a><div·class="where">where
124 ····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;,124 ····FromA:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/default/trait.Default.html"·title="trait·core::default::Default">Default</a>·+·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/collect/trait.Extend.html"·title="trait·core::iter::traits::collect::Extend">Extend</a>&lt;A&gt;,
125 ····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;,125 ····FromB:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/default/trait.Default.html"·title="trait·core::default::Default">Default</a>·+·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/collect/trait.Extend.html"·title="trait·core::iter::traits::collect::Extend">Extend</a>&lt;B&gt;,
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:·812,·SHA:·653aec8e646bd1e33f0a5bbac618099785271b214c53936117e7d07a68d11aa3·...·]/core/iter/adapters/copied/struct.Copied.html"·title="struct·core::iter::adapters::copied::Copied">Copied</a>&lt;Self&gt;<div·class="where">where126 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>·+·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html"·title="trait·core::iter::traits::iterator::I[·...·truncated·by·diffoscope;·len:·980,·SHA:·8f6df3c40809d9a55d4dab64faffa89b8268cb5f886608ccbcab921d7ab8e9fc·...·]/core/iter/adapters/copied/struct.Copied.html"·title="struct·core::iter::adapters::copied::Copied">Copied</a>&lt;Self&gt;<div·class="where">where
127 ····T:·'a·+·<a·class="trait"·href="../../../core/marker/trait.Copy.html"·title="trait·core::marker::Copy">Copy</a>,127 ····T:·'a·+·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/marker/trait.Copy.html"·title="trait·core::marker::Copy">Copy</a>,
Max diff block lines reached; 79193/271321 bytes (29.19%) of diff not shown.
308 KB
./usr/share/doc/rust-web-doc/html/alloc/collections/linked_list/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·`LinkedList`."><title>IntoIter·in·alloc::collections::linked_list·-·Rust</title><script>·if·(window.location.protocol·!==·"file:")·document.write(`<link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../../static.files/SourceSerif4-Regular-46f98efaafac5295.ttf.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../../static.files/FiraSans-Regular-018c141bf0843ffd.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../../static.files/FiraSans-Medium-8f9a781e4970d388.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../../static.files/SourceCodePro-Regular-562dcc5011b6de7d.ttf.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../../static.files/SourceCodePro-Semibold-d899c5a5c4aeb14a.ttf.woff2">`)</script><link·rel="stylesheet"·href="../../../static.files/normalize-76eba96aa4d2e634.css"><link·rel="stylesheet"·href="../../../static.files/rustdoc-35f9e32502181f1e.css"><meta·name="rustdoc-vars"·data-root-path="../../../"·data-static-root-path="../../../static.files/"·data-current-crate="alloc"·data-themes=""·data-resource-suffix="1.78.0"·data-rustdoc-version="1.78.0"·data-channel="1.78.0"·data-search-js="search-42d8da7a6b9792c2.js"·data-settings-js="settings-4313503d2e1961c2.js"·><script·src="../../../static.files/storage-4c98445ec4002617.js"></script><script·defer·src="sidebar-items1.78.0.js"></script><script·defer·src="../../../static.files/main-12cf3b4f4f9dc36d.js"></script><noscript><link·rel="stylesheet"·href="../../../static.files/noscript-04d5337699b92874.css"></noscript><link·rel="alternate·icon"·type="image/png"·href="../../../static.files/favicon-16x16-8b506e7a72182f1c.png"><link·rel="alternate·icon"·type="image/png"·href="../../../static.files/favicon-32x32-422f7d1d52889060.png"><link·rel="icon"·type="image/svg+xml"·href="../../../static.files/favicon-2c020d218678b618.svg"></head><body·class="rustdoc·struct"><!--[if·lte·IE·11]><div·class="warning">This·old·browser·is·unsupported·and·will·most·likely·display·funky·things.</div><![endif]--><nav·class="mobile-topbar"><button·class="sidebar-menu-toggle"·title="show·sidebar"></button><a·class="logo-container"·href="../../../alloc/index.html"><img·class="rust-logo"·src="../../../static.files/rust-logo-151179464ae7ed46.svg"·alt=""></a></nav><nav·class="sidebar"><div·class="sidebar-crate"><a·class="logo-container"·href="../../../alloc/index.html"><img·class="rust-logo"·src="../../../static.files/rust-logo-151179464ae7ed46.svg"·alt="logo"></a><h2><a·href="../../../alloc/index.html">alloc</a><span·class="version">1.78.0</span></h2></div><h2·class="location"><a·href="#">IntoIter</a></h2><div·class="sidebar-elems"><section><h3><a·href="#trait-implementations">Trait·Implementations</a></h3><ul·class="block·trait-implementation"><li><a·href="#impl-Clone-for-IntoIter%3CT,+A%3E">Clone</a></li><li><a·href="#impl-Debug-for-IntoIter%3CT,+A%3E">Debug</a></li><li><a·href="#impl-Default-for-IntoIter%3CT%3E">Default</a></li><li><a·href="#impl-DoubleEndedIterator-for-IntoIter%3CT,+A%3E">DoubleEndedIterator</a></li><li><a·href="#impl-ExactSizeIterator-for-IntoIter%3CT,+A%3E">ExactSizeIterator</a></li><li><a·href="#impl-FusedIterator-for-IntoIter%3CT,+A%3E">FusedIterator</a></li><li><a·href="#impl-Iterator-for-IntoIter%3CT,+A%3E">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">Freeze</a></li><li><a·href="#impl-RefUnwindSafe-for-IntoIter%3CT,+A%3E">RefUnwindSafe</a></li><li><a·href="#impl-Send-for-IntoIter%3CT,+A%3E">Send</a></li><li><a·href="#impl-Sync-for-IntoIter%3CT,+A%3E">Sync</a></li><li><a·href="#impl-Unpin-for-IntoIter%3CT,+A%3E">Unpin</a></li><li><a·href="#impl-UnwindSafe-for-IntoIter%3CT,+A%3E">UnwindSafe</a></li></ul><h3><a·href="#blanket-implementations">Blanket·Implementations</a></h3><ul·class="block·blanket-implementation"><li><a·href="#impl-Any-for-T">Any</a></li><li><a·href="#impl-Borrow%3CT%3E-for-T">Borrow&lt;T&gt;</a></li><li><a·href="#impl-BorrowMut%3CT%3E-for-T">BorrowMut&lt;T&gt;</a></li><li><a·href="#impl-From%3CT%3E-for-T">From&lt;T&gt;</a></li><li><a·href="#impl-Into%3CU%3E-for-T">Into&lt;U&gt;</a></li><li><a·href="#impl-IntoIterator-for-I">IntoIterator</a></li><li><a·href="#impl-ToOwned-for-T">ToOwned</a></li><li><a·href="#impl-TryFrom%3CU%3E-for-T">TryFrom&lt;U&gt;</a></li><li><a·href="#impl-TryInto%3CU%3E-for-T">TryInto&lt;U&gt;</a></li></ul></section><h2><a·href="index.html">In·alloc::collections::linked_list</a></h2></div></nav><div·class="sidebar-resizer"></div>1 <!DOCTYPE·html><html·lang="en"><head><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.write(`<link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../../static.files/SourceSerif4-Regular-46f98efaafac5295.ttf.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../../static.files/FiraSans-Regular-018c141bf0843ffd.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../../static.files/FiraSans-Medium-8f9a781e4970d388.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../../static.files/SourceCodePro-Regular-562dcc5011b6de7d.ttf.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../../static.files/SourceCodePro-Semibold-d899c5a5c4aeb14a.ttf.woff2">`)</script><link·rel="stylesheet"·href="../../../static.files/normalize-76eba96aa4d2e634.css"><link·rel="stylesheet"·href="../../../static.files/rustdoc-35f9e32502181f1e.css"><meta·name="rustdoc-vars"·data-root-path="../../../"·data-static-root-path="../../../static.files/"·data-current-crate="alloc"·data-themes=""·data-resource-suffix="1.78.0"·data-rustdoc-version="1.78.0"·data-channel="1.78.0"·data-search-js="search-42d8da7a6b9792c2.js"·data-settings-js="settings-4313503d2e1961c2.js"·><script·src="../../../static.files/storage-4c98445ec4002617.js"></script><script·defer·src="sidebar-items1.78.0.js"></script><script·defer·src="../../../static.files/main-12cf3b4f4f9dc36d.js"></script><noscript><link·rel="stylesheet"·href="../../../static.files/noscript-04d5337699b92874.css"></noscript><link·rel="alternate·icon"·type="image/png"·href="../../../static.files/favicon-16x16-8b506e7a72182f1c.png"><link·rel="alternate·icon"·type="image/png"·href="../../../static.files/favicon-32x32-422f7d1d52889060.png"><link·rel="icon"·type="image/svg+xml"·href="../../../static.files/favicon-2c020d218678b618.svg"></head><body·class="rustdoc·struct"><!--[if·lte·IE·11]><div·class="warning">This·old·browser·is·unsupported·and·will·most·likely·display·funky·things.</div><![endif]--><nav·class="mobile-topbar"><button·class="sidebar-menu-toggle"·title="show·sidebar"></button><a·class="logo-container"·href="../../../alloc/index.html"><img·class="rust-logo"·src="../../../static.files/rust-logo-151179464ae7ed46.svg"·alt=""></a></nav><nav·class="sidebar"><div·class="sidebar-crate"><a·class="logo-container"·href="../../../alloc/index.html"><img·class="rust-logo"·src="../../../static.files/rust-logo-151179464ae7ed46.svg"·alt="logo"></a><h2><a·href="../../../alloc/index.html">alloc</a><span·class="version">1.78.0</span></h2></div><h2·class="location"><a·href="#">IntoIter</a></h2><div·class="sidebar-elems"><section><h3><a·href="#trait-implementations">Trait·Implementations</a></h3><ul·class="block·trait-implementation"><li><a·href="#impl-Clone-for-IntoIter%3CT,+A%3E">Clone</a></li><li><a·href="#impl-Debug-for-IntoIter%3CT,+A%3E">Debug</a></li><li><a·href="#impl-Default-for-IntoIter%3CT%3E">Default</a></li><li><a·href="#impl-DoubleEndedIterator-for-IntoIter%3CT,+A%3E">DoubleEndedIterator</a></li><li><a·href="#impl-ExactSizeIterator-for-IntoIter%3CT,+A%3E">ExactSizeIterator</a></li><li><a·href="#impl-FusedIterator-for-IntoIter%3CT,+A%3E">FusedIterator</a></li><li><a·href="#impl-Iterator-for-IntoIter%3CT,+A%3E">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">Freeze</a></li><li><a·href="#impl-RefUnwindSafe-for-IntoIter%3CT,+A%3E">RefUnwindSafe</a></li><li><a·href="#impl-Send-for-IntoIter%3CT,+A%3E">Send</a></li><li><a·href="#impl-Sync-for-IntoIter%3CT,+A%3E">Sync</a></li><li><a·href="#impl-Unpin-for-IntoIter%3CT,+A%3E">Unpin</a></li><li><a·href="#impl-UnwindSafe-for-IntoIter%3CT,+A%3E">UnwindSafe</a></li></ul><h3><a·href="#blanket-implementations">Blanket·Implementations</a></h3><ul·class="block·blanket-implementation"><li><a·href="#impl-Any-for-T">Any</a></li><li><a·href="#impl-Borrow%3CT%3E-for-T">Borrow&lt;T&gt;</a></li><li><a·href="#impl-BorrowMut%3CT%3E-for-T">BorrowMut&lt;T&gt;</a></li><li><a·href="#impl-From%3CT%3E-for-T">From&lt;T&gt;</a></li><li><a·href="#impl-Into%3CU%3E-for-T">Into&lt;U&gt;</a></li><li><a·href="#impl-IntoIterator-for-I">IntoIterator</a></li><li><a·href="#impl-ToOwned-for-T">ToOwned</a></li><li><a·href="#impl-TryFrom%3CU%3E-for-T">TryFrom&lt;U&gt;</a></li><li><a·href="#impl-TryInto%3CU%3E-for-T">TryInto&lt;U&gt;</a></li></ul></section><h2><a·href="index.html">In·alloc::collections::linked_list</a></h2></div></nav><div·class="sidebar-resizer"></div>
2 ····<main><div·class="width-limiter"><nav·class="sub"><form·class="search-form"><span></span><div·id="sidebar-button"·tabindex="-1"><a·href="../../../alloc/all.html"·title="show·sidebar"></a></div><input·class="search-input"·name="search"·aria-label="Run·search·in·the·documentation"·autocomplete="off"·spellcheck="false"·placeholder="Click·or·press·‘S’·to·search,·‘?’·for·more·options…"·type="search"><div·id="help-button"·tabindex="-1"><a·href="../../../help.html"·title="help">?</a></div><div·id="settings-menu"·tabindex="-1"><a·href="../../../settings.html"·title="settings"><img·width="22"·height="22"·alt="Change·settings"·src="../../../static.files/wheel-7b819b6101059cd0.svg"></a></div></form></nav><section·id="main-content"·class="content"><div·class="main-heading"><h1>Struct·<a·href="../../index.html">alloc</a>::<wbr><a·href="../index.html">collections</a>::<wbr><a·href="index.html">linked_list</a>::<wbr><a·class="struct"·href="#">IntoIter</a><button·id="copy-path"·title="Copy·item·path·to·clipboard"><img·src="../../../static.files/clipboard-7571035ce49a181d.svg"·width="19"·height="18"·alt="Copy·item·path"></button></h1><span·class="out-of-band"><span·class="since"·title="Stable·since·Rust·version·1.0.0">1.0.0</span>···<a·class="src"·href="../../../src/alloc/collections/linked_list.rs.html#142-147">source</a>···<button·id="toggle-all-docs"·title="collapse·all·docs">[<span>&#x2212;</span>]</button></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 ····<main><div·class="width-limiter"><nav·class="sub"><form·class="search-form"><span></span><div·id="sidebar-button"·tabindex="-1"><a·href="../../../alloc/all.html"·title="show·sidebar"></a></div><input·class="search-input"·name="search"·aria-label="Run·search·in·the·documentation"·autocomplete="off"·spellcheck="false"·placeholder="Click·or·press·‘S’·to·search,·‘?’·for·more·options…"·type="search"><div·id="help-button"·tabindex="-1"><a·href="../../../help.html"·title="help">?</a></div><div·id="settings-menu"·tabindex="-1"><a·href="../../../settings.html"·title="settings"><img·width="22"·height="22"·alt="Change·settings"·src="../../../static.files/wheel-7b819b6101059cd0.svg"></a></div></form></nav><section·id="main-content"·class="content"><div·class="main-heading"><h1>Struct·<a·href="../../index.html">alloc</a>::<wbr><a·href="../index.html">collections</a>::<wbr><a·href="index.html">linked_list</a>::<wbr><a·class="struct"·href="#">IntoIter</a><button·id="copy-path"·title="Copy·item·path·to·clipboard"><img·src="../../../static.files/clipboard-7571035ce49a181d.svg"·width="19"·height="18"·alt="Copy·item·path"></button></h1><span·class="out-of-band"><span·class="since"·title="Stable·since·Rust·version·1.0.0">1.0.0</span>···<a·class="src"·href="../../../src/alloc/collections/linked_list.rs.html#142-147">source</a>···<button·id="toggle-all-docs"·title="collapse·all·docs">[<span>&#x2212;</span>]</button></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>
3 <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 <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>
4 (provided·by·the·<a·href="../../../core/iter/traits/collect/trait.IntoIterator.html"·title="trait·core::iter::traits::collect::IntoIterator"><code>IntoIterator</code></a>·trait).·See·its·documentation·for·more.</p>4 (provided·by·the·<a·href="https://doc.rust-lang.org/1.78.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>
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-IntoIter%3CT,+A%3E"·class="impl"><a·class="src·rightside"·href="../../../src/alloc/collections/linked_list.rs.html#140">source</a><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:·4421,·SHA:·80773e5836f335ac25dfb070effea66468178a5d02e9e6707639a0dd3b9351ce·...·]/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></details><h2·id="trait-implementations"·class="section-header">Trait·Implementations<a·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"><a·class="src·rightside"·href="../../../src/alloc/collections/linked_list.rs.html#140">source</a><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.78.0/core/clone/trait.Clone.html"·title="trait·core::clone::Clone">Clone</a>,·A:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/clone/trait.Clone.html"·title="trait·core::clone::Clone">Clone</a>·+·<a·class="trait"·[·...·truncated·by·diffoscope;·len:·4685,·SHA:·9801d4f7f9fcb494044c66c2bee6365de99acf3d12616319b7351d0258d6f3c2·...·]/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>
  
6 <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 <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();
7 <span·class="macro">assert_eq!</span>(iter.len(),·<span·class="number">0</span>);</code></pre><a·class="test-arrow"·target="_blank"·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">Run</a></div>7 <span·class="macro">assert_eq!</span>(iter.len(),·<span·class="number">0</span>);</code></pre><a·class="test-arrow"·target="_blank"·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">Run</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"><a·class="src·rightside"·href="../../../src/alloc/collections/linked_list.rs.html#1988-1993">source</a><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:·d0ed255fd6b4431eb8b3a3d6c1ae627115b07f45bbaf767ee718a41e1cf5420d·...·]/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"><a·class="src·rightside"·href="../../../src/alloc/collections/linked_list.rs.html#1988-1993">source</a><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.78.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:·4b910aa81246aecc575fba16e95324c76fa00bafe2458a57dbcc8f2982b4c50d·...·]/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.78.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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(B,·Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.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.78.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.7[·...·truncated·by·diffoscope;·len:·3,·SHA:·7b1bd53949b752d143d871408483b5382371b5bc48d195d0c040ec93cfa2748b·...·]/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:·b3a5d6383debff0cac836c5889a757f11b019bc049778c518e60e4d37a3c4da1·...·]/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.78.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:·d66ed7e195a53e9945339ef1976aed455dcf80228d8e5b7b0c69a64c3983fea1·...·]/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.78.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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(B,·Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/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:·d11fd274e41827c1daee0c80a6ab5f978a613ab26297cb460535fef32cff8551·...·]/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.78.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:·c264047794019a6dcf05728ba6a6ee1f8f07c7209958b3366ba94546b527ecdc·...·]/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.78.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:·6063,·SHA:·1650e60f2f8a98fe630375952ff3f9417b087a93e2b30c28591493fead67d512·...·]/core/primitive.usize.html">usize</a>&gt;(17 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·6687,·SHA:·9292cb605d93cdee744f27a6b24557eeaf54a70337d5e2e60be4b353d3daf973·...·]/core/primitive.usize.html">usize</a>&gt;(
18 ····&amp;mut·self18 ····&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.78.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.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title=[·...·truncated·by·diffoscope;·len:·381,·SHA:·88c48923c9b7ea5cc47c1087c60e09656e81d4671c58071ba2bef826335388bc·...·]/core/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:·746,·SHA:·99cc415a31b91c57f7eeb82ad0d2d1ba424489bee49de37c86a4ea21c663ccda·...·]/core/primitive.usize.html">usize</a><div·class="where">where20 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experiment[·...·truncated·by·diffoscope;·len:·866,·SHA:·945d2d86f0c4c5ca3e3ee3b181d18b2bbea57ee1a5a7efe16c0c915a5bf2c3ad·...·]/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:·597,·SHA:·be3babc2f9096ec8bacc872099ff5a03375deb1461cf1d651cfbfb072fb72581·...·]/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.78.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:·741,·SHA:·f3078cc3fddd62af2c1a8814c5854bb49f40b79e4fbc9b3addf5862a72370f82·...·]/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:·2928,·SHA:·dd9dc6c66a208fe3371784c1d048fbccf7b880bff34f93a1694f746d814568db·...·]/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.78.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.78.0/cor[·...·truncated·by·diffoscope;·len:·3408,·SHA:·b62c6ed65b31a8b555c142d9d15f3ce30e5c76ad2630a0e5a9b13cfd478c6eee·...·]/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.78.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"><a·class="src·rightside"·href="../../../src/core/it[·...·truncated·by·diffoscope;·len:·602,·SHA:·cfe4c4d300dddc2abdc2f8194eb969c68b2240c28239969b5be2af6a564ed8cc·...·]/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.78.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"><a·class="src·rightside"·hr[·...·truncated·by·diffoscope;·len:·746,·SHA:·f1f70d650c102c8658e13890c7dbfc87418f07e7b522246fb579ec434ef64f7c·...·]/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.78.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:·1041,·SHA:·a281d174c9671021427f0b458ac94e87746ac44730475aa725652c6c15e2b972·...·]/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.78.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.78.0/core/iter/traits/it[·...·truncated·by·diffoscope;·len:·1233,·SHA:·f677df2d893dfe0dc1a9d31ebb0ba71a346d265781813e0d664d3f18369b6163·...·]/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.78.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:·b9001dd3131b1425179c94853e1b90fff0f7169b9570e86cd50c6b7fbf1ee8a5·...·]/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.78.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:·98627729f77dcf1c9d258f343354ba600b7134c6b3929080f231e8de7155b70b·...·]/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.78.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.78.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.78.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"><a·class="src·rightside"·href="../../../src/[·...·truncated·by·diffoscope;·len:·279,·SHA:·f2c34c2e64e77c66684f837812ebc4a94c81b2ad5862cc0131f80c3ce89e008a·...·]/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.78.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"><a·class="src·rights[·...·truncated·by·diffoscope;·len:·375,·SHA:·58419346f92e1709dadb70cc3cf356e3cd27972451bdc6b4fc4267e6f7e8bdae·...·]/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.78.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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::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:·d75758e0f8262eeea27445cec43f13d84f0c02ba4e03c0c54d041f9ab1965e0f·...·]/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.78.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:·98f6effefa44d759c249143d83623f0055d937382bfc398b7e1f5e92cd413657·...·]/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.78.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:·676,·SHA:·9ae42ed293737a3dd44c1ee9d98c6aabb1552fbb9d203cb852ee9fcc7834a6ca·...·]/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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·820,·SHA:·a664bbcbc0891663662e4eb7b4394d0fcd72e568136fc4d34097fea242cc32e7·...·]/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.78.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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·140,·SHA:·752f473b57e7444ebfddf5ea7fd40a332e83ec55524a6c31b5ee0f82a5dea819·...·]/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"><a·class="src·rightside"·href="../../../src/cor[·...·truncated·by·diffoscope;·len:·297,·SHA:·f01e44d4caf6c6ad80b37656b9300f7111340711dcd74d70867b5a652dbfb538·...·]/core/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.78.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"><a·class="src·rightside[·...·truncated·by·diffoscope;·len:·393,·SHA:·2e2aa7c9c9c087e7b346da376749064ab8c1894795a2f0a0f646cdc8c7bea997·...·]/core/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.78.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:·788,·SHA:·b788f412af946d2bd7646ba39a8c316ebfa88109f9626dbad9bf9964f975cd0c·...·]/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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·956,·SHA:·faba0521e870dbbd26d466fadba3522e7d29013a9b86376fffafffac11a57e0e·...·]/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.78.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"><a·class="src·rightside"·href="../../../src/co[·...·truncated·by·diffoscope;·len:·276,·SHA:·e337ee1b810d3ec0480569c4ed323ebf0a2315c8ae3c522a73fcca3aa8e6efb3·...·]/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.78.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"><a·class="src·rightsid[·...·truncated·by·diffoscope;·len:·372,·SHA:·03eea0861575eb80d3f7a87a3ba747adb1a33fe7e9ce72aa2172e7a287c63a94·...·]/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.78.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.78.0/core/iter/adapte[·...·truncated·by·diffoscope;·len:·175,·SHA:·16fe7225bf05b478e2828b347c3d23ded9a22f89d8887a2c65d9f7b3faf1b0e7·...·]/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"><a·class="src·rightside"·href="../../../src/c[·...·truncated·by·diffoscope;·len:·306,·SHA:·a9bc004bf639fa188165a336061c6c98ec7ff9d266a18f10db200dfa9a880b88·...·]/core/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.78.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"><a·class="src·rightsi[·...·truncated·by·diffoscope;·len:·402,·SHA:·7689a974f800fd069d1b4453ef62d6d6ad1b654462d624d36e3672051d502030·...·]/core/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.78.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:·946,·SHA:·877b8718d9df1464a912dd50eef16402225367db4e4b26484b5ee20d30644524·...·]/core/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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·1138,·SHA:·f6ae06b7de8e94df014341c5cf589a5e4a1298367b2ef7a968ec499c5170a70e·...·]/core/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.78.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:·552b3dd2132886d024e4d5bd2554611e25c1f068adaaf23ecf80da81d31997ef·...·]/core/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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·1058,·SHA:·b390dbdda8d7e93604b5ecd906a93efd03fe19bdaf41cf12893fd361bf974307·...·]/core/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.78.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:·875,·SHA:·5c5c44422f75cbb66ebcf54bea70536713b810843cc484b051aed088c6422d78·...·]/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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·1067,·SHA:·415d32e1211c35d3bb405de1d6e51c2102c14cadc3333894f063148dbe0b1f69·...·]/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:·543,·SHA:·f199bafab360be9b80e9f45c5ba799a52348b742ddb0fa9afdb1624729c36e58·...·]/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.78.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:·687,·SHA:·7f5256104c35c5948a2cb42b55f3048c9d2887e48a4a8226537a284f959c562a·...·]/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.78.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"><a·class="src·rightside"·href="../../../src/core/iter/t[·...·truncated·by·diffoscope;·len:·296,·SHA:·aea014801138aeee574964545b1e9ad297288a120113db6844b569d2b183e0a7·...·]/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.78.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"><a·class="src·rightside"·href="[·...·truncated·by·diffoscope;·len:·392,·SHA:·4e7da68f7be2622ef173653eca78d58e1f202b544a2e6abd14d8335c298c93a7·...·]/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.78.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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(<a·class="primitive"·href="https://doc.rust-lang.org/1.78.0/core/primitive.reference.html">&amp;mut·St</a>,·Self::<a·class="associatedty[·...·truncated·by·diffoscope;·len:·449,·SHA:·f12c268a8a8111b9e7126ad78bf5523a63733caa63d187c4fe792309ea41acdf·...·]/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:·474,·SHA:·c0ed850df640319d919b8c053c540caa158602207623bed65abbcd69ad9d2c9d·...·]/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.78.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.78.0/core/iter/trai[·...·truncated·by·diffoscope;·len:·594,·SHA:·02960742fa7892efaa08f289ce85865fc5efb6a4cd138c22e3566ca6fc727d78·...·]/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.78.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.78.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:·4d1f54658fd1c005b101a2e27b0da3c6ee0cbe2d891660c65470bfec01fa46f6·...·]/core/iter/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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·976,·SHA:·2a9182f6fe88e0b8a9b1ae1f46cace940cc0b8736033c354c0f0ccbf1c196e7a·...·]/core/iter/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.78.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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;[Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtyp[·...·truncated·by·diffoscope;·len:·135,·SHA:·0b06a6094d42ccbc8bce5b01c4383961fe7f1967f05e4c9f1ff33e71e425fb26·...·]/core/primitive.array.html">N</a>])·-&gt;·R,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iter_map_windows</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/87155">#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.78.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"><a·class="src·rightside"·href="../../../src/core[·...·truncated·by·diffoscope;·len:·262,·SHA:·6125a8b2b88486b3735bbd00905fe9ae55b6eb1491c8a493be9c8121dc3cb440·...·]/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.78.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"><a·class="src·rightside"[·...·truncated·by·diffoscope;·len:·358,·SHA:·d91b2ab18e0ce069e262cf523c6ef961f56eecad042ea1e9bcefe33cff28fc8f·...·]/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:·601,·SHA:·bdf3796aa87e911258d56122ffdaa3f8591a5c9db4ed6fd89c3dfd3660787f78·...·]/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.78.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.78.0/core/op[·...·truncated·by·diffoscope;·len:·745,·SHA:·424783f22102f4446d3ad4d362b1aafdb7531fa777213f97ee138aa878f67bd1·...·]/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.78.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:·694,·SHA:·db4bb2630979aa4504432e8d422265d943c9063bcf3d2e3be970003014226f1e·...·]/core/primitive.reference.html">&amp;mut·Self</a><div·class="where">where68 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·838,·SHA:·9b4fd8df7f41e9a76fd4cfca0a233b74b9bd27c3fe8228248abc3f940425a3e3·...·]/core/primitive.reference.html">&amp;mut·Self</a><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:·331,·SHA:·d13641714c275840abbb473011613a4e19924a453f5e1b83912681a9b7c5579b·...·]/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.78.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.78.0/core/it[·...·truncated·by·diffoscope;·len:·427,·SHA:·ecfaaac5d1d10c1bc4fcee9a050af0a268bee0b528c2d8ea4e9774440bd8a279·...·]/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.78.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.78.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:·d76c3fcf86c63211032a6b22dc5924ef552b1ad26b12e19f15d2f1d5b3d7e394·...·]/core/primitive.reference.html">&amp;mut·E</a><div·class="where">where71 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.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.78.0/core/iter/tr[·...·truncated·by·diffoscope;·len:·728,·SHA:·01937c2dc314c259495665570ae249c94b4a5b0719718f5f1188e6fc64ecf487·...·]/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.78.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.78.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:·759,·SHA:·3cf174fac64a83c8e22066c3d77741118f89b13411537fc82c1004faa5c9e2ae·...·]/core/primitive.tuple.html">(B,·B)</a><div·class="where">where73 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experiment[·...·truncated·by·diffoscope;·len:·879,·SHA:·e773b2222c92d001e295030cb47a780ab0c1132d7fc8e9e3a98de4f532e6c520·...·]/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.78.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.78.0/core/default/trait.Default.html"·title="trait·core::default::Default">Default</a>·+·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/collect/trait.Extend.html"·title="trait·core::iter::traits::collec[·...·truncated·by·diffoscope;·len:·95,·SHA:·8b3be1d0042cae0550f865faf5849221240bdf04eb1b2107605b72d48c3ad29c·...·]/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:·281bbd5137cae68dd8057d013e9c9f311461e746663120304e3f6adace77f784·...·]/core/primitive.usize.html">usize</a><div·class="where">where76 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·995,·SHA:·bec3765fdab56713186e2454cd84738b5b28e3280a2f3d5a25cefdbc3089b520·...·]/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.78.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>·+·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/double_ended/trait.DoubleEndedIterator.html"·title="trait·core::iter::trai[·...·truncated·by·diffoscope;·len:·132,·SHA:·e5b2cf5f56946ede1e190ed09879c5821e2de04cf8e5d145142eeb40c6340982·...·]/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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(<a·class="primitive"·href="https://doc.rust-lang.org/1.78.0/core/primitive.reference.html">&amp;T</a>)·-&gt;·<a·class="primitive"·href="[·...·truncated·by·diffoscope;·len:·32,·SHA:·63d052a8ced32bf927ffadd7e884c08caf4970e85dfdf6be0e568d49b174da96·...·]/core/primitive.bool.html">bool</a>,</div></h4></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:·dc6a465df534b0392c5280e79e5249847890045561099b2cfc44bfabc4801d8d·...·]/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.78.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:·0c224636c18baa273f69de21f90083317f2ea0b7367a3f0d0f1c0ace55a36f79·...·]/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.78.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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·135,·SHA:·51ff5f5c7ebd8440623ea71b125c5a5837e809e308fe1a13fbe19cddb941dbd9·...·]/core/primitive.bool.html">bool</a>,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iter_is_partitioned</code>&nbsp;<a·href="https://github.com/rust-lang/rust/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:·bd8fce4ee431c619c98780c4d520e8db93f1e034f12843ffaff5744b7ce2190b·...·]/core/iter/traits/iterator/trait.Iterator.html#method.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.78.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:·2c74873f4e5ba70004a1c7edd1cc3f9e2d91271295dd1591e2d26848df4c02ba·...·]/core/iter/traits/iterator/trait.Iterator.html#method.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.78.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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(B,·Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.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.78.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:·7b4fc32e7634ae85c682a97099be267837713d7e4831893b617ca652f57a89da·...·]/core/iter/traits/iterator/trait.Iterator.html#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.78.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:·52912e82c4b0a760d06f77eb4ee3a59ba70dd76cb532954900c73ae94c652674·...·]/core/iter/traits/iterator/trait.Iterator.html#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.78.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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.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.78.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.78.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"><a·class="src·rightside"·href="../../../src/cor[·...·truncated·by·diffoscope;·len:·139,·SHA:·dc7fb7a70636459a0d7de28cbcb454050f39c184bab178c95c524a6eb9ca51cf·...·]/core/iter/traits/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.78.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"><a·class="src·rightside[·...·truncated·by·diffoscope;·len:·211,·SHA:·924e062acd8127e8d6158162219ee5d57a941854e14063d21d7768edae549431·...·]/core/iter/traits/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.78.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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(B,·Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::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:·2c738ecc68200afa2467bef085de14dcb642dbaac77c4529948f5e259e66691d·...·]/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.78.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:·b60215068a6d9721be05f81098c51167d7138c4042f140cad42f77c4df43f597·...·]/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.78.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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·352,·SHA:·e7c3c296abe2c0a183967153e4ae7fd50bafa2ae7088e3e78b3b48fee253adc6·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::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:·c3f1d50e276def36966943119961a20b09cab3be33483fe4d48d7f322489534b·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_reduce"·class="fn">try_reduce</a>&lt;F,·R&gt;(98 operation.·<a·href="https://doc.rust-lang.org/1.78.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:·7a18fdd041b1a001b4a8feb289ee127fd9240232239269eb35dc3b8f74783ec9·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_reduce"·class="fn">try_reduce</a>&lt;F,·R&gt;(
99 ····&amp;mut·self,99 ····&amp;mut·self,
100 ····f:·F100 ····f:·F
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.78.0/core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&gt;::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/ops/try_trait/trait.Try.html#associatedtype.Residual"·title="type[·...·truncated·by·diffoscope;·len:·754,·SHA:·6fb4dfdb6b4da68921c1e7f8b75d99cf293d58318d684a840254ce9576957bea·...·]/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.78.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:·68,·SHA:·e7e11f257edcac749a5883ad9a3aa42e6e965be419f967b36caa7afd3b36d7c9·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·R,103 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·140,·SHA:·c27972e6fa3464c9476eaa185e8657edb6bb294f148403f3d079285294a9f909·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·R,
104 ····R:·<a·class="trait"·href="../../../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.78.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.78.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.78.0/core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&gt;::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/ops/try_trait/trait.Try.html#associatedtype.Residual"·title="type[·...·truncated·by·diffoscope;·len:·412,·SHA:·22b8cbb007e5cce82b9d13a65bfa56aa8d83c32541fac25f4d9b3857b0540908·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;&gt;,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iterator_try_reduce</code>&nbsp;<a·href="https://github.com/rust-lang/rust/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"><a·class="src·rightside"·href="../../../src/core/i[·...·truncated·by·diffoscope;·len:·284,·SHA:·fbacd9a305d3a60d42d9adcc5ea9e5f579f4ff5d970999f333eaf0c7f9baf66c·...·]/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.78.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"><a·class="src·rightside"·h[·...·truncated·by·diffoscope;·len:·380,·SHA:·29c4004d4d8b0c8c9dfe9023f8b2c5ef801d9dc4688893035d182c1ae774c453·...·]/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.78.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:·754,·SHA:·e3afac523bd4c054d94fbbb6c5c856ac78a6359550526fa0726732b36529c33d·...·]/core/primitive.bool.html">bool</a><div·class="where">where108 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·922,·SHA:·f4fd532c280e18f28bd6dda6c2a129e2e92114b67f27235bb5fd39f725be9c43·...·]/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.78.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:·884,·SHA:·32570d141a71827f9ac19bf566a51ca4814ccafaf6f8a961920ce107fe9657d7·...·]/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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·1076,·SHA:·2dd9de8adaee4a5ee96501d9a58bfac2fea00ba8d78b834bfca29949b3afe18b·...·]/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.78.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:·f441e2966ff8db4214e57fcd74f81262d6e371aa51cea97ebde5921e81b4da79·...·]/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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·1051,·SHA:·ecc0b8fccd861464760f9ae047ff6ab98c91a1db010cb5fa59a8c2ab883db7c4·...·]/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.78.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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·130,·SHA:·130a13019dc175d02304b4f550157e2f13ac15c2f25a979c74161d10b146ab89·...·]/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:·ec4fb002625b166504031522e52a66812b279e6735a67cb718813205909c3fb7·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_find"·class="fn">try_find</a>&lt;F,·R&gt;(115 the·first·non-none·result.·<a·href="https://doc.rust-lang.org/1.78.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:·8ced1b10e78750774c5c8ed995ed83dcd13983aa75d329acf8069da106ab9f4a·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_find"·class="fn">try_find</a>&lt;F,·R&gt;(
116 ····&amp;mut·self,116 ····&amp;mut·self,
117 ····f:·F117 ····f:·F
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.78.0/core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&gt;::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/ops/try_trait/trait.Try.html#associatedtype.Residual"·title="type[·...·truncated·by·diffoscope;·len:·626,·SHA:·95f9831257b68862cbcbf54f0ad2ff4e597a4c9f763112d1da8a0897dadcf872·...·]/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.78.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;·R,120 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·R,
121 ····R:·<a·class="trait"·href="../../../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.78.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.78.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</[·...·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·returns122 ····&lt;R·as·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&gt;::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/ops/try_trait/trait.Try.html#associatedtype.Residual"·title="type[·...·truncated·by·diffoscope;·len:·412,·SHA:·22b8cbb007e5cce82b9d13a65bfa56aa8d83c32541fac25f4d9b3857b0540908·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;&gt;,</div></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"><a·class="src·rightside"·href="../../../src/cor[·...·truncated·by·diffoscope;·len:·419,·SHA:·4337d283573b9683aaa605a7d2417318ef2a03902876e7da2ec26f2a5febf794·...·]/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.78.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"><a·class="src·rightside[·...·truncated·by·diffoscope;·len:·539,·SHA:·04e329705f11ed9ec269a68b0b75ac4ab26c78e4316a571ee9336c28bbca6359·...·]/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.78.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::Iter[·...·truncated·by·diffoscope;·len:·901,·SHA:·a6eb7314148a1006184790a26873440fac678952c99874de84cb66644e250c0b·...·]/core/primitive.usize.html">usize</a>&gt;<div·class="where">where125 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·1093,·SHA:·623dbacabfe45799103c799fb60a4d212ceb8759ff853a11209a07793257c9cd·...·]/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::Iter[·...·truncated·by·diffoscope;·len:·63,·SHA:·852041c2de8156fdddf9f71111c5ddf1a6b88aabd8c082f1a254f0b21c18ffa1·...·]/core/primitive.bool.html">bool</a>,126 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·135,·SHA:·51ff5f5c7ebd8440623ea71b125c5a5837e809e308fe1a13fbe19cddb941dbd9·...·]/core/primitive.bool.html">bool</a>,
Max diff block lines reached; 87821/315524 bytes (27.83%) of diff not shown.
303 KB
./usr/share/doc/rust-web-doc/html/alloc/collections/linked_list/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·`LinkedList`."><title>Iter·in·alloc::collections::linked_list·-·Rust</title><script>·if·(window.location.protocol·!==·"file:")·document.write(`<link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../../static.files/SourceSerif4-Regular-46f98efaafac5295.ttf.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../../static.files/FiraSans-Regular-018c141bf0843ffd.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../../static.files/FiraSans-Medium-8f9a781e4970d388.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../../static.files/SourceCodePro-Regular-562dcc5011b6de7d.ttf.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../../static.files/SourceCodePro-Semibold-d899c5a5c4aeb14a.ttf.woff2">`)</script><link·rel="stylesheet"·href="../../../static.files/normalize-76eba96aa4d2e634.css"><link·rel="stylesheet"·href="../../../static.files/rustdoc-35f9e32502181f1e.css"><meta·name="rustdoc-vars"·data-root-path="../../../"·data-static-root-path="../../../static.files/"·data-current-crate="alloc"·data-themes=""·data-resource-suffix="1.78.0"·data-rustdoc-version="1.78.0"·data-channel="1.78.0"·data-search-js="search-42d8da7a6b9792c2.js"·data-settings-js="settings-4313503d2e1961c2.js"·><script·src="../../../static.files/storage-4c98445ec4002617.js"></script><script·defer·src="sidebar-items1.78.0.js"></script><script·defer·src="../../../static.files/main-12cf3b4f4f9dc36d.js"></script><noscript><link·rel="stylesheet"·href="../../../static.files/noscript-04d5337699b92874.css"></noscript><link·rel="alternate·icon"·type="image/png"·href="../../../static.files/favicon-16x16-8b506e7a72182f1c.png"><link·rel="alternate·icon"·type="image/png"·href="../../../static.files/favicon-32x32-422f7d1d52889060.png"><link·rel="icon"·type="image/svg+xml"·href="../../../static.files/favicon-2c020d218678b618.svg"></head><body·class="rustdoc·struct"><!--[if·lte·IE·11]><div·class="warning">This·old·browser·is·unsupported·and·will·most·likely·display·funky·things.</div><![endif]--><nav·class="mobile-topbar"><button·class="sidebar-menu-toggle"·title="show·sidebar"></button><a·class="logo-container"·href="../../../alloc/index.html"><img·class="rust-logo"·src="../../../static.files/rust-logo-151179464ae7ed46.svg"·alt=""></a></nav><nav·class="sidebar"><div·class="sidebar-crate"><a·class="logo-container"·href="../../../alloc/index.html"><img·class="rust-logo"·src="../../../static.files/rust-logo-151179464ae7ed46.svg"·alt="logo"></a><h2><a·href="../../../alloc/index.html">alloc</a><span·class="version">1.78.0</span></h2></div><h2·class="location"><a·href="#">Iter</a></h2><div·class="sidebar-elems"><section><h3><a·href="#trait-implementations">Trait·Implementations</a></h3><ul·class="block·trait-implementation"><li><a·href="#impl-Clone-for-Iter%3C'_,+T%3E">Clone</a></li><li><a·href="#impl-Debug-for-Iter%3C'_,+T%3E">Debug</a></li><li><a·href="#impl-Default-for-Iter%3C'_,+T%3E">Default</a></li><li><a·href="#impl-DoubleEndedIterator-for-Iter%3C'a,+T%3E">DoubleEndedIterator</a></li><li><a·href="#impl-ExactSizeIterator-for-Iter%3C'_,+T%3E">ExactSizeIterator</a></li><li><a·href="#impl-FusedIterator-for-Iter%3C'_,+T%3E">FusedIterator</a></li><li><a·href="#impl-Iterator-for-Iter%3C'a,+T%3E">Iterator</a></li><li><a·href="#impl-Send-for-Iter%3C'_,+T%3E">Send</a></li><li><a·href="#impl-Sync-for-Iter%3C'_,+T%3E">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">Freeze</a></li><li><a·href="#impl-RefUnwindSafe-for-Iter%3C'a,+T%3E">RefUnwindSafe</a></li><li><a·href="#impl-Unpin-for-Iter%3C'a,+T%3E">Unpin</a></li><li><a·href="#impl-UnwindSafe-for-Iter%3C'a,+T%3E">UnwindSafe</a></li></ul><h3><a·href="#blanket-implementations">Blanket·Implementations</a></h3><ul·class="block·blanket-implementation"><li><a·href="#impl-Any-for-T">Any</a></li><li><a·href="#impl-Borrow%3CT%3E-for-T">Borrow&lt;T&gt;</a></li><li><a·href="#impl-BorrowMut%3CT%3E-for-T">BorrowMut&lt;T&gt;</a></li><li><a·href="#impl-From%3CT%3E-for-T">From&lt;T&gt;</a></li><li><a·href="#impl-Into%3CU%3E-for-T">Into&lt;U&gt;</a></li><li><a·href="#impl-IntoIterator-for-I">IntoIterator</a></li><li><a·href="#impl-ToOwned-for-T">ToOwned</a></li><li><a·href="#impl-TryFrom%3CU%3E-for-T">TryFrom&lt;U&gt;</a></li><li><a·href="#impl-TryInto%3CU%3E-for-T">TryInto&lt;U&gt;</a></li></ul></section><h2><a·href="index.html">In·alloc::collections::linked_list</a></h2></div></nav><div·class="sidebar-resizer"></div>1 <!DOCTYPE·html><html·lang="en"><head><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.write(`<link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../../static.files/SourceSerif4-Regular-46f98efaafac5295.ttf.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../../static.files/FiraSans-Regular-018c141bf0843ffd.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../../static.files/FiraSans-Medium-8f9a781e4970d388.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../../static.files/SourceCodePro-Regular-562dcc5011b6de7d.ttf.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../../static.files/SourceCodePro-Semibold-d899c5a5c4aeb14a.ttf.woff2">`)</script><link·rel="stylesheet"·href="../../../static.files/normalize-76eba96aa4d2e634.css"><link·rel="stylesheet"·href="../../../static.files/rustdoc-35f9e32502181f1e.css"><meta·name="rustdoc-vars"·data-root-path="../../../"·data-static-root-path="../../../static.files/"·data-current-crate="alloc"·data-themes=""·data-resource-suffix="1.78.0"·data-rustdoc-version="1.78.0"·data-channel="1.78.0"·data-search-js="search-42d8da7a6b9792c2.js"·data-settings-js="settings-4313503d2e1961c2.js"·><script·src="../../../static.files/storage-4c98445ec4002617.js"></script><script·defer·src="sidebar-items1.78.0.js"></script><script·defer·src="../../../static.files/main-12cf3b4f4f9dc36d.js"></script><noscript><link·rel="stylesheet"·href="../../../static.files/noscript-04d5337699b92874.css"></noscript><link·rel="alternate·icon"·type="image/png"·href="../../../static.files/favicon-16x16-8b506e7a72182f1c.png"><link·rel="alternate·icon"·type="image/png"·href="../../../static.files/favicon-32x32-422f7d1d52889060.png"><link·rel="icon"·type="image/svg+xml"·href="../../../static.files/favicon-2c020d218678b618.svg"></head><body·class="rustdoc·struct"><!--[if·lte·IE·11]><div·class="warning">This·old·browser·is·unsupported·and·will·most·likely·display·funky·things.</div><![endif]--><nav·class="mobile-topbar"><button·class="sidebar-menu-toggle"·title="show·sidebar"></button><a·class="logo-container"·href="../../../alloc/index.html"><img·class="rust-logo"·src="../../../static.files/rust-logo-151179464ae7ed46.svg"·alt=""></a></nav><nav·class="sidebar"><div·class="sidebar-crate"><a·class="logo-container"·href="../../../alloc/index.html"><img·class="rust-logo"·src="../../../static.files/rust-logo-151179464ae7ed46.svg"·alt="logo"></a><h2><a·href="../../../alloc/index.html">alloc</a><span·class="version">1.78.0</span></h2></div><h2·class="location"><a·href="#">Iter</a></h2><div·class="sidebar-elems"><section><h3><a·href="#trait-implementations">Trait·Implementations</a></h3><ul·class="block·trait-implementation"><li><a·href="#impl-Clone-for-Iter%3C'_,+T%3E">Clone</a></li><li><a·href="#impl-Debug-for-Iter%3C'_,+T%3E">Debug</a></li><li><a·href="#impl-Default-for-Iter%3C'_,+T%3E">Default</a></li><li><a·href="#impl-DoubleEndedIterator-for-Iter%3C'a,+T%3E">DoubleEndedIterator</a></li><li><a·href="#impl-ExactSizeIterator-for-Iter%3C'_,+T%3E">ExactSizeIterator</a></li><li><a·href="#impl-FusedIterator-for-Iter%3C'_,+T%3E">FusedIterator</a></li><li><a·href="#impl-Iterator-for-Iter%3C'a,+T%3E">Iterator</a></li><li><a·href="#impl-Send-for-Iter%3C'_,+T%3E">Send</a></li><li><a·href="#impl-Sync-for-Iter%3C'_,+T%3E">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">Freeze</a></li><li><a·href="#impl-RefUnwindSafe-for-Iter%3C'a,+T%3E">RefUnwindSafe</a></li><li><a·href="#impl-Unpin-for-Iter%3C'a,+T%3E">Unpin</a></li><li><a·href="#impl-UnwindSafe-for-Iter%3C'a,+T%3E">UnwindSafe</a></li></ul><h3><a·href="#blanket-implementations">Blanket·Implementations</a></h3><ul·class="block·blanket-implementation"><li><a·href="#impl-Any-for-T">Any</a></li><li><a·href="#impl-Borrow%3CT%3E-for-T">Borrow&lt;T&gt;</a></li><li><a·href="#impl-BorrowMut%3CT%3E-for-T">BorrowMut&lt;T&gt;</a></li><li><a·href="#impl-From%3CT%3E-for-T">From&lt;T&gt;</a></li><li><a·href="#impl-Into%3CU%3E-for-T">Into&lt;U&gt;</a></li><li><a·href="#impl-IntoIterator-for-I">IntoIterator</a></li><li><a·href="#impl-ToOwned-for-T">ToOwned</a></li><li><a·href="#impl-TryFrom%3CU%3E-for-T">TryFrom&lt;U&gt;</a></li><li><a·href="#impl-TryInto%3CU%3E-for-T">TryInto&lt;U&gt;</a></li></ul></section><h2><a·href="index.html">In·alloc::collections::linked_list</a></h2></div></nav><div·class="sidebar-resizer"></div>
2 ····<main><div·class="width-limiter"><nav·class="sub"><form·class="search-form"><span></span><div·id="sidebar-button"·tabindex="-1"><a·href="../../../alloc/all.html"·title="show·sidebar"></a></div><input·class="search-input"·name="search"·aria-label="Run·search·in·the·documentation"·autocomplete="off"·spellcheck="false"·placeholder="Click·or·press·‘S’·to·search,·‘?’·for·more·options…"·type="search"><div·id="help-button"·tabindex="-1"><a·href="../../../help.html"·title="help">?</a></div><div·id="settings-menu"·tabindex="-1"><a·href="../../../settings.html"·title="settings"><img·width="22"·height="22"·alt="Change·settings"·src="../../../static.files/wheel-7b819b6101059cd0.svg"></a></div></form></nav><section·id="main-content"·class="content"><div·class="main-heading"><h1>Struct·<a·href="../../index.html">alloc</a>::<wbr><a·href="../index.html">collections</a>::<wbr><a·href="index.html">linked_list</a>::<wbr><a·class="struct"·href="#">Iter</a><button·id="copy-path"·title="Copy·item·path·to·clipboard"><img·src="../../../static.files/clipboard-7571035ce49a181d.svg"·width="19"·height="18"·alt="Copy·item·path"></button></h1><span·class="out-of-band"><span·class="since"·title="Stable·since·Rust·version·1.0.0">1.0.0</span>···<a·class="src"·href="../../../src/alloc/collections/linked_list.rs.html#74-79">source</a>···<button·id="toggle-all-docs"·title="collapse·all·docs">[<span>&#x2212;</span>]</button></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 ····<main><div·class="width-limiter"><nav·class="sub"><form·class="search-form"><span></span><div·id="sidebar-button"·tabindex="-1"><a·href="../../../alloc/all.html"·title="show·sidebar"></a></div><input·class="search-input"·name="search"·aria-label="Run·search·in·the·documentation"·autocomplete="off"·spellcheck="false"·placeholder="Click·or·press·‘S’·to·search,·‘?’·for·more·options…"·type="search"><div·id="help-button"·tabindex="-1"><a·href="../../../help.html"·title="help">?</a></div><div·id="settings-menu"·tabindex="-1"><a·href="../../../settings.html"·title="settings"><img·width="22"·height="22"·alt="Change·settings"·src="../../../static.files/wheel-7b819b6101059cd0.svg"></a></div></form></nav><section·id="main-content"·class="content"><div·class="main-heading"><h1>Struct·<a·href="../../index.html">alloc</a>::<wbr><a·href="../index.html">collections</a>::<wbr><a·href="index.html">linked_list</a>::<wbr><a·class="struct"·href="#">Iter</a><button·id="copy-path"·title="Copy·item·path·to·clipboard"><img·src="../../../static.files/clipboard-7571035ce49a181d.svg"·width="19"·height="18"·alt="Copy·item·path"></button></h1><span·class="out-of-band"><span·class="since"·title="Stable·since·Rust·version·1.0.0">1.0.0</span>···<a·class="src"·href="../../../src/alloc/collections/linked_list.rs.html#74-79">source</a>···<button·id="toggle-all-docs"·title="collapse·all·docs">[<span>&#x2212;</span>]</button></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>
3 <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·its3 <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
4 documentation·for·more.</p>4 documentation·for·more.</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-Iter%3C'_,+T%3E"·class="impl"><a·class="src·rightside"·href="../../../src/alloc/collections/linked_list.rs.html#99-103">source</a><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:·3749,·SHA:·c5fca3407bed09fea350c77894b072f0624d9ff83a093740e6e046fa212526e7·...·]/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></details><h2·id="trait-implementations"·class="section-header">Trait·Implementations<a·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"><a·class="src·rightside"·href="../../../src/alloc/collections/linked_list.rs.html#99-103">source</a><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.78.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:·0cdaaf413abf13936b1afa915cd1259b7c51120c46a975e7424941c41dd66b31·...·]/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>
  
6 <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 <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();
7 <span·class="macro">assert_eq!</span>(iter.len(),·<span·class="number">0</span>);</code></pre><a·class="test-arrow"·target="_blank"·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">Run</a></div>7 <span·class="macro">assert_eq!</span>(iter.len(),·<span·class="number">0</span>);</code></pre><a·class="test-arrow"·target="_blank"·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">Run</a></div>
8 </div></details></div></details><details·class="toggle·implementors-toggle"·open><summary><section·id="impl-DoubleEndedIterator-for-Iter%3C'a,+T%3E"·class="impl"><a·class="src·rightside"·href="../../../src/alloc/collections/linked_list.rs.html#1220-1235">source</a><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:·e532b5a110968e67bb797a34334d306a63ce8d0879a64dd5901e3fe2db681648·...·]/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-Iter%3C'a,+T%3E"·class="impl"><a·class="src·rightside"·href="../../../src/alloc/collections/linked_list.rs.html#1220-1235">source</a><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.78.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:·c63ed8b756a863eb837be33e79ce20fa57ffbf52f06f3ee3b897102adde98709·...·]/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.78.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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(B,·Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.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.78.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.7[·...·truncated·by·diffoscope;·len:·3,·SHA:·7b1bd53949b752d143d871408483b5382371b5bc48d195d0c040ec93cfa2748b·...·]/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:·b3a5d6383debff0cac836c5889a757f11b019bc049778c518e60e4d37a3c4da1·...·]/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.78.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:·d66ed7e195a53e9945339ef1976aed455dcf80228d8e5b7b0c69a64c3983fea1·...·]/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.78.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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(B,·Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/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:·d11fd274e41827c1daee0c80a6ab5f978a613ab26297cb460535fef32cff8551·...·]/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.78.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:·c264047794019a6dcf05728ba6a6ee1f8f07c7209958b3366ba94546b527ecdc·...·]/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.78.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:·6748,·SHA:·718af925ce7b8ed81b0f534451a3924866e9f039af79437bfb627d3d5babf291·...·]/core/primitive.usize.html">usize</a>&gt;(17 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·7516,·SHA:·0a260ffbd455ddaf6c7bee54a2a253c41000afa8cc756ac13ac4074360bc3f25·...·]/core/primitive.usize.html">usize</a>&gt;(
18 ····&amp;mut·self18 ····&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.78.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.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title=[·...·truncated·by·diffoscope;·len:·381,·SHA:·88c48923c9b7ea5cc47c1087c60e09656e81d4671c58071ba2bef826335388bc·...·]/core/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:·746,·SHA:·99cc415a31b91c57f7eeb82ad0d2d1ba424489bee49de37c86a4ea21c663ccda·...·]/core/primitive.usize.html">usize</a><div·class="where">where20 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experiment[·...·truncated·by·diffoscope;·len:·866,·SHA:·945d2d86f0c4c5ca3e3ee3b181d18b2bbea57ee1a5a7efe16c0c915a5bf2c3ad·...·]/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:·2953,·SHA:·2e5656679d63218ae5d5d1b1a4dfc8d59cd28ba505be6dd08ba60caae9804629·...·]/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.78.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:·3433,·SHA:·49d1274908fa1d1e8e571a7a381dde77211770148791bbfb1cd851b4f911e155·...·]/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.78.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"><a·class="src·rightside"·href="../../../src/core/it[·...·truncated·by·diffoscope;·len:·602,·SHA:·cfe4c4d300dddc2abdc2f8194eb969c68b2240c28239969b5be2af6a564ed8cc·...·]/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.78.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"><a·class="src·rightside"·hr[·...·truncated·by·diffoscope;·len:·746,·SHA:·f1f70d650c102c8658e13890c7dbfc87418f07e7b522246fb579ec434ef64f7c·...·]/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.78.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:·1041,·SHA:·a281d174c9671021427f0b458ac94e87746ac44730475aa725652c6c15e2b972·...·]/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.78.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.78.0/core/iter/traits/it[·...·truncated·by·diffoscope;·len:·1233,·SHA:·f677df2d893dfe0dc1a9d31ebb0ba71a346d265781813e0d664d3f18369b6163·...·]/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.78.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:·b9001dd3131b1425179c94853e1b90fff0f7169b9570e86cd50c6b7fbf1ee8a5·...·]/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.78.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:·98627729f77dcf1c9d258f343354ba600b7134c6b3929080f231e8de7155b70b·...·]/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.78.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.78.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.78.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"><a·class="src·rightside"·href="../../../src/[·...·truncated·by·diffoscope;·len:·279,·SHA:·f2c34c2e64e77c66684f837812ebc4a94c81b2ad5862cc0131f80c3ce89e008a·...·]/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.78.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"><a·class="src·rights[·...·truncated·by·diffoscope;·len:·375,·SHA:·58419346f92e1709dadb70cc3cf356e3cd27972451bdc6b4fc4267e6f7e8bdae·...·]/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.78.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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::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:·d75758e0f8262eeea27445cec43f13d84f0c02ba4e03c0c54d041f9ab1965e0f·...·]/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.78.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:·98f6effefa44d759c249143d83623f0055d937382bfc398b7e1f5e92cd413657·...·]/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.78.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:·676,·SHA:·9ae42ed293737a3dd44c1ee9d98c6aabb1552fbb9d203cb852ee9fcc7834a6ca·...·]/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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·820,·SHA:·a664bbcbc0891663662e4eb7b4394d0fcd72e568136fc4d34097fea242cc32e7·...·]/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.78.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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·140,·SHA:·752f473b57e7444ebfddf5ea7fd40a332e83ec55524a6c31b5ee0f82a5dea819·...·]/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"><a·class="src·rightside"·href="../../../src/cor[·...·truncated·by·diffoscope;·len:·297,·SHA:·f01e44d4caf6c6ad80b37656b9300f7111340711dcd74d70867b5a652dbfb538·...·]/core/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.78.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"><a·class="src·rightside[·...·truncated·by·diffoscope;·len:·393,·SHA:·2e2aa7c9c9c087e7b346da376749064ab8c1894795a2f0a0f646cdc8c7bea997·...·]/core/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.78.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:·788,·SHA:·b788f412af946d2bd7646ba39a8c316ebfa88109f9626dbad9bf9964f975cd0c·...·]/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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·956,·SHA:·faba0521e870dbbd26d466fadba3522e7d29013a9b86376fffafffac11a57e0e·...·]/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.78.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"><a·class="src·rightside"·href="../../../src/co[·...·truncated·by·diffoscope;·len:·276,·SHA:·e337ee1b810d3ec0480569c4ed323ebf0a2315c8ae3c522a73fcca3aa8e6efb3·...·]/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.78.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"><a·class="src·rightsid[·...·truncated·by·diffoscope;·len:·372,·SHA:·03eea0861575eb80d3f7a87a3ba747adb1a33fe7e9ce72aa2172e7a287c63a94·...·]/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.78.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.78.0/core/iter/adapte[·...·truncated·by·diffoscope;·len:·175,·SHA:·16fe7225bf05b478e2828b347c3d23ded9a22f89d8887a2c65d9f7b3faf1b0e7·...·]/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"><a·class="src·rightside"·href="../../../src/c[·...·truncated·by·diffoscope;·len:·306,·SHA:·a9bc004bf639fa188165a336061c6c98ec7ff9d266a18f10db200dfa9a880b88·...·]/core/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.78.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"><a·class="src·rightsi[·...·truncated·by·diffoscope;·len:·402,·SHA:·7689a974f800fd069d1b4453ef62d6d6ad1b654462d624d36e3672051d502030·...·]/core/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.78.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:·946,·SHA:·877b8718d9df1464a912dd50eef16402225367db4e4b26484b5ee20d30644524·...·]/core/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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·1138,·SHA:·f6ae06b7de8e94df014341c5cf589a5e4a1298367b2ef7a968ec499c5170a70e·...·]/core/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.78.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:·552b3dd2132886d024e4d5bd2554611e25c1f068adaaf23ecf80da81d31997ef·...·]/core/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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·1058,·SHA:·b390dbdda8d7e93604b5ecd906a93efd03fe19bdaf41cf12893fd361bf974307·...·]/core/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.78.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:·875,·SHA:·5c5c44422f75cbb66ebcf54bea70536713b810843cc484b051aed088c6422d78·...·]/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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·1067,·SHA:·415d32e1211c35d3bb405de1d6e51c2102c14cadc3333894f063148dbe0b1f69·...·]/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:·543,·SHA:·f199bafab360be9b80e9f45c5ba799a52348b742ddb0fa9afdb1624729c36e58·...·]/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.78.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:·687,·SHA:·7f5256104c35c5948a2cb42b55f3048c9d2887e48a4a8226537a284f959c562a·...·]/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.78.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"><a·class="src·rightside"·href="../../../src/core/iter/t[·...·truncated·by·diffoscope;·len:·296,·SHA:·aea014801138aeee574964545b1e9ad297288a120113db6844b569d2b183e0a7·...·]/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.78.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"><a·class="src·rightside"·href="[·...·truncated·by·diffoscope;·len:·392,·SHA:·4e7da68f7be2622ef173653eca78d58e1f202b544a2e6abd14d8335c298c93a7·...·]/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.78.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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(<a·class="primitive"·href="https://doc.rust-lang.org/1.78.0/core/primitive.reference.html">&amp;mut·St</a>,·Self::<a·class="associatedty[·...·truncated·by·diffoscope;·len:·449,·SHA:·f12c268a8a8111b9e7126ad78bf5523a63733caa63d187c4fe792309ea41acdf·...·]/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:·474,·SHA:·c0ed850df640319d919b8c053c540caa158602207623bed65abbcd69ad9d2c9d·...·]/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.78.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.78.0/core/iter/trai[·...·truncated·by·diffoscope;·len:·594,·SHA:·02960742fa7892efaa08f289ce85865fc5efb6a4cd138c22e3566ca6fc727d78·...·]/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.78.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.78.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:·4d1f54658fd1c005b101a2e27b0da3c6ee0cbe2d891660c65470bfec01fa46f6·...·]/core/iter/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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·976,·SHA:·2a9182f6fe88e0b8a9b1ae1f46cace940cc0b8736033c354c0f0ccbf1c196e7a·...·]/core/iter/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.78.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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;[Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtyp[·...·truncated·by·diffoscope;·len:·135,·SHA:·0b06a6094d42ccbc8bce5b01c4383961fe7f1967f05e4c9f1ff33e71e425fb26·...·]/core/primitive.array.html">N</a>])·-&gt;·R,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iter_map_windows</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/87155">#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.78.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"><a·class="src·rightside"·href="../../../src/core[·...·truncated·by·diffoscope;·len:·262,·SHA:·6125a8b2b88486b3735bbd00905fe9ae55b6eb1491c8a493be9c8121dc3cb440·...·]/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.78.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"><a·class="src·rightside"[·...·truncated·by·diffoscope;·len:·358,·SHA:·d91b2ab18e0ce069e262cf523c6ef961f56eecad042ea1e9bcefe33cff28fc8f·...·]/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:·601,·SHA:·bdf3796aa87e911258d56122ffdaa3f8591a5c9db4ed6fd89c3dfd3660787f78·...·]/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.78.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.78.0/core/op[·...·truncated·by·diffoscope;·len:·745,·SHA:·424783f22102f4446d3ad4d362b1aafdb7531fa777213f97ee138aa878f67bd1·...·]/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.78.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:·694,·SHA:·db4bb2630979aa4504432e8d422265d943c9063bcf3d2e3be970003014226f1e·...·]/core/primitive.reference.html">&amp;mut·Self</a><div·class="where">where67 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·838,·SHA:·9b4fd8df7f41e9a76fd4cfca0a233b74b9bd27c3fe8228248abc3f940425a3e3·...·]/core/primitive.reference.html">&amp;mut·Self</a><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:·331,·SHA:·d13641714c275840abbb473011613a4e19924a453f5e1b83912681a9b7c5579b·...·]/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.78.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.78.0/core/it[·...·truncated·by·diffoscope;·len:·427,·SHA:·ecfaaac5d1d10c1bc4fcee9a050af0a268bee0b528c2d8ea4e9774440bd8a279·...·]/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.78.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.78.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:·d76c3fcf86c63211032a6b22dc5924ef552b1ad26b12e19f15d2f1d5b3d7e394·...·]/core/primitive.reference.html">&amp;mut·E</a><div·class="where">where70 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.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.78.0/core/iter/tr[·...·truncated·by·diffoscope;·len:·728,·SHA:·01937c2dc314c259495665570ae249c94b4a5b0719718f5f1188e6fc64ecf487·...·]/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.78.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.78.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:·759,·SHA:·3cf174fac64a83c8e22066c3d77741118f89b13411537fc82c1004faa5c9e2ae·...·]/core/primitive.tuple.html">(B,·B)</a><div·class="where">where72 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experiment[·...·truncated·by·diffoscope;·len:·879,·SHA:·e773b2222c92d001e295030cb47a780ab0c1132d7fc8e9e3a98de4f532e6c520·...·]/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.78.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.78.0/core/default/trait.Default.html"·title="trait·core::default::Default">Default</a>·+·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/collect/trait.Extend.html"·title="trait·core::iter::traits::collec[·...·truncated·by·diffoscope;·len:·95,·SHA:·8b3be1d0042cae0550f865faf5849221240bdf04eb1b2107605b72d48c3ad29c·...·]/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:·281bbd5137cae68dd8057d013e9c9f311461e746663120304e3f6adace77f784·...·]/core/primitive.usize.html">usize</a><div·class="where">where75 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·995,·SHA:·bec3765fdab56713186e2454cd84738b5b28e3280a2f3d5a25cefdbc3089b520·...·]/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.78.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>·+·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/double_ended/trait.DoubleEndedIterator.html"·title="trait·core::iter::trai[·...·truncated·by·diffoscope;·len:·132,·SHA:·e5b2cf5f56946ede1e190ed09879c5821e2de04cf8e5d145142eeb40c6340982·...·]/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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(<a·class="primitive"·href="https://doc.rust-lang.org/1.78.0/core/primitive.reference.html">&amp;T</a>)·-&gt;·<a·class="primitive"·href="[·...·truncated·by·diffoscope;·len:·32,·SHA:·63d052a8ced32bf927ffadd7e884c08caf4970e85dfdf6be0e568d49b174da96·...·]/core/primitive.bool.html">bool</a>,</div></h4></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:·dc6a465df534b0392c5280e79e5249847890045561099b2cfc44bfabc4801d8d·...·]/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.78.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:·0c224636c18baa273f69de21f90083317f2ea0b7367a3f0d0f1c0ace55a36f79·...·]/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.78.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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·135,·SHA:·51ff5f5c7ebd8440623ea71b125c5a5837e809e308fe1a13fbe19cddb941dbd9·...·]/core/primitive.bool.html">bool</a>,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iter_is_partitioned</code>&nbsp;<a·href="https://github.com/rust-lang/rust/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:·bd8fce4ee431c619c98780c4d520e8db93f1e034f12843ffaff5744b7ce2190b·...·]/core/iter/traits/iterator/trait.Iterator.html#method.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.78.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:·2c74873f4e5ba70004a1c7edd1cc3f9e2d91271295dd1591e2d26848df4c02ba·...·]/core/iter/traits/iterator/trait.Iterator.html#method.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.78.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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(B,·Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.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.78.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:·7b4fc32e7634ae85c682a97099be267837713d7e4831893b617ca652f57a89da·...·]/core/iter/traits/iterator/trait.Iterator.html#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.78.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:·52912e82c4b0a760d06f77eb4ee3a59ba70dd76cb532954900c73ae94c652674·...·]/core/iter/traits/iterator/trait.Iterator.html#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.78.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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.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.78.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.78.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"><a·class="src·rightside"·href="../../../src/cor[·...·truncated·by·diffoscope;·len:·139,·SHA:·dc7fb7a70636459a0d7de28cbcb454050f39c184bab178c95c524a6eb9ca51cf·...·]/core/iter/traits/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.78.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"><a·class="src·rightside[·...·truncated·by·diffoscope;·len:·211,·SHA:·924e062acd8127e8d6158162219ee5d57a941854e14063d21d7768edae549431·...·]/core/iter/traits/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.78.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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(B,·Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::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:·2c738ecc68200afa2467bef085de14dcb642dbaac77c4529948f5e259e66691d·...·]/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.78.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:·b60215068a6d9721be05f81098c51167d7138c4042f140cad42f77c4df43f597·...·]/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.78.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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·352,·SHA:·e7c3c296abe2c0a183967153e4ae7fd50bafa2ae7088e3e78b3b48fee253adc6·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::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:·c3f1d50e276def36966943119961a20b09cab3be33483fe4d48d7f322489534b·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_reduce"·class="fn">try_reduce</a>&lt;F,·R&gt;(97 operation.·<a·href="https://doc.rust-lang.org/1.78.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:·7a18fdd041b1a001b4a8feb289ee127fd9240232239269eb35dc3b8f74783ec9·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_reduce"·class="fn">try_reduce</a>&lt;F,·R&gt;(
98 ····&amp;mut·self,98 ····&amp;mut·self,
99 ····f:·F99 ····f:·F
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.78.0/core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&gt;::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/ops/try_trait/trait.Try.html#associatedtype.Residual"·title="type[·...·truncated·by·diffoscope;·len:·754,·SHA:·6fb4dfdb6b4da68921c1e7f8b75d99cf293d58318d684a840254ce9576957bea·...·]/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.78.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:·68,·SHA:·e7e11f257edcac749a5883ad9a3aa42e6e965be419f967b36caa7afd3b36d7c9·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·R,102 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·140,·SHA:·c27972e6fa3464c9476eaa185e8657edb6bb294f148403f3d079285294a9f909·...·]/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·=·Self::<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.78.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.78.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.78.0/core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&gt;::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/ops/try_trait/trait.Try.html#associatedtype.Residual"·title="type[·...·truncated·by·diffoscope;·len:·412,·SHA:·22b8cbb007e5cce82b9d13a65bfa56aa8d83c32541fac25f4d9b3857b0540908·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;&gt;,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iterator_try_reduce</code>&nbsp;<a·href="https://github.com/rust-lang/rust/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"><a·class="src·rightside"·href="../../../src/core/i[·...·truncated·by·diffoscope;·len:·284,·SHA:·fbacd9a305d3a60d42d9adcc5ea9e5f579f4ff5d970999f333eaf0c7f9baf66c·...·]/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.78.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"><a·class="src·rightside"·h[·...·truncated·by·diffoscope;·len:·380,·SHA:·29c4004d4d8b0c8c9dfe9023f8b2c5ef801d9dc4688893035d182c1ae774c453·...·]/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.78.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:·754,·SHA:·e3afac523bd4c054d94fbbb6c5c856ac78a6359550526fa0726732b36529c33d·...·]/core/primitive.bool.html">bool</a><div·class="where">where107 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·922,·SHA:·f4fd532c280e18f28bd6dda6c2a129e2e92114b67f27235bb5fd39f725be9c43·...·]/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.78.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:·884,·SHA:·32570d141a71827f9ac19bf566a51ca4814ccafaf6f8a961920ce107fe9657d7·...·]/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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·1076,·SHA:·2dd9de8adaee4a5ee96501d9a58bfac2fea00ba8d78b834bfca29949b3afe18b·...·]/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.78.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:·f441e2966ff8db4214e57fcd74f81262d6e371aa51cea97ebde5921e81b4da79·...·]/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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·1051,·SHA:·ecc0b8fccd861464760f9ae047ff6ab98c91a1db010cb5fa59a8c2ab883db7c4·...·]/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.78.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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·130,·SHA:·130a13019dc175d02304b4f550157e2f13ac15c2f25a979c74161d10b146ab89·...·]/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:·ec4fb002625b166504031522e52a66812b279e6735a67cb718813205909c3fb7·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_find"·class="fn">try_find</a>&lt;F,·R&gt;(114 the·first·non-none·result.·<a·href="https://doc.rust-lang.org/1.78.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:·8ced1b10e78750774c5c8ed995ed83dcd13983aa75d329acf8069da106ab9f4a·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_find"·class="fn">try_find</a>&lt;F,·R&gt;(
115 ····&amp;mut·self,115 ····&amp;mut·self,
116 ····f:·F116 ····f:·F
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.78.0/core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&gt;::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/ops/try_trait/trait.Try.html#associatedtype.Residual"·title="type[·...·truncated·by·diffoscope;·len:·626,·SHA:·95f9831257b68862cbcbf54f0ad2ff4e597a4c9f763112d1da8a0897dadcf872·...·]/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.78.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;·R,119 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·R,
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.78.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.78.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.78.0/core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&gt;::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/ops/try_trait/trait.Try.html#associatedtype.Residual"·title="type[·...·truncated·by·diffoscope;·len:·412,·SHA:·22b8cbb007e5cce82b9d13a65bfa56aa8d83c32541fac25f4d9b3857b0540908·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;&gt;,</div></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"><a·class="src·rightside"·href="../../../src/cor[·...·truncated·by·diffoscope;·len:·419,·SHA:·4337d283573b9683aaa605a7d2417318ef2a03902876e7da2ec26f2a5febf794·...·]/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.78.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"><a·class="src·rightside[·...·truncated·by·diffoscope;·len:·539,·SHA:·04e329705f11ed9ec269a68b0b75ac4ab26c78e4316a571ee9336c28bbca6359·...·]/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.78.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:·901,·SHA:·a6eb7314148a1006184790a26873440fac678952c99874de84cb66644e250c0b·...·]/core/primitive.usize.html">usize</a>&gt;<div·class="where">where124 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·1093,·SHA:·623dbacabfe45799103c799fb60a4d212ceb8759ff853a11209a07793257c9cd·...·]/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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·135,·SHA:·51ff5f5c7ebd8440623ea71b125c5a5837e809e308fe1a13fbe19cddb941dbd9·...·]/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.78.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>·+·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/exact_size/trait.ExactSizeIterator.html"·title="trait·core::iter::traits::[·...·truncated·by·diffoscope;·len:·110,·SHA:·a8846fff2831d0de2de7dbb91c4e50f6f60fac276813cbaa471bf32fb45120d4·...·]/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; 83673/310515 bytes (26.95%) of diff not shown.
293 KB
./usr/share/doc/rust-web-doc/html/alloc/collections/linked_list/struct.IterMut.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·mutable·iterator·over·the·elements·of·a·`LinkedList`."><title>IterMut·in·alloc::collections::linked_list·-·Rust</title><script>·if·(window.location.protocol·!==·"file:")·document.write(`<link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../../static.files/SourceSerif4-Regular-46f98efaafac5295.ttf.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../../static.files/FiraSans-Regular-018c141bf0843ffd.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../../static.files/FiraSans-Medium-8f9a781e4970d388.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../../static.files/SourceCodePro-Regular-562dcc5011b6de7d.ttf.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../../static.files/SourceCodePro-Semibold-d899c5a5c4aeb14a.ttf.woff2">`)</script><link·rel="stylesheet"·href="../../../static.files/normalize-76eba96aa4d2e634.css"><link·rel="stylesheet"·href="../../../static.files/rustdoc-35f9e32502181f1e.css"><meta·name="rustdoc-vars"·data-root-path="../../../"·data-static-root-path="../../../static.files/"·data-current-crate="alloc"·data-themes=""·data-resource-suffix="1.78.0"·data-rustdoc-version="1.78.0"·data-channel="1.78.0"·data-search-js="search-42d8da7a6b9792c2.js"·data-settings-js="settings-4313503d2e1961c2.js"·><script·src="../../../static.files/storage-4c98445ec4002617.js"></script><script·defer·src="sidebar-items1.78.0.js"></script><script·defer·src="../../../static.files/main-12cf3b4f4f9dc36d.js"></script><noscript><link·rel="stylesheet"·href="../../../static.files/noscript-04d5337699b92874.css"></noscript><link·rel="alternate·icon"·type="image/png"·href="../../../static.files/favicon-16x16-8b506e7a72182f1c.png"><link·rel="alternate·icon"·type="image/png"·href="../../../static.files/favicon-32x32-422f7d1d52889060.png"><link·rel="icon"·type="image/svg+xml"·href="../../../static.files/favicon-2c020d218678b618.svg"></head><body·class="rustdoc·struct"><!--[if·lte·IE·11]><div·class="warning">This·old·browser·is·unsupported·and·will·most·likely·display·funky·things.</div><![endif]--><nav·class="mobile-topbar"><button·class="sidebar-menu-toggle"·title="show·sidebar"></button><a·class="logo-container"·href="../../../alloc/index.html"><img·class="rust-logo"·src="../../../static.files/rust-logo-151179464ae7ed46.svg"·alt=""></a></nav><nav·class="sidebar"><div·class="sidebar-crate"><a·class="logo-container"·href="../../../alloc/index.html"><img·class="rust-logo"·src="../../../static.files/rust-logo-151179464ae7ed46.svg"·alt="logo"></a><h2><a·href="../../../alloc/index.html">alloc</a><span·class="version">1.78.0</span></h2></div><h2·class="location"><a·href="#">IterMut</a></h2><div·class="sidebar-elems"><section><h3><a·href="#trait-implementations">Trait·Implementations</a></h3><ul·class="block·trait-implementation"><li><a·href="#impl-Debug-for-IterMut%3C'_,+T%3E">Debug</a></li><li><a·href="#impl-Default-for-IterMut%3C'_,+T%3E">Default</a></li><li><a·href="#impl-DoubleEndedIterator-for-IterMut%3C'a,+T%3E">DoubleEndedIterator</a></li><li><a·href="#impl-ExactSizeIterator-for-IterMut%3C'_,+T%3E">ExactSizeIterator</a></li><li><a·href="#impl-FusedIterator-for-IterMut%3C'_,+T%3E">FusedIterator</a></li><li><a·href="#impl-Iterator-for-IterMut%3C'a,+T%3E">Iterator</a></li><li><a·href="#impl-Send-for-IterMut%3C'_,+T%3E">Send</a></li><li><a·href="#impl-Sync-for-IterMut%3C'_,+T%3E">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">!UnwindSafe</a></li><li><a·href="#impl-Freeze-for-IterMut%3C'a,+T%3E">Freeze</a></li><li><a·href="#impl-RefUnwindSafe-for-IterMut%3C'a,+T%3E">RefUnwindSafe</a></li><li><a·href="#impl-Unpin-for-IterMut%3C'a,+T%3E">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">Any</a></li><li><a·href="#impl-Borrow%3CT%3E-for-T">Borrow&lt;T&gt;</a></li><li><a·href="#impl-BorrowMut%3CT%3E-for-T">BorrowMut&lt;T&gt;</a></li><li><a·href="#impl-From%3CT%3E-for-T">From&lt;T&gt;</a></li><li><a·href="#impl-Into%3CU%3E-for-T">Into&lt;U&gt;</a></li><li><a·href="#impl-IntoIterator-for-I">IntoIterator</a></li><li><a·href="#impl-TryFrom%3CU%3E-for-T">TryFrom&lt;U&gt;</a></li><li><a·href="#impl-TryInto%3CU%3E-for-T">TryInto&lt;U&gt;</a></li></ul></section><h2><a·href="index.html">In·alloc::collections::linked_list</a></h2></div></nav><div·class="sidebar-resizer"></div>1 <!DOCTYPE·html><html·lang="en"><head><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.write(`<link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../../static.files/SourceSerif4-Regular-46f98efaafac5295.ttf.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../../static.files/FiraSans-Regular-018c141bf0843ffd.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../../static.files/FiraSans-Medium-8f9a781e4970d388.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../../static.files/SourceCodePro-Regular-562dcc5011b6de7d.ttf.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../../static.files/SourceCodePro-Semibold-d899c5a5c4aeb14a.ttf.woff2">`)</script><link·rel="stylesheet"·href="../../../static.files/normalize-76eba96aa4d2e634.css"><link·rel="stylesheet"·href="../../../static.files/rustdoc-35f9e32502181f1e.css"><meta·name="rustdoc-vars"·data-root-path="../../../"·data-static-root-path="../../../static.files/"·data-current-crate="alloc"·data-themes=""·data-resource-suffix="1.78.0"·data-rustdoc-version="1.78.0"·data-channel="1.78.0"·data-search-js="search-42d8da7a6b9792c2.js"·data-settings-js="settings-4313503d2e1961c2.js"·><script·src="../../../static.files/storage-4c98445ec4002617.js"></script><script·defer·src="sidebar-items1.78.0.js"></script><script·defer·src="../../../static.files/main-12cf3b4f4f9dc36d.js"></script><noscript><link·rel="stylesheet"·href="../../../static.files/noscript-04d5337699b92874.css"></noscript><link·rel="alternate·icon"·type="image/png"·href="../../../static.files/favicon-16x16-8b506e7a72182f1c.png"><link·rel="alternate·icon"·type="image/png"·href="../../../static.files/favicon-32x32-422f7d1d52889060.png"><link·rel="icon"·type="image/svg+xml"·href="../../../static.files/favicon-2c020d218678b618.svg"></head><body·class="rustdoc·struct"><!--[if·lte·IE·11]><div·class="warning">This·old·browser·is·unsupported·and·will·most·likely·display·funky·things.</div><![endif]--><nav·class="mobile-topbar"><button·class="sidebar-menu-toggle"·title="show·sidebar"></button><a·class="logo-container"·href="../../../alloc/index.html"><img·class="rust-logo"·src="../../../static.files/rust-logo-151179464ae7ed46.svg"·alt=""></a></nav><nav·class="sidebar"><div·class="sidebar-crate"><a·class="logo-container"·href="../../../alloc/index.html"><img·class="rust-logo"·src="../../../static.files/rust-logo-151179464ae7ed46.svg"·alt="logo"></a><h2><a·href="../../../alloc/index.html">alloc</a><span·class="version">1.78.0</span></h2></div><h2·class="location"><a·href="#">IterMut</a></h2><div·class="sidebar-elems"><section><h3><a·href="#trait-implementations">Trait·Implementations</a></h3><ul·class="block·trait-implementation"><li><a·href="#impl-Debug-for-IterMut%3C'_,+T%3E">Debug</a></li><li><a·href="#impl-Default-for-IterMut%3C'_,+T%3E">Default</a></li><li><a·href="#impl-DoubleEndedIterator-for-IterMut%3C'a,+T%3E">DoubleEndedIterator</a></li><li><a·href="#impl-ExactSizeIterator-for-IterMut%3C'_,+T%3E">ExactSizeIterator</a></li><li><a·href="#impl-FusedIterator-for-IterMut%3C'_,+T%3E">FusedIterator</a></li><li><a·href="#impl-Iterator-for-IterMut%3C'a,+T%3E">Iterator</a></li><li><a·href="#impl-Send-for-IterMut%3C'_,+T%3E">Send</a></li><li><a·href="#impl-Sync-for-IterMut%3C'_,+T%3E">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">!UnwindSafe</a></li><li><a·href="#impl-Freeze-for-IterMut%3C'a,+T%3E">Freeze</a></li><li><a·href="#impl-RefUnwindSafe-for-IterMut%3C'a,+T%3E">RefUnwindSafe</a></li><li><a·href="#impl-Unpin-for-IterMut%3C'a,+T%3E">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">Any</a></li><li><a·href="#impl-Borrow%3CT%3E-for-T">Borrow&lt;T&gt;</a></li><li><a·href="#impl-BorrowMut%3CT%3E-for-T">BorrowMut&lt;T&gt;</a></li><li><a·href="#impl-From%3CT%3E-for-T">From&lt;T&gt;</a></li><li><a·href="#impl-Into%3CU%3E-for-T">Into&lt;U&gt;</a></li><li><a·href="#impl-IntoIterator-for-I">IntoIterator</a></li><li><a·href="#impl-TryFrom%3CU%3E-for-T">TryFrom&lt;U&gt;</a></li><li><a·href="#impl-TryInto%3CU%3E-for-T">TryInto&lt;U&gt;</a></li></ul></section><h2><a·href="index.html">In·alloc::collections::linked_list</a></h2></div></nav><div·class="sidebar-resizer"></div>
2 ····<main><div·class="width-limiter"><nav·class="sub"><form·class="search-form"><span></span><div·id="sidebar-button"·tabindex="-1"><a·href="../../../alloc/all.html"·title="show·sidebar"></a></div><input·class="search-input"·name="search"·aria-label="Run·search·in·the·documentation"·autocomplete="off"·spellcheck="false"·placeholder="Click·or·press·‘S’·to·search,·‘?’·for·more·options…"·type="search"><div·id="help-button"·tabindex="-1"><a·href="../../../help.html"·title="help">?</a></div><div·id="settings-menu"·tabindex="-1"><a·href="../../../settings.html"·title="settings"><img·width="22"·height="22"·alt="Change·settings"·src="../../../static.files/wheel-7b819b6101059cd0.svg"></a></div></form></nav><section·id="main-content"·class="content"><div·class="main-heading"><h1>Struct·<a·href="../../index.html">alloc</a>::<wbr><a·href="../index.html">collections</a>::<wbr><a·href="index.html">linked_list</a>::<wbr><a·class="struct"·href="#">IterMut</a><button·id="copy-path"·title="Copy·item·path·to·clipboard"><img·src="../../../static.files/clipboard-7571035ce49a181d.svg"·width="19"·height="18"·alt="Copy·item·path"></button></h1><span·class="out-of-band"><span·class="since"·title="Stable·since·Rust·version·1.0.0">1.0.0</span>···<a·class="src"·href="../../../src/alloc/collections/linked_list.rs.html#111-116">source</a>···<button·id="toggle-all-docs"·title="collapse·all·docs">[<span>&#x2212;</span>]</button></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 ····<main><div·class="width-limiter"><nav·class="sub"><form·class="search-form"><span></span><div·id="sidebar-button"·tabindex="-1"><a·href="../../../alloc/all.html"·title="show·sidebar"></a></div><input·class="search-input"·name="search"·aria-label="Run·search·in·the·documentation"·autocomplete="off"·spellcheck="false"·placeholder="Click·or·press·‘S’·to·search,·‘?’·for·more·options…"·type="search"><div·id="help-button"·tabindex="-1"><a·href="../../../help.html"·title="help">?</a></div><div·id="settings-menu"·tabindex="-1"><a·href="../../../settings.html"·title="settings"><img·width="22"·height="22"·alt="Change·settings"·src="../../../static.files/wheel-7b819b6101059cd0.svg"></a></div></form></nav><section·id="main-content"·class="content"><div·class="main-heading"><h1>Struct·<a·href="../../index.html">alloc</a>::<wbr><a·href="../index.html">collections</a>::<wbr><a·href="index.html">linked_list</a>::<wbr><a·class="struct"·href="#">IterMut</a><button·id="copy-path"·title="Copy·item·path·to·clipboard"><img·src="../../../static.files/clipboard-7571035ce49a181d.svg"·width="19"·height="18"·alt="Copy·item·path"></button></h1><span·class="out-of-band"><span·class="since"·title="Stable·since·Rust·version·1.0.0">1.0.0</span>···<a·class="src"·href="../../../src/alloc/collections/linked_list.rs.html#111-116">source</a>···<button·id="toggle-all-docs"·title="collapse·all·docs">[<span>&#x2212;</span>]</button></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>
3 <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·its3 <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
4 documentation·for·more.</p>4 documentation·for·more.</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-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#119-132">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#120-131">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#1312-1316">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:·5117,·SHA:·9da35ff24d1d787716a2ffa3743502539c9eb511a7b252db996277ff5ef274bd·...·]/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><h2·id="trait-implementations"·class="section-header">Trait·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#119-132">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#120-131">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#1312-1316">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.78.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:·5693,·SHA:·a66cced50e0a9b64f1365694e2f4d793a7c08af0c9ad45355c38cbd9385e83de·...·]/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.78.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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(B,·Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.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.78.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.7[·...·truncated·by·diffoscope;·len:·3,·SHA:·7b1bd53949b752d143d871408483b5382371b5bc48d195d0c040ec93cfa2748b·...·]/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:·b3a5d6383debff0cac836c5889a757f11b019bc049778c518e60e4d37a3c4da1·...·]/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.78.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:·d66ed7e195a53e9945339ef1976aed455dcf80228d8e5b7b0c69a64c3983fea1·...·]/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.78.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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(B,·Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/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:·d11fd274e41827c1daee0c80a6ab5f978a613ab26297cb460535fef32cff8551·...·]/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.78.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:·c264047794019a6dcf05728ba6a6ee1f8f07c7209958b3366ba94546b527ecdc·...·]/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.78.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:·6790,·SHA:·9cd12ba9c8b64dd3ff3ab54e0c59581d065c8170882013dcaabdc500934aba3d·...·]/core/primitive.usize.html">usize</a>&gt;(14 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·7558,·SHA:·c8f633818ff76787100efb6440a8df8d5904851b1cef734b3c5531d8d0140e7a·...·]/core/primitive.usize.html">usize</a>&gt;(
15 ····&amp;mut·self15 ····&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.78.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.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title=[·...·truncated·by·diffoscope;·len:·381,·SHA:·88c48923c9b7ea5cc47c1087c60e09656e81d4671c58071ba2bef826335388bc·...·]/core/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:·746,·SHA:·99cc415a31b91c57f7eeb82ad0d2d1ba424489bee49de37c86a4ea21c663ccda·...·]/core/primitive.usize.html">usize</a><div·class="where">where17 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experiment[·...·truncated·by·diffoscope;·len:·866,·SHA:·945d2d86f0c4c5ca3e3ee3b181d18b2bbea57ee1a5a7efe16c0c915a5bf2c3ad·...·]/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:·2953,·SHA:·2e5656679d63218ae5d5d1b1a4dfc8d59cd28ba505be6dd08ba60caae9804629·...·]/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.78.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:·3433,·SHA:·49d1274908fa1d1e8e571a7a381dde77211770148791bbfb1cd851b4f911e155·...·]/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.78.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"><a·class="src·rightside"·href="../../../src/core/it[·...·truncated·by·diffoscope;·len:·602,·SHA:·cfe4c4d300dddc2abdc2f8194eb969c68b2240c28239969b5be2af6a564ed8cc·...·]/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.78.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"><a·class="src·rightside"·hr[·...·truncated·by·diffoscope;·len:·746,·SHA:·f1f70d650c102c8658e13890c7dbfc87418f07e7b522246fb579ec434ef64f7c·...·]/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.78.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:·1041,·SHA:·a281d174c9671021427f0b458ac94e87746ac44730475aa725652c6c15e2b972·...·]/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.78.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.78.0/core/iter/traits/it[·...·truncated·by·diffoscope;·len:·1233,·SHA:·f677df2d893dfe0dc1a9d31ebb0ba71a346d265781813e0d664d3f18369b6163·...·]/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.78.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:·b9001dd3131b1425179c94853e1b90fff0f7169b9570e86cd50c6b7fbf1ee8a5·...·]/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.78.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:·98627729f77dcf1c9d258f343354ba600b7134c6b3929080f231e8de7155b70b·...·]/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.78.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.78.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.78.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"><a·class="src·rightside"·href="../../../src/[·...·truncated·by·diffoscope;·len:·279,·SHA:·f2c34c2e64e77c66684f837812ebc4a94c81b2ad5862cc0131f80c3ce89e008a·...·]/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.78.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"><a·class="src·rights[·...·truncated·by·diffoscope;·len:·375,·SHA:·58419346f92e1709dadb70cc3cf356e3cd27972451bdc6b4fc4267e6f7e8bdae·...·]/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.78.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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::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:·d75758e0f8262eeea27445cec43f13d84f0c02ba4e03c0c54d041f9ab1965e0f·...·]/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.78.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:·98f6effefa44d759c249143d83623f0055d937382bfc398b7e1f5e92cd413657·...·]/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.78.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:·676,·SHA:·9ae42ed293737a3dd44c1ee9d98c6aabb1552fbb9d203cb852ee9fcc7834a6ca·...·]/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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·820,·SHA:·a664bbcbc0891663662e4eb7b4394d0fcd72e568136fc4d34097fea242cc32e7·...·]/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.78.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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·140,·SHA:·752f473b57e7444ebfddf5ea7fd40a332e83ec55524a6c31b5ee0f82a5dea819·...·]/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"><a·class="src·rightside"·href="../../../src/cor[·...·truncated·by·diffoscope;·len:·297,·SHA:·f01e44d4caf6c6ad80b37656b9300f7111340711dcd74d70867b5a652dbfb538·...·]/core/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.78.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"><a·class="src·rightside[·...·truncated·by·diffoscope;·len:·393,·SHA:·2e2aa7c9c9c087e7b346da376749064ab8c1894795a2f0a0f646cdc8c7bea997·...·]/core/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.78.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:·788,·SHA:·b788f412af946d2bd7646ba39a8c316ebfa88109f9626dbad9bf9964f975cd0c·...·]/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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·956,·SHA:·faba0521e870dbbd26d466fadba3522e7d29013a9b86376fffafffac11a57e0e·...·]/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.78.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"><a·class="src·rightside"·href="../../../src/co[·...·truncated·by·diffoscope;·len:·276,·SHA:·e337ee1b810d3ec0480569c4ed323ebf0a2315c8ae3c522a73fcca3aa8e6efb3·...·]/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.78.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"><a·class="src·rightsid[·...·truncated·by·diffoscope;·len:·372,·SHA:·03eea0861575eb80d3f7a87a3ba747adb1a33fe7e9ce72aa2172e7a287c63a94·...·]/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.78.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.78.0/core/iter/adapte[·...·truncated·by·diffoscope;·len:·175,·SHA:·16fe7225bf05b478e2828b347c3d23ded9a22f89d8887a2c65d9f7b3faf1b0e7·...·]/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"><a·class="src·rightside"·href="../../../src/c[·...·truncated·by·diffoscope;·len:·306,·SHA:·a9bc004bf639fa188165a336061c6c98ec7ff9d266a18f10db200dfa9a880b88·...·]/core/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.78.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"><a·class="src·rightsi[·...·truncated·by·diffoscope;·len:·402,·SHA:·7689a974f800fd069d1b4453ef62d6d6ad1b654462d624d36e3672051d502030·...·]/core/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.78.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:·946,·SHA:·877b8718d9df1464a912dd50eef16402225367db4e4b26484b5ee20d30644524·...·]/core/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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·1138,·SHA:·f6ae06b7de8e94df014341c5cf589a5e4a1298367b2ef7a968ec499c5170a70e·...·]/core/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.78.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:·552b3dd2132886d024e4d5bd2554611e25c1f068adaaf23ecf80da81d31997ef·...·]/core/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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·1058,·SHA:·b390dbdda8d7e93604b5ecd906a93efd03fe19bdaf41cf12893fd361bf974307·...·]/core/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.78.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:·875,·SHA:·5c5c44422f75cbb66ebcf54bea70536713b810843cc484b051aed088c6422d78·...·]/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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·1067,·SHA:·415d32e1211c35d3bb405de1d6e51c2102c14cadc3333894f063148dbe0b1f69·...·]/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:·543,·SHA:·f199bafab360be9b80e9f45c5ba799a52348b742ddb0fa9afdb1624729c36e58·...·]/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.78.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:·687,·SHA:·7f5256104c35c5948a2cb42b55f3048c9d2887e48a4a8226537a284f959c562a·...·]/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.78.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"><a·class="src·rightside"·href="../../../src/core/iter/t[·...·truncated·by·diffoscope;·len:·296,·SHA:·aea014801138aeee574964545b1e9ad297288a120113db6844b569d2b183e0a7·...·]/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.78.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"><a·class="src·rightside"·href="[·...·truncated·by·diffoscope;·len:·392,·SHA:·4e7da68f7be2622ef173653eca78d58e1f202b544a2e6abd14d8335c298c93a7·...·]/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.78.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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(<a·class="primitive"·href="https://doc.rust-lang.org/1.78.0/core/primitive.reference.html">&amp;mut·St</a>,·Self::<a·class="associatedty[·...·truncated·by·diffoscope;·len:·449,·SHA:·f12c268a8a8111b9e7126ad78bf5523a63733caa63d187c4fe792309ea41acdf·...·]/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:·474,·SHA:·c0ed850df640319d919b8c053c540caa158602207623bed65abbcd69ad9d2c9d·...·]/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.78.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.78.0/core/iter/trai[·...·truncated·by·diffoscope;·len:·594,·SHA:·02960742fa7892efaa08f289ce85865fc5efb6a4cd138c22e3566ca6fc727d78·...·]/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.78.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.78.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:·4d1f54658fd1c005b101a2e27b0da3c6ee0cbe2d891660c65470bfec01fa46f6·...·]/core/iter/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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·976,·SHA:·2a9182f6fe88e0b8a9b1ae1f46cace940cc0b8736033c354c0f0ccbf1c196e7a·...·]/core/iter/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.78.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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;[Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtyp[·...·truncated·by·diffoscope;·len:·135,·SHA:·0b06a6094d42ccbc8bce5b01c4383961fe7f1967f05e4c9f1ff33e71e425fb26·...·]/core/primitive.array.html">N</a>])·-&gt;·R,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iter_map_windows</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/87155">#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.78.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"><a·class="src·rightside"·href="../../../src/core[·...·truncated·by·diffoscope;·len:·262,·SHA:·6125a8b2b88486b3735bbd00905fe9ae55b6eb1491c8a493be9c8121dc3cb440·...·]/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.78.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"><a·class="src·rightside"[·...·truncated·by·diffoscope;·len:·358,·SHA:·d91b2ab18e0ce069e262cf523c6ef961f56eecad042ea1e9bcefe33cff28fc8f·...·]/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:·601,·SHA:·bdf3796aa87e911258d56122ffdaa3f8591a5c9db4ed6fd89c3dfd3660787f78·...·]/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.78.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.78.0/core/op[·...·truncated·by·diffoscope;·len:·745,·SHA:·424783f22102f4446d3ad4d362b1aafdb7531fa777213f97ee138aa878f67bd1·...·]/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.78.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:·694,·SHA:·db4bb2630979aa4504432e8d422265d943c9063bcf3d2e3be970003014226f1e·...·]/core/primitive.reference.html">&amp;mut·Self</a><div·class="where">where64 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·838,·SHA:·9b4fd8df7f41e9a76fd4cfca0a233b74b9bd27c3fe8228248abc3f940425a3e3·...·]/core/primitive.reference.html">&amp;mut·Self</a><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:·331,·SHA:·d13641714c275840abbb473011613a4e19924a453f5e1b83912681a9b7c5579b·...·]/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.78.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.78.0/core/it[·...·truncated·by·diffoscope;·len:·427,·SHA:·ecfaaac5d1d10c1bc4fcee9a050af0a268bee0b528c2d8ea4e9774440bd8a279·...·]/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.78.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.78.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:·d76c3fcf86c63211032a6b22dc5924ef552b1ad26b12e19f15d2f1d5b3d7e394·...·]/core/primitive.reference.html">&amp;mut·E</a><div·class="where">where67 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.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.78.0/core/iter/tr[·...·truncated·by·diffoscope;·len:·728,·SHA:·01937c2dc314c259495665570ae249c94b4a5b0719718f5f1188e6fc64ecf487·...·]/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.78.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.78.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:·759,·SHA:·3cf174fac64a83c8e22066c3d77741118f89b13411537fc82c1004faa5c9e2ae·...·]/core/primitive.tuple.html">(B,·B)</a><div·class="where">where69 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experiment[·...·truncated·by·diffoscope;·len:·879,·SHA:·e773b2222c92d001e295030cb47a780ab0c1132d7fc8e9e3a98de4f532e6c520·...·]/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.78.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.78.0/core/default/trait.Default.html"·title="trait·core::default::Default">Default</a>·+·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/collect/trait.Extend.html"·title="trait·core::iter::traits::collec[·...·truncated·by·diffoscope;·len:·95,·SHA:·8b3be1d0042cae0550f865faf5849221240bdf04eb1b2107605b72d48c3ad29c·...·]/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:·281bbd5137cae68dd8057d013e9c9f311461e746663120304e3f6adace77f784·...·]/core/primitive.usize.html">usize</a><div·class="where">where72 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·995,·SHA:·bec3765fdab56713186e2454cd84738b5b28e3280a2f3d5a25cefdbc3089b520·...·]/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.78.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>·+·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/double_ended/trait.DoubleEndedIterator.html"·title="trait·core::iter::trai[·...·truncated·by·diffoscope;·len:·132,·SHA:·e5b2cf5f56946ede1e190ed09879c5821e2de04cf8e5d145142eeb40c6340982·...·]/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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(<a·class="primitive"·href="https://doc.rust-lang.org/1.78.0/core/primitive.reference.html">&amp;T</a>)·-&gt;·<a·class="primitive"·href="[·...·truncated·by·diffoscope;·len:·32,·SHA:·63d052a8ced32bf927ffadd7e884c08caf4970e85dfdf6be0e568d49b174da96·...·]/core/primitive.bool.html">bool</a>,</div></h4></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:·dc6a465df534b0392c5280e79e5249847890045561099b2cfc44bfabc4801d8d·...·]/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.78.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:·0c224636c18baa273f69de21f90083317f2ea0b7367a3f0d0f1c0ace55a36f79·...·]/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.78.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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·135,·SHA:·51ff5f5c7ebd8440623ea71b125c5a5837e809e308fe1a13fbe19cddb941dbd9·...·]/core/primitive.bool.html">bool</a>,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iter_is_partitioned</code>&nbsp;<a·href="https://github.com/rust-lang/rust/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:·bd8fce4ee431c619c98780c4d520e8db93f1e034f12843ffaff5744b7ce2190b·...·]/core/iter/traits/iterator/trait.Iterator.html#method.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.78.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:·2c74873f4e5ba70004a1c7edd1cc3f9e2d91271295dd1591e2d26848df4c02ba·...·]/core/iter/traits/iterator/trait.Iterator.html#method.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.78.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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(B,·Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.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.78.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:·7b4fc32e7634ae85c682a97099be267837713d7e4831893b617ca652f57a89da·...·]/core/iter/traits/iterator/trait.Iterator.html#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.78.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:·52912e82c4b0a760d06f77eb4ee3a59ba70dd76cb532954900c73ae94c652674·...·]/core/iter/traits/iterator/trait.Iterator.html#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.78.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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.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.78.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.78.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"><a·class="src·rightside"·href="../../../src/cor[·...·truncated·by·diffoscope;·len:·139,·SHA:·dc7fb7a70636459a0d7de28cbcb454050f39c184bab178c95c524a6eb9ca51cf·...·]/core/iter/traits/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.78.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"><a·class="src·rightside[·...·truncated·by·diffoscope;·len:·211,·SHA:·924e062acd8127e8d6158162219ee5d57a941854e14063d21d7768edae549431·...·]/core/iter/traits/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.78.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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(B,·Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::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:·2c738ecc68200afa2467bef085de14dcb642dbaac77c4529948f5e259e66691d·...·]/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.78.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:·b60215068a6d9721be05f81098c51167d7138c4042f140cad42f77c4df43f597·...·]/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.78.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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·352,·SHA:·e7c3c296abe2c0a183967153e4ae7fd50bafa2ae7088e3e78b3b48fee253adc6·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::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:·c3f1d50e276def36966943119961a20b09cab3be33483fe4d48d7f322489534b·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_reduce"·class="fn">try_reduce</a>&lt;F,·R&gt;(94 operation.·<a·href="https://doc.rust-lang.org/1.78.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:·7a18fdd041b1a001b4a8feb289ee127fd9240232239269eb35dc3b8f74783ec9·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_reduce"·class="fn">try_reduce</a>&lt;F,·R&gt;(
95 ····&amp;mut·self,95 ····&amp;mut·self,
96 ····f:·F96 ····f:·F
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.78.0/core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&gt;::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/ops/try_trait/trait.Try.html#associatedtype.Residual"·title="type[·...·truncated·by·diffoscope;·len:·754,·SHA:·6fb4dfdb6b4da68921c1e7f8b75d99cf293d58318d684a840254ce9576957bea·...·]/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.78.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::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:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·140,·SHA:·c27972e6fa3464c9476eaa185e8657edb6bb294f148403f3d079285294a9f909·...·]/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·=·Self::<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.78.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.78.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.78.0/core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&gt;::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/ops/try_trait/trait.Try.html#associatedtype.Residual"·title="type[·...·truncated·by·diffoscope;·len:·412,·SHA:·22b8cbb007e5cce82b9d13a65bfa56aa8d83c32541fac25f4d9b3857b0540908·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;&gt;,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iterator_try_reduce</code>&nbsp;<a·href="https://github.com/rust-lang/rust/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"><a·class="src·rightside"·href="../../../src/core/i[·...·truncated·by·diffoscope;·len:·284,·SHA:·fbacd9a305d3a60d42d9adcc5ea9e5f579f4ff5d970999f333eaf0c7f9baf66c·...·]/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.78.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"><a·class="src·rightside"·h[·...·truncated·by·diffoscope;·len:·380,·SHA:·29c4004d4d8b0c8c9dfe9023f8b2c5ef801d9dc4688893035d182c1ae774c453·...·]/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.78.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:·754,·SHA:·e3afac523bd4c054d94fbbb6c5c856ac78a6359550526fa0726732b36529c33d·...·]/core/primitive.bool.html">bool</a><div·class="where">where104 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·922,·SHA:·f4fd532c280e18f28bd6dda6c2a129e2e92114b67f27235bb5fd39f725be9c43·...·]/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.78.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:·884,·SHA:·32570d141a71827f9ac19bf566a51ca4814ccafaf6f8a961920ce107fe9657d7·...·]/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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·1076,·SHA:·2dd9de8adaee4a5ee96501d9a58bfac2fea00ba8d78b834bfca29949b3afe18b·...·]/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.78.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:·f441e2966ff8db4214e57fcd74f81262d6e371aa51cea97ebde5921e81b4da79·...·]/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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·1051,·SHA:·ecc0b8fccd861464760f9ae047ff6ab98c91a1db010cb5fa59a8c2ab883db7c4·...·]/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.78.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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·130,·SHA:·130a13019dc175d02304b4f550157e2f13ac15c2f25a979c74161d10b146ab89·...·]/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:·ec4fb002625b166504031522e52a66812b279e6735a67cb718813205909c3fb7·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_find"·class="fn">try_find</a>&lt;F,·R&gt;(111 the·first·non-none·result.·<a·href="https://doc.rust-lang.org/1.78.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:·8ced1b10e78750774c5c8ed995ed83dcd13983aa75d329acf8069da106ab9f4a·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_find"·class="fn">try_find</a>&lt;F,·R&gt;(
112 ····&amp;mut·self,112 ····&amp;mut·self,
113 ····f:·F113 ····f:·F
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.78.0/core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&gt;::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/ops/try_trait/trait.Try.html#associatedtype.Residual"·title="type[·...·truncated·by·diffoscope;·len:·626,·SHA:·95f9831257b68862cbcbf54f0ad2ff4e597a4c9f763112d1da8a0897dadcf872·...·]/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.78.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;·R,116 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·R,
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.78.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.78.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.78.0/core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&gt;::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/ops/try_trait/trait.Try.html#associatedtype.Residual"·title="type[·...·truncated·by·diffoscope;·len:·412,·SHA:·22b8cbb007e5cce82b9d13a65bfa56aa8d83c32541fac25f4d9b3857b0540908·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;&gt;,</div></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"><a·class="src·rightside"·href="../../../src/cor[·...·truncated·by·diffoscope;·len:·419,·SHA:·4337d283573b9683aaa605a7d2417318ef2a03902876e7da2ec26f2a5febf794·...·]/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.78.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"><a·class="src·rightside[·...·truncated·by·diffoscope;·len:·539,·SHA:·04e329705f11ed9ec269a68b0b75ac4ab26c78e4316a571ee9336c28bbca6359·...·]/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.78.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:·901,·SHA:·a6eb7314148a1006184790a26873440fac678952c99874de84cb66644e250c0b·...·]/core/primitive.usize.html">usize</a>&gt;<div·class="where">where121 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·1093,·SHA:·623dbacabfe45799103c799fb60a4d212ceb8759ff853a11209a07793257c9cd·...·]/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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·135,·SHA:·51ff5f5c7ebd8440623ea71b125c5a5837e809e308fe1a13fbe19cddb941dbd9·...·]/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.78.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>·+·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/exact_size/trait.ExactSizeIterator.html"·title="trait·core::iter::traits::[·...·truncated·by·diffoscope;·len:·110,·SHA:·a8846fff2831d0de2de7dbb91c4e50f6f60fac276813cbaa471bf32fb45120d4·...·]/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.78.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:·c876e8603f9248b122c6d4a7db3091b70f098f834ba7b3112a8b68d5e7ade3ed·...·]/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.78.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.78.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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/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; 79037/299737 bytes (26.37%) of diff not shown.
172 KB
./usr/share/doc/rust-web-doc/html/alloc/collections/linked_list/struct.LinkedList.html
    
Offset 11, 15 lines modifiedOffset 11, 15 lines modified
11 array-based·containers·are·generally·faster,11 array-based·containers·are·generally·faster,
12 more·memory·efficient,·and·make·better·use·of·CPU·cache.</p>12 more·memory·efficient,·and·make·better·use·of·CPU·cache.</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-LinkedList%3CT%3E"·class="impl"><a·class="src·rightside"·href="../../../src/alloc/collections/linked_list.rs.html#434-500">source</a><a·href="#impl-LinkedList%3CT%3E"·class="anchor">§</a><h3·class="code-header">impl&lt;T&gt;·<a·class="struct"·href="struct.LinkedList.html"·title="struct·alloc::collections::linked_list::LinkedList">LinkedList</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="const·since·1.39.0">const:·1.39.0</span>···<a·class="src"·href="../../../src/alloc/collections/linked_list.rs.html#448-450">source</a></span><h4·class="code-header">pub·const·fn·<a·href="#method.new"·class="fn">new</a>()·-&gt;·Self</h4></section></summary><div·class="docblock"><p>Creates·an·empty·<code>LinkedList</code>.</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-LinkedList%3CT%3E"·class="impl"><a·class="src·rightside"·href="../../../src/alloc/collections/linked_list.rs.html#434-500">source</a><a·href="#impl-LinkedList%3CT%3E"·class="anchor">§</a><h3·class="code-header">impl&lt;T&gt;·<a·class="struct"·href="struct.LinkedList.html"·title="struct·alloc::collections::linked_list::LinkedList">LinkedList</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="const·since·1.39.0">const:·1.39.0</span>···<a·class="src"·href="../../../src/alloc/collections/linked_list.rs.html#448-450">source</a></span><h4·class="code-header">pub·const·fn·<a·href="#method.new"·class="fn">new</a>()·-&gt;·Self</h4></section></summary><div·class="docblock"><p>Creates·an·empty·<code>LinkedList</code>.</p>
14 <h5·id="examples"><a·class="doc-anchor"·href="#examples">§</a>Examples</h5>14 <h5·id="examples"><a·class="doc-anchor"·href="#examples">§</a>Examples</h5>
15 <div·class="example-wrap"><pre·class="rust·rust-example-rendered"><code><span·class="kw">use·</span>std::collections::LinkedList;15 <div·class="example-wrap"><pre·class="rust·rust-example-rendered"><code><span·class="kw">use·</span>std::collections::LinkedList;
  
16 <span·class="kw">let·</span>list:·LinkedList&lt;u32&gt;·=·LinkedList::new();</code></pre><a·class="test-arrow"·target="_blank"·href="https://play.rust-lang.org/?code=%23!%5Ballow(unused)%5D%0Afn+main()+%7B%0A++++use+std::collections::LinkedList;%0A++++%0A++++let+list:+LinkedList%3Cu32%3E+=+LinkedList::new();%0A%7D&amp;edition=2021">Run</a></div>16 <span·class="kw">let·</span>list:·LinkedList&lt;u32&gt;·=·LinkedList::new();</code></pre><a·class="test-arrow"·target="_blank"·href="https://play.rust-lang.org/?code=%23!%5Ballow(unused)%5D%0Afn+main()+%7B%0A++++use+std::collections::LinkedList;%0A++++%0A++++let+list:+LinkedList%3Cu32%3E+=+LinkedList::new();%0A%7D&amp;edition=2021">Run</a></div>
17 </div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.append"·class="method"><a·class="src·rightside"·href="../../../src/alloc/collections/linked_list.rs.html#482-499">source</a><h4·class="code-header">pub·fn·<a·href="#method.append"·class="fn">append</a>(&amp;mut·self,·other:·<a·class="primitive"·href="../../../core/primitive.reference.html">&amp;mut·Self</a>)</h4></section></summary><div·class="docblock"><p>Moves·all·elements·from·<code>other</code>·to·the·end·of·the·list.</p>17 </div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.append"·class="method"><a·class="src·rightside"·href="../../../src/alloc/collections/linked_list.rs.html#482-499">source</a><h4·class="code-header">pub·fn·<a·href="#method.append"·class="fn">append</a>(&amp;mut·self,·other:·<a·class="primitive"·href="https://doc.rust-lang.org/1.78.0/core/primitive.reference.html">&amp;mut·Self</a>)</h4></section></summary><div·class="docblock"><p>Moves·all·elements·from·<code>other</code>·to·the·end·of·the·list.</p>
18 <p>This·reuses·all·the·nodes·from·<code>other</code>·and·moves·them·into·<code>self</code>.·After18 <p>This·reuses·all·the·nodes·from·<code>other</code>·and·moves·them·into·<code>self</code>.·After
19 this·operation,·<code>other</code>·becomes·empty.</p>19 this·operation,·<code>other</code>·becomes·empty.</p>
20 <p>This·operation·should·compute·in·<em>O</em>(1)·time·and·<em>O</em>(1)·memory.</p>20 <p>This·operation·should·compute·in·<em>O</em>(1)·time·and·<em>O</em>(1)·memory.</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::LinkedList;22 <div·class="example-wrap"><pre·class="rust·rust-example-rendered"><code><span·class="kw">use·</span>std::collections::LinkedList;
  
23 <span·class="kw">let·</span><span·class="kw-2">mut·</span>list1·=·LinkedList::new();23 <span·class="kw">let·</span><span·class="kw-2">mut·</span>list1·=·LinkedList::new();
Offset 84, 25 lines modifiedOffset 84, 25 lines modified
84 <p>The·cursor·is·pointing·to·the·“ghost”·non-element·if·the·list·is·empty.</p>84 <p>The·cursor·is·pointing·to·the·“ghost”·non-element·if·the·list·is·empty.</p>
85 </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#590-592">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 </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#590-592">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>
86 <p>The·cursor·is·pointing·to·the·“ghost”·non-element·if·the·list·is·empty.</p>86 <p>The·cursor·is·pointing·to·the·“ghost”·non-element·if·the·list·is·empty.</p>
87 </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#600-602">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 </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#600-602">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>
88 <p>The·cursor·is·pointing·to·the·“ghost”·non-element·if·the·list·is·empty.</p>88 <p>The·cursor·is·pointing·to·the·“ghost”·non-element·if·the·list·is·empty.</p>
89 </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#610-612">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 </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#610-612">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>
90 <p>The·cursor·is·pointing·to·the·“ghost”·non-element·if·the·list·is·empty.</p>90 <p>The·cursor·is·pointing·to·the·“ghost”·non-element·if·the·list·is·empty.</p>
91 </div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.is_empty"·class="method"><a·class="src·rightside"·href="../../../src/alloc/collections/linked_list.rs.html#632-634">source</a><h4·class="code-header">pub·fn·<a·href="#method.is_empty"·class="fn">is_empty</a>(&amp;self)·-&gt;·<a·class="primitive"·href="../../../core/primitive.bool.html">bool</a></h4></section></summary><div·class="docblock"><p>Returns·<code>true</code>·if·the·<code>LinkedList</code>·is·empty.</p>91 </div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.is_empty"·class="method"><a·class="src·rightside"·href="../../../src/alloc/collections/linked_list.rs.html#632-634">source</a><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.78.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>
92 <p>This·operation·should·compute·in·<em>O</em>(1)·time.</p>92 <p>This·operation·should·compute·in·<em>O</em>(1)·time.</p>
93 <h5·id="examples-5"><a·class="doc-anchor"·href="#examples-5">§</a>Examples</h5>93 <h5·id="examples-5"><a·class="doc-anchor"·href="#examples-5">§</a>Examples</h5>
94 <div·class="example-wrap"><pre·class="rust·rust-example-rendered"><code><span·class="kw">use·</span>std::collections::LinkedList;94 <div·class="example-wrap"><pre·class="rust·rust-example-rendered"><code><span·class="kw">use·</span>std::collections::LinkedList;
  
95 <span·class="kw">let·</span><span·class="kw-2">mut·</span>dl·=·LinkedList::new();95 <span·class="kw">let·</span><span·class="kw-2">mut·</span>dl·=·LinkedList::new();
96 <span·class="macro">assert!</span>(dl.is_empty());96 <span·class="macro">assert!</span>(dl.is_empty());
  
97 dl.push_front(<span·class="string">"foo"</span>);97 dl.push_front(<span·class="string">"foo"</span>);
98 <span·class="macro">assert!</span>(!dl.is_empty());</code></pre><a·class="test-arrow"·target="_blank"·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">Run</a></div>98 <span·class="macro">assert!</span>(!dl.is_empty());</code></pre><a·class="test-arrow"·target="_blank"·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">Run</a></div>
99 </div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.len"·class="method"><a·class="src·rightside"·href="../../../src/alloc/collections/linked_list.rs.html#660-662">source</a><h4·class="code-header">pub·fn·<a·href="#method.len"·class="fn">len</a>(&amp;self)·-&gt;·<a·class="primitive"·href="../../../core/primitive.usize.html">usize</a></h4></section></summary><div·class="docblock"><p>Returns·the·length·of·the·<code>LinkedList</code>.</p>99 </div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.len"·class="method"><a·class="src·rightside"·href="../../../src/alloc/collections/linked_list.rs.html#660-662">source</a><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.78.0/core/primitive.usize.html">usize</a></h4></section></summary><div·class="docblock"><p>Returns·the·length·of·the·<code>LinkedList</code>.</p>
100 <p>This·operation·should·compute·in·<em>O</em>(1)·time.</p>100 <p>This·operation·should·compute·in·<em>O</em>(1)·time.</p>
101 <h5·id="examples-6"><a·class="doc-anchor"·href="#examples-6">§</a>Examples</h5>101 <h5·id="examples-6"><a·class="doc-anchor"·href="#examples-6">§</a>Examples</h5>
102 <div·class="example-wrap"><pre·class="rust·rust-example-rendered"><code><span·class="kw">use·</span>std::collections::LinkedList;102 <div·class="example-wrap"><pre·class="rust·rust-example-rendered"><code><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();
  
104 dl.push_front(<span·class="number">2</span>);104 dl.push_front(<span·class="number">2</span>);
Offset 124, 41 lines modifiedOffset 124, 41 lines modified
124 dl.push_front(<span·class="number">1</span>);124 dl.push_front(<span·class="number">1</span>);
125 <span·class="macro">assert_eq!</span>(dl.len(),·<span·class="number">2</span>);125 <span·class="macro">assert_eq!</span>(dl.len(),·<span·class="number">2</span>);
126 <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 <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>));
  
127 dl.clear();127 dl.clear();
128 <span·class="macro">assert_eq!</span>(dl.len(),·<span·class="number">0</span>);128 <span·class="macro">assert_eq!</span>(dl.len(),·<span·class="number">0</span>);
129 <span·class="macro">assert_eq!</span>(dl.front(),·<span·class="prelude-val">None</span>);</code></pre><a·class="test-arrow"·target="_blank"·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">Run</a></div>129 <span·class="macro">assert_eq!</span>(dl.front(),·<span·class="prelude-val">None</span>);</code></pre><a·class="test-arrow"·target="_blank"·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">Run</a></div>
130 </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#718-723">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">where130 </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#718-723">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.78.0/core/primitive.reference.html">&amp;T</a>)·-&gt;·<a·class="primitive"·href="https://doc.rust-lang.org/1.78.0/core/primitive.bool.html">bool</a><div·class="where">where
131 ····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·the131 ····T:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.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
132 given·value.</p>132 given·value.</p>
133 <p>This·operation·should·compute·linearly·in·<em>O</em>(<em>n</em>)·time.</p>133 <p>This·operation·should·compute·linearly·in·<em>O</em>(<em>n</em>)·time.</p>
134 <h5·id="examples-8"><a·class="doc-anchor"·href="#examples-8">§</a>Examples</h5>134 <h5·id="examples-8"><a·class="doc-anchor"·href="#examples-8">§</a>Examples</h5>
135 <div·class="example-wrap"><pre·class="rust·rust-example-rendered"><code><span·class="kw">use·</span>std::collections::LinkedList;135 <div·class="example-wrap"><pre·class="rust·rust-example-rendered"><code><span·class="kw">use·</span>std::collections::LinkedList;
  
136 <span·class="kw">let·</span><span·class="kw-2">mut·</span>list:·LinkedList&lt;u32&gt;·=·LinkedList::new();136 <span·class="kw">let·</span><span·class="kw-2">mut·</span>list:·LinkedList&lt;u32&gt;·=·LinkedList::new();
  
137 list.push_back(<span·class="number">0</span>);137 list.push_back(<span·class="number">0</span>);
138 list.push_back(<span·class="number">1</span>);138 list.push_back(<span·class="number">1</span>);
139 list.push_back(<span·class="number">2</span>);139 list.push_back(<span·class="number">2</span>);
  
140 <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">0</span>),·<span·class="bool-val">true</span>);
141 <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"·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">Run</a></div>141 <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"·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">Run</a></div>
142 </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#745-747">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></summary><div·class="docblock"><p>Provides·a·reference·to·the·front·element,·or·<code>None</code>·if·the·list·is142 </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#745-747">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.78.0/core/option/enum.Option.html"·title="enum·core::option::Option">Option</a>&lt;<a·class="primitive"·href="https://doc.rust-lang.org/1.78.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
143 empty.</p>143 empty.</p>
144 <p>This·operation·should·compute·in·<em>O</em>(1)·time.</p>144 <p>This·operation·should·compute·in·<em>O</em>(1)·time.</p>
145 <h5·id="examples-9"><a·class="doc-anchor"·href="#examples-9">§</a>Examples</h5>145 <h5·id="examples-9"><a·class="doc-anchor"·href="#examples-9">§</a>Examples</h5>
146 <div·class="example-wrap"><pre·class="rust·rust-example-rendered"><code><span·class="kw">use·</span>std::collections::LinkedList;146 <div·class="example-wrap"><pre·class="rust·rust-example-rendered"><code><span·class="kw">use·</span>std::collections::LinkedList;
  
147 <span·class="kw">let·</span><span·class="kw-2">mut·</span>dl·=·LinkedList::new();147 <span·class="kw">let·</span><span·class="kw-2">mut·</span>dl·=·LinkedList::new();
148 <span·class="macro">assert_eq!</span>(dl.front(),·<span·class="prelude-val">None</span>);148 <span·class="macro">assert_eq!</span>(dl.front(),·<span·class="prelude-val">None</span>);
  
149 dl.push_front(<span·class="number">1</span>);149 dl.push_front(<span·class="number">1</span>);
150 <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"·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">Run</a></div>150 <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"·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">Run</a></div>
151 </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#774-776">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></summary><div·class="docblock"><p>Provides·a·mutable·reference·to·the·front·element,·or·<code>None</code>·if·the·list151 </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#774-776">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.78.0/core/option/enum.Option.html"·title="enum·core::option::Option">Option</a>&lt;<a·class="primitive"·href="https://doc.rust-lang.org/1.78.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
152 is·empty.</p>152 is·empty.</p>
153 <p>This·operation·should·compute·in·<em>O</em>(1)·time.</p>153 <p>This·operation·should·compute·in·<em>O</em>(1)·time.</p>
154 <h5·id="examples-10"><a·class="doc-anchor"·href="#examples-10">§</a>Examples</h5>154 <h5·id="examples-10"><a·class="doc-anchor"·href="#examples-10">§</a>Examples</h5>
155 <div·class="example-wrap"><pre·class="rust·rust-example-rendered"><code><span·class="kw">use·</span>std::collections::LinkedList;155 <div·class="example-wrap"><pre·class="rust·rust-example-rendered"><code><span·class="kw">use·</span>std::collections::LinkedList;
  
156 <span·class="kw">let·</span><span·class="kw-2">mut·</span>dl·=·LinkedList::new();156 <span·class="kw">let·</span><span·class="kw-2">mut·</span>dl·=·LinkedList::new();
157 <span·class="macro">assert_eq!</span>(dl.front(),·<span·class="prelude-val">None</span>);157 <span·class="macro">assert_eq!</span>(dl.front(),·<span·class="prelude-val">None</span>);
Offset 167, 26 lines modifiedOffset 167, 26 lines modified
167 <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="macro">assert_eq!</span>(dl.front(),·<span·class="prelude-val">Some</span>(<span·class="kw-2">&amp;</span><span·class="number">1</span>));
  
168 <span·class="kw">match·</span>dl.front_mut()·{168 <span·class="kw">match·</span>dl.front_mut()·{
169 ····<span·class="prelude-val">None·</span>=&gt;·{},169 ····<span·class="prelude-val">None·</span>=&gt;·{},
170 ····<span·class="prelude-val">Some</span>(x)·=&gt;·<span·class="kw-2">*</span>x·=·<span·class="number">5</span>,170 ····<span·class="prelude-val">Some</span>(x)·=&gt;·<span·class="kw-2">*</span>x·=·<span·class="number">5</span>,
171 }171 }
172 <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"·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">Run</a></div>172 <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"·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">Run</a></div>
173 </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#797-799">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></summary><div·class="docblock"><p>Provides·a·reference·to·the·back·element,·or·<code>None</code>·if·the·list·is173 </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#797-799">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.78.0/core/option/enum.Option.html"·title="enum·core::option::Option">Option</a>&lt;<a·class="primitive"·href="https://doc.rust-lang.org/1.78.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
174 empty.</p>174 empty.</p>
175 <p>This·operation·should·compute·in·<em>O</em>(1)·time.</p>175 <p>This·operation·should·compute·in·<em>O</em>(1)·time.</p>
176 <h5·id="examples-11"><a·class="doc-anchor"·href="#examples-11">§</a>Examples</h5>176 <h5·id="examples-11"><a·class="doc-anchor"·href="#examples-11">§</a>Examples</h5>
177 <div·class="example-wrap"><pre·class="rust·rust-example-rendered"><code><span·class="kw">use·</span>std::collections::LinkedList;177 <div·class="example-wrap"><pre·class="rust·rust-example-rendered"><code><span·class="kw">use·</span>std::collections::LinkedList;
  
178 <span·class="kw">let·</span><span·class="kw-2">mut·</span>dl·=·LinkedList::new();178 <span·class="kw">let·</span><span·class="kw-2">mut·</span>dl·=·LinkedList::new();
179 <span·class="macro">assert_eq!</span>(dl.back(),·<span·class="prelude-val">None</span>);179 <span·class="macro">assert_eq!</span>(dl.back(),·<span·class="prelude-val">None</span>);
  
180 dl.push_back(<span·class="number">1</span>);180 dl.push_back(<span·class="number">1</span>);
181 <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"·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">Run</a></div>181 <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"·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">Run</a></div>
182 </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#825-827">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></summary><div·class="docblock"><p>Provides·a·mutable·reference·to·the·back·element,·or·<code>None</code>·if·the·list182 </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#825-827">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.78.0/core/option/enum.Option.html"·title="enum·core::option::Option">Option</a>&lt;<a·class="primitive"·href="https://doc.rust-lang.org/1.78.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
183 is·empty.</p>183 is·empty.</p>
184 <p>This·operation·should·compute·in·<em>O</em>(1)·time.</p>184 <p>This·operation·should·compute·in·<em>O</em>(1)·time.</p>
185 <h5·id="examples-12"><a·class="doc-anchor"·href="#examples-12">§</a>Examples</h5>185 <h5·id="examples-12"><a·class="doc-anchor"·href="#examples-12">§</a>Examples</h5>
186 <div·class="example-wrap"><pre·class="rust·rust-example-rendered"><code><span·class="kw">use·</span>std::collections::LinkedList;186 <div·class="example-wrap"><pre·class="rust·rust-example-rendered"><code><span·class="kw">use·</span>std::collections::LinkedList;
  
187 <span·class="kw">let·</span><span·class="kw-2">mut·</span>dl·=·LinkedList::new();187 <span·class="kw">let·</span><span·class="kw-2">mut·</span>dl·=·LinkedList::new();
188 <span·class="macro">assert_eq!</span>(dl.back(),·<span·class="prelude-val">None</span>);188 <span·class="macro">assert_eq!</span>(dl.back(),·<span·class="prelude-val">None</span>);
Offset 207, 15 lines modifiedOffset 207, 15 lines modified
207 <span·class="kw">let·</span><span·class="kw-2">mut·</span>dl·=·LinkedList::new();207 <span·class="kw">let·</span><span·class="kw-2">mut·</span>dl·=·LinkedList::new();
  
208 dl.push_front(<span·class="number">2</span>);208 dl.push_front(<span·class="number">2</span>);
209 <span·class="macro">assert_eq!</span>(dl.front().unwrap(),·<span·class="kw-2">&amp;</span><span·class="number">2</span>);209 <span·class="macro">assert_eq!</span>(dl.front().unwrap(),·<span·class="kw-2">&amp;</span><span·class="number">2</span>);
  
210 dl.push_front(<span·class="number">1</span>);210 dl.push_front(<span·class="number">1</span>);
211 <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"·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">Run</a></div>211 <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"·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">Run</a></div>
212 </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#876-878">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></summary><div·class="docblock"><p>Removes·the·first·element·and·returns·it,·or·<code>None</code>·if·the·list·is212 </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#876-878">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.78.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
213 empty.</p>213 empty.</p>
214 <p>This·operation·should·compute·in·<em>O</em>(1)·time.</p>214 <p>This·operation·should·compute·in·<em>O</em>(1)·time.</p>
215 <h5·id="examples-14"><a·class="doc-anchor"·href="#examples-14">§</a>Examples</h5>215 <h5·id="examples-14"><a·class="doc-anchor"·href="#examples-14">§</a>Examples</h5>
216 <div·class="example-wrap"><pre·class="rust·rust-example-rendered"><code><span·class="kw">use·</span>std::collections::LinkedList;216 <div·class="example-wrap"><pre·class="rust·rust-example-rendered"><code><span·class="kw">use·</span>std::collections::LinkedList;
  
217 <span·class="kw">let·</span><span·class="kw-2">mut·</span>d·=·LinkedList::new();217 <span·class="kw">let·</span><span·class="kw-2">mut·</span>d·=·LinkedList::new();
218 <span·class="macro">assert_eq!</span>(d.pop_front(),·<span·class="prelude-val">None</span>);218 <span·class="macro">assert_eq!</span>(d.pop_front(),·<span·class="prelude-val">None</span>);
Offset 230, 27 lines modifiedOffset 230, 27 lines modified
Max diff block lines reached; 150104/175499 bytes (85.53%) of diff not shown.
68.5 KB
./usr/share/doc/rust-web-doc/html/alloc/collections/struct.TryReserveError.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="The·error·type·for·`try_reserve`·methods."><title>TryReserveError·in·alloc::collections·-·Rust</title><script>·if·(window.location.protocol·!==·"file:")·document.write(`<link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/SourceSerif4-Regular-46f98efaafac5295.ttf.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/FiraSans-Regular-018c141bf0843ffd.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/FiraSans-Medium-8f9a781e4970d388.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/SourceCodePro-Regular-562dcc5011b6de7d.ttf.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/SourceCodePro-Semibold-d899c5a5c4aeb14a.ttf.woff2">`)</script><link·rel="stylesheet"·href="../../static.files/normalize-76eba96aa4d2e634.css"><link·rel="stylesheet"·href="../../static.files/rustdoc-35f9e32502181f1e.css"><meta·name="rustdoc-vars"·data-root-path="../../"·data-static-root-path="../../static.files/"·data-current-crate="alloc"·data-themes=""·data-resource-suffix="1.78.0"·data-rustdoc-version="1.78.0"·data-channel="1.78.0"·data-search-js="search-42d8da7a6b9792c2.js"·data-settings-js="settings-4313503d2e1961c2.js"·><script·src="../../static.files/storage-4c98445ec4002617.js"></script><script·defer·src="sidebar-items1.78.0.js"></script><script·defer·src="../../static.files/main-12cf3b4f4f9dc36d.js"></script><noscript><link·rel="stylesheet"·href="../../static.files/noscript-04d5337699b92874.css"></noscript><link·rel="alternate·icon"·type="image/png"·href="../../static.files/favicon-16x16-8b506e7a72182f1c.png"><link·rel="alternate·icon"·type="image/png"·href="../../static.files/favicon-32x32-422f7d1d52889060.png"><link·rel="icon"·type="image/svg+xml"·href="../../static.files/favicon-2c020d218678b618.svg"></head><body·class="rustdoc·struct"><!--[if·lte·IE·11]><div·class="warning">This·old·browser·is·unsupported·and·will·most·likely·display·funky·things.</div><![endif]--><nav·class="mobile-topbar"><button·class="sidebar-menu-toggle"·title="show·sidebar"></button><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-151179464ae7ed46.svg"·alt=""></a></nav><nav·class="sidebar"><div·class="sidebar-crate"><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-151179464ae7ed46.svg"·alt="logo"></a><h2><a·href="../../alloc/index.html">alloc</a><span·class="version">1.78.0</span></h2></div><h2·class="location"><a·href="#">TryReserveError</a></h2><div·class="sidebar-elems"><section><h3><a·href="#implementations">Methods</a></h3><ul·class="block·method"><li><a·href="#method.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">Clone</a></li><li><a·href="#impl-Debug-for-TryReserveError">Debug</a></li><li><a·href="#impl-Display-for-TryReserveError">Display</a></li><li><a·href="#impl-Eq-for-TryReserveError">Eq</a></li><li><a·href="#impl-Error-for-TryReserveError">Error</a></li><li><a·href="#impl-From%3CTryReserveErrorKind%3E-for-TryReserveError">From&lt;TryReserveErrorKind&gt;</a></li><li><a·href="#impl-PartialEq-for-TryReserveError">PartialEq</a></li><li><a·href="#impl-StructuralPartialEq-for-TryReserveError">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">Freeze</a></li><li><a·href="#impl-RefUnwindSafe-for-TryReserveError">RefUnwindSafe</a></li><li><a·href="#impl-Send-for-TryReserveError">Send</a></li><li><a·href="#impl-Sync-for-TryReserveError">Sync</a></li><li><a·href="#impl-Unpin-for-TryReserveError">Unpin</a></li><li><a·href="#impl-UnwindSafe-for-TryReserveError">UnwindSafe</a></li></ul><h3><a·href="#blanket-implementations">Blanket·Implementations</a></h3><ul·class="block·blanket-implementation"><li><a·href="#impl-Any-for-T">Any</a></li><li><a·href="#impl-Borrow%3CT%3E-for-T">Borrow&lt;T&gt;</a></li><li><a·href="#impl-BorrowMut%3CT%3E-for-T">BorrowMut&lt;T&gt;</a></li><li><a·href="#impl-From%3CT%3E-for-T">From&lt;T&gt;</a></li><li><a·href="#impl-Into%3CU%3E-for-T">Into&lt;U&gt;</a></li><li><a·href="#impl-ToOwned-for-T">ToOwned</a></li><li><a·href="#impl-ToString-for-T">ToString</a></li><li><a·href="#impl-TryFrom%3CU%3E-for-T">TryFrom&lt;U&gt;</a></li><li><a·href="#impl-TryInto%3CU%3E-for-T">TryInto&lt;U&gt;</a></li></ul></section><h2><a·href="index.html">In·alloc::collections</a></h2></div></nav><div·class="sidebar-resizer"></div>1 <!DOCTYPE·html><html·lang="en"><head><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.write(`<link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/SourceSerif4-Regular-46f98efaafac5295.ttf.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/FiraSans-Regular-018c141bf0843ffd.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/FiraSans-Medium-8f9a781e4970d388.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/SourceCodePro-Regular-562dcc5011b6de7d.ttf.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/SourceCodePro-Semibold-d899c5a5c4aeb14a.ttf.woff2">`)</script><link·rel="stylesheet"·href="../../static.files/normalize-76eba96aa4d2e634.css"><link·rel="stylesheet"·href="../../static.files/rustdoc-35f9e32502181f1e.css"><meta·name="rustdoc-vars"·data-root-path="../../"·data-static-root-path="../../static.files/"·data-current-crate="alloc"·data-themes=""·data-resource-suffix="1.78.0"·data-rustdoc-version="1.78.0"·data-channel="1.78.0"·data-search-js="search-42d8da7a6b9792c2.js"·data-settings-js="settings-4313503d2e1961c2.js"·><script·src="../../static.files/storage-4c98445ec4002617.js"></script><script·defer·src="sidebar-items1.78.0.js"></script><script·defer·src="../../static.files/main-12cf3b4f4f9dc36d.js"></script><noscript><link·rel="stylesheet"·href="../../static.files/noscript-04d5337699b92874.css"></noscript><link·rel="alternate·icon"·type="image/png"·href="../../static.files/favicon-16x16-8b506e7a72182f1c.png"><link·rel="alternate·icon"·type="image/png"·href="../../static.files/favicon-32x32-422f7d1d52889060.png"><link·rel="icon"·type="image/svg+xml"·href="../../static.files/favicon-2c020d218678b618.svg"></head><body·class="rustdoc·struct"><!--[if·lte·IE·11]><div·class="warning">This·old·browser·is·unsupported·and·will·most·likely·display·funky·things.</div><![endif]--><nav·class="mobile-topbar"><button·class="sidebar-menu-toggle"·title="show·sidebar"></button><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-151179464ae7ed46.svg"·alt=""></a></nav><nav·class="sidebar"><div·class="sidebar-crate"><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-151179464ae7ed46.svg"·alt="logo"></a><h2><a·href="../../alloc/index.html">alloc</a><span·class="version">1.78.0</span></h2></div><h2·class="location"><a·href="#">TryReserveError</a></h2><div·class="sidebar-elems"><section><h3><a·href="#implementations">Methods</a></h3><ul·class="block·method"><li><a·href="#method.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">Clone</a></li><li><a·href="#impl-Debug-for-TryReserveError">Debug</a></li><li><a·href="#impl-Display-for-TryReserveError">Display</a></li><li><a·href="#impl-Eq-for-TryReserveError">Eq</a></li><li><a·href="#impl-Error-for-TryReserveError">Error</a></li><li><a·href="#impl-From%3CTryReserveErrorKind%3E-for-TryReserveError">From&lt;TryReserveErrorKind&gt;</a></li><li><a·href="#impl-PartialEq-for-TryReserveError">PartialEq</a></li><li><a·href="#impl-StructuralPartialEq-for-TryReserveError">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">Freeze</a></li><li><a·href="#impl-RefUnwindSafe-for-TryReserveError">RefUnwindSafe</a></li><li><a·href="#impl-Send-for-TryReserveError">Send</a></li><li><a·href="#impl-Sync-for-TryReserveError">Sync</a></li><li><a·href="#impl-Unpin-for-TryReserveError">Unpin</a></li><li><a·href="#impl-UnwindSafe-for-TryReserveError">UnwindSafe</a></li></ul><h3><a·href="#blanket-implementations">Blanket·Implementations</a></h3><ul·class="block·blanket-implementation"><li><a·href="#impl-Any-for-T">Any</a></li><li><a·href="#impl-Borrow%3CT%3E-for-T">Borrow&lt;T&gt;</a></li><li><a·href="#impl-BorrowMut%3CT%3E-for-T">BorrowMut&lt;T&gt;</a></li><li><a·href="#impl-From%3CT%3E-for-T">From&lt;T&gt;</a></li><li><a·href="#impl-Into%3CU%3E-for-T">Into&lt;U&gt;</a></li><li><a·href="#impl-ToOwned-for-T">ToOwned</a></li><li><a·href="#impl-ToString-for-T">ToString</a></li><li><a·href="#impl-TryFrom%3CU%3E-for-T">TryFrom&lt;U&gt;</a></li><li><a·href="#impl-TryInto%3CU%3E-for-T">TryInto&lt;U&gt;</a></li></ul></section><h2><a·href="index.html">In·alloc::collections</a></h2></div></nav><div·class="sidebar-resizer"></div>
2 ····<main><div·class="width-limiter"><nav·class="sub"><form·class="search-form"><span></span><div·id="sidebar-button"·tabindex="-1"><a·href="../../alloc/all.html"·title="show·sidebar"></a></div><input·class="search-input"·name="search"·aria-label="Run·search·in·the·documentation"·autocomplete="off"·spellcheck="false"·placeholder="Click·or·press·‘S’·to·search,·‘?’·for·more·options…"·type="search"><div·id="help-button"·tabindex="-1"><a·href="../../help.html"·title="help">?</a></div><div·id="settings-menu"·tabindex="-1"><a·href="../../settings.html"·title="settings"><img·width="22"·height="22"·alt="Change·settings"·src="../../static.files/wheel-7b819b6101059cd0.svg"></a></div></form></nav><section·id="main-content"·class="content"><div·class="main-heading"><h1>Struct·<a·href="../index.html">alloc</a>::<wbr><a·href="index.html">collections</a>::<wbr><a·class="struct"·href="#">TryReserveError</a><button·id="copy-path"·title="Copy·item·path·to·clipboard"><img·src="../../static.files/clipboard-7571035ce49a181d.svg"·width="19"·height="18"·alt="Copy·item·path"></button></h1><span·class="out-of-band"><span·class="since"·title="Stable·since·Rust·version·1.57.0">1.57.0</span>···<a·class="src"·href="../../src/alloc/collections/mod.rs.html#61-63">source</a>···<button·id="toggle-all-docs"·title="collapse·all·docs">[<span>&#x2212;</span>]</button></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 ····<main><div·class="width-limiter"><nav·class="sub"><form·class="search-form"><span></span><div·id="sidebar-button"·tabindex="-1"><a·href="../../alloc/all.html"·title="show·sidebar"></a></div><input·class="search-input"·name="search"·aria-label="Run·search·in·the·documentation"·autocomplete="off"·spellcheck="false"·placeholder="Click·or·press·‘S’·to·search,·‘?’·for·more·options…"·type="search"><div·id="help-button"·tabindex="-1"><a·href="../../help.html"·title="help">?</a></div><div·id="settings-menu"·tabindex="-1"><a·href="../../settings.html"·title="settings"><img·width="22"·height="22"·alt="Change·settings"·src="../../static.files/wheel-7b819b6101059cd0.svg"></a></div></form></nav><section·id="main-content"·class="content"><div·class="main-heading"><h1>Struct·<a·href="../index.html">alloc</a>::<wbr><a·href="index.html">collections</a>::<wbr><a·class="struct"·href="#">TryReserveError</a><button·id="copy-path"·title="Copy·item·path·to·clipboard"><img·src="../../static.files/clipboard-7571035ce49a181d.svg"·width="19"·height="18"·alt="Copy·item·path"></button></h1><span·class="out-of-band"><span·class="since"·title="Stable·since·Rust·version·1.57.0">1.57.0</span>···<a·class="src"·href="../../src/alloc/collections/mod.rs.html#61-63">source</a>···<button·id="toggle-all-docs"·title="collapse·all·docs">[<span>&#x2212;</span>]</button></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>
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-TryReserveError"·class="impl"><a·class="src·rightside"·href="../../src/alloc/collections/mod.rs.html#65-77">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#74-76">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><h2·id="implementations"·class="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#65-77">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#74-76">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>
4 </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"><a·class="src·rightside"·href="../../src/alloc/collections/mod.rs.html#59">source</a><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:·10807,·SHA:·91b11e109951c5ff221f73895d7645fbb831258c38d782ed6aa762793af14277·...·]/core/primitive.bool.html">bool</a></h4></section></summary><div·class='docblock'>This·method·tests·for·<code>self</code>·and·<code>other</code>·values·to·be·equal,·and·is·used4 </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"><a·class="src·rightside"·href="../../src/alloc/collections/mod.rs.html#59">source</a><a·href="#impl-Clone-for-TryReserveError"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="https://doc.rust-lang.org/1.78.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:·11671,·SHA:·087fcd8ca1ce2f51f2e85700917eade376adb3a03c56e25a33a815373825aff2·...·]/core/primitive.bool.html">bool</a></h4></section></summary><div·class='docblock'>This·method·tests·for·<code>self</code>·and·<code>other</code>·values·to·be·equal,·and·is·used
5 by·<code>==</code>.</div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.ne"·class="method·trait-impl"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.0.0">1.0.0</span>···<a·class="src"·href="../../src/core/cmp.rs.html#263">source</a></span><a·href="#method.ne"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../../core/cmp/trait.PartialEq.html#method.ne"·class="fn">ne</a>(&amp;self,·other:·<a·class="primitive"·href="../../core/primitive[·...·truncated·by·diffoscope;·len:·69,·SHA:·bb676445ed4716783d5d8ed2fb1ff635f2577a6cd8b41db49822f9e352e394c1·...·]/core/primitive.bool.html">bool</a></h4></section></summary><div·class='docblock'>This·method·tests·for·<code>!=</code>.·The·default·implementation·is·almost·always5 by·<code>==</code>.</div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.ne"·class="method·trait-impl"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.0.0">1.0.0</span>···<a·class="src"·href="https://doc.rust-lang.org/1.78.0/src/core/cmp.rs.html#263">source</a></span><a·href="#method.ne"·class="anchor">§</a><h4·class="code-header">fn·<a·href="https://doc.rust-lang.org/1.78.0/core/cmp/trait.PartialEq.html#method.ne"·class="fn">ne</a>(&amp;self,·[·...·truncated·by·diffoscope;·len:·177,·SHA:·e1e3f9b9b78644c807cda06ba58cbf80a7a50ed17e7136cd156da5dd11dec66f·...·]/core/primitive.bool.html">bool</a></h4></section></summary><div·class='docblock'>This·method·tests·for·<code>!=</code>.·The·default·implementation·is·almost·always
6 sufficient,·and·should·not·be·overridden·without·very·good·reason.</div></details></div></details><section·id="impl-Eq-for-TryReserveError"·class="impl"><a·class="src·rightside"·href="../../src/alloc/collections/mod.rs.html#59">source</a><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:·3627,·SHA:·2e2e1a4b0dbc2f677c07122099cb2e15c9eed49c0b6a73280b9ee3d74a09256f·...·]/core/any/trait.Any.html"·title="trait·core::any::Any">Any</a>·for·T<div·class="where">where6 sufficient,·and·should·not·be·overridden·without·very·good·reason.</div></details></div></details><section·id="impl-Eq-for-TryReserveError"·class="impl"><a·class="src·rightside"·href="../../src/alloc/collections/mod.rs.html#59">source</a><a·href="#impl-Eq-for-TryReserveError"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="https://doc.rust-lang.org/1.78.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:·3897,·SHA:·76fd7a03fb06fd195d8a9f70f8557cc8750ecc6f30e4e0cfac8b7df78128f232·...·]/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:·9db8bacb767d75cc3351ca7341c388130aa05ebef490d992be5374f16eedc378·...·]/src/core/borrow.rs.html#208">source</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.78.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">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:·039b8952ccb1ab7d8f15cd519cbc10f4afc149276d0f9cfd3a53117d606059df·...·]/src/core/borrow.rs.html#208">source</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:·b2ffbab17ff1ef71ba4c506a3aaa515da2082da6f02a53862ce1ca2b2b25f5b4·...·]/src/core/borrow.rs.html#216">source</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.78.0/core/marker/trait.Sized.html"·title="trait·core::marker::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:·952d76e7bcf7b521fffa418ce638abf69976de0942360e56f93e419ca3389394·...·]/src/core/borrow.rs.html#216">source</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:·1231,·SHA:·09cd1566e930fb0ad4218bdeced1a1fda2d266565b6bc2a7ac6478b00b9c84fc·...·]/core/convert/trait.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.78.0/core/marker/trait.Sized.html"·title="trait·core::marker::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:·1420,·SHA:·3769a6e6008d20bc0e21a8bbd258f80ae327c76d74f51823104ffb89926426b3·...·]/core/convert/trait.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.78.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.78.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·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>11 ····U:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.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:·2cf76a8ca501b2a1fef209fed846779ab1bed3b75f52c7425335e3ce04e6b272·...·]/core/convert/trait.Into.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.78.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#83-95">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#83-95">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·href="#associ[·...·truncated·by·diffoscope;·len:·1220,·SHA:·3cbf0f64542b816603968ea3c1b51d1b1eb93d99770d50fed747c05540b0e6b0·...·]/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#2543-2557">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.78.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:·1274,·SHA:·0c080e1e1236f77ce91b20fef8bb17c6bc50a069d2e16d2b40ea7b4298dec09f·...·]/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#2543-2557">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="sr[·...·truncated·by·diffoscope;·len:·875,·SHA:·bf3a3f8ffed9dcfc973405dddaf9f278663007cc35ca5daa38b602630201cbf0·...·]/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.78.0/core/marker/trait.Sized.html"·title="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:·531ea7c1ecd9197e925ea3063788b96ffe9ed8291f75ffba5fcab4c2298b41ca·...·]/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"·class="associatedtype·trait-impl"><a·hre[·...·truncated·by·diffoscope;·len:·1591,·SHA:·8537afacf1b3cf6b9fb7db778975d49d8a8e5988d420715e464ff4a79dd696c5·...·]/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.78.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"·class="associ[·...·truncated·by·diffoscope;·len:·1861,·SHA:·78398046ba16de2f66a8201a11d6a2dd405fceedeabfcaa37481e77092687e6f·...·]/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-1"·class="associatedtype·trait-i[·...·truncated·by·diffoscope;·len:·1231,·SHA:·7843e7b6cca73922417e4154886c0df66f016d274b48933c21bdb75b67479d5b·...·]/core/convert/trait.TryFrom.html#associatedtype.Error"·title="type·core::convert::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.78.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-1"·cl[·...·truncated·by·diffoscope;·len:·1474,·SHA:·ca90cccb6c86c654c95a1aaec456fbbe4b115f0d5a700e7d156e823346d70894·...·]/core/convert/trait.TryFrom.html#associatedtype.Error"·title="type·core::convert::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-web-doc/html/alloc/collections/vec_deque/struct.Drain.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="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.write(`<link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../../static.files/SourceSerif4-Regular-46f98efaafac5295.ttf.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../../static.files/FiraSans-Regular-018c141bf0843ffd.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../../static.files/FiraSans-Medium-8f9a781e4970d388.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../../static.files/SourceCodePro-Regular-562dcc5011b6de7d.ttf.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../../static.files/SourceCodePro-Semibold-d899c5a5c4aeb14a.ttf.woff2">`)</script><link·rel="stylesheet"·href="../../../static.files/normalize-76eba96aa4d2e634.css"><link·rel="stylesheet"·href="../../../static.files/rustdoc-35f9e32502181f1e.css"><meta·name="rustdoc-vars"·data-root-path="../../../"·data-static-root-path="../../../static.files/"·data-current-crate="alloc"·data-themes=""·data-resource-suffix="1.78.0"·data-rustdoc-version="1.78.0"·data-channel="1.78.0"·data-search-js="search-42d8da7a6b9792c2.js"·data-settings-js="settings-4313503d2e1961c2.js"·><script·src="../../../static.files/storage-4c98445ec4002617.js"></script><script·defer·src="sidebar-items1.78.0.js"></script><script·defer·src="../../../static.files/main-12cf3b4f4f9dc36d.js"></script><noscript><link·rel="stylesheet"·href="../../../static.files/noscript-04d5337699b92874.css"></noscript><link·rel="alternate·icon"·type="image/png"·href="../../../static.files/favicon-16x16-8b506e7a72182f1c.png"><link·rel="alternate·icon"·type="image/png"·href="../../../static.files/favicon-32x32-422f7d1d52889060.png"><link·rel="icon"·type="image/svg+xml"·href="../../../static.files/favicon-2c020d218678b618.svg"></head><body·class="rustdoc·struct"><!--[if·lte·IE·11]><div·class="warning">This·old·browser·is·unsupported·and·will·most·likely·display·funky·things.</div><![endif]--><nav·class="mobile-topbar"><button·class="sidebar-menu-toggle"·title="show·sidebar"></button><a·class="logo-container"·href="../../../alloc/index.html"><img·class="rust-logo"·src="../../../static.files/rust-logo-151179464ae7ed46.svg"·alt=""></a></nav><nav·class="sidebar"><div·class="sidebar-crate"><a·class="logo-container"·href="../../../alloc/index.html"><img·class="rust-logo"·src="../../../static.files/rust-logo-151179464ae7ed46.svg"·alt="logo"></a><h2><a·href="../../../alloc/index.html">alloc</a><span·class="version">1.78.0</span></h2></div><h2·class="location"><a·href="#">Drain</a></h2><div·class="sidebar-elems"><section><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">Debug</a></li><li><a·href="#impl-DoubleEndedIterator-for-Drain%3C'_,+T,+A%3E">DoubleEndedIterator</a></li><li><a·href="#impl-Drop-for-Drain%3C'_,+T,+A%3E">Drop</a></li><li><a·href="#impl-ExactSizeIterator-for-Drain%3C'_,+T,+A%3E">ExactSizeIterator</a></li><li><a·href="#impl-FusedIterator-for-Drain%3C'_,+T,+A%3E">FusedIterator</a></li><li><a·href="#impl-Iterator-for-Drain%3C'_,+T,+A%3E">Iterator</a></li><li><a·href="#impl-Send-for-Drain%3C'_,+T,+A%3E">Send</a></li><li><a·href="#impl-Sync-for-Drain%3C'_,+T,+A%3E">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">Freeze</a></li><li><a·href="#impl-RefUnwindSafe-for-Drain%3C'a,+T,+A%3E">RefUnwindSafe</a></li><li><a·href="#impl-Unpin-for-Drain%3C'a,+T,+A%3E">Unpin</a></li><li><a·href="#impl-UnwindSafe-for-Drain%3C'a,+T,+A%3E">UnwindSafe</a></li></ul><h3><a·href="#blanket-implementations">Blanket·Implementations</a></h3><ul·class="block·blanket-implementation"><li><a·href="#impl-Any-for-T">Any</a></li><li><a·href="#impl-Borrow%3CT%3E-for-T">Borrow&lt;T&gt;</a></li><li><a·href="#impl-BorrowMut%3CT%3E-for-T">BorrowMut&lt;T&gt;</a></li><li><a·href="#impl-From%3CT%3E-for-T">From&lt;T&gt;</a></li><li><a·href="#impl-Into%3CU%3E-for-T">Into&lt;U&gt;</a></li><li><a·href="#impl-IntoIterator-for-I">IntoIterator</a></li><li><a·href="#impl-TryFrom%3CU%3E-for-T">TryFrom&lt;U&gt;</a></li><li><a·href="#impl-TryInto%3CU%3E-for-T">TryInto&lt;U&gt;</a></li></ul></section><h2><a·href="index.html">In·alloc::collections::vec_deque</a></h2></div></nav><div·class="sidebar-resizer"></div>1 <!DOCTYPE·html><html·lang="en"><head><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.write(`<link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../../static.files/SourceSerif4-Regular-46f98efaafac5295.ttf.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../../static.files/FiraSans-Regular-018c141bf0843ffd.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../../static.files/FiraSans-Medium-8f9a781e4970d388.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../../static.files/SourceCodePro-Regular-562dcc5011b6de7d.ttf.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../../static.files/SourceCodePro-Semibold-d899c5a5c4aeb14a.ttf.woff2">`)</script><link·rel="stylesheet"·href="../../../static.files/normalize-76eba96aa4d2e634.css"><link·rel="stylesheet"·href="../../../static.files/rustdoc-35f9e32502181f1e.css"><meta·name="rustdoc-vars"·data-root-path="../../../"·data-static-root-path="../../../static.files/"·data-current-crate="alloc"·data-themes=""·data-resource-suffix="1.78.0"·data-rustdoc-version="1.78.0"·data-channel="1.78.0"·data-search-js="search-42d8da7a6b9792c2.js"·data-settings-js="settings-4313503d2e1961c2.js"·><script·src="../../../static.files/storage-4c98445ec4002617.js"></script><script·defer·src="sidebar-items1.78.0.js"></script><script·defer·src="../../../static.files/main-12cf3b4f4f9dc36d.js"></script><noscript><link·rel="stylesheet"·href="../../../static.files/noscript-04d5337699b92874.css"></noscript><link·rel="alternate·icon"·type="image/png"·href="../../../static.files/favicon-16x16-8b506e7a72182f1c.png"><link·rel="alternate·icon"·type="image/png"·href="../../../static.files/favicon-32x32-422f7d1d52889060.png"><link·rel="icon"·type="image/svg+xml"·href="../../../static.files/favicon-2c020d218678b618.svg"></head><body·class="rustdoc·struct"><!--[if·lte·IE·11]><div·class="warning">This·old·browser·is·unsupported·and·will·most·likely·display·funky·things.</div><![endif]--><nav·class="mobile-topbar"><button·class="sidebar-menu-toggle"·title="show·sidebar"></button><a·class="logo-container"·href="../../../alloc/index.html"><img·class="rust-logo"·src="../../../static.files/rust-logo-151179464ae7ed46.svg"·alt=""></a></nav><nav·class="sidebar"><div·class="sidebar-crate"><a·class="logo-container"·href="../../../alloc/index.html"><img·class="rust-logo"·src="../../../static.files/rust-logo-151179464ae7ed46.svg"·alt="logo"></a><h2><a·href="../../../alloc/index.html">alloc</a><span·class="version">1.78.0</span></h2></div><h2·class="location"><a·href="#">Drain</a></h2><div·class="sidebar-elems"><section><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">Debug</a></li><li><a·href="#impl-DoubleEndedIterator-for-Drain%3C'_,+T,+A%3E">DoubleEndedIterator</a></li><li><a·href="#impl-Drop-for-Drain%3C'_,+T,+A%3E">Drop</a></li><li><a·href="#impl-ExactSizeIterator-for-Drain%3C'_,+T,+A%3E">ExactSizeIterator</a></li><li><a·href="#impl-FusedIterator-for-Drain%3C'_,+T,+A%3E">FusedIterator</a></li><li><a·href="#impl-Iterator-for-Drain%3C'_,+T,+A%3E">Iterator</a></li><li><a·href="#impl-Send-for-Drain%3C'_,+T,+A%3E">Send</a></li><li><a·href="#impl-Sync-for-Drain%3C'_,+T,+A%3E">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">Freeze</a></li><li><a·href="#impl-RefUnwindSafe-for-Drain%3C'a,+T,+A%3E">RefUnwindSafe</a></li><li><a·href="#impl-Unpin-for-Drain%3C'a,+T,+A%3E">Unpin</a></li><li><a·href="#impl-UnwindSafe-for-Drain%3C'a,+T,+A%3E">UnwindSafe</a></li></ul><h3><a·href="#blanket-implementations">Blanket·Implementations</a></h3><ul·class="block·blanket-implementation"><li><a·href="#impl-Any-for-T">Any</a></li><li><a·href="#impl-Borrow%3CT%3E-for-T">Borrow&lt;T&gt;</a></li><li><a·href="#impl-BorrowMut%3CT%3E-for-T">BorrowMut&lt;T&gt;</a></li><li><a·href="#impl-From%3CT%3E-for-T">From&lt;T&gt;</a></li><li><a·href="#impl-Into%3CU%3E-for-T">Into&lt;U&gt;</a></li><li><a·href="#impl-IntoIterator-for-I">IntoIterator</a></li><li><a·href="#impl-TryFrom%3CU%3E-for-T">TryFrom&lt;U&gt;</a></li><li><a·href="#impl-TryInto%3CU%3E-for-T">TryInto&lt;U&gt;</a></li></ul></section><h2><a·href="index.html">In·alloc::collections::vec_deque</a></h2></div></nav><div·class="sidebar-resizer"></div>
2 ····<main><div·class="width-limiter"><nav·class="sub"><form·class="search-form"><span></span><div·id="sidebar-button"·tabindex="-1"><a·href="../../../alloc/all.html"·title="show·sidebar"></a></div><input·class="search-input"·name="search"·aria-label="Run·search·in·the·documentation"·autocomplete="off"·spellcheck="false"·placeholder="Click·or·press·‘S’·to·search,·‘?’·for·more·options…"·type="search"><div·id="help-button"·tabindex="-1"><a·href="../../../help.html"·title="help">?</a></div><div·id="settings-menu"·tabindex="-1"><a·href="../../../settings.html"·title="settings"><img·width="22"·height="22"·alt="Change·settings"·src="../../../static.files/wheel-7b819b6101059cd0.svg"></a></div></form></nav><section·id="main-content"·class="content"><div·class="main-heading"><h1>Struct·<a·href="../../index.html">alloc</a>::<wbr><a·href="../index.html">collections</a>::<wbr><a·href="index.html">vec_deque</a>::<wbr><a·class="struct"·href="#">Drain</a><button·id="copy-path"·title="Copy·item·path·to·clipboard"><img·src="../../../static.files/clipboard-7571035ce49a181d.svg"·width="19"·height="18"·alt="Copy·item·path"></button></h1><span·class="out-of-band"><span·class="since"·title="Stable·since·Rust·version·1.6.0">1.6.0</span>···<a·class="src"·href="../../../src/alloc/collections/vec_deque/drain.rs.html#18-35">source</a>···<button·id="toggle-all-docs"·title="collapse·all·docs">[<span>&#x2212;</span>]</button></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 ····<main><div·class="width-limiter"><nav·class="sub"><form·class="search-form"><span></span><div·id="sidebar-button"·tabindex="-1"><a·href="../../../alloc/all.html"·title="show·sidebar"></a></div><input·class="search-input"·name="search"·aria-label="Run·search·in·the·documentation"·autocomplete="off"·spellcheck="false"·placeholder="Click·or·press·‘S’·to·search,·‘?’·for·more·options…"·type="search"><div·id="help-button"·tabindex="-1"><a·href="../../../help.html"·title="help">?</a></div><div·id="settings-menu"·tabindex="-1"><a·href="../../../settings.html"·title="settings"><img·width="22"·height="22"·alt="Change·settings"·src="../../../static.files/wheel-7b819b6101059cd0.svg"></a></div></form></nav><section·id="main-content"·class="content"><div·class="main-heading"><h1>Struct·<a·href="../../index.html">alloc</a>::<wbr><a·href="../index.html">collections</a>::<wbr><a·href="index.html">vec_deque</a>::<wbr><a·class="struct"·href="#">Drain</a><button·id="copy-path"·title="Copy·item·path·to·clipboard"><img·src="../../../static.files/clipboard-7571035ce49a181d.svg"·width="19"·height="18"·alt="Copy·item·path"></button></h1><span·class="out-of-band"><span·class="since"·title="Stable·since·Rust·version·1.6.0">1.6.0</span>···<a·class="src"·href="../../../src/alloc/collections/vec_deque/drain.rs.html#18-35">source</a>···<button·id="toggle-all-docs"·title="collapse·all·docs">[<span>&#x2212;</span>]</button></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>
3 <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·its3 <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
4 documentation·for·more.</p>4 documentation·for·more.</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-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#77-86">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#78-85">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"><a·class="src·rightside"·href="../../../src/alloc/collections/vec_deque/drain.rs.html#259-269">source</a><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:·20ee17872c1c2fd2dc0777ad7b080cd92c954d7b5c6dac3117564becaf32c706·...·]/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><h2·id="trait-implementations"·class="section-header">Trait·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#77-86">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#78-85">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"><a·class="src·rightside"·href="../../../src/alloc/collections/vec_deque/drain.rs.html#259-269">source</a><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.78.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:·9eab3feca85036f4b2675d6b8cf81160642ecc1c16902bc92fd34e0c35d44a89·...·]/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.78.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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(B,·Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.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.78.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.7[·...·truncated·by·diffoscope;·len:·3,·SHA:·7b1bd53949b752d143d871408483b5382371b5bc48d195d0c040ec93cfa2748b·...·]/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:·b3a5d6383debff0cac836c5889a757f11b019bc049778c518e60e4d37a3c4da1·...·]/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.78.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:·d66ed7e195a53e9945339ef1976aed455dcf80228d8e5b7b0c69a64c3983fea1·...·]/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.78.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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(B,·Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/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:·d11fd274e41827c1daee0c80a6ab5f978a613ab26297cb460535fef32cff8551·...·]/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.78.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:·c264047794019a6dcf05728ba6a6ee1f8f07c7209958b3366ba94546b527ecdc·...·]/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.78.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:·7447,·SHA:·4288a95613c8deb93a7501b864328a57964a83a4bd6d47cb4271935cde09ae38·...·]/core/primitive.usize.html">usize</a>&gt;(14 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·8143,·SHA:·40715f043a246b3954894a4075b73e2af19fd15693ce44ff744bba4b87b6eaf6·...·]/core/primitive.usize.html">usize</a>&gt;(
15 ····&amp;mut·self15 ····&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.78.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.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title=[·...·truncated·by·diffoscope;·len:·381,·SHA:·88c48923c9b7ea5cc47c1087c60e09656e81d4671c58071ba2bef826335388bc·...·]/core/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:·f7c1ca2ff3e425a8295c41d4d2fe540d4a3cb1e7032a9d04d8aed936964c71b6·...·]/core/primitive.usize.html">usize</a><div·class="where">where17 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></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:·89791450da70cbd536c3cf8fbf2dd9891668362f9a252d3ee098222d19960bae·...·]/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:·a0deafb68573233cf98843dcb8980b408fa28f99c350115f667afd7858ad6f7e·...·]/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.78.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:·84ae0beb16240102bae2355bb8c543b17f3f107e3c06b320839aa401eebb1945·...·]/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:·28bd88719f8c6dacf69b206ecda434ff3ac19011adf99793edd5fafa883cbd71·...·]/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.78.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.78.0/cor[·...·truncated·by·diffoscope;·len:·3504,·SHA:·6d21b6d637e0b2e9953a37a26fd19e00da089147d4acaf696c94d448de4ce419·...·]/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.78.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:·4ac7445a1207207aeda1789f31c5036d8905fa206c83a58ca48662c081a68134·...·]/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.78.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:·e83c903581753673e083ce8dd809879a2fc81ab3050eb6db267d7fa26b15e035·...·]/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.78.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:·10378641f30fbaa3b3d8ba8984f91955195f5a0ddb70a41cc9ff99666b50a36f·...·]/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.78.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.78.0/core/iter/traits/it[·...·truncated·by·diffoscope;·len:·1329,·SHA:·d9299c8edc606ed82f24d61ce441bec451141d684c2a9a75074f5b19c57f196c·...·]/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.78.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:·b9001dd3131b1425179c94853e1b90fff0f7169b9570e86cd50c6b7fbf1ee8a5·...·]/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.78.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:·98627729f77dcf1c9d258f343354ba600b7134c6b3929080f231e8de7155b70b·...·]/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.78.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.78.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.78.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:·fa2a17b1aaf7dbc4e89f728d099c0a475adcd5ff79e4791795d7c4df5fc2ccec·...·]/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.78.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:·7301b6beba7b6885849be90a625df68ef739a5374af456c51fe2e81d91a25363·...·]/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.78.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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::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:·d75758e0f8262eeea27445cec43f13d84f0c02ba4e03c0c54d041f9ab1965e0f·...·]/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.78.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:·98f6effefa44d759c249143d83623f0055d937382bfc398b7e1f5e92cd413657·...·]/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.78.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:·9009d5c023150c1a97b2d18e30d176e7ff2e48673ad0e4665367958e752bf827·...·]/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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·916,·SHA:·30d0b2a76513c5a880e9aee43e92b18805845cfcfe5783f62dc090167a439e63·...·]/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.78.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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·140,·SHA:·752f473b57e7444ebfddf5ea7fd40a332e83ec55524a6c31b5ee0f82a5dea819·...·]/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:·7c1da0b93b40e2b4f823a0d24b5a27f092ffdb68175a9c14fe21a97d84bb2244·...·]/core/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.78.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:·76aa2ad154f88085ee3f8a22721a7e6812680bac785d19059532407f50da1801·...·]/core/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.78.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:·96005685f2d5bf532d7af03cf747a50bdbe5efffccc579afe197789e4cd44a54·...·]/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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·1052,·SHA:·110b47c7083083d565fcfc89337fddc8e5c87e81b2f720f3f7b0ded55e8500fb·...·]/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.78.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:·02bccd69f3cf4a08b24b66a0c9afb8ac49ebd0e9a7d5a183641b471189a35df3·...·]/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.78.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:·8464264e074dde5d84f0414ab3b5b2d8da83f3c9e3ca04c45458241580a8c80d·...·]/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.78.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.78.0/core/iter/adapte[·...·truncated·by·diffoscope;·len:·175,·SHA:·16fe7225bf05b478e2828b347c3d23ded9a22f89d8887a2c65d9f7b3faf1b0e7·...·]/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:·60d233d0587f535c8bae5118522baa81ef2524d4168f9e142529a37902d8e8c4·...·]/core/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.78.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:·00ccbb673c11ed48d8c6aa2a3f8984fb298202e7bccfa42f1ac21290fcc0fb06·...·]/core/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.78.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:·0900235f7b60bdd90fbf9718324068ecf230199603f19da2c38cad64ed6915ff·...·]/core/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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·1234,·SHA:·3b805567411cdcebed740f9e8d400dbe7fb487504f40e284544a140155090fdf·...·]/core/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.78.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:·552b3dd2132886d024e4d5bd2554611e25c1f068adaaf23ecf80da81d31997ef·...·]/core/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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·1058,·SHA:·b390dbdda8d7e93604b5ecd906a93efd03fe19bdaf41cf12893fd361bf974307·...·]/core/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.78.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:·491a83328e39b23cf5191ed5cb6bf83f1a62c9405ed5c39c58117b227b39b16c·...·]/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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·1163,·SHA:·5772149166d344bf8fa5ebbd9db8693a8f2e5f031c50338e8f1523ef72f814d6·...·]/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:·e62b3f87b06b061e799e72ab8f04c531f1c6f241266260eaab33ea2b793dd8d2·...·]/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.78.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:·6216516fe581c401abda3c95818192e8f030e2008c9bbdbaafebba16f33ea9bd·...·]/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.78.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:·7d73eca41cdb0c170bd03419f3563f3fe9e70e11494db546e781d302d3cd5636·...·]/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.78.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:·485843399c56e24bdf020ff0610d0ce1f62fbac5530d9880a1a7417105e3d70f·...·]/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.78.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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(<a·class="primitive"·href="https://doc.rust-lang.org/1.78.0/core/primitive.reference.html">&amp;mut·St</a>,·Self::<a·class="associatedty[·...·truncated·by·diffoscope;·len:·449,·SHA:·f12c268a8a8111b9e7126ad78bf5523a63733caa63d187c4fe792309ea41acdf·...·]/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:·02034aae893b799fa017b2d71546332d96a823cd4ba05c14089559819f3dd720·...·]/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.78.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.78.0/core/iter/trai[·...·truncated·by·diffoscope;·len:·690,·SHA:·371190e5c1bf9b7dde6e84447965a69946212b977b9eb6d89048fbe34c5dda1c·...·]/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.78.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.78.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:·4d1f54658fd1c005b101a2e27b0da3c6ee0cbe2d891660c65470bfec01fa46f6·...·]/core/iter/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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·976,·SHA:·2a9182f6fe88e0b8a9b1ae1f46cace940cc0b8736033c354c0f0ccbf1c196e7a·...·]/core/iter/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.78.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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;[Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtyp[·...·truncated·by·diffoscope;·len:·135,·SHA:·0b06a6094d42ccbc8bce5b01c4383961fe7f1967f05e4c9f1ff33e71e425fb26·...·]/core/primitive.array.html">N</a>])·-&gt;·R,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iter_map_windows</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/87155">#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.78.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:·d83146d48347da8e04ce6fcac96b0b1500203504f596d32c16a5a1493dd375e1·...·]/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.78.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:·0d33056cee8a4f9b70b573c0adecc2f3599a2f8d9fa9f2c2044e9118ab134f73·...·]/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:·e9288f8d879e78d7e79eb2c4255eb99308efd98061b1221968fb17de11019b2e·...·]/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.78.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.78.0/core/op[·...·truncated·by·diffoscope;·len:·841,·SHA:·9cba1b175fb3726d7f1f01da9be7c1a56568a68e4ce7915a468b730902daf8d3·...·]/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.78.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:·790,·SHA:·19293cf7305d77d7ccd51618427cff5e3edb06f162c23796ed392e0ac792f65e·...·]/core/primitive.reference.html">&amp;mut·Self</a><div·class="where">where65 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·934,·SHA:·ea20d2e0fe9388580ea08100baa9120b5e9b6cb48f43fc846f15db8b9649e7f6·...·]/core/primitive.reference.html">&amp;mut·Self</a><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:·cf371b2193fdcddf87cfe994db4d3e364336bb766b15dcfdd0ac7aabbd72e715·...·]/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.78.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.78.0/core/it[·...·truncated·by·diffoscope;·len:·523,·SHA:·97064c705f6f4bdf74469c54fabcf580d21893127d1b4cd9a9c1018a717ef153·...·]/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.78.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.78.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:·d76c3fcf86c63211032a6b22dc5924ef552b1ad26b12e19f15d2f1d5b3d7e394·...·]/core/primitive.reference.html">&amp;mut·E</a><div·class="where">where68 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.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.78.0/core/iter/tr[·...·truncated·by·diffoscope;·len:·728,·SHA:·01937c2dc314c259495665570ae249c94b4a5b0719718f5f1188e6fc64ecf487·...·]/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.78.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.78.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:·fa6f33be71e9184cfecc555b0b832d1a929285d35b47b1212b2176ac555731a1·...·]/core/primitive.tuple.html">(B,·B)</a><div·class="where">where70 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></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:·00bd47017b1bdd1bbe2c3fc932d955a8aa2f7f5eff8c00e3001ae28a982a5883·...·]/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.78.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.78.0/core/default/trait.Default.html"·title="trait·core::default::Default">Default</a>·+·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/collect/trait.Extend.html"·title="trait·core::iter::traits::collec[·...·truncated·by·diffoscope;·len:·95,·SHA:·8b3be1d0042cae0550f865faf5849221240bdf04eb1b2107605b72d48c3ad29c·...·]/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:·281bbd5137cae68dd8057d013e9c9f311461e746663120304e3f6adace77f784·...·]/core/primitive.usize.html">usize</a><div·class="where">where73 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·995,·SHA:·bec3765fdab56713186e2454cd84738b5b28e3280a2f3d5a25cefdbc3089b520·...·]/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.78.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>·+·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/double_ended/trait.DoubleEndedIterator.html"·title="trait·core::iter::trai[·...·truncated·by·diffoscope;·len:·132,·SHA:·e5b2cf5f56946ede1e190ed09879c5821e2de04cf8e5d145142eeb40c6340982·...·]/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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(<a·class="primitive"·href="https://doc.rust-lang.org/1.78.0/core/primitive.reference.html">&amp;T</a>)·-&gt;·<a·class="primitive"·href="[·...·truncated·by·diffoscope;·len:·32,·SHA:·63d052a8ced32bf927ffadd7e884c08caf4970e85dfdf6be0e568d49b174da96·...·]/core/primitive.bool.html">bool</a>,</div></h4></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:·dc6a465df534b0392c5280e79e5249847890045561099b2cfc44bfabc4801d8d·...·]/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.78.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:·0c224636c18baa273f69de21f90083317f2ea0b7367a3f0d0f1c0ace55a36f79·...·]/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.78.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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·135,·SHA:·51ff5f5c7ebd8440623ea71b125c5a5837e809e308fe1a13fbe19cddb941dbd9·...·]/core/primitive.bool.html">bool</a>,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iter_is_partitioned</code>&nbsp;<a·href="https://github.com/rust-lang/rust/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:·bd8fce4ee431c619c98780c4d520e8db93f1e034f12843ffaff5744b7ce2190b·...·]/core/iter/traits/iterator/trait.Iterator.html#method.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.78.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:·2c74873f4e5ba70004a1c7edd1cc3f9e2d91271295dd1591e2d26848df4c02ba·...·]/core/iter/traits/iterator/trait.Iterator.html#method.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.78.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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(B,·Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.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.78.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:·7b4fc32e7634ae85c682a97099be267837713d7e4831893b617ca652f57a89da·...·]/core/iter/traits/iterator/trait.Iterator.html#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.78.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:·52912e82c4b0a760d06f77eb4ee3a59ba70dd76cb532954900c73ae94c652674·...·]/core/iter/traits/iterator/trait.Iterator.html#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.78.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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.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.78.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.78.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:·5cfb1ce7ac10ff40c8d1d0f019b60fc4735736254c2d8357ed62287e51b1ac32·...·]/core/iter/traits/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.78.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:·1d6c4809cea8748e901d3f94777f450d430f3161f6ac05ed1c178d9327f966a3·...·]/core/iter/traits/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.78.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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(B,·Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::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:·2c738ecc68200afa2467bef085de14dcb642dbaac77c4529948f5e259e66691d·...·]/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.78.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:·b60215068a6d9721be05f81098c51167d7138c4042f140cad42f77c4df43f597·...·]/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.78.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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·352,·SHA:·e7c3c296abe2c0a183967153e4ae7fd50bafa2ae7088e3e78b3b48fee253adc6·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::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:·c3f1d50e276def36966943119961a20b09cab3be33483fe4d48d7f322489534b·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_reduce"·class="fn">try_reduce</a>&lt;F,·R&gt;(95 operation.·<a·href="https://doc.rust-lang.org/1.78.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:·7a18fdd041b1a001b4a8feb289ee127fd9240232239269eb35dc3b8f74783ec9·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_reduce"·class="fn">try_reduce</a>&lt;F,·R&gt;(
96 ····&amp;mut·self,96 ····&amp;mut·self,
97 ····f:·F97 ····f:·F
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.78.0/core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&gt;::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/ops/try_trait/trait.Try.html#associatedtype.Residual"·title="type[·...·truncated·by·diffoscope;·len:·754,·SHA:·6fb4dfdb6b4da68921c1e7f8b75d99cf293d58318d684a840254ce9576957bea·...·]/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.78.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::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:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·140,·SHA:·c27972e6fa3464c9476eaa185e8657edb6bb294f148403f3d079285294a9f909·...·]/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·=·Self::<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.78.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.78.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.78.0/core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&gt;::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/ops/try_trait/trait.Try.html#associatedtype.Residual"·title="type[·...·truncated·by·diffoscope;·len:·412,·SHA:·22b8cbb007e5cce82b9d13a65bfa56aa8d83c32541fac25f4d9b3857b0540908·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;&gt;,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iterator_try_reduce</code>&nbsp;<a·href="https://github.com/rust-lang/rust/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:·1a00be8efe0263bc0d09f5d47be04890b1d27a20c3429d1f4531805a03591fdb·...·]/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.78.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:·bc0d658d56e348823de15386e1cd4ab49109f3a7a055a4573a19391b47071193·...·]/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.78.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:·c15cbdf9d3f54700b6eac2f717541f7f5a3cf811d73f48ef7118096c1a240102·...·]/core/primitive.bool.html">bool</a><div·class="where">where105 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·1018,·SHA:·e61cd6bdd36729cc38e57fcaea2ccb91a23a5acbda3c8986071f19bf1ecfc52a·...·]/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.78.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:·80fef1533a0c8783ee74be0f29290d7dec960bcd19223b11639b3e6377220faa·...·]/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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·1172,·SHA:·e64ab74d116d286191ad43d9d9e10411fc011c23724aa806e9a8f9b0be0757e3·...·]/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.78.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:·f441e2966ff8db4214e57fcd74f81262d6e371aa51cea97ebde5921e81b4da79·...·]/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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·1051,·SHA:·ecc0b8fccd861464760f9ae047ff6ab98c91a1db010cb5fa59a8c2ab883db7c4·...·]/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.78.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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·130,·SHA:·130a13019dc175d02304b4f550157e2f13ac15c2f25a979c74161d10b146ab89·...·]/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:·ec4fb002625b166504031522e52a66812b279e6735a67cb718813205909c3fb7·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_find"·class="fn">try_find</a>&lt;F,·R&gt;(112 the·first·non-none·result.·<a·href="https://doc.rust-lang.org/1.78.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:·8ced1b10e78750774c5c8ed995ed83dcd13983aa75d329acf8069da106ab9f4a·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_find"·class="fn">try_find</a>&lt;F,·R&gt;(
113 ····&amp;mut·self,113 ····&amp;mut·self,
114 ····f:·F114 ····f:·F
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.78.0/core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&gt;::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/ops/try_trait/trait.Try.html#associatedtype.Residual"·title="type[·...·truncated·by·diffoscope;·len:·626,·SHA:·95f9831257b68862cbcbf54f0ad2ff4e597a4c9f763112d1da8a0897dadcf872·...·]/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.78.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;·R,117 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·R,
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.78.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.78.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.78.0/core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&gt;::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/ops/try_trait/trait.Try.html#associatedtype.Residual"·title="type[·...·truncated·by·diffoscope;·len:·412,·SHA:·22b8cbb007e5cce82b9d13a65bfa56aa8d83c32541fac25f4d9b3857b0540908·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;&gt;,</div></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.78.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:·fa9d94b216f6e4ce6035b4762e3bf17cb86a0272db0a55a056f05c68bcaeb0da·...·]/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.78.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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·1189,·SHA:·5d7c1922225f55c116c958103921a86cb5416f658d19ceb4428fb21528622af5·...·]/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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·135,·SHA:·51ff5f5c7ebd8440623ea71b125c5a5837e809e308fe1a13fbe19cddb941dbd9·...·]/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.78.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>·+·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/exact_size/trait.ExactSizeIterator.html"·title="trait·core::iter::traits::[·...·truncated·by·diffoscope;·len:·110,·SHA:·a8846fff2831d0de2de7dbb91c4e50f6f60fac276813cbaa471bf32fb45120d4·...·]/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"><a·class="src·rightside"·href="../../../src/[·...·truncated·by·diffoscope;·len:·425,·SHA:·4c49f4c6517f50ec367371f50746995684cc8b0a43bd359ebf7ced1209497bec·...·]/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.78.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"><a·class="src·rights[·...·truncated·by·diffoscope;·len:·545,·SHA:·ec58f5f16777227acedafad8adba3cad9291118a0b071a3065c6f3f75f50b3c5·...·]/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.78.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.78.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
Max diff block lines reached; 81281/308675 bytes (26.33%) of diff not shown.
304 KB
./usr/share/doc/rust-web-doc/html/alloc/collections/vec_deque/struct.IntoIter.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·owning·iterator·over·the·elements·of·a·`VecDeque`."><title>IntoIter·in·alloc::collections::vec_deque·-·Rust</title><script>·if·(window.location.protocol·!==·"file:")·document.write(`<link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../../static.files/SourceSerif4-Regular-46f98efaafac5295.ttf.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../../static.files/FiraSans-Regular-018c141bf0843ffd.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../../static.files/FiraSans-Medium-8f9a781e4970d388.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../../static.files/SourceCodePro-Regular-562dcc5011b6de7d.ttf.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../../static.files/SourceCodePro-Semibold-d899c5a5c4aeb14a.ttf.woff2">`)</script><link·rel="stylesheet"·href="../../../static.files/normalize-76eba96aa4d2e634.css"><link·rel="stylesheet"·href="../../../static.files/rustdoc-35f9e32502181f1e.css"><meta·name="rustdoc-vars"·data-root-path="../../../"·data-static-root-path="../../../static.files/"·data-current-crate="alloc"·data-themes=""·data-resource-suffix="1.78.0"·data-rustdoc-version="1.78.0"·data-channel="1.78.0"·data-search-js="search-42d8da7a6b9792c2.js"·data-settings-js="settings-4313503d2e1961c2.js"·><script·src="../../../static.files/storage-4c98445ec4002617.js"></script><script·defer·src="sidebar-items1.78.0.js"></script><script·defer·src="../../../static.files/main-12cf3b4f4f9dc36d.js"></script><noscript><link·rel="stylesheet"·href="../../../static.files/noscript-04d5337699b92874.css"></noscript><link·rel="alternate·icon"·type="image/png"·href="../../../static.files/favicon-16x16-8b506e7a72182f1c.png"><link·rel="alternate·icon"·type="image/png"·href="../../../static.files/favicon-32x32-422f7d1d52889060.png"><link·rel="icon"·type="image/svg+xml"·href="../../../static.files/favicon-2c020d218678b618.svg"></head><body·class="rustdoc·struct"><!--[if·lte·IE·11]><div·class="warning">This·old·browser·is·unsupported·and·will·most·likely·display·funky·things.</div><![endif]--><nav·class="mobile-topbar"><button·class="sidebar-menu-toggle"·title="show·sidebar"></button><a·class="logo-container"·href="../../../alloc/index.html"><img·class="rust-logo"·src="../../../static.files/rust-logo-151179464ae7ed46.svg"·alt=""></a></nav><nav·class="sidebar"><div·class="sidebar-crate"><a·class="logo-container"·href="../../../alloc/index.html"><img·class="rust-logo"·src="../../../static.files/rust-logo-151179464ae7ed46.svg"·alt="logo"></a><h2><a·href="../../../alloc/index.html">alloc</a><span·class="version">1.78.0</span></h2></div><h2·class="location"><a·href="#">IntoIter</a></h2><div·class="sidebar-elems"><section><h3><a·href="#trait-implementations">Trait·Implementations</a></h3><ul·class="block·trait-implementation"><li><a·href="#impl-Clone-for-IntoIter%3CT,+A%3E">Clone</a></li><li><a·href="#impl-Debug-for-IntoIter%3CT,+A%3E">Debug</a></li><li><a·href="#impl-DoubleEndedIterator-for-IntoIter%3CT,+A%3E">DoubleEndedIterator</a></li><li><a·href="#impl-ExactSizeIterator-for-IntoIter%3CT,+A%3E">ExactSizeIterator</a></li><li><a·href="#impl-FusedIterator-for-IntoIter%3CT,+A%3E">FusedIterator</a></li><li><a·href="#impl-Iterator-for-IntoIter%3CT,+A%3E">Iterator</a></li><li><a·href="#impl-TrustedLen-for-IntoIter%3CT,+A%3E">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">Freeze</a></li><li><a·href="#impl-RefUnwindSafe-for-IntoIter%3CT,+A%3E">RefUnwindSafe</a></li><li><a·href="#impl-Send-for-IntoIter%3CT,+A%3E">Send</a></li><li><a·href="#impl-Sync-for-IntoIter%3CT,+A%3E">Sync</a></li><li><a·href="#impl-Unpin-for-IntoIter%3CT,+A%3E">Unpin</a></li><li><a·href="#impl-UnwindSafe-for-IntoIter%3CT,+A%3E">UnwindSafe</a></li></ul><h3><a·href="#blanket-implementations">Blanket·Implementations</a></h3><ul·class="block·blanket-implementation"><li><a·href="#impl-Any-for-T">Any</a></li><li><a·href="#impl-Borrow%3CT%3E-for-T">Borrow&lt;T&gt;</a></li><li><a·href="#impl-BorrowMut%3CT%3E-for-T">BorrowMut&lt;T&gt;</a></li><li><a·href="#impl-From%3CT%3E-for-T">From&lt;T&gt;</a></li><li><a·href="#impl-Into%3CU%3E-for-T">Into&lt;U&gt;</a></li><li><a·href="#impl-IntoIterator-for-I">IntoIterator</a></li><li><a·href="#impl-ToOwned-for-T">ToOwned</a></li><li><a·href="#impl-TryFrom%3CU%3E-for-T">TryFrom&lt;U&gt;</a></li><li><a·href="#impl-TryInto%3CU%3E-for-T">TryInto&lt;U&gt;</a></li></ul></section><h2><a·href="index.html">In·alloc::collections::vec_deque</a></h2></div></nav><div·class="sidebar-resizer"></div>1 <!DOCTYPE·html><html·lang="en"><head><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.write(`<link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../../static.files/SourceSerif4-Regular-46f98efaafac5295.ttf.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../../static.files/FiraSans-Regular-018c141bf0843ffd.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../../static.files/FiraSans-Medium-8f9a781e4970d388.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../../static.files/SourceCodePro-Regular-562dcc5011b6de7d.ttf.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../../static.files/SourceCodePro-Semibold-d899c5a5c4aeb14a.ttf.woff2">`)</script><link·rel="stylesheet"·href="../../../static.files/normalize-76eba96aa4d2e634.css"><link·rel="stylesheet"·href="../../../static.files/rustdoc-35f9e32502181f1e.css"><meta·name="rustdoc-vars"·data-root-path="../../../"·data-static-root-path="../../../static.files/"·data-current-crate="alloc"·data-themes=""·data-resource-suffix="1.78.0"·data-rustdoc-version="1.78.0"·data-channel="1.78.0"·data-search-js="search-42d8da7a6b9792c2.js"·data-settings-js="settings-4313503d2e1961c2.js"·><script·src="../../../static.files/storage-4c98445ec4002617.js"></script><script·defer·src="sidebar-items1.78.0.js"></script><script·defer·src="../../../static.files/main-12cf3b4f4f9dc36d.js"></script><noscript><link·rel="stylesheet"·href="../../../static.files/noscript-04d5337699b92874.css"></noscript><link·rel="alternate·icon"·type="image/png"·href="../../../static.files/favicon-16x16-8b506e7a72182f1c.png"><link·rel="alternate·icon"·type="image/png"·href="../../../static.files/favicon-32x32-422f7d1d52889060.png"><link·rel="icon"·type="image/svg+xml"·href="../../../static.files/favicon-2c020d218678b618.svg"></head><body·class="rustdoc·struct"><!--[if·lte·IE·11]><div·class="warning">This·old·browser·is·unsupported·and·will·most·likely·display·funky·things.</div><![endif]--><nav·class="mobile-topbar"><button·class="sidebar-menu-toggle"·title="show·sidebar"></button><a·class="logo-container"·href="../../../alloc/index.html"><img·class="rust-logo"·src="../../../static.files/rust-logo-151179464ae7ed46.svg"·alt=""></a></nav><nav·class="sidebar"><div·class="sidebar-crate"><a·class="logo-container"·href="../../../alloc/index.html"><img·class="rust-logo"·src="../../../static.files/rust-logo-151179464ae7ed46.svg"·alt="logo"></a><h2><a·href="../../../alloc/index.html">alloc</a><span·class="version">1.78.0</span></h2></div><h2·class="location"><a·href="#">IntoIter</a></h2><div·class="sidebar-elems"><section><h3><a·href="#trait-implementations">Trait·Implementations</a></h3><ul·class="block·trait-implementation"><li><a·href="#impl-Clone-for-IntoIter%3CT,+A%3E">Clone</a></li><li><a·href="#impl-Debug-for-IntoIter%3CT,+A%3E">Debug</a></li><li><a·href="#impl-DoubleEndedIterator-for-IntoIter%3CT,+A%3E">DoubleEndedIterator</a></li><li><a·href="#impl-ExactSizeIterator-for-IntoIter%3CT,+A%3E">ExactSizeIterator</a></li><li><a·href="#impl-FusedIterator-for-IntoIter%3CT,+A%3E">FusedIterator</a></li><li><a·href="#impl-Iterator-for-IntoIter%3CT,+A%3E">Iterator</a></li><li><a·href="#impl-TrustedLen-for-IntoIter%3CT,+A%3E">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">Freeze</a></li><li><a·href="#impl-RefUnwindSafe-for-IntoIter%3CT,+A%3E">RefUnwindSafe</a></li><li><a·href="#impl-Send-for-IntoIter%3CT,+A%3E">Send</a></li><li><a·href="#impl-Sync-for-IntoIter%3CT,+A%3E">Sync</a></li><li><a·href="#impl-Unpin-for-IntoIter%3CT,+A%3E">Unpin</a></li><li><a·href="#impl-UnwindSafe-for-IntoIter%3CT,+A%3E">UnwindSafe</a></li></ul><h3><a·href="#blanket-implementations">Blanket·Implementations</a></h3><ul·class="block·blanket-implementation"><li><a·href="#impl-Any-for-T">Any</a></li><li><a·href="#impl-Borrow%3CT%3E-for-T">Borrow&lt;T&gt;</a></li><li><a·href="#impl-BorrowMut%3CT%3E-for-T">BorrowMut&lt;T&gt;</a></li><li><a·href="#impl-From%3CT%3E-for-T">From&lt;T&gt;</a></li><li><a·href="#impl-Into%3CU%3E-for-T">Into&lt;U&gt;</a></li><li><a·href="#impl-IntoIterator-for-I">IntoIterator</a></li><li><a·href="#impl-ToOwned-for-T">ToOwned</a></li><li><a·href="#impl-TryFrom%3CU%3E-for-T">TryFrom&lt;U&gt;</a></li><li><a·href="#impl-TryInto%3CU%3E-for-T">TryInto&lt;U&gt;</a></li></ul></section><h2><a·href="index.html">In·alloc::collections::vec_deque</a></h2></div></nav><div·class="sidebar-resizer"></div>
2 ····<main><div·class="width-limiter"><nav·class="sub"><form·class="search-form"><span></span><div·id="sidebar-button"·tabindex="-1"><a·href="../../../alloc/all.html"·title="show·sidebar"></a></div><input·class="search-input"·name="search"·aria-label="Run·search·in·the·documentation"·autocomplete="off"·spellcheck="false"·placeholder="Click·or·press·‘S’·to·search,·‘?’·for·more·options…"·type="search"><div·id="help-button"·tabindex="-1"><a·href="../../../help.html"·title="help">?</a></div><div·id="settings-menu"·tabindex="-1"><a·href="../../../settings.html"·title="settings"><img·width="22"·height="22"·alt="Change·settings"·src="../../../static.files/wheel-7b819b6101059cd0.svg"></a></div></form></nav><section·id="main-content"·class="content"><div·class="main-heading"><h1>Struct·<a·href="../../index.html">alloc</a>::<wbr><a·href="../index.html">collections</a>::<wbr><a·href="index.html">vec_deque</a>::<wbr><a·class="struct"·href="#">IntoIter</a><button·id="copy-path"·title="Copy·item·path·to·clipboard"><img·src="../../../static.files/clipboard-7571035ce49a181d.svg"·width="19"·height="18"·alt="Copy·item·path"></button></h1><span·class="out-of-band"><span·class="since"·title="Stable·since·Rust·version·1.0.0">1.0.0</span>···<a·class="src"·href="../../../src/alloc/collections/vec_deque/into_iter.rs.html#17-22">source</a>···<button·id="toggle-all-docs"·title="collapse·all·docs">[<span>&#x2212;</span>]</button></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 ····<main><div·class="width-limiter"><nav·class="sub"><form·class="search-form"><span></span><div·id="sidebar-button"·tabindex="-1"><a·href="../../../alloc/all.html"·title="show·sidebar"></a></div><input·class="search-input"·name="search"·aria-label="Run·search·in·the·documentation"·autocomplete="off"·spellcheck="false"·placeholder="Click·or·press·‘S’·to·search,·‘?’·for·more·options…"·type="search"><div·id="help-button"·tabindex="-1"><a·href="../../../help.html"·title="help">?</a></div><div·id="settings-menu"·tabindex="-1"><a·href="../../../settings.html"·title="settings"><img·width="22"·height="22"·alt="Change·settings"·src="../../../static.files/wheel-7b819b6101059cd0.svg"></a></div></form></nav><section·id="main-content"·class="content"><div·class="main-heading"><h1>Struct·<a·href="../../index.html">alloc</a>::<wbr><a·href="../index.html">collections</a>::<wbr><a·href="index.html">vec_deque</a>::<wbr><a·class="struct"·href="#">IntoIter</a><button·id="copy-path"·title="Copy·item·path·to·clipboard"><img·src="../../../static.files/clipboard-7571035ce49a181d.svg"·width="19"·height="18"·alt="Copy·item·path"></button></h1><span·class="out-of-band"><span·class="since"·title="Stable·since·Rust·version·1.0.0">1.0.0</span>···<a·class="src"·href="../../../src/alloc/collections/vec_deque/into_iter.rs.html#17-22">source</a>···<button·id="toggle-all-docs"·title="collapse·all·docs">[<span>&#x2212;</span>]</button></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>
3 <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 <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>
4 (provided·by·the·<a·href="../../../core/iter/traits/collect/trait.IntoIterator.html"·title="trait·core::iter::traits::collect::IntoIterator"><code>IntoIterator</code></a>·trait).·See·its·documentation·for·more.</p>4 (provided·by·the·<a·href="https://doc.rust-lang.org/1.78.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>
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-IntoIter%3CT,+A%3E"·class="impl"><a·class="src·rightside"·href="../../../src/alloc/collections/vec_deque/into_iter.rs.html#15">source</a><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:·6773,·SHA:·b46ea2ef55ac6457225f20461a0fcebc165c43f36f24b9a100da52ac895d4f75·...·]/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><h2·id="trait-implementations"·class="section-header">Trait·Implementations<a·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"><a·class="src·rightside"·href="../../../src/alloc/collections/vec_deque/into_iter.rs.html#15">source</a><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.78.0/core/clone/trait.Clone.html"·title="trait·core::clone::Clone">Clone</a>,·A:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/clone/trait.Clone.html"·title="trait·core::clone::Clone">Clone</a>·+·<a·class="trait"·[·...·truncated·by·diffoscope;·len:·7277,·SHA:·a4ea69e57066753ee655710956f9dcc96da0d7fa75504d128aa6721b775b7c6c·...·]/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 ····F:·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(B,·Self::<a·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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(B,·Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.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.78.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.7[·...·truncated·by·diffoscope;·len:·3,·SHA:·7b1bd53949b752d143d871408483b5382371b5bc48d195d0c040ec93cfa2748b·...·]/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"><a·class="src·rightside"·href="../[·...·truncated·by·diffoscope;·len:·163,·SHA:·a51fb6c306c0eae0ae910b56a577ba58d2cc5da9f4731ae8b1112341fdfe4531·...·]/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.78.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:·52c518890775e29e9788cae612e901361bfb11fe2b2d307ec9ac9764325d327c·...·]/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 ····F:·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(B,·Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/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 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(B,·Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/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 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:·615033f09a57547f02a3e81ebfee5bc9a60d37686c3ef54e4b211fe781ce86ba·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;<div·class="where">where10 final·value,·starting·from·the·back.·<a·href="https://doc.rust-lang.org/1.78.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:·0eb1d4f247587ce98bc022bbad891596a9dd7d190a703c66afb801cb296b124b·...·]/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>,11 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
12 ····P:·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator:[·...·truncated·by·diffoscope;·len:·8006,·SHA:·7b9580bd58e758f8fb0749f5b744b3ce7a4557fb983f309c5dbf0fc12f503e95·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_fold"·class="fn">try_fold</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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·8798,·SHA:·8f2a8723d8790473acc506909c50c01acdfadaea229e6a2b2482a07abf14034d·...·]/core/iter/traits/iterator/trait.Iterator.html#method.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
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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(B,·Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.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'>An·iterator·method·that·applies·a·function·as·long·as·it·returns14 ····R:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.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
15 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:·0716afe18761c715585d28c6ef8f55c76efb5024951d95e07a99cf04b87dc341·...·]/core/iter/traits/iterator/trait.Iterator.html#method.fold"·class="fn">fold</a>&lt;B,·F&gt;(self,·init:·B,·f:·F)·-&gt;·B<div·class="where">where15 successfully,·producing·a·single,·final·value.·<a·href="https://doc.rust-lang.org/1.78.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:·4b47a12a93fd01ca67a1b8dfa2680012fe6d8a309864b56259bad163f9885d70·...·]/core/iter/traits/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
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'>Folds·every·element·into·an·accumulator·by·applying·an·operation,16 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(B,·Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·B,</div></h4></section></summary><div·class='docblock'>Folds·every·element·into·an·accumulator·by·applying·an·operation,
17 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;(17 returning·the·final·result.·<a·href="https://doc.rust-lang.org/1.78.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:·5d66e8a2cdb4023a74ec9807da550c4a67eaab6e20838bdd8263ac29628623a9·...·]/core/primitive.usize.html">usize</a>&gt;(
18 ····&amp;mut·self18 ····&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:·2459,·SHA:·e33d22aabad7d170d6239279be4696fba06b028784fc2fa502b6b549b11849db·...·]/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 )·-&gt;·<a·class="enum"·href="https://doc.rust-lang.org/1.78.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.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title=[·...·truncated·by·diffoscope;·len:·2843,·SHA:·005a8fe96fe0b81612c1612eebde67238fab66df7f14bb33113f2d358794e77f·...·]/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.78.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"><a·class="src·rightside"·href="../../../src/core/it[·...·truncated·by·diffoscope;·len:·602,·SHA:·cfe4c4d300dddc2abdc2f8194eb969c68b2240c28239969b5be2af6a564ed8cc·...·]/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.78.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"><a·class="src·rightside"·hr[·...·truncated·by·diffoscope;·len:·746,·SHA:·f1f70d650c102c8658e13890c7dbfc87418f07e7b522246fb579ec434ef64f7c·...·]/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.78.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:·1041,·SHA:·a281d174c9671021427f0b458ac94e87746ac44730475aa725652c6c15e2b972·...·]/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.78.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.78.0/core/iter/traits/it[·...·truncated·by·diffoscope;·len:·1233,·SHA:·f677df2d893dfe0dc1a9d31ebb0ba71a346d265781813e0d664d3f18369b6163·...·]/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.78.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:·b9001dd3131b1425179c94853e1b90fff0f7169b9570e86cd50c6b7fbf1ee8a5·...·]/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.78.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:·98627729f77dcf1c9d258f343354ba600b7134c6b3929080f231e8de7155b70b·...·]/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.78.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.78.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.78.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"><a·class="src·rightside"·href="../../../src/[·...·truncated·by·diffoscope;·len:·279,·SHA:·f2c34c2e64e77c66684f837812ebc4a94c81b2ad5862cc0131f80c3ce89e008a·...·]/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.78.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"><a·class="src·rights[·...·truncated·by·diffoscope;·len:·375,·SHA:·58419346f92e1709dadb70cc3cf356e3cd27972451bdc6b4fc4267e6f7e8bdae·...·]/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.78.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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::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:·d75758e0f8262eeea27445cec43f13d84f0c02ba4e03c0c54d041f9ab1965e0f·...·]/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.78.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:·98f6effefa44d759c249143d83623f0055d937382bfc398b7e1f5e92cd413657·...·]/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.78.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:·676,·SHA:·9ae42ed293737a3dd44c1ee9d98c6aabb1552fbb9d203cb852ee9fcc7834a6ca·...·]/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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·820,·SHA:·a664bbcbc0891663662e4eb7b4394d0fcd72e568136fc4d34097fea242cc32e7·...·]/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.78.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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·140,·SHA:·752f473b57e7444ebfddf5ea7fd40a332e83ec55524a6c31b5ee0f82a5dea819·...·]/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"><a·class="src·rightside"·href="../../../src/cor[·...·truncated·by·diffoscope;·len:·297,·SHA:·f01e44d4caf6c6ad80b37656b9300f7111340711dcd74d70867b5a652dbfb538·...·]/core/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.78.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"><a·class="src·rightside[·...·truncated·by·diffoscope;·len:·393,·SHA:·2e2aa7c9c9c087e7b346da376749064ab8c1894795a2f0a0f646cdc8c7bea997·...·]/core/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.78.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:·788,·SHA:·b788f412af946d2bd7646ba39a8c316ebfa88109f9626dbad9bf9964f975cd0c·...·]/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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·956,·SHA:·faba0521e870dbbd26d466fadba3522e7d29013a9b86376fffafffac11a57e0e·...·]/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.78.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"><a·class="src·rightside"·href="../../../src/co[·...·truncated·by·diffoscope;·len:·276,·SHA:·e337ee1b810d3ec0480569c4ed323ebf0a2315c8ae3c522a73fcca3aa8e6efb3·...·]/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.78.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"><a·class="src·rightsid[·...·truncated·by·diffoscope;·len:·372,·SHA:·03eea0861575eb80d3f7a87a3ba747adb1a33fe7e9ce72aa2172e7a287c63a94·...·]/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.78.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.78.0/core/iter/adapte[·...·truncated·by·diffoscope;·len:·175,·SHA:·16fe7225bf05b478e2828b347c3d23ded9a22f89d8887a2c65d9f7b3faf1b0e7·...·]/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"><a·class="src·rightside"·href="../../../src/c[·...·truncated·by·diffoscope;·len:·306,·SHA:·a9bc004bf639fa188165a336061c6c98ec7ff9d266a18f10db200dfa9a880b88·...·]/core/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.78.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"><a·class="src·rightsi[·...·truncated·by·diffoscope;·len:·402,·SHA:·7689a974f800fd069d1b4453ef62d6d6ad1b654462d624d36e3672051d502030·...·]/core/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.78.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:·946,·SHA:·877b8718d9df1464a912dd50eef16402225367db4e4b26484b5ee20d30644524·...·]/core/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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·1138,·SHA:·f6ae06b7de8e94df014341c5cf589a5e4a1298367b2ef7a968ec499c5170a70e·...·]/core/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.78.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:·552b3dd2132886d024e4d5bd2554611e25c1f068adaaf23ecf80da81d31997ef·...·]/core/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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·1058,·SHA:·b390dbdda8d7e93604b5ecd906a93efd03fe19bdaf41cf12893fd361bf974307·...·]/core/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.78.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:·875,·SHA:·5c5c44422f75cbb66ebcf54bea70536713b810843cc484b051aed088c6422d78·...·]/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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·1067,·SHA:·415d32e1211c35d3bb405de1d6e51c2102c14cadc3333894f063148dbe0b1f69·...·]/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:·543,·SHA:·f199bafab360be9b80e9f45c5ba799a52348b742ddb0fa9afdb1624729c36e58·...·]/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.78.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:·687,·SHA:·7f5256104c35c5948a2cb42b55f3048c9d2887e48a4a8226537a284f959c562a·...·]/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.78.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"><a·class="src·rightside"·href="../../../src/core/iter/t[·...·truncated·by·diffoscope;·len:·296,·SHA:·aea014801138aeee574964545b1e9ad297288a120113db6844b569d2b183e0a7·...·]/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.78.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"><a·class="src·rightside"·href="[·...·truncated·by·diffoscope;·len:·392,·SHA:·4e7da68f7be2622ef173653eca78d58e1f202b544a2e6abd14d8335c298c93a7·...·]/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.78.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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(<a·class="primitive"·href="https://doc.rust-lang.org/1.78.0/core/primitive.reference.html">&amp;mut·St</a>,·Self::<a·class="associatedty[·...·truncated·by·diffoscope;·len:·449,·SHA:·f12c268a8a8111b9e7126ad78bf5523a63733caa63d187c4fe792309ea41acdf·...·]/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:·474,·SHA:·c0ed850df640319d919b8c053c540caa158602207623bed65abbcd69ad9d2c9d·...·]/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.78.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.78.0/core/iter/trai[·...·truncated·by·diffoscope;·len:·594,·SHA:·02960742fa7892efaa08f289ce85865fc5efb6a4cd138c22e3566ca6fc727d78·...·]/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.78.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.78.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:·4d1f54658fd1c005b101a2e27b0da3c6ee0cbe2d891660c65470bfec01fa46f6·...·]/core/iter/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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·976,·SHA:·2a9182f6fe88e0b8a9b1ae1f46cace940cc0b8736033c354c0f0ccbf1c196e7a·...·]/core/iter/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.78.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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;[Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtyp[·...·truncated·by·diffoscope;·len:·135,·SHA:·0b06a6094d42ccbc8bce5b01c4383961fe7f1967f05e4c9f1ff33e71e425fb26·...·]/core/primitive.array.html">N</a>])·-&gt;·R,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iter_map_windows</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/87155">#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.78.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"><a·class="src·rightside"·href="../../../src/core[·...·truncated·by·diffoscope;·len:·262,·SHA:·6125a8b2b88486b3735bbd00905fe9ae55b6eb1491c8a493be9c8121dc3cb440·...·]/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.78.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"><a·class="src·rightside"[·...·truncated·by·diffoscope;·len:·358,·SHA:·d91b2ab18e0ce069e262cf523c6ef961f56eecad042ea1e9bcefe33cff28fc8f·...·]/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:·601,·SHA:·bdf3796aa87e911258d56122ffdaa3f8591a5c9db4ed6fd89c3dfd3660787f78·...·]/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.78.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.78.0/core/op[·...·truncated·by·diffoscope;·len:·745,·SHA:·424783f22102f4446d3ad4d362b1aafdb7531fa777213f97ee138aa878f67bd1·...·]/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.78.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:·694,·SHA:·db4bb2630979aa4504432e8d422265d943c9063bcf3d2e3be970003014226f1e·...·]/core/primitive.reference.html">&amp;mut·Self</a><div·class="where">where65 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·838,·SHA:·9b4fd8df7f41e9a76fd4cfca0a233b74b9bd27c3fe8228248abc3f940425a3e3·...·]/core/primitive.reference.html">&amp;mut·Self</a><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:·331,·SHA:·d13641714c275840abbb473011613a4e19924a453f5e1b83912681a9b7c5579b·...·]/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.78.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.78.0/core/it[·...·truncated·by·diffoscope;·len:·427,·SHA:·ecfaaac5d1d10c1bc4fcee9a050af0a268bee0b528c2d8ea4e9774440bd8a279·...·]/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.78.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.78.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:·d76c3fcf86c63211032a6b22dc5924ef552b1ad26b12e19f15d2f1d5b3d7e394·...·]/core/primitive.reference.html">&amp;mut·E</a><div·class="where">where68 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.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.78.0/core/iter/tr[·...·truncated·by·diffoscope;·len:·728,·SHA:·01937c2dc314c259495665570ae249c94b4a5b0719718f5f1188e6fc64ecf487·...·]/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.78.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.78.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:·759,·SHA:·3cf174fac64a83c8e22066c3d77741118f89b13411537fc82c1004faa5c9e2ae·...·]/core/primitive.tuple.html">(B,·B)</a><div·class="where">where70 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experiment[·...·truncated·by·diffoscope;·len:·879,·SHA:·e773b2222c92d001e295030cb47a780ab0c1132d7fc8e9e3a98de4f532e6c520·...·]/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.78.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.78.0/core/default/trait.Default.html"·title="trait·core::default::Default">Default</a>·+·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/collect/trait.Extend.html"·title="trait·core::iter::traits::collec[·...·truncated·by·diffoscope;·len:·95,·SHA:·8b3be1d0042cae0550f865faf5849221240bdf04eb1b2107605b72d48c3ad29c·...·]/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:·281bbd5137cae68dd8057d013e9c9f311461e746663120304e3f6adace77f784·...·]/core/primitive.usize.html">usize</a><div·class="where">where73 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·995,·SHA:·bec3765fdab56713186e2454cd84738b5b28e3280a2f3d5a25cefdbc3089b520·...·]/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.78.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>·+·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/double_ended/trait.DoubleEndedIterator.html"·title="trait·core::iter::trai[·...·truncated·by·diffoscope;·len:·132,·SHA:·e5b2cf5f56946ede1e190ed09879c5821e2de04cf8e5d145142eeb40c6340982·...·]/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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(<a·class="primitive"·href="https://doc.rust-lang.org/1.78.0/core/primitive.reference.html">&amp;T</a>)·-&gt;·<a·class="primitive"·href="[·...·truncated·by·diffoscope;·len:·32,·SHA:·63d052a8ced32bf927ffadd7e884c08caf4970e85dfdf6be0e568d49b174da96·...·]/core/primitive.bool.html">bool</a>,</div></h4></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:·dc6a465df534b0392c5280e79e5249847890045561099b2cfc44bfabc4801d8d·...·]/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.78.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:·0c224636c18baa273f69de21f90083317f2ea0b7367a3f0d0f1c0ace55a36f79·...·]/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.78.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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·135,·SHA:·51ff5f5c7ebd8440623ea71b125c5a5837e809e308fe1a13fbe19cddb941dbd9·...·]/core/primitive.bool.html">bool</a>,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iter_is_partitioned</code>&nbsp;<a·href="https://github.com/rust-lang/rust/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_for_each"·class="method·trait-impl"><span·class="rightside"><span·class="[·...·truncated·by·diffoscope;·len:·255,·SHA:·55b46e955f54644416b5090ec1d6415a222f7e41e012ad36dff7e6db44102364·...·]/core/iter/traits/iterator/trait.Iterator.html#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 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.78.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:·b5b5559d4bedab0135adfae89ec80ffab292c35f0d8c34fa5240955934cefd74·...·]/core/iter/traits/iterator/trait.Iterator.html#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.78.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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.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.78.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.78.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.reduce"·class="method·trait-impl"><span·class="rightside"><span·class="since"·t[·...·truncated·by·diffoscope;·len:·507,·SHA:·fd12cb7e38ad9e5f62c3562e083d0b02a733631ee0893509b1c54a85f4419997·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;<div·class="where">where85 iterator,·stopping·at·the·first·error·and·returning·that·error.·<a·href="https://doc.rust-lang.org/1.78.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:·94f0d6f81d13cadba9ee012268cda8b0ff7a775a8c03d992a108a9ae039e4d71·...·]/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.78.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:·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·reducing87 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·352,·SHA:·e7c3c296abe2c0a183967153e4ae7fd50bafa2ae7088e3e78b3b48fee253adc6·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::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/cor[·...·truncated·by·diffoscope;·len:·145,·SHA:·c3f1d50e276def36966943119961a20b09cab3be33483fe4d48d7f322489534b·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_reduce"·class="fn">try_reduce</a>&lt;F,·R&gt;(88 operation.·<a·href="https://doc.rust-lang.org/1.78.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:·7a18fdd041b1a001b4a8feb289ee127fd9240232239269eb35dc3b8f74783ec9·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_reduce"·class="fn">try_reduce</a>&lt;F,·R&gt;(
89 ····&amp;mut·self,89 ····&amp;mut·self,
90 ····f:·F90 ····f:·F
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</[·...·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">where91 )·-&gt;·&lt;&lt;R·as·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&gt;::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/ops/try_trait/trait.Try.html#associatedtype.Residual"·title="type[·...·truncated·by·diffoscope;·len:·754,·SHA:·6fb4dfdb6b4da68921c1e7f8b75d99cf293d58318d684a840254ce9576957bea·...·]/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.78.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:·68,·SHA:·e7e11f257edcac749a5883ad9a3aa42e6e965be419f967b36caa7afd3b36d7c9·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·R,93 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·140,·SHA:·c27972e6fa3464c9476eaa185e8657edb6bb294f148403f3d079285294a9f909·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·R,
94 ····R:·<a·class="trait"·href="../../../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.78.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.78.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</[·...·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·the95 ····&lt;R·as·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&gt;::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/ops/try_trait/trait.Try.html#associatedtype.Residual"·title="type[·...·truncated·by·diffoscope;·len:·412,·SHA:·22b8cbb007e5cce82b9d13a65bfa56aa8d83c32541fac25f4d9b3857b0540908·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;&gt;,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iterator_try_reduce</code>&nbsp;<a·href="https://github.com/rust-lang/rust/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"><a·class="src·rightside"·href="../../../src/core/i[·...·truncated·by·diffoscope;·len:·284,·SHA:·fbacd9a305d3a60d42d9adcc5ea9e5f579f4ff5d970999f333eaf0c7f9baf66c·...·]/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.78.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"><a·class="src·rightside"·h[·...·truncated·by·diffoscope;·len:·380,·SHA:·29c4004d4d8b0c8c9dfe9023f8b2c5ef801d9dc4688893035d182c1ae774c453·...·]/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.78.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:·754,·SHA:·e3afac523bd4c054d94fbbb6c5c856ac78a6359550526fa0726732b36529c33d·...·]/core/primitive.bool.html">bool</a><div·class="where">where98 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·922,·SHA:·f4fd532c280e18f28bd6dda6c2a129e2e92114b67f27235bb5fd39f725be9c43·...·]/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.78.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::Iter[·...·truncated·by·diffoscope;·len:·884,·SHA:·32570d141a71827f9ac19bf566a51ca4814ccafaf6f8a961920ce107fe9657d7·...·]/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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·1076,·SHA:·2dd9de8adaee4a5ee96501d9a58bfac2fea00ba8d78b834bfca29949b3afe18b·...·]/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.78.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:[·...·truncated·by·diffoscope;·len:·883,·SHA:·f441e2966ff8db4214e57fcd74f81262d6e371aa51cea97ebde5921e81b4da79·...·]/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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·1051,·SHA:·ecc0b8fccd861464760f9ae047ff6ab98c91a1db010cb5fa59a8c2ab883db7c4·...·]/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.78.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:·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·returns104 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·130,·SHA:·130a13019dc175d02304b4f550157e2f13ac15c2f25a979c74161d10b146ab89·...·]/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/cor[·...·truncated·by·diffoscope;·len:·143,·SHA:·ec4fb002625b166504031522e52a66812b279e6735a67cb718813205909c3fb7·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_find"·class="fn">try_find</a>&lt;F,·R&gt;(105 the·first·non-none·result.·<a·href="https://doc.rust-lang.org/1.78.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:·8ced1b10e78750774c5c8ed995ed83dcd13983aa75d329acf8069da106ab9f4a·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_find"·class="fn">try_find</a>&lt;F,·R&gt;(
106 ····&amp;mut·self,106 ····&amp;mut·self,
107 ····f:·F107 ····f:·F
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</[·...·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">where108 )·-&gt;·&lt;&lt;R·as·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&gt;::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/ops/try_trait/trait.Try.html#associatedtype.Residual"·title="type[·...·truncated·by·diffoscope;·len:·626,·SHA:·95f9831257b68862cbcbf54f0ad2ff4e597a4c9f763112d1da8a0897dadcf872·...·]/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.78.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;·R,110 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.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.bool.html">bool</a>&gt;,111 ····R:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.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.78.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</[·...·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·returns112 ····&lt;R·as·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&gt;::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/ops/try_trait/trait.Try.html#associatedtype.Residual"·title="type[·...·truncated·by·diffoscope;·len:·412,·SHA:·22b8cbb007e5cce82b9d13a65bfa56aa8d83c32541fac25f4d9b3857b0540908·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;&gt;,</div></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"><a·class="src·rightside"·href="../../../src/cor[·...·truncated·by·diffoscope;·len:·419,·SHA:·4337d283573b9683aaa605a7d2417318ef2a03902876e7da2ec26f2a5febf794·...·]/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.78.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"><a·class="src·rightside[·...·truncated·by·diffoscope;·len:·539,·SHA:·04e329705f11ed9ec269a68b0b75ac4ab26c78e4316a571ee9336c28bbca6359·...·]/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.78.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::Iter[·...·truncated·by·diffoscope;·len:·901,·SHA:·a6eb7314148a1006184790a26873440fac678952c99874de84cb66644e250c0b·...·]/core/primitive.usize.html">usize</a>&gt;<div·class="where">where115 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·1093,·SHA:·623dbacabfe45799103c799fb60a4d212ceb8759ff853a11209a07793257c9cd·...·]/core/primitive.usize.html">usize</a>&gt;<div·class="where">where
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::Iter[·...·truncated·by·diffoscope;·len:·63,·SHA:·852041c2de8156fdddf9f71111c5ddf1a6b88aabd8c082f1a254f0b21c18ffa1·...·]/core/primitive.bool.html">bool</a>,116 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·135,·SHA:·51ff5f5c7ebd8440623ea71b125c5a5837e809e308fe1a13fbe19cddb941dbd9·...·]/core/primitive.bool.html">bool</a>,
117 ····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·its117 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>·+·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/exact_size/trait.ExactSizeIterator.html"·title="trait·core::iter::traits::[·...·truncated·by·diffoscope;·len:·110,·SHA:·a8846fff2831d0de2de7dbb91c4e50f6f60fac276813cbaa471bf32fb45120d4·...·]/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
118 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">where118 index.·<a·href="https://doc.rust-lang.org/1.78.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:·c876e8603f9248b122c6d4a7db3091b70f098f834ba7b3112a8b68d5e7ade3ed·...·]/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 ····B:·<a·class="trait"·href="../../../core/cmp/trait.Ord.html"·title="trait·core::cmp::Ord">Ord</a>,119 ····B:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/cmp/trait.Ord.html"·title="trait·core::cmp::Ord">Ord</a>,
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.78.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::Iterator::Item">Item</a>)·-&gt;·B,</div></h4></section></summary><div·class='docblock'>Returns·the·element·that·gives·the·maximum·value·from·the121 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/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
122 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">where122 specified·function.·<a·href="https://doc.rust-lang.org/1.78.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:·0367b1bacc0a7d8e05f1c5181f8c4ea428f3f11edbae0e76811f3ef1d4925e41·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;<div·class="where">where
123 ····Self:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,123 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.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:[·...·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·the124 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·346,·SHA:·7113e4c2d65a123253bb18971efdc2d49241cfc2dd4c2b18e4cfa4e4d7d4140f·...·]/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
125 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">where125 specified·comparison·function.·<a·href="https://doc.rust-lang.org/1.78.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:·db89d4cca0becf2a4ab904adac2870de6fd83cfad5131f5a1431a67766274f81·...·]/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.78.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.78.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
Max diff block lines reached; 89109/311214 bytes (28.63%) of diff not shown.
300 KB
./usr/share/doc/rust-web-doc/html/alloc/collections/vec_deque/struct.Iter.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·the·elements·of·a·`VecDeque`."><title>Iter·in·alloc::collections::vec_deque·-·Rust</title><script>·if·(window.location.protocol·!==·"file:")·document.write(`<link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../../static.files/SourceSerif4-Regular-46f98efaafac5295.ttf.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../../static.files/FiraSans-Regular-018c141bf0843ffd.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../../static.files/FiraSans-Medium-8f9a781e4970d388.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../../static.files/SourceCodePro-Regular-562dcc5011b6de7d.ttf.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../../static.files/SourceCodePro-Semibold-d899c5a5c4aeb14a.ttf.woff2">`)</script><link·rel="stylesheet"·href="../../../static.files/normalize-76eba96aa4d2e634.css"><link·rel="stylesheet"·href="../../../static.files/rustdoc-35f9e32502181f1e.css"><meta·name="rustdoc-vars"·data-root-path="../../../"·data-static-root-path="../../../static.files/"·data-current-crate="alloc"·data-themes=""·data-resource-suffix="1.78.0"·data-rustdoc-version="1.78.0"·data-channel="1.78.0"·data-search-js="search-42d8da7a6b9792c2.js"·data-settings-js="settings-4313503d2e1961c2.js"·><script·src="../../../static.files/storage-4c98445ec4002617.js"></script><script·defer·src="sidebar-items1.78.0.js"></script><script·defer·src="../../../static.files/main-12cf3b4f4f9dc36d.js"></script><noscript><link·rel="stylesheet"·href="../../../static.files/noscript-04d5337699b92874.css"></noscript><link·rel="alternate·icon"·type="image/png"·href="../../../static.files/favicon-16x16-8b506e7a72182f1c.png"><link·rel="alternate·icon"·type="image/png"·href="../../../static.files/favicon-32x32-422f7d1d52889060.png"><link·rel="icon"·type="image/svg+xml"·href="../../../static.files/favicon-2c020d218678b618.svg"></head><body·class="rustdoc·struct"><!--[if·lte·IE·11]><div·class="warning">This·old·browser·is·unsupported·and·will·most·likely·display·funky·things.</div><![endif]--><nav·class="mobile-topbar"><button·class="sidebar-menu-toggle"·title="show·sidebar"></button><a·class="logo-container"·href="../../../alloc/index.html"><img·class="rust-logo"·src="../../../static.files/rust-logo-151179464ae7ed46.svg"·alt=""></a></nav><nav·class="sidebar"><div·class="sidebar-crate"><a·class="logo-container"·href="../../../alloc/index.html"><img·class="rust-logo"·src="../../../static.files/rust-logo-151179464ae7ed46.svg"·alt="logo"></a><h2><a·href="../../../alloc/index.html">alloc</a><span·class="version">1.78.0</span></h2></div><h2·class="location"><a·href="#">Iter</a></h2><div·class="sidebar-elems"><section><h3><a·href="#trait-implementations">Trait·Implementations</a></h3><ul·class="block·trait-implementation"><li><a·href="#impl-Clone-for-Iter%3C'_,+T%3E">Clone</a></li><li><a·href="#impl-Debug-for-Iter%3C'_,+T%3E">Debug</a></li><li><a·href="#impl-DoubleEndedIterator-for-Iter%3C'a,+T%3E">DoubleEndedIterator</a></li><li><a·href="#impl-ExactSizeIterator-for-Iter%3C'_,+T%3E">ExactSizeIterator</a></li><li><a·href="#impl-FusedIterator-for-Iter%3C'_,+T%3E">FusedIterator</a></li><li><a·href="#impl-Iterator-for-Iter%3C'a,+T%3E">Iterator</a></li><li><a·href="#impl-TrustedLen-for-Iter%3C'_,+T%3E">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">Freeze</a></li><li><a·href="#impl-RefUnwindSafe-for-Iter%3C'a,+T%3E">RefUnwindSafe</a></li><li><a·href="#impl-Send-for-Iter%3C'a,+T%3E">Send</a></li><li><a·href="#impl-Sync-for-Iter%3C'a,+T%3E">Sync</a></li><li><a·href="#impl-Unpin-for-Iter%3C'a,+T%3E">Unpin</a></li><li><a·href="#impl-UnwindSafe-for-Iter%3C'a,+T%3E">UnwindSafe</a></li></ul><h3><a·href="#blanket-implementations">Blanket·Implementations</a></h3><ul·class="block·blanket-implementation"><li><a·href="#impl-Any-for-T">Any</a></li><li><a·href="#impl-Borrow%3CT%3E-for-T">Borrow&lt;T&gt;</a></li><li><a·href="#impl-BorrowMut%3CT%3E-for-T">BorrowMut&lt;T&gt;</a></li><li><a·href="#impl-From%3CT%3E-for-T">From&lt;T&gt;</a></li><li><a·href="#impl-Into%3CU%3E-for-T">Into&lt;U&gt;</a></li><li><a·href="#impl-IntoIterator-for-I">IntoIterator</a></li><li><a·href="#impl-ToOwned-for-T">ToOwned</a></li><li><a·href="#impl-TryFrom%3CU%3E-for-T">TryFrom&lt;U&gt;</a></li><li><a·href="#impl-TryInto%3CU%3E-for-T">TryInto&lt;U&gt;</a></li></ul></section><h2><a·href="index.html">In·alloc::collections::vec_deque</a></h2></div></nav><div·class="sidebar-resizer"></div>1 <!DOCTYPE·html><html·lang="en"><head><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.write(`<link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../../static.files/SourceSerif4-Regular-46f98efaafac5295.ttf.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../../static.files/FiraSans-Regular-018c141bf0843ffd.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../../static.files/FiraSans-Medium-8f9a781e4970d388.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../../static.files/SourceCodePro-Regular-562dcc5011b6de7d.ttf.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../../static.files/SourceCodePro-Semibold-d899c5a5c4aeb14a.ttf.woff2">`)</script><link·rel="stylesheet"·href="../../../static.files/normalize-76eba96aa4d2e634.css"><link·rel="stylesheet"·href="../../../static.files/rustdoc-35f9e32502181f1e.css"><meta·name="rustdoc-vars"·data-root-path="../../../"·data-static-root-path="../../../static.files/"·data-current-crate="alloc"·data-themes=""·data-resource-suffix="1.78.0"·data-rustdoc-version="1.78.0"·data-channel="1.78.0"·data-search-js="search-42d8da7a6b9792c2.js"·data-settings-js="settings-4313503d2e1961c2.js"·><script·src="../../../static.files/storage-4c98445ec4002617.js"></script><script·defer·src="sidebar-items1.78.0.js"></script><script·defer·src="../../../static.files/main-12cf3b4f4f9dc36d.js"></script><noscript><link·rel="stylesheet"·href="../../../static.files/noscript-04d5337699b92874.css"></noscript><link·rel="alternate·icon"·type="image/png"·href="../../../static.files/favicon-16x16-8b506e7a72182f1c.png"><link·rel="alternate·icon"·type="image/png"·href="../../../static.files/favicon-32x32-422f7d1d52889060.png"><link·rel="icon"·type="image/svg+xml"·href="../../../static.files/favicon-2c020d218678b618.svg"></head><body·class="rustdoc·struct"><!--[if·lte·IE·11]><div·class="warning">This·old·browser·is·unsupported·and·will·most·likely·display·funky·things.</div><![endif]--><nav·class="mobile-topbar"><button·class="sidebar-menu-toggle"·title="show·sidebar"></button><a·class="logo-container"·href="../../../alloc/index.html"><img·class="rust-logo"·src="../../../static.files/rust-logo-151179464ae7ed46.svg"·alt=""></a></nav><nav·class="sidebar"><div·class="sidebar-crate"><a·class="logo-container"·href="../../../alloc/index.html"><img·class="rust-logo"·src="../../../static.files/rust-logo-151179464ae7ed46.svg"·alt="logo"></a><h2><a·href="../../../alloc/index.html">alloc</a><span·class="version">1.78.0</span></h2></div><h2·class="location"><a·href="#">Iter</a></h2><div·class="sidebar-elems"><section><h3><a·href="#trait-implementations">Trait·Implementations</a></h3><ul·class="block·trait-implementation"><li><a·href="#impl-Clone-for-Iter%3C'_,+T%3E">Clone</a></li><li><a·href="#impl-Debug-for-Iter%3C'_,+T%3E">Debug</a></li><li><a·href="#impl-DoubleEndedIterator-for-Iter%3C'a,+T%3E">DoubleEndedIterator</a></li><li><a·href="#impl-ExactSizeIterator-for-Iter%3C'_,+T%3E">ExactSizeIterator</a></li><li><a·href="#impl-FusedIterator-for-Iter%3C'_,+T%3E">FusedIterator</a></li><li><a·href="#impl-Iterator-for-Iter%3C'a,+T%3E">Iterator</a></li><li><a·href="#impl-TrustedLen-for-Iter%3C'_,+T%3E">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">Freeze</a></li><li><a·href="#impl-RefUnwindSafe-for-Iter%3C'a,+T%3E">RefUnwindSafe</a></li><li><a·href="#impl-Send-for-Iter%3C'a,+T%3E">Send</a></li><li><a·href="#impl-Sync-for-Iter%3C'a,+T%3E">Sync</a></li><li><a·href="#impl-Unpin-for-Iter%3C'a,+T%3E">Unpin</a></li><li><a·href="#impl-UnwindSafe-for-Iter%3C'a,+T%3E">UnwindSafe</a></li></ul><h3><a·href="#blanket-implementations">Blanket·Implementations</a></h3><ul·class="block·blanket-implementation"><li><a·href="#impl-Any-for-T">Any</a></li><li><a·href="#impl-Borrow%3CT%3E-for-T">Borrow&lt;T&gt;</a></li><li><a·href="#impl-BorrowMut%3CT%3E-for-T">BorrowMut&lt;T&gt;</a></li><li><a·href="#impl-From%3CT%3E-for-T">From&lt;T&gt;</a></li><li><a·href="#impl-Into%3CU%3E-for-T">Into&lt;U&gt;</a></li><li><a·href="#impl-IntoIterator-for-I">IntoIterator</a></li><li><a·href="#impl-ToOwned-for-T">ToOwned</a></li><li><a·href="#impl-TryFrom%3CU%3E-for-T">TryFrom&lt;U&gt;</a></li><li><a·href="#impl-TryInto%3CU%3E-for-T">TryInto&lt;U&gt;</a></li></ul></section><h2><a·href="index.html">In·alloc::collections::vec_deque</a></h2></div></nav><div·class="sidebar-resizer"></div>
2 ····<main><div·class="width-limiter"><nav·class="sub"><form·class="search-form"><span></span><div·id="sidebar-button"·tabindex="-1"><a·href="../../../alloc/all.html"·title="show·sidebar"></a></div><input·class="search-input"·name="search"·aria-label="Run·search·in·the·documentation"·autocomplete="off"·spellcheck="false"·placeholder="Click·or·press·‘S’·to·search,·‘?’·for·more·options…"·type="search"><div·id="help-button"·tabindex="-1"><a·href="../../../help.html"·title="help">?</a></div><div·id="settings-menu"·tabindex="-1"><a·href="../../../settings.html"·title="settings"><img·width="22"·height="22"·alt="Change·settings"·src="../../../static.files/wheel-7b819b6101059cd0.svg"></a></div></form></nav><section·id="main-content"·class="content"><div·class="main-heading"><h1>Struct·<a·href="../../index.html">alloc</a>::<wbr><a·href="../index.html">collections</a>::<wbr><a·href="index.html">vec_deque</a>::<wbr><a·class="struct"·href="#">Iter</a><button·id="copy-path"·title="Copy·item·path·to·clipboard"><img·src="../../../static.files/clipboard-7571035ce49a181d.svg"·width="19"·height="18"·alt="Copy·item·path"></button></h1><span·class="out-of-band"><span·class="since"·title="Stable·since·Rust·version·1.0.0">1.0.0</span>···<a·class="src"·href="../../../src/alloc/collections/vec_deque/iter.rs.html#13-16">source</a>···<button·id="toggle-all-docs"·title="collapse·all·docs">[<span>&#x2212;</span>]</button></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 ····<main><div·class="width-limiter"><nav·class="sub"><form·class="search-form"><span></span><div·id="sidebar-button"·tabindex="-1"><a·href="../../../alloc/all.html"·title="show·sidebar"></a></div><input·class="search-input"·name="search"·aria-label="Run·search·in·the·documentation"·autocomplete="off"·spellcheck="false"·placeholder="Click·or·press·‘S’·to·search,·‘?’·for·more·options…"·type="search"><div·id="help-button"·tabindex="-1"><a·href="../../../help.html"·title="help">?</a></div><div·id="settings-menu"·tabindex="-1"><a·href="../../../settings.html"·title="settings"><img·width="22"·height="22"·alt="Change·settings"·src="../../../static.files/wheel-7b819b6101059cd0.svg"></a></div></form></nav><section·id="main-content"·class="content"><div·class="main-heading"><h1>Struct·<a·href="../../index.html">alloc</a>::<wbr><a·href="../index.html">collections</a>::<wbr><a·href="index.html">vec_deque</a>::<wbr><a·class="struct"·href="#">Iter</a><button·id="copy-path"·title="Copy·item·path·to·clipboard"><img·src="../../../static.files/clipboard-7571035ce49a181d.svg"·width="19"·height="18"·alt="Copy·item·path"></button></h1><span·class="out-of-band"><span·class="since"·title="Stable·since·Rust·version·1.0.0">1.0.0</span>···<a·class="src"·href="../../../src/alloc/collections/vec_deque/iter.rs.html#13-16">source</a>···<button·id="toggle-all-docs"·title="collapse·all·docs">[<span>&#x2212;</span>]</button></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>
3 <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·its3 <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
4 documentation·for·more.</p>4 documentation·for·more.</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-Iter%3C'_,+T%3E"·class="impl"><a·class="src·rightside"·href="../../../src/alloc/collections/vec_deque/iter.rs.html#33-37">source</a><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:·6024,·SHA:·337a34d8d7f044429adfd7cfd98a9ec94254108ae5b9a3a97dadfa79367ca115·...·]/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">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-Clone-for-Iter%3C'_,+T%3E"·class="impl"><a·class="src·rightside"·href="../../../src/alloc/collections/vec_deque/iter.rs.html#33-37">source</a><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.78.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:·6504,·SHA:·22846f5f5300dfd09a684558e489b7b1614f614ce3c33de1dcbb6cac262ff548·...·]/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
6 ····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,6 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.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.78.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,
7 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:·c29ebe20541cf812e9ea72214a65381bc5165856a873ebbda2d0d706132af3c3·...·]/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 final·value,·starting·from·the·back.·<a·href="https://doc.rust-lang.org/1.78.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:·c43fff6a92e6a7be26af03cf01505c795752c94efa244bb41c3755050cc3da01·...·]/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 ····F:·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(B,·Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·R,8 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(B,·Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·R,
9 ····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·takes9 ····R:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.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.7[·...·truncated·by·diffoscope;·len:·3,·SHA:·7b1bd53949b752d143d871408483b5382371b5bc48d195d0c040ec93cfa2748b·...·]/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
10 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:·250c65f8e63cf6a92c4f86d3171ab4cbdbdd41e6c8b13ac1fbcfcf692b0439ae·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;<div·class="where">where10 elements·starting·from·the·back·of·the·iterator.·<a·href="https://doc.rust-lang.org/1.78.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:·f9778ffcd5dc12c018c44360bdb2defed118df558d9b9a06ddcefbda0b551f08·...·]/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>,11 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
12 ····P:·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator:[·...·truncated·by·diffoscope;·len:·7178,·SHA:·8fb134e71f93fbde5c7bced95f28d6ed1cea533283d3d4fa3dee647293104e61·...·]/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">where12 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·7922,·SHA:·7a1ef123716cbd6e85d79e9d35a29900f2d4e0ef7efe7dad2c2bb4d979aef5be·...·]/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
13 ····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,13 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.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.78.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,
14 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:·142,·SHA:·53a815a6e3183de808c40bc6651f8df78eb81d4c575ddf42e1fb75b1926b03a2·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_fold"·class="fn">try_fold</a>&lt;B,·F,·R&gt;(&amp;mut·self,·init:·B,·f:·F)·-&gt;·R<div·class="where">where14 returning·the·final·result.·<a·href="https://doc.rust-lang.org/1.78.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:·190,·SHA:·88987a3fe435e790d6af44ab7971ff0bf624c5674cc5ee4c13190de23e141313·...·]/core/iter/traits/iterator/trait.Iterator.html#method.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
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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(B,·Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.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'>An·iterator·method·that·applies·a·function·as·long·as·it·returns16 ····R:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.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
17 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:·1066,·SHA:·6cc56e243b6d34af39cf96b8804eb294127128a38d0039d1462a4abc3181e163·...·]/core/primitive.usize.html">usize</a>&gt;(17 successfully,·producing·a·single,·final·value.·<a·href="https://doc.rust-lang.org/1.78.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:·1258,·SHA:·7dedfb86ff9b60d67bbc2513f7368dac33a9bcc787b36b820b9872d0878987f6·...·]/core/primitive.usize.html">usize</a>&gt;(
18 ····&amp;mut·self18 ····&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.78.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.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title=[·...·truncated·by·diffoscope;·len:·381,·SHA:·88c48923c9b7ea5cc47c1087c60e09656e81d4671c58071ba2bef826335388bc·...·]/core/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:·746,·SHA:·99cc415a31b91c57f7eeb82ad0d2d1ba424489bee49de37c86a4ea21c663ccda·...·]/core/primitive.usize.html">usize</a><div·class="where">where20 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experiment[·...·truncated·by·diffoscope;·len:·866,·SHA:·945d2d86f0c4c5ca3e3ee3b181d18b2bbea57ee1a5a7efe16c0c915a5bf2c3ad·...·]/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:·1621,·SHA:·551dbc28d194a76b64a0a8f74971c4fe14d778fc42fec1807f37c7ff9fcf75fc·...·]/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.78.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:·1909,·SHA:·45bcfec09a645af14c9bc17ea80da6302f4a9f1e53fa94eec08a1625bd0f3c4d·...·]/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.78.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"><a·class="src·rightside"·href="../../../src/core/it[·...·truncated·by·diffoscope;·len:·602,·SHA:·cfe4c4d300dddc2abdc2f8194eb969c68b2240c28239969b5be2af6a564ed8cc·...·]/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.78.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"><a·class="src·rightside"·hr[·...·truncated·by·diffoscope;·len:·746,·SHA:·f1f70d650c102c8658e13890c7dbfc87418f07e7b522246fb579ec434ef64f7c·...·]/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.78.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:·1041,·SHA:·a281d174c9671021427f0b458ac94e87746ac44730475aa725652c6c15e2b972·...·]/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.78.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.78.0/core/iter/traits/it[·...·truncated·by·diffoscope;·len:·1233,·SHA:·f677df2d893dfe0dc1a9d31ebb0ba71a346d265781813e0d664d3f18369b6163·...·]/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.78.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:·b9001dd3131b1425179c94853e1b90fff0f7169b9570e86cd50c6b7fbf1ee8a5·...·]/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.78.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:·98627729f77dcf1c9d258f343354ba600b7134c6b3929080f231e8de7155b70b·...·]/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.78.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.78.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.78.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"><a·class="src·rightside"·href="../../../src/[·...·truncated·by·diffoscope;·len:·279,·SHA:·f2c34c2e64e77c66684f837812ebc4a94c81b2ad5862cc0131f80c3ce89e008a·...·]/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.78.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"><a·class="src·rights[·...·truncated·by·diffoscope;·len:·375,·SHA:·58419346f92e1709dadb70cc3cf356e3cd27972451bdc6b4fc4267e6f7e8bdae·...·]/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.78.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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::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:·d75758e0f8262eeea27445cec43f13d84f0c02ba4e03c0c54d041f9ab1965e0f·...·]/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.78.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:·98f6effefa44d759c249143d83623f0055d937382bfc398b7e1f5e92cd413657·...·]/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.78.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:·676,·SHA:·9ae42ed293737a3dd44c1ee9d98c6aabb1552fbb9d203cb852ee9fcc7834a6ca·...·]/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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·820,·SHA:·a664bbcbc0891663662e4eb7b4394d0fcd72e568136fc4d34097fea242cc32e7·...·]/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.78.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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·140,·SHA:·752f473b57e7444ebfddf5ea7fd40a332e83ec55524a6c31b5ee0f82a5dea819·...·]/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"><a·class="src·rightside"·href="../../../src/cor[·...·truncated·by·diffoscope;·len:·297,·SHA:·f01e44d4caf6c6ad80b37656b9300f7111340711dcd74d70867b5a652dbfb538·...·]/core/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.78.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"><a·class="src·rightside[·...·truncated·by·diffoscope;·len:·393,·SHA:·2e2aa7c9c9c087e7b346da376749064ab8c1894795a2f0a0f646cdc8c7bea997·...·]/core/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.78.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:·788,·SHA:·b788f412af946d2bd7646ba39a8c316ebfa88109f9626dbad9bf9964f975cd0c·...·]/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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·956,·SHA:·faba0521e870dbbd26d466fadba3522e7d29013a9b86376fffafffac11a57e0e·...·]/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.78.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"><a·class="src·rightside"·href="../../../src/co[·...·truncated·by·diffoscope;·len:·276,·SHA:·e337ee1b810d3ec0480569c4ed323ebf0a2315c8ae3c522a73fcca3aa8e6efb3·...·]/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.78.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"><a·class="src·rightsid[·...·truncated·by·diffoscope;·len:·372,·SHA:·03eea0861575eb80d3f7a87a3ba747adb1a33fe7e9ce72aa2172e7a287c63a94·...·]/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.78.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.78.0/core/iter/adapte[·...·truncated·by·diffoscope;·len:·175,·SHA:·16fe7225bf05b478e2828b347c3d23ded9a22f89d8887a2c65d9f7b3faf1b0e7·...·]/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"><a·class="src·rightside"·href="../../../src/c[·...·truncated·by·diffoscope;·len:·306,·SHA:·a9bc004bf639fa188165a336061c6c98ec7ff9d266a18f10db200dfa9a880b88·...·]/core/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.78.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"><a·class="src·rightsi[·...·truncated·by·diffoscope;·len:·402,·SHA:·7689a974f800fd069d1b4453ef62d6d6ad1b654462d624d36e3672051d502030·...·]/core/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.78.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:·946,·SHA:·877b8718d9df1464a912dd50eef16402225367db4e4b26484b5ee20d30644524·...·]/core/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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·1138,·SHA:·f6ae06b7de8e94df014341c5cf589a5e4a1298367b2ef7a968ec499c5170a70e·...·]/core/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.78.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:·552b3dd2132886d024e4d5bd2554611e25c1f068adaaf23ecf80da81d31997ef·...·]/core/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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·1058,·SHA:·b390dbdda8d7e93604b5ecd906a93efd03fe19bdaf41cf12893fd361bf974307·...·]/core/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.78.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:·875,·SHA:·5c5c44422f75cbb66ebcf54bea70536713b810843cc484b051aed088c6422d78·...·]/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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·1067,·SHA:·415d32e1211c35d3bb405de1d6e51c2102c14cadc3333894f063148dbe0b1f69·...·]/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:·543,·SHA:·f199bafab360be9b80e9f45c5ba799a52348b742ddb0fa9afdb1624729c36e58·...·]/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.78.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:·687,·SHA:·7f5256104c35c5948a2cb42b55f3048c9d2887e48a4a8226537a284f959c562a·...·]/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.78.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"><a·class="src·rightside"·href="../../../src/core/iter/t[·...·truncated·by·diffoscope;·len:·296,·SHA:·aea014801138aeee574964545b1e9ad297288a120113db6844b569d2b183e0a7·...·]/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.78.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"><a·class="src·rightside"·href="[·...·truncated·by·diffoscope;·len:·392,·SHA:·4e7da68f7be2622ef173653eca78d58e1f202b544a2e6abd14d8335c298c93a7·...·]/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.78.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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(<a·class="primitive"·href="https://doc.rust-lang.org/1.78.0/core/primitive.reference.html">&amp;mut·St</a>,·Self::<a·class="associatedty[·...·truncated·by·diffoscope;·len:·449,·SHA:·f12c268a8a8111b9e7126ad78bf5523a63733caa63d187c4fe792309ea41acdf·...·]/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:·474,·SHA:·c0ed850df640319d919b8c053c540caa158602207623bed65abbcd69ad9d2c9d·...·]/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.78.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.78.0/core/iter/trai[·...·truncated·by·diffoscope;·len:·594,·SHA:·02960742fa7892efaa08f289ce85865fc5efb6a4cd138c22e3566ca6fc727d78·...·]/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.78.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.78.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:·4d1f54658fd1c005b101a2e27b0da3c6ee0cbe2d891660c65470bfec01fa46f6·...·]/core/iter/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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·976,·SHA:·2a9182f6fe88e0b8a9b1ae1f46cace940cc0b8736033c354c0f0ccbf1c196e7a·...·]/core/iter/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.78.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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;[Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtyp[·...·truncated·by·diffoscope;·len:·135,·SHA:·0b06a6094d42ccbc8bce5b01c4383961fe7f1967f05e4c9f1ff33e71e425fb26·...·]/core/primitive.array.html">N</a>])·-&gt;·R,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iter_map_windows</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/87155">#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.78.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"><a·class="src·rightside"·href="../../../src/core[·...·truncated·by·diffoscope;·len:·262,·SHA:·6125a8b2b88486b3735bbd00905fe9ae55b6eb1491c8a493be9c8121dc3cb440·...·]/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.78.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"><a·class="src·rightside"[·...·truncated·by·diffoscope;·len:·358,·SHA:·d91b2ab18e0ce069e262cf523c6ef961f56eecad042ea1e9bcefe33cff28fc8f·...·]/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:·601,·SHA:·bdf3796aa87e911258d56122ffdaa3f8591a5c9db4ed6fd89c3dfd3660787f78·...·]/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.78.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.78.0/core/op[·...·truncated·by·diffoscope;·len:·745,·SHA:·424783f22102f4446d3ad4d362b1aafdb7531fa777213f97ee138aa878f67bd1·...·]/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.78.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:·694,·SHA:·db4bb2630979aa4504432e8d422265d943c9063bcf3d2e3be970003014226f1e·...·]/core/primitive.reference.html">&amp;mut·Self</a><div·class="where">where67 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·838,·SHA:·9b4fd8df7f41e9a76fd4cfca0a233b74b9bd27c3fe8228248abc3f940425a3e3·...·]/core/primitive.reference.html">&amp;mut·Self</a><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:·331,·SHA:·d13641714c275840abbb473011613a4e19924a453f5e1b83912681a9b7c5579b·...·]/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.78.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.78.0/core/it[·...·truncated·by·diffoscope;·len:·427,·SHA:·ecfaaac5d1d10c1bc4fcee9a050af0a268bee0b528c2d8ea4e9774440bd8a279·...·]/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.78.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.78.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:·d76c3fcf86c63211032a6b22dc5924ef552b1ad26b12e19f15d2f1d5b3d7e394·...·]/core/primitive.reference.html">&amp;mut·E</a><div·class="where">where70 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.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.78.0/core/iter/tr[·...·truncated·by·diffoscope;·len:·728,·SHA:·01937c2dc314c259495665570ae249c94b4a5b0719718f5f1188e6fc64ecf487·...·]/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.78.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.78.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:·759,·SHA:·3cf174fac64a83c8e22066c3d77741118f89b13411537fc82c1004faa5c9e2ae·...·]/core/primitive.tuple.html">(B,·B)</a><div·class="where">where72 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experiment[·...·truncated·by·diffoscope;·len:·879,·SHA:·e773b2222c92d001e295030cb47a780ab0c1132d7fc8e9e3a98de4f532e6c520·...·]/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.78.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.78.0/core/default/trait.Default.html"·title="trait·core::default::Default">Default</a>·+·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/collect/trait.Extend.html"·title="trait·core::iter::traits::collec[·...·truncated·by·diffoscope;·len:·95,·SHA:·8b3be1d0042cae0550f865faf5849221240bdf04eb1b2107605b72d48c3ad29c·...·]/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:·281bbd5137cae68dd8057d013e9c9f311461e746663120304e3f6adace77f784·...·]/core/primitive.usize.html">usize</a><div·class="where">where75 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·995,·SHA:·bec3765fdab56713186e2454cd84738b5b28e3280a2f3d5a25cefdbc3089b520·...·]/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.78.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>·+·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/double_ended/trait.DoubleEndedIterator.html"·title="trait·core::iter::trai[·...·truncated·by·diffoscope;·len:·132,·SHA:·e5b2cf5f56946ede1e190ed09879c5821e2de04cf8e5d145142eeb40c6340982·...·]/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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(<a·class="primitive"·href="https://doc.rust-lang.org/1.78.0/core/primitive.reference.html">&amp;T</a>)·-&gt;·<a·class="primitive"·href="[·...·truncated·by·diffoscope;·len:·32,·SHA:·63d052a8ced32bf927ffadd7e884c08caf4970e85dfdf6be0e568d49b174da96·...·]/core/primitive.bool.html">bool</a>,</div></h4></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:·dc6a465df534b0392c5280e79e5249847890045561099b2cfc44bfabc4801d8d·...·]/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.78.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:·0c224636c18baa273f69de21f90083317f2ea0b7367a3f0d0f1c0ace55a36f79·...·]/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.78.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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·135,·SHA:·51ff5f5c7ebd8440623ea71b125c5a5837e809e308fe1a13fbe19cddb941dbd9·...·]/core/primitive.bool.html">bool</a>,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iter_is_partitioned</code>&nbsp;<a·href="https://github.com/rust-lang/rust/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_for_each"·class="method·trait-impl"><span·class="rightside"><span·class="[·...·truncated·by·diffoscope;·len:·255,·SHA:·55b46e955f54644416b5090ec1d6415a222f7e41e012ad36dff7e6db44102364·...·]/core/iter/traits/iterator/trait.Iterator.html#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 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.78.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:·b5b5559d4bedab0135adfae89ec80ffab292c35f0d8c34fa5240955934cefd74·...·]/core/iter/traits/iterator/trait.Iterator.html#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.78.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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.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.78.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.78.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.reduce"·class="method·trait-impl"><span·class="rightside"><span·class="since"·t[·...·truncated·by·diffoscope;·len:·507,·SHA:·fd12cb7e38ad9e5f62c3562e083d0b02a733631ee0893509b1c54a85f4419997·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;<div·class="where">where87 iterator,·stopping·at·the·first·error·and·returning·that·error.·<a·href="https://doc.rust-lang.org/1.78.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:·94f0d6f81d13cadba9ee012268cda8b0ff7a775a8c03d992a108a9ae039e4d71·...·]/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.78.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:·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·reducing89 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·352,·SHA:·e7c3c296abe2c0a183967153e4ae7fd50bafa2ae7088e3e78b3b48fee253adc6·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::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/cor[·...·truncated·by·diffoscope;·len:·145,·SHA:·c3f1d50e276def36966943119961a20b09cab3be33483fe4d48d7f322489534b·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_reduce"·class="fn">try_reduce</a>&lt;F,·R&gt;(90 operation.·<a·href="https://doc.rust-lang.org/1.78.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:·7a18fdd041b1a001b4a8feb289ee127fd9240232239269eb35dc3b8f74783ec9·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_reduce"·class="fn">try_reduce</a>&lt;F,·R&gt;(
91 ····&amp;mut·self,91 ····&amp;mut·self,
92 ····f:·F92 ····f:·F
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</[·...·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">where93 )·-&gt;·&lt;&lt;R·as·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&gt;::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/ops/try_trait/trait.Try.html#associatedtype.Residual"·title="type[·...·truncated·by·diffoscope;·len:·754,·SHA:·6fb4dfdb6b4da68921c1e7f8b75d99cf293d58318d684a840254ce9576957bea·...·]/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.78.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:·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:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·140,·SHA:·c27972e6fa3464c9476eaa185e8657edb6bb294f148403f3d079285294a9f909·...·]/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·=·Self::<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.78.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.78.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</[·...·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·the97 ····&lt;R·as·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&gt;::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/ops/try_trait/trait.Try.html#associatedtype.Residual"·title="type[·...·truncated·by·diffoscope;·len:·412,·SHA:·22b8cbb007e5cce82b9d13a65bfa56aa8d83c32541fac25f4d9b3857b0540908·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;&gt;,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iterator_try_reduce</code>&nbsp;<a·href="https://github.com/rust-lang/rust/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"><a·class="src·rightside"·href="../../../src/core/i[·...·truncated·by·diffoscope;·len:·284,·SHA:·fbacd9a305d3a60d42d9adcc5ea9e5f579f4ff5d970999f333eaf0c7f9baf66c·...·]/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.78.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"><a·class="src·rightside"·h[·...·truncated·by·diffoscope;·len:·380,·SHA:·29c4004d4d8b0c8c9dfe9023f8b2c5ef801d9dc4688893035d182c1ae774c453·...·]/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.78.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::Iter[·...·truncated·by·diffoscope;·len:·754,·SHA:·e3afac523bd4c054d94fbbb6c5c856ac78a6359550526fa0726732b36529c33d·...·]/core/primitive.bool.html">bool</a><div·class="where">where100 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·922,·SHA:·f4fd532c280e18f28bd6dda6c2a129e2e92114b67f27235bb5fd39f725be9c43·...·]/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.78.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:·884,·SHA:·32570d141a71827f9ac19bf566a51ca4814ccafaf6f8a961920ce107fe9657d7·...·]/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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·1076,·SHA:·2dd9de8adaee4a5ee96501d9a58bfac2fea00ba8d78b834bfca29949b3afe18b·...·]/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.78.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:[·...·truncated·by·diffoscope;·len:·883,·SHA:·f441e2966ff8db4214e57fcd74f81262d6e371aa51cea97ebde5921e81b4da79·...·]/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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·1051,·SHA:·ecc0b8fccd861464760f9ae047ff6ab98c91a1db010cb5fa59a8c2ab883db7c4·...·]/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.78.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:·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·returns106 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·130,·SHA:·130a13019dc175d02304b4f550157e2f13ac15c2f25a979c74161d10b146ab89·...·]/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/cor[·...·truncated·by·diffoscope;·len:·143,·SHA:·ec4fb002625b166504031522e52a66812b279e6735a67cb718813205909c3fb7·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_find"·class="fn">try_find</a>&lt;F,·R&gt;(107 the·first·non-none·result.·<a·href="https://doc.rust-lang.org/1.78.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:·8ced1b10e78750774c5c8ed995ed83dcd13983aa75d329acf8069da106ab9f4a·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_find"·class="fn">try_find</a>&lt;F,·R&gt;(
108 ····&amp;mut·self,108 ····&amp;mut·self,
109 ····f:·F109 ····f:·F
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</[·...·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">where110 )·-&gt;·&lt;&lt;R·as·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&gt;::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/ops/try_trait/trait.Try.html#associatedtype.Residual"·title="type[·...·truncated·by·diffoscope;·len:·626,·SHA:·95f9831257b68862cbcbf54f0ad2ff4e597a4c9f763112d1da8a0897dadcf872·...·]/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.78.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;·R,112 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·R,
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.78.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.78.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.78.0/core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&gt;::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/ops/try_trait/trait.Try.html#associatedtype.Residual"·title="type[·...·truncated·by·diffoscope;·len:·412,·SHA:·22b8cbb007e5cce82b9d13a65bfa56aa8d83c32541fac25f4d9b3857b0540908·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;&gt;,</div></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"><a·class="src·rightside"·href="../../../src/cor[·...·truncated·by·diffoscope;·len:·419,·SHA:·4337d283573b9683aaa605a7d2417318ef2a03902876e7da2ec26f2a5febf794·...·]/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.78.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"><a·class="src·rightside[·...·truncated·by·diffoscope;·len:·539,·SHA:·04e329705f11ed9ec269a68b0b75ac4ab26c78e4316a571ee9336c28bbca6359·...·]/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.78.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:·901,·SHA:·a6eb7314148a1006184790a26873440fac678952c99874de84cb66644e250c0b·...·]/core/primitive.usize.html">usize</a>&gt;<div·class="where">where117 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·1093,·SHA:·623dbacabfe45799103c799fb60a4d212ceb8759ff853a11209a07793257c9cd·...·]/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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·135,·SHA:·51ff5f5c7ebd8440623ea71b125c5a5837e809e308fe1a13fbe19cddb941dbd9·...·]/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.78.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>·+·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/exact_size/trait.ExactSizeIterator.html"·title="trait·core::iter::traits::[·...·truncated·by·diffoscope;·len:·110,·SHA:·a8846fff2831d0de2de7dbb91c4e50f6f60fac276813cbaa471bf32fb45120d4·...·]/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.78.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:·c876e8603f9248b122c6d4a7db3091b70f098f834ba7b3112a8b68d5e7ade3ed·...·]/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.78.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.78.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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/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.78.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:·0367b1bacc0a7d8e05f1c5181f8c4ea428f3f11edbae0e76811f3ef1d4925e41·...·]/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.78.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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·346,·SHA:·7113e4c2d65a123253bb18971efdc2d49241cfc2dd4c2b18e4cfa4e4d7d4140f·...·]/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
127 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">where127 specified·comparison·function.·<a·href="https://doc.rust-lang.org/1.78.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:·db89d4cca0becf2a4ab904adac2870de6fd83cfad5131f5a1431a67766274f81·...·]/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; 84545/306738 bytes (27.56%) of diff not shown.
290 KB
./usr/share/doc/rust-web-doc/html/alloc/collections/vec_deque/struct.IterMut.html
    
Offset 1, 209 lines modifiedOffset 1, 209 lines modified
1 <!DOCTYPE·html><html·lang="en"><head><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.write(`<link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../../static.files/SourceSerif4-Regular-46f98efaafac5295.ttf.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../../static.files/FiraSans-Regular-018c141bf0843ffd.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../../static.files/FiraSans-Medium-8f9a781e4970d388.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../../static.files/SourceCodePro-Regular-562dcc5011b6de7d.ttf.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../../static.files/SourceCodePro-Semibold-d899c5a5c4aeb14a.ttf.woff2">`)</script><link·rel="stylesheet"·href="../../../static.files/normalize-76eba96aa4d2e634.css"><link·rel="stylesheet"·href="../../../static.files/rustdoc-35f9e32502181f1e.css"><meta·name="rustdoc-vars"·data-root-path="../../../"·data-static-root-path="../../../static.files/"·data-current-crate="alloc"·data-themes=""·data-resource-suffix="1.78.0"·data-rustdoc-version="1.78.0"·data-channel="1.78.0"·data-search-js="search-42d8da7a6b9792c2.js"·data-settings-js="settings-4313503d2e1961c2.js"·><script·src="../../../static.files/storage-4c98445ec4002617.js"></script><script·defer·src="sidebar-items1.78.0.js"></script><script·defer·src="../../../static.files/main-12cf3b4f4f9dc36d.js"></script><noscript><link·rel="stylesheet"·href="../../../static.files/noscript-04d5337699b92874.css"></noscript><link·rel="alternate·icon"·type="image/png"·href="../../../static.files/favicon-16x16-8b506e7a72182f1c.png"><link·rel="alternate·icon"·type="image/png"·href="../../../static.files/favicon-32x32-422f7d1d52889060.png"><link·rel="icon"·type="image/svg+xml"·href="../../../static.files/favicon-2c020d218678b618.svg"></head><body·class="rustdoc·struct"><!--[if·lte·IE·11]><div·class="warning">This·old·browser·is·unsupported·and·will·most·likely·display·funky·things.</div><![endif]--><nav·class="mobile-topbar"><button·class="sidebar-menu-toggle"·title="show·sidebar"></button><a·class="logo-container"·href="../../../alloc/index.html"><img·class="rust-logo"·src="../../../static.files/rust-logo-151179464ae7ed46.svg"·alt=""></a></nav><nav·class="sidebar"><div·class="sidebar-crate"><a·class="logo-container"·href="../../../alloc/index.html"><img·class="rust-logo"·src="../../../static.files/rust-logo-151179464ae7ed46.svg"·alt="logo"></a><h2><a·href="../../../alloc/index.html">alloc</a><span·class="version">1.78.0</span></h2></div><h2·class="location"><a·href="#">IterMut</a></h2><div·class="sidebar-elems"><section><h3><a·href="#trait-implementations">Trait·Implementations</a></h3><ul·class="block·trait-implementation"><li><a·href="#impl-Debug-for-IterMut%3C'_,+T%3E">Debug</a></li><li><a·href="#impl-DoubleEndedIterator-for-IterMut%3C'a,+T%3E">DoubleEndedIterator</a></li><li><a·href="#impl-ExactSizeIterator-for-IterMut%3C'_,+T%3E">ExactSizeIterator</a></li><li><a·href="#impl-FusedIterator-for-IterMut%3C'_,+T%3E">FusedIterator</a></li><li><a·href="#impl-Iterator-for-IterMut%3C'a,+T%3E">Iterator</a></li><li><a·href="#impl-TrustedLen-for-IterMut%3C'_,+T%3E">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">!UnwindSafe</a></li><li><a·href="#impl-Freeze-for-IterMut%3C'a,+T%3E">Freeze</a></li><li><a·href="#impl-RefUnwindSafe-for-IterMut%3C'a,+T%3E">RefUnwindSafe</a></li><li><a·href="#impl-Send-for-IterMut%3C'a,+T%3E">Send</a></li><li><a·href="#impl-Sync-for-IterMut%3C'a,+T%3E">Sync</a></li><li><a·href="#impl-Unpin-for-IterMut%3C'a,+T%3E">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">Any</a></li><li><a·href="#impl-Borrow%3CT%3E-for-T">Borrow&lt;T&gt;</a></li><li><a·href="#impl-BorrowMut%3CT%3E-for-T">BorrowMut&lt;T&gt;</a></li><li><a·href="#impl-From%3CT%3E-for-T">From&lt;T&gt;</a></li><li><a·href="#impl-Into%3CU%3E-for-T">Into&lt;U&gt;</a></li><li><a·href="#impl-IntoIterator-for-I">IntoIterator</a></li><li><a·href="#impl-TryFrom%3CU%3E-for-T">TryFrom&lt;U&gt;</a></li><li><a·href="#impl-TryInto%3CU%3E-for-T">TryInto&lt;U&gt;</a></li></ul></section><h2><a·href="index.html">In·alloc::collections::vec_deque</a></h2></div></nav><div·class="sidebar-resizer"></div>1 <!DOCTYPE·html><html·lang="en"><head><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.write(`<link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../../static.files/SourceSerif4-Regular-46f98efaafac5295.ttf.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../../static.files/FiraSans-Regular-018c141bf0843ffd.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../../static.files/FiraSans-Medium-8f9a781e4970d388.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../../static.files/SourceCodePro-Regular-562dcc5011b6de7d.ttf.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../../static.files/SourceCodePro-Semibold-d899c5a5c4aeb14a.ttf.woff2">`)</script><link·rel="stylesheet"·href="../../../static.files/normalize-76eba96aa4d2e634.css"><link·rel="stylesheet"·href="../../../static.files/rustdoc-35f9e32502181f1e.css"><meta·name="rustdoc-vars"·data-root-path="../../../"·data-static-root-path="../../../static.files/"·data-current-crate="alloc"·data-themes=""·data-resource-suffix="1.78.0"·data-rustdoc-version="1.78.0"·data-channel="1.78.0"·data-search-js="search-42d8da7a6b9792c2.js"·data-settings-js="settings-4313503d2e1961c2.js"·><script·src="../../../static.files/storage-4c98445ec4002617.js"></script><script·defer·src="sidebar-items1.78.0.js"></script><script·defer·src="../../../static.files/main-12cf3b4f4f9dc36d.js"></script><noscript><link·rel="stylesheet"·href="../../../static.files/noscript-04d5337699b92874.css"></noscript><link·rel="alternate·icon"·type="image/png"·href="../../../static.files/favicon-16x16-8b506e7a72182f1c.png"><link·rel="alternate·icon"·type="image/png"·href="../../../static.files/favicon-32x32-422f7d1d52889060.png"><link·rel="icon"·type="image/svg+xml"·href="../../../static.files/favicon-2c020d218678b618.svg"></head><body·class="rustdoc·struct"><!--[if·lte·IE·11]><div·class="warning">This·old·browser·is·unsupported·and·will·most·likely·display·funky·things.</div><![endif]--><nav·class="mobile-topbar"><button·class="sidebar-menu-toggle"·title="show·sidebar"></button><a·class="logo-container"·href="../../../alloc/index.html"><img·class="rust-logo"·src="../../../static.files/rust-logo-151179464ae7ed46.svg"·alt=""></a></nav><nav·class="sidebar"><div·class="sidebar-crate"><a·class="logo-container"·href="../../../alloc/index.html"><img·class="rust-logo"·src="../../../static.files/rust-logo-151179464ae7ed46.svg"·alt="logo"></a><h2><a·href="../../../alloc/index.html">alloc</a><span·class="version">1.78.0</span></h2></div><h2·class="location"><a·href="#">IterMut</a></h2><div·class="sidebar-elems"><section><h3><a·href="#trait-implementations">Trait·Implementations</a></h3><ul·class="block·trait-implementation"><li><a·href="#impl-Debug-for-IterMut%3C'_,+T%3E">Debug</a></li><li><a·href="#impl-DoubleEndedIterator-for-IterMut%3C'a,+T%3E">DoubleEndedIterator</a></li><li><a·href="#impl-ExactSizeIterator-for-IterMut%3C'_,+T%3E">ExactSizeIterator</a></li><li><a·href="#impl-FusedIterator-for-IterMut%3C'_,+T%3E">FusedIterator</a></li><li><a·href="#impl-Iterator-for-IterMut%3C'a,+T%3E">Iterator</a></li><li><a·href="#impl-TrustedLen-for-IterMut%3C'_,+T%3E">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">!UnwindSafe</a></li><li><a·href="#impl-Freeze-for-IterMut%3C'a,+T%3E">Freeze</a></li><li><a·href="#impl-RefUnwindSafe-for-IterMut%3C'a,+T%3E">RefUnwindSafe</a></li><li><a·href="#impl-Send-for-IterMut%3C'a,+T%3E">Send</a></li><li><a·href="#impl-Sync-for-IterMut%3C'a,+T%3E">Sync</a></li><li><a·href="#impl-Unpin-for-IterMut%3C'a,+T%3E">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">Any</a></li><li><a·href="#impl-Borrow%3CT%3E-for-T">Borrow&lt;T&gt;</a></li><li><a·href="#impl-BorrowMut%3CT%3E-for-T">BorrowMut&lt;T&gt;</a></li><li><a·href="#impl-From%3CT%3E-for-T">From&lt;T&gt;</a></li><li><a·href="#impl-Into%3CU%3E-for-T">Into&lt;U&gt;</a></li><li><a·href="#impl-IntoIterator-for-I">IntoIterator</a></li><li><a·href="#impl-TryFrom%3CU%3E-for-T">TryFrom&lt;U&gt;</a></li><li><a·href="#impl-TryInto%3CU%3E-for-T">TryInto&lt;U&gt;</a></li></ul></section><h2><a·href="index.html">In·alloc::collections::vec_deque</a></h2></div></nav><div·class="sidebar-resizer"></div>
2 ····<main><div·class="width-limiter"><nav·class="sub"><form·class="search-form"><span></span><div·id="sidebar-button"·tabindex="-1"><a·href="../../../alloc/all.html"·title="show·sidebar"></a></div><input·class="search-input"·name="search"·aria-label="Run·search·in·the·documentation"·autocomplete="off"·spellcheck="false"·placeholder="Click·or·press·‘S’·to·search,·‘?’·for·more·options…"·type="search"><div·id="help-button"·tabindex="-1"><a·href="../../../help.html"·title="help">?</a></div><div·id="settings-menu"·tabindex="-1"><a·href="../../../settings.html"·title="settings"><img·width="22"·height="22"·alt="Change·settings"·src="../../../static.files/wheel-7b819b6101059cd0.svg"></a></div></form></nav><section·id="main-content"·class="content"><div·class="main-heading"><h1>Struct·<a·href="../../index.html">alloc</a>::<wbr><a·href="../index.html">collections</a>::<wbr><a·href="index.html">vec_deque</a>::<wbr><a·class="struct"·href="#">IterMut</a><button·id="copy-path"·title="Copy·item·path·to·clipboard"><img·src="../../../static.files/clipboard-7571035ce49a181d.svg"·width="19"·height="18"·alt="Copy·item·path"></button></h1><span·class="out-of-band"><span·class="since"·title="Stable·since·Rust·version·1.0.0">1.0.0</span>···<a·class="src"·href="../../../src/alloc/collections/vec_deque/iter_mut.rs.html#13-16">source</a>···<button·id="toggle-all-docs"·title="collapse·all·docs">[<span>&#x2212;</span>]</button></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 ····<main><div·class="width-limiter"><nav·class="sub"><form·class="search-form"><span></span><div·id="sidebar-button"·tabindex="-1"><a·href="../../../alloc/all.html"·title="show·sidebar"></a></div><input·class="search-input"·name="search"·aria-label="Run·search·in·the·documentation"·autocomplete="off"·spellcheck="false"·placeholder="Click·or·press·‘S’·to·search,·‘?’·for·more·options…"·type="search"><div·id="help-button"·tabindex="-1"><a·href="../../../help.html"·title="help">?</a></div><div·id="settings-menu"·tabindex="-1"><a·href="../../../settings.html"·title="settings"><img·width="22"·height="22"·alt="Change·settings"·src="../../../static.files/wheel-7b819b6101059cd0.svg"></a></div></form></nav><section·id="main-content"·class="content"><div·class="main-heading"><h1>Struct·<a·href="../../index.html">alloc</a>::<wbr><a·href="../index.html">collections</a>::<wbr><a·href="index.html">vec_deque</a>::<wbr><a·class="struct"·href="#">IterMut</a><button·id="copy-path"·title="Copy·item·path·to·clipboard"><img·src="../../../static.files/clipboard-7571035ce49a181d.svg"·width="19"·height="18"·alt="Copy·item·path"></button></h1><span·class="out-of-band"><span·class="since"·title="Stable·since·Rust·version·1.0.0">1.0.0</span>···<a·class="src"·href="../../../src/alloc/collections/vec_deque/iter_mut.rs.html#13-16">source</a>···<button·id="toggle-all-docs"·title="collapse·all·docs">[<span>&#x2212;</span>]</button></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>
3 <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·its3 <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
4 documentation·for·more.</p>4 documentation·for·more.</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-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-DoubleEndedIterator-for-IterMut%3C'a,+T%3E"·class="impl"><a·class="src·rightside"·href="../../../src/alloc/collections/vec_deque/iter_mut.rs.html#105-148">source</a><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:·32a709a29cc0c90f6be36068feea31f790be79c949f05701d857ce749c9dd820·...·]/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">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-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-DoubleEndedIterator-for-IterMut%3C'a,+T%3E"·class="impl"><a·class="src·rightside"·href="../../../src/alloc/collections/vec_deque/iter_mut.rs.html#105-148">source</a><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.78.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:·28a73f0a52d613d54456e25cd460ea058185e134d9e89b22b6346d54a1ce9a17·...·]/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
6 ····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,6 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.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.78.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,
7 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:·12e368778fa01456896d28c2f0b047bd63ae8a2ab1e217c42e349b628c17140d·...·]/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 final·value,·starting·from·the·back.·<a·href="https://doc.rust-lang.org/1.78.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:·c5c6a3ca5423c3830e4a6cd71cddd177e398aa3829ae1ef641beb67db6d8b473·...·]/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 ····F:·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(B,·Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·R,8 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(B,·Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·R,
9 ····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·takes9 ····R:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.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.7[·...·truncated·by·diffoscope;·len:·3,·SHA:·7b1bd53949b752d143d871408483b5382371b5bc48d195d0c040ec93cfa2748b·...·]/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
10 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:·250c65f8e63cf6a92c4f86d3171ab4cbdbdd41e6c8b13ac1fbcfcf692b0439ae·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;<div·class="where">where10 elements·starting·from·the·back·of·the·iterator.·<a·href="https://doc.rust-lang.org/1.78.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:·f9778ffcd5dc12c018c44360bdb2defed118df558d9b9a06ddcefbda0b551f08·...·]/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>,11 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
12 ····P:·<a·class="trait"·href="../../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="../../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator:[·...·truncated·by·diffoscope;·len:·7248,·SHA:·300b19e99d9eb9f6ca1310989906183e04ac4108ab9eb059c08d350e2b2ccd0b·...·]/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">where12 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·7992,·SHA:·655fa6f73410420afbc8381e80c99a3e415b382ef7ac476c6c9c085eed75337c·...·]/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
13 ····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,13 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.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.78.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,
14 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:·0d72f0e42e1cc0c6710b3149bff8904aa0ed2299b1bcec2835bbfa6b00fd9a1f·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_fold"·class="fn">try_fold</a>&lt;B,·F,·R&gt;(&amp;mut·self,·init:·B,·f:·F)·-&gt;·R<div·class="where">where14 returning·the·final·result.·<a·href="https://doc.rust-lang.org/1.78.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:·122b8a9d4b9af5f89af9a9be45798a33a407dd12ac1bbcce76cb3915f1185148·...·]/core/iter/traits/iterator/trait.Iterator.html#method.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
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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(B,·Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.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'>An·iterator·method·that·applies·a·function·as·long·as·it·returns16 ····R:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.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
17 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:·1074,·SHA:·048f25bd35d53dfb97c45eb16a22ce268edc415190e14c62d8732bc8c6a1a70a·...·]/core/primitive.usize.html">usize</a>&gt;(17 successfully,·producing·a·single,·final·value.·<a·href="https://doc.rust-lang.org/1.78.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:·1266,·SHA:·162de8a0c94f9156aedaedf8fd8af45221e84698d50ed139180a7fcb15d5bcd2·...·]/core/primitive.usize.html">usize</a>&gt;(
18 ····&amp;mut·self18 ····&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.78.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.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title=[·...·truncated·by·diffoscope;·len:·381,·SHA:·88c48923c9b7ea5cc47c1087c60e09656e81d4671c58071ba2bef826335388bc·...·]/core/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:·746,·SHA:·99cc415a31b91c57f7eeb82ad0d2d1ba424489bee49de37c86a4ea21c663ccda·...·]/core/primitive.usize.html">usize</a><div·class="where">where20 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experiment[·...·truncated·by·diffoscope;·len:·866,·SHA:·945d2d86f0c4c5ca3e3ee3b181d18b2bbea57ee1a5a7efe16c0c915a5bf2c3ad·...·]/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:·1621,·SHA:·551dbc28d194a76b64a0a8f74971c4fe14d778fc42fec1807f37c7ff9fcf75fc·...·]/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.78.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:·1909,·SHA:·45bcfec09a645af14c9bc17ea80da6302f4a9f1e53fa94eec08a1625bd0f3c4d·...·]/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.78.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"><a·class="src·rightside"·href="../../../src/core/it[·...·truncated·by·diffoscope;·len:·602,·SHA:·cfe4c4d300dddc2abdc2f8194eb969c68b2240c28239969b5be2af6a564ed8cc·...·]/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.78.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"><a·class="src·rightside"·hr[·...·truncated·by·diffoscope;·len:·746,·SHA:·f1f70d650c102c8658e13890c7dbfc87418f07e7b522246fb579ec434ef64f7c·...·]/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.78.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:·1041,·SHA:·a281d174c9671021427f0b458ac94e87746ac44730475aa725652c6c15e2b972·...·]/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.78.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.78.0/core/iter/traits/it[·...·truncated·by·diffoscope;·len:·1233,·SHA:·f677df2d893dfe0dc1a9d31ebb0ba71a346d265781813e0d664d3f18369b6163·...·]/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.78.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:·b9001dd3131b1425179c94853e1b90fff0f7169b9570e86cd50c6b7fbf1ee8a5·...·]/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.78.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:·98627729f77dcf1c9d258f343354ba600b7134c6b3929080f231e8de7155b70b·...·]/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.78.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.78.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.78.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"><a·class="src·rightside"·href="../../../src/[·...·truncated·by·diffoscope;·len:·279,·SHA:·f2c34c2e64e77c66684f837812ebc4a94c81b2ad5862cc0131f80c3ce89e008a·...·]/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.78.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"><a·class="src·rights[·...·truncated·by·diffoscope;·len:·375,·SHA:·58419346f92e1709dadb70cc3cf356e3cd27972451bdc6b4fc4267e6f7e8bdae·...·]/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.78.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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::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:·d75758e0f8262eeea27445cec43f13d84f0c02ba4e03c0c54d041f9ab1965e0f·...·]/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.78.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:·98f6effefa44d759c249143d83623f0055d937382bfc398b7e1f5e92cd413657·...·]/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.78.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:·676,·SHA:·9ae42ed293737a3dd44c1ee9d98c6aabb1552fbb9d203cb852ee9fcc7834a6ca·...·]/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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·820,·SHA:·a664bbcbc0891663662e4eb7b4394d0fcd72e568136fc4d34097fea242cc32e7·...·]/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.78.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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·140,·SHA:·752f473b57e7444ebfddf5ea7fd40a332e83ec55524a6c31b5ee0f82a5dea819·...·]/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"><a·class="src·rightside"·href="../../../src/cor[·...·truncated·by·diffoscope;·len:·297,·SHA:·f01e44d4caf6c6ad80b37656b9300f7111340711dcd74d70867b5a652dbfb538·...·]/core/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.78.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"><a·class="src·rightside[·...·truncated·by·diffoscope;·len:·393,·SHA:·2e2aa7c9c9c087e7b346da376749064ab8c1894795a2f0a0f646cdc8c7bea997·...·]/core/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.78.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:·788,·SHA:·b788f412af946d2bd7646ba39a8c316ebfa88109f9626dbad9bf9964f975cd0c·...·]/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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·956,·SHA:·faba0521e870dbbd26d466fadba3522e7d29013a9b86376fffafffac11a57e0e·...·]/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.78.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"><a·class="src·rightside"·href="../../../src/co[·...·truncated·by·diffoscope;·len:·276,·SHA:·e337ee1b810d3ec0480569c4ed323ebf0a2315c8ae3c522a73fcca3aa8e6efb3·...·]/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.78.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"><a·class="src·rightsid[·...·truncated·by·diffoscope;·len:·372,·SHA:·03eea0861575eb80d3f7a87a3ba747adb1a33fe7e9ce72aa2172e7a287c63a94·...·]/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.78.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.78.0/core/iter/adapte[·...·truncated·by·diffoscope;·len:·175,·SHA:·16fe7225bf05b478e2828b347c3d23ded9a22f89d8887a2c65d9f7b3faf1b0e7·...·]/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"><a·class="src·rightside"·href="../../../src/c[·...·truncated·by·diffoscope;·len:·306,·SHA:·a9bc004bf639fa188165a336061c6c98ec7ff9d266a18f10db200dfa9a880b88·...·]/core/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.78.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"><a·class="src·rightsi[·...·truncated·by·diffoscope;·len:·402,·SHA:·7689a974f800fd069d1b4453ef62d6d6ad1b654462d624d36e3672051d502030·...·]/core/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.78.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:·946,·SHA:·877b8718d9df1464a912dd50eef16402225367db4e4b26484b5ee20d30644524·...·]/core/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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·1138,·SHA:·f6ae06b7de8e94df014341c5cf589a5e4a1298367b2ef7a968ec499c5170a70e·...·]/core/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.78.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:·552b3dd2132886d024e4d5bd2554611e25c1f068adaaf23ecf80da81d31997ef·...·]/core/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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·1058,·SHA:·b390dbdda8d7e93604b5ecd906a93efd03fe19bdaf41cf12893fd361bf974307·...·]/core/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.78.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:·875,·SHA:·5c5c44422f75cbb66ebcf54bea70536713b810843cc484b051aed088c6422d78·...·]/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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·1067,·SHA:·415d32e1211c35d3bb405de1d6e51c2102c14cadc3333894f063148dbe0b1f69·...·]/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:·543,·SHA:·f199bafab360be9b80e9f45c5ba799a52348b742ddb0fa9afdb1624729c36e58·...·]/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.78.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:·687,·SHA:·7f5256104c35c5948a2cb42b55f3048c9d2887e48a4a8226537a284f959c562a·...·]/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.78.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"><a·class="src·rightside"·href="../../../src/core/iter/t[·...·truncated·by·diffoscope;·len:·296,·SHA:·aea014801138aeee574964545b1e9ad297288a120113db6844b569d2b183e0a7·...·]/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.78.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"><a·class="src·rightside"·href="[·...·truncated·by·diffoscope;·len:·392,·SHA:·4e7da68f7be2622ef173653eca78d58e1f202b544a2e6abd14d8335c298c93a7·...·]/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.78.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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(<a·class="primitive"·href="https://doc.rust-lang.org/1.78.0/core/primitive.reference.html">&amp;mut·St</a>,·Self::<a·class="associatedty[·...·truncated·by·diffoscope;·len:·449,·SHA:·f12c268a8a8111b9e7126ad78bf5523a63733caa63d187c4fe792309ea41acdf·...·]/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:·474,·SHA:·c0ed850df640319d919b8c053c540caa158602207623bed65abbcd69ad9d2c9d·...·]/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.78.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.78.0/core/iter/trai[·...·truncated·by·diffoscope;·len:·594,·SHA:·02960742fa7892efaa08f289ce85865fc5efb6a4cd138c22e3566ca6fc727d78·...·]/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.78.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.78.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:·4d1f54658fd1c005b101a2e27b0da3c6ee0cbe2d891660c65470bfec01fa46f6·...·]/core/iter/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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·976,·SHA:·2a9182f6fe88e0b8a9b1ae1f46cace940cc0b8736033c354c0f0ccbf1c196e7a·...·]/core/iter/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.78.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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;[Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtyp[·...·truncated·by·diffoscope;·len:·135,·SHA:·0b06a6094d42ccbc8bce5b01c4383961fe7f1967f05e4c9f1ff33e71e425fb26·...·]/core/primitive.array.html">N</a>])·-&gt;·R,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iter_map_windows</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/87155">#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.78.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"><a·class="src·rightside"·href="../../../src/core[·...·truncated·by·diffoscope;·len:·262,·SHA:·6125a8b2b88486b3735bbd00905fe9ae55b6eb1491c8a493be9c8121dc3cb440·...·]/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.78.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"><a·class="src·rightside"[·...·truncated·by·diffoscope;·len:·358,·SHA:·d91b2ab18e0ce069e262cf523c6ef961f56eecad042ea1e9bcefe33cff28fc8f·...·]/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:·601,·SHA:·bdf3796aa87e911258d56122ffdaa3f8591a5c9db4ed6fd89c3dfd3660787f78·...·]/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.78.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.78.0/core/op[·...·truncated·by·diffoscope;·len:·745,·SHA:·424783f22102f4446d3ad4d362b1aafdb7531fa777213f97ee138aa878f67bd1·...·]/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.78.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:·694,·SHA:·db4bb2630979aa4504432e8d422265d943c9063bcf3d2e3be970003014226f1e·...·]/core/primitive.reference.html">&amp;mut·Self</a><div·class="where">where67 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·838,·SHA:·9b4fd8df7f41e9a76fd4cfca0a233b74b9bd27c3fe8228248abc3f940425a3e3·...·]/core/primitive.reference.html">&amp;mut·Self</a><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:·331,·SHA:·d13641714c275840abbb473011613a4e19924a453f5e1b83912681a9b7c5579b·...·]/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.78.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.78.0/core/it[·...·truncated·by·diffoscope;·len:·427,·SHA:·ecfaaac5d1d10c1bc4fcee9a050af0a268bee0b528c2d8ea4e9774440bd8a279·...·]/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.78.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.78.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:·d76c3fcf86c63211032a6b22dc5924ef552b1ad26b12e19f15d2f1d5b3d7e394·...·]/core/primitive.reference.html">&amp;mut·E</a><div·class="where">where70 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.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.78.0/core/iter/tr[·...·truncated·by·diffoscope;·len:·728,·SHA:·01937c2dc314c259495665570ae249c94b4a5b0719718f5f1188e6fc64ecf487·...·]/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.78.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.78.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:·759,·SHA:·3cf174fac64a83c8e22066c3d77741118f89b13411537fc82c1004faa5c9e2ae·...·]/core/primitive.tuple.html">(B,·B)</a><div·class="where">where72 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experiment[·...·truncated·by·diffoscope;·len:·879,·SHA:·e773b2222c92d001e295030cb47a780ab0c1132d7fc8e9e3a98de4f532e6c520·...·]/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.78.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.78.0/core/default/trait.Default.html"·title="trait·core::default::Default">Default</a>·+·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/collect/trait.Extend.html"·title="trait·core::iter::traits::collec[·...·truncated·by·diffoscope;·len:·95,·SHA:·8b3be1d0042cae0550f865faf5849221240bdf04eb1b2107605b72d48c3ad29c·...·]/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:·281bbd5137cae68dd8057d013e9c9f311461e746663120304e3f6adace77f784·...·]/core/primitive.usize.html">usize</a><div·class="where">where75 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·995,·SHA:·bec3765fdab56713186e2454cd84738b5b28e3280a2f3d5a25cefdbc3089b520·...·]/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.78.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>·+·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/double_ended/trait.DoubleEndedIterator.html"·title="trait·core::iter::trai[·...·truncated·by·diffoscope;·len:·132,·SHA:·e5b2cf5f56946ede1e190ed09879c5821e2de04cf8e5d145142eeb40c6340982·...·]/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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(<a·class="primitive"·href="https://doc.rust-lang.org/1.78.0/core/primitive.reference.html">&amp;T</a>)·-&gt;·<a·class="primitive"·href="[·...·truncated·by·diffoscope;·len:·32,·SHA:·63d052a8ced32bf927ffadd7e884c08caf4970e85dfdf6be0e568d49b174da96·...·]/core/primitive.bool.html">bool</a>,</div></h4></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:·dc6a465df534b0392c5280e79e5249847890045561099b2cfc44bfabc4801d8d·...·]/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.78.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:·0c224636c18baa273f69de21f90083317f2ea0b7367a3f0d0f1c0ace55a36f79·...·]/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.78.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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·135,·SHA:·51ff5f5c7ebd8440623ea71b125c5a5837e809e308fe1a13fbe19cddb941dbd9·...·]/core/primitive.bool.html">bool</a>,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iter_is_partitioned</code>&nbsp;<a·href="https://github.com/rust-lang/rust/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_for_each"·class="method·trait-impl"><span·class="rightside"><span·class="[·...·truncated·by·diffoscope;·len:·255,·SHA:·55b46e955f54644416b5090ec1d6415a222f7e41e012ad36dff7e6db44102364·...·]/core/iter/traits/iterator/trait.Iterator.html#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 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.78.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:·b5b5559d4bedab0135adfae89ec80ffab292c35f0d8c34fa5240955934cefd74·...·]/core/iter/traits/iterator/trait.Iterator.html#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.78.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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.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.78.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.78.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.reduce"·class="method·trait-impl"><span·class="rightside"><span·class="since"·t[·...·truncated·by·diffoscope;·len:·507,·SHA:·fd12cb7e38ad9e5f62c3562e083d0b02a733631ee0893509b1c54a85f4419997·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;<div·class="where">where87 iterator,·stopping·at·the·first·error·and·returning·that·error.·<a·href="https://doc.rust-lang.org/1.78.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:·94f0d6f81d13cadba9ee012268cda8b0ff7a775a8c03d992a108a9ae039e4d71·...·]/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.78.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:·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·reducing89 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·352,·SHA:·e7c3c296abe2c0a183967153e4ae7fd50bafa2ae7088e3e78b3b48fee253adc6·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::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/cor[·...·truncated·by·diffoscope;·len:·145,·SHA:·c3f1d50e276def36966943119961a20b09cab3be33483fe4d48d7f322489534b·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_reduce"·class="fn">try_reduce</a>&lt;F,·R&gt;(90 operation.·<a·href="https://doc.rust-lang.org/1.78.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:·7a18fdd041b1a001b4a8feb289ee127fd9240232239269eb35dc3b8f74783ec9·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_reduce"·class="fn">try_reduce</a>&lt;F,·R&gt;(
91 ····&amp;mut·self,91 ····&amp;mut·self,
92 ····f:·F92 ····f:·F
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</[·...·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">where93 )·-&gt;·&lt;&lt;R·as·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&gt;::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/ops/try_trait/trait.Try.html#associatedtype.Residual"·title="type[·...·truncated·by·diffoscope;·len:·754,·SHA:·6fb4dfdb6b4da68921c1e7f8b75d99cf293d58318d684a840254ce9576957bea·...·]/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.78.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:·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:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·140,·SHA:·c27972e6fa3464c9476eaa185e8657edb6bb294f148403f3d079285294a9f909·...·]/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·=·Self::<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.78.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.78.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</[·...·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·the97 ····&lt;R·as·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&gt;::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/ops/try_trait/trait.Try.html#associatedtype.Residual"·title="type[·...·truncated·by·diffoscope;·len:·412,·SHA:·22b8cbb007e5cce82b9d13a65bfa56aa8d83c32541fac25f4d9b3857b0540908·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;&gt;,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iterator_try_reduce</code>&nbsp;<a·href="https://github.com/rust-lang/rust/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"><a·class="src·rightside"·href="../../../src/core/i[·...·truncated·by·diffoscope;·len:·284,·SHA:·fbacd9a305d3a60d42d9adcc5ea9e5f579f4ff5d970999f333eaf0c7f9baf66c·...·]/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.78.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"><a·class="src·rightside"·h[·...·truncated·by·diffoscope;·len:·380,·SHA:·29c4004d4d8b0c8c9dfe9023f8b2c5ef801d9dc4688893035d182c1ae774c453·...·]/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.78.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::Iter[·...·truncated·by·diffoscope;·len:·754,·SHA:·e3afac523bd4c054d94fbbb6c5c856ac78a6359550526fa0726732b36529c33d·...·]/core/primitive.bool.html">bool</a><div·class="where">where100 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·922,·SHA:·f4fd532c280e18f28bd6dda6c2a129e2e92114b67f27235bb5fd39f725be9c43·...·]/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.78.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:·884,·SHA:·32570d141a71827f9ac19bf566a51ca4814ccafaf6f8a961920ce107fe9657d7·...·]/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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·1076,·SHA:·2dd9de8adaee4a5ee96501d9a58bfac2fea00ba8d78b834bfca29949b3afe18b·...·]/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.78.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:[·...·truncated·by·diffoscope;·len:·883,·SHA:·f441e2966ff8db4214e57fcd74f81262d6e371aa51cea97ebde5921e81b4da79·...·]/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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·1051,·SHA:·ecc0b8fccd861464760f9ae047ff6ab98c91a1db010cb5fa59a8c2ab883db7c4·...·]/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.78.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:·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·returns106 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·130,·SHA:·130a13019dc175d02304b4f550157e2f13ac15c2f25a979c74161d10b146ab89·...·]/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/cor[·...·truncated·by·diffoscope;·len:·143,·SHA:·ec4fb002625b166504031522e52a66812b279e6735a67cb718813205909c3fb7·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_find"·class="fn">try_find</a>&lt;F,·R&gt;(107 the·first·non-none·result.·<a·href="https://doc.rust-lang.org/1.78.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:·8ced1b10e78750774c5c8ed995ed83dcd13983aa75d329acf8069da106ab9f4a·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_find"·class="fn">try_find</a>&lt;F,·R&gt;(
108 ····&amp;mut·self,108 ····&amp;mut·self,
109 ····f:·F109 ····f:·F
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</[·...·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">where110 )·-&gt;·&lt;&lt;R·as·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&gt;::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/ops/try_trait/trait.Try.html#associatedtype.Residual"·title="type[·...·truncated·by·diffoscope;·len:·626,·SHA:·95f9831257b68862cbcbf54f0ad2ff4e597a4c9f763112d1da8a0897dadcf872·...·]/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.78.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;·R,112 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·R,
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.78.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.78.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.78.0/core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&gt;::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/ops/try_trait/trait.Try.html#associatedtype.Residual"·title="type[·...·truncated·by·diffoscope;·len:·412,·SHA:·22b8cbb007e5cce82b9d13a65bfa56aa8d83c32541fac25f4d9b3857b0540908·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;&gt;,</div></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"><a·class="src·rightside"·href="../../../src/cor[·...·truncated·by·diffoscope;·len:·419,·SHA:·4337d283573b9683aaa605a7d2417318ef2a03902876e7da2ec26f2a5febf794·...·]/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.78.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"><a·class="src·rightside[·...·truncated·by·diffoscope;·len:·539,·SHA:·04e329705f11ed9ec269a68b0b75ac4ab26c78e4316a571ee9336c28bbca6359·...·]/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.78.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:·901,·SHA:·a6eb7314148a1006184790a26873440fac678952c99874de84cb66644e250c0b·...·]/core/primitive.usize.html">usize</a>&gt;<div·class="where">where117 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·1093,·SHA:·623dbacabfe45799103c799fb60a4d212ceb8759ff853a11209a07793257c9cd·...·]/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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·135,·SHA:·51ff5f5c7ebd8440623ea71b125c5a5837e809e308fe1a13fbe19cddb941dbd9·...·]/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.78.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>·+·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/exact_size/trait.ExactSizeIterator.html"·title="trait·core::iter::traits::[·...·truncated·by·diffoscope;·len:·110,·SHA:·a8846fff2831d0de2de7dbb91c4e50f6f60fac276813cbaa471bf32fb45120d4·...·]/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.78.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:·c876e8603f9248b122c6d4a7db3091b70f098f834ba7b3112a8b68d5e7ade3ed·...·]/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.78.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.78.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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/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.78.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:·0367b1bacc0a7d8e05f1c5181f8c4ea428f3f11edbae0e76811f3ef1d4925e41·...·]/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.78.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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·346,·SHA:·7113e4c2d65a123253bb18971efdc2d49241cfc2dd4c2b18e4cfa4e4d7d4140f·...·]/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
127 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">where127 specified·comparison·function.·<a·href="https://doc.rust-lang.org/1.78.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:·db89d4cca0becf2a4ab904adac2870de6fd83cfad5131f5a1431a67766274f81·...·]/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; 79955/296537 bytes (26.96%) of diff not shown.
315 KB
./usr/share/doc/rust-web-doc/html/alloc/collections/vec_deque/struct.VecDeque.html
    
Offset 15, 114 lines modifiedOffset 15, 114 lines modified
15 so·that·its·elements·do·not·wrap,·and·returns·a·mutable·slice·to·the15 so·that·its·elements·do·not·wrap,·and·returns·a·mutable·slice·to·the
16 now-contiguous·element·sequence.</p>16 now-contiguous·element·sequence.</p>
17 </div></details><h2·id="implementations"·class="section-header">Implementations<a·href="#implementations"·class="anchor">§</a></h2><div·id="implementations-list"><details·class="toggle·implementors-toggle"·open><summary><section·id="impl-VecDeque%3CT%3E"·class="impl"><a·class="src·rightside"·href="../../../src/alloc/collections/vec_deque/mod.rs.html#528-586">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="const·since·1.68.0">const:·1.68.0</span>···<a·class="src"·href="../../../src/alloc/collections/vec_deque/mod.rs.html#542-545">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 </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#528-586">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="const·since·1.68.0">const:·1.68.0</span>···<a·class="src"·href="../../../src/alloc/collections/vec_deque/mod.rs.html#542-545">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>
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::collections::VecDeque;19 <div·class="example-wrap"><pre·class="rust·rust-example-rendered"><code><span·class="kw">use·</span>std::collections::VecDeque;
  
20 <span·class="kw">let·</span>deque:·VecDeque&lt;u32&gt;·=·VecDeque::new();</code></pre><a·class="test-arrow"·target="_blank"·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">Run</a></div>20 <span·class="kw">let·</span>deque:·VecDeque&lt;u32&gt;·=·VecDeque::new();</code></pre><a·class="test-arrow"·target="_blank"·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">Run</a></div>
21 </div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.with_capacity"·class="method"><a·class="src·rightside"·href="../../../src/alloc/collections/vec_deque/mod.rs.html#559-561">source</a><h4·class="code-header">pub·fn·<a·href="#method.with_capacity"·class="fn">with_capacity</a>(capacity:·<a·class="primitive"·href="../../../core/primitive.usize.html">usize</a>)·-&gt;·<a·class="struct"·href="struct.VecDeque.html"·title="struct·alloc::collections::vec_deque::VecDeque">VecDeque</a>&lt;T&gt;</h4></section></summary><div·class="docblock"><p>Creates·an·empty·deque·with·space·for·at·least·<code>capacity</code>·elements.</p>21 </div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.with_capacity"·class="method"><a·class="src·rightside"·href="../../../src/alloc/collections/vec_deque/mod.rs.html#559-561">source</a><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.78.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>
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::collections::VecDeque;23 <div·class="example-wrap"><pre·class="rust·rust-example-rendered"><code><span·class="kw">use·</span>std::collections::VecDeque;
  
24 <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"·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">Run</a></div>24 <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"·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">Run</a></div>
25 </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#583-585">source</a><h4·class="code-header">pub·fn·<a·href="#method.try_with_capacity"·class="fn">try_with_capacity</a>(25 </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#583-585">source</a><h4·class="code-header">pub·fn·<a·href="#method.try_with_capacity"·class="fn">try_with_capacity</a>(
26 ····capacity:·<a·class="primitive"·href="../../../core/primitive.usize.html">usize</a>26 ····capacity:·<a·class="primitive"·href="https://doc.rust-lang.org/1.78.0/core/primitive.usize.html">usize</a>
27 )·-&gt;·<a·class="enum"·href="../../../core/result/enum.Result.html"·title="enum·core::result::Result">Result</a>&lt;<a·class="struct"·href="struct.VecDeque.html"·title="struct·alloc::collections::vec_deque::VecDeque">VecDeque</a>&lt;T&gt;,·<a·class="struct"·href="../struct.TryReserveError.html"·title="struct·alloc::collections::TryReserveError">TryReserveError</a>&gt;</h4></section><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>try_with_capacity</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/91913">#91913</a>)</span></div></span></summary><div·class="docblock"><p>Creates·an·empty·deque·with·space·for·at·least·<code>capacity</code>·elements.</p>27 )·-&gt;·<a·class="enum"·href="https://doc.rust-lang.org/1.78.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>
28 <h5·id="errors"><a·class="doc-anchor"·href="#errors">§</a>Errors</h5>28 <h5·id="errors"><a·class="doc-anchor"·href="#errors">§</a>Errors</h5>
29 <p>Returns·an·error·if·the·capacity·exceeds·<code>isize::MAX</code>·<em>bytes</em>,29 <p>Returns·an·error·if·the·capacity·exceeds·<code>isize::MAX</code>·<em>bytes</em>,
30 or·if·the·allocator·reports·allocation·failure.</p>30 or·if·the·allocator·reports·allocation·failure.</p>
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="kw">use·</span>std::collections::VecDeque;32 <div·class="example-wrap"><pre·class="rust·rust-example-rendered"><code><span·class="kw">use·</span>std::collections::VecDeque;
  
33 <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"·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">Run</a></div>33 <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"·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">Run</a></div>
34 </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#588-2642">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#600-602">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 </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#588-2642">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#600-602">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>
35 <h5·id="examples-3"><a·class="doc-anchor"·href="#examples-3">§</a>Examples</h5>35 <h5·id="examples-3"><a·class="doc-anchor"·href="#examples-3">§</a>Examples</h5>
36 <div·class="example-wrap"><pre·class="rust·rust-example-rendered"><code><span·class="kw">use·</span>std::collections::VecDeque;36 <div·class="example-wrap"><pre·class="rust·rust-example-rendered"><code><span·class="kw">use·</span>std::collections::VecDeque;
  
37 <span·class="kw">let·</span>deque:·VecDeque&lt;u32&gt;·=·VecDeque::new();</code></pre><a·class="test-arrow"·target="_blank"·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">Run</a></div>37 <span·class="kw">let·</span>deque:·VecDeque&lt;u32&gt;·=·VecDeque::new();</code></pre><a·class="test-arrow"·target="_blank"·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">Run</a></div>
38 </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#614-616">source</a><h4·class="code-header">pub·fn·<a·href="#method.with_capacity_in"·class="fn">with_capacity_in</a>(capacity:·<a·class="primitive"·href="../../../core/primitive.usize.html">usize</a>,·alloc:·A)·-&gt;·<a·class="struct"·href="struct.VecDeque.html"·title="struct·alloc::collections::vec_deque::VecDeque">VecDeque</a>&lt;T,·A&gt;</h4></section><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>allocator_api</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/32838">#32838</a>)</span></div></span></summary><div·class="docblock"><p>Creates·an·empty·deque·with·space·for·at·least·<code>capacity</code>·elements.</p>38 </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#614-616">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.78.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>
39 <h5·id="examples-4"><a·class="doc-anchor"·href="#examples-4">§</a>Examples</h5>39 <h5·id="examples-4"><a·class="doc-anchor"·href="#examples-4">§</a>Examples</h5>
40 <div·class="example-wrap"><pre·class="rust·rust-example-rendered"><code><span·class="kw">use·</span>std::collections::VecDeque;40 <div·class="example-wrap"><pre·class="rust·rust-example-rendered"><code><span·class="kw">use·</span>std::collections::VecDeque;
  
41 <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"·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">Run</a></div>41 <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"·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">Run</a></div>
42 </div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.get"·class="method"><a·class="src·rightside"·href="../../../src/alloc/collections/vec_deque/mod.rs.html#667-674">source</a><h4·class="code-header">pub·fn·<a·href="#method.get"·class="fn">get</a>(&amp;self,·index:·<a·class="primitive"·href="../../../core/primitive.usize.html">usize</a>)·-&gt;·<a·class="enum"·href="../../../core/option/enum.Option.html"·title="enum·core::option::Option">Option</a>&lt;<a·class="primitive"·href="../../../core/primitive.reference.html">&amp;T</a>&gt;</h4></section></summary><div·class="docblock"><p>Provides·a·reference·to·the·element·at·the·given·index.</p>42 </div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.get"·class="method"><a·class="src·rightside"·href="../../../src/alloc/collections/vec_deque/mod.rs.html#667-674">source</a><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.78.0/core/primitive.usize.html">usize</a>)·-&gt;·<a·class="enum"·href="https://doc.rust-lang.org/1.78.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:·a3944fe259f3b484f5d3705ce26f7af06ba821285552c373bd29bbce95a51354·...·]/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>
43 <p>Element·at·index·0·is·the·front·of·the·queue.</p>43 <p>Element·at·index·0·is·the·front·of·the·queue.</p>
44 <h5·id="examples-5"><a·class="doc-anchor"·href="#examples-5">§</a>Examples</h5>44 <h5·id="examples-5"><a·class="doc-anchor"·href="#examples-5">§</a>Examples</h5>
45 <div·class="example-wrap"><pre·class="rust·rust-example-rendered"><code><span·class="kw">use·</span>std::collections::VecDeque;45 <div·class="example-wrap"><pre·class="rust·rust-example-rendered"><code><span·class="kw">use·</span>std::collections::VecDeque;
  
46 <span·class="kw">let·</span><span·class="kw-2">mut·</span>buf·=·VecDeque::new();46 <span·class="kw">let·</span><span·class="kw-2">mut·</span>buf·=·VecDeque::new();
47 buf.push_back(<span·class="number">3</span>);47 buf.push_back(<span·class="number">3</span>);
48 buf.push_back(<span·class="number">4</span>);48 buf.push_back(<span·class="number">4</span>);
49 buf.push_back(<span·class="number">5</span>);49 buf.push_back(<span·class="number">5</span>);
50 buf.push_back(<span·class="number">6</span>);50 buf.push_back(<span·class="number">6</span>);
51 <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"·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">Run</a></div>51 <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"·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">Run</a></div>
52 </div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.get_mut"·class="method"><a·class="src·rightside"·href="../../../src/alloc/collections/vec_deque/mod.rs.html#697-704">source</a><h4·class="code-header">pub·fn·<a·href="#method.get_mut"·class="fn">get_mut</a>(&amp;mut·self,·index:·<a·class="primitive"·href="../../../core/primitive.usize.html">usize</a>)·-&gt;·<a·class="enum"·href="../../../core/option/enum.Option.html"·title="enum·core::option::Option">Option</a>&lt;<a·class="primitive"·href="../../../core/primitive.reference.html">&amp;mut·T</a>&gt;</h4></section></summary><div·class="docblock"><p>Provides·a·mutable·reference·to·the·element·at·the·given·index.</p>52 </div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.get_mut"·class="method"><a·class="src·rightside"·href="../../../src/alloc/collections/vec_deque/mod.rs.html#697-704">source</a><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.78.0/core/primitive.usize.html">usize</a>)·-&gt;·<a·class="enum"·href="https://doc.rust-lang.org/1.78.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:·a3944fe259f3b484f5d3705ce26f7af06ba821285552c373bd29bbce95a51354·...·]/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>
53 <p>Element·at·index·0·is·the·front·of·the·queue.</p>53 <p>Element·at·index·0·is·the·front·of·the·queue.</p>
54 <h5·id="examples-6"><a·class="doc-anchor"·href="#examples-6">§</a>Examples</h5>54 <h5·id="examples-6"><a·class="doc-anchor"·href="#examples-6">§</a>Examples</h5>
55 <div·class="example-wrap"><pre·class="rust·rust-example-rendered"><code><span·class="kw">use·</span>std::collections::VecDeque;55 <div·class="example-wrap"><pre·class="rust·rust-example-rendered"><code><span·class="kw">use·</span>std::collections::VecDeque;
  
56 <span·class="kw">let·</span><span·class="kw-2">mut·</span>buf·=·VecDeque::new();56 <span·class="kw">let·</span><span·class="kw-2">mut·</span>buf·=·VecDeque::new();
57 buf.push_back(<span·class="number">3</span>);57 buf.push_back(<span·class="number">3</span>);
58 buf.push_back(<span·class="number">4</span>);58 buf.push_back(<span·class="number">4</span>);
59 buf.push_back(<span·class="number">5</span>);59 buf.push_back(<span·class="number">5</span>);
60 buf.push_back(<span·class="number">6</span>);60 buf.push_back(<span·class="number">6</span>);
61 <span·class="macro">assert_eq!</span>(buf[<span·class="number">1</span>],·<span·class="number">4</span>);61 <span·class="macro">assert_eq!</span>(buf[<span·class="number">1</span>],·<span·class="number">4</span>);
62 <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">if·let·</span><span·class="prelude-val">Some</span>(elem)·=·buf.get_mut(<span·class="number">1</span>)·{
63 ····<span·class="kw-2">*</span>elem·=·<span·class="number">7</span>;63 ····<span·class="kw-2">*</span>elem·=·<span·class="number">7</span>;
64 }64 }
65 <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"·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">Run</a></div>65 <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"·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">Run</a></div>
66 </div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.swap"·class="method"><a·class="src·rightside"·href="../../../src/alloc/collections/vec_deque/mod.rs.html#730-736">source</a><h4·class="code-header">pub·fn·<a·href="#method.swap"·class="fn">swap</a>(&amp;mut·self,·i:·<a·class="primitive"·href="../../../core/primitive.usize.html">usize</a>,·j:·<a·class="primitive"·href="../../../core/primitive.usize.html">usize</a>)</h4></section></summary><div·class="docblock"><p>Swaps·elements·at·indices·<code>i</code>·and·<code>j</code>.</p>66 </div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.swap"·class="method"><a·class="src·rightside"·href="../../../src/alloc/collections/vec_deque/mod.rs.html#730-736">source</a><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.78.0/core/primitive.usize.html">usize</a>,·j:·<a·class="primitive"·href="https://doc.rust-lang.org/1.78.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>
67 <p><code>i</code>·and·<code>j</code>·may·be·equal.</p>67 <p><code>i</code>·and·<code>j</code>·may·be·equal.</p>
68 <p>Element·at·index·0·is·the·front·of·the·queue.</p>68 <p>Element·at·index·0·is·the·front·of·the·queue.</p>
69 <h5·id="panics"><a·class="doc-anchor"·href="#panics">§</a>Panics</h5>69 <h5·id="panics"><a·class="doc-anchor"·href="#panics">§</a>Panics</h5>
70 <p>Panics·if·either·index·is·out·of·bounds.</p>70 <p>Panics·if·either·index·is·out·of·bounds.</p>
71 <h5·id="examples-7"><a·class="doc-anchor"·href="#examples-7">§</a>Examples</h5>71 <h5·id="examples-7"><a·class="doc-anchor"·href="#examples-7">§</a>Examples</h5>
72 <div·class="example-wrap"><pre·class="rust·rust-example-rendered"><code><span·class="kw">use·</span>std::collections::VecDeque;72 <div·class="example-wrap"><pre·class="rust·rust-example-rendered"><code><span·class="kw">use·</span>std::collections::VecDeque;
  
73 <span·class="kw">let·</span><span·class="kw-2">mut·</span>buf·=·VecDeque::new();73 <span·class="kw">let·</span><span·class="kw-2">mut·</span>buf·=·VecDeque::new();
74 buf.push_back(<span·class="number">3</span>);74 buf.push_back(<span·class="number">3</span>);
75 buf.push_back(<span·class="number">4</span>);75 buf.push_back(<span·class="number">4</span>);
76 buf.push_back(<span·class="number">5</span>);76 buf.push_back(<span·class="number">5</span>);
77 <span·class="macro">assert_eq!</span>(buf,·[<span·class="number">3</span>,·<span·class="number">4</span>,·<span·class="number">5</span>]);77 <span·class="macro">assert_eq!</span>(buf,·[<span·class="number">3</span>,·<span·class="number">4</span>,·<span·class="number">5</span>]);
78 buf.swap(<span·class="number">0</span>,·<span·class="number">2</span>);78 buf.swap(<span·class="number">0</span>,·<span·class="number">2</span>);
79 <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"·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">Run</a></div>79 <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"·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">Run</a></div>
80 </div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.capacity"·class="method"><a·class="src·rightside"·href="../../../src/alloc/collections/vec_deque/mod.rs.html#751-753">source</a><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·without80 </div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.capacity"·class="method"><a·class="src·rightside"·href="../../../src/alloc/collections/vec_deque/mod.rs.html#751-753">source</a><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.78.0/core/primitive.usize.html">usize</a></h4></section></summary><div·class="docblock"><p>Returns·the·number·of·elements·the·deque·can·hold·without
81 reallocating.</p>81 reallocating.</p>
82 <h5·id="examples-8"><a·class="doc-anchor"·href="#examples-8">§</a>Examples</h5>82 <h5·id="examples-8"><a·class="doc-anchor"·href="#examples-8">§</a>Examples</h5>
83 <div·class="example-wrap"><pre·class="rust·rust-example-rendered"><code><span·class="kw">use·</span>std::collections::VecDeque;83 <div·class="example-wrap"><pre·class="rust·rust-example-rendered"><code><span·class="kw">use·</span>std::collections::VecDeque;
  
84 <span·class="kw">let·</span>buf:·VecDeque&lt;i32&gt;·=·VecDeque::with_capacity(<span·class="number">10</span>);84 <span·class="kw">let·</span>buf:·VecDeque&lt;i32&gt;·=·VecDeque::with_capacity(<span·class="number">10</span>);
85 <span·class="macro">assert!</span>(buf.capacity()·&gt;=·<span·class="number">10</span>);</code></pre><a·class="test-arrow"·target="_blank"·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">Run</a></div>85 <span·class="macro">assert!</span>(buf.capacity()·&gt;=·<span·class="number">10</span>);</code></pre><a·class="test-arrow"·target="_blank"·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">Run</a></div>
86 </div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.reserve_exact"·class="method"><a·class="src·rightside"·href="../../../src/alloc/collections/vec_deque/mod.rs.html#778-788">source</a><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·the86 </div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.reserve_exact"·class="method"><a·class="src·rightside"·href="../../../src/alloc/collections/vec_deque/mod.rs.html#778-788">source</a><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.78.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
87 given·deque.·Does·nothing·if·the·capacity·is·already·sufficient.</p>87 given·deque.·Does·nothing·if·the·capacity·is·already·sufficient.</p>
88 <p>Note·that·the·allocator·may·give·the·collection·more·space·than·it·requests.·Therefore88 <p>Note·that·the·allocator·may·give·the·collection·more·space·than·it·requests.·Therefore
89 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·future89 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
90 insertions·are·expected.</p>90 insertions·are·expected.</p>
91 <h5·id="panics-1"><a·class="doc-anchor"·href="#panics-1">§</a>Panics</h5>91 <h5·id="panics-1"><a·class="doc-anchor"·href="#panics-1">§</a>Panics</h5>
92 <p>Panics·if·the·new·capacity·overflows·<code>usize</code>.</p>92 <p>Panics·if·the·new·capacity·overflows·<code>usize</code>.</p>
93 <h5·id="examples-9"><a·class="doc-anchor"·href="#examples-9">§</a>Examples</h5>93 <h5·id="examples-9"><a·class="doc-anchor"·href="#examples-9">§</a>Examples</h5>
94 <div·class="example-wrap"><pre·class="rust·rust-example-rendered"><code><span·class="kw">use·</span>std::collections::VecDeque;94 <div·class="example-wrap"><pre·class="rust·rust-example-rendered"><code><span·class="kw">use·</span>std::collections::VecDeque;
  
95 <span·class="kw">let·</span><span·class="kw-2">mut·</span>buf:·VecDeque&lt;i32&gt;·=·[<span·class="number">1</span>].into();95 <span·class="kw">let·</span><span·class="kw-2">mut·</span>buf:·VecDeque&lt;i32&gt;·=·[<span·class="number">1</span>].into();
96 buf.reserve_exact(<span·class="number">10</span>);96 buf.reserve_exact(<span·class="number">10</span>);
97 <span·class="macro">assert!</span>(buf.capacity()·&gt;=·<span·class="number">11</span>);</code></pre><a·class="test-arrow"·target="_blank"·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">Run</a></div>97 <span·class="macro">assert!</span>(buf.capacity()·&gt;=·<span·class="number">11</span>);</code></pre><a·class="test-arrow"·target="_blank"·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">Run</a></div>
98 </div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.reserve"·class="method"><a·class="src·rightside"·href="../../../src/alloc/collections/vec_deque/mod.rs.html#807-819">source</a><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·given98 </div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.reserve"·class="method"><a·class="src·rightside"·href="../../../src/alloc/collections/vec_deque/mod.rs.html#807-819">source</a><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.78.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
99 deque.·The·collection·may·reserve·more·space·to·speculatively·avoid·frequent·reallocations.</p>99 deque.·The·collection·may·reserve·more·space·to·speculatively·avoid·frequent·reallocations.</p>
100 <h5·id="panics-2"><a·class="doc-anchor"·href="#panics-2">§</a>Panics</h5>100 <h5·id="panics-2"><a·class="doc-anchor"·href="#panics-2">§</a>Panics</h5>
101 <p>Panics·if·the·new·capacity·overflows·<code>usize</code>.</p>101 <p>Panics·if·the·new·capacity·overflows·<code>usize</code>.</p>
102 <h5·id="examples-10"><a·class="doc-anchor"·href="#examples-10">§</a>Examples</h5>102 <h5·id="examples-10"><a·class="doc-anchor"·href="#examples-10">§</a>Examples</h5>
103 <div·class="example-wrap"><pre·class="rust·rust-example-rendered"><code><span·class="kw">use·</span>std::collections::VecDeque;103 <div·class="example-wrap"><pre·class="rust·rust-example-rendered"><code><span·class="kw">use·</span>std::collections::VecDeque;
  
104 <span·class="kw">let·</span><span·class="kw-2">mut·</span>buf:·VecDeque&lt;i32&gt;·=·[<span·class="number">1</span>].into();104 <span·class="kw">let·</span><span·class="kw-2">mut·</span>buf:·VecDeque&lt;i32&gt;·=·[<span·class="number">1</span>].into();
105 buf.reserve(<span·class="number">10</span>);105 buf.reserve(<span·class="number">10</span>);
106 <span·class="macro">assert!</span>(buf.capacity()·&gt;=·<span·class="number">11</span>);</code></pre><a·class="test-arrow"·target="_blank"·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">Run</a></div>106 <span·class="macro">assert!</span>(buf.capacity()·&gt;=·<span·class="number">11</span>);</code></pre><a·class="test-arrow"·target="_blank"·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">Run</a></div>
107 </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#859-871">source</a></span><h4·class="code-header">pub·fn·<a·href="#method.try_reserve_exact"·class="fn">try_reserve_exact</a>(107 </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#859-871">source</a></span><h4·class="code-header">pub·fn·<a·href="#method.try_reserve_exact"·class="fn">try_reserve_exact</a>(
108 ····&amp;mut·self,108 ····&amp;mut·self,
109 ····additional:·<a·class="primitive"·href="../../../core/primitive.usize.html">usize</a>109 ····additional:·<a·class="primitive"·href="https://doc.rust-lang.org/1.78.0/core/primitive.usize.html">usize</a>
110 )·-&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·to110 )·-&gt;·<a·class="enum"·href="https://doc.rust-lang.org/1.78.0/core/result/enum.Result.html"·title="enum·core::result::Result">Result</a>&lt;<a·class="primitive"·href="https://doc.rust-lang.org/1.78.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
111 be·inserted·in·the·given·deque.·After·calling·<code>try_reserve_exact</code>,111 be·inserted·in·the·given·deque.·After·calling·<code>try_reserve_exact</code>,
112 capacity·will·be·greater·than·or·equal·to·<code>self.len()·+·additional</code>·if112 capacity·will·be·greater·than·or·equal·to·<code>self.len()·+·additional</code>·if
113 it·returns·<code>Ok(())</code>.·Does·nothing·if·the·capacity·is·already·sufficient.</p>113 it·returns·<code>Ok(())</code>.·Does·nothing·if·the·capacity·is·already·sufficient.</p>
114 <p>Note·that·the·allocator·may·give·the·collection·more·space·than·it114 <p>Note·that·the·allocator·may·give·the·collection·more·space·than·it
115 requests.·Therefore,·capacity·can·not·be·relied·upon·to·be·precisely115 requests.·Therefore,·capacity·can·not·be·relied·upon·to·be·precisely
116 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 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>
117 <h5·id="errors-1"><a·class="doc-anchor"·href="#errors-1">§</a>Errors</h5>117 <h5·id="errors-1"><a·class="doc-anchor"·href="#errors-1">§</a>Errors</h5>
Offset 141, 15 lines modifiedOffset 141, 15 lines modified
141 ····<span·class="comment">//·Now·we·know·this·can't·OOM(Out-Of-Memory)·in·the·middle·of·our·complex·work141 ····<span·class="comment">//·Now·we·know·this·can't·OOM(Out-Of-Memory)·in·the·middle·of·our·complex·work
142 ····</span>output.extend(data.iter().map(|<span·class="kw-2">&amp;</span>val|·{142 ····</span>output.extend(data.iter().map(|<span·class="kw-2">&amp;</span>val|·{
143 ········val·*·<span·class="number">2·</span>+·<span·class="number">5·</span><span·class="comment">//·very·complicated143 ········val·*·<span·class="number">2·</span>+·<span·class="number">5·</span><span·class="comment">//·very·complicated
144 ····</span>}));144 ····</span>}));
  
145 ····<span·class="prelude-val">Ok</span>(output)145 ····<span·class="prelude-val">Ok</span>(output)
146 }</code></pre><a·class="test-arrow"·target="_blank"·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">Run</a></div>146 }</code></pre><a·class="test-arrow"·target="_blank"·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">Run</a></div>
147 </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#907-919">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·inserted147 </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#907-919">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.78.0/core/primitive.usize.html">usize</a>)·-&gt;·<a·class="enum"·href="https://doc.rust-lang.org/1.78.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:·a3944fe259f3b484f5d3705ce26f7af06ba821285552c373bd29bbce95a51354·...·]/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
148 in·the·given·deque.·The·collection·may·reserve·more·space·to·speculatively·avoid148 in·the·given·deque.·The·collection·may·reserve·more·space·to·speculatively·avoid
149 frequent·reallocations.·After·calling·<code>try_reserve</code>,·capacity·will·be149 frequent·reallocations.·After·calling·<code>try_reserve</code>,·capacity·will·be
150 greater·than·or·equal·to·<code>self.len()·+·additional</code>·if·it·returns150 greater·than·or·equal·to·<code>self.len()·+·additional</code>·if·it·returns
151 <code>Ok(())</code>.·Does·nothing·if·capacity·is·already·sufficient.·This·method151 <code>Ok(())</code>.·Does·nothing·if·capacity·is·already·sufficient.·This·method
Max diff block lines reached; 290177/321972 bytes (90.12%) of diff not shown.
208 KB
./usr/share/doc/rust-web-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.write(`<link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../../static.files/SourceSerif4-Regular-46f98efaafac5295.ttf.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../../static.files/FiraSans-Regular-018c141bf0843ffd.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../../static.files/FiraSans-Medium-8f9a781e4970d388.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../../static.files/SourceCodePro-Regular-562dcc5011b6de7d.ttf.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../../static.files/SourceCodePro-Semibold-d899c5a5c4aeb14a.ttf.woff2">`)</script><link·rel="stylesheet"·href="../../../static.files/normalize-76eba96aa4d2e634.css"><link·rel="stylesheet"·href="../../../static.files/rustdoc-35f9e32502181f1e.css"><meta·name="rustdoc-vars"·data-root-path="../../../"·data-static-root-path="../../../static.files/"·data-current-crate="alloc"·data-themes=""·data-resource-suffix="1.78.0"·data-rustdoc-version="1.78.0"·data-channel="1.78.0"·data-search-js="search-42d8da7a6b9792c2.js"·data-settings-js="settings-4313503d2e1961c2.js"·><script·src="../../../static.files/storage-4c98445ec4002617.js"></script><script·defer·src="sidebar-items1.78.0.js"></script><script·defer·src="../../../static.files/main-12cf3b4f4f9dc36d.js"></script><noscript><link·rel="stylesheet"·href="../../../static.files/noscript-04d5337699b92874.css"></noscript><link·rel="alternate·icon"·type="image/png"·href="../../../static.files/favicon-16x16-8b506e7a72182f1c.png"><link·rel="alternate·icon"·type="image/png"·href="../../../static.files/favicon-32x32-422f7d1d52889060.png"><link·rel="icon"·type="image/svg+xml"·href="../../../static.files/favicon-2c020d218678b618.svg"></head><body·class="rustdoc·struct"><!--[if·lte·IE·11]><div·class="warning">This·old·browser·is·unsupported·and·will·most·likely·display·funky·things.</div><![endif]--><nav·class="mobile-topbar"><button·class="sidebar-menu-toggle"·title="show·sidebar"></button><a·class="logo-container"·href="../../../alloc/index.html"><img·class="rust-logo"·src="../../../static.files/rust-logo-151179464ae7ed46.svg"·alt=""></a></nav><nav·class="sidebar"><div·class="sidebar-crate"><a·class="logo-container"·href="../../../alloc/index.html"><img·class="rust-logo"·src="../../../static.files/rust-logo-151179464ae7ed46.svg"·alt="logo"></a><h2><a·href="../../../alloc/index.html">alloc</a><span·class="version">1.78.0</span></h2></div><h2·class="location"><a·href="#">CString</a></h2><div·class="sidebar-elems"><section><h3><a·href="#implementations">Methods</a></h3><ul·class="block·method"><li><a·href="#method.as_bytes">as_bytes</a></li><li><a·href="#method.as_bytes_with_nul">as_bytes_with_nul</a></li><li><a·href="#method.as_c_str">as_c_str</a></li><li><a·href="#method.from_raw">from_raw</a></li><li><a·href="#method.from_vec_unchecked">from_vec_unchecked</a></li><li><a·href="#method.from_vec_with_nul">from_vec_with_nul</a></li><li><a·href="#method.from_vec_with_nul_unchecked">from_vec_with_nul_unchecked</a></li><li><a·href="#method.into_boxed_c_str">into_boxed_c_str</a></li><li><a·href="#method.into_bytes">into_bytes</a></li><li><a·href="#method.into_bytes_with_nul">into_bytes_with_nul</a></li><li><a·href="#method.into_raw">into_raw</a></li><li><a·href="#method.into_string">into_string</a></li><li><a·href="#method.new">new</a></li></ul><h3><a·href="#deref-methods-CStr">Methods·from·Deref&lt;Target=CStr&gt;</a></h3><ul·class="block·deref-methods"><li><a·href="#method.as_ptr">as_ptr</a></li><li><a·href="#method.bytes">bytes</a></li><li><a·href="#method.count_bytes">count_bytes</a></li><li><a·href="#method.is_empty">is_empty</a></li><li><a·href="#method.to_bytes">to_bytes</a></li><li><a·href="#method.to_bytes_with_nul">to_bytes_with_nul</a></li><li><a·href="#method.to_str">to_str</a></li><li><a·href="#method.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">AsRef&lt;CStr&gt;</a></li><li><a·href="#impl-Borrow%3CCStr%3E-for-CString">Borrow&lt;CStr&gt;</a></li><li><a·href="#impl-Clone-for-CString">Clone</a></li><li><a·href="#impl-Debug-for-CString">Debug</a></li><li><a·href="#impl-Default-for-CString">Default</a></li><li><a·href="#impl-Deref-for-CString">Deref</a></li><li><a·href="#impl-Drop-for-CString">Drop</a></li><li><a·href="#impl-Eq-for-CString">Eq</a></li><li><a·href="#impl-From%3C%26CString%3E-for-Cow%3C'a,+CStr%3E">From&lt;&amp;&#x27;a·CString&gt;</a></li><li><a·href="#impl-From%3C%26CStr%3E-for-CString">From&lt;&amp;CStr&gt;</a></li><li><a·href="#impl-From%3CBox%3CCStr%3E%3E-for-CString">From&lt;Box&lt;CStr&gt;&gt;</a></li><li><a·href="#impl-From%3CCString%3E-for-Arc%3CCStr%3E">From&lt;CString&gt;</a></li><li><a·href="#impl-From%3CCString%3E-for-Box%3CCStr%3E">From&lt;CString&gt;</a></li><li><a·href="#impl-From%3CCString%3E-for-Cow%3C'a,+CStr%3E">From&lt;CString&gt;</a></li><li><a·href="#impl-From%3CCString%3E-for-Rc%3CCStr%3E">From&lt;CString&gt;</a></li><li><a·href="#impl-From%3CCString%3E-for-Vec%3Cu8%3E">From&lt;CString&gt;</a></li><li><a·href="#impl-From%3CCow%3C'a,+CStr%3E%3E-for-CString">From&lt;Cow&lt;&#x27;a,·CStr&gt;&gt;</a></li><li><a·href="#impl-From%3CVec%3CNonZero%3Cu8%3E%3E%3E-for-CString">From&lt;Vec&lt;NonZero&lt;u8&gt;&gt;&gt;</a></li><li><a·href="#impl-Hash-for-CString">Hash</a></li><li><a·href="#impl-Index%3CRangeFull%3E-for-CString">Index&lt;RangeFull&gt;</a></li><li><a·href="#impl-Ord-for-CString">Ord</a></li><li><a·href="#impl-PartialEq-for-CString">PartialEq</a></li><li><a·href="#impl-PartialOrd-for-CString">PartialOrd</a></li><li><a·href="#impl-StructuralPartialEq-for-CString">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">Freeze</a></li><li><a·href="#impl-RefUnwindSafe-for-CString">RefUnwindSafe</a></li><li><a·href="#impl-Send-for-CString">Send</a></li><li><a·href="#impl-Sync-for-CString">Sync</a></li><li><a·href="#impl-Unpin-for-CString">Unpin</a></li><li><a·href="#impl-UnwindSafe-for-CString">UnwindSafe</a></li></ul><h3><a·href="#blanket-implementations">Blanket·Implementations</a></h3><ul·class="block·blanket-implementation"><li><a·href="#impl-Any-for-T">Any</a></li><li><a·href="#impl-Borrow%3CT%3E-for-T">Borrow&lt;T&gt;</a></li><li><a·href="#impl-BorrowMut%3CT%3E-for-T">BorrowMut&lt;T&gt;</a></li><li><a·href="#impl-From%3CT%3E-for-T">From&lt;T&gt;</a></li><li><a·href="#impl-Into%3CU%3E-for-T">Into&lt;U&gt;</a></li><li><a·href="#impl-ToOwned-for-T">ToOwned</a></li><li><a·href="#impl-TryFrom%3CU%3E-for-T">TryFrom&lt;U&gt;</a></li><li><a·href="#impl-TryInto%3CU%3E-for-T">TryInto&lt;U&gt;</a></li></ul></section><h2><a·href="index.html">In·alloc::ffi::c_str</a></h2></div></nav><div·class="sidebar-resizer"></div>1 <!DOCTYPE·html><html·lang="en"><head><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.write(`<link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../../static.files/SourceSerif4-Regular-46f98efaafac5295.ttf.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../../static.files/FiraSans-Regular-018c141bf0843ffd.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../../static.files/FiraSans-Medium-8f9a781e4970d388.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../../static.files/SourceCodePro-Regular-562dcc5011b6de7d.ttf.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../../static.files/SourceCodePro-Semibold-d899c5a5c4aeb14a.ttf.woff2">`)</script><link·rel="stylesheet"·href="../../../static.files/normalize-76eba96aa4d2e634.css"><link·rel="stylesheet"·href="../../../static.files/rustdoc-35f9e32502181f1e.css"><meta·name="rustdoc-vars"·data-root-path="../../../"·data-static-root-path="../../../static.files/"·data-current-crate="alloc"·data-themes=""·data-resource-suffix="1.78.0"·data-rustdoc-version="1.78.0"·data-channel="1.78.0"·data-search-js="search-42d8da7a6b9792c2.js"·data-settings-js="settings-4313503d2e1961c2.js"·><script·src="../../../static.files/storage-4c98445ec4002617.js"></script><script·defer·src="sidebar-items1.78.0.js"></script><script·defer·src="../../../static.files/main-12cf3b4f4f9dc36d.js"></script><noscript><link·rel="stylesheet"·href="../../../static.files/noscript-04d5337699b92874.css"></noscript><link·rel="alternate·icon"·type="image/png"·href="../../../static.files/favicon-16x16-8b506e7a72182f1c.png"><link·rel="alternate·icon"·type="image/png"·href="../../../static.files/favicon-32x32-422f7d1d52889060.png"><link·rel="icon"·type="image/svg+xml"·href="../../../static.files/favicon-2c020d218678b618.svg"></head><body·class="rustdoc·struct"><!--[if·lte·IE·11]><div·class="warning">This·old·browser·is·unsupported·and·will·most·likely·display·funky·things.</div><![endif]--><nav·class="mobile-topbar"><button·class="sidebar-menu-toggle"·title="show·sidebar"></button><a·class="logo-container"·href="../../../alloc/index.html"><img·class="rust-logo"·src="../../../static.files/rust-logo-151179464ae7ed46.svg"·alt=""></a></nav><nav·class="sidebar"><div·class="sidebar-crate"><a·class="logo-container"·href="../../../alloc/index.html"><img·class="rust-logo"·src="../../../static.files/rust-logo-151179464ae7ed46.svg"·alt="logo"></a><h2><a·href="../../../alloc/index.html">alloc</a><span·class="version">1.78.0</span></h2></div><h2·class="location"><a·href="#">CString</a></h2><div·class="sidebar-elems"><section><h3><a·href="#implementations">Methods</a></h3><ul·class="block·method"><li><a·href="#method.as_bytes">as_bytes</a></li><li><a·href="#method.as_bytes_with_nul">as_bytes_with_nul</a></li><li><a·href="#method.as_c_str">as_c_str</a></li><li><a·href="#method.from_raw">from_raw</a></li><li><a·href="#method.from_vec_unchecked">from_vec_unchecked</a></li><li><a·href="#method.from_vec_with_nul">from_vec_with_nul</a></li><li><a·href="#method.from_vec_with_nul_unchecked">from_vec_with_nul_unchecked</a></li><li><a·href="#method.into_boxed_c_str">into_boxed_c_str</a></li><li><a·href="#method.into_bytes">into_bytes</a></li><li><a·href="#method.into_bytes_with_nul">into_bytes_with_nul</a></li><li><a·href="#method.into_raw">into_raw</a></li><li><a·href="#method.into_string">into_string</a></li><li><a·href="#method.new">new</a></li></ul><h3><a·href="#deref-methods-CStr">Methods·from·Deref&lt;Target=CStr&gt;</a></h3><ul·class="block·deref-methods"><li><a·href="#method.as_ptr">as_ptr</a></li><li><a·href="#method.bytes">bytes</a></li><li><a·href="#method.count_bytes">count_bytes</a></li><li><a·href="#method.is_empty">is_empty</a></li><li><a·href="#method.to_bytes">to_bytes</a></li><li><a·href="#method.to_bytes_with_nul">to_bytes_with_nul</a></li><li><a·href="#method.to_str">to_str</a></li><li><a·href="#method.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">AsRef&lt;CStr&gt;</a></li><li><a·href="#impl-Borrow%3CCStr%3E-for-CString">Borrow&lt;CStr&gt;</a></li><li><a·href="#impl-Clone-for-CString">Clone</a></li><li><a·href="#impl-Debug-for-CString">Debug</a></li><li><a·href="#impl-Default-for-CString">Default</a></li><li><a·href="#impl-Deref-for-CString">Deref</a></li><li><a·href="#impl-Drop-for-CString">Drop</a></li><li><a·href="#impl-Eq-for-CString">Eq</a></li><li><a·href="#impl-From%3C%26CString%3E-for-Cow%3C'a,+CStr%3E">From&lt;&amp;&#x27;a·CString&gt;</a></li><li><a·href="#impl-From%3C%26CStr%3E-for-CString">From&lt;&amp;CStr&gt;</a></li><li><a·href="#impl-From%3CBox%3CCStr%3E%3E-for-CString">From&lt;Box&lt;CStr&gt;&gt;</a></li><li><a·href="#impl-From%3CCString%3E-for-Arc%3CCStr%3E">From&lt;CString&gt;</a></li><li><a·href="#impl-From%3CCString%3E-for-Box%3CCStr%3E">From&lt;CString&gt;</a></li><li><a·href="#impl-From%3CCString%3E-for-Cow%3C'a,+CStr%3E">From&lt;CString&gt;</a></li><li><a·href="#impl-From%3CCString%3E-for-Rc%3CCStr%3E">From&lt;CString&gt;</a></li><li><a·href="#impl-From%3CCString%3E-for-Vec%3Cu8%3E">From&lt;CString&gt;</a></li><li><a·href="#impl-From%3CCow%3C'a,+CStr%3E%3E-for-CString">From&lt;Cow&lt;&#x27;a,·CStr&gt;&gt;</a></li><li><a·href="#impl-From%3CVec%3CNonZero%3Cu8%3E%3E%3E-for-CString">From&lt;Vec&lt;NonZero&lt;u8&gt;&gt;&gt;</a></li><li><a·href="#impl-Hash-for-CString">Hash</a></li><li><a·href="#impl-Index%3CRangeFull%3E-for-CString">Index&lt;RangeFull&gt;</a></li><li><a·href="#impl-Ord-for-CString">Ord</a></li><li><a·href="#impl-PartialEq-for-CString">PartialEq</a></li><li><a·href="#impl-PartialOrd-for-CString">PartialOrd</a></li><li><a·href="#impl-StructuralPartialEq-for-CString">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">Freeze</a></li><li><a·href="#impl-RefUnwindSafe-for-CString">RefUnwindSafe</a></li><li><a·href="#impl-Send-for-CString">Send</a></li><li><a·href="#impl-Sync-for-CString">Sync</a></li><li><a·href="#impl-Unpin-for-CString">Unpin</a></li><li><a·href="#impl-UnwindSafe-for-CString">UnwindSafe</a></li></ul><h3><a·href="#blanket-implementations">Blanket·Implementations</a></h3><ul·class="block·blanket-implementation"><li><a·href="#impl-Any-for-T">Any</a></li><li><a·href="#impl-Borrow%3CT%3E-for-T">Borrow&lt;T&gt;</a></li><li><a·href="#impl-BorrowMut%3CT%3E-for-T">BorrowMut&lt;T&gt;</a></li><li><a·href="#impl-From%3CT%3E-for-T">From&lt;T&gt;</a></li><li><a·href="#impl-Into%3CU%3E-for-T">Into&lt;U&gt;</a></li><li><a·href="#impl-ToOwned-for-T">ToOwned</a></li><li><a·href="#impl-TryFrom%3CU%3E-for-T">TryFrom&lt;U&gt;</a></li><li><a·href="#impl-TryInto%3CU%3E-for-T">TryInto&lt;U&gt;</a></li></ul></section><h2><a·href="index.html">In·alloc::ffi::c_str</a></h2></div></nav><div·class="sidebar-resizer"></div>
2 ····<main><div·class="width-limiter"><nav·class="sub"><form·class="search-form"><span></span><div·id="sidebar-button"·tabindex="-1"><a·href="../../../alloc/all.html"·title="show·sidebar"></a></div><input·class="search-input"·name="search"·aria-label="Run·search·in·the·documentation"·autocomplete="off"·spellcheck="false"·placeholder="Click·or·press·‘S’·to·search,·‘?’·for·more·options…"·type="search"><div·id="help-button"·tabindex="-1"><a·href="../../../help.html"·title="help">?</a></div><div·id="settings-menu"·tabindex="-1"><a·href="../../../settings.html"·title="settings"><img·width="22"·height="22"·alt="Change·settings"·src="../../../static.files/wheel-7b819b6101059cd0.svg"></a></div></form></nav><section·id="main-content"·class="content"><div·class="main-heading"><h1>Struct·<a·href="../../index.html">alloc</a>::<wbr><a·href="../index.html">ffi</a>::<wbr><a·href="index.html">c_str</a>::<wbr><a·class="struct"·href="#">CString</a><button·id="copy-path"·title="Copy·item·path·to·clipboard"><img·src="../../../static.files/clipboard-7571035ce49a181d.svg"·width="19"·height="18"·alt="Copy·item·path"></button></h1><span·class="out-of-band"><span·class="since"·title="Stable·since·Rust·version·1.64.0">1.64.0</span>···<a·class="src"·href="../../../src/alloc/ffi/c_str.rs.html#114-119">source</a>···<button·id="toggle-all-docs"·title="collapse·all·docs">[<span>&#x2212;</span>]</button></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·the2 ····<main><div·class="width-limiter"><nav·class="sub"><form·class="search-form"><span></span><div·id="sidebar-button"·tabindex="-1"><a·href="../../../alloc/all.html"·title="show·sidebar"></a></div><input·class="search-input"·name="search"·aria-label="Run·search·in·the·documentation"·autocomplete="off"·spellcheck="false"·placeholder="Click·or·press·‘S’·to·search,·‘?’·for·more·options…"·type="search"><div·id="help-button"·tabindex="-1"><a·href="../../../help.html"·title="help">?</a></div><div·id="settings-menu"·tabindex="-1"><a·href="../../../settings.html"·title="settings"><img·width="22"·height="22"·alt="Change·settings"·src="../../../static.files/wheel-7b819b6101059cd0.svg"></a></div></form></nav><section·id="main-content"·class="content"><div·class="main-heading"><h1>Struct·<a·href="../../index.html">alloc</a>::<wbr><a·href="../index.html">ffi</a>::<wbr><a·href="index.html">c_str</a>::<wbr><a·class="struct"·href="#">CString</a><button·id="copy-path"·title="Copy·item·path·to·clipboard"><img·src="../../../static.files/clipboard-7571035ce49a181d.svg"·width="19"·height="18"·alt="Copy·item·path"></button></h1><span·class="out-of-band"><span·class="since"·title="Stable·since·Rust·version·1.64.0">1.64.0</span>···<a·class="src"·href="../../../src/alloc/ffi/c_str.rs.html#114-119">source</a>···<button·id="toggle-all-docs"·title="collapse·all·docs">[<span>&#x2212;</span>]</button></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
3 middle.</p>3 middle.</p>
4 <p>This·type·serves·the·purpose·of·being·able·to·safely·generate·a4 <p>This·type·serves·the·purpose·of·being·able·to·safely·generate·a
5 C-compatible·string·from·a·Rust·byte·slice·or·vector.·An·instance·of·this5 C-compatible·string·from·a·Rust·byte·slice·or·vector.·An·instance·of·this
6 type·is·a·static·guarantee·that·the·underlying·bytes·contain·no·interior·06 type·is·a·static·guarantee·that·the·underlying·bytes·contain·no·interior·0
7 bytes·(“nul·characters”)·and·that·the·final·byte·is·0·(“nul·terminator”).</p>7 bytes·(“nul·characters”)·and·that·the·final·byte·is·0·(“nul·terminator”).</p>
8 <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·former8 <p><code>CString</code>·is·to·<code>&amp;<a·href="https://doc.rust-lang.org/1.78.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:·65cb3db4b3ce3ffec1c2855be5d2ca8dd3cba6130294e4303e1b1d7bc119693f·...·]/core/primitive.str.html"·title="str">str</a></code>:·the·former
9 in·each·pair·are·owned·strings;·the·latter·are·borrowed9 in·each·pair·are·owned·strings;·the·latter·are·borrowed
10 references.</p>10 references.</p>
11 <h2·id="creating-a-cstring"><a·class="doc-anchor"·href="#creating-a-cstring">§</a>Creating·a·<code>CString</code></h2>11 <h2·id="creating-a-cstring"><a·class="doc-anchor"·href="#creating-a-cstring">§</a>Creating·a·<code>CString</code></h2>
12 <p>A·<code>CString</code>·is·created·from·either·a·byte·slice·or·a·byte·vector,12 <p>A·<code>CString</code>·is·created·from·either·a·byte·slice·or·a·byte·vector,
13 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>·(for13 or·anything·that·implements·<code><a·href="https://doc.rust-lang.org/1.78.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.78.0/core/primitive.u8.html"·title="primitive·u8">u8</a>&gt;&gt;</code>·(for
14 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>·or14 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
15 a·<code>&amp;<a·href="../../../core/primitive.str.html"·title="str">str</a></code>,·since·both·implement·that·trait).</p>15 a·<code>&amp;<a·href="https://doc.rust-lang.org/1.78.0/core/primitive.str.html"·title="str">str</a></code>,·since·both·implement·that·trait).</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.78.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.78.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.78.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.78.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.78.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.78.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.78.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.78.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#234-695">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#263-319">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#234-695">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#263-319">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.78.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:·018eb726eea9d550a1d4a51c09e58415ad0d62de914301a4a3f602b0937d83a7·...·]/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"·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">Run</a></div>79 }</code></pre><a·class="test-arrow"·target="_blank"·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">Run</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#342-345">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#342-345">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.78.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"·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">Run</a></div>95 }</code></pre><a·class="test-arrow"·target="_blank"·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">Run</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#399-414">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#399-414">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.78.0/core/primitive.pointer.html">*mut·</a><a·class="type"·href="https://doc.rust-lang.org/1.78.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.78.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"·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">Run</a></div>132 }</code></pre><a·class="test-arrow"·target="_blank"·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">Run</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#452-454">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#452-454">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.78.0/core/primitive.pointer.html">*mut·</a><a·class="type"·href="https://doc.rust-lang.org/1.78.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; 180649/212511 bytes (85.01%) of diff not shown.
66.3 KB
./usr/share/doc/rust-web-doc/html/alloc/ffi/c_str/struct.FromVecWithNulError.html
    
Offset 4, 49 lines modifiedOffset 4, 49 lines modified
4 positioned·at·the·end.</p>4 positioned·at·the·end.</p>
5 <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 <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.
6 See·its·documentation·for·more.</p>6 See·its·documentation·for·more.</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 <div·class="example-wrap"><pre·class="rust·rust-example-rendered"><code><span·class="kw">use·</span>std::ffi::{CString,·FromVecWithNulError};8 <div·class="example-wrap"><pre·class="rust·rust-example-rendered"><code><span·class="kw">use·</span>std::ffi::{CString,·FromVecWithNulError};
  
9 <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"·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">Run</a></div>9 <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"·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">Run</a></div>
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-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#169-217">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#188-190">source</a></span><h4·class="code-header">pub·fn·<a·href="#method.as_bytes"·class="fn">as_bytes</a>(&amp;self)·-&gt;·&amp;[<a·class="primitive"·href="../../../core/primitive.u8.html">u8</a>]</h4></section></summary><div·class="docblock"><p>Returns·a·slice·of·<a·href="../../../core/primitive.u8.html"·title="primitive·u8"><code>u8</code></a>s·bytes·that·were·attempted·to·convert·to·a·<a·href="../struct.CString.html"·title="struct·alloc::ffi::CString"><code>CString</code></a>.</p>10 </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#169-217">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#188-190">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.78.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.78.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>
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 <p>Basic·usage:</p>12 <p>Basic·usage:</p>
  
13 <div·class="example-wrap"><pre·class="rust·rust-example-rendered"><code><span·class="kw">use·</span>std::ffi::CString;13 <div·class="example-wrap"><pre·class="rust·rust-example-rendered"><code><span·class="kw">use·</span>std::ffi::CString;
  
14 <span·class="comment">//·Some·invalid·bytes·in·a·vector14 <span·class="comment">//·Some·invalid·bytes·in·a·vector
15 </span><span·class="kw">let·</span>bytes·=·<span·class="string">b"f\0oo"</span>.to_vec();15 </span><span·class="kw">let·</span>bytes·=·<span·class="string">b"f\0oo"</span>.to_vec();
  
16 <span·class="kw">let·</span>value·=·CString::from_vec_with_nul(bytes.clone());16 <span·class="kw">let·</span>value·=·CString::from_vec_with_nul(bytes.clone());
  
17 <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"·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">Run</a></div>17 <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"·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">Run</a></div>
18 </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#214-216">source</a></span><h4·class="code-header">pub·fn·<a·href="#method.into_bytes"·class="fn">into_bytes</a>(self)·-&gt;·<a·class="struct"·href="../../vec/struct.Vec.html"·title="struct·alloc::vec::Vec">Vec</a>&lt;<a·class="primitive"·href="../../../core/primitive.u8.html">u8</a>&gt;</h4></section></summary><div·class="docblock"><p>Returns·the·bytes·that·were·attempted·to·convert·to·a·<a·href="../struct.CString.html"·title="struct·alloc::ffi::CString"><code>CString</code></a>.</p>18 </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#214-216">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.78.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>
19 <p>This·method·is·carefully·constructed·to·avoid·allocation.·It·will19 <p>This·method·is·carefully·constructed·to·avoid·allocation.·It·will
20 consume·the·error,·moving·out·the·bytes,·so·that·a·copy·of·the·bytes20 consume·the·error,·moving·out·the·bytes,·so·that·a·copy·of·the·bytes
21 does·not·need·to·be·made.</p>21 does·not·need·to·be·made.</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 <p>Basic·usage:</p>23 <p>Basic·usage:</p>
  
24 <div·class="example-wrap"><pre·class="rust·rust-example-rendered"><code><span·class="kw">use·</span>std::ffi::CString;24 <div·class="example-wrap"><pre·class="rust·rust-example-rendered"><code><span·class="kw">use·</span>std::ffi::CString;
  
25 <span·class="comment">//·Some·invalid·bytes·in·a·vector25 <span·class="comment">//·Some·invalid·bytes·in·a·vector
26 </span><span·class="kw">let·</span>bytes·=·<span·class="string">b"f\0oo"</span>.to_vec();26 </span><span·class="kw">let·</span>bytes·=·<span·class="string">b"f\0oo"</span>.to_vec();
  
27 <span·class="kw">let·</span>value·=·CString::from_vec_with_nul(bytes.clone());27 <span·class="kw">let·</span>value·=·CString::from_vec_with_nul(bytes.clone());
  
28 <span·class="macro">assert_eq!</span>(bytes,·value.unwrap_err().into_bytes());</code></pre><a·class="test-arrow"·target="_blank"·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">Run</a></div>28 <span·class="macro">assert_eq!</span>(bytes,·value.unwrap_err().into_bytes());</code></pre><a·class="test-arrow"·target="_blank"·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">Run</a></div>
29 </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"><a·class="src·rightside"·href="../../../src/alloc/ffi/c_str.rs.html#161">source</a><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:·9655,·SHA:·b652ebab530c246288a399936ef0b1cff17a61cfa729c1ba5775fd4e115271fd·...·]/core/primitive.bool.html">bool</a></h4></section></summary><div·class='docblock'>This·method·tests·for·<code>self</code>·and·<code>other</code>·values·to·be·equal,·and·is·used29 </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"><a·class="src·rightside"·href="../../../src/alloc/ffi/c_str.rs.html#161">source</a><a·href="#impl-Clone-for-FromVecWithNulError"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="https://doc.rust-lang.org/1.78.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:·10327,·SHA:·19d174cf2eefca8e1cc925c62eb7b7793cfea402413960e3357b788c84bca9c3·...·]/core/primitive.bool.html">bool</a></h4></section></summary><div·class='docblock'>This·method·tests·for·<code>self</code>·and·<code>other</code>·values·to·be·equal,·and·is·used
30 by·<code>==</code>.</div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.ne"·class="method·trait-impl"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.0.0">1.0.0</span>···<a·class="src"·href="../../../src/core/cmp.rs.html#263">source</a></span><a·href="#method.ne"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../../../core/cmp/trait.PartialEq.html#method.ne"·class="fn">ne</a>(&amp;self,·other:·<a·class="primitive"·href="../../../core/[·...·truncated·by·diffoscope;·len:·81,·SHA:·2ba6e57f82d380e3f3fee865de22084b088301df9b3f69d725dd871f7e356b09·...·]/core/primitive.bool.html">bool</a></h4></section></summary><div·class='docblock'>This·method·tests·for·<code>!=</code>.·The·default·implementation·is·almost·always30 by·<code>==</code>.</div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.ne"·class="method·trait-impl"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.0.0">1.0.0</span>···<a·class="src"·href="https://doc.rust-lang.org/1.78.0/src/core/cmp.rs.html#263">source</a></span><a·href="#method.ne"·class="anchor">§</a><h4·class="code-header">fn·<a·href="https://doc.rust-lang.org/1.78.0/core/cmp/trait.PartialEq.html#method.ne"·class="fn">ne</a>(&amp;self,·[·...·truncated·by·diffoscope;·len:·177,·SHA:·e1e3f9b9b78644c807cda06ba58cbf80a7a50ed17e7136cd156da5dd11dec66f·...·]/core/primitive.bool.html">bool</a></h4></section></summary><div·class='docblock'>This·method·tests·for·<code>!=</code>.·The·default·implementation·is·almost·always
31 sufficient,·and·should·not·be·overridden·without·very·good·reason.</div></details></div></details><section·id="impl-Eq-for-FromVecWithNulError"·class="impl"><a·class="src·rightside"·href="../../../src/alloc/ffi/c_str.rs.html#161">source</a><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:·3799,·SHA:·0ad62aaecedc0140d6859d7fafa785ef12fdcf5cbfbd3007526ec117f106ddde·...·]/core/any/trait.Any.html"·title="trait·core::any::Any">Any</a>·for·T<div·class="where">where31 sufficient,·and·should·not·be·overridden·without·very·good·reason.</div></details></div></details><section·id="impl-Eq-for-FromVecWithNulError"·class="impl"><a·class="src·rightside"·href="../../../src/alloc/ffi/c_str.rs.html#161">source</a><a·href="#impl-Eq-for-FromVecWithNulError"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="https://doc.rust-lang.org/1.78.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:·4039,·SHA:·12767806f3a265ea3c2691406abade10608e8bf08848a8c5eed3ba037c936fde·...·]/core/any/trait.Any.html"·title="trait·core::any::Any">Any</a>·for·T<div·class="where">where
32 ····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:·60266624df43cdf1ecb412e35aaf311341d62543468bcbd4041716fbafffc07b·...·]/src/core/borrow.rs.html#208">source</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">where32 ····T:·'static·+·?<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">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:·039b8952ccb1ab7d8f15cd519cbc10f4afc149276d0f9cfd3a53117d606059df·...·]/src/core/borrow.rs.html#208">source</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
33 ····T:·?<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.borrow"·class="method·trait-impl"><a·class="sr[·...·truncated·by·diffoscope;·len:·647,·SHA:·8124d60df08ac71436917cb874e0ec9c0ffe7e4515e2ea246a1f1009f83ac6a1·...·]/src/core/borrow.rs.html#216">source</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">where33 ····T:·?<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/marker/trait.Sized.html"·title="trait·core::marker::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:·b03884aeae1813f459b6ebe4b7e3f3c22d5d37e0ad023677fd3869bc5a735be2·...·]/src/core/borrow.rs.html#216">source</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
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_mut"·class="method·trait-impl"><a·class[·...·truncated·by·diffoscope;·len:·1254,·SHA:·88cecdca8f65ac7671462e07b83fc0153c4024bd8b3f1bfba320be439fbe3a4f·...·]/core/convert/trait.From.html#tymethod.from"·class="fn">from</a>(t:·T)·-&gt;·T</h4></section></summary><div·class="docblock"><p>Returns·the·argument·unchanged.</p>34 ····T:·?<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/marker/trait.Sized.html"·title="trait·core::marker::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:·aaf5505cf4d2f5510949d066675a02996763e3167f43d15d7a3f114042a751b5·...·]/core/convert/trait.From.html#tymethod.from"·class="fn">from</a>(t:·T)·-&gt;·T</h4></section></summary><div·class="docblock"><p>Returns·the·argument·unchanged.</p>
35 </div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-Into%3CU%3E-for-T"·class="impl"><a·class="src·rightside"·href="../../../src/core/convert/mod.rs.html#748-750">source</a><a·href="#impl-Into%3CU%3E-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T,·U&gt;·<a·class="trait"·href="../../../core/convert/trait.Into.html"·title="trait·core::convert::Into">Into</a>&lt;U&gt;·for·T<div·class="where">where35 </div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-Into%3CU%3E-for-T"·class="impl"><a·class="src·rightside"·href="https://doc.rust-lang.org/1.78.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.78.0/core/convert/trait.Into.html"·title="trait·core::convert::Into">Into</a>&lt;U&gt;·for·T<div·class="where">where
36 ····U:·<a·class="trait"·href="../../../core/convert/trait.From.html"·title="trait·core::convert::From">From</a>&lt;T&gt;,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.into"·class="method·trait-impl"><a·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>36 ····U:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.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:·2cf76a8ca501b2a1fef209fed846779ab1bed3b75f52c7425335e3ce04e6b272·...·]/core/convert/trait.Into.html#tymethod.into"·class="fn">into</a>(self)·-&gt;·U</h4></section></summary><div·class="docblock"><p>Calls·<code>U::from(self)</code>.</p>
37 <p>That·is,·this·conversion·is·whatever·the·implementation·of37 <p>That·is,·this·conversion·is·whatever·the·implementation·of
38 <code><a·href="../../../core/convert/trait.From.html"·title="trait·core::convert::From">From</a>&lt;T&gt;·for·U</code>·chooses·to·do.</p>38 <code><a·href="https://doc.rust-lang.org/1.78.0/core/convert/trait.From.html"·title="trait·core::convert::From">From</a>&lt;T&gt;·for·U</code>·chooses·to·do.</p>
39 </div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-ToOwned-for-T"·class="impl"><a·class="src·rightside"·href="../../../src/alloc/borrow.rs.html#83-95">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">where39 </div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-ToOwned-for-T"·class="impl"><a·class="src·rightside"·href="../../../src/alloc/borrow.rs.html#83-95">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
40 ····T:·<a·class="trait"·href="../../../core/clone/trait.Clone.html"·title="trait·core::clone::Clone">Clone</a>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle"·open><summary><section·id="associatedtype.Owned"·class="associatedtype·trait-impl"><a·href="#ass[·...·truncated·by·diffoscope;·len:·1244,·SHA:·69cacd1082b48ca1f5bfab4ae1e367f5f763da3ad72609b32e822cf57c8c8c3f·...·]/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#2543-2557">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">where40 ····T:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.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:·1292,·SHA:·478a67fbd7248810c65ae304934fad33df64f589bd9dd6c1998b62182b3a8996·...·]/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#2543-2557">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
41 ····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:·704b82019ade31064015a1ccdbf96947b1218dfdbea76d6f72eb963cae6c811d·...·]/core/convert/trait.TryFrom.html"·title="trait·core::convert::TryFrom">TryFrom</a>&lt;U&gt;·for·T<div·class="where">where41 ····T:·<a·class="trait"·href="../../fmt/trait.Display.html"·title="trait·alloc::fmt::Display">Display</a>·+·?<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/marker/trait.Sized.html"·title="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:·dc1580c4251df722434b40f1582e9a089d6018e24820e7d5bd3f7eb69ec4f8e2·...·]/core/convert/trait.TryFrom.html"·title="trait·core::convert::TryFrom">TryFrom</a>&lt;U&gt;·for·T<div·class="where">where
42 ····U:·<a·class="trait"·href="../../../core/convert/trait.Into.html"·title="trait·core::convert::Into">Into</a>&lt;T&gt;,</div></h3></section></summary><div·class="impl-items"><details·class="toggle"·open><summary><section·id="associatedtype.Error"·class="associatedtype·trait-impl"><a·[·...·truncated·by·diffoscope;·len:·1621,·SHA:·6a7315ddf4ab9fa76e45d600a396b342519e12c73d2e6dd09bf01e1fa1b0aac0·...·]/core/convert/trait.TryInto.html"·title="trait·core::convert::TryInto">TryInto</a>&lt;U&gt;·for·T<div·class="where">where42 ····U:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.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"·class="associ[·...·truncated·by·diffoscope;·len:·1861,·SHA:·78398046ba16de2f66a8201a11d6a2dd405fceedeabfcaa37481e77092687e6f·...·]/core/convert/trait.TryInto.html"·title="trait·core::convert::TryInto">TryInto</a>&lt;U&gt;·for·T<div·class="where">where
43 ····U:·<a·class="trait"·href="../../../core/convert/trait.TryFrom.html"·title="trait·core::convert::TryFrom">TryFrom</a>&lt;T&gt;,</div></h3></section></summary><div·class="impl-items"><details·class="toggle"·open><summary><section·id="associatedtype.Error-1"·class="associatedtype·trai[·...·truncated·by·diffoscope;·len:·1258,·SHA:·33d8749d0be17f35431e59e57d3fb79a5cc4320bd6fc26ab5ef088d04d3c929a·...·]/core/convert/trait.TryFrom.html#associatedtype.Error"·title="type·core::convert::TryFrom::Error">Error</a>&gt;</h4></section></summary><div·class='docblock'>Performs·the·conversion.</div></details></div></details></div></section></div></main></body></html>43 ····U:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.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-1"·cl[·...·truncated·by·diffoscope;·len:·1474,·SHA:·ca90cccb6c86c654c95a1aaec456fbbe4b115f0d5a700e7d156e823346d70894·...·]/core/convert/trait.TryFrom.html#associatedtype.Error"·title="type·core::convert::TryFrom::Error">Error</a>&gt;</h4></section></summary><div·class='docblock'>Performs·the·conversion.</div></details></div></details></div></section></div></main></body></html>
60.3 KB
./usr/share/doc/rust-web-doc/html/alloc/ffi/c_str/struct.IntoStringError.html
    
Offset 4, 22 lines modifiedOffset 4, 22 lines modified
4 <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·may4 <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
5 return·this·error.</p>5 return·this·error.</p>
6 <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>.·See6 <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
7 its·documentation·for·more.</p>7 its·documentation·for·more.</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-IntoStringError"·class="impl"><a·class="src·rightside"·href="../../../src/alloc/ffi/c_str.rs.html#981-996">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#986-988">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·the8 </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#981-996">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#986-988">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
9 error.</p>9 error.</p>
10 </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#993-995">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><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#993-995">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>
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-Clone-for-IntoStringError"·class="impl"><a·class="src·rightside"·href="../../../src/alloc/ffi/c_str.rs.html#227">source</a><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:·9373,·SHA:·7a370d9902f7c30e8455deafc668e2698941f9eb998e22861d162f9c56869ec8·...·]/core/primitive.bool.html">bool</a></h4></section></summary><div·class='docblock'>This·method·tests·for·<code>self</code>·and·<code>other</code>·values·to·be·equal,·and·is·used11 </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"><a·class="src·rightside"·href="../../../src/alloc/ffi/c_str.rs.html#227">source</a><a·href="#impl-Clone-for-IntoStringError"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="https://doc.rust-lang.org/1.78.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:·9997,·SHA:·b83d7e998bc94420d47190bf4de52df4ab1df657b4d0c163bd11d3e561f4b830·...·]/core/primitive.bool.html">bool</a></h4></section></summary><div·class='docblock'>This·method·tests·for·<code>self</code>·and·<code>other</code>·values·to·be·equal,·and·is·used
12 by·<code>==</code>.</div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.ne"·class="method·trait-impl"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.0.0">1.0.0</span>···<a·class="src"·href="../../../src/core/cmp.rs.html#263">source</a></span><a·href="#method.ne"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../../../core/cmp/trait.PartialEq.html#method.ne"·class="fn">ne</a>(&amp;self,·other:·<a·class="primitive"·href="../../../core/[·...·truncated·by·diffoscope;·len:·81,·SHA:·2ba6e57f82d380e3f3fee865de22084b088301df9b3f69d725dd871f7e356b09·...·]/core/primitive.bool.html">bool</a></h4></section></summary><div·class='docblock'>This·method·tests·for·<code>!=</code>.·The·default·implementation·is·almost·always12 by·<code>==</code>.</div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.ne"·class="method·trait-impl"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.0.0">1.0.0</span>···<a·class="src"·href="https://doc.rust-lang.org/1.78.0/src/core/cmp.rs.html#263">source</a></span><a·href="#method.ne"·class="anchor">§</a><h4·class="code-header">fn·<a·href="https://doc.rust-lang.org/1.78.0/core/cmp/trait.PartialEq.html#method.ne"·class="fn">ne</a>(&amp;self,·[·...·truncated·by·diffoscope;·len:·177,·SHA:·e1e3f9b9b78644c807cda06ba58cbf80a7a50ed17e7136cd156da5dd11dec66f·...·]/core/primitive.bool.html">bool</a></h4></section></summary><div·class='docblock'>This·method·tests·for·<code>!=</code>.·The·default·implementation·is·almost·always
13 sufficient,·and·should·not·be·overridden·without·very·good·reason.</div></details></div></details><section·id="impl-Eq-for-IntoStringError"·class="impl"><a·class="src·rightside"·href="../../../src/alloc/ffi/c_str.rs.html#227">source</a><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:·3647,·SHA:·6ea76d2a68510ed124c7b8d6c406247e9a7e3a6fdf790c5888be958f67cecd6b·...·]/core/any/trait.Any.html"·title="trait·core::any::Any">Any</a>·for·T<div·class="where">where13 sufficient,·and·should·not·be·overridden·without·very·good·reason.</div></details></div></details><section·id="impl-Eq-for-IntoStringError"·class="impl"><a·class="src·rightside"·href="../../../src/alloc/ffi/c_str.rs.html#227">source</a><a·href="#impl-Eq-for-IntoStringError"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="https://doc.rust-lang.org/1.78.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:·3887,·SHA:·2c25474c2558aff95ea942a14aef7e171f5daecdc53881b857b3f8a67f77e400·...·]/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="s[·...·truncated·by·diffoscope;·len:·690,·SHA:·60266624df43cdf1ecb412e35aaf311341d62543468bcbd4041716fbafffc07b·...·]/src/core/borrow.rs.html#208">source</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.78.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">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:·039b8952ccb1ab7d8f15cd519cbc10f4afc149276d0f9cfd3a53117d606059df·...·]/src/core/borrow.rs.html#208">source</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="sr[·...·truncated·by·diffoscope;·len:·647,·SHA:·8124d60df08ac71436917cb874e0ec9c0ffe7e4515e2ea246a1f1009f83ac6a1·...·]/src/core/borrow.rs.html#216">source</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.78.0/core/marker/trait.Sized.html"·title="trait·core::marker::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:·b03884aeae1813f459b6ebe4b7e3f3c22d5d37e0ad023677fd3869bc5a735be2·...·]/src/core/borrow.rs.html#216">source</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[·...·truncated·by·diffoscope;·len:·1254,·SHA:·88cecdca8f65ac7671462e07b83fc0153c4024bd8b3f1bfba320be439fbe3a4f·...·]/core/convert/trait.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.78.0/core/marker/trait.Sized.html"·title="trait·core::marker::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:·aaf5505cf4d2f5510949d066675a02996763e3167f43d15d7a3f114042a751b5·...·]/core/convert/trait.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.78.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.78.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·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>18 ····U:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.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:·2cf76a8ca501b2a1fef209fed846779ab1bed3b75f52c7425335e3ce04e6b272·...·]/core/convert/trait.Into.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.78.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-ToOwned-for-T"·class="impl"><a·class="src·rightside"·href="../../../src/alloc/borrow.rs.html#83-95">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">where21 </div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-ToOwned-for-T"·class="impl"><a·class="src·rightside"·href="../../../src/alloc/borrow.rs.html#83-95">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
22 ····T:·<a·class="trait"·href="../../../core/clone/trait.Clone.html"·title="trait·core::clone::Clone">Clone</a>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle"·open><summary><section·id="associatedtype.Owned"·class="associatedtype·trait-impl"><a·href="#ass[·...·truncated·by·diffoscope;·len:·1244,·SHA:·69cacd1082b48ca1f5bfab4ae1e367f5f763da3ad72609b32e822cf57c8c8c3f·...·]/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#2543-2557">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">where22 ····T:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.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:·1292,·SHA:·478a67fbd7248810c65ae304934fad33df64f589bd9dd6c1998b62182b3a8996·...·]/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#2543-2557">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
23 ····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:·704b82019ade31064015a1ccdbf96947b1218dfdbea76d6f72eb963cae6c811d·...·]/core/convert/trait.TryFrom.html"·title="trait·core::convert::TryFrom">TryFrom</a>&lt;U&gt;·for·T<div·class="where">where23 ····T:·<a·class="trait"·href="../../fmt/trait.Display.html"·title="trait·alloc::fmt::Display">Display</a>·+·?<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/marker/trait.Sized.html"·title="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:·dc1580c4251df722434b40f1582e9a089d6018e24820e7d5bd3f7eb69ec4f8e2·...·]/core/convert/trait.TryFrom.html"·title="trait·core::convert::TryFrom">TryFrom</a>&lt;U&gt;·for·T<div·class="where">where
24 ····U:·<a·class="trait"·href="../../../core/convert/trait.Into.html"·title="trait·core::convert::Into">Into</a>&lt;T&gt;,</div></h3></section></summary><div·class="impl-items"><details·class="toggle"·open><summary><section·id="associatedtype.Error"·class="associatedtype·trait-impl"><a·[·...·truncated·by·diffoscope;·len:·1621,·SHA:·6a7315ddf4ab9fa76e45d600a396b342519e12c73d2e6dd09bf01e1fa1b0aac0·...·]/core/convert/trait.TryInto.html"·title="trait·core::convert::TryInto">TryInto</a>&lt;U&gt;·for·T<div·class="where">where24 ····U:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.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"·class="associ[·...·truncated·by·diffoscope;·len:·1861,·SHA:·78398046ba16de2f66a8201a11d6a2dd405fceedeabfcaa37481e77092687e6f·...·]/core/convert/trait.TryInto.html"·title="trait·core::convert::TryInto">TryInto</a>&lt;U&gt;·for·T<div·class="where">where
25 ····U:·<a·class="trait"·href="../../../core/convert/trait.TryFrom.html"·title="trait·core::convert::TryFrom">TryFrom</a>&lt;T&gt;,</div></h3></section></summary><div·class="impl-items"><details·class="toggle"·open><summary><section·id="associatedtype.Error-1"·class="associatedtype·trai[·...·truncated·by·diffoscope;·len:·1258,·SHA:·33d8749d0be17f35431e59e57d3fb79a5cc4320bd6fc26ab5ef088d04d3c929a·...·]/core/convert/trait.TryFrom.html#associatedtype.Error"·title="type·core::convert::TryFrom::Error">Error</a>&gt;</h4></section></summary><div·class='docblock'>Performs·the·conversion.</div></details></div></details></div></section></div></main></body></html>25 ····U:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.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-1"·cl[·...·truncated·by·diffoscope;·len:·1474,·SHA:·ca90cccb6c86c654c95a1aaec456fbbe4b115f0d5a700e7d156e823346d70894·...·]/core/convert/trait.TryFrom.html#associatedtype.Error"·title="type·core::convert::TryFrom::Error">Error</a>&gt;</h4></section></summary><div·class='docblock'>Performs·the·conversion.</div></details></div></details></div></section></div></main></body></html>
63.6 KB
./usr/share/doc/rust-web-doc/html/alloc/ffi/c_str/struct.NulError.html
    
Offset 4, 39 lines modifiedOffset 4, 39 lines modified
4 can’t,·as·that·byte·would·effectively·truncate·the·string.</p>4 can’t,·as·that·byte·would·effectively·truncate·the·string.</p>
5 <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·on5 <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
6 <a·href="../struct.CString.html"·title="struct·alloc::ffi::CString"><code>CString</code></a>.·See·its·documentation·for·more.</p>6 <a·href="../struct.CString.html"·title="struct·alloc::ffi::CString"><code>CString</code></a>.·See·its·documentation·for·more.</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 <div·class="example-wrap"><pre·class="rust·rust-example-rendered"><code><span·class="kw">use·</span>std::ffi::{CString,·NulError};8 <div·class="example-wrap"><pre·class="rust·rust-example-rendered"><code><span·class="kw">use·</span>std::ffi::{CString,·NulError};
  
9 <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"·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">Run</a></div>9 <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"·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">Run</a></div>
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-NulError"·class="impl"><a·class="src·rightside"·href="../../../src/alloc/ffi/c_str.rs.html#921-958">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#938-940">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·caused10 </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#921-958">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#938-940">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.78.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
11 <a·href="../struct.CString.html#method.new"·title="associated·function·alloc::ffi::CString::new"><code>CString::new</code></a>·to·fail.</p>11 <a·href="../struct.CString.html#method.new"·title="associated·function·alloc::ffi::CString::new"><code>CString::new</code></a>·to·fail.</p>
12 <h5·id="examples-1"><a·class="doc-anchor"·href="#examples-1">§</a>Examples</h5>12 <h5·id="examples-1"><a·class="doc-anchor"·href="#examples-1">§</a>Examples</h5>
13 <div·class="example-wrap"><pre·class="rust·rust-example-rendered"><code><span·class="kw">use·</span>std::ffi::CString;13 <div·class="example-wrap"><pre·class="rust·rust-example-rendered"><code><span·class="kw">use·</span>std::ffi::CString;
  
14 <span·class="kw">let·</span>nul_error·=·CString::new(<span·class="string">"foo\0bar"</span>).unwrap_err();14 <span·class="kw">let·</span>nul_error·=·CString::new(<span·class="string">"foo\0bar"</span>).unwrap_err();
15 <span·class="macro">assert_eq!</span>(nul_error.nul_position(),·<span·class="number">3</span>);15 <span·class="macro">assert_eq!</span>(nul_error.nul_position(),·<span·class="number">3</span>);
  
16 <span·class="kw">let·</span>nul_error·=·CString::new(<span·class="string">"foo·bar\0"</span>).unwrap_err();16 <span·class="kw">let·</span>nul_error·=·CString::new(<span·class="string">"foo·bar\0"</span>).unwrap_err();
17 <span·class="macro">assert_eq!</span>(nul_error.nul_position(),·<span·class="number">7</span>);</code></pre><a·class="test-arrow"·target="_blank"·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">Run</a></div>17 <span·class="macro">assert_eq!</span>(nul_error.nul_position(),·<span·class="number">7</span>);</code></pre><a·class="test-arrow"·target="_blank"·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">Run</a></div>
18 </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#955-957">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·which18 </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#955-957">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.78.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
19 generated·the·error·in·the·first·place.</p>19 generated·the·error·in·the·first·place.</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::ffi::CString;21 <div·class="example-wrap"><pre·class="rust·rust-example-rendered"><code><span·class="kw">use·</span>std::ffi::CString;
  
22 <span·class="kw">let·</span>nul_error·=·CString::new(<span·class="string">"foo\0bar"</span>).unwrap_err();22 <span·class="kw">let·</span>nul_error·=·CString::new(<span·class="string">"foo\0bar"</span>).unwrap_err();
23 <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"·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">Run</a></div>23 <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"·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">Run</a></div>
24 </div></details></div></details></div><h2·id="trait-implementations"·class="section-header">Trait·Implementations<a·href="#trait-implementations"·class="anchor">§</a></h2><div·id="trait-implementations-list"><details·class="toggle·implementors-toggle"·open><summary><section·id="impl-Clone-for-NulError"·class="impl"><a·class="src·rightside"·href="../../../src/alloc/ffi/c_str.rs.html#136">source</a><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:·9252,·SHA:·d3c3f28a7383cc1a3daec45ff8a74e9eef2fae92979b81ce0b09fa8b30afadc5·...·]/core/primitive.bool.html">bool</a></h4></section></summary><div·class='docblock'>This·method·tests·for·<code>self</code>·and·<code>other</code>·values·to·be·equal,·and·is·used24 </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"><a·class="src·rightside"·href="../../../src/alloc/ffi/c_str.rs.html#136">source</a><a·href="#impl-Clone-for-NulError"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="https://doc.rust-lang.org/1.78.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:·9900,·SHA:·d91b60cbefb402754899f7e7a534a1fe564d8caf9ebe3efbac7ee534dad0241b·...·]/core/primitive.bool.html">bool</a></h4></section></summary><div·class='docblock'>This·method·tests·for·<code>self</code>·and·<code>other</code>·values·to·be·equal,·and·is·used
25 by·<code>==</code>.</div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.ne"·class="method·trait-impl"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.0.0">1.0.0</span>···<a·class="src"·href="../../../src/core/cmp.rs.html#263">source</a></span><a·href="#method.ne"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../../../core/cmp/trait.PartialEq.html#method.ne"·class="fn">ne</a>(&amp;self,·other:·<a·class="primitive"·href="../../../core/[·...·truncated·by·diffoscope;·len:·81,·SHA:·2ba6e57f82d380e3f3fee865de22084b088301df9b3f69d725dd871f7e356b09·...·]/core/primitive.bool.html">bool</a></h4></section></summary><div·class='docblock'>This·method·tests·for·<code>!=</code>.·The·default·implementation·is·almost·always25 by·<code>==</code>.</div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.ne"·class="method·trait-impl"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.0.0">1.0.0</span>···<a·class="src"·href="https://doc.rust-lang.org/1.78.0/src/core/cmp.rs.html#263">source</a></span><a·href="#method.ne"·class="anchor">§</a><h4·class="code-header">fn·<a·href="https://doc.rust-lang.org/1.78.0/core/cmp/trait.PartialEq.html#method.ne"·class="fn">ne</a>(&amp;self,·[·...·truncated·by·diffoscope;·len:·177,·SHA:·e1e3f9b9b78644c807cda06ba58cbf80a7a50ed17e7136cd156da5dd11dec66f·...·]/core/primitive.bool.html">bool</a></h4></section></summary><div·class='docblock'>This·method·tests·for·<code>!=</code>.·The·default·implementation·is·almost·always
26 sufficient,·and·should·not·be·overridden·without·very·good·reason.</div></details></div></details><section·id="impl-Eq-for-NulError"·class="impl"><a·class="src·rightside"·href="../../../src/alloc/ffi/c_str.rs.html#136">source</a><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"><a·[·...·truncated·by·diffoscope;·len:·3381,·SHA:·22c6a2e7aab9a740bceb9998199e061bc87c6f788b7f1247ebfc67a1a438bd25·...·]/core/any/trait.Any.html"·title="trait·core::any::Any">Any</a>·for·T<div·class="where">where26 sufficient,·and·should·not·be·overridden·without·very·good·reason.</div></details></div></details><section·id="impl-Eq-for-NulError"·class="impl"><a·class="src·rightside"·href="../../../src/alloc/ffi/c_str.rs.html#136">source</a><a·href="#impl-Eq-for-NulError"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="https://doc.rust-lang.org/1.78.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:·3621,·SHA:·3fe2d0c3f35c5a3b3fdd7ca8609f4ee8fe5ccd96250b82c81d18c723b5c0161f·...·]/core/any/trait.Any.html"·title="trait·core::any::Any">Any</a>·for·T<div·class="where">where
27 ····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:·60266624df43cdf1ecb412e35aaf311341d62543468bcbd4041716fbafffc07b·...·]/src/core/borrow.rs.html#208">source</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">where27 ····T:·'static·+·?<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">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:·039b8952ccb1ab7d8f15cd519cbc10f4afc149276d0f9cfd3a53117d606059df·...·]/src/core/borrow.rs.html#208">source</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
28 ····T:·?<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::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:·8124d60df08ac71436917cb874e0ec9c0ffe7e4515e2ea246a1f1009f83ac6a1·...·]/src/core/borrow.rs.html#216">source</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">where28 ····T:·?<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/marker/trait.Sized.html"·title="trait·core::marker::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:·b03884aeae1813f459b6ebe4b7e3f3c22d5d37e0ad023677fd3869bc5a735be2·...·]/src/core/borrow.rs.html#216">source</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
29 ····T:·?<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.borrow_mut"·class="method·trait-impl"><a·class[·...·truncated·by·diffoscope;·len:·1254,·SHA:·88cecdca8f65ac7671462e07b83fc0153c4024bd8b3f1bfba320be439fbe3a4f·...·]/core/convert/trait.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 ····T:·?<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/marker/trait.Sized.html"·title="trait·core::marker::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:·aaf5505cf4d2f5510949d066675a02996763e3167f43d15d7a3f114042a751b5·...·]/core/convert/trait.From.html#tymethod.from"·class="fn">from</a>(t:·T)·-&gt;·T</h4></section></summary><div·class="docblock"><p>Returns·the·argument·unchanged.</p>
30 </div></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">where30 </div></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.78.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.78.0/core/convert/trait.Into.html"·title="trait·core::convert::Into">Into</a>&lt;U&gt;·for·T<div·class="where">where
31 ····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>31 ····U:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.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:·2cf76a8ca501b2a1fef209fed846779ab1bed3b75f52c7425335e3ce04e6b272·...·]/core/convert/trait.Into.html#tymethod.into"·class="fn">into</a>(self)·-&gt;·U</h4></section></summary><div·class="docblock"><p>Calls·<code>U::from(self)</code>.</p>
32 <p>That·is,·this·conversion·is·whatever·the·implementation·of32 <p>That·is,·this·conversion·is·whatever·the·implementation·of
33 <code><a·href="../../../core/convert/trait.From.html"·title="trait·core::convert::From">From</a>&lt;T&gt;·for·U</code>·chooses·to·do.</p>33 <code><a·href="https://doc.rust-lang.org/1.78.0/core/convert/trait.From.html"·title="trait·core::convert::From">From</a>&lt;T&gt;·for·U</code>·chooses·to·do.</p>
34 </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#83-95">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">where34 </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#83-95">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
35 ····T:·<a·class="trait"·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·href="#ass[·...·truncated·by·diffoscope;·len:·1244,·SHA:·69cacd1082b48ca1f5bfab4ae1e367f5f763da3ad72609b32e822cf57c8c8c3f·...·]/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#2543-2557">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">where35 ····T:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.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:·1292,·SHA:·478a67fbd7248810c65ae304934fad33df64f589bd9dd6c1998b62182b3a8996·...·]/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#2543-2557">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
36 ····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:·704b82019ade31064015a1ccdbf96947b1218dfdbea76d6f72eb963cae6c811d·...·]/core/convert/trait.TryFrom.html"·title="trait·core::convert::TryFrom">TryFrom</a>&lt;U&gt;·for·T<div·class="where">where36 ····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.78.0/core/marker/trait.Sized.html"·title="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:·dc1580c4251df722434b40f1582e9a089d6018e24820e7d5bd3f7eb69ec4f8e2·...·]/core/convert/trait.TryFrom.html"·title="trait·core::convert::TryFrom">TryFrom</a>&lt;U&gt;·for·T<div·class="where">where
37 ····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"·class="associatedtype·trait-impl"><a·[·...·truncated·by·diffoscope;·len:·1621,·SHA:·6a7315ddf4ab9fa76e45d600a396b342519e12c73d2e6dd09bf01e1fa1b0aac0·...·]/core/convert/trait.TryInto.html"·title="trait·core::convert::TryInto">TryInto</a>&lt;U&gt;·for·T<div·class="where">where37 ····U:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.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"·class="associ[·...·truncated·by·diffoscope;·len:·1861,·SHA:·78398046ba16de2f66a8201a11d6a2dd405fceedeabfcaa37481e77092687e6f·...·]/core/convert/trait.TryInto.html"·title="trait·core::convert::TryInto">TryInto</a>&lt;U&gt;·for·T<div·class="where">where
38 ····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-1"·class="associatedtype·trai[·...·truncated·by·diffoscope;·len:·1258,·SHA:·33d8749d0be17f35431e59e57d3fb79a5cc4320bd6fc26ab5ef088d04d3c929a·...·]/core/convert/trait.TryFrom.html#associatedtype.Error"·title="type·core::convert::TryFrom::Error">Error</a>&gt;</h4></section></summary><div·class='docblock'>Performs·the·conversion.</div></details></div></details></div></section></div></main></body></html>38 ····U:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.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-1"·cl[·...·truncated·by·diffoscope;·len:·1474,·SHA:·ca90cccb6c86c654c95a1aaec456fbbe4b115f0d5a700e7d156e823346d70894·...·]/core/convert/trait.TryFrom.html#associatedtype.Error"·title="type·core::convert::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-web-doc/html/alloc/ffi/index.html
    
Offset 3, 15 lines modifiedOffset 3, 15 lines modified
3 <p>This·module·provides·utilities·to·handle·data·across·non-Rust3 <p>This·module·provides·utilities·to·handle·data·across·non-Rust
4 interfaces,·like·other·programming·languages·and·the·underlying4 interfaces,·like·other·programming·languages·and·the·underlying
5 operating·system.·It·is·mainly·of·use·for·FFI·(Foreign·Function5 operating·system.·It·is·mainly·of·use·for·FFI·(Foreign·Function
6 Interface)·bindings·and·code·that·needs·to·exchange·C-like·strings6 Interface)·bindings·and·code·that·needs·to·exchange·C-like·strings
7 with·other·languages.</p>7 with·other·languages.</p>
8 <h2·id="overview"><a·class="doc-anchor"·href="#overview">§</a>Overview</h2>8 <h2·id="overview"><a·class="doc-anchor"·href="#overview">§</a>Overview</h2>
9 <p>Rust·represents·owned·strings·with·the·<a·href="../string/struct.String.html"·title="struct·alloc::string::String"><code>String</code></a>·type,·and9 <p>Rust·represents·owned·strings·with·the·<a·href="../string/struct.String.html"·title="struct·alloc::string::String"><code>String</code></a>·type,·and
10 borrowed·slices·of·strings·with·the·<a·href="../../core/primitive.str.html"·title="primitive·str"><code>str</code></a>·primitive.·Both·are10 borrowed·slices·of·strings·with·the·<a·href="https://doc.rust-lang.org/1.78.0/core/primitive.str.html"·title="primitive·str"><code>str</code></a>·primitive.·Both·are
11 always·in·UTF-8·encoding,·and·may·contain·nul·bytes·in·the·middle,11 always·in·UTF-8·encoding,·and·may·contain·nul·bytes·in·the·middle,
12 i.e.,·if·you·look·at·the·bytes·that·make·up·the·string,·there·may12 i.e.,·if·you·look·at·the·bytes·that·make·up·the·string,·there·may
13 be·a·<code>\0</code>·among·them.·Both·<code>String</code>·and·<code>str</code>·store·their·length13 be·a·<code>\0</code>·among·them.·Both·<code>String</code>·and·<code>str</code>·store·their·length
14 explicitly;·there·are·no·nul·terminators·at·the·end·of·strings14 explicitly;·there·are·no·nul·terminators·at·the·end·of·strings
15 like·in·C.</p>15 like·in·C.</p>
16 <p>C·strings·are·different·from·Rust·strings:</p>16 <p>C·strings·are·different·from·Rust·strings:</p>
17 <ul>17 <ul>
Offset 24, 15 lines modifiedOffset 24, 15 lines modified
24 <li>24 <li>
25 <p><strong>Character·size</strong>·-·C·strings·may·use·<code>char</code>·or·<code>wchar_t</code>-sized25 <p><strong>Character·size</strong>·-·C·strings·may·use·<code>char</code>·or·<code>wchar_t</code>-sized
26 characters;·please·<strong>note</strong>·that·C’s·<code>char</code>·is·different·from·Rust’s.26 characters;·please·<strong>note</strong>·that·C’s·<code>char</code>·is·different·from·Rust’s.
27 The·C·standard·leaves·the·actual·sizes·of·those·types·open·to27 The·C·standard·leaves·the·actual·sizes·of·those·types·open·to
28 interpretation,·but·defines·different·APIs·for·strings·made·up·of28 interpretation,·but·defines·different·APIs·for·strings·made·up·of
29 each·character·type.·Rust·strings·are·always·UTF-8,·so·different29 each·character·type.·Rust·strings·are·always·UTF-8,·so·different
30 Unicode·characters·will·be·encoded·in·a·variable·number·of·bytes30 Unicode·characters·will·be·encoded·in·a·variable·number·of·bytes
31 each.·The·Rust·type·<a·href="../../core/primitive.char.html"·title="primitive·char"><code>char</code></a>·represents·a·‘[Unicode·scalar31 each.·The·Rust·type·<a·href="https://doc.rust-lang.org/1.78.0/core/primitive.char.html"·title="primitive·char"><code>char</code></a>·represents·a·‘[Unicode·scalar
32 value]’,·which·is·similar·to,·but·not·the·same·as,·a·‘[Unicode32 value]’,·which·is·similar·to,·but·not·the·same·as,·a·‘[Unicode
33 code·point]’.</p>33 code·point]’.</p>
34 </li>34 </li>
35 <li>35 <li>
36 <p><strong>Nul·terminators·and·implicit·string·lengths</strong>·-·Often,·C36 <p><strong>Nul·terminators·and·implicit·string·lengths</strong>·-·Often,·C
37 strings·are·nul-terminated,·i.e.,·they·have·a·<code>\0</code>·character·at·the37 strings·are·nul-terminated,·i.e.,·they·have·a·<code>\0</code>·character·at·the
38 end.·The·length·of·a·string·buffer·is·not·stored,·but·has·to·be38 end.·The·length·of·a·string·buffer·is·not·stored,·but·has·to·be
Offset 54, 30 lines modifiedOffset 54, 30 lines modified
54 characters·in·the·middle··a·nul·character·would·essentially54 characters·in·the·middle··a·nul·character·would·essentially
55 truncate·the·string.·Rust·strings·<em>can</em>·have·nul·characters·in55 truncate·the·string.·Rust·strings·<em>can</em>·have·nul·characters·in
56 the·middle,·because·nul·does·not·have·to·mark·the·end·of·the56 the·middle,·because·nul·does·not·have·to·mark·the·end·of·the
57 string·in·Rust.</p>57 string·in·Rust.</p>
58 </li>58 </li>
59 </ul>59 </ul>
60 <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 <h2·id="representations-of-non-rust-strings"><a·class="doc-anchor"·href="#representations-of-non-rust-strings">§</a>Representations·of·non-Rust·strings</h2>
61 <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·transfer61 <p><a·href="struct.CString.html"·title="struct·alloc::ffi::CString"><code>CString</code></a>·and·<a·href="https://doc.rust-lang.org/1.78.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
62 UTF-8·strings·to·and·from·languages·with·a·C·ABI,·like·Python.</p>62 UTF-8·strings·to·and·from·languages·with·a·C·ABI,·like·Python.</p>
63 <ul>63 <ul>
64 <li>64 <li>
65 <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-friendly65 <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
66 string:·it·is·nul-terminated,·and·has·no·internal·nul·characters.66 string:·it·is·nul-terminated,·and·has·no·internal·nul·characters.
67 Rust·code·can·create·a·<a·href="struct.CString.html"·title="struct·alloc::ffi::CString"><code>CString</code></a>·out·of·a·normal·string·(provided67 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
68 that·the·string·doesn’t·have·nul·characters·in·the·middle),·and68 that·the·string·doesn’t·have·nul·characters·in·the·middle),·and
69 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·can69 then·use·a·variety·of·methods·to·obtain·a·raw·<code>*mut·<a·href="https://doc.rust-lang.org/1.78.0/core/primitive.u8.html"·title="primitive·u8">u8</a></code>·that·can
70 then·be·passed·as·an·argument·to·functions·which·use·the·C70 then·be·passed·as·an·argument·to·functions·which·use·the·C
71 conventions·for·strings.</p>71 conventions·for·strings.</p>
72 </li>72 </li>
73 <li>73 <li>
74 <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;·it74 <p><strong>From·C·to·Rust:</strong>·<a·href="https://doc.rust-lang.org/1.78.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
75 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·from75 is·what·you·would·use·to·wrap·a·raw·<code>*const·<a·href="https://doc.rust-lang.org/1.78.0/core/primitive.u8.html"·title="primitive·u8">u8</a></code>·that·you·got·from
76 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·array76 a·C·function.·A·<a·href="https://doc.rust-lang.org/1.78.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
77 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·Rust77 of·bytes.·Once·you·have·a·<a·href="https://doc.rust-lang.org/1.78.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
78 <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·adding78 <code>&amp;<a·href="https://doc.rust-lang.org/1.78.0/core/primitive.str.html"·title="primitive·str">str</a></code>·if·it’s·valid·UTF-8,·or·lossily·convert·it·by·adding
79 replacement·characters.</p>79 replacement·characters.</p>
80 </li>80 </li>
81 </ul>81 </ul>
82 </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><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·the82 </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><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
83 middle.</div></li></ul></section></div></main></body></html>83 middle.</div></li></ul></section></div></main></body></html>
206 KB
./usr/share/doc/rust-web-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.write(`<link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/SourceSerif4-Regular-46f98efaafac5295.ttf.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/FiraSans-Regular-018c141bf0843ffd.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/FiraSans-Medium-8f9a781e4970d388.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/SourceCodePro-Regular-562dcc5011b6de7d.ttf.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/SourceCodePro-Semibold-d899c5a5c4aeb14a.ttf.woff2">`)</script><link·rel="stylesheet"·href="../../static.files/normalize-76eba96aa4d2e634.css"><link·rel="stylesheet"·href="../../static.files/rustdoc-35f9e32502181f1e.css"><meta·name="rustdoc-vars"·data-root-path="../../"·data-static-root-path="../../static.files/"·data-current-crate="alloc"·data-themes=""·data-resource-suffix="1.78.0"·data-rustdoc-version="1.78.0"·data-channel="1.78.0"·data-search-js="search-42d8da7a6b9792c2.js"·data-settings-js="settings-4313503d2e1961c2.js"·><script·src="../../static.files/storage-4c98445ec4002617.js"></script><script·defer·src="sidebar-items1.78.0.js"></script><script·defer·src="../../static.files/main-12cf3b4f4f9dc36d.js"></script><noscript><link·rel="stylesheet"·href="../../static.files/noscript-04d5337699b92874.css"></noscript><link·rel="alternate·icon"·type="image/png"·href="../../static.files/favicon-16x16-8b506e7a72182f1c.png"><link·rel="alternate·icon"·type="image/png"·href="../../static.files/favicon-32x32-422f7d1d52889060.png"><link·rel="icon"·type="image/svg+xml"·href="../../static.files/favicon-2c020d218678b618.svg"></head><body·class="rustdoc·struct"><!--[if·lte·IE·11]><div·class="warning">This·old·browser·is·unsupported·and·will·most·likely·display·funky·things.</div><![endif]--><nav·class="mobile-topbar"><button·class="sidebar-menu-toggle"·title="show·sidebar"></button><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-151179464ae7ed46.svg"·alt=""></a></nav><nav·class="sidebar"><div·class="sidebar-crate"><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-151179464ae7ed46.svg"·alt="logo"></a><h2><a·href="../../alloc/index.html">alloc</a><span·class="version">1.78.0</span></h2></div><h2·class="location"><a·href="#">CString</a></h2><div·class="sidebar-elems"><section><h3><a·href="#implementations">Methods</a></h3><ul·class="block·method"><li><a·href="#method.as_bytes">as_bytes</a></li><li><a·href="#method.as_bytes_with_nul">as_bytes_with_nul</a></li><li><a·href="#method.as_c_str">as_c_str</a></li><li><a·href="#method.from_raw">from_raw</a></li><li><a·href="#method.from_vec_unchecked">from_vec_unchecked</a></li><li><a·href="#method.from_vec_with_nul">from_vec_with_nul</a></li><li><a·href="#method.from_vec_with_nul_unchecked">from_vec_with_nul_unchecked</a></li><li><a·href="#method.into_boxed_c_str">into_boxed_c_str</a></li><li><a·href="#method.into_bytes">into_bytes</a></li><li><a·href="#method.into_bytes_with_nul">into_bytes_with_nul</a></li><li><a·href="#method.into_raw">into_raw</a></li><li><a·href="#method.into_string">into_string</a></li><li><a·href="#method.new">new</a></li></ul><h3><a·href="#deref-methods-CStr">Methods·from·Deref&lt;Target=CStr&gt;</a></h3><ul·class="block·deref-methods"><li><a·href="#method.as_ptr">as_ptr</a></li><li><a·href="#method.bytes">bytes</a></li><li><a·href="#method.count_bytes">count_bytes</a></li><li><a·href="#method.is_empty">is_empty</a></li><li><a·href="#method.to_bytes">to_bytes</a></li><li><a·href="#method.to_bytes_with_nul">to_bytes_with_nul</a></li><li><a·href="#method.to_str">to_str</a></li><li><a·href="#method.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">AsRef&lt;CStr&gt;</a></li><li><a·href="#impl-Borrow%3CCStr%3E-for-CString">Borrow&lt;CStr&gt;</a></li><li><a·href="#impl-Clone-for-CString">Clone</a></li><li><a·href="#impl-Debug-for-CString">Debug</a></li><li><a·href="#impl-Default-for-CString">Default</a></li><li><a·href="#impl-Deref-for-CString">Deref</a></li><li><a·href="#impl-Drop-for-CString">Drop</a></li><li><a·href="#impl-Eq-for-CString">Eq</a></li><li><a·href="#impl-From%3C%26CString%3E-for-Cow%3C'a,+CStr%3E">From&lt;&amp;&#x27;a·CString&gt;</a></li><li><a·href="#impl-From%3C%26CStr%3E-for-CString">From&lt;&amp;CStr&gt;</a></li><li><a·href="#impl-From%3CBox%3CCStr%3E%3E-for-CString">From&lt;Box&lt;CStr&gt;&gt;</a></li><li><a·href="#impl-From%3CCString%3E-for-Arc%3CCStr%3E">From&lt;CString&gt;</a></li><li><a·href="#impl-From%3CCString%3E-for-Box%3CCStr%3E">From&lt;CString&gt;</a></li><li><a·href="#impl-From%3CCString%3E-for-Cow%3C'a,+CStr%3E">From&lt;CString&gt;</a></li><li><a·href="#impl-From%3CCString%3E-for-Rc%3CCStr%3E">From&lt;CString&gt;</a></li><li><a·href="#impl-From%3CCString%3E-for-Vec%3Cu8%3E">From&lt;CString&gt;</a></li><li><a·href="#impl-From%3CCow%3C'a,+CStr%3E%3E-for-CString">From&lt;Cow&lt;&#x27;a,·CStr&gt;&gt;</a></li><li><a·href="#impl-From%3CVec%3CNonZero%3Cu8%3E%3E%3E-for-CString">From&lt;Vec&lt;NonZero&lt;u8&gt;&gt;&gt;</a></li><li><a·href="#impl-Hash-for-CString">Hash</a></li><li><a·href="#impl-Index%3CRangeFull%3E-for-CString">Index&lt;RangeFull&gt;</a></li><li><a·href="#impl-Ord-for-CString">Ord</a></li><li><a·href="#impl-PartialEq-for-CString">PartialEq</a></li><li><a·href="#impl-PartialOrd-for-CString">PartialOrd</a></li><li><a·href="#impl-StructuralPartialEq-for-CString">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">Freeze</a></li><li><a·href="#impl-RefUnwindSafe-for-CString">RefUnwindSafe</a></li><li><a·href="#impl-Send-for-CString">Send</a></li><li><a·href="#impl-Sync-for-CString">Sync</a></li><li><a·href="#impl-Unpin-for-CString">Unpin</a></li><li><a·href="#impl-UnwindSafe-for-CString">UnwindSafe</a></li></ul><h3><a·href="#blanket-implementations">Blanket·Implementations</a></h3><ul·class="block·blanket-implementation"><li><a·href="#impl-Any-for-T">Any</a></li><li><a·href="#impl-Borrow%3CT%3E-for-T">Borrow&lt;T&gt;</a></li><li><a·href="#impl-BorrowMut%3CT%3E-for-T">BorrowMut&lt;T&gt;</a></li><li><a·href="#impl-From%3CT%3E-for-T">From&lt;T&gt;</a></li><li><a·href="#impl-Into%3CU%3E-for-T">Into&lt;U&gt;</a></li><li><a·href="#impl-ToOwned-for-T">ToOwned</a></li><li><a·href="#impl-TryFrom%3CU%3E-for-T">TryFrom&lt;U&gt;</a></li><li><a·href="#impl-TryInto%3CU%3E-for-T">TryInto&lt;U&gt;</a></li></ul></section><h2><a·href="index.html">In·alloc::ffi</a></h2></div></nav><div·class="sidebar-resizer"></div>1 <!DOCTYPE·html><html·lang="en"><head><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.write(`<link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/SourceSerif4-Regular-46f98efaafac5295.ttf.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/FiraSans-Regular-018c141bf0843ffd.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/FiraSans-Medium-8f9a781e4970d388.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/SourceCodePro-Regular-562dcc5011b6de7d.ttf.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/SourceCodePro-Semibold-d899c5a5c4aeb14a.ttf.woff2">`)</script><link·rel="stylesheet"·href="../../static.files/normalize-76eba96aa4d2e634.css"><link·rel="stylesheet"·href="../../static.files/rustdoc-35f9e32502181f1e.css"><meta·name="rustdoc-vars"·data-root-path="../../"·data-static-root-path="../../static.files/"·data-current-crate="alloc"·data-themes=""·data-resource-suffix="1.78.0"·data-rustdoc-version="1.78.0"·data-channel="1.78.0"·data-search-js="search-42d8da7a6b9792c2.js"·data-settings-js="settings-4313503d2e1961c2.js"·><script·src="../../static.files/storage-4c98445ec4002617.js"></script><script·defer·src="sidebar-items1.78.0.js"></script><script·defer·src="../../static.files/main-12cf3b4f4f9dc36d.js"></script><noscript><link·rel="stylesheet"·href="../../static.files/noscript-04d5337699b92874.css"></noscript><link·rel="alternate·icon"·type="image/png"·href="../../static.files/favicon-16x16-8b506e7a72182f1c.png"><link·rel="alternate·icon"·type="image/png"·href="../../static.files/favicon-32x32-422f7d1d52889060.png"><link·rel="icon"·type="image/svg+xml"·href="../../static.files/favicon-2c020d218678b618.svg"></head><body·class="rustdoc·struct"><!--[if·lte·IE·11]><div·class="warning">This·old·browser·is·unsupported·and·will·most·likely·display·funky·things.</div><![endif]--><nav·class="mobile-topbar"><button·class="sidebar-menu-toggle"·title="show·sidebar"></button><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-151179464ae7ed46.svg"·alt=""></a></nav><nav·class="sidebar"><div·class="sidebar-crate"><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-151179464ae7ed46.svg"·alt="logo"></a><h2><a·href="../../alloc/index.html">alloc</a><span·class="version">1.78.0</span></h2></div><h2·class="location"><a·href="#">CString</a></h2><div·class="sidebar-elems"><section><h3><a·href="#implementations">Methods</a></h3><ul·class="block·method"><li><a·href="#method.as_bytes">as_bytes</a></li><li><a·href="#method.as_bytes_with_nul">as_bytes_with_nul</a></li><li><a·href="#method.as_c_str">as_c_str</a></li><li><a·href="#method.from_raw">from_raw</a></li><li><a·href="#method.from_vec_unchecked">from_vec_unchecked</a></li><li><a·href="#method.from_vec_with_nul">from_vec_with_nul</a></li><li><a·href="#method.from_vec_with_nul_unchecked">from_vec_with_nul_unchecked</a></li><li><a·href="#method.into_boxed_c_str">into_boxed_c_str</a></li><li><a·href="#method.into_bytes">into_bytes</a></li><li><a·href="#method.into_bytes_with_nul">into_bytes_with_nul</a></li><li><a·href="#method.into_raw">into_raw</a></li><li><a·href="#method.into_string">into_string</a></li><li><a·href="#method.new">new</a></li></ul><h3><a·href="#deref-methods-CStr">Methods·from·Deref&lt;Target=CStr&gt;</a></h3><ul·class="block·deref-methods"><li><a·href="#method.as_ptr">as_ptr</a></li><li><a·href="#method.bytes">bytes</a></li><li><a·href="#method.count_bytes">count_bytes</a></li><li><a·href="#method.is_empty">is_empty</a></li><li><a·href="#method.to_bytes">to_bytes</a></li><li><a·href="#method.to_bytes_with_nul">to_bytes_with_nul</a></li><li><a·href="#method.to_str">to_str</a></li><li><a·href="#method.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">AsRef&lt;CStr&gt;</a></li><li><a·href="#impl-Borrow%3CCStr%3E-for-CString">Borrow&lt;CStr&gt;</a></li><li><a·href="#impl-Clone-for-CString">Clone</a></li><li><a·href="#impl-Debug-for-CString">Debug</a></li><li><a·href="#impl-Default-for-CString">Default</a></li><li><a·href="#impl-Deref-for-CString">Deref</a></li><li><a·href="#impl-Drop-for-CString">Drop</a></li><li><a·href="#impl-Eq-for-CString">Eq</a></li><li><a·href="#impl-From%3C%26CString%3E-for-Cow%3C'a,+CStr%3E">From&lt;&amp;&#x27;a·CString&gt;</a></li><li><a·href="#impl-From%3C%26CStr%3E-for-CString">From&lt;&amp;CStr&gt;</a></li><li><a·href="#impl-From%3CBox%3CCStr%3E%3E-for-CString">From&lt;Box&lt;CStr&gt;&gt;</a></li><li><a·href="#impl-From%3CCString%3E-for-Arc%3CCStr%3E">From&lt;CString&gt;</a></li><li><a·href="#impl-From%3CCString%3E-for-Box%3CCStr%3E">From&lt;CString&gt;</a></li><li><a·href="#impl-From%3CCString%3E-for-Cow%3C'a,+CStr%3E">From&lt;CString&gt;</a></li><li><a·href="#impl-From%3CCString%3E-for-Rc%3CCStr%3E">From&lt;CString&gt;</a></li><li><a·href="#impl-From%3CCString%3E-for-Vec%3Cu8%3E">From&lt;CString&gt;</a></li><li><a·href="#impl-From%3CCow%3C'a,+CStr%3E%3E-for-CString">From&lt;Cow&lt;&#x27;a,·CStr&gt;&gt;</a></li><li><a·href="#impl-From%3CVec%3CNonZero%3Cu8%3E%3E%3E-for-CString">From&lt;Vec&lt;NonZero&lt;u8&gt;&gt;&gt;</a></li><li><a·href="#impl-Hash-for-CString">Hash</a></li><li><a·href="#impl-Index%3CRangeFull%3E-for-CString">Index&lt;RangeFull&gt;</a></li><li><a·href="#impl-Ord-for-CString">Ord</a></li><li><a·href="#impl-PartialEq-for-CString">PartialEq</a></li><li><a·href="#impl-PartialOrd-for-CString">PartialOrd</a></li><li><a·href="#impl-StructuralPartialEq-for-CString">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">Freeze</a></li><li><a·href="#impl-RefUnwindSafe-for-CString">RefUnwindSafe</a></li><li><a·href="#impl-Send-for-CString">Send</a></li><li><a·href="#impl-Sync-for-CString">Sync</a></li><li><a·href="#impl-Unpin-for-CString">Unpin</a></li><li><a·href="#impl-UnwindSafe-for-CString">UnwindSafe</a></li></ul><h3><a·href="#blanket-implementations">Blanket·Implementations</a></h3><ul·class="block·blanket-implementation"><li><a·href="#impl-Any-for-T">Any</a></li><li><a·href="#impl-Borrow%3CT%3E-for-T">Borrow&lt;T&gt;</a></li><li><a·href="#impl-BorrowMut%3CT%3E-for-T">BorrowMut&lt;T&gt;</a></li><li><a·href="#impl-From%3CT%3E-for-T">From&lt;T&gt;</a></li><li><a·href="#impl-Into%3CU%3E-for-T">Into&lt;U&gt;</a></li><li><a·href="#impl-ToOwned-for-T">ToOwned</a></li><li><a·href="#impl-TryFrom%3CU%3E-for-T">TryFrom&lt;U&gt;</a></li><li><a·href="#impl-TryInto%3CU%3E-for-T">TryInto&lt;U&gt;</a></li></ul></section><h2><a·href="index.html">In·alloc::ffi</a></h2></div></nav><div·class="sidebar-resizer"></div>
2 ····<main><div·class="width-limiter"><nav·class="sub"><form·class="search-form"><span></span><div·id="sidebar-button"·tabindex="-1"><a·href="../../alloc/all.html"·title="show·sidebar"></a></div><input·class="search-input"·name="search"·aria-label="Run·search·in·the·documentation"·autocomplete="off"·spellcheck="false"·placeholder="Click·or·press·‘S’·to·search,·‘?’·for·more·options…"·type="search"><div·id="help-button"·tabindex="-1"><a·href="../../help.html"·title="help">?</a></div><div·id="settings-menu"·tabindex="-1"><a·href="../../settings.html"·title="settings"><img·width="22"·height="22"·alt="Change·settings"·src="../../static.files/wheel-7b819b6101059cd0.svg"></a></div></form></nav><section·id="main-content"·class="content"><div·class="main-heading"><h1>Struct·<a·href="../index.html">alloc</a>::<wbr><a·href="index.html">ffi</a>::<wbr><a·class="struct"·href="#">CString</a><button·id="copy-path"·title="Copy·item·path·to·clipboard"><img·src="../../static.files/clipboard-7571035ce49a181d.svg"·width="19"·height="18"·alt="Copy·item·path"></button></h1><span·class="out-of-band"><span·class="since"·title="Stable·since·Rust·version·1.64.0">1.64.0</span>···<a·class="src"·href="../../src/alloc/ffi/c_str.rs.html#114-119">source</a>···<button·id="toggle-all-docs"·title="collapse·all·docs">[<span>&#x2212;</span>]</button></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·the2 ····<main><div·class="width-limiter"><nav·class="sub"><form·class="search-form"><span></span><div·id="sidebar-button"·tabindex="-1"><a·href="../../alloc/all.html"·title="show·sidebar"></a></div><input·class="search-input"·name="search"·aria-label="Run·search·in·the·documentation"·autocomplete="off"·spellcheck="false"·placeholder="Click·or·press·‘S’·to·search,·‘?’·for·more·options…"·type="search"><div·id="help-button"·tabindex="-1"><a·href="../../help.html"·title="help">?</a></div><div·id="settings-menu"·tabindex="-1"><a·href="../../settings.html"·title="settings"><img·width="22"·height="22"·alt="Change·settings"·src="../../static.files/wheel-7b819b6101059cd0.svg"></a></div></form></nav><section·id="main-content"·class="content"><div·class="main-heading"><h1>Struct·<a·href="../index.html">alloc</a>::<wbr><a·href="index.html">ffi</a>::<wbr><a·class="struct"·href="#">CString</a><button·id="copy-path"·title="Copy·item·path·to·clipboard"><img·src="../../static.files/clipboard-7571035ce49a181d.svg"·width="19"·height="18"·alt="Copy·item·path"></button></h1><span·class="out-of-band"><span·class="since"·title="Stable·since·Rust·version·1.64.0">1.64.0</span>···<a·class="src"·href="../../src/alloc/ffi/c_str.rs.html#114-119">source</a>···<button·id="toggle-all-docs"·title="collapse·all·docs">[<span>&#x2212;</span>]</button></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
3 middle.</p>3 middle.</p>
4 <p>This·type·serves·the·purpose·of·being·able·to·safely·generate·a4 <p>This·type·serves·the·purpose·of·being·able·to·safely·generate·a
5 C-compatible·string·from·a·Rust·byte·slice·or·vector.·An·instance·of·this5 C-compatible·string·from·a·Rust·byte·slice·or·vector.·An·instance·of·this
6 type·is·a·static·guarantee·that·the·underlying·bytes·contain·no·interior·06 type·is·a·static·guarantee·that·the·underlying·bytes·contain·no·interior·0
7 bytes·(“nul·characters”)·and·that·the·final·byte·is·0·(“nul·terminator”).</p>7 bytes·(“nul·characters”)·and·that·the·final·byte·is·0·(“nul·terminator”).</p>
8 <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·former8 <p><code>CString</code>·is·to·<code>&amp;<a·href="https://doc.rust-lang.org/1.78.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:·8d489f2c31af7b774d949c94a281fdc8625b38df058a9525f75b035c7d9bdfd5·...·]/core/primitive.str.html"·title="str">str</a></code>:·the·former
9 in·each·pair·are·owned·strings;·the·latter·are·borrowed9 in·each·pair·are·owned·strings;·the·latter·are·borrowed
10 references.</p>10 references.</p>
11 <h2·id="creating-a-cstring"><a·class="doc-anchor"·href="#creating-a-cstring">§</a>Creating·a·<code>CString</code></h2>11 <h2·id="creating-a-cstring"><a·class="doc-anchor"·href="#creating-a-cstring">§</a>Creating·a·<code>CString</code></h2>
12 <p>A·<code>CString</code>·is·created·from·either·a·byte·slice·or·a·byte·vector,12 <p>A·<code>CString</code>·is·created·from·either·a·byte·slice·or·a·byte·vector,
13 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>·(for13 or·anything·that·implements·<code><a·href="https://doc.rust-lang.org/1.78.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.78.0/core/primitive.u8.html"·title="primitive·u8">u8</a>&gt;&gt;</code>·(for
14 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>·or14 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
15 a·<code>&amp;<a·href="../../core/primitive.str.html"·title="str">str</a></code>,·since·both·implement·that·trait).</p>15 a·<code>&amp;<a·href="https://doc.rust-lang.org/1.78.0/core/primitive.str.html"·title="str">str</a></code>,·since·both·implement·that·trait).</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.78.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.78.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.78.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.78.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.78.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.78.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.78.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.78.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#234-695">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#263-319">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#234-695">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#263-319">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.78.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.78[·...·truncated·by·diffoscope;·len:·112,·SHA:·170b758627afc43297ce46671fb54a682fe9f3004cce0678d4b6024ab008898a·...·]/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"·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">Run</a></div>79 }</code></pre><a·class="test-arrow"·target="_blank"·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">Run</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#342-345">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#342-345">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.78.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"·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">Run</a></div>95 }</code></pre><a·class="test-arrow"·target="_blank"·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">Run</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#399-414">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#399-414">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.78.0/core/primitive.pointer.html">*mut·</a><a·class="type"·href="https://doc.rust-lang.org/1.78.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.78.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"·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">Run</a></div>132 }</code></pre><a·class="test-arrow"·target="_blank"·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">Run</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#452-454">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#452-454">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.78.0/core/primitive.pointer.html">*mut·</a><a·class="type"·href="https://doc.rust-lang.org/1.78.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; 178843/210414 bytes (85.00%) of diff not shown.
6.2 KB
./usr/share/doc/rust-web-doc/html/alloc/fmt/derive.Debug.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="Derive·macro·generating·an·impl·of·the·trait·`Debug`."><title>Debug·in·alloc::fmt·-·Rust</title><script>·if·(window.location.protocol·!==·"file:")·document.write(`<link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/SourceSerif4-Regular-46f98efaafac5295.ttf.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/FiraSans-Regular-018c141bf0843ffd.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/FiraSans-Medium-8f9a781e4970d388.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/SourceCodePro-Regular-562dcc5011b6de7d.ttf.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/SourceCodePro-Semibold-d899c5a5c4aeb14a.ttf.woff2">`)</script><link·rel="stylesheet"·href="../../static.files/normalize-76eba96aa4d2e634.css"><link·rel="stylesheet"·href="../../static.files/rustdoc-35f9e32502181f1e.css"><meta·name="rustdoc-vars"·data-root-path="../../"·data-static-root-path="../../static.files/"·data-current-crate="alloc"·data-themes=""·data-resource-suffix="1.78.0"·data-rustdoc-version="1.78.0"·data-channel="1.78.0"·data-search-js="search-42d8da7a6b9792c2.js"·data-settings-js="settings-4313503d2e1961c2.js"·><script·src="../../static.files/storage-4c98445ec4002617.js"></script><script·defer·src="sidebar-items1.78.0.js"></script><script·defer·src="../../static.files/main-12cf3b4f4f9dc36d.js"></script><noscript><link·rel="stylesheet"·href="../../static.files/noscript-04d5337699b92874.css"></noscript><link·rel="alternate·icon"·type="image/png"·href="../../static.files/favicon-16x16-8b506e7a72182f1c.png"><link·rel="alternate·icon"·type="image/png"·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.78.0</span></h2></div><div·class="sidebar-elems"><h2><a·href="index.html">In·alloc::fmt</a></h2></div></nav><div·class="sidebar-resizer"></div>1 <!DOCTYPE·html><html·lang="en"><head><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.write(`<link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/SourceSerif4-Regular-46f98efaafac5295.ttf.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/FiraSans-Regular-018c141bf0843ffd.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/FiraSans-Medium-8f9a781e4970d388.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/SourceCodePro-Regular-562dcc5011b6de7d.ttf.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/SourceCodePro-Semibold-d899c5a5c4aeb14a.ttf.woff2">`)</script><link·rel="stylesheet"·href="../../static.files/normalize-76eba96aa4d2e634.css"><link·rel="stylesheet"·href="../../static.files/rustdoc-35f9e32502181f1e.css"><meta·name="rustdoc-vars"·data-root-path="../../"·data-static-root-path="../../static.files/"·data-current-crate="alloc"·data-themes=""·data-resource-suffix="1.78.0"·data-rustdoc-version="1.78.0"·data-channel="1.78.0"·data-search-js="search-42d8da7a6b9792c2.js"·data-settings-js="settings-4313503d2e1961c2.js"·><script·src="../../static.files/storage-4c98445ec4002617.js"></script><script·defer·src="sidebar-items1.78.0.js"></script><script·defer·src="../../static.files/main-12cf3b4f4f9dc36d.js"></script><noscript><link·rel="stylesheet"·href="../../static.files/noscript-04d5337699b92874.css"></noscript><link·rel="alternate·icon"·type="image/png"·href="../../static.files/favicon-16x16-8b506e7a72182f1c.png"><link·rel="alternate·icon"·type="image/png"·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.78.0</span></h2></div><div·class="sidebar-elems"><h2><a·href="index.html">In·alloc::fmt</a></h2></div></nav><div·class="sidebar-resizer"></div>
2 ····<main><div·class="width-limiter"><nav·class="sub"><form·class="search-form"><span></span><div·id="sidebar-button"·tabindex="-1"><a·href="../../alloc/all.html"·title="show·sidebar"></a></div><input·class="search-input"·name="search"·aria-label="Run·search·in·the·documentation"·autocomplete="off"·spellcheck="false"·placeholder="Click·or·press·‘S’·to·search,·‘?’·for·more·options…"·type="search"><div·id="help-button"·tabindex="-1"><a·href="../../help.html"·title="help">?</a></div><div·id="settings-menu"·tabindex="-1"><a·href="../../settings.html"·title="settings"><img·width="22"·height="22"·alt="Change·settings"·src="../../static.files/wheel-7b819b6101059cd0.svg"></a></div></form></nav><section·id="main-content"·class="content"><div·class="main-heading"><h1>Derive·Macro·<a·href="../index.html">alloc</a>::<wbr><a·href="index.html">fmt</a>::<wbr><a·class="derive"·href="#">Debug</a><button·id="copy-path"·title="Copy·item·path·to·clipboard"><img·src="../../static.files/clipboard-7571035ce49a181d.svg"·width="19"·height="18"·alt="Copy·item·path"></button></h1><span·class="out-of-band"><span·class="since"·title="Stable·since·Rust·version·1.38.0">1.38.0</span>···<a·class="src"·href="../../src/core/fmt/mod.rs.html#628">source</a>···<button·id="toggle-all-docs"·title="collapse·all·docs">[<span>&#x2212;</span>]</button></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 ····<main><div·class="width-limiter"><nav·class="sub"><form·class="search-form"><span></span><div·id="sidebar-button"·tabindex="-1"><a·href="../../alloc/all.html"·title="show·sidebar"></a></div><input·class="search-input"·name="search"·aria-label="Run·search·in·the·documentation"·autocomplete="off"·spellcheck="false"·placeholder="Click·or·press·‘S’·to·search,·‘?’·for·more·options…"·type="search"><div·id="help-button"·tabindex="-1"><a·href="../../help.html"·title="help">?</a></div><div·id="settings-menu"·tabindex="-1"><a·href="../../settings.html"·title="settings"><img·width="22"·height="22"·alt="Change·settings"·src="../../static.files/wheel-7b819b6101059cd0.svg"></a></div></form></nav><section·id="main-content"·class="content"><div·class="main-heading"><h1>Derive·Macro·<a·href="../index.html">alloc</a>::<wbr><a·href="index.html">fmt</a>::<wbr><a·class="derive"·href="#">Debug</a><button·id="copy-path"·title="Copy·item·path·to·clipboard"><img·src="../../static.files/clipboard-7571035ce49a181d.svg"·width="19"·height="18"·alt="Copy·item·path"></button></h1><span·class="out-of-band"><span·class="since"·title="Stable·since·Rust·version·1.38.0">1.38.0</span>···<a·class="src"·href="https://doc.rust-lang.org/1.78.0/src/core/fmt/mod.rs.html#628">source</a>···<button·id="toggle-all-docs"·title="collapse·all·docs">[<span>&#x2212;</span>]</button></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>
3 </div></details></section></div></main></body></html>3 </div></details></section></div></main></body></html>
52.3 KB
./usr/share/doc/rust-web-doc/html/alloc/fmt/enum.Alignment.html
    
Offset 1, 23 lines modifiedOffset 1, 23 lines modified
1 <!DOCTYPE·html><html·lang="en"><head><meta·charset="utf-8"><meta·name="viewport"·content="width=device-width,·initial-scale=1.0"><meta·name="generator"·content="rustdoc"><meta·name="description"·content="Possible·alignments·returned·by·`Formatter::align`"><title>Alignment·in·alloc::fmt·-·Rust</title><script>·if·(window.location.protocol·!==·"file:")·document.write(`<link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/SourceSerif4-Regular-46f98efaafac5295.ttf.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/FiraSans-Regular-018c141bf0843ffd.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/FiraSans-Medium-8f9a781e4970d388.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/SourceCodePro-Regular-562dcc5011b6de7d.ttf.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/SourceCodePro-Semibold-d899c5a5c4aeb14a.ttf.woff2">`)</script><link·rel="stylesheet"·href="../../static.files/normalize-76eba96aa4d2e634.css"><link·rel="stylesheet"·href="../../static.files/rustdoc-35f9e32502181f1e.css"><meta·name="rustdoc-vars"·data-root-path="../../"·data-static-root-path="../../static.files/"·data-current-crate="alloc"·data-themes=""·data-resource-suffix="1.78.0"·data-rustdoc-version="1.78.0"·data-channel="1.78.0"·data-search-js="search-42d8da7a6b9792c2.js"·data-settings-js="settings-4313503d2e1961c2.js"·><script·src="../../static.files/storage-4c98445ec4002617.js"></script><script·defer·src="sidebar-items1.78.0.js"></script><script·defer·src="../../static.files/main-12cf3b4f4f9dc36d.js"></script><noscript><link·rel="stylesheet"·href="../../static.files/noscript-04d5337699b92874.css"></noscript><link·rel="alternate·icon"·type="image/png"·href="../../static.files/favicon-16x16-8b506e7a72182f1c.png"><link·rel="alternate·icon"·type="image/png"·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.78.0</span></h2></div><h2·class="location"><a·href="#">Alignment</a></h2><div·class="sidebar-elems"><section><h3><a·href="#variants">Variants</a></h3><ul·class="block·variant"><li><a·href="#variant.Center">Center</a></li><li><a·href="#variant.Left">Left</a></li><li><a·href="#variant.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">Clone</a></li><li><a·href="#impl-Copy-for-Alignment">Copy</a></li><li><a·href="#impl-Debug-for-Alignment">Debug</a></li><li><a·href="#impl-Eq-for-Alignment">Eq</a></li><li><a·href="#impl-PartialEq-for-Alignment">PartialEq</a></li><li><a·href="#impl-StructuralPartialEq-for-Alignment">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">Freeze</a></li><li><a·href="#impl-RefUnwindSafe-for-Alignment">RefUnwindSafe</a></li><li><a·href="#impl-Send-for-Alignment">Send</a></li><li><a·href="#impl-Sync-for-Alignment">Sync</a></li><li><a·href="#impl-Unpin-for-Alignment">Unpin</a></li><li><a·href="#impl-UnwindSafe-for-Alignment">UnwindSafe</a></li></ul><h3><a·href="#blanket-implementations">Blanket·Implementations</a></h3><ul·class="block·blanket-implementation"><li><a·href="#impl-Any-for-T">Any</a></li><li><a·href="#impl-Borrow%3CT%3E-for-T">Borrow&lt;T&gt;</a></li><li><a·href="#impl-BorrowMut%3CT%3E-for-T">BorrowMut&lt;T&gt;</a></li><li><a·href="#impl-From%3CT%3E-for-T">From&lt;T&gt;</a></li><li><a·href="#impl-Into%3CU%3E-for-T">Into&lt;U&gt;</a></li><li><a·href="#impl-ToOwned-for-T">ToOwned</a></li><li><a·href="#impl-TryFrom%3CU%3E-for-T">TryFrom&lt;U&gt;</a></li><li><a·href="#impl-TryInto%3CU%3E-for-T">TryInto&lt;U&gt;</a></li></ul></section><h2><a·href="index.html">In·alloc::fmt</a></h2></div></nav><div·class="sidebar-resizer"></div>1 <!DOCTYPE·html><html·lang="en"><head><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.write(`<link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/SourceSerif4-Regular-46f98efaafac5295.ttf.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/FiraSans-Regular-018c141bf0843ffd.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/FiraSans-Medium-8f9a781e4970d388.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/SourceCodePro-Regular-562dcc5011b6de7d.ttf.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/SourceCodePro-Semibold-d899c5a5c4aeb14a.ttf.woff2">`)</script><link·rel="stylesheet"·href="../../static.files/normalize-76eba96aa4d2e634.css"><link·rel="stylesheet"·href="../../static.files/rustdoc-35f9e32502181f1e.css"><meta·name="rustdoc-vars"·data-root-path="../../"·data-static-root-path="../../static.files/"·data-current-crate="alloc"·data-themes=""·data-resource-suffix="1.78.0"·data-rustdoc-version="1.78.0"·data-channel="1.78.0"·data-search-js="search-42d8da7a6b9792c2.js"·data-settings-js="settings-4313503d2e1961c2.js"·><script·src="../../static.files/storage-4c98445ec4002617.js"></script><script·defer·src="sidebar-items1.78.0.js"></script><script·defer·src="../../static.files/main-12cf3b4f4f9dc36d.js"></script><noscript><link·rel="stylesheet"·href="../../static.files/noscript-04d5337699b92874.css"></noscript><link·rel="alternate·icon"·type="image/png"·href="../../static.files/favicon-16x16-8b506e7a72182f1c.png"><link·rel="alternate·icon"·type="image/png"·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.78.0</span></h2></div><h2·class="location"><a·href="#">Alignment</a></h2><div·class="sidebar-elems"><section><h3><a·href="#variants">Variants</a></h3><ul·class="block·variant"><li><a·href="#variant.Center">Center</a></li><li><a·href="#variant.Left">Left</a></li><li><a·href="#variant.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">Clone</a></li><li><a·href="#impl-Copy-for-Alignment">Copy</a></li><li><a·href="#impl-Debug-for-Alignment">Debug</a></li><li><a·href="#impl-Eq-for-Alignment">Eq</a></li><li><a·href="#impl-PartialEq-for-Alignment">PartialEq</a></li><li><a·href="#impl-StructuralPartialEq-for-Alignment">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">Freeze</a></li><li><a·href="#impl-RefUnwindSafe-for-Alignment">RefUnwindSafe</a></li><li><a·href="#impl-Send-for-Alignment">Send</a></li><li><a·href="#impl-Sync-for-Alignment">Sync</a></li><li><a·href="#impl-Unpin-for-Alignment">Unpin</a></li><li><a·href="#impl-UnwindSafe-for-Alignment">UnwindSafe</a></li></ul><h3><a·href="#blanket-implementations">Blanket·Implementations</a></h3><ul·class="block·blanket-implementation"><li><a·href="#impl-Any-for-T">Any</a></li><li><a·href="#impl-Borrow%3CT%3E-for-T">Borrow&lt;T&gt;</a></li><li><a·href="#impl-BorrowMut%3CT%3E-for-T">BorrowMut&lt;T&gt;</a></li><li><a·href="#impl-From%3CT%3E-for-T">From&lt;T&gt;</a></li><li><a·href="#impl-Into%3CU%3E-for-T">Into&lt;U&gt;</a></li><li><a·href="#impl-ToOwned-for-T">ToOwned</a></li><li><a·href="#impl-TryFrom%3CU%3E-for-T">TryFrom&lt;U&gt;</a></li><li><a·href="#impl-TryInto%3CU%3E-for-T">TryInto&lt;U&gt;</a></li></ul></section><h2><a·href="index.html">In·alloc::fmt</a></h2></div></nav><div·class="sidebar-resizer"></div>
2 ····<main><div·class="width-limiter"><nav·class="sub"><form·class="search-form"><span></span><div·id="sidebar-button"·tabindex="-1"><a·href="../../alloc/all.html"·title="show·sidebar"></a></div><input·class="search-input"·name="search"·aria-label="Run·search·in·the·documentation"·autocomplete="off"·spellcheck="false"·placeholder="Click·or·press·‘S’·to·search,·‘?’·for·more·options…"·type="search"><div·id="help-button"·tabindex="-1"><a·href="../../help.html"·title="help">?</a></div><div·id="settings-menu"·tabindex="-1"><a·href="../../settings.html"·title="settings"><img·width="22"·height="22"·alt="Change·settings"·src="../../static.files/wheel-7b819b6101059cd0.svg"></a></div></form></nav><section·id="main-content"·class="content"><div·class="main-heading"><h1>Enum·<a·href="../index.html">alloc</a>::<wbr><a·href="index.html">fmt</a>::<wbr><a·class="enum"·href="#">Alignment</a><button·id="copy-path"·title="Copy·item·path·to·clipboard"><img·src="../../static.files/clipboard-7571035ce49a181d.svg"·width="19"·height="18"·alt="Copy·item·path"></button></h1><span·class="out-of-band"><span·class="since"·title="Stable·since·Rust·version·1.28.0">1.28.0</span>···<a·class="src"·href="../../src/core/fmt/mod.rs.html#27">source</a>···<button·id="toggle-all-docs"·title="collapse·all·docs">[<span>&#x2212;</span>]</button></span></div><pre·class="rust·item-decl"><code>pub·enum·Alignment·{2 ····<main><div·class="width-limiter"><nav·class="sub"><form·class="search-form"><span></span><div·id="sidebar-button"·tabindex="-1"><a·href="../../alloc/all.html"·title="show·sidebar"></a></div><input·class="search-input"·name="search"·aria-label="Run·search·in·the·documentation"·autocomplete="off"·spellcheck="false"·placeholder="Click·or·press·‘S’·to·search,·‘?’·for·more·options…"·type="search"><div·id="help-button"·tabindex="-1"><a·href="../../help.html"·title="help">?</a></div><div·id="settings-menu"·tabindex="-1"><a·href="../../settings.html"·title="settings"><img·width="22"·height="22"·alt="Change·settings"·src="../../static.files/wheel-7b819b6101059cd0.svg"></a></div></form></nav><section·id="main-content"·class="content"><div·class="main-heading"><h1>Enum·<a·href="../index.html">alloc</a>::<wbr><a·href="index.html">fmt</a>::<wbr><a·class="enum"·href="#">Alignment</a><button·id="copy-path"·title="Copy·item·path·to·clipboard"><img·src="../../static.files/clipboard-7571035ce49a181d.svg"·width="19"·height="18"·alt="Copy·item·path"></button></h1><span·class="out-of-band"><span·class="since"·title="Stable·since·Rust·version·1.28.0">1.28.0</span>···<a·class="src"·href="https://doc.rust-lang.org/1.78.0/src/core/fmt/mod.rs.html#27">source</a>···<button·id="toggle-all-docs"·title="collapse·all·docs">[<span>&#x2212;</span>]</button></span></div><pre·class="rust·item-decl"><code>pub·enum·Alignment·{
3 ····Left,3 ····Left,
4 ····Right,4 ····Right,
5 ····Center,5 ····Center,
6 }</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 }</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>
7 </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><h3·class="code-header">Left</h3></section><div·class="docblock"><p>Indication·that·contents·should·be·left-aligned.</p>7 </div></details><h2·id="variants"·class="variants·section-header">Variants<a·href="#variants"·class="anchor">§</a></h2><div·class="variants"><section·id="variant.Left"·class="variant"><a·href="#variant.Left"·class="anchor">§</a><h3·class="code-header">Left</h3></section><div·class="docblock"><p>Indication·that·contents·should·be·left-aligned.</p>
8 </div><section·id="variant.Right"·class="variant"><a·href="#variant.Right"·class="anchor">§</a><h3·class="code-header">Right</h3></section><div·class="docblock"><p>Indication·that·contents·should·be·right-aligned.</p>8 </div><section·id="variant.Right"·class="variant"><a·href="#variant.Right"·class="anchor">§</a><h3·class="code-header">Right</h3></section><div·class="docblock"><p>Indication·that·contents·should·be·right-aligned.</p>
9 </div><section·id="variant.Center"·class="variant"><a·href="#variant.Center"·class="anchor">§</a><h3·class="code-header">Center</h3></section><div·class="docblock"><p>Indication·that·contents·should·be·center-aligned.</p>9 </div><section·id="variant.Center"·class="variant"><a·href="#variant.Center"·class="anchor">§</a><h3·class="code-header">Center</h3></section><div·class="docblock"><p>Indication·that·contents·should·be·center-aligned.</p>
10 </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"><a·class="src·rightside"·href="../../src/core/fmt/mod.rs.html#26">source</a><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"·href=[·...·truncated·by·diffoscope;·len:·3864,·SHA:·db61242f32a0bee7dd37a9b53f1ddb62f3d70c54e1e047cc5f6ab81561c4dcfd·...·]/core/primitive.bool.html">bool</a></h4></section></summary><div·class='docblock'>This·method·tests·for·<code>self</code>·and·<code>other</code>·values·to·be·equal,·and·is·used10 </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"><a·class="src·rightside"·href="https://doc.rust-lang.org/1.78.0/src/core/fmt/mod.rs.html#26">source</a><a·href="#impl-Clone-for-Alignment"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/clone/trait.Clone.html"·title="trait·c[·...·truncated·by·diffoscope;·len:·4350,·SHA:·66d2a1786be588645bf20ee1d6205de7f7b0fecacaf5a086acdebccdcee55cbc·...·]/core/primitive.bool.html">bool</a></h4></section></summary><div·class='docblock'>This·method·tests·for·<code>self</code>·and·<code>other</code>·values·to·be·equal,·and·is·used
11 by·<code>==</code>.</div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.ne"·class="method·trait-impl"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.0.0">1.0.0</span>···<a·class="src"·href="../../src/core/cmp.rs.html#263">source</a></span><a·href="#method.ne"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../../core/cmp/trait.PartialEq.html#method.ne"·class="fn">ne</a>(&amp;self,·other:·<a·class="primitive"·href="../../core/primitive[·...·truncated·by·diffoscope;·len:·69,·SHA:·bb676445ed4716783d5d8ed2fb1ff635f2577a6cd8b41db49822f9e352e394c1·...·]/core/primitive.bool.html">bool</a></h4></section></summary><div·class='docblock'>This·method·tests·for·<code>!=</code>.·The·default·implementation·is·almost·always11 by·<code>==</code>.</div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.ne"·class="method·trait-impl"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.0.0">1.0.0</span>···<a·class="src"·href="https://doc.rust-lang.org/1.78.0/src/core/cmp.rs.html#263">source</a></span><a·href="#method.ne"·class="anchor">§</a><h4·class="code-header">fn·<a·href="https://doc.rust-lang.org/1.78.0/core/cmp/trait.PartialEq.html#method.ne"·class="fn">ne</a>(&amp;self,·[·...·truncated·by·diffoscope;·len:·177,·SHA:·e1e3f9b9b78644c807cda06ba58cbf80a7a50ed17e7136cd156da5dd11dec66f·...·]/core/primitive.bool.html">bool</a></h4></section></summary><div·class='docblock'>This·method·tests·for·<code>!=</code>.·The·default·implementation·is·almost·always
12 sufficient,·and·should·not·be·overridden·without·very·good·reason.</div></details></div></details><section·id="impl-Copy-for-Alignment"·class="impl"><a·class="src·rightside"·href="../../src/core/fmt/mod.rs.html#26">source</a><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"·href="e[·...·truncated·by·diffoscope;·len:·3847,·SHA:·c0d0d9601e9c5334288af1e431b54fb78faf40f1d51e8a1976cd3a0cf8ee959d·...·]/core/any/trait.Any.html"·title="trait·core::any::Any">Any</a>·for·T<div·class="where">where12 sufficient,·and·should·not·be·overridden·without·very·good·reason.</div></details></div></details><section·id="impl-Copy-for-Alignment"·class="impl"><a·class="src·rightside"·href="https://doc.rust-lang.org/1.78.0/src/core/fmt/mod.rs.html#26">source</a><a·href="#impl-Copy-for-Alignment"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/marker/trait.Copy.html"·title="trait·co[·...·truncated·by·diffoscope;·len:·4225,·SHA:·fe1d83e08e3bf9c5919cc689d8850a890b2c3b4a51876b1e6ea752f5856a7421·...·]/core/any/trait.Any.html"·title="trait·core::any::Any">Any</a>·for·T<div·class="where">where
13 ····T:·'static·+·?<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.type_id"·class="method·trait-impl"><a·class="src·[·...·truncated·by·diffoscope;·len:·672,·SHA:·9db8bacb767d75cc3351ca7341c388130aa05ebef490d992be5374f16eedc378·...·]/src/core/borrow.rs.html#208">source</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.78.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">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:·039b8952ccb1ab7d8f15cd519cbc10f4afc149276d0f9cfd3a53117d606059df·...·]/src/core/borrow.rs.html#208">source</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="src·r[·...·truncated·by·diffoscope;·len:·629,·SHA:·b2ffbab17ff1ef71ba4c506a3aaa515da2082da6f02a53862ce1ca2b2b25f5b4·...·]/src/core/borrow.rs.html#216">source</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.78.0/core/marker/trait.Sized.html"·title="trait·core::marker::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:·952d76e7bcf7b521fffa418ce638abf69976de0942360e56f93e419ca3389394·...·]/src/core/borrow.rs.html#216">source</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="s[·...·truncated·by·diffoscope;·len:·1227,·SHA:·befefcb8cb29dc857e1f3050572f6f470317e3350e0851c4ed6e56cc38673a92·...·]/core/convert/trait.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.78.0/core/marker/trait.Sized.html"·title="trait·core::marker::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:·204bc28c8766993ff59d26bb790f1469ab686e6f172c57f35aa987a81507a7b1·...·]/core/convert/trait.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.78.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.78.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·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>17 ····U:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.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:·2cf76a8ca501b2a1fef209fed846779ab1bed3b75f52c7425335e3ce04e6b272·...·]/core/convert/trait.Into.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.78.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#83-95">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#83-95">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·href="#associ[·...·truncated·by·diffoscope;·len:·1795,·SHA:·b8c26d2756505ca680539dc8d84062e328ba98d1ac09cee9448c528adf7cafc0·...·]/core/convert/trait.TryFrom.html"·title="trait·core::convert::TryFrom">TryFrom</a>&lt;U&gt;·for·T<div·class="where">where21 ····T:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.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:·1903,·SHA:·9a4eb5c800ed211d64f5ef4bbb9fe5e4bfede4b7cdffd1e1968bf0b3d77a2705·...·]/core/convert/trait.TryFrom.html"·title="trait·core::convert::TryFrom">TryFrom</a>&lt;U&gt;·for·T<div·class="where">where
22 ····U:·<a·class="trait"·href="../../core/convert/trait.Into.html"·title="trait·core::convert::Into">Into</a>&lt;T&gt;,</div></h3></section></summary><div·class="impl-items"><details·class="toggle"·open><summary><section·id="associatedtype.Error"·class="associatedtype·trait-impl"><a·hre[·...·truncated·by·diffoscope;·len:·1591,·SHA:·8537afacf1b3cf6b9fb7db778975d49d8a8e5988d420715e464ff4a79dd696c5·...·]/core/convert/trait.TryInto.html"·title="trait·core::convert::TryInto">TryInto</a>&lt;U&gt;·for·T<div·class="where">where22 ····U:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.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"·class="associ[·...·truncated·by·diffoscope;·len:·1861,·SHA:·78398046ba16de2f66a8201a11d6a2dd405fceedeabfcaa37481e77092687e6f·...·]/core/convert/trait.TryInto.html"·title="trait·core::convert::TryInto">TryInto</a>&lt;U&gt;·for·T<div·class="where">where
23 ····U:·<a·class="trait"·href="../../core/convert/trait.TryFrom.html"·title="trait·core::convert::TryFrom">TryFrom</a>&lt;T&gt;,</div></h3></section></summary><div·class="impl-items"><details·class="toggle"·open><summary><section·id="associatedtype.Error-1"·class="associatedtype·trait-i[·...·truncated·by·diffoscope;·len:·1231,·SHA:·7843e7b6cca73922417e4154886c0df66f016d274b48933c21bdb75b67479d5b·...·]/core/convert/trait.TryFrom.html#associatedtype.Error"·title="type·core::convert::TryFrom::Error">Error</a>&gt;</h4></section></summary><div·class='docblock'>Performs·the·conversion.</div></details></div></details></div></section></div></main></body></html>23 ····U:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.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-1"·cl[·...·truncated·by·diffoscope;·len:·1474,·SHA:·ca90cccb6c86c654c95a1aaec456fbbe4b115f0d5a700e7d156e823346d70894·...·]/core/convert/trait.TryFrom.html#associatedtype.Error"·title="type·core::convert::TryFrom::Error">Error</a>&gt;</h4></section></summary><div·class='docblock'>Performs·the·conversion.</div></details></div></details></div></section></div></main></body></html>
6.2 KB
./usr/share/doc/rust-web-doc/html/alloc/fmt/fn.format.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="The·`format`·function·takes·an·`Arguments`·struct·and·returns·the·resulting·formatted·string."><title>format·in·alloc::fmt·-·Rust</title><script>·if·(window.location.protocol·!==·"file:")·document.write(`<link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/SourceSerif4-Regular-46f98efaafac5295.ttf.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/FiraSans-Regular-018c141bf0843ffd.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/FiraSans-Medium-8f9a781e4970d388.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/SourceCodePro-Regular-562dcc5011b6de7d.ttf.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/SourceCodePro-Semibold-d899c5a5c4aeb14a.ttf.woff2">`)</script><link·rel="stylesheet"·href="../../static.files/normalize-76eba96aa4d2e634.css"><link·rel="stylesheet"·href="../../static.files/rustdoc-35f9e32502181f1e.css"><meta·name="rustdoc-vars"·data-root-path="../../"·data-static-root-path="../../static.files/"·data-current-crate="alloc"·data-themes=""·data-resource-suffix="1.78.0"·data-rustdoc-version="1.78.0"·data-channel="1.78.0"·data-search-js="search-42d8da7a6b9792c2.js"·data-settings-js="settings-4313503d2e1961c2.js"·><script·src="../../static.files/storage-4c98445ec4002617.js"></script><script·defer·src="sidebar-items1.78.0.js"></script><script·defer·src="../../static.files/main-12cf3b4f4f9dc36d.js"></script><noscript><link·rel="stylesheet"·href="../../static.files/noscript-04d5337699b92874.css"></noscript><link·rel="alternate·icon"·type="image/png"·href="../../static.files/favicon-16x16-8b506e7a72182f1c.png"><link·rel="alternate·icon"·type="image/png"·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.78.0</span></h2></div><div·class="sidebar-elems"><h2><a·href="index.html">In·alloc::fmt</a></h2></div></nav><div·class="sidebar-resizer"></div>1 <!DOCTYPE·html><html·lang="en"><head><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·`format`·function·takes·an·`Arguments`·struct·and·returns·the·resulting·formatted·string."><title>format·in·alloc::fmt·-·Rust</title><script>·if·(window.location.protocol·!==·"file:")·document.write(`<link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/SourceSerif4-Regular-46f98efaafac5295.ttf.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/FiraSans-Regular-018c141bf0843ffd.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/FiraSans-Medium-8f9a781e4970d388.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/SourceCodePro-Regular-562dcc5011b6de7d.ttf.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/SourceCodePro-Semibold-d899c5a5c4aeb14a.ttf.woff2">`)</script><link·rel="stylesheet"·href="../../static.files/normalize-76eba96aa4d2e634.css"><link·rel="stylesheet"·href="../../static.files/rustdoc-35f9e32502181f1e.css"><meta·name="rustdoc-vars"·data-root-path="../../"·data-static-root-path="../../static.files/"·data-current-crate="alloc"·data-themes=""·data-resource-suffix="1.78.0"·data-rustdoc-version="1.78.0"·data-channel="1.78.0"·data-search-js="search-42d8da7a6b9792c2.js"·data-settings-js="settings-4313503d2e1961c2.js"·><script·src="../../static.files/storage-4c98445ec4002617.js"></script><script·defer·src="sidebar-items1.78.0.js"></script><script·defer·src="../../static.files/main-12cf3b4f4f9dc36d.js"></script><noscript><link·rel="stylesheet"·href="../../static.files/noscript-04d5337699b92874.css"></noscript><link·rel="alternate·icon"·type="image/png"·href="../../static.files/favicon-16x16-8b506e7a72182f1c.png"><link·rel="alternate·icon"·type="image/png"·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.78.0</span></h2></div><div·class="sidebar-elems"><h2><a·href="index.html">In·alloc::fmt</a></h2></div></nav><div·class="sidebar-resizer"></div>
2 ····<main><div·class="width-limiter"><nav·class="sub"><form·class="search-form"><span></span><div·id="sidebar-button"·tabindex="-1"><a·href="../../alloc/all.html"·title="show·sidebar"></a></div><input·class="search-input"·name="search"·aria-label="Run·search·in·the·documentation"·autocomplete="off"·spellcheck="false"·placeholder="Click·or·press·‘S’·to·search,·‘?’·for·more·options…"·type="search"><div·id="help-button"·tabindex="-1"><a·href="../../help.html"·title="help">?</a></div><div·id="settings-menu"·tabindex="-1"><a·href="../../settings.html"·title="settings"><img·width="22"·height="22"·alt="Change·settings"·src="../../static.files/wheel-7b819b6101059cd0.svg"></a></div></form></nav><section·id="main-content"·class="content"><div·class="main-heading"><h1>Function·<a·href="../index.html">alloc</a>::<wbr><a·href="index.html">fmt</a>::<wbr><a·class="fn"·href="#">format</a><button·id="copy-path"·title="Copy·item·path·to·clipboard"><img·src="../../static.files/clipboard-7571035ce49a181d.svg"·width="19"·height="18"·alt="Copy·item·path"></button></h1><span·class="out-of-band"><span·class="since"·title="Stable·since·Rust·version·1.0.0">1.0.0</span>···<a·class="src"·href="../../src/alloc/fmt.rs.html#629-638">source</a>···<button·id="toggle-all-docs"·title="collapse·all·docs">[<span>&#x2212;</span>]</button></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>The·<code>format</code>·function·takes·an·<a·href="struct.Arguments.html"·title="struct·alloc::fmt::Arguments"><code>Arguments</code></a>·struct·and·returns·the·resulting2 ····<main><div·class="width-limiter"><nav·class="sub"><form·class="search-form"><span></span><div·id="sidebar-button"·tabindex="-1"><a·href="../../alloc/all.html"·title="show·sidebar"></a></div><input·class="search-input"·name="search"·aria-label="Run·search·in·the·documentation"·autocomplete="off"·spellcheck="false"·placeholder="Click·or·press·‘S’·to·search,·‘?’·for·more·options…"·type="search"><div·id="help-button"·tabindex="-1"><a·href="../../help.html"·title="help">?</a></div><div·id="settings-menu"·tabindex="-1"><a·href="../../settings.html"·title="settings"><img·width="22"·height="22"·alt="Change·settings"·src="../../static.files/wheel-7b819b6101059cd0.svg"></a></div></form></nav><section·id="main-content"·class="content"><div·class="main-heading"><h1>Function·<a·href="../index.html">alloc</a>::<wbr><a·href="index.html">fmt</a>::<wbr><a·class="fn"·href="#">format</a><button·id="copy-path"·title="Copy·item·path·to·clipboard"><img·src="../../static.files/clipboard-7571035ce49a181d.svg"·width="19"·height="18"·alt="Copy·item·path"></button></h1><span·class="out-of-band"><span·class="since"·title="Stable·since·Rust·version·1.0.0">1.0.0</span>···<a·class="src"·href="../../src/alloc/fmt.rs.html#629-638">source</a>···<button·id="toggle-all-docs"·title="collapse·all·docs">[<span>&#x2212;</span>]</button></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>The·<code>format</code>·function·takes·an·<a·href="struct.Arguments.html"·title="struct·alloc::fmt::Arguments"><code>Arguments</code></a>·struct·and·returns·the·resulting
3 formatted·string.</p>3 formatted·string.</p>
4 <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>4 <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.78.0/core/macro.format_args.html"·title="macro·core::format_args"><code>format_args!</code></a>·macro.</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>s·=·fmt::format(<span·class="macro">format_args!</span>(<span·class="string">"Hello,·{}!"</span>,·<span·class="string">"world"</span>));8 <span·class="kw">let·</span>s·=·fmt::format(<span·class="macro">format_args!</span>(<span·class="string">"Hello,·{}!"</span>,·<span·class="string">"world"</span>));
9 <span·class="macro">assert_eq!</span>(s,·<span·class="string">"Hello,·world!"</span>);</code></pre><a·class="test-arrow"·target="_blank"·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">Run</a></div>9 <span·class="macro">assert_eq!</span>(s,·<span·class="string">"Hello,·world!"</span>);</code></pre><a·class="test-arrow"·target="_blank"·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">Run</a></div>
9.74 KB
./usr/share/doc/rust-web-doc/html/alloc/fmt/fn.write.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="The·`write`·function·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.write(`<link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/SourceSerif4-Regular-46f98efaafac5295.ttf.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/FiraSans-Regular-018c141bf0843ffd.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/FiraSans-Medium-8f9a781e4970d388.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/SourceCodePro-Regular-562dcc5011b6de7d.ttf.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/SourceCodePro-Semibold-d899c5a5c4aeb14a.ttf.woff2">`)</script><link·rel="stylesheet"·href="../../static.files/normalize-76eba96aa4d2e634.css"><link·rel="stylesheet"·href="../../static.files/rustdoc-35f9e32502181f1e.css"><meta·name="rustdoc-vars"·data-root-path="../../"·data-static-root-path="../../static.files/"·data-current-crate="alloc"·data-themes=""·data-resource-suffix="1.78.0"·data-rustdoc-version="1.78.0"·data-channel="1.78.0"·data-search-js="search-42d8da7a6b9792c2.js"·data-settings-js="settings-4313503d2e1961c2.js"·><script·src="../../static.files/storage-4c98445ec4002617.js"></script><script·defer·src="sidebar-items1.78.0.js"></script><script·defer·src="../../static.files/main-12cf3b4f4f9dc36d.js"></script><noscript><link·rel="stylesheet"·href="../../static.files/noscript-04d5337699b92874.css"></noscript><link·rel="alternate·icon"·type="image/png"·href="../../static.files/favicon-16x16-8b506e7a72182f1c.png"><link·rel="alternate·icon"·type="image/png"·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.78.0</span></h2></div><div·class="sidebar-elems"><h2><a·href="index.html">In·alloc::fmt</a></h2></div></nav><div·class="sidebar-resizer"></div>1 <!DOCTYPE·html><html·lang="en"><head><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·`write`·function·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.write(`<link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/SourceSerif4-Regular-46f98efaafac5295.ttf.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/FiraSans-Regular-018c141bf0843ffd.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/FiraSans-Medium-8f9a781e4970d388.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/SourceCodePro-Regular-562dcc5011b6de7d.ttf.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/SourceCodePro-Semibold-d899c5a5c4aeb14a.ttf.woff2">`)</script><link·rel="stylesheet"·href="../../static.files/normalize-76eba96aa4d2e634.css"><link·rel="stylesheet"·href="../../static.files/rustdoc-35f9e32502181f1e.css"><meta·name="rustdoc-vars"·data-root-path="../../"·data-static-root-path="../../static.files/"·data-current-crate="alloc"·data-themes=""·data-resource-suffix="1.78.0"·data-rustdoc-version="1.78.0"·data-channel="1.78.0"·data-search-js="search-42d8da7a6b9792c2.js"·data-settings-js="settings-4313503d2e1961c2.js"·><script·src="../../static.files/storage-4c98445ec4002617.js"></script><script·defer·src="sidebar-items1.78.0.js"></script><script·defer·src="../../static.files/main-12cf3b4f4f9dc36d.js"></script><noscript><link·rel="stylesheet"·href="../../static.files/noscript-04d5337699b92874.css"></noscript><link·rel="alternate·icon"·type="image/png"·href="../../static.files/favicon-16x16-8b506e7a72182f1c.png"><link·rel="alternate·icon"·type="image/png"·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.78.0</span></h2></div><div·class="sidebar-elems"><h2><a·href="index.html">In·alloc::fmt</a></h2></div></nav><div·class="sidebar-resizer"></div>
2 ····<main><div·class="width-limiter"><nav·class="sub"><form·class="search-form"><span></span><div·id="sidebar-button"·tabindex="-1"><a·href="../../alloc/all.html"·title="show·sidebar"></a></div><input·class="search-input"·name="search"·aria-label="Run·search·in·the·documentation"·autocomplete="off"·spellcheck="false"·placeholder="Click·or·press·‘S’·to·search,·‘?’·for·more·options…"·type="search"><div·id="help-button"·tabindex="-1"><a·href="../../help.html"·title="help">?</a></div><div·id="settings-menu"·tabindex="-1"><a·href="../../settings.html"·title="settings"><img·width="22"·height="22"·alt="Change·settings"·src="../../static.files/wheel-7b819b6101059cd0.svg"></a></div></form></nav><section·id="main-content"·class="content"><div·class="main-heading"><h1>Function·<a·href="../index.html">alloc</a>::<wbr><a·href="index.html">fmt</a>::<wbr><a·class="fn"·href="#">write</a><button·id="copy-path"·title="Copy·item·path·to·clipboard"><img·src="../../static.files/clipboard-7571035ce49a181d.svg"·width="19"·height="18"·alt="Copy·item·path"></button></h1><span·class="out-of-band"><span·class="since"·title="Stable·since·Rust·version·1.0.0">1.0.0</span>···<a·class="src"·href="../../src/core/fmt/mod.rs.html#1139">source</a>···<button·id="toggle-all-docs"·title="collapse·all·docs">[<span>&#x2212;</span>]</button></span></div><pre·class="rust·item-decl"><code>pub·fn·write(output:·&amp;mut·dyn·<a·class="trait"·href="trait.Write.htm[·...·truncated·by·diffoscope;·len:·305,·SHA:·d3fa237e3b0519334ccbcad5fc5c740ec518e20f81dcced5cd17032efe792083·...·]/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·<code>write</code>·function·takes·an·output·stream,·and·an·<code>Arguments</code>·struct2 ····<main><div·class="width-limiter"><nav·class="sub"><form·class="search-form"><span></span><div·id="sidebar-button"·tabindex="-1"><a·href="../../alloc/all.html"·title="show·sidebar"></a></div><input·class="search-input"·name="search"·aria-label="Run·search·in·the·documentation"·autocomplete="off"·spellcheck="false"·placeholder="Click·or·press·‘S’·to·search,·‘?’·for·more·options…"·type="search"><div·id="help-button"·tabindex="-1"><a·href="../../help.html"·title="help">?</a></div><div·id="settings-menu"·tabindex="-1"><a·href="../../settings.html"·title="settings"><img·width="22"·height="22"·alt="Change·settings"·src="../../static.files/wheel-7b819b6101059cd0.svg"></a></div></form></nav><section·id="main-content"·class="content"><div·class="main-heading"><h1>Function·<a·href="../index.html">alloc</a>::<wbr><a·href="index.html">fmt</a>::<wbr><a·class="fn"·href="#">write</a><button·id="copy-path"·title="Copy·item·path·to·clipboard"><img·src="../../static.files/clipboard-7571035ce49a181d.svg"·width="19"·height="18"·alt="Copy·item·path"></button></h1><span·class="out-of-band"><span·class="since"·title="Stable·since·Rust·version·1.0.0">1.0.0</span>···<a·class="src"·href="https://doc.rust-lang.org/1.78.0/src/core/fmt/mod.rs.html#1139">source</a>···<button·id="toggle-all-docs"·title="collapse·all·docs">[<span>&#x2212;</span>]</button></span></div><pre·class="rust·item-decl"><code>pub·fn·write(output:·&amp;mut·dyn·<a·class="t[·...·truncated·by·diffoscope;·len:·386,·SHA:·137759e5a71a712c36a1225fbdc3ee82000a3b12922d5a1ea07d299e7af1053e·...·]/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·<code>write</code>·function·takes·an·output·stream,·and·an·<code>Arguments</code>·struct
3 that·can·be·precompiled·with·the·<code>format_args!</code>·macro.</p>3 that·can·be·precompiled·with·the·<code>format_args!</code>·macro.</p>
4 <p>The·arguments·will·be·formatted·according·to·the·specified·format·string4 <p>The·arguments·will·be·formatted·according·to·the·specified·format·string
5 into·the·output·stream·provided.</p>5 into·the·output·stream·provided.</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 <div·class="example-wrap"><pre·class="rust·rust-example-rendered"><code><span·class="kw">use·</span>std::fmt;8 <div·class="example-wrap"><pre·class="rust·rust-example-rendered"><code><span·class="kw">use·</span>std::fmt;
  
9 <span·class="kw">let·</span><span·class="kw-2">mut·</span>output·=·String::new();9 <span·class="kw">let·</span><span·class="kw-2">mut·</span>output·=·String::new();
10 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 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>))
11 ····.expect(<span·class="string">"Error·occurred·while·trying·to·write·in·String"</span>);11 ····.expect(<span·class="string">"Error·occurred·while·trying·to·write·in·String"</span>);
12 <span·class="macro">assert_eq!</span>(output,·<span·class="string">"Hello·world!"</span>);</code></pre><a·class="test-arrow"·target="_blank"·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">Run</a></div>12 <span·class="macro">assert_eq!</span>(output,·<span·class="string">"Hello·world!"</span>);</code></pre><a·class="test-arrow"·target="_blank"·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">Run</a></div>
13 <p>Please·note·that·using·<a·href="../../core/macro.write.html"·title="macro·core::write"><code>write!</code></a>·might·be·preferable.·Example:</p>13 <p>Please·note·that·using·<a·href="https://doc.rust-lang.org/1.78.0/core/macro.write.html"·title="macro·core::write"><code>write!</code></a>·might·be·preferable.·Example:</p>
  
14 <div·class="example-wrap"><pre·class="rust·rust-example-rendered"><code><span·class="kw">use·</span>std::fmt::Write;14 <div·class="example-wrap"><pre·class="rust·rust-example-rendered"><code><span·class="kw">use·</span>std::fmt::Write;
  
15 <span·class="kw">let·</span><span·class="kw-2">mut·</span>output·=·String::new();15 <span·class="kw">let·</span><span·class="kw-2">mut·</span>output·=·String::new();
16 <span·class="macro">write!</span>(<span·class="kw-2">&amp;mut·</span>output,·<span·class="string">"Hello·{}!"</span>,·<span·class="string">"world"</span>)16 <span·class="macro">write!</span>(<span·class="kw-2">&amp;mut·</span>output,·<span·class="string">"Hello·{}!"</span>,·<span·class="string">"world"</span>)
17 ····.expect(<span·class="string">"Error·occurred·while·trying·to·write·in·String"</span>);17 ····.expect(<span·class="string">"Error·occurred·while·trying·to·write·in·String"</span>);
18 <span·class="macro">assert_eq!</span>(output,·<span·class="string">"Hello·world!"</span>);</code></pre><a·class="test-arrow"·target="_blank"·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">Run</a></div>18 <span·class="macro">assert_eq!</span>(output,·<span·class="string">"Hello·world!"</span>);</code></pre><a·class="test-arrow"·target="_blank"·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">Run</a></div>
12.5 KB
./usr/share/doc/rust-web-doc/html/alloc/fmt/index.html
    
Offset 85, 17 lines modifiedOffset 85, 17 lines modified
85 <span·class="macro">println!</span>(<span·class="string">"Hello·{:width$}!"</span>,·<span·class="string">"x"</span>,·width·=·<span·class="number">5</span>);85 <span·class="macro">println!</span>(<span·class="string">"Hello·{:width$}!"</span>,·<span·class="string">"x"</span>,·width·=·<span·class="number">5</span>);
86 <span·class="kw">let·</span>width·=·<span·class="number">5</span>;86 <span·class="kw">let·</span>width·=·<span·class="number">5</span>;
87 <span·class="macro">println!</span>(<span·class="string">"Hello·{:width$}!"</span>,·<span·class="string">"x"</span>);</code></pre><a·class="test-arrow"·target="_blank"·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">Run</a></div>87 <span·class="macro">println!</span>(<span·class="string">"Hello·{:width$}!"</span>,·<span·class="string">"x"</span>);</code></pre><a·class="test-arrow"·target="_blank"·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">Run</a></div>
88 <p>This·is·a·parameter·for·the·“minimum·width”·that·the·format·should·take·up.88 <p>This·is·a·parameter·for·the·“minimum·width”·that·the·format·should·take·up.
89 If·the·value’s·string·does·not·fill·up·this·many·characters,·then·the89 If·the·value’s·string·does·not·fill·up·this·many·characters,·then·the
90 padding·specified·by·fill/alignment·will·be·used·to·take·up·the·required90 padding·specified·by·fill/alignment·will·be·used·to·take·up·the·required
91 space·(see·below).</p>91 space·(see·below).</p>
92 <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·of92 <p>The·value·for·the·width·can·also·be·provided·as·a·<a·href="https://doc.rust-lang.org/1.78.0/core/primitive.usize.html"·title="primitive·usize"><code>usize</code></a>·in·the·list·of
93 parameters·by·adding·a·postfix·<code>$</code>,·indicating·that·the·second·argument·is93 parameters·by·adding·a·postfix·<code>$</code>,·indicating·that·the·second·argument·is
94 a·<a·href="../../core/primitive.usize.html"·title="primitive·usize"><code>usize</code></a>·specifying·the·width.</p>94 a·<a·href="https://doc.rust-lang.org/1.78.0/core/primitive.usize.html"·title="primitive·usize"><code>usize</code></a>·specifying·the·width.</p>
95 <p>Referring·to·an·argument·with·the·dollar·syntax·does·not·affect·the·“next95 <p>Referring·to·an·argument·with·the·dollar·syntax·does·not·affect·the·“next
96 argument”·counter,·so·it’s·usually·a·good·idea·to·refer·to·arguments·by96 argument”·counter,·so·it’s·usually·a·good·idea·to·refer·to·arguments·by
97 position,·or·use·named·arguments.</p>97 position,·or·use·named·arguments.</p>
98 <h3·id="fillalignment"><a·class="doc-anchor"·href="#fillalignment">§</a>Fill/Alignment</h3>98 <h3·id="fillalignment"><a·class="doc-anchor"·href="#fillalignment">§</a>Fill/Alignment</h3>
99 <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>);99 <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>);
100 <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>);100 <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>);
101 <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>);101 <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 275, 24 lines modifiedOffset 275, 24 lines modified
275 type·:=·&#39;&#39;·|·&#39;?&#39;·|·&#39;x?&#39;·|·&#39;X?&#39;·|·identifier275 type·:=·&#39;&#39;·|·&#39;?&#39;·|·&#39;x?&#39;·|·&#39;X?&#39;·|·identifier
276 count·:=·parameter·|·integer276 count·:=·parameter·|·integer
277 parameter·:=·argument·&#39;$&#39;277 parameter·:=·argument·&#39;$&#39;
278 </code></pre></div>278 </code></pre></div>
279 <p>In·the·above·grammar,</p>279 <p>In·the·above·grammar,</p>
280 <ul>280 <ul>
281 <li><code>text</code>·must·not·contain·any·<code>'{'</code>·or·<code>'}'</code>·characters,</li>281 <li><code>text</code>·must·not·contain·any·<code>'{'</code>·or·<code>'}'</code>·characters,</li>
282 <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·semantic282 <li><code>ws</code>·is·any·character·for·which·<a·href="https://doc.rust-lang.org/1.78.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
283 meaning·and·is·completely·optional,</li>283 meaning·and·is·completely·optional,</li>
284 <li><code>integer</code>·is·a·decimal·integer·that·may·contain·leading·zeroes·and·must·fit·into·an·<code>usize</code>·and</li>284 <li><code>integer</code>·is·a·decimal·integer·that·may·contain·leading·zeroes·and·must·fit·into·an·<code>usize</code>·and</li>
285 <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>285 <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>
286 </ul>286 </ul>
287 <h2·id="formatting-traits"><a·class="doc-anchor"·href="#formatting-traits">§</a>Formatting·traits</h2>287 <h2·id="formatting-traits"><a·class="doc-anchor"·href="#formatting-traits">§</a>Formatting·traits</h2>
288 <p>When·requesting·that·an·argument·be·formatted·with·a·particular·type,·you288 <p>When·requesting·that·an·argument·be·formatted·with·a·particular·type,·you
289 are·actually·requesting·that·an·argument·ascribes·to·a·particular·trait.289 are·actually·requesting·that·an·argument·ascribes·to·a·particular·trait.
290 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>·as290 This·allows·multiple·actual·types·to·be·formatted·via·<code>{:x}</code>·(like·<a·href="https://doc.rust-lang.org/1.78.0/core/primitive.i8.html"·title="primitive·i8"><code>i8</code></a>·as
291 well·as·<a·href="../../core/primitive.isize.html"·title="primitive·isize"><code>isize</code></a>).·The·current·mapping·of·types·to·traits·is:</p>291 well·as·<a·href="https://doc.rust-lang.org/1.78.0/core/primitive.isize.html"·title="primitive·isize"><code>isize</code></a>).·The·current·mapping·of·types·to·traits·is:</p>
292 <ul>292 <ul>
293 <li><em>nothing</em>··<a·href="trait.Display.html"·title="trait·alloc::fmt::Display"><code>Display</code></a></li>293 <li><em>nothing</em>··<a·href="trait.Display.html"·title="trait·alloc::fmt::Display"><code>Display</code></a></li>
294 <li><code>?</code>··<a·href="trait.Debug.html"·title="trait·alloc::fmt::Debug"><code>Debug</code></a></li>294 <li><code>?</code>··<a·href="trait.Debug.html"·title="trait·alloc::fmt::Debug"><code>Debug</code></a></li>
295 <li><code>x?</code>··<a·href="trait.Debug.html"·title="trait·alloc::fmt::Debug"><code>Debug</code></a>·with·lower-case·hexadecimal·integers</li>295 <li><code>x?</code>··<a·href="trait.Debug.html"·title="trait·alloc::fmt::Debug"><code>Debug</code></a>·with·lower-case·hexadecimal·integers</li>
296 <li><code>X?</code>··<a·href="trait.Debug.html"·title="trait·alloc::fmt::Debug"><code>Debug</code></a>·with·upper-case·hexadecimal·integers</li>296 <li><code>X?</code>··<a·href="trait.Debug.html"·title="trait·alloc::fmt::Debug"><code>Debug</code></a>·with·upper-case·hexadecimal·integers</li>
297 <li><code>o</code>··<a·href="trait.Octal.html"·title="trait·alloc::fmt::Octal"><code>Octal</code></a></li>297 <li><code>o</code>··<a·href="trait.Octal.html"·title="trait·alloc::fmt::Octal"><code>Octal</code></a></li>
298 <li><code>x</code>··<a·href="trait.LowerHex.html"·title="trait·alloc::fmt::LowerHex"><code>LowerHex</code></a></li>298 <li><code>x</code>··<a·href="trait.LowerHex.html"·title="trait·alloc::fmt::LowerHex"><code>LowerHex</code></a></li>
Offset 314, 17 lines modifiedOffset 314, 17 lines modified
314 <p>Your·type·will·be·passed·as·<code>self</code>·by-reference,·and·then·the·function314 <p>Your·type·will·be·passed·as·<code>self</code>·by-reference,·and·then·the·function
315 should·emit·output·into·the·Formatter·<code>f</code>·which·implements·<code>fmt::Write</code>.·It·is·up·to·each315 should·emit·output·into·the·Formatter·<code>f</code>·which·implements·<code>fmt::Write</code>.·It·is·up·to·each
316 format·trait·implementation·to·correctly·adhere·to·the·requested·formatting·parameters.316 format·trait·implementation·to·correctly·adhere·to·the·requested·formatting·parameters.
317 The·values·of·these·parameters·can·be·accessed·with·methods·of·the317 The·values·of·these·parameters·can·be·accessed·with·methods·of·the
318 <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·also318 <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
319 provides·some·helper·methods.</p>319 provides·some·helper·methods.</p>
320 <p>Additionally,·the·return·value·of·this·function·is·<a·href="type.Result.html"·title="fmt::Result"><code>fmt::Result</code></a>·which·is·a320 <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
321 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·implementations321 type·alias·of·<code><a·href="https://doc.rust-lang.org/1.78.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
322 should·ensure·that·they·propagate·errors·from·the·<a·href="struct.Formatter.html"·title="struct·alloc::fmt::Formatter"><code>Formatter</code></a>·(e.g.,·when322 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
323 calling·<a·href="../../core/macro.write.html"·title="macro·core::write"><code>write!</code></a>).·However,·they·should·never·return·errors·spuriously.·That323 calling·<a·href="https://doc.rust-lang.org/1.78.0/core/macro.write.html"·title="macro·core::write"><code>write!</code></a>).·However,·they·should·never·return·errors·spuriously.·That
324 is,·a·formatting·implementation·must·and·may·only·return·an·error·if·the324 is,·a·formatting·implementation·must·and·may·only·return·an·error·if·the
325 passed-in·<a·href="struct.Formatter.html"·title="struct·alloc::fmt::Formatter"><code>Formatter</code></a>·returns·an·error.·This·is·because,·contrary·to·what325 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
326 the·function·signature·might·suggest,·string·formatting·is·an·infallible326 the·function·signature·might·suggest,·string·formatting·is·an·infallible
327 operation.·This·function·only·returns·a·result·because·writing·to·the327 operation.·This·function·only·returns·a·result·because·writing·to·the
328 underlying·stream·might·fail·and·it·must·provide·a·way·to·propagate·the·fact328 underlying·stream·might·fail·and·it·must·provide·a·way·to·propagate·the·fact
329 that·an·error·has·occurred·back·up·the·stack.</p>329 that·an·error·has·occurred·back·up·the·stack.</p>
330 <p>An·example·of·implementing·the·formatting·traits·would·look330 <p>An·example·of·implementing·the·formatting·traits·would·look
Offset 396, 25 lines modifiedOffset 396, 25 lines modified
396 </span><span·class="macro">writeln!</span>·····<span·class="comment">//·same·as·write·but·appends·a·newline396 </span><span·class="macro">writeln!</span>·····<span·class="comment">//·same·as·write·but·appends·a·newline
397 </span><span·class="macro">print!</span>·······<span·class="comment">//·the·format·string·is·printed·to·the·standard·output397 </span><span·class="macro">print!</span>·······<span·class="comment">//·the·format·string·is·printed·to·the·standard·output
398 </span><span·class="macro">println!</span>·····<span·class="comment">//·same·as·print·but·appends·a·newline398 </span><span·class="macro">println!</span>·····<span·class="comment">//·same·as·print·but·appends·a·newline
399 </span><span·class="macro">eprint!</span>······<span·class="comment">//·the·format·string·is·printed·to·the·standard·error399 </span><span·class="macro">eprint!</span>······<span·class="comment">//·the·format·string·is·printed·to·the·standard·error
400 </span><span·class="macro">eprintln!</span>····<span·class="comment">//·same·as·eprint·but·appends·a·newline400 </span><span·class="macro">eprintln!</span>····<span·class="comment">//·same·as·eprint·but·appends·a·newline
401 </span><span·class="macro">format_args!</span>·<span·class="comment">//·described·below.</span></code></pre><a·class="test-arrow"·target="_blank"·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">Run</a></div>401 </span><span·class="macro">format_args!</span>·<span·class="comment">//·described·below.</span></code></pre><a·class="test-arrow"·target="_blank"·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">Run</a></div>
402 <h4·id="write"><a·class="doc-anchor"·href="#write">§</a><code>write!</code></h4>402 <h4·id="write"><a·class="doc-anchor"·href="#write">§</a><code>write!</code></h4>
403 <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·string403 <p><a·href="https://doc.rust-lang.org/1.78.0/core/macro.write.html"·title="macro·core::write"><code>write!</code></a>·and·<a·href="https://doc.rust-lang.org/1.78.0/core/macro.writeln.html"·title="macro·core::writeln"><code>writeln!</code></a>·are·two·macros·which·are·used·to·emit·the·format·string
404 to·a·specified·stream.·This·is·used·to·prevent·intermediate·allocations·of404 to·a·specified·stream.·This·is·used·to·prevent·intermediate·allocations·of
405 format·strings·and·instead·directly·write·the·output.·Under·the·hood,·this405 format·strings·and·instead·directly·write·the·output.·Under·the·hood,·this
406 function·is·actually·invoking·the·<a·href="../../std/io/trait.Write.html#method.write_fmt"><code>write_fmt</code></a>·function·defined·on·the406 function·is·actually·invoking·the·<a·href="../../std/io/trait.Write.html#method.write_fmt"><code>write_fmt</code></a>·function·defined·on·the
407 <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>407 <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>
  
408 <div·class="example-wrap"><pre·class="rust·rust-example-rendered"><code><span·class="kw">use·</span>std::io::Write;408 <div·class="example-wrap"><pre·class="rust·rust-example-rendered"><code><span·class="kw">use·</span>std::io::Write;
409 <span·class="kw">let·</span><span·class="kw-2">mut·</span>w·=·Vec::new();409 <span·class="kw">let·</span><span·class="kw-2">mut·</span>w·=·Vec::new();
410 <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"·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">Run</a></div>410 <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"·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">Run</a></div>
411 <h4·id="print"><a·class="doc-anchor"·href="#print">§</a><code>print!</code></h4>411 <h4·id="print"><a·class="doc-anchor"·href="#print">§</a><code>print!</code></h4>
412 <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>412 <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.78.0/core/macro.write.html"·title="macro·core::write"><code>write!</code></a>
413 macro,·the·goal·of·these·macros·is·to·avoid·intermediate·allocations·when413 macro,·the·goal·of·these·macros·is·to·avoid·intermediate·allocations·when
414 printing·output.·Example·usage·is:</p>414 printing·output.·Example·usage·is:</p>
  
415 <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>);415 <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>);
416 <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"·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">Run</a></div>416 <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"·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">Run</a></div>
417 <h4·id="eprint"><a·class="doc-anchor"·href="#eprint">§</a><code>eprint!</code></h4>417 <h4·id="eprint"><a·class="doc-anchor"·href="#eprint">§</a><code>eprint!</code></h4>
418 <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·to418 <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
59.6 KB
./usr/share/doc/rust-web-doc/html/alloc/fmt/struct.Arguments.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="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.write(`<link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/SourceSerif4-Regular-46f98efaafac5295.ttf.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/FiraSans-Regular-018c141bf0843ffd.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/FiraSans-Medium-8f9a781e4970d388.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/SourceCodePro-Regular-562dcc5011b6de7d.ttf.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/SourceCodePro-Semibold-d899c5a5c4aeb14a.ttf.woff2">`)</script><link·rel="stylesheet"·href="../../static.files/normalize-76eba96aa4d2e634.css"><link·rel="stylesheet"·href="../../static.files/rustdoc-35f9e32502181f1e.css"><meta·name="rustdoc-vars"·data-root-path="../../"·data-static-root-path="../../static.files/"·data-current-crate="alloc"·data-themes=""·data-resource-suffix="1.78.0"·data-rustdoc-version="1.78.0"·data-channel="1.78.0"·data-search-js="search-42d8da7a6b9792c2.js"·data-settings-js="settings-4313503d2e1961c2.js"·><script·src="../../static.files/storage-4c98445ec4002617.js"></script><script·defer·src="sidebar-items1.78.0.js"></script><script·defer·src="../../static.files/main-12cf3b4f4f9dc36d.js"></script><noscript><link·rel="stylesheet"·href="../../static.files/noscript-04d5337699b92874.css"></noscript><link·rel="alternate·icon"·type="image/png"·href="../../static.files/favicon-16x16-8b506e7a72182f1c.png"><link·rel="alternate·icon"·type="image/png"·href="../../static.files/favicon-32x32-422f7d1d52889060.png"><link·rel="icon"·type="image/svg+xml"·href="../../static.files/favicon-2c020d218678b618.svg"></head><body·class="rustdoc·struct"><!--[if·lte·IE·11]><div·class="warning">This·old·browser·is·unsupported·and·will·most·likely·display·funky·things.</div><![endif]--><nav·class="mobile-topbar"><button·class="sidebar-menu-toggle"·title="show·sidebar"></button><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-151179464ae7ed46.svg"·alt=""></a></nav><nav·class="sidebar"><div·class="sidebar-crate"><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-151179464ae7ed46.svg"·alt="logo"></a><h2><a·href="../../alloc/index.html">alloc</a><span·class="version">1.78.0</span></h2></div><h2·class="location"><a·href="#">Arguments</a></h2><div·class="sidebar-elems"><section><h3><a·href="#implementations">Methods</a></h3><ul·class="block·method"><li><a·href="#method.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-Arguments%3C'a%3E">Clone</a></li><li><a·href="#impl-Copy-for-Arguments%3C'a%3E">Copy</a></li><li><a·href="#impl-Debug-for-Arguments%3C'_%3E">Debug</a></li><li><a·href="#impl-Display-for-Arguments%3C'_%3E">Display</a></li></ul><h3><a·href="#synthetic-implementations">Auto·Trait·Implementations</a></h3><ul·class="block·synthetic-implementation"><li><a·href="#impl-RefUnwindSafe-for-Arguments%3C'a%3E">!RefUnwindSafe</a></li><li><a·href="#impl-Send-for-Arguments%3C'a%3E">!Send</a></li><li><a·href="#impl-Sync-for-Arguments%3C'a%3E">!Sync</a></li><li><a·href="#impl-UnwindSafe-for-Arguments%3C'a%3E">!UnwindSafe</a></li><li><a·href="#impl-Freeze-for-Arguments%3C'a%3E">Freeze</a></li><li><a·href="#impl-Unpin-for-Arguments%3C'a%3E">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">Any</a></li><li><a·href="#impl-Borrow%3CT%3E-for-T">Borrow&lt;T&gt;</a></li><li><a·href="#impl-BorrowMut%3CT%3E-for-T">BorrowMut&lt;T&gt;</a></li><li><a·href="#impl-From%3CT%3E-for-T">From&lt;T&gt;</a></li><li><a·href="#impl-Into%3CU%3E-for-T">Into&lt;U&gt;</a></li><li><a·href="#impl-ToOwned-for-T">ToOwned</a></li><li><a·href="#impl-ToString-for-T">ToString</a></li><li><a·href="#impl-TryFrom%3CU%3E-for-T">TryFrom&lt;U&gt;</a></li><li><a·href="#impl-TryInto%3CU%3E-for-T">TryInto&lt;U&gt;</a></li></ul></section><h2><a·href="index.html">In·alloc::fmt</a></h2></div></nav><div·class="sidebar-resizer"></div>1 <!DOCTYPE·html><html·lang="en"><head><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.write(`<link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/SourceSerif4-Regular-46f98efaafac5295.ttf.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/FiraSans-Regular-018c141bf0843ffd.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/FiraSans-Medium-8f9a781e4970d388.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/SourceCodePro-Regular-562dcc5011b6de7d.ttf.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/SourceCodePro-Semibold-d899c5a5c4aeb14a.ttf.woff2">`)</script><link·rel="stylesheet"·href="../../static.files/normalize-76eba96aa4d2e634.css"><link·rel="stylesheet"·href="../../static.files/rustdoc-35f9e32502181f1e.css"><meta·name="rustdoc-vars"·data-root-path="../../"·data-static-root-path="../../static.files/"·data-current-crate="alloc"·data-themes=""·data-resource-suffix="1.78.0"·data-rustdoc-version="1.78.0"·data-channel="1.78.0"·data-search-js="search-42d8da7a6b9792c2.js"·data-settings-js="settings-4313503d2e1961c2.js"·><script·src="../../static.files/storage-4c98445ec4002617.js"></script><script·defer·src="sidebar-items1.78.0.js"></script><script·defer·src="../../static.files/main-12cf3b4f4f9dc36d.js"></script><noscript><link·rel="stylesheet"·href="../../static.files/noscript-04d5337699b92874.css"></noscript><link·rel="alternate·icon"·type="image/png"·href="../../static.files/favicon-16x16-8b506e7a72182f1c.png"><link·rel="alternate·icon"·type="image/png"·href="../../static.files/favicon-32x32-422f7d1d52889060.png"><link·rel="icon"·type="image/svg+xml"·href="../../static.files/favicon-2c020d218678b618.svg"></head><body·class="rustdoc·struct"><!--[if·lte·IE·11]><div·class="warning">This·old·browser·is·unsupported·and·will·most·likely·display·funky·things.</div><![endif]--><nav·class="mobile-topbar"><button·class="sidebar-menu-toggle"·title="show·sidebar"></button><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-151179464ae7ed46.svg"·alt=""></a></nav><nav·class="sidebar"><div·class="sidebar-crate"><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-151179464ae7ed46.svg"·alt="logo"></a><h2><a·href="../../alloc/index.html">alloc</a><span·class="version">1.78.0</span></h2></div><h2·class="location"><a·href="#">Arguments</a></h2><div·class="sidebar-elems"><section><h3><a·href="#implementations">Methods</a></h3><ul·class="block·method"><li><a·href="#method.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-Arguments%3C'a%3E">Clone</a></li><li><a·href="#impl-Copy-for-Arguments%3C'a%3E">Copy</a></li><li><a·href="#impl-Debug-for-Arguments%3C'_%3E">Debug</a></li><li><a·href="#impl-Display-for-Arguments%3C'_%3E">Display</a></li></ul><h3><a·href="#synthetic-implementations">Auto·Trait·Implementations</a></h3><ul·class="block·synthetic-implementation"><li><a·href="#impl-RefUnwindSafe-for-Arguments%3C'a%3E">!RefUnwindSafe</a></li><li><a·href="#impl-Send-for-Arguments%3C'a%3E">!Send</a></li><li><a·href="#impl-Sync-for-Arguments%3C'a%3E">!Sync</a></li><li><a·href="#impl-UnwindSafe-for-Arguments%3C'a%3E">!UnwindSafe</a></li><li><a·href="#impl-Freeze-for-Arguments%3C'a%3E">Freeze</a></li><li><a·href="#impl-Unpin-for-Arguments%3C'a%3E">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">Any</a></li><li><a·href="#impl-Borrow%3CT%3E-for-T">Borrow&lt;T&gt;</a></li><li><a·href="#impl-BorrowMut%3CT%3E-for-T">BorrowMut&lt;T&gt;</a></li><li><a·href="#impl-From%3CT%3E-for-T">From&lt;T&gt;</a></li><li><a·href="#impl-Into%3CU%3E-for-T">Into&lt;U&gt;</a></li><li><a·href="#impl-ToOwned-for-T">ToOwned</a></li><li><a·href="#impl-ToString-for-T">ToString</a></li><li><a·href="#impl-TryFrom%3CU%3E-for-T">TryFrom&lt;U&gt;</a></li><li><a·href="#impl-TryInto%3CU%3E-for-T">TryInto&lt;U&gt;</a></li></ul></section><h2><a·href="index.html">In·alloc::fmt</a></h2></div></nav><div·class="sidebar-resizer"></div>
2 ····<main><div·class="width-limiter"><nav·class="sub"><form·class="search-form"><span></span><div·id="sidebar-button"·tabindex="-1"><a·href="../../alloc/all.html"·title="show·sidebar"></a></div><input·class="search-input"·name="search"·aria-label="Run·search·in·the·documentation"·autocomplete="off"·spellcheck="false"·placeholder="Click·or·press·‘S’·to·search,·‘?’·for·more·options…"·type="search"><div·id="help-button"·tabindex="-1"><a·href="../../help.html"·title="help">?</a></div><div·id="settings-menu"·tabindex="-1"><a·href="../../settings.html"·title="settings"><img·width="22"·height="22"·alt="Change·settings"·src="../../static.files/wheel-7b819b6101059cd0.svg"></a></div></form></nav><section·id="main-content"·class="content"><div·class="main-heading"><h1>Struct·<a·href="../index.html">alloc</a>::<wbr><a·href="index.html">fmt</a>::<wbr><a·class="struct"·href="#">Arguments</a><button·id="copy-path"·title="Copy·item·path·to·clipboard"><img·src="../../static.files/clipboard-7571035ce49a181d.svg"·width="19"·height="18"·alt="Copy·item·path"></button></h1><span·class="out-of-band"><span·class="since"·title="Stable·since·Rust·version·1.0.0">1.0.0</span>···<a·class="src"·href="../../src/core/fmt/mod.rs.html#311">source</a>···<button·id="toggle-all-docs"·title="collapse·all·docs">[<span>&#x2212;</span>]</button></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·string2 ····<main><div·class="width-limiter"><nav·class="sub"><form·class="search-form"><span></span><div·id="sidebar-button"·tabindex="-1"><a·href="../../alloc/all.html"·title="show·sidebar"></a></div><input·class="search-input"·name="search"·aria-label="Run·search·in·the·documentation"·autocomplete="off"·spellcheck="false"·placeholder="Click·or·press·‘S’·to·search,·‘?’·for·more·options…"·type="search"><div·id="help-button"·tabindex="-1"><a·href="../../help.html"·title="help">?</a></div><div·id="settings-menu"·tabindex="-1"><a·href="../../settings.html"·title="settings"><img·width="22"·height="22"·alt="Change·settings"·src="../../static.files/wheel-7b819b6101059cd0.svg"></a></div></form></nav><section·id="main-content"·class="content"><div·class="main-heading"><h1>Struct·<a·href="../index.html">alloc</a>::<wbr><a·href="index.html">fmt</a>::<wbr><a·class="struct"·href="#">Arguments</a><button·id="copy-path"·title="Copy·item·path·to·clipboard"><img·src="../../static.files/clipboard-7571035ce49a181d.svg"·width="19"·height="18"·alt="Copy·item·path"></button></h1><span·class="out-of-band"><span·class="since"·title="Stable·since·Rust·version·1.0.0">1.0.0</span>···<a·class="src"·href="https://doc.rust-lang.org/1.78.0/src/core/fmt/mod.rs.html#311">source</a>···<button·id="toggle-all-docs"·title="collapse·all·docs">[<span>&#x2212;</span>]</button></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
3 and·its·arguments.·This·cannot·be·generated·at·runtime·because·it·cannot3 and·its·arguments.·This·cannot·be·generated·at·runtime·because·it·cannot
4 safely·be·done,·so·no·constructors·are·given·and·the·fields·are·private4 safely·be·done,·so·no·constructors·are·given·and·the·fields·are·private
5 to·prevent·modification.</p>5 to·prevent·modification.</p>
6 <p>The·<a·href="../../core/macro.format_args.html"·title="macro·core::format_args"><code>format_args!</code></a>·macro·will·safely·create·an·instance·of·this·structure.6 <p>The·<a·href="https://doc.rust-lang.org/1.78.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.
7 The·macro·validates·the·format·string·at·compile-time·so·usage·of·the7 The·macro·validates·the·format·string·at·compile-time·so·usage·of·the
8 <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 <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>
9 <p>You·can·use·the·<code>Arguments&lt;'a&gt;</code>·that·<a·href="../../core/macro.format_args.html"·title="macro·core::format_args"><code>format_args!</code></a>·returns·in·<code>Debug</code>9 <p>You·can·use·the·<code>Arguments&lt;'a&gt;</code>·that·<a·href="https://doc.rust-lang.org/1.78.0/core/macro.format_args.html"·title="macro·core::format_args"><code>format_args!</code></a>·returns·in·<code>Debug</code>
10 and·<code>Display</code>·contexts·as·seen·below.·The·example·also·shows·that·<code>Debug</code>10 and·<code>Display</code>·contexts·as·seen·below.·The·example·also·shows·that·<code>Debug</code>
11 and·<code>Display</code>·format·to·the·same·thing:·the·interpolated·format·string11 and·<code>Display</code>·format·to·the·same·thing:·the·interpolated·format·string
12 in·<code>format_args!</code>.</p>12 in·<code>format_args!</code>.</p>
  
13 <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 <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>));
14 <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="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>));
15 <span·class="macro">assert_eq!</span>(<span·class="string">"1·foo·2"</span>,·display);15 <span·class="macro">assert_eq!</span>(<span·class="string">"1·foo·2"</span>,·display);
16 <span·class="macro">assert_eq!</span>(display,·debug);</code></pre><a·class="test-arrow"·target="_blank"·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">Run</a></div>16 <span·class="macro">assert_eq!</span>(display,·debug);</code></pre><a·class="test-arrow"·target="_blank"·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">Run</a></div>
17 </div></details><h2·id="implementations"·class="section-header">Implementations<a·href="#implementations"·class="anchor">§</a></h2><div·id="implementations-list"><details·class="toggle·implementors-toggle"·open><summary><section·id="impl-Arguments%3C'a%3E"·class="impl"><a·class="src·rightside"·href="../../src/core/fmt/mod.rs.html#387">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:·1616521ee96b0f7391927cda0e109c069bdf0b9da8774e95d4d23b5b119a03e5·...·]/core/primitive.str.html">str</a>&gt;</h4></section></summary><div·class="docblock"><p>Get·the·formatted·string,·if·it·has·no·arguments·to·be·formatted·at·runtime.</p>17 </div></details><h2·id="implementations"·class="section-header">Implementations<a·href="#implementations"·class="anchor">§</a></h2><div·id="implementations-list"><details·class="toggle·implementors-toggle"·open><summary><section·id="impl-Arguments%3C'a%3E"·class="impl"><a·class="src·rightside"·href="https://doc.rust-lang.org/1.78.0/src/core/fmt/mod.rs.html#387">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:·1036953d7cc7ff0b146197a51d15f84cd0079ff62a46b160610cec0dbd950bde·...·]/core/primitive.str.html">str</a>&gt;</h4></section></summary><div·class="docblock"><p>Get·the·formatted·string,·if·it·has·no·arguments·to·be·formatted·at·runtime.</p>
18 <p>This·can·be·used·to·avoid·allocations·in·some·cases.</p>18 <p>This·can·be·used·to·avoid·allocations·in·some·cases.</p>
19 <h5·id="guarantees"><a·class="doc-anchor"·href="#guarantees">§</a>Guarantees</h5>19 <h5·id="guarantees"><a·class="doc-anchor"·href="#guarantees">§</a>Guarantees</h5>
20 <p>For·<code>format_args!(&quot;just·a·literal&quot;)</code>,·this·function·is·guaranteed·to20 <p>For·<code>format_args!(&quot;just·a·literal&quot;)</code>,·this·function·is·guaranteed·to
21 return·<code>Some(&quot;just·a·literal&quot;)</code>.</p>21 return·<code>Some(&quot;just·a·literal&quot;)</code>.</p>
22 <p>For·most·cases·with·placeholders,·this·function·will·return·<code>None</code>.</p>22 <p>For·most·cases·with·placeholders,·this·function·will·return·<code>None</code>.</p>
23 <p>However,·the·compiler·may·perform·optimizations·that·can·cause·this23 <p>However,·the·compiler·may·perform·optimizations·that·can·cause·this
24 function·to·return·<code>Some(_)</code>·even·if·the·format·string·contains24 function·to·return·<code>Some(_)</code>·even·if·the·format·string·contains
Offset 41, 20 lines modifiedOffset 41, 20 lines modified
41 ········write_str(<span·class="kw-2">&amp;</span>args.to_string());41 ········write_str(<span·class="kw-2">&amp;</span>args.to_string());
42 ····}42 ····}
43 }</code></pre><a·class="test-arrow"·target="_blank"·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">Run</a></div>43 }</code></pre><a·class="test-arrow"·target="_blank"·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">Run</a></div>
  
44 <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 <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>));
45 <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>).as_str(),·<span·class="prelude-val">Some</span>(<span·class="string">""</span>));
46 <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"·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">Run</a></div>46 <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"·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">Run</a></div>
47 </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"><a·class="src·rightside"·href="../../src/core/fmt/mod.rs.html#310">source</a><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>·for·<a[·...·truncated·by·diffoscope;·len:·7867,·SHA:·23d4c899c1a7f4f4366e8ed40582df0499bbbd1ca257e5856b7bfc081330d9ed·...·]/core/any/trait.Any.html"·title="trait·core::any::Any">Any</a>·for·T<div·class="where">where47 </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"><a·class="src·rightside"·href="https://doc.rust-lang.org/1.78.0/src/core/fmt/mod.rs.html#310">source</a><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.78.0/core/clone/trait.Clone.h[·...·truncated·by·diffoscope;·len:·8596,·SHA:·9924072024e04a54f7556a6adf48cc5df2a39b0fa5d03becb04eaa2942c0cc23·...·]/core/any/trait.Any.html"·title="trait·core::any::Any">Any</a>·for·T<div·class="where">where
48 ····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:·9db8bacb767d75cc3351ca7341c388130aa05ebef490d992be5374f16eedc378·...·]/src/core/borrow.rs.html#208">source</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">where48 ····T:·'static·+·?<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">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:·039b8952ccb1ab7d8f15cd519cbc10f4afc149276d0f9cfd3a53117d606059df·...·]/src/core/borrow.rs.html#208">source</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
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"·class="method·trait-impl"><a·class="src·r[·...·truncated·by·diffoscope;·len:·629,·SHA:·b2ffbab17ff1ef71ba4c506a3aaa515da2082da6f02a53862ce1ca2b2b25f5b4·...·]/src/core/borrow.rs.html#216">source</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">where49 ····T:·?<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/marker/trait.Sized.html"·title="trait·core::marker::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:·952d76e7bcf7b521fffa418ce638abf69976de0942360e56f93e419ca3389394·...·]/src/core/borrow.rs.html#216">source</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
50 ····T:·?<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::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:·befefcb8cb29dc857e1f3050572f6f470317e3350e0851c4ed6e56cc38673a92·...·]/core/convert/trait.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.78.0/core/marker/trait.Sized.html"·title="trait·core::marker::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:·204bc28c8766993ff59d26bb790f1469ab686e6f172c57f35aa987a81507a7b1·...·]/core/convert/trait.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.78.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.78.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.78.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:·2cf76a8ca501b2a1fef209fed846779ab1bed3b75f52c7425335e3ce04e6b272·...·]/core/convert/trait.Into.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.78.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#83-95">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#83-95">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·href="#associ[·...·truncated·by·diffoscope;·len:·1220,·SHA:·3cbf0f64542b816603968ea3c1b51d1b1eb93d99770d50fed747c05540b0e6b0·...·]/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#2543-2557">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.78.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:·1274,·SHA:·0c080e1e1236f77ce91b20fef8bb17c6bc50a069d2e16d2b40ea7b4298dec09f·...·]/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#2543-2557">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:·bf3a3f8ffed9dcfc973405dddaf9f278663007cc35ca5daa38b602630201cbf0·...·]/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.78.0/core/marker/trait.Sized.html"·title="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:·531ea7c1ecd9197e925ea3063788b96ffe9ed8291f75ffba5fcab4c2298b41ca·...·]/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"·class="associatedtype·trait-impl"><a·hre[·...·truncated·by·diffoscope;·len:·1591,·SHA:·8537afacf1b3cf6b9fb7db778975d49d8a8e5988d420715e464ff4a79dd696c5·...·]/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.78.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"·class="associ[·...·truncated·by·diffoscope;·len:·1861,·SHA:·78398046ba16de2f66a8201a11d6a2dd405fceedeabfcaa37481e77092687e6f·...·]/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-1"·class="associatedtype·trait-i[·...·truncated·by·diffoscope;·len:·1231,·SHA:·7843e7b6cca73922417e4154886c0df66f016d274b48933c21bdb75b67479d5b·...·]/core/convert/trait.TryFrom.html#associatedtype.Error"·title="type·core::convert::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.78.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-1"·cl[·...·truncated·by·diffoscope;·len:·1474,·SHA:·ca90cccb6c86c654c95a1aaec456fbbe4b115f0d5a700e7d156e823346d70894·...·]/core/convert/trait.TryFrom.html#associatedtype.Error"·title="type·core::convert::TryFrom::Error">Error</a>&gt;</h4></section></summary><div·class='docblock'>Performs·the·conversion.</div></details></div></details></div></section></div></main></body></html>
48.9 KB
./usr/share/doc/rust-web-doc/html/alloc/fmt/struct.DebugList.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="A·struct·to·help·with·`fmt::Debug`·implementations."><title>DebugList·in·alloc::fmt·-·Rust</title><script>·if·(window.location.protocol·!==·"file:")·document.write(`<link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/SourceSerif4-Regular-46f98efaafac5295.ttf.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/FiraSans-Regular-018c141bf0843ffd.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/FiraSans-Medium-8f9a781e4970d388.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/SourceCodePro-Regular-562dcc5011b6de7d.ttf.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/SourceCodePro-Semibold-d899c5a5c4aeb14a.ttf.woff2">`)</script><link·rel="stylesheet"·href="../../static.files/normalize-76eba96aa4d2e634.css"><link·rel="stylesheet"·href="../../static.files/rustdoc-35f9e32502181f1e.css"><meta·name="rustdoc-vars"·data-root-path="../../"·data-static-root-path="../../static.files/"·data-current-crate="alloc"·data-themes=""·data-resource-suffix="1.78.0"·data-rustdoc-version="1.78.0"·data-channel="1.78.0"·data-search-js="search-42d8da7a6b9792c2.js"·data-settings-js="settings-4313503d2e1961c2.js"·><script·src="../../static.files/storage-4c98445ec4002617.js"></script><script·defer·src="sidebar-items1.78.0.js"></script><script·defer·src="../../static.files/main-12cf3b4f4f9dc36d.js"></script><noscript><link·rel="stylesheet"·href="../../static.files/noscript-04d5337699b92874.css"></noscript><link·rel="alternate·icon"·type="image/png"·href="../../static.files/favicon-16x16-8b506e7a72182f1c.png"><link·rel="alternate·icon"·type="image/png"·href="../../static.files/favicon-32x32-422f7d1d52889060.png"><link·rel="icon"·type="image/svg+xml"·href="../../static.files/favicon-2c020d218678b618.svg"></head><body·class="rustdoc·struct"><!--[if·lte·IE·11]><div·class="warning">This·old·browser·is·unsupported·and·will·most·likely·display·funky·things.</div><![endif]--><nav·class="mobile-topbar"><button·class="sidebar-menu-toggle"·title="show·sidebar"></button><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-151179464ae7ed46.svg"·alt=""></a></nav><nav·class="sidebar"><div·class="sidebar-crate"><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-151179464ae7ed46.svg"·alt="logo"></a><h2><a·href="../../alloc/index.html">alloc</a><span·class="version">1.78.0</span></h2></div><h2·class="location"><a·href="#">DebugList</a></h2><div·class="sidebar-elems"><section><h3><a·href="#implementations">Methods</a></h3><ul·class="block·method"><li><a·href="#method.entries">entries</a></li><li><a·href="#method.entry">entry</a></li><li><a·href="#method.entry_with">entry_with</a></li><li><a·href="#method.finish">finish</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">!RefUnwindSafe</a></li><li><a·href="#impl-Send-for-DebugList%3C'a,+'b%3E">!Send</a></li><li><a·href="#impl-Sync-for-DebugList%3C'a,+'b%3E">!Sync</a></li><li><a·href="#impl-UnwindSafe-for-DebugList%3C'a,+'b%3E">!UnwindSafe</a></li><li><a·href="#impl-Freeze-for-DebugList%3C'a,+'b%3E">Freeze</a></li><li><a·href="#impl-Unpin-for-DebugList%3C'a,+'b%3E">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">Any</a></li><li><a·href="#impl-Borrow%3CT%3E-for-T">Borrow&lt;T&gt;</a></li><li><a·href="#impl-BorrowMut%3CT%3E-for-T">BorrowMut&lt;T&gt;</a></li><li><a·href="#impl-From%3CT%3E-for-T">From&lt;T&gt;</a></li><li><a·href="#impl-Into%3CU%3E-for-T">Into&lt;U&gt;</a></li><li><a·href="#impl-TryFrom%3CU%3E-for-T">TryFrom&lt;U&gt;</a></li><li><a·href="#impl-TryInto%3CU%3E-for-T">TryInto&lt;U&gt;</a></li></ul></section><h2><a·href="index.html">In·alloc::fmt</a></h2></div></nav><div·class="sidebar-resizer"></div>1 <!DOCTYPE·html><html·lang="en"><head><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.write(`<link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/SourceSerif4-Regular-46f98efaafac5295.ttf.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/FiraSans-Regular-018c141bf0843ffd.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/FiraSans-Medium-8f9a781e4970d388.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/SourceCodePro-Regular-562dcc5011b6de7d.ttf.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/SourceCodePro-Semibold-d899c5a5c4aeb14a.ttf.woff2">`)</script><link·rel="stylesheet"·href="../../static.files/normalize-76eba96aa4d2e634.css"><link·rel="stylesheet"·href="../../static.files/rustdoc-35f9e32502181f1e.css"><meta·name="rustdoc-vars"·data-root-path="../../"·data-static-root-path="../../static.files/"·data-current-crate="alloc"·data-themes=""·data-resource-suffix="1.78.0"·data-rustdoc-version="1.78.0"·data-channel="1.78.0"·data-search-js="search-42d8da7a6b9792c2.js"·data-settings-js="settings-4313503d2e1961c2.js"·><script·src="../../static.files/storage-4c98445ec4002617.js"></script><script·defer·src="sidebar-items1.78.0.js"></script><script·defer·src="../../static.files/main-12cf3b4f4f9dc36d.js"></script><noscript><link·rel="stylesheet"·href="../../static.files/noscript-04d5337699b92874.css"></noscript><link·rel="alternate·icon"·type="image/png"·href="../../static.files/favicon-16x16-8b506e7a72182f1c.png"><link·rel="alternate·icon"·type="image/png"·href="../../static.files/favicon-32x32-422f7d1d52889060.png"><link·rel="icon"·type="image/svg+xml"·href="../../static.files/favicon-2c020d218678b618.svg"></head><body·class="rustdoc·struct"><!--[if·lte·IE·11]><div·class="warning">This·old·browser·is·unsupported·and·will·most·likely·display·funky·things.</div><![endif]--><nav·class="mobile-topbar"><button·class="sidebar-menu-toggle"·title="show·sidebar"></button><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-151179464ae7ed46.svg"·alt=""></a></nav><nav·class="sidebar"><div·class="sidebar-crate"><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-151179464ae7ed46.svg"·alt="logo"></a><h2><a·href="../../alloc/index.html">alloc</a><span·class="version">1.78.0</span></h2></div><h2·class="location"><a·href="#">DebugList</a></h2><div·class="sidebar-elems"><section><h3><a·href="#implementations">Methods</a></h3><ul·class="block·method"><li><a·href="#method.entries">entries</a></li><li><a·href="#method.entry">entry</a></li><li><a·href="#method.entry_with">entry_with</a></li><li><a·href="#method.finish">finish</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">!RefUnwindSafe</a></li><li><a·href="#impl-Send-for-DebugList%3C'a,+'b%3E">!Send</a></li><li><a·href="#impl-Sync-for-DebugList%3C'a,+'b%3E">!Sync</a></li><li><a·href="#impl-UnwindSafe-for-DebugList%3C'a,+'b%3E">!UnwindSafe</a></li><li><a·href="#impl-Freeze-for-DebugList%3C'a,+'b%3E">Freeze</a></li><li><a·href="#impl-Unpin-for-DebugList%3C'a,+'b%3E">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">Any</a></li><li><a·href="#impl-Borrow%3CT%3E-for-T">Borrow&lt;T&gt;</a></li><li><a·href="#impl-BorrowMut%3CT%3E-for-T">BorrowMut&lt;T&gt;</a></li><li><a·href="#impl-From%3CT%3E-for-T">From&lt;T&gt;</a></li><li><a·href="#impl-Into%3CU%3E-for-T">Into&lt;U&gt;</a></li><li><a·href="#impl-TryFrom%3CU%3E-for-T">TryFrom&lt;U&gt;</a></li><li><a·href="#impl-TryInto%3CU%3E-for-T">TryInto&lt;U&gt;</a></li></ul></section><h2><a·href="index.html">In·alloc::fmt</a></h2></div></nav><div·class="sidebar-resizer"></div>
2 ····<main><div·class="width-limiter"><nav·class="sub"><form·class="search-form"><span></span><div·id="sidebar-button"·tabindex="-1"><a·href="../../alloc/all.html"·title="show·sidebar"></a></div><input·class="search-input"·name="search"·aria-label="Run·search·in·the·documentation"·autocomplete="off"·spellcheck="false"·placeholder="Click·or·press·‘S’·to·search,·‘?’·for·more·options…"·type="search"><div·id="help-button"·tabindex="-1"><a·href="../../help.html"·title="help">?</a></div><div·id="settings-menu"·tabindex="-1"><a·href="../../settings.html"·title="settings"><img·width="22"·height="22"·alt="Change·settings"·src="../../static.files/wheel-7b819b6101059cd0.svg"></a></div></form></nav><section·id="main-content"·class="content"><div·class="main-heading"><h1>Struct·<a·href="../index.html">alloc</a>::<wbr><a·href="index.html">fmt</a>::<wbr><a·class="struct"·href="#">DebugList</a><button·id="copy-path"·title="Copy·item·path·to·clipboard"><img·src="../../static.files/clipboard-7571035ce49a181d.svg"·width="19"·height="18"·alt="Copy·item·path"></button></h1><span·class="out-of-band"><span·class="since"·title="Stable·since·Rust·version·1.2.0">1.2.0</span>···<a·class="src"·href="../../src/core/fmt/builders.rs.html#613">source</a>···<button·id="toggle-all-docs"·title="collapse·all·docs">[<span>&#x2212;</span>]</button></span></div><pre·class="rust·item-decl"><code>pub·struct·DebugList&lt;'a,·'b&gt;<div·class="where">where2 ····<main><div·class="width-limiter"><nav·class="sub"><form·class="search-form"><span></span><div·id="sidebar-button"·tabindex="-1"><a·href="../../alloc/all.html"·title="show·sidebar"></a></div><input·class="search-input"·name="search"·aria-label="Run·search·in·the·documentation"·autocomplete="off"·spellcheck="false"·placeholder="Click·or·press·‘S’·to·search,·‘?’·for·more·options…"·type="search"><div·id="help-button"·tabindex="-1"><a·href="../../help.html"·title="help">?</a></div><div·id="settings-menu"·tabindex="-1"><a·href="../../settings.html"·title="settings"><img·width="22"·height="22"·alt="Change·settings"·src="../../static.files/wheel-7b819b6101059cd0.svg"></a></div></form></nav><section·id="main-content"·class="content"><div·class="main-heading"><h1>Struct·<a·href="../index.html">alloc</a>::<wbr><a·href="index.html">fmt</a>::<wbr><a·class="struct"·href="#">DebugList</a><button·id="copy-path"·title="Copy·item·path·to·clipboard"><img·src="../../static.files/clipboard-7571035ce49a181d.svg"·width="19"·height="18"·alt="Copy·item·path"></button></h1><span·class="out-of-band"><span·class="since"·title="Stable·since·Rust·version·1.2.0">1.2.0</span>···<a·class="src"·href="https://doc.rust-lang.org/1.78.0/src/core/fmt/builders.rs.html#613">source</a>···<button·id="toggle-all-docs"·title="collapse·all·docs">[<span>&#x2212;</span>]</button></span></div><pre·class="rust·item-decl"><code>pub·struct·DebugList&lt;'a,·'b&gt;<div·class="where">where
3 ····'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 ····'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>
4 <p>This·is·useful·when·you·wish·to·output·a·formatted·list·of·items·as·a·part4 <p>This·is·useful·when·you·wish·to·output·a·formatted·list·of·items·as·a·part
5 of·your·<a·href="trait.Debug.html#tymethod.fmt"·title="method·alloc::fmt::Debug::fmt"><code>Debug::fmt</code></a>·implementation.</p>5 of·your·<a·href="trait.Debug.html#tymethod.fmt"·title="method·alloc::fmt::Debug::fmt"><code>Debug::fmt</code></a>·implementation.</p>
6 <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 <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>
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 <div·class="example-wrap"><pre·class="rust·rust-example-rendered"><code><span·class="kw">use·</span>std::fmt;8 <div·class="example-wrap"><pre·class="rust·rust-example-rendered"><code><span·class="kw">use·</span>std::fmt;
  
Offset 15, 16 lines modifiedOffset 15, 16 lines modified
15 ····}15 ····}
16 }16 }
  
17 <span·class="macro">assert_eq!</span>(17 <span·class="macro">assert_eq!</span>(
18 ····<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="macro">format!</span>(<span·class="string">"{:?}"</span>,·Foo(<span·class="macro">vec!</span>[<span·class="number">10</span>,·<span·class="number">11</span>])),
19 ····<span·class="string">"[10,·11]"</span>,19 ····<span·class="string">"[10,·11]"</span>,
20 );</code></pre><a·class="test-arrow"·target="_blank"·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">Run</a></div>20 );</code></pre><a·class="test-arrow"·target="_blank"·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">Run</a></div>
21 </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#622">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">where21 </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.78.0/src/core/fmt/builders.rs.html#622">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
22 ····'b:·'a,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.entry"·class="method"><a·class="src·rightside"·href="../../src/core/fmt/builders.rs.html#647">source</a><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 ····'b:·'a,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.entry"·class="method"><a·class="src·rightside"·href="https://doc.rust-lang.org/1.78.0/src/core/fmt/builders.rs.html#647">source</a><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>
23 <h5·id="examples-1"><a·class="doc-anchor"·href="#examples-1">§</a>Examples</h5>23 <h5·id="examples-1"><a·class="doc-anchor"·href="#examples-1">§</a>Examples</h5>
24 <div·class="example-wrap"><pre·class="rust·rust-example-rendered"><code><span·class="kw">use·</span>std::fmt;24 <div·class="example-wrap"><pre·class="rust·rust-example-rendered"><code><span·class="kw">use·</span>std::fmt;
  
25 <span·class="kw">struct·</span>Foo(Vec&lt;i32&gt;,·Vec&lt;u32&gt;);25 <span·class="kw">struct·</span>Foo(Vec&lt;i32&gt;,·Vec&lt;u32&gt;);
  
26 <span·class="kw">impl·</span>fmt::Debug·<span·class="kw">for·</span>Foo·{26 <span·class="kw">impl·</span>fmt::Debug·<span·class="kw">for·</span>Foo·{
27 ····<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·{27 ····<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 35, 21 lines modifiedOffset 35, 21 lines modified
35 ····}35 ····}
36 }36 }
  
37 <span·class="macro">assert_eq!</span>(37 <span·class="macro">assert_eq!</span>(
38 ····<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="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>])),
39 ····<span·class="string">"[[10,·11],·[12,·13]]"</span>,39 ····<span·class="string">"[[10,·11],·[12,·13]]"</span>,
40 );</code></pre><a·class="test-arrow"·target="_blank"·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">Run</a></div>40 );</code></pre><a·class="test-arrow"·target="_blank"·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">Run</a></div>
41 </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#657-659">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">where41 </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.78.0/src/core/fmt/builders.rs.html#657-659">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
42 ····F:·<a·class="trait"·href="../../core/ops/function/trait.FnOnce.html"·title="trait·core::ops::function::FnOnce">FnOnce</a>(&amp;mut·<a·class="struct"·href="struct.Formatter.html"·title="struct·alloc::fmt::Formatter">Formatter</a>&lt;'_&gt;)·-&gt;·<a·class="enum"·href="../../core/res[·...·truncated·by·diffoscope;·len:·102,·SHA:·57858821eade5fde37c26c2cd183685d201c1c85edfe3c189932fc5dbced53e0·...·]/core/primitive.unit.html">()</a>,·<a·class="struct"·href="struct.Error.html"·title="struct·alloc::fmt::Error">Error</a>&gt;,</div></h4></section><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>debug_closure_helpers</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/117729">#117729</a>)</span></div></span></summary><div·class="docblock"><p>Adds·a·new·entry·to·the·list·output.</p>42 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.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:·0fa7436d4eda82d31a1407bc94d3105381e901d15bef7bc1c599e5706bad3a85·...·]/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>
43 <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·the43 <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
44 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 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>
45 </div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.entries"·class="method"><a·class="src·rightside"·href="../../src/core/fmt/builders.rs.html#689-692">source</a><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">where45 </div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.entries"·class="method"><a·class="src·rightside"·href="https://doc.rust-lang.org/1.78.0/src/core/fmt/builders.rs.html#689-692">source</a><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
46 ····D:·<a·class="trait"·href="trait.Debug.html"·title="trait·alloc::fmt::Debug">Debug</a>,46 ····D:·<a·class="trait"·href="trait.Debug.html"·title="trait·alloc::fmt::Debug">Debug</a>,
47 ····I:·<a·class="trait"·href="../../core/iter/traits/collect/trait.IntoIterator.html"·title="trait·core::iter::traits::collect::IntoIterator">IntoIterator</a>&lt;Item·=·D&gt;,</div></h4></section></summary><div·class="docblock"><p>Adds·the·contents·of·an·iterator·of·entries·to·the·list·output.</p>47 ····I:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.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>
48 <h5·id="examples-2"><a·class="doc-anchor"·href="#examples-2">§</a>Examples</h5>48 <h5·id="examples-2"><a·class="doc-anchor"·href="#examples-2">§</a>Examples</h5>
49 <div·class="example-wrap"><pre·class="rust·rust-example-rendered"><code><span·class="kw">use·</span>std::fmt;49 <div·class="example-wrap"><pre·class="rust·rust-example-rendered"><code><span·class="kw">use·</span>std::fmt;
  
50 <span·class="kw">struct·</span>Foo(Vec&lt;i32&gt;,·Vec&lt;u32&gt;);50 <span·class="kw">struct·</span>Foo(Vec&lt;i32&gt;,·Vec&lt;u32&gt;);
  
51 <span·class="kw">impl·</span>fmt::Debug·<span·class="kw">for·</span>Foo·{51 <span·class="kw">impl·</span>fmt::Debug·<span·class="kw">for·</span>Foo·{
52 ····<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·{52 ····<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 60, 15 lines modifiedOffset 60, 15 lines modified
60 ····}60 ····}
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="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="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>])),
64 ····<span·class="string">"[10,·11,·12,·13]"</span>,64 ····<span·class="string">"[10,·11,·12,·13]"</span>,
65 );</code></pre><a·class="test-arrow"·target="_blank"·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">Run</a></div>65 );</code></pre><a·class="test-arrow"·target="_blank"·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">Run</a></div>
66 </div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.finish"·class="method"><a·class="src·rightside"·href="../../src/core/fmt/builders.rs.html#723">source</a><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</a>&lt;[·...·truncated·by·diffoscope;·len:·32,·SHA:·86fe7a656d5f3dbc9b6b367643c33f5d41c6710ba4f278b8f626957580f059d4·...·]/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"><a·class="src·rightside"·href="https://doc.rust-lang.org/1.78.0/src/core/fmt/builders.rs.html#723">source</a><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.78.0/core/result/enum.Result.[·...·truncated·by·diffoscope;·len:·113,·SHA:·6cf1596fce40bf8466f22956e5d7f7a812593533742b72f84b236642b06b8743·...·]/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(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·{
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 78, 18 lines modifiedOffset 78, 18 lines modified
78 ····</span>}78 ····</span>}
79 }79 }
  
80 <span·class="macro">assert_eq!</span>(80 <span·class="macro">assert_eq!</span>(
81 ····<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>])),81 ····<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>])),
82 ····<span·class="string">"[10,·11]"</span>,82 ····<span·class="string">"[10,·11]"</span>,
83 );</code></pre><a·class="test-arrow"·target="_blank"·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">Run</a></div>83 );</code></pre><a·class="test-arrow"·target="_blank"·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">Run</a></div>
84 </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:·71c3b6d1c1e0d4b2324237f71d6faab5c7d09996042c9709d99c670190a639a6·...·]/core/any/trait.Any.html"·title="trait·core::any::Any">Any</a>·for·T<div·class="where">where84 </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.78.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:·00e1070cbd5c998baed2b3967d811d09d28862de05ae418af18b17756d42338b·...·]/core/any/trait.Any.html"·title="trait·core::any::Any">Any</a>·for·T<div·class="where">where
85 ····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:·9db8bacb767d75cc3351ca7341c388130aa05ebef490d992be5374f16eedc378·...·]/src/core/borrow.rs.html#208">source</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">where85 ····T:·'static·+·?<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">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:·039b8952ccb1ab7d8f15cd519cbc10f4afc149276d0f9cfd3a53117d606059df·...·]/src/core/borrow.rs.html#208">source</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
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"·class="method·trait-impl"><a·class="src·r[·...·truncated·by·diffoscope;·len:·629,·SHA:·b2ffbab17ff1ef71ba4c506a3aaa515da2082da6f02a53862ce1ca2b2b25f5b4·...·]/src/core/borrow.rs.html#216">source</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">where86 ····T:·?<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/marker/trait.Sized.html"·title="trait·core::marker::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:·952d76e7bcf7b521fffa418ce638abf69976de0942360e56f93e419ca3389394·...·]/src/core/borrow.rs.html#216">source</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
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_mut"·class="method·trait-impl"><a·class="s[·...·truncated·by·diffoscope;·len:·1227,·SHA:·befefcb8cb29dc857e1f3050572f6f470317e3350e0851c4ed6e56cc38673a92·...·]/core/convert/trait.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 ····T:·?<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/marker/trait.Sized.html"·title="trait·core::marker::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:·204bc28c8766993ff59d26bb790f1469ab686e6f172c57f35aa987a81507a7b1·...·]/core/convert/trait.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 </div></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">where88 </div></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.78.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.78.0/core/convert/trait.Into.html"·title="trait·core::convert::Into">Into</a>&lt;U&gt;·for·T<div·class="where">where
89 ····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>89 ····U:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.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:·2cf76a8ca501b2a1fef209fed846779ab1bed3b75f52c7425335e3ce04e6b272·...·]/core/convert/trait.Into.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 <p>That·is,·this·conversion·is·whatever·the·implementation·of90 <p>That·is,·this·conversion·is·whatever·the·implementation·of
91 <code><a·href="../../core/convert/trait.From.html"·title="trait·core::convert::From">From</a>&lt;T&gt;·for·U</code>·chooses·to·do.</p>91 <code><a·href="https://doc.rust-lang.org/1.78.0/core/convert/trait.From.html"·title="trait·core::convert::From">From</a>&lt;T&gt;·for·U</code>·chooses·to·do.</p>
92 </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">where92 </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.78.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.78.0/core/convert/trait.TryFrom.html"·title="trait·core::convert::TryFrom">TryFrom</a>&lt;U&gt;·for·T<div·class="where">where
93 ····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"·class="associatedtype·trait-impl"><a·hre[·...·truncated·by·diffoscope;·len:·1591,·SHA:·8537afacf1b3cf6b9fb7db778975d49d8a8e5988d420715e464ff4a79dd696c5·...·]/core/convert/trait.TryInto.html"·title="trait·core::convert::TryInto">TryInto</a>&lt;U&gt;·for·T<div·class="where">where93 ····U:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.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"·class="associ[·...·truncated·by·diffoscope;·len:·1861,·SHA:·78398046ba16de2f66a8201a11d6a2dd405fceedeabfcaa37481e77092687e6f·...·]/core/convert/trait.TryInto.html"·title="trait·core::convert::TryInto">TryInto</a>&lt;U&gt;·for·T<div·class="where">where
94 ····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-1"·class="associatedtype·trait-i[·...·truncated·by·diffoscope;·len:·1231,·SHA:·7843e7b6cca73922417e4154886c0df66f016d274b48933c21bdb75b67479d5b·...·]/core/convert/trait.TryFrom.html#associatedtype.Error"·title="type·core::convert::TryFrom::Error">Error</a>&gt;</h4></section></summary><div·class='docblock'>Performs·the·conversion.</div></details></div></details></div></section></div></main></body></html>94 ····U:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.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-1"·cl[·...·truncated·by·diffoscope;·len:·1474,·SHA:·ca90cccb6c86c654c95a1aaec456fbbe4b115f0d5a700e7d156e823346d70894·...·]/core/convert/trait.TryFrom.html#associatedtype.Error"·title="type·core::convert::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.5 KB
./usr/share/doc/rust-web-doc/html/alloc/fmt/struct.DebugMap.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="A·struct·to·help·with·`fmt::Debug`·implementations."><title>DebugMap·in·alloc::fmt·-·Rust</title><script>·if·(window.location.protocol·!==·"file:")·document.write(`<link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/SourceSerif4-Regular-46f98efaafac5295.ttf.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/FiraSans-Regular-018c141bf0843ffd.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/FiraSans-Medium-8f9a781e4970d388.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/SourceCodePro-Regular-562dcc5011b6de7d.ttf.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/SourceCodePro-Semibold-d899c5a5c4aeb14a.ttf.woff2">`)</script><link·rel="stylesheet"·href="../../static.files/normalize-76eba96aa4d2e634.css"><link·rel="stylesheet"·href="../../static.files/rustdoc-35f9e32502181f1e.css"><meta·name="rustdoc-vars"·data-root-path="../../"·data-static-root-path="../../static.files/"·data-current-crate="alloc"·data-themes=""·data-resource-suffix="1.78.0"·data-rustdoc-version="1.78.0"·data-channel="1.78.0"·data-search-js="search-42d8da7a6b9792c2.js"·data-settings-js="settings-4313503d2e1961c2.js"·><script·src="../../static.files/storage-4c98445ec4002617.js"></script><script·defer·src="sidebar-items1.78.0.js"></script><script·defer·src="../../static.files/main-12cf3b4f4f9dc36d.js"></script><noscript><link·rel="stylesheet"·href="../../static.files/noscript-04d5337699b92874.css"></noscript><link·rel="alternate·icon"·type="image/png"·href="../../static.files/favicon-16x16-8b506e7a72182f1c.png"><link·rel="alternate·icon"·type="image/png"·href="../../static.files/favicon-32x32-422f7d1d52889060.png"><link·rel="icon"·type="image/svg+xml"·href="../../static.files/favicon-2c020d218678b618.svg"></head><body·class="rustdoc·struct"><!--[if·lte·IE·11]><div·class="warning">This·old·browser·is·unsupported·and·will·most·likely·display·funky·things.</div><![endif]--><nav·class="mobile-topbar"><button·class="sidebar-menu-toggle"·title="show·sidebar"></button><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-151179464ae7ed46.svg"·alt=""></a></nav><nav·class="sidebar"><div·class="sidebar-crate"><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-151179464ae7ed46.svg"·alt="logo"></a><h2><a·href="../../alloc/index.html">alloc</a><span·class="version">1.78.0</span></h2></div><h2·class="location"><a·href="#">DebugMap</a></h2><div·class="sidebar-elems"><section><h3><a·href="#implementations">Methods</a></h3><ul·class="block·method"><li><a·href="#method.entries">entries</a></li><li><a·href="#method.entry">entry</a></li><li><a·href="#method.finish">finish</a></li><li><a·href="#method.key">key</a></li><li><a·href="#method.key_with">key_with</a></li><li><a·href="#method.value">value</a></li><li><a·href="#method.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">!RefUnwindSafe</a></li><li><a·href="#impl-Send-for-DebugMap%3C'a,+'b%3E">!Send</a></li><li><a·href="#impl-Sync-for-DebugMap%3C'a,+'b%3E">!Sync</a></li><li><a·href="#impl-UnwindSafe-for-DebugMap%3C'a,+'b%3E">!UnwindSafe</a></li><li><a·href="#impl-Freeze-for-DebugMap%3C'a,+'b%3E">Freeze</a></li><li><a·href="#impl-Unpin-for-DebugMap%3C'a,+'b%3E">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">Any</a></li><li><a·href="#impl-Borrow%3CT%3E-for-T">Borrow&lt;T&gt;</a></li><li><a·href="#impl-BorrowMut%3CT%3E-for-T">BorrowMut&lt;T&gt;</a></li><li><a·href="#impl-From%3CT%3E-for-T">From&lt;T&gt;</a></li><li><a·href="#impl-Into%3CU%3E-for-T">Into&lt;U&gt;</a></li><li><a·href="#impl-TryFrom%3CU%3E-for-T">TryFrom&lt;U&gt;</a></li><li><a·href="#impl-TryInto%3CU%3E-for-T">TryInto&lt;U&gt;</a></li></ul></section><h2><a·href="index.html">In·alloc::fmt</a></h2></div></nav><div·class="sidebar-resizer"></div>1 <!DOCTYPE·html><html·lang="en"><head><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.write(`<link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/SourceSerif4-Regular-46f98efaafac5295.ttf.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/FiraSans-Regular-018c141bf0843ffd.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/FiraSans-Medium-8f9a781e4970d388.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/SourceCodePro-Regular-562dcc5011b6de7d.ttf.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/SourceCodePro-Semibold-d899c5a5c4aeb14a.ttf.woff2">`)</script><link·rel="stylesheet"·href="../../static.files/normalize-76eba96aa4d2e634.css"><link·rel="stylesheet"·href="../../static.files/rustdoc-35f9e32502181f1e.css"><meta·name="rustdoc-vars"·data-root-path="../../"·data-static-root-path="../../static.files/"·data-current-crate="alloc"·data-themes=""·data-resource-suffix="1.78.0"·data-rustdoc-version="1.78.0"·data-channel="1.78.0"·data-search-js="search-42d8da7a6b9792c2.js"·data-settings-js="settings-4313503d2e1961c2.js"·><script·src="../../static.files/storage-4c98445ec4002617.js"></script><script·defer·src="sidebar-items1.78.0.js"></script><script·defer·src="../../static.files/main-12cf3b4f4f9dc36d.js"></script><noscript><link·rel="stylesheet"·href="../../static.files/noscript-04d5337699b92874.css"></noscript><link·rel="alternate·icon"·type="image/png"·href="../../static.files/favicon-16x16-8b506e7a72182f1c.png"><link·rel="alternate·icon"·type="image/png"·href="../../static.files/favicon-32x32-422f7d1d52889060.png"><link·rel="icon"·type="image/svg+xml"·href="../../static.files/favicon-2c020d218678b618.svg"></head><body·class="rustdoc·struct"><!--[if·lte·IE·11]><div·class="warning">This·old·browser·is·unsupported·and·will·most·likely·display·funky·things.</div><![endif]--><nav·class="mobile-topbar"><button·class="sidebar-menu-toggle"·title="show·sidebar"></button><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-151179464ae7ed46.svg"·alt=""></a></nav><nav·class="sidebar"><div·class="sidebar-crate"><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-151179464ae7ed46.svg"·alt="logo"></a><h2><a·href="../../alloc/index.html">alloc</a><span·class="version">1.78.0</span></h2></div><h2·class="location"><a·href="#">DebugMap</a></h2><div·class="sidebar-elems"><section><h3><a·href="#implementations">Methods</a></h3><ul·class="block·method"><li><a·href="#method.entries">entries</a></li><li><a·href="#method.entry">entry</a></li><li><a·href="#method.finish">finish</a></li><li><a·href="#method.key">key</a></li><li><a·href="#method.key_with">key_with</a></li><li><a·href="#method.value">value</a></li><li><a·href="#method.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">!RefUnwindSafe</a></li><li><a·href="#impl-Send-for-DebugMap%3C'a,+'b%3E">!Send</a></li><li><a·href="#impl-Sync-for-DebugMap%3C'a,+'b%3E">!Sync</a></li><li><a·href="#impl-UnwindSafe-for-DebugMap%3C'a,+'b%3E">!UnwindSafe</a></li><li><a·href="#impl-Freeze-for-DebugMap%3C'a,+'b%3E">Freeze</a></li><li><a·href="#impl-Unpin-for-DebugMap%3C'a,+'b%3E">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">Any</a></li><li><a·href="#impl-Borrow%3CT%3E-for-T">Borrow&lt;T&gt;</a></li><li><a·href="#impl-BorrowMut%3CT%3E-for-T">BorrowMut&lt;T&gt;</a></li><li><a·href="#impl-From%3CT%3E-for-T">From&lt;T&gt;</a></li><li><a·href="#impl-Into%3CU%3E-for-T">Into&lt;U&gt;</a></li><li><a·href="#impl-TryFrom%3CU%3E-for-T">TryFrom&lt;U&gt;</a></li><li><a·href="#impl-TryInto%3CU%3E-for-T">TryInto&lt;U&gt;</a></li></ul></section><h2><a·href="index.html">In·alloc::fmt</a></h2></div></nav><div·class="sidebar-resizer"></div>
2 ····<main><div·class="width-limiter"><nav·class="sub"><form·class="search-form"><span></span><div·id="sidebar-button"·tabindex="-1"><a·href="../../alloc/all.html"·title="show·sidebar"></a></div><input·class="search-input"·name="search"·aria-label="Run·search·in·the·documentation"·autocomplete="off"·spellcheck="false"·placeholder="Click·or·press·‘S’·to·search,·‘?’·for·more·options…"·type="search"><div·id="help-button"·tabindex="-1"><a·href="../../help.html"·title="help">?</a></div><div·id="settings-menu"·tabindex="-1"><a·href="../../settings.html"·title="settings"><img·width="22"·height="22"·alt="Change·settings"·src="../../static.files/wheel-7b819b6101059cd0.svg"></a></div></form></nav><section·id="main-content"·class="content"><div·class="main-heading"><h1>Struct·<a·href="../index.html">alloc</a>::<wbr><a·href="index.html">fmt</a>::<wbr><a·class="struct"·href="#">DebugMap</a><button·id="copy-path"·title="Copy·item·path·to·clipboard"><img·src="../../static.files/clipboard-7571035ce49a181d.svg"·width="19"·height="18"·alt="Copy·item·path"></button></h1><span·class="out-of-band"><span·class="since"·title="Stable·since·Rust·version·1.2.0">1.2.0</span>···<a·class="src"·href="../../src/core/fmt/builders.rs.html#756">source</a>···<button·id="toggle-all-docs"·title="collapse·all·docs">[<span>&#x2212;</span>]</button></span></div><pre·class="rust·item-decl"><code>pub·struct·DebugMap&lt;'a,·'b&gt;<div·class="where">where2 ····<main><div·class="width-limiter"><nav·class="sub"><form·class="search-form"><span></span><div·id="sidebar-button"·tabindex="-1"><a·href="../../alloc/all.html"·title="show·sidebar"></a></div><input·class="search-input"·name="search"·aria-label="Run·search·in·the·documentation"·autocomplete="off"·spellcheck="false"·placeholder="Click·or·press·‘S’·to·search,·‘?’·for·more·options…"·type="search"><div·id="help-button"·tabindex="-1"><a·href="../../help.html"·title="help">?</a></div><div·id="settings-menu"·tabindex="-1"><a·href="../../settings.html"·title="settings"><img·width="22"·height="22"·alt="Change·settings"·src="../../static.files/wheel-7b819b6101059cd0.svg"></a></div></form></nav><section·id="main-content"·class="content"><div·class="main-heading"><h1>Struct·<a·href="../index.html">alloc</a>::<wbr><a·href="index.html">fmt</a>::<wbr><a·class="struct"·href="#">DebugMap</a><button·id="copy-path"·title="Copy·item·path·to·clipboard"><img·src="../../static.files/clipboard-7571035ce49a181d.svg"·width="19"·height="18"·alt="Copy·item·path"></button></h1><span·class="out-of-band"><span·class="since"·title="Stable·since·Rust·version·1.2.0">1.2.0</span>···<a·class="src"·href="https://doc.rust-lang.org/1.78.0/src/core/fmt/builders.rs.html#756">source</a>···<button·id="toggle-all-docs"·title="collapse·all·docs">[<span>&#x2212;</span>]</button></span></div><pre·class="rust·item-decl"><code>pub·struct·DebugMap&lt;'a,·'b&gt;<div·class="where">where
3 ····'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 ····'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>
4 <p>This·is·useful·when·you·wish·to·output·a·formatted·map·as·a·part·of·your4 <p>This·is·useful·when·you·wish·to·output·a·formatted·map·as·a·part·of·your
5 <a·href="trait.Debug.html#tymethod.fmt"·title="method·alloc::fmt::Debug::fmt"><code>Debug::fmt</code></a>·implementation.</p>5 <a·href="trait.Debug.html#tymethod.fmt"·title="method·alloc::fmt::Debug::fmt"><code>Debug::fmt</code></a>·implementation.</p>
6 <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 <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>
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 <div·class="example-wrap"><pre·class="rust·rust-example-rendered"><code><span·class="kw">use·</span>std::fmt;8 <div·class="example-wrap"><pre·class="rust·rust-example-rendered"><code><span·class="kw">use·</span>std::fmt;
  
Offset 15, 16 lines modifiedOffset 15, 16 lines modified
15 ····}15 ····}
16 }16 }
  
17 <span·class="macro">assert_eq!</span>(17 <span·class="macro">assert_eq!</span>(
18 ····<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="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>)])),
19 ····<span·class="string">"{\"A\":·10,·\"B\":·11}"</span>,19 ····<span·class="string">"{\"A\":·10,·\"B\":·11}"</span>,
20 );</code></pre><a·class="test-arrow"·target="_blank"·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++++++++%22%7B%5C%22A%5C%22:+10,+%5C%22B%5C%22:+11%7D%22,%0A++++);%0A%7D&amp;edition=2021">Run</a></div>20 );</code></pre><a·class="test-arrow"·target="_blank"·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++++++++%22%7B%5C%22A%5C%22:+10,+%5C%22B%5C%22:+11%7D%22,%0A++++);%0A%7D&amp;edition=2021">Run</a></div>
21 </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#770">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">where21 </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.78.0/src/core/fmt/builders.rs.html#770">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
22 ····'b:·'a,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.entry"·class="method"><a·class="src·rightside"·href="../../src/core/fmt/builders.rs.html#794">source</a><h4·class="code-header">pub·fn·<a·href="#method.entry"·class="fn">entry</a>(22 ····'b:·'a,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.entry"·class="method"><a·class="src·rightside"·href="https://doc.rust-lang.org/1.78.0/src/core/fmt/builders.rs.html#794">source</a><h4·class="code-header">pub·fn·<a·href="#method.entry"·class="fn">entry</a>(
23 ····&amp;mut·self,23 ····&amp;mut·self,
24 ····key:·&amp;dyn·<a·class="trait"·href="trait.Debug.html"·title="trait·alloc::fmt::Debug">Debug</a>,24 ····key:·&amp;dyn·<a·class="trait"·href="trait.Debug.html"·title="trait·alloc::fmt::Debug">Debug</a>,
25 ····value:·&amp;dyn·<a·class="trait"·href="trait.Debug.html"·title="trait·alloc::fmt::Debug">Debug</a>25 ····value:·&amp;dyn·<a·class="trait"·href="trait.Debug.html"·title="trait·alloc::fmt::Debug">Debug</a>
26 )·-&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 )·-&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>
27 <h5·id="examples-1"><a·class="doc-anchor"·href="#examples-1">§</a>Examples</h5>27 <h5·id="examples-1"><a·class="doc-anchor"·href="#examples-1">§</a>Examples</h5>
28 <div·class="example-wrap"><pre·class="rust·rust-example-rendered"><code><span·class="kw">use·</span>std::fmt;28 <div·class="example-wrap"><pre·class="rust·rust-example-rendered"><code><span·class="kw">use·</span>std::fmt;
  
Offset 38, 15 lines modifiedOffset 38, 15 lines modified
38 ····}38 ····}
39 }39 }
  
40 <span·class="macro">assert_eq!</span>(40 <span·class="macro">assert_eq!</span>(
41 ····<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="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>)])),
42 ····<span·class="string">"{\"whole\":·[(\"A\",·10),·(\"B\",·11)]}"</span>,42 ····<span·class="string">"{\"whole\":·[(\"A\",·10),·(\"B\",·11)]}"</span>,
43 );</code></pre><a·class="test-arrow"·target="_blank"·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++++++++%22%7B%5C%22whole%5C%22:+%5B(%5C%22A%5C%22,+10),+(%5C%22B%5C%22,+11)%5D%7D%22,%0A++++);%0A%7D&amp;edition=2021">Run</a></div>43 );</code></pre><a·class="test-arrow"·target="_blank"·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++++++++%22%7B%5C%22whole%5C%22:+%5B(%5C%22A%5C%22,+10),+(%5C%22B%5C%22,+11)%5D%7D%22,%0A++++);%0A%7D&amp;edition=2021">Run</a></div>
44 </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#830">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 </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.78.0/src/core/fmt/builders.rs.html#830">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>
45 <p>This·method,·together·with·<code>value</code>,·is·an·alternative·to·<code>entry</code>·that45 <p>This·method,·together·with·<code>value</code>,·is·an·alternative·to·<code>entry</code>·that
46 can·be·used·when·the·complete·entry·isn’t·known·upfront.·Prefer·the·<code>entry</code>46 can·be·used·when·the·complete·entry·isn’t·known·upfront.·Prefer·the·<code>entry</code>
47 method·when·it’s·possible·to·use.</p>47 method·when·it’s·possible·to·use.</p>
48 <h5·id="panics"><a·class="doc-anchor"·href="#panics">§</a>Panics</h5>48 <h5·id="panics"><a·class="doc-anchor"·href="#panics">§</a>Panics</h5>
49 <p><code>key</code>·must·be·called·before·<code>value</code>·and·each·call·to·<code>key</code>·must·be·followed49 <p><code>key</code>·must·be·called·before·<code>value</code>·and·each·call·to·<code>key</code>·must·be·followed
50 by·a·corresponding·call·to·<code>value</code>.·Otherwise·this·method·will·panic.</p>50 by·a·corresponding·call·to·<code>value</code>.·Otherwise·this·method·will·panic.</p>
51 <h5·id="examples-2"><a·class="doc-anchor"·href="#examples-2">§</a>Examples</h5>51 <h5·id="examples-2"><a·class="doc-anchor"·href="#examples-2">§</a>Examples</h5>
Offset 62, 19 lines modifiedOffset 62, 19 lines modified
62 ····}62 ····}
63 }63 }
  
64 <span·class="macro">assert_eq!</span>(64 <span·class="macro">assert_eq!</span>(
65 ····<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="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>)])),
66 ····<span·class="string">"{\"whole\":·[(\"A\",·10),·(\"B\",·11)]}"</span>,66 ····<span·class="string">"{\"whole\":·[(\"A\",·10),·(\"B\",·11)]}"</span>,
67 );</code></pre><a·class="test-arrow"·target="_blank"·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++++++++%22%7B%5C%22whole%5C%22:+%5B(%5C%22A%5C%22,+10),+(%5C%22B%5C%22,+11)%5D%7D%22,%0A++++);%0A%7D&amp;edition=2021">Run</a></div>67 );</code></pre><a·class="test-arrow"·target="_blank"·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++++++++%22%7B%5C%22whole%5C%22:+%5B(%5C%22A%5C%22,+10),+(%5C%22B%5C%22,+11)%5D%7D%22,%0A++++);%0A%7D&amp;edition=2021">Run</a></div>
68 </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#839-841">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">where68 </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.78.0/src/core/fmt/builders.rs.html#839-841">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
69 ····F:·<a·class="trait"·href="../../core/ops/function/trait.FnOnce.html"·title="trait·core::ops::function::FnOnce">FnOnce</a>(&amp;mut·<a·class="struct"·href="struct.Formatter.html"·title="struct·alloc::fmt::Formatter">Formatter</a>&lt;'_&gt;)·-&gt;·<a·class="enum"·href="../../core/res[·...·truncated·by·diffoscope;·len:·102,·SHA:·57858821eade5fde37c26c2cd183685d201c1c85edfe3c189932fc5dbced53e0·...·]/core/primitive.unit.html">()</a>,·<a·class="struct"·href="struct.Error.html"·title="struct·alloc::fmt::Error">Error</a>&gt;,</div></h4></section><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>debug_closure_helpers</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/117729">#117729</a>)</span></div></span></summary><div·class="docblock"><p>Adds·the·key·part·of·a·new·entry·to·the·map·output.</p>69 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.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:·0fa7436d4eda82d31a1407bc94d3105381e901d15bef7bc1c599e5706bad3a85·...·]/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>
70 <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·the70 <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
71 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 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>
72 </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#906">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 </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.78.0/src/core/fmt/builders.rs.html#906">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>
73 <p>This·method,·together·with·<code>key</code>,·is·an·alternative·to·<code>entry</code>·that73 <p>This·method,·together·with·<code>key</code>,·is·an·alternative·to·<code>entry</code>·that
74 can·be·used·when·the·complete·entry·isn’t·known·upfront.·Prefer·the·<code>entry</code>74 can·be·used·when·the·complete·entry·isn’t·known·upfront.·Prefer·the·<code>entry</code>
75 method·when·it’s·possible·to·use.</p>75 method·when·it’s·possible·to·use.</p>
76 <h5·id="panics-1"><a·class="doc-anchor"·href="#panics-1">§</a>Panics</h5>76 <h5·id="panics-1"><a·class="doc-anchor"·href="#panics-1">§</a>Panics</h5>
77 <p><code>key</code>·must·be·called·before·<code>value</code>·and·each·call·to·<code>key</code>·must·be·followed77 <p><code>key</code>·must·be·called·before·<code>value</code>·and·each·call·to·<code>key</code>·must·be·followed
78 by·a·corresponding·call·to·<code>value</code>.·Otherwise·this·method·will·panic.</p>78 by·a·corresponding·call·to·<code>value</code>.·Otherwise·this·method·will·panic.</p>
79 <h5·id="examples-3"><a·class="doc-anchor"·href="#examples-3">§</a>Examples</h5>79 <h5·id="examples-3"><a·class="doc-anchor"·href="#examples-3">§</a>Examples</h5>
Offset 90, 22 lines modifiedOffset 90, 22 lines modified
90 ····}90 ····}
91 }91 }
  
92 <span·class="macro">assert_eq!</span>(92 <span·class="macro">assert_eq!</span>(
93 ····<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="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>)])),
94 ····<span·class="string">"{\"whole\":·[(\"A\",·10),·(\"B\",·11)]}"</span>,94 ····<span·class="string">"{\"whole\":·[(\"A\",·10),·(\"B\",·11)]}"</span>,
95 );</code></pre><a·class="test-arrow"·target="_blank"·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++++++++%22%7B%5C%22whole%5C%22:+%5B(%5C%22A%5C%22,+10),+(%5C%22B%5C%22,+11)%5D%7D%22,%0A++++);%0A%7D&amp;edition=2021">Run</a></div>95 );</code></pre><a·class="test-arrow"·target="_blank"·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++++++++%22%7B%5C%22whole%5C%22:+%5B(%5C%22A%5C%22,+10),+(%5C%22B%5C%22,+11)%5D%7D%22,%0A++++);%0A%7D&amp;edition=2021">Run</a></div>
96 </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#915-917">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">where96 </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.78.0/src/core/fmt/builders.rs.html#915-917">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
97 ····F:·<a·class="trait"·href="../../core/ops/function/trait.FnOnce.html"·title="trait·core::ops::function::FnOnce">FnOnce</a>(&amp;mut·<a·class="struct"·href="struct.Formatter.html"·title="struct·alloc::fmt::Formatter">Formatter</a>&lt;'_&gt;)·-&gt;·<a·class="enum"·href="../../core/res[·...·truncated·by·diffoscope;·len:·102,·SHA:·57858821eade5fde37c26c2cd183685d201c1c85edfe3c189932fc5dbced53e0·...·]/core/primitive.unit.html">()</a>,·<a·class="struct"·href="struct.Error.html"·title="struct·alloc::fmt::Error">Error</a>&gt;,</div></h4></section><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>debug_closure_helpers</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/117729">#117729</a>)</span></div></span></summary><div·class="docblock"><p>Adds·the·value·part·of·a·new·entry·to·the·map·output.</p>97 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.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:·0fa7436d4eda82d31a1407bc94d3105381e901d15bef7bc1c599e5706bad3a85·...·]/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>
98 <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·the98 <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
99 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 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>
100 </div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.entries"·class="method"><a·class="src·rightside"·href="../../src/core/fmt/builders.rs.html#964-968">source</a><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">where100 </div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.entries"·class="method"><a·class="src·rightside"·href="https://doc.rust-lang.org/1.78.0/src/core/fmt/builders.rs.html#964-968">source</a><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
101 ····K:·<a·class="trait"·href="trait.Debug.html"·title="trait·alloc::fmt::Debug">Debug</a>,101 ····K:·<a·class="trait"·href="trait.Debug.html"·title="trait·alloc::fmt::Debug">Debug</a>,
102 ····V:·<a·class="trait"·href="trait.Debug.html"·title="trait·alloc::fmt::Debug">Debug</a>,102 ····V:·<a·class="trait"·href="trait.Debug.html"·title="trait·alloc::fmt::Debug">Debug</a>,
103 ····I:·<a·class="trait"·href="../../core/iter/traits/collect/trait.IntoIterator.html"·title="trait·core::iter::traits::collect::IntoIterator">IntoIterator</a>&lt;Item·=·<a·class="primitive"·href="../../core/primitive.tuple.html">(K,·V)</a>&gt;,</div></h4></section></summary><div·class="docblock"><p>Adds·the·contents·of·an·iterator·of·entries·to·the·map·output.</p>103 ····I:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.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.78.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>
104 <h5·id="examples-4"><a·class="doc-anchor"·href="#examples-4">§</a>Examples</h5>104 <h5·id="examples-4"><a·class="doc-anchor"·href="#examples-4">§</a>Examples</h5>
105 <div·class="example-wrap"><pre·class="rust·rust-example-rendered"><code><span·class="kw">use·</span>std::fmt;105 <div·class="example-wrap"><pre·class="rust·rust-example-rendered"><code><span·class="kw">use·</span>std::fmt;
  
106 <span·class="kw">struct·</span>Foo(Vec&lt;(String,·i32)&gt;);106 <span·class="kw">struct·</span>Foo(Vec&lt;(String,·i32)&gt;);
  
107 <span·class="kw">impl·</span>fmt::Debug·<span·class="kw">for·</span>Foo·{107 <span·class="kw">impl·</span>fmt::Debug·<span·class="kw">for·</span>Foo·{
108 ····<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·{108 ····<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 117, 15 lines modifiedOffset 117, 15 lines modified
117 ····}117 ····}
118 }118 }
  
119 <span·class="macro">assert_eq!</span>(119 <span·class="macro">assert_eq!</span>(
120 ····<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="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>)])),
121 ····<span·class="string">"{\"A\":·10,·\"B\":·11}"</span>,121 ····<span·class="string">"{\"A\":·10,·\"B\":·11}"</span>,
122 );</code></pre><a·class="test-arrow"·target="_blank"·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++++++++%22%7B%5C%22A%5C%22:+10,+%5C%22B%5C%22:+11%7D%22,%0A++++);%0A%7D&amp;edition=2021">Run</a></div>122 );</code></pre><a·class="test-arrow"·target="_blank"·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++++++++%22%7B%5C%22A%5C%22:+10,+%5C%22B%5C%22:+11%7D%22,%0A++++);%0A%7D&amp;edition=2021">Run</a></div>
123 </div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.finish"·class="method"><a·class="src·rightside"·href="../../src/core/fmt/builders.rs.html#1004">source</a><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</a>&lt[·...·truncated·by·diffoscope;·len:·33,·SHA:·0c883a2ceaf5090676ce622b2bc28cec0f350b06c0e553c666da4828ff28ea38·...·]/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>123 </div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.finish"·class="method"><a·class="src·rightside"·href="https://doc.rust-lang.org/1.78.0/src/core/fmt/builders.rs.html#1004">source</a><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.78.0/core/result/enum.Result[·...·truncated·by·diffoscope;·len:·114,·SHA:·446052f03a73582d7e4af616823838f96510f4a825461e069c9cde9df6c4aeb8·...·]/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>
124 <h5·id="panics-2"><a·class="doc-anchor"·href="#panics-2">§</a>Panics</h5>124 <h5·id="panics-2"><a·class="doc-anchor"·href="#panics-2">§</a>Panics</h5>
125 <p><code>key</code>·must·be·called·before·<code>value</code>·and·each·call·to·<code>key</code>·must·be·followed125 <p><code>key</code>·must·be·called·before·<code>value</code>·and·each·call·to·<code>key</code>·must·be·followed
126 by·a·corresponding·call·to·<code>value</code>.·Otherwise·this·method·will·panic.</p>126 by·a·corresponding·call·to·<code>value</code>.·Otherwise·this·method·will·panic.</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 <div·class="example-wrap"><pre·class="rust·rust-example-rendered"><code><span·class="kw">use·</span>std::fmt;128 <div·class="example-wrap"><pre·class="rust·rust-example-rendered"><code><span·class="kw">use·</span>std::fmt;
  
129 <span·class="kw">struct·</span>Foo(Vec&lt;(String,·i32)&gt;);129 <span·class="kw">struct·</span>Foo(Vec&lt;(String,·i32)&gt;);
Offset 138, 18 lines modifiedOffset 138, 18 lines modified
138 ····</span>}138 ····</span>}
139 }139 }
  
140 <span·class="macro">assert_eq!</span>(140 <span·class="macro">assert_eq!</span>(
141 ····<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>)])),141 ····<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>)])),
142 ····<span·class="string">"{\"A\":·10,·\"B\":·11}"</span>,142 ····<span·class="string">"{\"A\":·10,·\"B\":·11}"</span>,
143 );</code></pre><a·class="test-arrow"·target="_blank"·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++++++++%22%7B%5C%22A%5C%22:+10,+%5C%22B%5C%22:+11%7D%22,%0A++++);%0A%7D&amp;edition=2021">Run</a></div>143 );</code></pre><a·class="test-arrow"·target="_blank"·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++++++++%22%7B%5C%22A%5C%22:+10,+%5C%22B%5C%22:+11%7D%22,%0A++++);%0A%7D&amp;edition=2021">Run</a></div>
144 </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:·8069d121dd7f71aa38e4db87b035884c1973d36571d24aaaffade58ccc0f6393·...·]/core/any/trait.Any.html"·title="trait·core::any::Any">Any</a>·for·T<div·class="where">where144 </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.78.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:·1a3a9d36d7d2cea27a38e80920cdc93e93c00ee89d5fbd5e6608f32381152645·...·]/core/any/trait.Any.html"·title="trait·core::any::Any">Any</a>·for·T<div·class="where">where
145 ····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:·9db8bacb767d75cc3351ca7341c388130aa05ebef490d992be5374f16eedc378·...·]/src/core/borrow.rs.html#208">source</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">where145 ····T:·'static·+·?<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">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:·039b8952ccb1ab7d8f15cd519cbc10f4afc149276d0f9cfd3a53117d606059df·...·]/src/core/borrow.rs.html#208">source</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
146 ····T:·?<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::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:·b2ffbab17ff1ef71ba4c506a3aaa515da2082da6f02a53862ce1ca2b2b25f5b4·...·]/src/core/borrow.rs.html#216">source</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">where146 ····T:·?<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/marker/trait.Sized.html"·title="trait·core::marker::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:·952d76e7bcf7b521fffa418ce638abf69976de0942360e56f93e419ca3389394·...·]/src/core/borrow.rs.html#216">source</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
147 ····T:·?<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::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:·befefcb8cb29dc857e1f3050572f6f470317e3350e0851c4ed6e56cc38673a92·...·]/core/convert/trait.From.html#tymethod.from"·class="fn">from</a>(t:·T)·-&gt;·T</h4></section></summary><div·class="docblock"><p>Returns·the·argument·unchanged.</p>147 ····T:·?<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/marker/trait.Sized.html"·title="trait·core::marker::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:·204bc28c8766993ff59d26bb790f1469ab686e6f172c57f35aa987a81507a7b1·...·]/core/convert/trait.From.html#tymethod.from"·class="fn">from</a>(t:·T)·-&gt;·T</h4></section></summary><div·class="docblock"><p>Returns·the·argument·unchanged.</p>
148 </div></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">where148 </div></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.78.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.78.0/core/convert/trait.Into.html"·title="trait·core::convert::Into">Into</a>&lt;U&gt;·for·T<div·class="where">where
149 ····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>149 ····U:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.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:·2cf76a8ca501b2a1fef209fed846779ab1bed3b75f52c7425335e3ce04e6b272·...·]/core/convert/trait.Into.html#tymethod.into"·class="fn">into</a>(self)·-&gt;·U</h4></section></summary><div·class="docblock"><p>Calls·<code>U::from(self)</code>.</p>
150 <p>That·is,·this·conversion·is·whatever·the·implementation·of150 <p>That·is,·this·conversion·is·whatever·the·implementation·of
151 <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>151 <code><a·href="https://doc.rust-lang.org/1.78.0/core/convert/trait.From.html"·title="trait·core::convert::From">From</a>&lt;T&gt;·for·U</code>·chooses·to·do.</p>
152 </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">where152 </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.78.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.78.0/core/convert/trait.TryFrom.html"·title="trait·core::convert::TryFrom">TryFrom</a>&lt;U&gt;·for·T<div·class="where">where
153 ····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"·class="associatedtype·trait-impl"><a·hre[·...·truncated·by·diffoscope;·len:·1591,·SHA:·8537afacf1b3cf6b9fb7db778975d49d8a8e5988d420715e464ff4a79dd696c5·...·]/core/convert/trait.TryInto.html"·title="trait·core::convert::TryInto">TryInto</a>&lt;U&gt;·for·T<div·class="where">where153 ····U:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.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"·class="associ[·...·truncated·by·diffoscope;·len:·1861,·SHA:·78398046ba16de2f66a8201a11d6a2dd405fceedeabfcaa37481e77092687e6f·...·]/core/convert/trait.TryInto.html"·title="trait·core::convert::TryInto">TryInto</a>&lt;U&gt;·for·T<div·class="where">where
154 ····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-1"·class="associatedtype·trait-i[·...·truncated·by·diffoscope;·len:·1231,·SHA:·7843e7b6cca73922417e4154886c0df66f016d274b48933c21bdb75b67479d5b·...·]/core/convert/trait.TryFrom.html#associatedtype.Error"·title="type·core::convert::TryFrom::Error">Error</a>&gt;</h4></section></summary><div·class='docblock'>Performs·the·conversion.</div></details></div></details></div></section></div></main></body></html>154 ····U:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.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-1"·cl[·...·truncated·by·diffoscope;·len:·1474,·SHA:·ca90cccb6c86c654c95a1aaec456fbbe4b115f0d5a700e7d156e823346d70894·...·]/core/convert/trait.TryFrom.html#associatedtype.Error"·title="type·core::convert::TryFrom::Error">Error</a>&gt;</h4></section></summary><div·class='docblock'>Performs·the·conversion.</div></details></div></details></div></section></div></main></body></html>
48.8 KB
./usr/share/doc/rust-web-doc/html/alloc/fmt/struct.DebugSet.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="A·struct·to·help·with·`fmt::Debug`·implementations."><title>DebugSet·in·alloc::fmt·-·Rust</title><script>·if·(window.location.protocol·!==·"file:")·document.write(`<link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/SourceSerif4-Regular-46f98efaafac5295.ttf.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/FiraSans-Regular-018c141bf0843ffd.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/FiraSans-Medium-8f9a781e4970d388.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/SourceCodePro-Regular-562dcc5011b6de7d.ttf.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/SourceCodePro-Semibold-d899c5a5c4aeb14a.ttf.woff2">`)</script><link·rel="stylesheet"·href="../../static.files/normalize-76eba96aa4d2e634.css"><link·rel="stylesheet"·href="../../static.files/rustdoc-35f9e32502181f1e.css"><meta·name="rustdoc-vars"·data-root-path="../../"·data-static-root-path="../../static.files/"·data-current-crate="alloc"·data-themes=""·data-resource-suffix="1.78.0"·data-rustdoc-version="1.78.0"·data-channel="1.78.0"·data-search-js="search-42d8da7a6b9792c2.js"·data-settings-js="settings-4313503d2e1961c2.js"·><script·src="../../static.files/storage-4c98445ec4002617.js"></script><script·defer·src="sidebar-items1.78.0.js"></script><script·defer·src="../../static.files/main-12cf3b4f4f9dc36d.js"></script><noscript><link·rel="stylesheet"·href="../../static.files/noscript-04d5337699b92874.css"></noscript><link·rel="alternate·icon"·type="image/png"·href="../../static.files/favicon-16x16-8b506e7a72182f1c.png"><link·rel="alternate·icon"·type="image/png"·href="../../static.files/favicon-32x32-422f7d1d52889060.png"><link·rel="icon"·type="image/svg+xml"·href="../../static.files/favicon-2c020d218678b618.svg"></head><body·class="rustdoc·struct"><!--[if·lte·IE·11]><div·class="warning">This·old·browser·is·unsupported·and·will·most·likely·display·funky·things.</div><![endif]--><nav·class="mobile-topbar"><button·class="sidebar-menu-toggle"·title="show·sidebar"></button><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-151179464ae7ed46.svg"·alt=""></a></nav><nav·class="sidebar"><div·class="sidebar-crate"><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-151179464ae7ed46.svg"·alt="logo"></a><h2><a·href="../../alloc/index.html">alloc</a><span·class="version">1.78.0</span></h2></div><h2·class="location"><a·href="#">DebugSet</a></h2><div·class="sidebar-elems"><section><h3><a·href="#implementations">Methods</a></h3><ul·class="block·method"><li><a·href="#method.entries">entries</a></li><li><a·href="#method.entry">entry</a></li><li><a·href="#method.entry_with">entry_with</a></li><li><a·href="#method.finish">finish</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">!RefUnwindSafe</a></li><li><a·href="#impl-Send-for-DebugSet%3C'a,+'b%3E">!Send</a></li><li><a·href="#impl-Sync-for-DebugSet%3C'a,+'b%3E">!Sync</a></li><li><a·href="#impl-UnwindSafe-for-DebugSet%3C'a,+'b%3E">!UnwindSafe</a></li><li><a·href="#impl-Freeze-for-DebugSet%3C'a,+'b%3E">Freeze</a></li><li><a·href="#impl-Unpin-for-DebugSet%3C'a,+'b%3E">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">Any</a></li><li><a·href="#impl-Borrow%3CT%3E-for-T">Borrow&lt;T&gt;</a></li><li><a·href="#impl-BorrowMut%3CT%3E-for-T">BorrowMut&lt;T&gt;</a></li><li><a·href="#impl-From%3CT%3E-for-T">From&lt;T&gt;</a></li><li><a·href="#impl-Into%3CU%3E-for-T">Into&lt;U&gt;</a></li><li><a·href="#impl-TryFrom%3CU%3E-for-T">TryFrom&lt;U&gt;</a></li><li><a·href="#impl-TryInto%3CU%3E-for-T">TryInto&lt;U&gt;</a></li></ul></section><h2><a·href="index.html">In·alloc::fmt</a></h2></div></nav><div·class="sidebar-resizer"></div>1 <!DOCTYPE·html><html·lang="en"><head><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.write(`<link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/SourceSerif4-Regular-46f98efaafac5295.ttf.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/FiraSans-Regular-018c141bf0843ffd.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/FiraSans-Medium-8f9a781e4970d388.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/SourceCodePro-Regular-562dcc5011b6de7d.ttf.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/SourceCodePro-Semibold-d899c5a5c4aeb14a.ttf.woff2">`)</script><link·rel="stylesheet"·href="../../static.files/normalize-76eba96aa4d2e634.css"><link·rel="stylesheet"·href="../../static.files/rustdoc-35f9e32502181f1e.css"><meta·name="rustdoc-vars"·data-root-path="../../"·data-static-root-path="../../static.files/"·data-current-crate="alloc"·data-themes=""·data-resource-suffix="1.78.0"·data-rustdoc-version="1.78.0"·data-channel="1.78.0"·data-search-js="search-42d8da7a6b9792c2.js"·data-settings-js="settings-4313503d2e1961c2.js"·><script·src="../../static.files/storage-4c98445ec4002617.js"></script><script·defer·src="sidebar-items1.78.0.js"></script><script·defer·src="../../static.files/main-12cf3b4f4f9dc36d.js"></script><noscript><link·rel="stylesheet"·href="../../static.files/noscript-04d5337699b92874.css"></noscript><link·rel="alternate·icon"·type="image/png"·href="../../static.files/favicon-16x16-8b506e7a72182f1c.png"><link·rel="alternate·icon"·type="image/png"·href="../../static.files/favicon-32x32-422f7d1d52889060.png"><link·rel="icon"·type="image/svg+xml"·href="../../static.files/favicon-2c020d218678b618.svg"></head><body·class="rustdoc·struct"><!--[if·lte·IE·11]><div·class="warning">This·old·browser·is·unsupported·and·will·most·likely·display·funky·things.</div><![endif]--><nav·class="mobile-topbar"><button·class="sidebar-menu-toggle"·title="show·sidebar"></button><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-151179464ae7ed46.svg"·alt=""></a></nav><nav·class="sidebar"><div·class="sidebar-crate"><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-151179464ae7ed46.svg"·alt="logo"></a><h2><a·href="../../alloc/index.html">alloc</a><span·class="version">1.78.0</span></h2></div><h2·class="location"><a·href="#">DebugSet</a></h2><div·class="sidebar-elems"><section><h3><a·href="#implementations">Methods</a></h3><ul·class="block·method"><li><a·href="#method.entries">entries</a></li><li><a·href="#method.entry">entry</a></li><li><a·href="#method.entry_with">entry_with</a></li><li><a·href="#method.finish">finish</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">!RefUnwindSafe</a></li><li><a·href="#impl-Send-for-DebugSet%3C'a,+'b%3E">!Send</a></li><li><a·href="#impl-Sync-for-DebugSet%3C'a,+'b%3E">!Sync</a></li><li><a·href="#impl-UnwindSafe-for-DebugSet%3C'a,+'b%3E">!UnwindSafe</a></li><li><a·href="#impl-Freeze-for-DebugSet%3C'a,+'b%3E">Freeze</a></li><li><a·href="#impl-Unpin-for-DebugSet%3C'a,+'b%3E">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">Any</a></li><li><a·href="#impl-Borrow%3CT%3E-for-T">Borrow&lt;T&gt;</a></li><li><a·href="#impl-BorrowMut%3CT%3E-for-T">BorrowMut&lt;T&gt;</a></li><li><a·href="#impl-From%3CT%3E-for-T">From&lt;T&gt;</a></li><li><a·href="#impl-Into%3CU%3E-for-T">Into&lt;U&gt;</a></li><li><a·href="#impl-TryFrom%3CU%3E-for-T">TryFrom&lt;U&gt;</a></li><li><a·href="#impl-TryInto%3CU%3E-for-T">TryInto&lt;U&gt;</a></li></ul></section><h2><a·href="index.html">In·alloc::fmt</a></h2></div></nav><div·class="sidebar-resizer"></div>
2 ····<main><div·class="width-limiter"><nav·class="sub"><form·class="search-form"><span></span><div·id="sidebar-button"·tabindex="-1"><a·href="../../alloc/all.html"·title="show·sidebar"></a></div><input·class="search-input"·name="search"·aria-label="Run·search·in·the·documentation"·autocomplete="off"·spellcheck="false"·placeholder="Click·or·press·‘S’·to·search,·‘?’·for·more·options…"·type="search"><div·id="help-button"·tabindex="-1"><a·href="../../help.html"·title="help">?</a></div><div·id="settings-menu"·tabindex="-1"><a·href="../../settings.html"·title="settings"><img·width="22"·height="22"·alt="Change·settings"·src="../../static.files/wheel-7b819b6101059cd0.svg"></a></div></form></nav><section·id="main-content"·class="content"><div·class="main-heading"><h1>Struct·<a·href="../index.html">alloc</a>::<wbr><a·href="index.html">fmt</a>::<wbr><a·class="struct"·href="#">DebugSet</a><button·id="copy-path"·title="Copy·item·path·to·clipboard"><img·src="../../static.files/clipboard-7571035ce49a181d.svg"·width="19"·height="18"·alt="Copy·item·path"></button></h1><span·class="out-of-band"><span·class="since"·title="Stable·since·Rust·version·1.2.0">1.2.0</span>···<a·class="src"·href="../../src/core/fmt/builders.rs.html#470">source</a>···<button·id="toggle-all-docs"·title="collapse·all·docs">[<span>&#x2212;</span>]</button></span></div><pre·class="rust·item-decl"><code>pub·struct·DebugSet&lt;'a,·'b&gt;<div·class="where">where2 ····<main><div·class="width-limiter"><nav·class="sub"><form·class="search-form"><span></span><div·id="sidebar-button"·tabindex="-1"><a·href="../../alloc/all.html"·title="show·sidebar"></a></div><input·class="search-input"·name="search"·aria-label="Run·search·in·the·documentation"·autocomplete="off"·spellcheck="false"·placeholder="Click·or·press·‘S’·to·search,·‘?’·for·more·options…"·type="search"><div·id="help-button"·tabindex="-1"><a·href="../../help.html"·title="help">?</a></div><div·id="settings-menu"·tabindex="-1"><a·href="../../settings.html"·title="settings"><img·width="22"·height="22"·alt="Change·settings"·src="../../static.files/wheel-7b819b6101059cd0.svg"></a></div></form></nav><section·id="main-content"·class="content"><div·class="main-heading"><h1>Struct·<a·href="../index.html">alloc</a>::<wbr><a·href="index.html">fmt</a>::<wbr><a·class="struct"·href="#">DebugSet</a><button·id="copy-path"·title="Copy·item·path·to·clipboard"><img·src="../../static.files/clipboard-7571035ce49a181d.svg"·width="19"·height="18"·alt="Copy·item·path"></button></h1><span·class="out-of-band"><span·class="since"·title="Stable·since·Rust·version·1.2.0">1.2.0</span>···<a·class="src"·href="https://doc.rust-lang.org/1.78.0/src/core/fmt/builders.rs.html#470">source</a>···<button·id="toggle-all-docs"·title="collapse·all·docs">[<span>&#x2212;</span>]</button></span></div><pre·class="rust·item-decl"><code>pub·struct·DebugSet&lt;'a,·'b&gt;<div·class="where">where
3 ····'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 ····'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>
4 <p>This·is·useful·when·you·wish·to·output·a·formatted·set·of·items·as·a·part4 <p>This·is·useful·when·you·wish·to·output·a·formatted·set·of·items·as·a·part
5 of·your·<a·href="trait.Debug.html#tymethod.fmt"·title="method·alloc::fmt::Debug::fmt"><code>Debug::fmt</code></a>·implementation.</p>5 of·your·<a·href="trait.Debug.html#tymethod.fmt"·title="method·alloc::fmt::Debug::fmt"><code>Debug::fmt</code></a>·implementation.</p>
6 <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 <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>
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 <div·class="example-wrap"><pre·class="rust·rust-example-rendered"><code><span·class="kw">use·</span>std::fmt;8 <div·class="example-wrap"><pre·class="rust·rust-example-rendered"><code><span·class="kw">use·</span>std::fmt;
  
Offset 15, 16 lines modifiedOffset 15, 16 lines modified
15 ····}15 ····}
16 }16 }
  
17 <span·class="macro">assert_eq!</span>(17 <span·class="macro">assert_eq!</span>(
18 ····<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="macro">format!</span>(<span·class="string">"{:?}"</span>,·Foo(<span·class="macro">vec!</span>[<span·class="number">10</span>,·<span·class="number">11</span>])),
19 ····<span·class="string">"{10,·11}"</span>,19 ····<span·class="string">"{10,·11}"</span>,
20 );</code></pre><a·class="test-arrow"·target="_blank"·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">Run</a></div>20 );</code></pre><a·class="test-arrow"·target="_blank"·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">Run</a></div>
21 </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#479">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">where21 </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.78.0/src/core/fmt/builders.rs.html#479">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
22 ····'b:·'a,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.entry"·class="method"><a·class="src·rightside"·href="../../src/core/fmt/builders.rs.html#504">source</a><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 ····'b:·'a,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.entry"·class="method"><a·class="src·rightside"·href="https://doc.rust-lang.org/1.78.0/src/core/fmt/builders.rs.html#504">source</a><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>
23 <h5·id="examples-1"><a·class="doc-anchor"·href="#examples-1">§</a>Examples</h5>23 <h5·id="examples-1"><a·class="doc-anchor"·href="#examples-1">§</a>Examples</h5>
24 <div·class="example-wrap"><pre·class="rust·rust-example-rendered"><code><span·class="kw">use·</span>std::fmt;24 <div·class="example-wrap"><pre·class="rust·rust-example-rendered"><code><span·class="kw">use·</span>std::fmt;
  
25 <span·class="kw">struct·</span>Foo(Vec&lt;i32&gt;,·Vec&lt;u32&gt;);25 <span·class="kw">struct·</span>Foo(Vec&lt;i32&gt;,·Vec&lt;u32&gt;);
  
26 <span·class="kw">impl·</span>fmt::Debug·<span·class="kw">for·</span>Foo·{26 <span·class="kw">impl·</span>fmt::Debug·<span·class="kw">for·</span>Foo·{
27 ····<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·{27 ····<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 35, 21 lines modifiedOffset 35, 21 lines modified
35 ····}35 ····}
36 }36 }
  
37 <span·class="macro">assert_eq!</span>(37 <span·class="macro">assert_eq!</span>(
38 ····<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="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>])),
39 ····<span·class="string">"{[10,·11],·[12,·13]}"</span>,39 ····<span·class="string">"{[10,·11],·[12,·13]}"</span>,
40 );</code></pre><a·class="test-arrow"·target="_blank"·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">Run</a></div>40 );</code></pre><a·class="test-arrow"·target="_blank"·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">Run</a></div>
41 </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#514-516">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">where41 </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.78.0/src/core/fmt/builders.rs.html#514-516">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
42 ····F:·<a·class="trait"·href="../../core/ops/function/trait.FnOnce.html"·title="trait·core::ops::function::FnOnce">FnOnce</a>(&amp;mut·<a·class="struct"·href="struct.Formatter.html"·title="struct·alloc::fmt::Formatter">Formatter</a>&lt;'_&gt;)·-&gt;·<a·class="enum"·href="../../core/res[·...·truncated·by·diffoscope;·len:·102,·SHA:·57858821eade5fde37c26c2cd183685d201c1c85edfe3c189932fc5dbced53e0·...·]/core/primitive.unit.html">()</a>,·<a·class="struct"·href="struct.Error.html"·title="struct·alloc::fmt::Error">Error</a>&gt;,</div></h4></section><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>debug_closure_helpers</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/117729">#117729</a>)</span></div></span></summary><div·class="docblock"><p>Adds·a·new·entry·to·the·set·output.</p>42 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.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:·0fa7436d4eda82d31a1407bc94d3105381e901d15bef7bc1c599e5706bad3a85·...·]/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>
43 <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·the43 <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
44 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 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>
45 </div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.entries"·class="method"><a·class="src·rightside"·href="../../src/core/fmt/builders.rs.html#546-549">source</a><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">where45 </div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.entries"·class="method"><a·class="src·rightside"·href="https://doc.rust-lang.org/1.78.0/src/core/fmt/builders.rs.html#546-549">source</a><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
46 ····D:·<a·class="trait"·href="trait.Debug.html"·title="trait·alloc::fmt::Debug">Debug</a>,46 ····D:·<a·class="trait"·href="trait.Debug.html"·title="trait·alloc::fmt::Debug">Debug</a>,
47 ····I:·<a·class="trait"·href="../../core/iter/traits/collect/trait.IntoIterator.html"·title="trait·core::iter::traits::collect::IntoIterator">IntoIterator</a>&lt;Item·=·D&gt;,</div></h4></section></summary><div·class="docblock"><p>Adds·the·contents·of·an·iterator·of·entries·to·the·set·output.</p>47 ····I:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.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>
48 <h5·id="examples-2"><a·class="doc-anchor"·href="#examples-2">§</a>Examples</h5>48 <h5·id="examples-2"><a·class="doc-anchor"·href="#examples-2">§</a>Examples</h5>
49 <div·class="example-wrap"><pre·class="rust·rust-example-rendered"><code><span·class="kw">use·</span>std::fmt;49 <div·class="example-wrap"><pre·class="rust·rust-example-rendered"><code><span·class="kw">use·</span>std::fmt;
  
50 <span·class="kw">struct·</span>Foo(Vec&lt;i32&gt;,·Vec&lt;u32&gt;);50 <span·class="kw">struct·</span>Foo(Vec&lt;i32&gt;,·Vec&lt;u32&gt;);
  
51 <span·class="kw">impl·</span>fmt::Debug·<span·class="kw">for·</span>Foo·{51 <span·class="kw">impl·</span>fmt::Debug·<span·class="kw">for·</span>Foo·{
52 ····<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·{52 ····<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 60, 15 lines modifiedOffset 60, 15 lines modified
60 ····}60 ····}
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="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="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>])),
64 ····<span·class="string">"{10,·11,·12,·13}"</span>,64 ····<span·class="string">"{10,·11,·12,·13}"</span>,
65 );</code></pre><a·class="test-arrow"·target="_blank"·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">Run</a></div>65 );</code></pre><a·class="test-arrow"·target="_blank"·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">Run</a></div>
66 </div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.finish"·class="method"><a·class="src·rightside"·href="../../src/core/fmt/builders.rs.html#580">source</a><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</a>&lt;[·...·truncated·by·diffoscope;·len:·32,·SHA:·86fe7a656d5f3dbc9b6b367643c33f5d41c6710ba4f278b8f626957580f059d4·...·]/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"><a·class="src·rightside"·href="https://doc.rust-lang.org/1.78.0/src/core/fmt/builders.rs.html#580">source</a><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.78.0/core/result/enum.Result.[·...·truncated·by·diffoscope;·len:·113,·SHA:·6cf1596fce40bf8466f22956e5d7f7a812593533742b72f84b236642b06b8743·...·]/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(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·{
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 78, 18 lines modifiedOffset 78, 18 lines modified
78 ····</span>}78 ····</span>}
79 }79 }
  
80 <span·class="macro">assert_eq!</span>(80 <span·class="macro">assert_eq!</span>(
81 ····<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>])),81 ····<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>])),
82 ····<span·class="string">"{10,·11}"</span>,82 ····<span·class="string">"{10,·11}"</span>,
83 );</code></pre><a·class="test-arrow"·target="_blank"·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">Run</a></div>83 );</code></pre><a·class="test-arrow"·target="_blank"·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">Run</a></div>
84 </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:·acc540ffca6a6fc75760059afaa0eec264ba3d1367250c8ada9e78f0aedd9754·...·]/core/any/trait.Any.html"·title="trait·core::any::Any">Any</a>·for·T<div·class="where">where84 </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.78.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:·8e5ab8c4b6777551972fb19734f29aee4f9a9c1fb672ebe6673db5881e826c02·...·]/core/any/trait.Any.html"·title="trait·core::any::Any">Any</a>·for·T<div·class="where">where
85 ····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:·9db8bacb767d75cc3351ca7341c388130aa05ebef490d992be5374f16eedc378·...·]/src/core/borrow.rs.html#208">source</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">where85 ····T:·'static·+·?<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">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:·039b8952ccb1ab7d8f15cd519cbc10f4afc149276d0f9cfd3a53117d606059df·...·]/src/core/borrow.rs.html#208">source</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
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"·class="method·trait-impl"><a·class="src·r[·...·truncated·by·diffoscope;·len:·629,·SHA:·b2ffbab17ff1ef71ba4c506a3aaa515da2082da6f02a53862ce1ca2b2b25f5b4·...·]/src/core/borrow.rs.html#216">source</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">where86 ····T:·?<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/marker/trait.Sized.html"·title="trait·core::marker::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:·952d76e7bcf7b521fffa418ce638abf69976de0942360e56f93e419ca3389394·...·]/src/core/borrow.rs.html#216">source</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
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_mut"·class="method·trait-impl"><a·class="s[·...·truncated·by·diffoscope;·len:·1227,·SHA:·befefcb8cb29dc857e1f3050572f6f470317e3350e0851c4ed6e56cc38673a92·...·]/core/convert/trait.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 ····T:·?<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/marker/trait.Sized.html"·title="trait·core::marker::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:·204bc28c8766993ff59d26bb790f1469ab686e6f172c57f35aa987a81507a7b1·...·]/core/convert/trait.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 </div></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">where88 </div></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.78.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.78.0/core/convert/trait.Into.html"·title="trait·core::convert::Into">Into</a>&lt;U&gt;·for·T<div·class="where">where
89 ····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>89 ····U:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.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:·2cf76a8ca501b2a1fef209fed846779ab1bed3b75f52c7425335e3ce04e6b272·...·]/core/convert/trait.Into.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 <p>That·is,·this·conversion·is·whatever·the·implementation·of90 <p>That·is,·this·conversion·is·whatever·the·implementation·of
91 <code><a·href="../../core/convert/trait.From.html"·title="trait·core::convert::From">From</a>&lt;T&gt;·for·U</code>·chooses·to·do.</p>91 <code><a·href="https://doc.rust-lang.org/1.78.0/core/convert/trait.From.html"·title="trait·core::convert::From">From</a>&lt;T&gt;·for·U</code>·chooses·to·do.</p>
92 </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">where92 </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.78.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.78.0/core/convert/trait.TryFrom.html"·title="trait·core::convert::TryFrom">TryFrom</a>&lt;U&gt;·for·T<div·class="where">where
93 ····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"·class="associatedtype·trait-impl"><a·hre[·...·truncated·by·diffoscope;·len:·1591,·SHA:·8537afacf1b3cf6b9fb7db778975d49d8a8e5988d420715e464ff4a79dd696c5·...·]/core/convert/trait.TryInto.html"·title="trait·core::convert::TryInto">TryInto</a>&lt;U&gt;·for·T<div·class="where">where93 ····U:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.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"·class="associ[·...·truncated·by·diffoscope;·len:·1861,·SHA:·78398046ba16de2f66a8201a11d6a2dd405fceedeabfcaa37481e77092687e6f·...·]/core/convert/trait.TryInto.html"·title="trait·core::convert::TryInto">TryInto</a>&lt;U&gt;·for·T<div·class="where">where
94 ····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-1"·class="associatedtype·trait-i[·...·truncated·by·diffoscope;·len:·1231,·SHA:·7843e7b6cca73922417e4154886c0df66f016d274b48933c21bdb75b67479d5b·...·]/core/convert/trait.TryFrom.html#associatedtype.Error"·title="type·core::convert::TryFrom::Error">Error</a>&gt;</h4></section></summary><div·class='docblock'>Performs·the·conversion.</div></details></div></details></div></section></div></main></body></html>94 ····U:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.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-1"·cl[·...·truncated·by·diffoscope;·len:·1474,·SHA:·ca90cccb6c86c654c95a1aaec456fbbe4b115f0d5a700e7d156e823346d70894·...·]/core/convert/trait.TryFrom.html#associatedtype.Error"·title="type·core::convert::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.0 KB
./usr/share/doc/rust-web-doc/html/alloc/fmt/struct.DebugStruct.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="A·struct·to·help·with·`fmt::Debug`·implementations."><title>DebugStruct·in·alloc::fmt·-·Rust</title><script>·if·(window.location.protocol·!==·"file:")·document.write(`<link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/SourceSerif4-Regular-46f98efaafac5295.ttf.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/FiraSans-Regular-018c141bf0843ffd.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/FiraSans-Medium-8f9a781e4970d388.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/SourceCodePro-Regular-562dcc5011b6de7d.ttf.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/SourceCodePro-Semibold-d899c5a5c4aeb14a.ttf.woff2">`)</script><link·rel="stylesheet"·href="../../static.files/normalize-76eba96aa4d2e634.css"><link·rel="stylesheet"·href="../../static.files/rustdoc-35f9e32502181f1e.css"><meta·name="rustdoc-vars"·data-root-path="../../"·data-static-root-path="../../static.files/"·data-current-crate="alloc"·data-themes=""·data-resource-suffix="1.78.0"·data-rustdoc-version="1.78.0"·data-channel="1.78.0"·data-search-js="search-42d8da7a6b9792c2.js"·data-settings-js="settings-4313503d2e1961c2.js"·><script·src="../../static.files/storage-4c98445ec4002617.js"></script><script·defer·src="sidebar-items1.78.0.js"></script><script·defer·src="../../static.files/main-12cf3b4f4f9dc36d.js"></script><noscript><link·rel="stylesheet"·href="../../static.files/noscript-04d5337699b92874.css"></noscript><link·rel="alternate·icon"·type="image/png"·href="../../static.files/favicon-16x16-8b506e7a72182f1c.png"><link·rel="alternate·icon"·type="image/png"·href="../../static.files/favicon-32x32-422f7d1d52889060.png"><link·rel="icon"·type="image/svg+xml"·href="../../static.files/favicon-2c020d218678b618.svg"></head><body·class="rustdoc·struct"><!--[if·lte·IE·11]><div·class="warning">This·old·browser·is·unsupported·and·will·most·likely·display·funky·things.</div><![endif]--><nav·class="mobile-topbar"><button·class="sidebar-menu-toggle"·title="show·sidebar"></button><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-151179464ae7ed46.svg"·alt=""></a></nav><nav·class="sidebar"><div·class="sidebar-crate"><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-151179464ae7ed46.svg"·alt="logo"></a><h2><a·href="../../alloc/index.html">alloc</a><span·class="version">1.78.0</span></h2></div><h2·class="location"><a·href="#">DebugStruct</a></h2><div·class="sidebar-elems"><section><h3><a·href="#implementations">Methods</a></h3><ul·class="block·method"><li><a·href="#method.field">field</a></li><li><a·href="#method.field_with">field_with</a></li><li><a·href="#method.finish">finish</a></li><li><a·href="#method.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">!RefUnwindSafe</a></li><li><a·href="#impl-Send-for-DebugStruct%3C'a,+'b%3E">!Send</a></li><li><a·href="#impl-Sync-for-DebugStruct%3C'a,+'b%3E">!Sync</a></li><li><a·href="#impl-UnwindSafe-for-DebugStruct%3C'a,+'b%3E">!UnwindSafe</a></li><li><a·href="#impl-Freeze-for-DebugStruct%3C'a,+'b%3E">Freeze</a></li><li><a·href="#impl-Unpin-for-DebugStruct%3C'a,+'b%3E">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">Any</a></li><li><a·href="#impl-Borrow%3CT%3E-for-T">Borrow&lt;T&gt;</a></li><li><a·href="#impl-BorrowMut%3CT%3E-for-T">BorrowMut&lt;T&gt;</a></li><li><a·href="#impl-From%3CT%3E-for-T">From&lt;T&gt;</a></li><li><a·href="#impl-Into%3CU%3E-for-T">Into&lt;U&gt;</a></li><li><a·href="#impl-TryFrom%3CU%3E-for-T">TryFrom&lt;U&gt;</a></li><li><a·href="#impl-TryInto%3CU%3E-for-T">TryInto&lt;U&gt;</a></li></ul></section><h2><a·href="index.html">In·alloc::fmt</a></h2></div></nav><div·class="sidebar-resizer"></div>1 <!DOCTYPE·html><html·lang="en"><head><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.write(`<link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/SourceSerif4-Regular-46f98efaafac5295.ttf.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/FiraSans-Regular-018c141bf0843ffd.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/FiraSans-Medium-8f9a781e4970d388.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/SourceCodePro-Regular-562dcc5011b6de7d.ttf.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/SourceCodePro-Semibold-d899c5a5c4aeb14a.ttf.woff2">`)</script><link·rel="stylesheet"·href="../../static.files/normalize-76eba96aa4d2e634.css"><link·rel="stylesheet"·href="../../static.files/rustdoc-35f9e32502181f1e.css"><meta·name="rustdoc-vars"·data-root-path="../../"·data-static-root-path="../../static.files/"·data-current-crate="alloc"·data-themes=""·data-resource-suffix="1.78.0"·data-rustdoc-version="1.78.0"·data-channel="1.78.0"·data-search-js="search-42d8da7a6b9792c2.js"·data-settings-js="settings-4313503d2e1961c2.js"·><script·src="../../static.files/storage-4c98445ec4002617.js"></script><script·defer·src="sidebar-items1.78.0.js"></script><script·defer·src="../../static.files/main-12cf3b4f4f9dc36d.js"></script><noscript><link·rel="stylesheet"·href="../../static.files/noscript-04d5337699b92874.css"></noscript><link·rel="alternate·icon"·type="image/png"·href="../../static.files/favicon-16x16-8b506e7a72182f1c.png"><link·rel="alternate·icon"·type="image/png"·href="../../static.files/favicon-32x32-422f7d1d52889060.png"><link·rel="icon"·type="image/svg+xml"·href="../../static.files/favicon-2c020d218678b618.svg"></head><body·class="rustdoc·struct"><!--[if·lte·IE·11]><div·class="warning">This·old·browser·is·unsupported·and·will·most·likely·display·funky·things.</div><![endif]--><nav·class="mobile-topbar"><button·class="sidebar-menu-toggle"·title="show·sidebar"></button><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-151179464ae7ed46.svg"·alt=""></a></nav><nav·class="sidebar"><div·class="sidebar-crate"><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-151179464ae7ed46.svg"·alt="logo"></a><h2><a·href="../../alloc/index.html">alloc</a><span·class="version">1.78.0</span></h2></div><h2·class="location"><a·href="#">DebugStruct</a></h2><div·class="sidebar-elems"><section><h3><a·href="#implementations">Methods</a></h3><ul·class="block·method"><li><a·href="#method.field">field</a></li><li><a·href="#method.field_with">field_with</a></li><li><a·href="#method.finish">finish</a></li><li><a·href="#method.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">!RefUnwindSafe</a></li><li><a·href="#impl-Send-for-DebugStruct%3C'a,+'b%3E">!Send</a></li><li><a·href="#impl-Sync-for-DebugStruct%3C'a,+'b%3E">!Sync</a></li><li><a·href="#impl-UnwindSafe-for-DebugStruct%3C'a,+'b%3E">!UnwindSafe</a></li><li><a·href="#impl-Freeze-for-DebugStruct%3C'a,+'b%3E">Freeze</a></li><li><a·href="#impl-Unpin-for-DebugStruct%3C'a,+'b%3E">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">Any</a></li><li><a·href="#impl-Borrow%3CT%3E-for-T">Borrow&lt;T&gt;</a></li><li><a·href="#impl-BorrowMut%3CT%3E-for-T">BorrowMut&lt;T&gt;</a></li><li><a·href="#impl-From%3CT%3E-for-T">From&lt;T&gt;</a></li><li><a·href="#impl-Into%3CU%3E-for-T">Into&lt;U&gt;</a></li><li><a·href="#impl-TryFrom%3CU%3E-for-T">TryFrom&lt;U&gt;</a></li><li><a·href="#impl-TryInto%3CU%3E-for-T">TryInto&lt;U&gt;</a></li></ul></section><h2><a·href="index.html">In·alloc::fmt</a></h2></div></nav><div·class="sidebar-resizer"></div>
2 ····<main><div·class="width-limiter"><nav·class="sub"><form·class="search-form"><span></span><div·id="sidebar-button"·tabindex="-1"><a·href="../../alloc/all.html"·title="show·sidebar"></a></div><input·class="search-input"·name="search"·aria-label="Run·search·in·the·documentation"·autocomplete="off"·spellcheck="false"·placeholder="Click·or·press·‘S’·to·search,·‘?’·for·more·options…"·type="search"><div·id="help-button"·tabindex="-1"><a·href="../../help.html"·title="help">?</a></div><div·id="settings-menu"·tabindex="-1"><a·href="../../settings.html"·title="settings"><img·width="22"·height="22"·alt="Change·settings"·src="../../static.files/wheel-7b819b6101059cd0.svg"></a></div></form></nav><section·id="main-content"·class="content"><div·class="main-heading"><h1>Struct·<a·href="../index.html">alloc</a>::<wbr><a·href="index.html">fmt</a>::<wbr><a·class="struct"·href="#">DebugStruct</a><button·id="copy-path"·title="Copy·item·path·to·clipboard"><img·src="../../static.files/clipboard-7571035ce49a181d.svg"·width="19"·height="18"·alt="Copy·item·path"></button></h1><span·class="out-of-band"><span·class="since"·title="Stable·since·Rust·version·1.2.0">1.2.0</span>···<a·class="src"·href="../../src/core/fmt/builders.rs.html#88">source</a>···<button·id="toggle-all-docs"·title="collapse·all·docs">[<span>&#x2212;</span>]</button></span></div><pre·class="rust·item-decl"><code>pub·struct·DebugStruct&lt;'a,·'b&gt;<div·class="where">where2 ····<main><div·class="width-limiter"><nav·class="sub"><form·class="search-form"><span></span><div·id="sidebar-button"·tabindex="-1"><a·href="../../alloc/all.html"·title="show·sidebar"></a></div><input·class="search-input"·name="search"·aria-label="Run·search·in·the·documentation"·autocomplete="off"·spellcheck="false"·placeholder="Click·or·press·‘S’·to·search,·‘?’·for·more·options…"·type="search"><div·id="help-button"·tabindex="-1"><a·href="../../help.html"·title="help">?</a></div><div·id="settings-menu"·tabindex="-1"><a·href="../../settings.html"·title="settings"><img·width="22"·height="22"·alt="Change·settings"·src="../../static.files/wheel-7b819b6101059cd0.svg"></a></div></form></nav><section·id="main-content"·class="content"><div·class="main-heading"><h1>Struct·<a·href="../index.html">alloc</a>::<wbr><a·href="index.html">fmt</a>::<wbr><a·class="struct"·href="#">DebugStruct</a><button·id="copy-path"·title="Copy·item·path·to·clipboard"><img·src="../../static.files/clipboard-7571035ce49a181d.svg"·width="19"·height="18"·alt="Copy·item·path"></button></h1><span·class="out-of-band"><span·class="since"·title="Stable·since·Rust·version·1.2.0">1.2.0</span>···<a·class="src"·href="https://doc.rust-lang.org/1.78.0/src/core/fmt/builders.rs.html#88">source</a>···<button·id="toggle-all-docs"·title="collapse·all·docs">[<span>&#x2212;</span>]</button></span></div><pre·class="rust·item-decl"><code>pub·struct·DebugStruct&lt;'a,·'b&gt;<div·class="where">where
3 ····'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 ····'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>
4 <p>This·is·useful·when·you·wish·to·output·a·formatted·struct·as·a·part·of·your4 <p>This·is·useful·when·you·wish·to·output·a·formatted·struct·as·a·part·of·your
5 <a·href="trait.Debug.html#tymethod.fmt"·title="method·alloc::fmt::Debug::fmt"><code>Debug::fmt</code></a>·implementation.</p>5 <a·href="trait.Debug.html#tymethod.fmt"·title="method·alloc::fmt::Debug::fmt"><code>Debug::fmt</code></a>·implementation.</p>
6 <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 <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>
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 <div·class="example-wrap"><pre·class="rust·rust-example-rendered"><code><span·class="kw">use·</span>std::fmt;8 <div·class="example-wrap"><pre·class="rust·rust-example-rendered"><code><span·class="kw">use·</span>std::fmt;
  
Offset 21, 18 lines modifiedOffset 21, 18 lines modified
21 ····}21 ····}
22 }22 }
  
23 <span·class="macro">assert_eq!</span>(23 <span·class="macro">assert_eq!</span>(
24 ····<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="macro">format!</span>(<span·class="string">"{:?}"</span>,·Foo·{·bar:·<span·class="number">10</span>,·baz:·<span·class="string">"Hello·World"</span>.to_string()·}),
25 ····<span·class="string">"Foo·{·bar:·10,·baz:·\"Hello·World\"·}"</span>,25 ····<span·class="string">"Foo·{·bar:·10,·baz:·\"Hello·World\"·}"</span>,
26 );</code></pre><a·class="test-arrow"·target="_blank"·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++++++++%22Foo+%7B+bar:+10,+baz:+%5C%22Hello+World%5C%22+%7D%22,%0A++++);%0A%7D&amp;edition=2021">Run</a></div>26 );</code></pre><a·class="test-arrow"·target="_blank"·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++++++++%22Foo+%7B+bar:+10,+baz:+%5C%22Hello+World%5C%22+%7D%22,%0A++++);%0A%7D&amp;edition=2021">Run</a></div>
27 </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">where27 </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.78.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
28 ····'b:·'a,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.field"·class="method"><a·class="src·rightside"·href="../../src/core/fmt/builders.rs.html#132">source</a><h4·class="code-header">pub·fn·<a·href="#method.field"·class="fn">field</a>(28 ····'b:·'a,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.field"·class="method"><a·class="src·rightside"·href="https://doc.rust-lang.org/1.78.0/src/core/fmt/builders.rs.html#132">source</a><h4·class="code-header">pub·fn·<a·href="#method.field"·class="fn">field</a>(
29 ····&amp;mut·self,29 ····&amp;mut·self,
30 ····name:·&amp;<a·class="primitive"·href="../../core/primitive.str.html">str</a>,30 ····name:·&amp;<a·class="primitive"·href="https://doc.rust-lang.org/1.78.0/core/primitive.str.html">str</a>,
31 ····value:·&amp;dyn·<a·class="trait"·href="trait.Debug.html"·title="trait·alloc::fmt::Debug">Debug</a>31 ····value:·&amp;dyn·<a·class="trait"·href="trait.Debug.html"·title="trait·alloc::fmt::Debug">Debug</a>
32 )·-&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 )·-&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>
33 <h5·id="examples-1"><a·class="doc-anchor"·href="#examples-1">§</a>Examples</h5>33 <h5·id="examples-1"><a·class="doc-anchor"·href="#examples-1">§</a>Examples</h5>
34 <div·class="example-wrap"><pre·class="rust·rust-example-rendered"><code><span·class="kw">use·</span>std::fmt;34 <div·class="example-wrap"><pre·class="rust·rust-example-rendered"><code><span·class="kw">use·</span>std::fmt;
  
35 <span·class="kw">struct·</span>Bar·{35 <span·class="kw">struct·</span>Bar·{
36 ····bar:·i32,36 ····bar:·i32,
Offset 50, 23 lines modifiedOffset 50, 23 lines modified
50 ····</span>}50 ····</span>}
51 }51 }
  
52 <span·class="macro">assert_eq!</span>(52 <span·class="macro">assert_eq!</span>(
53 ····<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="macro">format!</span>(<span·class="string">"{:?}"</span>,·Bar·{·bar:·<span·class="number">10</span>,·another:·<span·class="string">"Hello·World"</span>.to_string()·}),
54 ····<span·class="string">"Bar·{·bar:·10,·another:·\"Hello·World\",·nonexistent_field:·1·}"</span>,54 ····<span·class="string">"Bar·{·bar:·10,·another:·\"Hello·World\",·nonexistent_field:·1·}"</span>,
55 );</code></pre><a·class="test-arrow"·target="_blank"·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++++++++%22Bar+%7B+bar:+10,+another:+%5C%22Hello+World%5C%22,+nonexistent_field:+1+%7D%22,%0A++++);%0A%7D&amp;edition=2021">Run</a></div>55 );</code></pre><a·class="test-arrow"·target="_blank"·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++++++++%22Bar+%7B+bar:+10,+another:+%5C%22Hello+World%5C%22,+nonexistent_field:+1+%7D%22,%0A++++);%0A%7D&amp;edition=2021">Run</a></div>
56 </div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.field_with"·class="method"><a·class="src·rightside"·href="../../src/core/fmt/builders.rs.html#141-143">source</a><h4·class="code-header">pub·fn·<a·href="#method.field_with"·class="fn">field_with</a>&lt;F&gt;(56 </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.78.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;(
57 ····&amp;mut·self,57 ····&amp;mut·self,
58 ····name:·&amp;<a·class="primitive"·href="../../core/primitive.str.html">str</a>,58 ····name:·&amp;<a·class="primitive"·href="https://doc.rust-lang.org/1.78.0/core/primitive.str.html">str</a>,
59 ····value_fmt:·F59 ····value_fmt:·F
60 )·-&gt;·&amp;mut·<a·class="struct"·href="struct.DebugStruct.html"·title="struct·alloc::fmt::DebugStruct">DebugStruct</a>&lt;'a,·'b&gt;<div·class="where">where60 )·-&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
61 ····F:·<a·class="trait"·href="../../core/ops/function/trait.FnOnce.html"·title="trait·core::ops::function::FnOnce">FnOnce</a>(&amp;mut·<a·class="struct"·href="struct.Formatter.html"·title="struct·alloc::fmt::Formatter">Formatter</a>&lt;'_&gt;)·-&gt;·<a·class="enum"·href="../../core/res[·...·truncated·by·diffoscope;·len:·102,·SHA:·57858821eade5fde37c26c2cd183685d201c1c85edfe3c189932fc5dbced53e0·...·]/core/primitive.unit.html">()</a>,·<a·class="struct"·href="struct.Error.html"·title="struct·alloc::fmt::Error">Error</a>&gt;,</div></h4></section><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>debug_closure_helpers</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/117729">#117729</a>)</span></div></span></summary><div·class="docblock"><p>Adds·a·new·field·to·the·generated·struct·output.</p>61 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.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:·0fa7436d4eda82d31a1407bc94d3105381e901d15bef7bc1c599e5706bad3a85·...·]/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>
62 <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·the62 <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
63 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 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>
64 </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·other64 </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.78.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:·184058609a75880e798b4b510147931d2902f210681822a48460702024d947f8·...·]/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
65 fields·that·are·not·shown·in·the·debug·representation.</p>65 fields·that·are·not·shown·in·the·debug·representation.</p>
66 <h5·id="examples-2"><a·class="doc-anchor"·href="#examples-2">§</a>Examples</h5>66 <h5·id="examples-2"><a·class="doc-anchor"·href="#examples-2">§</a>Examples</h5>
67 <div·class="example-wrap"><pre·class="rust·rust-example-rendered"><code><span·class="kw">use·</span>std::fmt;67 <div·class="example-wrap"><pre·class="rust·rust-example-rendered"><code><span·class="kw">use·</span>std::fmt;
  
68 <span·class="kw">struct·</span>Bar·{68 <span·class="kw">struct·</span>Bar·{
69 ····bar:·i32,69 ····bar:·i32,
70 ····hidden:·f32,70 ····hidden:·f32,
Offset 80, 15 lines modifiedOffset 80, 15 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>,·Bar·{·bar:·<span·class="number">10</span>,·hidden:·<span·class="number">1.0·</span>}),83 ····<span·class="macro">format!</span>(<span·class="string">"{:?}"</span>,·Bar·{·bar:·<span·class="number">10</span>,·hidden:·<span·class="number">1.0·</span>}),
84 ····<span·class="string">"Bar·{·bar:·10,·..·}"</span>,84 ····<span·class="string">"Bar·{·bar:·10,·..·}"</span>,
85 );</code></pre><a·class="test-arrow"·target="_blank"·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">Run</a></div>85 );</code></pre><a·class="test-arrow"·target="_blank"·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">Run</a></div>
86 </div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.finish"·class="method"><a·class="src·rightside"·href="../../src/core/fmt/builders.rs.html#244">source</a><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</a>&lt;[·...·truncated·by·diffoscope;·len:·32,·SHA:·86fe7a656d5f3dbc9b6b367643c33f5d41c6710ba4f278b8f626957580f059d4·...·]/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 </div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.finish"·class="method"><a·class="src·rightside"·href="https://doc.rust-lang.org/1.78.0/src/core/fmt/builders.rs.html#244">source</a><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.78.0/core/result/enum.Result.[·...·truncated·by·diffoscope;·len:·113,·SHA:·6cf1596fce40bf8466f22956e5d7f7a812593533742b72f84b236642b06b8743·...·]/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>
87 <h5·id="examples-3"><a·class="doc-anchor"·href="#examples-3">§</a>Examples</h5>87 <h5·id="examples-3"><a·class="doc-anchor"·href="#examples-3">§</a>Examples</h5>
88 <div·class="example-wrap"><pre·class="rust·rust-example-rendered"><code><span·class="kw">use·</span>std::fmt;88 <div·class="example-wrap"><pre·class="rust·rust-example-rendered"><code><span·class="kw">use·</span>std::fmt;
  
89 <span·class="kw">struct·</span>Bar·{89 <span·class="kw">struct·</span>Bar·{
90 ····bar:·i32,90 ····bar:·i32,
91 ····baz:·String,91 ····baz:·String,
92 }92 }
Offset 103, 18 lines modifiedOffset 103, 18 lines modified
103 ····</span>}103 ····</span>}
104 }104 }
  
105 <span·class="macro">assert_eq!</span>(105 <span·class="macro">assert_eq!</span>(
106 ····<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="macro">format!</span>(<span·class="string">"{:?}"</span>,·Bar·{·bar:·<span·class="number">10</span>,·baz:·<span·class="string">"Hello·World"</span>.to_string()·}),
107 ····<span·class="string">"Bar·{·bar:·10,·baz:·\"Hello·World\"·}"</span>,107 ····<span·class="string">"Bar·{·bar:·10,·baz:·\"Hello·World\"·}"</span>,
108 );</code></pre><a·class="test-arrow"·target="_blank"·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++++++++%22Bar+%7B+bar:+10,+baz:+%5C%22Hello+World%5C%22+%7D%22,%0A++++);%0A%7D&amp;edition=2021">Run</a></div>108 );</code></pre><a·class="test-arrow"·target="_blank"·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++++++++%22Bar+%7B+bar:+10,+baz:+%5C%22Hello+World%5C%22+%7D%22,%0A++++);%0A%7D&amp;edition=2021">Run</a></div>
109 </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:·3f6ea7f2a68945da12a043ad7b33c6db6dc117814f4900ba5b1cd4fb8d2e265a·...·]/core/any/trait.Any.html"·title="trait·core::any::Any">Any</a>·for·T<div·class="where">where109 </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.78.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:·fbdc9fb06b0af94a81129fe9336bafb80be298698bff2396293e881d22f136ad·...·]/core/any/trait.Any.html"·title="trait·core::any::Any">Any</a>·for·T<div·class="where">where
110 ····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:·9db8bacb767d75cc3351ca7341c388130aa05ebef490d992be5374f16eedc378·...·]/src/core/borrow.rs.html#208">source</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">where110 ····T:·'static·+·?<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">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:·039b8952ccb1ab7d8f15cd519cbc10f4afc149276d0f9cfd3a53117d606059df·...·]/src/core/borrow.rs.html#208">source</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
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"·class="method·trait-impl"><a·class="src·r[·...·truncated·by·diffoscope;·len:·629,·SHA:·b2ffbab17ff1ef71ba4c506a3aaa515da2082da6f02a53862ce1ca2b2b25f5b4·...·]/src/core/borrow.rs.html#216">source</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">where111 ····T:·?<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/marker/trait.Sized.html"·title="trait·core::marker::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:·952d76e7bcf7b521fffa418ce638abf69976de0942360e56f93e419ca3389394·...·]/src/core/borrow.rs.html#216">source</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
112 ····T:·?<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::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:·befefcb8cb29dc857e1f3050572f6f470317e3350e0851c4ed6e56cc38673a92·...·]/core/convert/trait.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 ····T:·?<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/marker/trait.Sized.html"·title="trait·core::marker::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:·204bc28c8766993ff59d26bb790f1469ab686e6f172c57f35aa987a81507a7b1·...·]/core/convert/trait.From.html#tymethod.from"·class="fn">from</a>(t:·T)·-&gt;·T</h4></section></summary><div·class="docblock"><p>Returns·the·argument·unchanged.</p>
113 </div></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">where113 </div></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.78.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.78.0/core/convert/trait.Into.html"·title="trait·core::convert::Into">Into</a>&lt;U&gt;·for·T<div·class="where">where
114 ····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>114 ····U:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.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:·2cf76a8ca501b2a1fef209fed846779ab1bed3b75f52c7425335e3ce04e6b272·...·]/core/convert/trait.Into.html#tymethod.into"·class="fn">into</a>(self)·-&gt;·U</h4></section></summary><div·class="docblock"><p>Calls·<code>U::from(self)</code>.</p>
115 <p>That·is,·this·conversion·is·whatever·the·implementation·of115 <p>That·is,·this·conversion·is·whatever·the·implementation·of
116 <code><a·href="../../core/convert/trait.From.html"·title="trait·core::convert::From">From</a>&lt;T&gt;·for·U</code>·chooses·to·do.</p>116 <code><a·href="https://doc.rust-lang.org/1.78.0/core/convert/trait.From.html"·title="trait·core::convert::From">From</a>&lt;T&gt;·for·U</code>·chooses·to·do.</p>
117 </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">where117 </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.78.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.78.0/core/convert/trait.TryFrom.html"·title="trait·core::convert::TryFrom">TryFrom</a>&lt;U&gt;·for·T<div·class="where">where
118 ····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"·class="associatedtype·trait-impl"><a·hre[·...·truncated·by·diffoscope;·len:·1591,·SHA:·8537afacf1b3cf6b9fb7db778975d49d8a8e5988d420715e464ff4a79dd696c5·...·]/core/convert/trait.TryInto.html"·title="trait·core::convert::TryInto">TryInto</a>&lt;U&gt;·for·T<div·class="where">where118 ····U:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.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"·class="associ[·...·truncated·by·diffoscope;·len:·1861,·SHA:·78398046ba16de2f66a8201a11d6a2dd405fceedeabfcaa37481e77092687e6f·...·]/core/convert/trait.TryInto.html"·title="trait·core::convert::TryInto">TryInto</a>&lt;U&gt;·for·T<div·class="where">where
119 ····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-1"·class="associatedtype·trait-i[·...·truncated·by·diffoscope;·len:·1231,·SHA:·7843e7b6cca73922417e4154886c0df66f016d274b48933c21bdb75b67479d5b·...·]/core/convert/trait.TryFrom.html#associatedtype.Error"·title="type·core::convert::TryFrom::Error">Error</a>&gt;</h4></section></summary><div·class='docblock'>Performs·the·conversion.</div></details></div></details></div></section></div></main></body></html>119 ····U:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.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-1"·cl[·...·truncated·by·diffoscope;·len:·1474,·SHA:·ca90cccb6c86c654c95a1aaec456fbbe4b115f0d5a700e7d156e823346d70894·...·]/core/convert/trait.TryFrom.html#associatedtype.Error"·title="type·core::convert::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.9 KB
./usr/share/doc/rust-web-doc/html/alloc/fmt/struct.DebugTuple.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="A·struct·to·help·with·`fmt::Debug`·implementations."><title>DebugTuple·in·alloc::fmt·-·Rust</title><script>·if·(window.location.protocol·!==·"file:")·document.write(`<link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/SourceSerif4-Regular-46f98efaafac5295.ttf.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/FiraSans-Regular-018c141bf0843ffd.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/FiraSans-Medium-8f9a781e4970d388.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/SourceCodePro-Regular-562dcc5011b6de7d.ttf.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/SourceCodePro-Semibold-d899c5a5c4aeb14a.ttf.woff2">`)</script><link·rel="stylesheet"·href="../../static.files/normalize-76eba96aa4d2e634.css"><link·rel="stylesheet"·href="../../static.files/rustdoc-35f9e32502181f1e.css"><meta·name="rustdoc-vars"·data-root-path="../../"·data-static-root-path="../../static.files/"·data-current-crate="alloc"·data-themes=""·data-resource-suffix="1.78.0"·data-rustdoc-version="1.78.0"·data-channel="1.78.0"·data-search-js="search-42d8da7a6b9792c2.js"·data-settings-js="settings-4313503d2e1961c2.js"·><script·src="../../static.files/storage-4c98445ec4002617.js"></script><script·defer·src="sidebar-items1.78.0.js"></script><script·defer·src="../../static.files/main-12cf3b4f4f9dc36d.js"></script><noscript><link·rel="stylesheet"·href="../../static.files/noscript-04d5337699b92874.css"></noscript><link·rel="alternate·icon"·type="image/png"·href="../../static.files/favicon-16x16-8b506e7a72182f1c.png"><link·rel="alternate·icon"·type="image/png"·href="../../static.files/favicon-32x32-422f7d1d52889060.png"><link·rel="icon"·type="image/svg+xml"·href="../../static.files/favicon-2c020d218678b618.svg"></head><body·class="rustdoc·struct"><!--[if·lte·IE·11]><div·class="warning">This·old·browser·is·unsupported·and·will·most·likely·display·funky·things.</div><![endif]--><nav·class="mobile-topbar"><button·class="sidebar-menu-toggle"·title="show·sidebar"></button><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-151179464ae7ed46.svg"·alt=""></a></nav><nav·class="sidebar"><div·class="sidebar-crate"><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-151179464ae7ed46.svg"·alt="logo"></a><h2><a·href="../../alloc/index.html">alloc</a><span·class="version">1.78.0</span></h2></div><h2·class="location"><a·href="#">DebugTuple</a></h2><div·class="sidebar-elems"><section><h3><a·href="#implementations">Methods</a></h3><ul·class="block·method"><li><a·href="#method.field">field</a></li><li><a·href="#method.field_with">field_with</a></li><li><a·href="#method.finish">finish</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">!RefUnwindSafe</a></li><li><a·href="#impl-Send-for-DebugTuple%3C'a,+'b%3E">!Send</a></li><li><a·href="#impl-Sync-for-DebugTuple%3C'a,+'b%3E">!Sync</a></li><li><a·href="#impl-UnwindSafe-for-DebugTuple%3C'a,+'b%3E">!UnwindSafe</a></li><li><a·href="#impl-Freeze-for-DebugTuple%3C'a,+'b%3E">Freeze</a></li><li><a·href="#impl-Unpin-for-DebugTuple%3C'a,+'b%3E">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">Any</a></li><li><a·href="#impl-Borrow%3CT%3E-for-T">Borrow&lt;T&gt;</a></li><li><a·href="#impl-BorrowMut%3CT%3E-for-T">BorrowMut&lt;T&gt;</a></li><li><a·href="#impl-From%3CT%3E-for-T">From&lt;T&gt;</a></li><li><a·href="#impl-Into%3CU%3E-for-T">Into&lt;U&gt;</a></li><li><a·href="#impl-TryFrom%3CU%3E-for-T">TryFrom&lt;U&gt;</a></li><li><a·href="#impl-TryInto%3CU%3E-for-T">TryInto&lt;U&gt;</a></li></ul></section><h2><a·href="index.html">In·alloc::fmt</a></h2></div></nav><div·class="sidebar-resizer"></div>1 <!DOCTYPE·html><html·lang="en"><head><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.write(`<link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/SourceSerif4-Regular-46f98efaafac5295.ttf.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/FiraSans-Regular-018c141bf0843ffd.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/FiraSans-Medium-8f9a781e4970d388.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/SourceCodePro-Regular-562dcc5011b6de7d.ttf.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/SourceCodePro-Semibold-d899c5a5c4aeb14a.ttf.woff2">`)</script><link·rel="stylesheet"·href="../../static.files/normalize-76eba96aa4d2e634.css"><link·rel="stylesheet"·href="../../static.files/rustdoc-35f9e32502181f1e.css"><meta·name="rustdoc-vars"·data-root-path="../../"·data-static-root-path="../../static.files/"·data-current-crate="alloc"·data-themes=""·data-resource-suffix="1.78.0"·data-rustdoc-version="1.78.0"·data-channel="1.78.0"·data-search-js="search-42d8da7a6b9792c2.js"·data-settings-js="settings-4313503d2e1961c2.js"·><script·src="../../static.files/storage-4c98445ec4002617.js"></script><script·defer·src="sidebar-items1.78.0.js"></script><script·defer·src="../../static.files/main-12cf3b4f4f9dc36d.js"></script><noscript><link·rel="stylesheet"·href="../../static.files/noscript-04d5337699b92874.css"></noscript><link·rel="alternate·icon"·type="image/png"·href="../../static.files/favicon-16x16-8b506e7a72182f1c.png"><link·rel="alternate·icon"·type="image/png"·href="../../static.files/favicon-32x32-422f7d1d52889060.png"><link·rel="icon"·type="image/svg+xml"·href="../../static.files/favicon-2c020d218678b618.svg"></head><body·class="rustdoc·struct"><!--[if·lte·IE·11]><div·class="warning">This·old·browser·is·unsupported·and·will·most·likely·display·funky·things.</div><![endif]--><nav·class="mobile-topbar"><button·class="sidebar-menu-toggle"·title="show·sidebar"></button><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-151179464ae7ed46.svg"·alt=""></a></nav><nav·class="sidebar"><div·class="sidebar-crate"><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-151179464ae7ed46.svg"·alt="logo"></a><h2><a·href="../../alloc/index.html">alloc</a><span·class="version">1.78.0</span></h2></div><h2·class="location"><a·href="#">DebugTuple</a></h2><div·class="sidebar-elems"><section><h3><a·href="#implementations">Methods</a></h3><ul·class="block·method"><li><a·href="#method.field">field</a></li><li><a·href="#method.field_with">field_with</a></li><li><a·href="#method.finish">finish</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">!RefUnwindSafe</a></li><li><a·href="#impl-Send-for-DebugTuple%3C'a,+'b%3E">!Send</a></li><li><a·href="#impl-Sync-for-DebugTuple%3C'a,+'b%3E">!Sync</a></li><li><a·href="#impl-UnwindSafe-for-DebugTuple%3C'a,+'b%3E">!UnwindSafe</a></li><li><a·href="#impl-Freeze-for-DebugTuple%3C'a,+'b%3E">Freeze</a></li><li><a·href="#impl-Unpin-for-DebugTuple%3C'a,+'b%3E">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">Any</a></li><li><a·href="#impl-Borrow%3CT%3E-for-T">Borrow&lt;T&gt;</a></li><li><a·href="#impl-BorrowMut%3CT%3E-for-T">BorrowMut&lt;T&gt;</a></li><li><a·href="#impl-From%3CT%3E-for-T">From&lt;T&gt;</a></li><li><a·href="#impl-Into%3CU%3E-for-T">Into&lt;U&gt;</a></li><li><a·href="#impl-TryFrom%3CU%3E-for-T">TryFrom&lt;U&gt;</a></li><li><a·href="#impl-TryInto%3CU%3E-for-T">TryInto&lt;U&gt;</a></li></ul></section><h2><a·href="index.html">In·alloc::fmt</a></h2></div></nav><div·class="sidebar-resizer"></div>
2 ····<main><div·class="width-limiter"><nav·class="sub"><form·class="search-form"><span></span><div·id="sidebar-button"·tabindex="-1"><a·href="../../alloc/all.html"·title="show·sidebar"></a></div><input·class="search-input"·name="search"·aria-label="Run·search·in·the·documentation"·autocomplete="off"·spellcheck="false"·placeholder="Click·or·press·‘S’·to·search,·‘?’·for·more·options…"·type="search"><div·id="help-button"·tabindex="-1"><a·href="../../help.html"·title="help">?</a></div><div·id="settings-menu"·tabindex="-1"><a·href="../../settings.html"·title="settings"><img·width="22"·height="22"·alt="Change·settings"·src="../../static.files/wheel-7b819b6101059cd0.svg"></a></div></form></nav><section·id="main-content"·class="content"><div·class="main-heading"><h1>Struct·<a·href="../index.html">alloc</a>::<wbr><a·href="index.html">fmt</a>::<wbr><a·class="struct"·href="#">DebugTuple</a><button·id="copy-path"·title="Copy·item·path·to·clipboard"><img·src="../../static.files/clipboard-7571035ce49a181d.svg"·width="19"·height="18"·alt="Copy·item·path"></button></h1><span·class="out-of-band"><span·class="since"·title="Stable·since·Rust·version·1.2.0">1.2.0</span>···<a·class="src"·href="../../src/core/fmt/builders.rs.html#289">source</a>···<button·id="toggle-all-docs"·title="collapse·all·docs">[<span>&#x2212;</span>]</button></span></div><pre·class="rust·item-decl"><code>pub·struct·DebugTuple&lt;'a,·'b&gt;<div·class="where">where2 ····<main><div·class="width-limiter"><nav·class="sub"><form·class="search-form"><span></span><div·id="sidebar-button"·tabindex="-1"><a·href="../../alloc/all.html"·title="show·sidebar"></a></div><input·class="search-input"·name="search"·aria-label="Run·search·in·the·documentation"·autocomplete="off"·spellcheck="false"·placeholder="Click·or·press·‘S’·to·search,·‘?’·for·more·options…"·type="search"><div·id="help-button"·tabindex="-1"><a·href="../../help.html"·title="help">?</a></div><div·id="settings-menu"·tabindex="-1"><a·href="../../settings.html"·title="settings"><img·width="22"·height="22"·alt="Change·settings"·src="../../static.files/wheel-7b819b6101059cd0.svg"></a></div></form></nav><section·id="main-content"·class="content"><div·class="main-heading"><h1>Struct·<a·href="../index.html">alloc</a>::<wbr><a·href="index.html">fmt</a>::<wbr><a·class="struct"·href="#">DebugTuple</a><button·id="copy-path"·title="Copy·item·path·to·clipboard"><img·src="../../static.files/clipboard-7571035ce49a181d.svg"·width="19"·height="18"·alt="Copy·item·path"></button></h1><span·class="out-of-band"><span·class="since"·title="Stable·since·Rust·version·1.2.0">1.2.0</span>···<a·class="src"·href="https://doc.rust-lang.org/1.78.0/src/core/fmt/builders.rs.html#289">source</a>···<button·id="toggle-all-docs"·title="collapse·all·docs">[<span>&#x2212;</span>]</button></span></div><pre·class="rust·item-decl"><code>pub·struct·DebugTuple&lt;'a,·'b&gt;<div·class="where">where
3 ····'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 ····'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>
4 <p>This·is·useful·when·you·wish·to·output·a·formatted·tuple·as·a·part·of·your4 <p>This·is·useful·when·you·wish·to·output·a·formatted·tuple·as·a·part·of·your
5 <a·href="trait.Debug.html#tymethod.fmt"·title="method·alloc::fmt::Debug::fmt"><code>Debug::fmt</code></a>·implementation.</p>5 <a·href="trait.Debug.html#tymethod.fmt"·title="method·alloc::fmt::Debug::fmt"><code>Debug::fmt</code></a>·implementation.</p>
6 <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 <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>
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 <div·class="example-wrap"><pre·class="rust·rust-example-rendered"><code><span·class="kw">use·</span>std::fmt;8 <div·class="example-wrap"><pre·class="rust·rust-example-rendered"><code><span·class="kw">use·</span>std::fmt;
  
Offset 18, 16 lines modifiedOffset 18, 16 lines modified
18 ····}18 ····}
19 }19 }
  
20 <span·class="macro">assert_eq!</span>(20 <span·class="macro">assert_eq!</span>(
21 ····<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="macro">format!</span>(<span·class="string">"{:?}"</span>,·Foo(<span·class="number">10</span>,·<span·class="string">"Hello·World"</span>.to_string())),
22 ····<span·class="string">"Foo(10,·\"Hello·World\")"</span>,22 ····<span·class="string">"Foo(10,·\"Hello·World\")"</span>,
23 );</code></pre><a·class="test-arrow"·target="_blank"·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++++++++%22Foo(10,+%5C%22Hello+World%5C%22)%22,%0A++++);%0A%7D&amp;edition=2021">Run</a></div>23 );</code></pre><a·class="test-arrow"·target="_blank"·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++++++++%22Foo(10,+%5C%22Hello+World%5C%22)%22,%0A++++);%0A%7D&amp;edition=2021">Run</a></div>
24 </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">where24 </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.78.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
25 ····'b:·'a,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.field"·class="method"><a·class="src·rightside"·href="../../src/core/fmt/builders.rs.html#329">source</a><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 ····'b:·'a,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.field"·class="method"><a·class="src·rightside"·href="https://doc.rust-lang.org/1.78.0/src/core/fmt/builders.rs.html#329">source</a><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>
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;
  
28 <span·class="kw">struct·</span>Foo(i32,·String);28 <span·class="kw">struct·</span>Foo(i32,·String);
  
29 <span·class="kw">impl·</span>fmt::Debug·<span·class="kw">for·</span>Foo·{29 <span·class="kw">impl·</span>fmt::Debug·<span·class="kw">for·</span>Foo·{
30 ····<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·{30 ····<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 38, 19 lines modifiedOffset 38, 19 lines modified
38 ····</span>}38 ····</span>}
39 }39 }
  
40 <span·class="macro">assert_eq!</span>(40 <span·class="macro">assert_eq!</span>(
41 ····<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="macro">format!</span>(<span·class="string">"{:?}"</span>,·Foo(<span·class="number">10</span>,·<span·class="string">"Hello·World"</span>.to_string())),
42 ····<span·class="string">"Foo(10,·\"Hello·World\")"</span>,42 ····<span·class="string">"Foo(10,·\"Hello·World\")"</span>,
43 );</code></pre><a·class="test-arrow"·target="_blank"·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++++++++%22Foo(10,+%5C%22Hello+World%5C%22)%22,%0A++++);%0A%7D&amp;edition=2021">Run</a></div>43 );</code></pre><a·class="test-arrow"·target="_blank"·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++++++++%22Foo(10,+%5C%22Hello+World%5C%22)%22,%0A++++);%0A%7D&amp;edition=2021">Run</a></div>
44 </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">where44 </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.78.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
45 ····F:·<a·class="trait"·href="../../core/ops/function/trait.FnOnce.html"·title="trait·core::ops::function::FnOnce">FnOnce</a>(&amp;mut·<a·class="struct"·href="struct.Formatter.html"·title="struct·alloc::fmt::Formatter">Formatter</a>&lt;'_&gt;)·-&gt;·<a·class="enum"·href="../../core/res[·...·truncated·by·diffoscope;·len:·102,·SHA:·57858821eade5fde37c26c2cd183685d201c1c85edfe3c189932fc5dbced53e0·...·]/core/primitive.unit.html">()</a>,·<a·class="struct"·href="struct.Error.html"·title="struct·alloc::fmt::Error">Error</a>&gt;,</div></h4></section><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>debug_closure_helpers</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/117729">#117729</a>)</span></div></span></summary><div·class="docblock"><p>Adds·a·new·field·to·the·generated·tuple·struct·output.</p>45 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.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:·0fa7436d4eda82d31a1407bc94d3105381e901d15bef7bc1c599e5706bad3a85·...·]/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>
46 <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·the46 <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
47 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 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>
48 </div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.finish"·class="method"><a·class="src·rightside"·href="../../src/core/fmt/builders.rs.html#388">source</a><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</a>&lt;[·...·truncated·by·diffoscope;·len:·32,·SHA:·86fe7a656d5f3dbc9b6b367643c33f5d41c6710ba4f278b8f626957580f059d4·...·]/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>48 </div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.finish"·class="method"><a·class="src·rightside"·href="https://doc.rust-lang.org/1.78.0/src/core/fmt/builders.rs.html#388">source</a><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.78.0/core/result/enum.Result.[·...·truncated·by·diffoscope;·len:·113,·SHA:·6cf1596fce40bf8466f22956e5d7f7a812593533742b72f84b236642b06b8743·...·]/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>
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·{
53 ····<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·{53 ····<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 62, 18 lines modifiedOffset 62, 18 lines modified
62 ····</span>}62 ····</span>}
63 }63 }
  
64 <span·class="macro">assert_eq!</span>(64 <span·class="macro">assert_eq!</span>(
65 ····<span·class="macro">format!</span>(<span·class="string">"{:?}"</span>,·Foo(<span·class="number">10</span>,·<span·class="string">"Hello·World"</span>.to_string())),65 ····<span·class="macro">format!</span>(<span·class="string">"{:?}"</span>,·Foo(<span·class="number">10</span>,·<span·class="string">"Hello·World"</span>.to_string())),
66 ····<span·class="string">"Foo(10,·\"Hello·World\")"</span>,66 ····<span·class="string">"Foo(10,·\"Hello·World\")"</span>,
67 );</code></pre><a·class="test-arrow"·target="_blank"·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++++++++%22Foo(10,+%5C%22Hello+World%5C%22)%22,%0A++++);%0A%7D&amp;edition=2021">Run</a></div>67 );</code></pre><a·class="test-arrow"·target="_blank"·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++++++++%22Foo(10,+%5C%22Hello+World%5C%22)%22,%0A++++);%0A%7D&amp;edition=2021">Run</a></div>
68 </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:·6c58e4ec252b0f0603f91f0d92ad035762245baac391b7845f8eb577b29b6411·...·]/core/any/trait.Any.html"·title="trait·core::any::Any">Any</a>·for·T<div·class="where">where68 </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.78.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:·96e7f7f0165821c5d7a87eefb48b188422e0c43db89dcfae2b0a895a9f2f08f8·...·]/core/any/trait.Any.html"·title="trait·core::any::Any">Any</a>·for·T<div·class="where">where
69 ····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:·9db8bacb767d75cc3351ca7341c388130aa05ebef490d992be5374f16eedc378·...·]/src/core/borrow.rs.html#208">source</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">where69 ····T:·'static·+·?<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">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:·039b8952ccb1ab7d8f15cd519cbc10f4afc149276d0f9cfd3a53117d606059df·...·]/src/core/borrow.rs.html#208">source</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
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"·class="method·trait-impl"><a·class="src·r[·...·truncated·by·diffoscope;·len:·629,·SHA:·b2ffbab17ff1ef71ba4c506a3aaa515da2082da6f02a53862ce1ca2b2b25f5b4·...·]/src/core/borrow.rs.html#216">source</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">where70 ····T:·?<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/marker/trait.Sized.html"·title="trait·core::marker::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:·952d76e7bcf7b521fffa418ce638abf69976de0942360e56f93e419ca3389394·...·]/src/core/borrow.rs.html#216">source</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
71 ····T:·?<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::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:·befefcb8cb29dc857e1f3050572f6f470317e3350e0851c4ed6e56cc38673a92·...·]/core/convert/trait.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.78.0/core/marker/trait.Sized.html"·title="trait·core::marker::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:·204bc28c8766993ff59d26bb790f1469ab686e6f172c57f35aa987a81507a7b1·...·]/core/convert/trait.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.78.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.78.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.78.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:·2cf76a8ca501b2a1fef209fed846779ab1bed3b75f52c7425335e3ce04e6b272·...·]/core/convert/trait.Into.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.78.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-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">where76 </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.78.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.78.0/core/convert/trait.TryFrom.html"·title="trait·core::convert::TryFrom">TryFrom</a>&lt;U&gt;·for·T<div·class="where">where
77 ····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"·class="associatedtype·trait-impl"><a·hre[·...·truncated·by·diffoscope;·len:·1591,·SHA:·8537afacf1b3cf6b9fb7db778975d49d8a8e5988d420715e464ff4a79dd696c5·...·]/core/convert/trait.TryInto.html"·title="trait·core::convert::TryInto">TryInto</a>&lt;U&gt;·for·T<div·class="where">where77 ····U:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.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"·class="associ[·...·truncated·by·diffoscope;·len:·1861,·SHA:·78398046ba16de2f66a8201a11d6a2dd405fceedeabfcaa37481e77092687e6f·...·]/core/convert/trait.TryInto.html"·title="trait·core::convert::TryInto">TryInto</a>&lt;U&gt;·for·T<div·class="where">where
78 ····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-1"·class="associatedtype·trait-i[·...·truncated·by·diffoscope;·len:·1231,·SHA:·7843e7b6cca73922417e4154886c0df66f016d274b48933c21bdb75b67479d5b·...·]/core/convert/trait.TryFrom.html#associatedtype.Error"·title="type·core::convert::TryFrom::Error">Error</a>&gt;</h4></section></summary><div·class='docblock'>Performs·the·conversion.</div></details></div></details></div></section></div></main></body></html>78 ····U:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.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-1"·cl[·...·truncated·by·diffoscope;·len:·1474,·SHA:·ca90cccb6c86c654c95a1aaec456fbbe4b115f0d5a700e7d156e823346d70894·...·]/core/convert/trait.TryFrom.html#associatedtype.Error"·title="type·core::convert::TryFrom::Error">Error</a>&gt;</h4></section></summary><div·class='docblock'>Performs·the·conversion.</div></details></div></details></div></section></div></main></body></html>
91.4 KB
./usr/share/doc/rust-web-doc/html/alloc/fmt/struct.Error.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="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.write(`<link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/SourceSerif4-Regular-46f98efaafac5295.ttf.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/FiraSans-Regular-018c141bf0843ffd.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/FiraSans-Medium-8f9a781e4970d388.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/SourceCodePro-Regular-562dcc5011b6de7d.ttf.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/SourceCodePro-Semibold-d899c5a5c4aeb14a.ttf.woff2">`)</script><link·rel="stylesheet"·href="../../static.files/normalize-76eba96aa4d2e634.css"><link·rel="stylesheet"·href="../../static.files/rustdoc-35f9e32502181f1e.css"><meta·name="rustdoc-vars"·data-root-path="../../"·data-static-root-path="../../static.files/"·data-current-crate="alloc"·data-themes=""·data-resource-suffix="1.78.0"·data-rustdoc-version="1.78.0"·data-channel="1.78.0"·data-search-js="search-42d8da7a6b9792c2.js"·data-settings-js="settings-4313503d2e1961c2.js"·><script·src="../../static.files/storage-4c98445ec4002617.js"></script><script·defer·src="sidebar-items1.78.0.js"></script><script·defer·src="../../static.files/main-12cf3b4f4f9dc36d.js"></script><noscript><link·rel="stylesheet"·href="../../static.files/noscript-04d5337699b92874.css"></noscript><link·rel="alternate·icon"·type="image/png"·href="../../static.files/favicon-16x16-8b506e7a72182f1c.png"><link·rel="alternate·icon"·type="image/png"·href="../../static.files/favicon-32x32-422f7d1d52889060.png"><link·rel="icon"·type="image/svg+xml"·href="../../static.files/favicon-2c020d218678b618.svg"></head><body·class="rustdoc·struct"><!--[if·lte·IE·11]><div·class="warning">This·old·browser·is·unsupported·and·will·most·likely·display·funky·things.</div><![endif]--><nav·class="mobile-topbar"><button·class="sidebar-menu-toggle"·title="show·sidebar"></button><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-151179464ae7ed46.svg"·alt=""></a></nav><nav·class="sidebar"><div·class="sidebar-crate"><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-151179464ae7ed46.svg"·alt="logo"></a><h2><a·href="../../alloc/index.html">alloc</a><span·class="version">1.78.0</span></h2></div><h2·class="location"><a·href="#">Error</a></h2><div·class="sidebar-elems"><section><h3><a·href="#trait-implementations">Trait·Implementations</a></h3><ul·class="block·trait-implementation"><li><a·href="#impl-Clone-for-Error">Clone</a></li><li><a·href="#impl-Copy-for-Error">Copy</a></li><li><a·href="#impl-Debug-for-Error">Debug</a></li><li><a·href="#impl-Default-for-Error">Default</a></li><li><a·href="#impl-Display-for-Error">Display</a></li><li><a·href="#impl-Eq-for-Error">Eq</a></li><li><a·href="#impl-Error-for-Error">Error</a></li><li><a·href="#impl-Hash-for-Error">Hash</a></li><li><a·href="#impl-Ord-for-Error">Ord</a></li><li><a·href="#impl-PartialEq-for-Error">PartialEq</a></li><li><a·href="#impl-PartialOrd-for-Error">PartialOrd</a></li><li><a·href="#impl-StructuralPartialEq-for-Error">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">Freeze</a></li><li><a·href="#impl-RefUnwindSafe-for-Error">RefUnwindSafe</a></li><li><a·href="#impl-Send-for-Error">Send</a></li><li><a·href="#impl-Sync-for-Error">Sync</a></li><li><a·href="#impl-Unpin-for-Error">Unpin</a></li><li><a·href="#impl-UnwindSafe-for-Error">UnwindSafe</a></li></ul><h3><a·href="#blanket-implementations">Blanket·Implementations</a></h3><ul·class="block·blanket-implementation"><li><a·href="#impl-Any-for-T">Any</a></li><li><a·href="#impl-Borrow%3CT%3E-for-T">Borrow&lt;T&gt;</a></li><li><a·href="#impl-BorrowMut%3CT%3E-for-T">BorrowMut&lt;T&gt;</a></li><li><a·href="#impl-From%3CT%3E-for-T">From&lt;T&gt;</a></li><li><a·href="#impl-Into%3CU%3E-for-T">Into&lt;U&gt;</a></li><li><a·href="#impl-ToOwned-for-T">ToOwned</a></li><li><a·href="#impl-ToString-for-T">ToString</a></li><li><a·href="#impl-TryFrom%3CU%3E-for-T">TryFrom&lt;U&gt;</a></li><li><a·href="#impl-TryInto%3CU%3E-for-T">TryInto&lt;U&gt;</a></li></ul></section><h2><a·href="index.html">In·alloc::fmt</a></h2></div></nav><div·class="sidebar-resizer"></div>1 <!DOCTYPE·html><html·lang="en"><head><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.write(`<link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/SourceSerif4-Regular-46f98efaafac5295.ttf.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/FiraSans-Regular-018c141bf0843ffd.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/FiraSans-Medium-8f9a781e4970d388.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/SourceCodePro-Regular-562dcc5011b6de7d.ttf.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/SourceCodePro-Semibold-d899c5a5c4aeb14a.ttf.woff2">`)</script><link·rel="stylesheet"·href="../../static.files/normalize-76eba96aa4d2e634.css"><link·rel="stylesheet"·href="../../static.files/rustdoc-35f9e32502181f1e.css"><meta·name="rustdoc-vars"·data-root-path="../../"·data-static-root-path="../../static.files/"·data-current-crate="alloc"·data-themes=""·data-resource-suffix="1.78.0"·data-rustdoc-version="1.78.0"·data-channel="1.78.0"·data-search-js="search-42d8da7a6b9792c2.js"·data-settings-js="settings-4313503d2e1961c2.js"·><script·src="../../static.files/storage-4c98445ec4002617.js"></script><script·defer·src="sidebar-items1.78.0.js"></script><script·defer·src="../../static.files/main-12cf3b4f4f9dc36d.js"></script><noscript><link·rel="stylesheet"·href="../../static.files/noscript-04d5337699b92874.css"></noscript><link·rel="alternate·icon"·type="image/png"·href="../../static.files/favicon-16x16-8b506e7a72182f1c.png"><link·rel="alternate·icon"·type="image/png"·href="../../static.files/favicon-32x32-422f7d1d52889060.png"><link·rel="icon"·type="image/svg+xml"·href="../../static.files/favicon-2c020d218678b618.svg"></head><body·class="rustdoc·struct"><!--[if·lte·IE·11]><div·class="warning">This·old·browser·is·unsupported·and·will·most·likely·display·funky·things.</div><![endif]--><nav·class="mobile-topbar"><button·class="sidebar-menu-toggle"·title="show·sidebar"></button><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-151179464ae7ed46.svg"·alt=""></a></nav><nav·class="sidebar"><div·class="sidebar-crate"><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-151179464ae7ed46.svg"·alt="logo"></a><h2><a·href="../../alloc/index.html">alloc</a><span·class="version">1.78.0</span></h2></div><h2·class="location"><a·href="#">Error</a></h2><div·class="sidebar-elems"><section><h3><a·href="#trait-implementations">Trait·Implementations</a></h3><ul·class="block·trait-implementation"><li><a·href="#impl-Clone-for-Error">Clone</a></li><li><a·href="#impl-Copy-for-Error">Copy</a></li><li><a·href="#impl-Debug-for-Error">Debug</a></li><li><a·href="#impl-Default-for-Error">Default</a></li><li><a·href="#impl-Display-for-Error">Display</a></li><li><a·href="#impl-Eq-for-Error">Eq</a></li><li><a·href="#impl-Error-for-Error">Error</a></li><li><a·href="#impl-Hash-for-Error">Hash</a></li><li><a·href="#impl-Ord-for-Error">Ord</a></li><li><a·href="#impl-PartialEq-for-Error">PartialEq</a></li><li><a·href="#impl-PartialOrd-for-Error">PartialOrd</a></li><li><a·href="#impl-StructuralPartialEq-for-Error">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">Freeze</a></li><li><a·href="#impl-RefUnwindSafe-for-Error">RefUnwindSafe</a></li><li><a·href="#impl-Send-for-Error">Send</a></li><li><a·href="#impl-Sync-for-Error">Sync</a></li><li><a·href="#impl-Unpin-for-Error">Unpin</a></li><li><a·href="#impl-UnwindSafe-for-Error">UnwindSafe</a></li></ul><h3><a·href="#blanket-implementations">Blanket·Implementations</a></h3><ul·class="block·blanket-implementation"><li><a·href="#impl-Any-for-T">Any</a></li><li><a·href="#impl-Borrow%3CT%3E-for-T">Borrow&lt;T&gt;</a></li><li><a·href="#impl-BorrowMut%3CT%3E-for-T">BorrowMut&lt;T&gt;</a></li><li><a·href="#impl-From%3CT%3E-for-T">From&lt;T&gt;</a></li><li><a·href="#impl-Into%3CU%3E-for-T">Into&lt;U&gt;</a></li><li><a·href="#impl-ToOwned-for-T">ToOwned</a></li><li><a·href="#impl-ToString-for-T">ToString</a></li><li><a·href="#impl-TryFrom%3CU%3E-for-T">TryFrom&lt;U&gt;</a></li><li><a·href="#impl-TryInto%3CU%3E-for-T">TryInto&lt;U&gt;</a></li></ul></section><h2><a·href="index.html">In·alloc::fmt</a></h2></div></nav><div·class="sidebar-resizer"></div>
2 ····<main><div·class="width-limiter"><nav·class="sub"><form·class="search-form"><span></span><div·id="sidebar-button"·tabindex="-1"><a·href="../../alloc/all.html"·title="show·sidebar"></a></div><input·class="search-input"·name="search"·aria-label="Run·search·in·the·documentation"·autocomplete="off"·spellcheck="false"·placeholder="Click·or·press·‘S’·to·search,·‘?’·for·more·options…"·type="search"><div·id="help-button"·tabindex="-1"><a·href="../../help.html"·title="help">?</a></div><div·id="settings-menu"·tabindex="-1"><a·href="../../settings.html"·title="settings"><img·width="22"·height="22"·alt="Change·settings"·src="../../static.files/wheel-7b819b6101059cd0.svg"></a></div></form></nav><section·id="main-content"·class="content"><div·class="main-heading"><h1>Struct·<a·href="../index.html">alloc</a>::<wbr><a·href="index.html">fmt</a>::<wbr><a·class="struct"·href="#">Error</a><button·id="copy-path"·title="Copy·item·path·to·clipboard"><img·src="../../static.files/clipboard-7571035ce49a181d.svg"·width="19"·height="18"·alt="Copy·item·path"></button></h1><span·class="out-of-band"><span·class="since"·title="Stable·since·Rust·version·1.0.0">1.0.0</span>···<a·class="src"·href="../../src/core/fmt/mod.rs.html#97">source</a>···<button·id="toggle-all-docs"·title="collapse·all·docs">[<span>&#x2212;</span>]</button></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 ····<main><div·class="width-limiter"><nav·class="sub"><form·class="search-form"><span></span><div·id="sidebar-button"·tabindex="-1"><a·href="../../alloc/all.html"·title="show·sidebar"></a></div><input·class="search-input"·name="search"·aria-label="Run·search·in·the·documentation"·autocomplete="off"·spellcheck="false"·placeholder="Click·or·press·‘S’·to·search,·‘?’·for·more·options…"·type="search"><div·id="help-button"·tabindex="-1"><a·href="../../help.html"·title="help">?</a></div><div·id="settings-menu"·tabindex="-1"><a·href="../../settings.html"·title="settings"><img·width="22"·height="22"·alt="Change·settings"·src="../../static.files/wheel-7b819b6101059cd0.svg"></a></div></form></nav><section·id="main-content"·class="content"><div·class="main-heading"><h1>Struct·<a·href="../index.html">alloc</a>::<wbr><a·href="index.html">fmt</a>::<wbr><a·class="struct"·href="#">Error</a><button·id="copy-path"·title="Copy·item·path·to·clipboard"><img·src="../../static.files/clipboard-7571035ce49a181d.svg"·width="19"·height="18"·alt="Copy·item·path"></button></h1><span·class="out-of-band"><span·class="since"·title="Stable·since·Rust·version·1.0.0">1.0.0</span>···<a·class="src"·href="https://doc.rust-lang.org/1.78.0/src/core/fmt/mod.rs.html#97">source</a>···<button·id="toggle-all-docs"·title="collapse·all·docs">[<span>&#x2212;</span>]</button></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>
3 <p>This·type·does·not·support·transmission·of·an·error·other·than·that·an·error3 <p>This·type·does·not·support·transmission·of·an·error·other·than·that·an·error
4 occurred.·Any·extra·information·must·be·arranged·to·be·transmitted·through4 occurred.·Any·extra·information·must·be·arranged·to·be·transmitted·through
5 some·other·means.</p>5 some·other·means.</p>
6 <p>An·important·thing·to·remember·is·that·the·type·<code>fmt::Error</code>·should·not·be6 <p>An·important·thing·to·remember·is·that·the·type·<code>fmt::Error</code>·should·not·be
7 confused·with·<a·href="../../std/io/struct.Error.html"><code>std::io::Error</code></a>·or·<a·href="../../std/error/trait.Error.html"><code>std::error::Error</code></a>,·which·you·may·also7 confused·with·<a·href="../../std/io/struct.Error.html"><code>std::io::Error</code></a>·or·<a·href="../../std/error/trait.Error.html"><code>std::error::Error</code></a>,·which·you·may·also
8 have·in·scope.</p>8 have·in·scope.</p>
9 <h2·id="examples"><a·class="doc-anchor"·href="#examples">§</a>Examples</h2>9 <h2·id="examples"><a·class="doc-anchor"·href="#examples">§</a>Examples</h2>
10 <div·class="example-wrap"><pre·class="rust·rust-example-rendered"><code><span·class="kw">use·</span>std::fmt::{<span·class="self">self</span>,·write};10 <div·class="example-wrap"><pre·class="rust·rust-example-rendered"><code><span·class="kw">use·</span>std::fmt::{<span·class="self">self</span>,·write};
  
11 <span·class="kw">let·</span><span·class="kw-2">mut·</span>output·=·String::new();11 <span·class="kw">let·</span><span·class="kw-2">mut·</span>output·=·String::new();
12 <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>))·{12 <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>))·{
13 ····<span·class="macro">panic!</span>(<span·class="string">"An·error·occurred"</span>);13 ····<span·class="macro">panic!</span>(<span·class="string">"An·error·occurred"</span>);
14 }</code></pre><a·class="test-arrow"·target="_blank"·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">Run</a></div>14 }</code></pre><a·class="test-arrow"·target="_blank"·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">Run</a></div>
15 </div></details><h2·id="trait-implementations"·class="section-header">Trait·Implementations<a·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"><a·class="src·rightside"·href="../../src/core/fmt/mod.rs.html#96">source</a><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"·href="s[·...·truncated·by·diffoscope;·len:·10123,·SHA:·b9bce75b49cae927679eb2939b5a92bb277e9486002d2324f7acae71c932d366·...·]/core/primitive.reference.html">&amp;mut·__H</a>)<div·class="where">where15 </div></details><h2·id="trait-implementations"·class="section-header">Trait·Implementations<a·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"><a·class="src·rightside"·href="https://doc.rust-lang.org/1.78.0/src/core/fmt/mod.rs.html#96">source</a><a·href="#impl-Clone-for-Error"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/clone/trait.Clone.html"·title="trait·core:[·...·truncated·by·diffoscope;·len:·11365,·SHA:·288fb0927f5a48872f76482db2b962ff983cf78e224c20e8a1d4619fdddacb50·...·]/core/primitive.reference.html">&amp;mut·__H</a>)<div·class="where">where
16 ····__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:·676,·SHA:·3258c6bd0983c8fb9e17f5f6fed7d265dc52c2b6ead2394946a14bd2b956b5c0·...·]/core/primitive.reference.html">&amp;mut·H</a>)<div·class="where">where16 ····__H:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.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.78.0/core/hash/trait.Hasher.[·...·truncated·by·diffoscope;·len:·865,·SHA:·6c05e0c276a8fe1841669212681d30f11482185fda2b079081a778719e857ba2·...·]/core/primitive.reference.html">&amp;mut·H</a>)<div·class="where">where
17 ····H:·<a·class="trait"·href="../../core/hash/trait.Hasher.html"·title="trait·core::hash::Hasher">Hasher</a>,17 ····H:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/hash/trait.Hasher.html"·title="trait·core::hash::Hasher">Hasher</a>,
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'>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:·1818,·SHA:·b49cbb82abbf020fe577e063e70a262c404dab18f69261269179431b8bc6ff12·...·]/core/cmp/trait.Ord.html#method.max"·class="fn">max</a>(self,·other:·Self)·-&gt;·Self<div·class="where">where18 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.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.78.0/core/hash/tr[·...·truncated·by·diffoscope;·len:·2142,·SHA:·ed74f4710dc9d1cb3a82aa56456fd4beb4f8c8687991f212e0c29804b2199315·...·]/core/cmp/trait.Ord.html#method.max"·class="fn">max</a>(self,·other:·Self)·-&gt;·Self<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'>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:·366,·SHA:·5f7c95e2f3766149072c740327aa4bb549367ca386ccc24c3b8a63db3f72e3a2·...·]/core/cmp/trait.Ord.html#method.min"·class="fn">min</a>(self,·other:·Self)·-&gt;·Self<div·class="where">where19 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.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.78.0/core/c[·...·truncated·by·diffoscope;·len:·474,·SHA:·fc9e9043f2f5804789ad671e51d88a392ae0a3cdc7502c451c420ce0fd2823a1·...·]/core/cmp/trait.Ord.html#method.min"·class="fn">min</a>(self,·other:·Self)·-&gt;·Self<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'>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:·370,·SHA:·47f2610a1bf03f84e97c3b8a0afee52241c09f8443347dd96876fb6ed51bc348·...·]/core/cmp/trait.Ord.html#method.clamp"·class="fn">clamp</a>(self,·min:·Self,·max:·Self)·-&gt;·Self<div·class="where">where20 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.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.78.0/core/c[·...·truncated·by·diffoscope;·len:·478,·SHA:·5e6ec419023fc525e24a8e829c087fd1b90a84609190c772b3aadb17a807d8e9·...·]/core/cmp/trait.Ord.html#method.clamp"·class="fn">clamp</a>(self,·min:·Self,·max:·Self)·-&gt;·Self<div·class="where">where
21 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>·+·<a·class="trait"·href="../../core/cmp/trait.PartialOrd.html"·title="trait·core::cmp::PartialOrd">PartialOrd</a>,</div></h4></section></summary><div·class='docblock'>Restrict·[·...·truncated·by·diffoscope;·len:·1117,·SHA:·3373ad76d08ccad47b4d3ae74c9dce8af015f4594a5b55b2e69263c766736ba4·...·]/core/primitive.bool.html">bool</a></h4></section></summary><div·class='docblock'>This·method·tests·for·<code>self</code>·and·<code>other</code>·values·to·be·equal,·and·is·used21 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>·+·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/cmp/trait.PartialOrd.html"·title="trait·core::cmp::PartialOrd">PartialOrd</a>,</div></[·...·truncated·by·diffoscope;·len:·1333,·SHA:·182327211c7b64fa102dec529e9bfd62b8406fd6a7e9f4eebcccb3b3cc355726·...·]/core/primitive.bool.html">bool</a></h4></section></summary><div·class='docblock'>This·method·tests·for·<code>self</code>·and·<code>other</code>·values·to·be·equal,·and·is·used
22 by·<code>==</code>.</div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.ne"·class="method·trait-impl"><a·class="src·rightside"·href="../../src/core/cmp.rs.html#263">source</a><a·href="#method.ne"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../../core/cmp/trait.PartialEq.html#method.ne"·class="fn">ne</a>(&amp;self,·other:·<a·class="primitive"·href="../../core/primitive.refere[·...·truncated·by·diffoscope;·len:·62,·SHA:·08c05ae5f855368e255c51945ed5572423ad7787a7d2cf5c61719fd2a76285df·...·]/core/primitive.bool.html">bool</a></h4></section></summary><div·class='docblock'>This·method·tests·for·<code>!=</code>.·The·default·implementation·is·almost·always22 by·<code>==</code>.</div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.ne"·class="method·trait-impl"><a·class="src·rightside"·href="https://doc.rust-lang.org/1.78.0/src/core/cmp.rs.html#263">source</a><a·href="#method.ne"·class="anchor">§</a><h4·class="code-header">fn·<a·href="https://doc.rust-lang.org/1.78.0/core/cmp/trait.PartialEq.html#method.ne"·class="fn">ne</a>(&amp;self,·other:·[·...·truncated·by·diffoscope;·len:·170,·SHA:·7c0c9680b4d89f8edf1ab3e11bac78a0c9f93eef84e615310dcfa7ec178d9955·...·]/core/primitive.bool.html">bool</a></h4></section></summary><div·class='docblock'>This·method·tests·for·<code>!=</code>.·The·default·implementation·is·almost·always
23 sufficient,·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"><a·class="src·rightside"·href="../../src/core/fmt/mod.rs.html#96">source</a><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·<a·class=[·...·truncated·by·diffoscope;·len:·2255,·SHA:·f9d350914253d91310965abb4f52ed8d985df363e1c09ebb6510131c6c912c37·...·]/core/primitive.bool.html">bool</a></h4></section></summary><div·class='docblock'>This·method·tests·less·than·or·equal·to·(for·<code>self</code>·and·<code>other</code>)·and·is·used·by·the·<code>&lt;=</code>23 sufficient,·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"><a·class="src·rightside"·href="https://doc.rust-lang.org/1.78.0/src/core/fmt/mod.rs.html#96">source</a><a·href="#impl-PartialOrd-for-Error"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/cmp/trait.PartialOrd.html"·title="tra[·...·truncated·by·diffoscope;·len:·2687,·SHA:·2841468bd44a97671756d44c7555504113d87fdb3d07eb1caea9a1b88255dd02·...·]/core/primitive.bool.html">bool</a></h4></section></summary><div·class='docblock'>This·method·tests·less·than·or·equal·to·(for·<code>self</code>·and·<code>other</code>)·and·is·used·by·the·<code>&lt;=</code>
24 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"><a·class="src·rightside"·href="../../src/core/cmp.rs.html#1204">source</a><a·[·...·truncated·by·diffoscope;·len:·1020,·SHA:·067e0d318c76c9e88eca087d9621cfdc1cf7d64c3871a36c7eeab962c214e28d·...·]/core/primitive.bool.html">bool</a></h4></section></summary><div·class='docblock'>This·method·tests·greater·than·or·equal·to·(for·<code>self</code>·and·<code>other</code>)·and·is·used·by·the·<code>&gt;=</code>24 operator.·<a·href="https://doc.rust-lang.org/1.78.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"><a·class="src·rightside"·href="https://doc.rust-la[·...·truncated·by·diffoscope;·len:·1290,·SHA:·11787c958b9e4d94fe0b77b7621817b99e87bb88305120c6f45a438e5bee59ce·...·]/core/primitive.bool.html">bool</a></h4></section></summary><div·class='docblock'>This·method·tests·greater·than·or·equal·to·(for·<code>self</code>·and·<code>other</code>)·and·is·used·by·the·<code>&gt;=</code>
25 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"><a·class="src·rightside"·href="../../src/core/fmt/mod.rs.html#96">source</a><a·href="#impl-Copy-for-Error"·class="an[·...·truncated·by·diffoscope;·len:·3896,·SHA:·c1f48d282e08bd752561207a18bc33a30ce6c69dd8f0b887a1ad79bbf155ce1f·...·]/core/any/trait.Any.html"·title="trait·core::any::Any">Any</a>·for·T<div·class="where">where25 operator.·<a·href="https://doc.rust-lang.org/1.78.0/core/cmp/trait.PartialOrd.html#method.ge">Read·more</a></div></details></div></details><section·id="impl-Copy-for-Error"·class="impl"><a·class="src·rightside"·href="https://doc.rust-lang.org/1.78.0/src/core/fmt/mod.rs.html#[·...·truncated·by·diffoscope;·len:·4301,·SHA:·c50ba44d4cb2ce3445c6a05030cc7c6b610a7d2134d5dfbafd6e1ddae71cb4f6·...·]/core/any/trait.Any.html"·title="trait·core::any::Any">Any</a>·for·T<div·class="where">where
26 ····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:·9db8bacb767d75cc3351ca7341c388130aa05ebef490d992be5374f16eedc378·...·]/src/core/borrow.rs.html#208">source</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">where26 ····T:·'static·+·?<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">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:·039b8952ccb1ab7d8f15cd519cbc10f4afc149276d0f9cfd3a53117d606059df·...·]/src/core/borrow.rs.html#208">source</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
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"·class="method·trait-impl"><a·class="src·r[·...·truncated·by·diffoscope;·len:·629,·SHA:·b2ffbab17ff1ef71ba4c506a3aaa515da2082da6f02a53862ce1ca2b2b25f5b4·...·]/src/core/borrow.rs.html#216">source</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">where27 ····T:·?<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/marker/trait.Sized.html"·title="trait·core::marker::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:·952d76e7bcf7b521fffa418ce638abf69976de0942360e56f93e419ca3389394·...·]/src/core/borrow.rs.html#216">source</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
28 ····T:·?<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::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:·befefcb8cb29dc857e1f3050572f6f470317e3350e0851c4ed6e56cc38673a92·...·]/core/convert/trait.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.78.0/core/marker/trait.Sized.html"·title="trait·core::marker::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:·204bc28c8766993ff59d26bb790f1469ab686e6f172c57f35aa987a81507a7b1·...·]/core/convert/trait.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.78.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.78.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.78.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:·2cf76a8ca501b2a1fef209fed846779ab1bed3b75f52c7425335e3ce04e6b272·...·]/core/convert/trait.Into.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.78.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#83-95">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#83-95">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·href="#associ[·...·truncated·by·diffoscope;·len:·1220,·SHA:·3cbf0f64542b816603968ea3c1b51d1b1eb93d99770d50fed747c05540b0e6b0·...·]/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#2543-2557">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.78.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:·1274,·SHA:·0c080e1e1236f77ce91b20fef8bb17c6bc50a069d2e16d2b40ea7b4298dec09f·...·]/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#2543-2557">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="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:·bf3a3f8ffed9dcfc973405dddaf9f278663007cc35ca5daa38b602630201cbf0·...·]/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="trait.Display.html"·title="trait·alloc::fmt::Display">Display</a>·+·?<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/marker/trait.Sized.html"·title="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:·531ea7c1ecd9197e925ea3063788b96ffe9ed8291f75ffba5fcab4c2298b41ca·...·]/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"·class="associatedtype·trait-impl"><a·hre[·...·truncated·by·diffoscope;·len:·1591,·SHA:·8537afacf1b3cf6b9fb7db778975d49d8a8e5988d420715e464ff4a79dd696c5·...·]/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.78.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"·class="associ[·...·truncated·by·diffoscope;·len:·1861,·SHA:·78398046ba16de2f66a8201a11d6a2dd405fceedeabfcaa37481e77092687e6f·...·]/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-1"·class="associatedtype·trait-i[·...·truncated·by·diffoscope;·len:·1231,·SHA:·7843e7b6cca73922417e4154886c0df66f016d274b48933c21bdb75b67479d5b·...·]/core/convert/trait.TryFrom.html#associatedtype.Error"·title="type·core::convert::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.78.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-1"·cl[·...·truncated·by·diffoscope;·len:·1474,·SHA:·ca90cccb6c86c654c95a1aaec456fbbe4b115f0d5a700e7d156e823346d70894·...·]/core/convert/trait.TryFrom.html#associatedtype.Error"·title="type·core::convert::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-web-doc/html/alloc/fmt/struct.Formatter.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="Configuration·for·formatting."><title>Formatter·in·alloc::fmt·-·Rust</title><script>·if·(window.location.protocol·!==·"file:")·document.write(`<link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/SourceSerif4-Regular-46f98efaafac5295.ttf.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/FiraSans-Regular-018c141bf0843ffd.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/FiraSans-Medium-8f9a781e4970d388.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/SourceCodePro-Regular-562dcc5011b6de7d.ttf.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/SourceCodePro-Semibold-d899c5a5c4aeb14a.ttf.woff2">`)</script><link·rel="stylesheet"·href="../../static.files/normalize-76eba96aa4d2e634.css"><link·rel="stylesheet"·href="../../static.files/rustdoc-35f9e32502181f1e.css"><meta·name="rustdoc-vars"·data-root-path="../../"·data-static-root-path="../../static.files/"·data-current-crate="alloc"·data-themes=""·data-resource-suffix="1.78.0"·data-rustdoc-version="1.78.0"·data-channel="1.78.0"·data-search-js="search-42d8da7a6b9792c2.js"·data-settings-js="settings-4313503d2e1961c2.js"·><script·src="../../static.files/storage-4c98445ec4002617.js"></script><script·defer·src="sidebar-items1.78.0.js"></script><script·defer·src="../../static.files/main-12cf3b4f4f9dc36d.js"></script><noscript><link·rel="stylesheet"·href="../../static.files/noscript-04d5337699b92874.css"></noscript><link·rel="alternate·icon"·type="image/png"·href="../../static.files/favicon-16x16-8b506e7a72182f1c.png"><link·rel="alternate·icon"·type="image/png"·href="../../static.files/favicon-32x32-422f7d1d52889060.png"><link·rel="icon"·type="image/svg+xml"·href="../../static.files/favicon-2c020d218678b618.svg"></head><body·class="rustdoc·struct"><!--[if·lte·IE·11]><div·class="warning">This·old·browser·is·unsupported·and·will·most·likely·display·funky·things.</div><![endif]--><nav·class="mobile-topbar"><button·class="sidebar-menu-toggle"·title="show·sidebar"></button><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-151179464ae7ed46.svg"·alt=""></a></nav><nav·class="sidebar"><div·class="sidebar-crate"><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-151179464ae7ed46.svg"·alt="logo"></a><h2><a·href="../../alloc/index.html">alloc</a><span·class="version">1.78.0</span></h2></div><h2·class="location"><a·href="#">Formatter</a></h2><div·class="sidebar-elems"><section><h3><a·href="#implementations">Methods</a></h3><ul·class="block·method"><li><a·href="#method.align">align</a></li><li><a·href="#method.alternate">alternate</a></li><li><a·href="#method.debug_list">debug_list</a></li><li><a·href="#method.debug_map">debug_map</a></li><li><a·href="#method.debug_set">debug_set</a></li><li><a·href="#method.debug_struct">debug_struct</a></li><li><a·href="#method.debug_tuple">debug_tuple</a></li><li><a·href="#method.fill">fill</a></li><li><a·href="#method.flags">flags</a></li><li><a·href="#method.pad">pad</a></li><li><a·href="#method.pad_integral">pad_integral</a></li><li><a·href="#method.precision">precision</a></li><li><a·href="#method.sign_aware_zero_pad">sign_aware_zero_pad</a></li><li><a·href="#method.sign_minus">sign_minus</a></li><li><a·href="#method.sign_plus">sign_plus</a></li><li><a·href="#method.width">width</a></li><li><a·href="#method.write_fmt">write_fmt</a></li><li><a·href="#method.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">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">!RefUnwindSafe</a></li><li><a·href="#impl-Send-for-Formatter%3C'a%3E">!Send</a></li><li><a·href="#impl-Sync-for-Formatter%3C'a%3E">!Sync</a></li><li><a·href="#impl-UnwindSafe-for-Formatter%3C'a%3E">!UnwindSafe</a></li><li><a·href="#impl-Freeze-for-Formatter%3C'a%3E">Freeze</a></li><li><a·href="#impl-Unpin-for-Formatter%3C'a%3E">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">Any</a></li><li><a·href="#impl-Borrow%3CT%3E-for-T">Borrow&lt;T&gt;</a></li><li><a·href="#impl-BorrowMut%3CT%3E-for-T">BorrowMut&lt;T&gt;</a></li><li><a·href="#impl-From%3CT%3E-for-T">From&lt;T&gt;</a></li><li><a·href="#impl-Into%3CU%3E-for-T">Into&lt;U&gt;</a></li><li><a·href="#impl-TryFrom%3CU%3E-for-T">TryFrom&lt;U&gt;</a></li><li><a·href="#impl-TryInto%3CU%3E-for-T">TryInto&lt;U&gt;</a></li></ul></section><h2><a·href="index.html">In·alloc::fmt</a></h2></div></nav><div·class="sidebar-resizer"></div>1 <!DOCTYPE·html><html·lang="en"><head><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.write(`<link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/SourceSerif4-Regular-46f98efaafac5295.ttf.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/FiraSans-Regular-018c141bf0843ffd.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/FiraSans-Medium-8f9a781e4970d388.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/SourceCodePro-Regular-562dcc5011b6de7d.ttf.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/SourceCodePro-Semibold-d899c5a5c4aeb14a.ttf.woff2">`)</script><link·rel="stylesheet"·href="../../static.files/normalize-76eba96aa4d2e634.css"><link·rel="stylesheet"·href="../../static.files/rustdoc-35f9e32502181f1e.css"><meta·name="rustdoc-vars"·data-root-path="../../"·data-static-root-path="../../static.files/"·data-current-crate="alloc"·data-themes=""·data-resource-suffix="1.78.0"·data-rustdoc-version="1.78.0"·data-channel="1.78.0"·data-search-js="search-42d8da7a6b9792c2.js"·data-settings-js="settings-4313503d2e1961c2.js"·><script·src="../../static.files/storage-4c98445ec4002617.js"></script><script·defer·src="sidebar-items1.78.0.js"></script><script·defer·src="../../static.files/main-12cf3b4f4f9dc36d.js"></script><noscript><link·rel="stylesheet"·href="../../static.files/noscript-04d5337699b92874.css"></noscript><link·rel="alternate·icon"·type="image/png"·href="../../static.files/favicon-16x16-8b506e7a72182f1c.png"><link·rel="alternate·icon"·type="image/png"·href="../../static.files/favicon-32x32-422f7d1d52889060.png"><link·rel="icon"·type="image/svg+xml"·href="../../static.files/favicon-2c020d218678b618.svg"></head><body·class="rustdoc·struct"><!--[if·lte·IE·11]><div·class="warning">This·old·browser·is·unsupported·and·will·most·likely·display·funky·things.</div><![endif]--><nav·class="mobile-topbar"><button·class="sidebar-menu-toggle"·title="show·sidebar"></button><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-151179464ae7ed46.svg"·alt=""></a></nav><nav·class="sidebar"><div·class="sidebar-crate"><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-151179464ae7ed46.svg"·alt="logo"></a><h2><a·href="../../alloc/index.html">alloc</a><span·class="version">1.78.0</span></h2></div><h2·class="location"><a·href="#">Formatter</a></h2><div·class="sidebar-elems"><section><h3><a·href="#implementations">Methods</a></h3><ul·class="block·method"><li><a·href="#method.align">align</a></li><li><a·href="#method.alternate">alternate</a></li><li><a·href="#method.debug_list">debug_list</a></li><li><a·href="#method.debug_map">debug_map</a></li><li><a·href="#method.debug_set">debug_set</a></li><li><a·href="#method.debug_struct">debug_struct</a></li><li><a·href="#method.debug_tuple">debug_tuple</a></li><li><a·href="#method.fill">fill</a></li><li><a·href="#method.flags">flags</a></li><li><a·href="#method.pad">pad</a></li><li><a·href="#method.pad_integral">pad_integral</a></li><li><a·href="#method.precision">precision</a></li><li><a·href="#method.sign_aware_zero_pad">sign_aware_zero_pad</a></li><li><a·href="#method.sign_minus">sign_minus</a></li><li><a·href="#method.sign_plus">sign_plus</a></li><li><a·href="#method.width">width</a></li><li><a·href="#method.write_fmt">write_fmt</a></li><li><a·href="#method.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">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">!RefUnwindSafe</a></li><li><a·href="#impl-Send-for-Formatter%3C'a%3E">!Send</a></li><li><a·href="#impl-Sync-for-Formatter%3C'a%3E">!Sync</a></li><li><a·href="#impl-UnwindSafe-for-Formatter%3C'a%3E">!UnwindSafe</a></li><li><a·href="#impl-Freeze-for-Formatter%3C'a%3E">Freeze</a></li><li><a·href="#impl-Unpin-for-Formatter%3C'a%3E">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">Any</a></li><li><a·href="#impl-Borrow%3CT%3E-for-T">Borrow&lt;T&gt;</a></li><li><a·href="#impl-BorrowMut%3CT%3E-for-T">BorrowMut&lt;T&gt;</a></li><li><a·href="#impl-From%3CT%3E-for-T">From&lt;T&gt;</a></li><li><a·href="#impl-Into%3CU%3E-for-T">Into&lt;U&gt;</a></li><li><a·href="#impl-TryFrom%3CU%3E-for-T">TryFrom&lt;U&gt;</a></li><li><a·href="#impl-TryInto%3CU%3E-for-T">TryInto&lt;U&gt;</a></li></ul></section><h2><a·href="index.html">In·alloc::fmt</a></h2></div></nav><div·class="sidebar-resizer"></div>
2 ····<main><div·class="width-limiter"><nav·class="sub"><form·class="search-form"><span></span><div·id="sidebar-button"·tabindex="-1"><a·href="../../alloc/all.html"·title="show·sidebar"></a></div><input·class="search-input"·name="search"·aria-label="Run·search·in·the·documentation"·autocomplete="off"·spellcheck="false"·placeholder="Click·or·press·‘S’·to·search,·‘?’·for·more·options…"·type="search"><div·id="help-button"·tabindex="-1"><a·href="../../help.html"·title="help">?</a></div><div·id="settings-menu"·tabindex="-1"><a·href="../../settings.html"·title="settings"><img·width="22"·height="22"·alt="Change·settings"·src="../../static.files/wheel-7b819b6101059cd0.svg"></a></div></form></nav><section·id="main-content"·class="content"><div·class="main-heading"><h1>Struct·<a·href="../index.html">alloc</a>::<wbr><a·href="index.html">fmt</a>::<wbr><a·class="struct"·href="#">Formatter</a><button·id="copy-path"·title="Copy·item·path·to·clipboard"><img·src="../../static.files/clipboard-7571035ce49a181d.svg"·width="19"·height="18"·alt="Copy·item·path"></button></h1><span·class="out-of-band"><span·class="since"·title="Stable·since·Rust·version·1.0.0">1.0.0</span>···<a·class="src"·href="../../src/core/fmt/mod.rs.html#254">source</a>···<button·id="toggle-all-docs"·title="collapse·all·docs">[<span>&#x2212;</span>]</button></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 ····<main><div·class="width-limiter"><nav·class="sub"><form·class="search-form"><span></span><div·id="sidebar-button"·tabindex="-1"><a·href="../../alloc/all.html"·title="show·sidebar"></a></div><input·class="search-input"·name="search"·aria-label="Run·search·in·the·documentation"·autocomplete="off"·spellcheck="false"·placeholder="Click·or·press·‘S’·to·search,·‘?’·for·more·options…"·type="search"><div·id="help-button"·tabindex="-1"><a·href="../../help.html"·title="help">?</a></div><div·id="settings-menu"·tabindex="-1"><a·href="../../settings.html"·title="settings"><img·width="22"·height="22"·alt="Change·settings"·src="../../static.files/wheel-7b819b6101059cd0.svg"></a></div></form></nav><section·id="main-content"·class="content"><div·class="main-heading"><h1>Struct·<a·href="../index.html">alloc</a>::<wbr><a·href="index.html">fmt</a>::<wbr><a·class="struct"·href="#">Formatter</a><button·id="copy-path"·title="Copy·item·path·to·clipboard"><img·src="../../static.files/clipboard-7571035ce49a181d.svg"·width="19"·height="18"·alt="Copy·item·path"></button></h1><span·class="out-of-band"><span·class="since"·title="Stable·since·Rust·version·1.0.0">1.0.0</span>···<a·class="src"·href="https://doc.rust-lang.org/1.78.0/src/core/fmt/mod.rs.html#254">source</a>···<button·id="toggle-all-docs"·title="collapse·all·docs">[<span>&#x2212;</span>]</button></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>
3 <p>A·<code>Formatter</code>·represents·various·options·related·to·formatting.·Users·do·not3 <p>A·<code>Formatter</code>·represents·various·options·related·to·formatting.·Users·do·not
4 construct·<code>Formatter</code>s·directly;·a·mutable·reference·to·one·is·passed·to4 construct·<code>Formatter</code>s·directly;·a·mutable·reference·to·one·is·passed·to
5 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 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>
6 <p>To·interact·with·a·<code>Formatter</code>,·you’ll·call·various·methods·to·change·the6 <p>To·interact·with·a·<code>Formatter</code>,·you’ll·call·various·methods·to·change·the
7 various·options·related·to·formatting.·For·examples,·please·see·the7 various·options·related·to·formatting.·For·examples,·please·see·the
8 documentation·of·the·methods·defined·on·<code>Formatter</code>·below.</p>8 documentation·of·the·methods·defined·on·<code>Formatter</code>·below.</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-Formatter%3C'a%3E"·class="impl"><a·class="src·rightside"·href="../../src/core/fmt/mod.rs.html#1238">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:·177,·SHA:·6bac84feadf787030f420bcd43ecc46bd4883bf5c7ac545a239386cb2c6d452f·...·]/src/core/fmt/mod.rs.html#1305">source</a><h4·class="code-header">pub·fn·<a·href="#method.pad_integral"·class="fn">pad_integral</a>(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-Formatter%3C'a%3E"·class="impl"><a·class="src·rightside"·href="https://doc.rust-lang.org/1.78.0/src/core/fmt/mod.rs.html#1238">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:·231,·SHA:·dffafa09364d99704bd2e3ccfee4c1e130498c0781377a51ed55eb52da085828·...·]/src/core/fmt/mod.rs.html#1305">source</a><h4·class="code-header">pub·fn·<a·href="#method.pad_integral"·class="fn">pad_integral</a>(
10 ····&amp;mut·self,10 ····&amp;mut·self,
11 ····is_nonnegative:·<a·class="primitive"·href="../../core/primitive.bool.html">bool</a>,11 ····is_nonnegative:·<a·class="primitive"·href="https://doc.rust-lang.org/1.78.0/core/primitive.bool.html">bool</a>,
12 ····prefix:·&amp;<a·class="primitive"·href="../../core/primitive.str.html">str</a>,12 ····prefix:·&amp;<a·class="primitive"·href="https://doc.rust-lang.org/1.78.0/core/primitive.str.html">str</a>,
13 ····buf:·&amp;<a·class="primitive"·href="../../core/primitive.str.html">str</a>13 ····buf:·&amp;<a·class="primitive"·href="https://doc.rust-lang.org/1.78.0/core/primitive.str.html">str</a>
14 )·-&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·been14 )·-&gt;·<a·class="enum"·href="https://doc.rust-lang.org/1.78.0/core/result/enum.Result.html"·title="enum·core::result::Result">Result</a>&lt;<a·class="primitive"·href="https://doc.rust-lang.org/1.78.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
15 emitted·into·a·str.·The·str·should·<em>not</em>·contain·the·sign·for·the15 emitted·into·a·str.·The·str·should·<em>not</em>·contain·the·sign·for·the
16 integer,·that·will·be·added·by·this·method.</p>16 integer,·that·will·be·added·by·this·method.</p>
17 <h5·id="arguments"><a·class="doc-anchor"·href="#arguments">§</a>Arguments</h5>17 <h5·id="arguments"><a·class="doc-anchor"·href="#arguments">§</a>Arguments</h5>
18 <ul>18 <ul>
19 <li>is_nonnegative·-·whether·the·original·integer·was·either·positive·or·zero.</li>19 <li>is_nonnegative·-·whether·the·original·integer·was·either·positive·or·zero.</li>
20 <li>prefix·-·if·the·‘#’·character·(Alternate)·is·provided,·this20 <li>prefix·-·if·the·‘#’·character·(Alternate)·is·provided,·this
21 is·the·prefix·to·put·in·front·of·the·number.</li>21 is·the·prefix·to·put·in·front·of·the·number.</li>
Offset 46, 15 lines modifiedOffset 46, 15 lines modified
46 }46 }
  
47 <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">2</span>)),·<span·class="string">"2"</span>);
48 <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">1</span>)),·<span·class="string">"-1"</span>);
49 <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">0</span>)),·<span·class="string">"0"</span>);
50 <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">"{:#}"</span>,·Foo::new(-<span·class="number">1</span>)),·<span·class="string">"-Foo·1"</span>);
51 <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"·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">Run</a></div>51 <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"·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">Run</a></div>
52 </div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.pad"·class="method"><a·class="src·rightside"·href="../../src/core/fmt/mod.rs.html#1399">source</a><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/result/e[·...·truncated·by·diffoscope;·len:·97,·SHA:·d40ee1a22f35a74164606315b56be0397b4af6c66d44adec8fb713e364db6a2d·...·]/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>This·function·takes·a·string·slice·and·emits·it·to·the·internal·buffer52 </div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.pad"·class="method"><a·class="src·rightside"·href="https://doc.rust-lang.org/1.78.0/src/core/fmt/mod.rs.html#1399">source</a><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.78.0/core/primitive.str.html">st[·...·truncated·by·diffoscope;·len:·205,·SHA:·4a48cb5ca9e07883f9f05d55e515ccaf584ded391e0071b9dc077009077bdbb4·...·]/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>This·function·takes·a·string·slice·and·emits·it·to·the·internal·buffer
53 after·applying·the·relevant·formatting·flags·specified.·The·flags53 after·applying·the·relevant·formatting·flags·specified.·The·flags
54 recognized·for·generic·strings·are:</p>54 recognized·for·generic·strings·are:</p>
55 <ul>55 <ul>
56 <li>width·-·the·minimum·width·of·what·to·emit</li>56 <li>width·-·the·minimum·width·of·what·to·emit</li>
57 <li>fill/align·-·what·to·emit·and·where·to·emit·it·if·the·string57 <li>fill/align·-·what·to·emit·and·where·to·emit·it·if·the·string
58 provided·needs·to·be·padded</li>58 provided·needs·to·be·padded</li>
59 <li>precision·-·the·maximum·length·to·emit,·the·string·is·truncated·if·it59 <li>precision·-·the·maximum·length·to·emit,·the·string·is·truncated·if·it
Offset 70, 15 lines modifiedOffset 70, 15 lines modified
70 ····<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 ····<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·{
71 ········formatter.pad(<span·class="string">"Foo"</span>)71 ········formatter.pad(<span·class="string">"Foo"</span>)
72 ····}72 ····}
73 }73 }
  
74 <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:&lt;4}"</span>),·<span·class="string">"Foo·"</span>);
75 <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"·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">Run</a></div>75 <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"·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">Run</a></div>
76 </div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.write_str"·class="method"><a·class="src·rightside"·href="../../src/core/fmt/mod.rs.html#1595">source</a><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"·href="../.[·...·truncated·by·diffoscope;·len:·112,·SHA:·1e8011165d69c34c1df9aadf6e519a9d0a0b3aac01e9870f0cac4687a85a1214·...·]/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·this76 </div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.write_str"·class="method"><a·class="src·rightside"·href="https://doc.rust-lang.org/1.78.0/src/core/fmt/mod.rs.html#1595">source</a><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.78.0/core/primiti[·...·truncated·by·diffoscope;·len:·220,·SHA:·8f88cae45fc1b693eab16fc218102c7d5cfdb028f9450f859f4564b2ad870ed3·...·]/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
77 formatter.</p>77 formatter.</p>
78 <h5·id="examples-2"><a·class="doc-anchor"·href="#examples-2">§</a>Examples</h5>78 <h5·id="examples-2"><a·class="doc-anchor"·href="#examples-2">§</a>Examples</h5>
79 <div·class="example-wrap"><pre·class="rust·rust-example-rendered"><code><span·class="kw">use·</span>std::fmt;79 <div·class="example-wrap"><pre·class="rust·rust-example-rendered"><code><span·class="kw">use·</span>std::fmt;
  
80 <span·class="kw">struct·</span>Foo;80 <span·class="kw">struct·</span>Foo;
  
81 <span·class="kw">impl·</span>fmt::Display·<span·class="kw">for·</span>Foo·{81 <span·class="kw">impl·</span>fmt::Display·<span·class="kw">for·</span>Foo·{
Offset 87, 30 lines modifiedOffset 87, 30 lines modified
87 ········<span·class="comment">//·This·is·equivalent·to:87 ········<span·class="comment">//·This·is·equivalent·to:
88 ········//·write!(formatter,·"Foo")88 ········//·write!(formatter,·"Foo")
89 ····</span>}89 ····</span>}
90 }90 }
  
91 <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}"</span>),·<span·class="string">"Foo"</span>);
92 <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"·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">Run</a></div>92 <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"·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">Run</a></div>
93 </div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.write_fmt"·class="method"><a·class="src·rightside"·href="../../src/core/fmt/mod.rs.html#1619">source</a><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>&lt;'_&g[·...·truncated·by·diffoscope;·len:·148,·SHA:·5380871354729bfb79537d4cb0cd78e2897271d57dae665646059eac8ab3620d·...·]/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·formatted·information·into·this·instance.</p>93 </div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.write_fmt"·class="method"><a·class="src·rightside"·href="https://doc.rust-lang.org/1.78.0/src/core/fmt/mod.rs.html#1619">source</a><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::Argum[·...·truncated·by·diffoscope;·len:·229,·SHA:·1c5afff999597beb109db8fef8f3f71c34b6145ac52368b28052b54c719f6ae9·...·]/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·formatted·information·into·this·instance.</p>
94 <h5·id="examples-3"><a·class="doc-anchor"·href="#examples-3">§</a>Examples</h5>94 <h5·id="examples-3"><a·class="doc-anchor"·href="#examples-3">§</a>Examples</h5>
95 <div·class="example-wrap"><pre·class="rust·rust-example-rendered"><code><span·class="kw">use·</span>std::fmt;95 <div·class="example-wrap"><pre·class="rust·rust-example-rendered"><code><span·class="kw">use·</span>std::fmt;
  
96 <span·class="kw">struct·</span>Foo(i32);96 <span·class="kw">struct·</span>Foo(i32);
  
97 <span·class="kw">impl·</span>fmt::Display·<span·class="kw">for·</span>Foo·{97 <span·class="kw">impl·</span>fmt::Display·<span·class="kw">for·</span>Foo·{
98 ····<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·{98 ····<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·{
99 ········formatter.write_fmt(<span·class="macro">format_args!</span>(<span·class="string">"Foo·{}"</span>,·<span·class="self">self</span>.<span·class="number">0</span>))99 ········formatter.write_fmt(<span·class="macro">format_args!</span>(<span·class="string">"Foo·{}"</span>,·<span·class="self">self</span>.<span·class="number">0</span>))
100 ····}100 ····}
101 }101 }
  
102 <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>);102 <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>);
103 <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"·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">Run</a></div>103 <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"·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">Run</a></div>
104 </div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.flags"·class="method"><a·class="src·rightside"·href="../../src/core/fmt/mod.rs.html#1631">source</a><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>Flags·for·formatting</p>104 </div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.flags"·class="method"><a·class="src·rightside"·href="https://doc.rust-lang.org/1.78.0/src/core/fmt/mod.rs.html#1631">source</a><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.78.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>Flags·for·formatting</p>
105 </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#1664">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>Character·used·as·‘fill’·whenever·there·is·alignment.</p>105 </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.78.0/src/core/fmt/mod.rs.html#1664">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.78.0/core/primitive.char.html">char</a></h4></section></summary><div·class="docblock"><p>Character·used·as·‘fill’·whenever·there·is·alignment.</p>
106 <h5·id="examples-4"><a·class="doc-anchor"·href="#examples-4">§</a>Examples</h5>106 <h5·id="examples-4"><a·class="doc-anchor"·href="#examples-4">§</a>Examples</h5>
107 <div·class="example-wrap"><pre·class="rust·rust-example-rendered"><code><span·class="kw">use·</span>std::fmt;107 <div·class="example-wrap"><pre·class="rust·rust-example-rendered"><code><span·class="kw">use·</span>std::fmt;
  
108 <span·class="kw">struct·</span>Foo;108 <span·class="kw">struct·</span>Foo;
  
109 <span·class="kw">impl·</span>fmt::Display·<span·class="kw">for·</span>Foo·{109 <span·class="kw">impl·</span>fmt::Display·<span·class="kw">for·</span>Foo·{
110 ····<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·{110 ····<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 125, 15 lines modifiedOffset 125, 15 lines modified
125 ········}125 ········}
126 ····}126 ····}
127 }127 }
  
128 <span·class="comment">//·We·set·alignment·to·the·right·with·"&gt;".128 <span·class="comment">//·We·set·alignment·to·the·right·with·"&gt;".
129 </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>);129 </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>);
130 <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"·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">Run</a></div>130 <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"·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">Run</a></div>
131 </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#1699">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>Flag·indicating·what·form·of·alignment·was·requested.</p>131 </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.78.0/src/core/fmt/mod.rs.html#1699">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.78.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>Flag·indicating·what·form·of·alignment·was·requested.</p>
132 <h5·id="examples-5"><a·class="doc-anchor"·href="#examples-5">§</a>Examples</h5>132 <h5·id="examples-5"><a·class="doc-anchor"·href="#examples-5">§</a>Examples</h5>
133 <div·class="example-wrap"><pre·class="rust·rust-example-rendered"><code><span·class="kw">use·</span>std::fmt::{<span·class="self">self</span>,·Alignment};133 <div·class="example-wrap"><pre·class="rust·rust-example-rendered"><code><span·class="kw">use·</span>std::fmt::{<span·class="self">self</span>,·Alignment};
  
134 <span·class="kw">struct·</span>Foo;134 <span·class="kw">struct·</span>Foo;
  
135 <span·class="kw">impl·</span>fmt::Display·<span·class="kw">for·</span>Foo·{135 <span·class="kw">impl·</span>fmt::Display·<span·class="kw">for·</span>Foo·{
136 ····<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·{136 ····<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 150, 15 lines modifiedOffset 150, 15 lines modified
150 ····}150 ····}
151 }151 }
  
152 <span·class="macro">assert_eq!</span>(<span·class="macro">format!</span>(<span·class="string">"{Foo:&lt;}"</span>),·<span·class="string">"left"</span>);152 <span·class="macro">assert_eq!</span>(<span·class="macro">format!</span>(<span·class="string">"{Foo:&lt;}"</span>),·<span·class="string">"left"</span>);
153 <span·class="macro">assert_eq!</span>(<span·class="macro">format!</span>(<span·class="string">"{Foo:&gt;}"</span>),·<span·class="string">"right"</span>);153 <span·class="macro">assert_eq!</span>(<span·class="macro">format!</span>(<span·class="string">"{Foo:&gt;}"</span>),·<span·class="string">"right"</span>);
154 <span·class="macro">assert_eq!</span>(<span·class="macro">format!</span>(<span·class="string">"{Foo:^}"</span>),·<span·class="string">"center"</span>);154 <span·class="macro">assert_eq!</span>(<span·class="macro">format!</span>(<span·class="string">"{Foo:^}"</span>),·<span·class="string">"center"</span>);
155 <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"·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">Run</a></div>155 <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"·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">Run</a></div>
156 </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#1734">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>Optionally·specified·integer·width·that·the·output·should·be.</p>156 </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.78.0/src/core/fmt/mod.rs.html#1734">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.78.0/core/option/enum.Option.htm[·...·truncated·by·diffoscope;·len:·110,·SHA:·e4c01523b6de48eb1c8f880f8ff8b604f9946dfea3cd248d91be8de447f6535f·...·]/core/primitive.usize.html">usize</a>&gt;</h4></section></summary><div·class="docblock"><p>Optionally·specified·integer·width·that·the·output·should·be.</p>
157 <h5·id="examples-6"><a·class="doc-anchor"·href="#examples-6">§</a>Examples</h5>157 <h5·id="examples-6"><a·class="doc-anchor"·href="#examples-6">§</a>Examples</h5>
158 <div·class="example-wrap"><pre·class="rust·rust-example-rendered"><code><span·class="kw">use·</span>std::fmt;158 <div·class="example-wrap"><pre·class="rust·rust-example-rendered"><code><span·class="kw">use·</span>std::fmt;
  
159 <span·class="kw">struct·</span>Foo(i32);159 <span·class="kw">struct·</span>Foo(i32);
  
160 <span·class="kw">impl·</span>fmt::Display·<span·class="kw">for·</span>Foo·{160 <span·class="kw">impl·</span>fmt::Display·<span·class="kw">for·</span>Foo·{
161 ····<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·{161 ····<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 170, 15 lines modifiedOffset 170, 15 lines modified
170 ············</span><span·class="macro">write!</span>(formatter,·<span·class="string">"Foo({})"</span>,·<span·class="self">self</span>.<span·class="number">0</span>)170 ············</span><span·class="macro">write!</span>(formatter,·<span·class="string">"Foo({})"</span>,·<span·class="self">self</span>.<span·class="number">0</span>)
171 ········}171 ········}
172 ····}172 ····}
173 }173 }
  
174 <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>);174 <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>);
175 <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"·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">Run</a></div>175 <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"·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">Run</a></div>
176 </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#1765">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>Optionally·specified·precision·for·numeric·types.·Alternatively,·the176 </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.78.0/src/core/fmt/mod.rs.html#1765">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.78.0/core/option/enum.Op[·...·truncated·by·diffoscope;·len:·118,·SHA:·46b2237e7e6b1e17517502cd07c41d13898bf390102c3dec4cb1ffa299632382·...·]/core/primitive.usize.html">usize</a>&gt;</h4></section></summary><div·class="docblock"><p>Optionally·specified·precision·for·numeric·types.·Alternatively,·the
177 maximum·width·for·string·types.</p>177 maximum·width·for·string·types.</p>
178 <h5·id="examples-7"><a·class="doc-anchor"·href="#examples-7">§</a>Examples</h5>178 <h5·id="examples-7"><a·class="doc-anchor"·href="#examples-7">§</a>Examples</h5>
Max diff block lines reached; 66537/104089 bytes (63.92%) of diff not shown.
51.3 KB
./usr/share/doc/rust-web-doc/html/alloc/fmt/struct.FormatterFn.html
    
Offset 1, 35 lines modifiedOffset 1, 35 lines modified
1 <!DOCTYPE·html><html·lang="en"><head><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>FormatterFn·in·alloc::fmt·-·Rust</title><script>·if·(window.location.protocol·!==·"file:")·document.write(`<link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/SourceSerif4-Regular-46f98efaafac5295.ttf.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/FiraSans-Regular-018c141bf0843ffd.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/FiraSans-Medium-8f9a781e4970d388.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/SourceCodePro-Regular-562dcc5011b6de7d.ttf.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/SourceCodePro-Semibold-d899c5a5c4aeb14a.ttf.woff2">`)</script><link·rel="stylesheet"·href="../../static.files/normalize-76eba96aa4d2e634.css"><link·rel="stylesheet"·href="../../static.files/rustdoc-35f9e32502181f1e.css"><meta·name="rustdoc-vars"·data-root-path="../../"·data-static-root-path="../../static.files/"·data-current-crate="alloc"·data-themes=""·data-resource-suffix="1.78.0"·data-rustdoc-version="1.78.0"·data-channel="1.78.0"·data-search-js="search-42d8da7a6b9792c2.js"·data-settings-js="settings-4313503d2e1961c2.js"·><script·src="../../static.files/storage-4c98445ec4002617.js"></script><script·defer·src="sidebar-items1.78.0.js"></script><script·defer·src="../../static.files/main-12cf3b4f4f9dc36d.js"></script><noscript><link·rel="stylesheet"·href="../../static.files/noscript-04d5337699b92874.css"></noscript><link·rel="alternate·icon"·type="image/png"·href="../../static.files/favicon-16x16-8b506e7a72182f1c.png"><link·rel="alternate·icon"·type="image/png"·href="../../static.files/favicon-32x32-422f7d1d52889060.png"><link·rel="icon"·type="image/svg+xml"·href="../../static.files/favicon-2c020d218678b618.svg"></head><body·class="rustdoc·struct"><!--[if·lte·IE·11]><div·class="warning">This·old·browser·is·unsupported·and·will·most·likely·display·funky·things.</div><![endif]--><nav·class="mobile-topbar"><button·class="sidebar-menu-toggle"·title="show·sidebar"></button><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-151179464ae7ed46.svg"·alt=""></a></nav><nav·class="sidebar"><div·class="sidebar-crate"><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-151179464ae7ed46.svg"·alt="logo"></a><h2><a·href="../../alloc/index.html">alloc</a><span·class="version">1.78.0</span></h2></div><h2·class="location"><a·href="#">FormatterFn</a></h2><div·class="sidebar-elems"><section><h3><a·href="#fields">Tuple·Fields</a></h3><ul·class="block·structfield"><li><a·href="#structfield.0">0</a></li></ul><h3><a·href="#trait-implementations">Trait·Implementations</a></h3><ul·class="block·trait-implementation"><li><a·href="#impl-Debug-for-FormatterFn%3CF%3E">Debug</a></li><li><a·href="#impl-Display-for-FormatterFn%3CF%3E">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-FormatterFn%3CF%3E">Freeze</a></li><li><a·href="#impl-RefUnwindSafe-for-FormatterFn%3CF%3E">RefUnwindSafe</a></li><li><a·href="#impl-Send-for-FormatterFn%3CF%3E">Send</a></li><li><a·href="#impl-Sync-for-FormatterFn%3CF%3E">Sync</a></li><li><a·href="#impl-Unpin-for-FormatterFn%3CF%3E">Unpin</a></li><li><a·href="#impl-UnwindSafe-for-FormatterFn%3CF%3E">UnwindSafe</a></li></ul><h3><a·href="#blanket-implementations">Blanket·Implementations</a></h3><ul·class="block·blanket-implementation"><li><a·href="#impl-Any-for-T">Any</a></li><li><a·href="#impl-Borrow%3CT%3E-for-T">Borrow&lt;T&gt;</a></li><li><a·href="#impl-BorrowMut%3CT%3E-for-T">BorrowMut&lt;T&gt;</a></li><li><a·href="#impl-From%3CT%3E-for-T">From&lt;T&gt;</a></li><li><a·href="#impl-Into%3CU%3E-for-T">Into&lt;U&gt;</a></li><li><a·href="#impl-ToString-for-T">ToString</a></li><li><a·href="#impl-TryFrom%3CU%3E-for-T">TryFrom&lt;U&gt;</a></li><li><a·href="#impl-TryInto%3CU%3E-for-T">TryInto&lt;U&gt;</a></li></ul></section><h2><a·href="index.html">In·alloc::fmt</a></h2></div></nav><div·class="sidebar-resizer"></div>1 <!DOCTYPE·html><html·lang="en"><head><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>FormatterFn·in·alloc::fmt·-·Rust</title><script>·if·(window.location.protocol·!==·"file:")·document.write(`<link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/SourceSerif4-Regular-46f98efaafac5295.ttf.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/FiraSans-Regular-018c141bf0843ffd.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/FiraSans-Medium-8f9a781e4970d388.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/SourceCodePro-Regular-562dcc5011b6de7d.ttf.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/SourceCodePro-Semibold-d899c5a5c4aeb14a.ttf.woff2">`)</script><link·rel="stylesheet"·href="../../static.files/normalize-76eba96aa4d2e634.css"><link·rel="stylesheet"·href="../../static.files/rustdoc-35f9e32502181f1e.css"><meta·name="rustdoc-vars"·data-root-path="../../"·data-static-root-path="../../static.files/"·data-current-crate="alloc"·data-themes=""·data-resource-suffix="1.78.0"·data-rustdoc-version="1.78.0"·data-channel="1.78.0"·data-search-js="search-42d8da7a6b9792c2.js"·data-settings-js="settings-4313503d2e1961c2.js"·><script·src="../../static.files/storage-4c98445ec4002617.js"></script><script·defer·src="sidebar-items1.78.0.js"></script><script·defer·src="../../static.files/main-12cf3b4f4f9dc36d.js"></script><noscript><link·rel="stylesheet"·href="../../static.files/noscript-04d5337699b92874.css"></noscript><link·rel="alternate·icon"·type="image/png"·href="../../static.files/favicon-16x16-8b506e7a72182f1c.png"><link·rel="alternate·icon"·type="image/png"·href="../../static.files/favicon-32x32-422f7d1d52889060.png"><link·rel="icon"·type="image/svg+xml"·href="../../static.files/favicon-2c020d218678b618.svg"></head><body·class="rustdoc·struct"><!--[if·lte·IE·11]><div·class="warning">This·old·browser·is·unsupported·and·will·most·likely·display·funky·things.</div><![endif]--><nav·class="mobile-topbar"><button·class="sidebar-menu-toggle"·title="show·sidebar"></button><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-151179464ae7ed46.svg"·alt=""></a></nav><nav·class="sidebar"><div·class="sidebar-crate"><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-151179464ae7ed46.svg"·alt="logo"></a><h2><a·href="../../alloc/index.html">alloc</a><span·class="version">1.78.0</span></h2></div><h2·class="location"><a·href="#">FormatterFn</a></h2><div·class="sidebar-elems"><section><h3><a·href="#fields">Tuple·Fields</a></h3><ul·class="block·structfield"><li><a·href="#structfield.0">0</a></li></ul><h3><a·href="#trait-implementations">Trait·Implementations</a></h3><ul·class="block·trait-implementation"><li><a·href="#impl-Debug-for-FormatterFn%3CF%3E">Debug</a></li><li><a·href="#impl-Display-for-FormatterFn%3CF%3E">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-FormatterFn%3CF%3E">Freeze</a></li><li><a·href="#impl-RefUnwindSafe-for-FormatterFn%3CF%3E">RefUnwindSafe</a></li><li><a·href="#impl-Send-for-FormatterFn%3CF%3E">Send</a></li><li><a·href="#impl-Sync-for-FormatterFn%3CF%3E">Sync</a></li><li><a·href="#impl-Unpin-for-FormatterFn%3CF%3E">Unpin</a></li><li><a·href="#impl-UnwindSafe-for-FormatterFn%3CF%3E">UnwindSafe</a></li></ul><h3><a·href="#blanket-implementations">Blanket·Implementations</a></h3><ul·class="block·blanket-implementation"><li><a·href="#impl-Any-for-T">Any</a></li><li><a·href="#impl-Borrow%3CT%3E-for-T">Borrow&lt;T&gt;</a></li><li><a·href="#impl-BorrowMut%3CT%3E-for-T">BorrowMut&lt;T&gt;</a></li><li><a·href="#impl-From%3CT%3E-for-T">From&lt;T&gt;</a></li><li><a·href="#impl-Into%3CU%3E-for-T">Into&lt;U&gt;</a></li><li><a·href="#impl-ToString-for-T">ToString</a></li><li><a·href="#impl-TryFrom%3CU%3E-for-T">TryFrom&lt;U&gt;</a></li><li><a·href="#impl-TryInto%3CU%3E-for-T">TryInto&lt;U&gt;</a></li></ul></section><h2><a·href="index.html">In·alloc::fmt</a></h2></div></nav><div·class="sidebar-resizer"></div>
2 ····<main><div·class="width-limiter"><nav·class="sub"><form·class="search-form"><span></span><div·id="sidebar-button"·tabindex="-1"><a·href="../../alloc/all.html"·title="show·sidebar"></a></div><input·class="search-input"·name="search"·aria-label="Run·search·in·the·documentation"·autocomplete="off"·spellcheck="false"·placeholder="Click·or·press·‘S’·to·search,·‘?’·for·more·options…"·type="search"><div·id="help-button"·tabindex="-1"><a·href="../../help.html"·title="help">?</a></div><div·id="settings-menu"·tabindex="-1"><a·href="../../settings.html"·title="settings"><img·width="22"·height="22"·alt="Change·settings"·src="../../static.files/wheel-7b819b6101059cd0.svg"></a></div></form></nav><section·id="main-content"·class="content"><div·class="main-heading"><h1>Struct·<a·href="../index.html">alloc</a>::<wbr><a·href="index.html">fmt</a>::<wbr><a·class="struct"·href="#">FormatterFn</a><button·id="copy-path"·title="Copy·item·path·to·clipboard"><img·src="../../static.files/clipboard-7571035ce49a181d.svg"·width="19"·height="18"·alt="Copy·item·path"></button></h1><span·class="out-of-band"><a·class="src"·href="../../src/core/fmt/builders.rs.html#1034">source</a>···<button·id="toggle-all-docs"·title="collapse·all·docs">[<span>&#x2212;</span>]</button></span></div><pre·class="rust·item-decl"><code>pub·struct·FormatterFn&lt;F&gt;(pub·F)2 ····<main><div·class="width-limiter"><nav·class="sub"><form·class="search-form"><span></span><div·id="sidebar-button"·tabindex="-1"><a·href="../../alloc/all.html"·title="show·sidebar"></a></div><input·class="search-input"·name="search"·aria-label="Run·search·in·the·documentation"·autocomplete="off"·spellcheck="false"·placeholder="Click·or·press·‘S’·to·search,·‘?’·for·more·options…"·type="search"><div·id="help-button"·tabindex="-1"><a·href="../../help.html"·title="help">?</a></div><div·id="settings-menu"·tabindex="-1"><a·href="../../settings.html"·title="settings"><img·width="22"·height="22"·alt="Change·settings"·src="../../static.files/wheel-7b819b6101059cd0.svg"></a></div></form></nav><section·id="main-content"·class="content"><div·class="main-heading"><h1>Struct·<a·href="../index.html">alloc</a>::<wbr><a·href="index.html">fmt</a>::<wbr><a·class="struct"·href="#">FormatterFn</a><button·id="copy-path"·title="Copy·item·path·to·clipboard"><img·src="../../static.files/clipboard-7571035ce49a181d.svg"·width="19"·height="18"·alt="Copy·item·path"></button></h1><span·class="out-of-band"><a·class="src"·href="https://doc.rust-lang.org/1.78.0/src/core/fmt/builders.rs.html#1034">source</a>···<button·id="toggle-all-docs"·title="collapse·all·docs">[<span>&#x2212;</span>]</button></span></div><pre·class="rust·item-decl"><code>pub·struct·FormatterFn&lt;F&gt;(pub·F)
3 <span·class="where">where3 <span·class="where">where
4 ····F:·<a·class="trait"·href="../../core/ops/function/trait.Fn.html"·title="trait·core::ops::function::Fn">Fn</a>(&amp;mut·<a·class="struct"·href="struct.Formatter.html"·title="struct·alloc::fmt::Formatter">Formatter</a>&lt;'_&gt;)·-&gt;·<a·class="enum"·href="../../core/result/enum.Res[·...·truncated·by·diffoscope;·len:·90,·SHA:·78f88c720475d1511ab514ed1cff517e404fd9af31cdb30de61c427009d644a3·...·]/core/primitive.unit.html">()</a>,·<a·class="struct"·href="struct.Error.html"·title="struct·alloc::fmt::Error">Error</a>&gt;</span>;</code></pre><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>debug_closure_helpers</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/117729">#117729</a>)</span></div></span><details·class="toggle·top-doc"·open><summary·class="hideme"><span>Expand·description</span></summary><div·class="docblock"><p>Implements·<a·href="trait.Debug.html"·title="trait·alloc::fmt::Debug"><code>fmt::Debug</code></a>·and·<a·href="trait.Display.html"·title="trait·alloc::fmt::Display"><code>fmt::Display</code></a>·using·a·function.</p>4 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.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:·cc5856266e90da2fd00bd6d91667dca7cc1db3e323ef1d7ff93876b3e61e02cd·...·]/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>
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 <div·class="example-wrap"><pre·class="rust·rust-example-rendered"><code><span·class="attr">#![feature(debug_closure_helpers)]6 <div·class="example-wrap"><pre·class="rust·rust-example-rendered"><code><span·class="attr">#![feature(debug_closure_helpers)]
7 </span><span·class="kw">use·</span>std::fmt;7 </span><span·class="kw">use·</span>std::fmt;
  
8 <span·class="kw">let·</span>value·=·<span·class="string">'a'</span>;8 <span·class="kw">let·</span>value·=·<span·class="string">'a'</span>;
9 <span·class="macro">assert_eq!</span>(<span·class="macro">format!</span>(<span·class="string">"{}"</span>,·value),·<span·class="string">"a"</span>);9 <span·class="macro">assert_eq!</span>(<span·class="macro">format!</span>(<span·class="string">"{}"</span>,·value),·<span·class="string">"a"</span>);
10 <span·class="macro">assert_eq!</span>(<span·class="macro">format!</span>(<span·class="string">"{:?}"</span>,·value),·<span·class="string">"'a'"</span>);10 <span·class="macro">assert_eq!</span>(<span·class="macro">format!</span>(<span·class="string">"{:?}"</span>,·value),·<span·class="string">"'a'"</span>);
  
11 <span·class="kw">let·</span>wrapped·=·fmt::FormatterFn(|f|·<span·class="macro">write!</span>(f,·<span·class="string">"{:?}"</span>,·<span·class="kw-2">&amp;</span>value));11 <span·class="kw">let·</span>wrapped·=·fmt::FormatterFn(|f|·<span·class="macro">write!</span>(f,·<span·class="string">"{:?}"</span>,·<span·class="kw-2">&amp;</span>value));
12 <span·class="macro">assert_eq!</span>(<span·class="macro">format!</span>(<span·class="string">"{}"</span>,·wrapped),·<span·class="string">"'a'"</span>);12 <span·class="macro">assert_eq!</span>(<span·class="macro">format!</span>(<span·class="string">"{}"</span>,·wrapped),·<span·class="string">"'a'"</span>);
13 <span·class="macro">assert_eq!</span>(<span·class="macro">format!</span>(<span·class="string">"{:?}"</span>,·wrapped),·<span·class="string">"'a'"</span>);</code></pre><a·class="test-arrow"·target="_blank"·href="https://play.rust-lang.org/?code=%23!%5Ballow(unused)%5D%0A%23!%5Bfeature(debug_closure_helpers)%5D%0Afn+main()+%7B%0A++++use+std::fmt;%0A++++%0A++++let+value+=+'a';%0A++++assert_eq!(format!(%22%7B%7D%22,+value),+%22a%22);%0A++++assert_eq!(format!(%22%7B:?%7D%22,+value),+%22'a'%22);%0A++++%0A++++let+wrapped+=+fmt::FormatterFn(%7Cf%7C+write!(f,+%22%7B:?%7D%22,+%26value));%0A++++assert_eq!(format!(%22%7B%7D%22,+wrapped),+%22'a'%22);%0A++++assert_eq!(format!(%22%7B:?%7D%22,+wrapped),+%22'a'%22);%0A%7D&amp;version=nightly&amp;edition=2021">Run</a></div>13 <span·class="macro">assert_eq!</span>(<span·class="macro">format!</span>(<span·class="string">"{:?}"</span>,·wrapped),·<span·class="string">"'a'"</span>);</code></pre><a·class="test-arrow"·target="_blank"·href="https://play.rust-lang.org/?code=%23!%5Ballow(unused)%5D%0A%23!%5Bfeature(debug_closure_helpers)%5D%0Afn+main()+%7B%0A++++use+std::fmt;%0A++++%0A++++let+value+=+'a';%0A++++assert_eq!(format!(%22%7B%7D%22,+value),+%22a%22);%0A++++assert_eq!(format!(%22%7B:?%7D%22,+value),+%22'a'%22);%0A++++%0A++++let+wrapped+=+fmt::FormatterFn(%7Cf%7C+write!(f,+%22%7B:?%7D%22,+%26value));%0A++++assert_eq!(format!(%22%7B%7D%22,+wrapped),+%22'a'%22);%0A++++assert_eq!(format!(%22%7B:?%7D%22,+wrapped),+%22'a'%22);%0A%7D&amp;version=nightly&amp;edition=2021">Run</a></div>
14 </div></details><h2·id="fields"·class="fields·section-header">Tuple·Fields<a·href="#fields"·class="anchor">§</a></h2><span·id="structfield.0"·class="structfield·section-header"><a·href="#structfield.0"·class="anchor·field">§</a><code>0:·F</code></span><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><h2·id="trait-implementations"·class="section-header">Trait·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-FormatterFn%3CF%3E"·class="impl"><a·class="src·rightside"·href="../../src/core/fmt/builders.rs.html#1039-1041">source</a><a·href="#impl-Debug-for-FormatterFn%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.FormatterFn.html"·title="struct·alloc::fmt::FormatterFn">FormatterFn</a>&lt;F&gt;<div·class="where">where14 </div></details><h2·id="fields"·class="fields·section-header">Tuple·Fields<a·href="#fields"·class="anchor">§</a></h2><span·id="structfield.0"·class="structfield·section-header"><a·href="#structfield.0"·class="anchor·field">§</a><code>0:·F</code></span><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><h2·id="trait-implementations"·class="section-header">Trait·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-FormatterFn%3CF%3E"·class="impl"><a·class="src·rightside"·href="https://doc.rust-lang.org/1.78.0/src/core/fmt/builders.rs.html#1039-1041">source</a><a·href="#impl-Debug-for-FormatterFn%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.FormatterFn.html"·title="struct·alloc::fmt::FormatterFn">FormatterFn</a>&lt;F&gt;<div·class="where">where
15 ····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:·1322,·SHA:·544752a28d80bc5e9572aea550a15278c035c0cccee09fc5e909cce63e005ad7·...·]/src/core/fmt/builders.rs.html#1049-1051">source</a><a·href="#impl-Display-for-FormatterFn%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.FormatterFn.html"·title="struct·alloc::fmt::FormatterFn">FormatterFn</a>&lt;F&gt;<div·class="where">where15 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.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:·1511,·SHA:·e7182a9d6ef67c9163beea986aec90526bb9008a16b7793a5819c186e3dd2a40·...·]/src/core/fmt/builders.rs.html#1049-1051">source</a><a·href="#impl-Display-for-FormatterFn%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.FormatterFn.html"·title="struct·alloc::fmt::FormatterFn">FormatterFn</a>&lt;F&gt;<div·class="where">where
16 ····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:·1552,·SHA:·b985ea7e4a8afdc82bc44a44713dd41db6e0d114d1e25329210286bc545a5ed5·...·]/core/marker/trait.Freeze.html"·title="trait·core::marker::Freeze">Freeze</a>·for·<a·class="struct"·href="struct.FormatterFn.html"·title="struct·alloc::fmt::FormatterFn">FormatterFn</a>&lt;F&gt;<div·class="where">where16 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.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:·1741,·SHA:·5d42c5816247be18e463b4daa7f5b52de804133b796d9a28daa17054cf200c40·...·]/core/marker/trait.Freeze.html"·title="trait·core::marker::Freeze">Freeze</a>·for·<a·class="struct"·href="struct.FormatterFn.html"·title="struct·alloc::fmt::FormatterFn">FormatterFn</a>&lt;F&gt;<div·class="where">where
17 ····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-FormatterFn%3CF%3E"·class="impl"><a·href="#impl-RefUnwindSafe-for-FormatterFn%3CF%3E"·class="anchor">§</a><h3·class=[·...·truncated·by·diffoscope;·len:·56,·SHA:·21a175e912fe5a4f8997b4352c63266d998e31a5a4fc4cddceac067a81180437·...·]/core/panic/unwind_safe/trait.RefUnwindSafe.html"·title="trait·core::panic::unwind_safe::RefUnwindSafe">RefUnwindSafe</a>·for·<a·class="struct"·href="struct.FormatterFn.html"·title="struct·alloc::fmt::FormatterFn">FormatterFn</a>&lt;F&gt;<div·class="where">where17 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/marker/trait.Freeze.html"·title="trait·core::marker::Freeze">Freeze</a>,</div></h3></section><section·id="impl-RefUnwindSafe-for-FormatterFn%3CF%3E"·class="impl"><a·href="#impl-RefUnwindSafe-for-FormatterFn%3CF%3E"·cla[·...·truncated·by·diffoscope;·len:·110,·SHA:·984c970addedb4215ad2a6b269e873fb06f7fe9eb4ade7b27fb9b0107c24b97b·...·]/core/panic/unwind_safe/trait.RefUnwindSafe.html"·title="trait·core::panic::unwind_safe::RefUnwindSafe">RefUnwindSafe</a>·for·<a·class="struct"·href="struct.FormatterFn.html"·title="struct·alloc::fmt::FormatterFn">FormatterFn</a>&lt;F&gt;<div·class="where">where
18 ····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-FormatterFn%3CF%3E"·class="impl"><a·href="#impl-Send-for-FormatterFn%3CF%3E"·clas[·...·truncated·by·diffoscope;·len:·82,·SHA:·376a5537eeda1228320a879413283eedf4395611a0eb39266c7ce74325d22745·...·]/core/marker/trait.Send.html"·title="trait·core::marker::Send">Send</a>·for·<a·class="struct"·href="struct.FormatterFn.html"·title="struct·alloc::fmt::FormatterFn">FormatterFn</a>&lt;F&gt;<div·class="where">where18 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.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-FormatterFn%3CF%3E"·class="impl"><a·href="#impl-Send-f[·...·truncated·by·diffoscope;·len:·136,·SHA:·2556cb6e321f7dd82f78d241245587906987d4a2728e61ad8e6ddda52328a2d6·...·]/core/marker/trait.Send.html"·title="trait·core::marker::Send">Send</a>·for·<a·class="struct"·href="struct.FormatterFn.html"·title="struct·alloc::fmt::FormatterFn">FormatterFn</a>&lt;F&gt;<div·class="where">where
19 ····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-FormatterFn%3CF%3E"·class="impl"><a·href="#impl-Sync-for-FormatterFn%3CF%3E"·class="anchor">§</a><h3·class="code-header">impl&lt;F&[·...·truncated·by·diffoscope;·len:·32,·SHA:·f819ca64aebdf71a6537b9156854646ee0aa565e135a3de02a3ce77da89fc1c3·...·]/core/marker/trait.Sync.html"·title="trait·core::marker::Sync">Sync</a>·for·<a·class="struct"·href="struct.FormatterFn.html"·title="struct·alloc::fmt::FormatterFn">FormatterFn</a>&lt;F&gt;<div·class="where">where19 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/marker/trait.Send.html"·title="trait·core::marker::Send">Send</a>,</div></h3></section><section·id="impl-Sync-for-FormatterFn%3CF%3E"·class="impl"><a·href="#impl-Sync-for-FormatterFn%3CF%3E"·class="anchor">§</a><h3·cla[·...·truncated·by·diffoscope;·len:·86,·SHA:·86751e50e24da8ba4e099c4ac0244de359044833dec2df7d70e10208077d9683·...·]/core/marker/trait.Sync.html"·title="trait·core::marker::Sync">Sync</a>·for·<a·class="struct"·href="struct.FormatterFn.html"·title="struct·alloc::fmt::FormatterFn">FormatterFn</a>&lt;F&gt;<div·class="where">where
20 ····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-FormatterFn%3CF%3E"·class="impl"><a·href="#impl-Unpin-for-FormatterFn%3CF%3E"·class="anchor">§</a><h3·class="code-header">impl&lt;[·...·truncated·by·diffoscope;·len:·34,·SHA:·01a60cf2d73ca210ffe4d878bad79bc7e5762945caa093cf329c2fba94efbed6·...·]/core/marker/trait.Unpin.html"·title="trait·core::marker::Unpin">Unpin</a>·for·<a·class="struct"·href="struct.FormatterFn.html"·title="struct·alloc::fmt::FormatterFn">FormatterFn</a>&lt;F&gt;<div·class="where">where20 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/marker/trait.Sync.html"·title="trait·core::marker::Sync">Sync</a>,</div></h3></section><section·id="impl-Unpin-for-FormatterFn%3CF%3E"·class="impl"><a·href="#impl-Unpin-for-FormatterFn%3CF%3E"·class="anchor">§</a><h3·c[·...·truncated·by·diffoscope;·len:·88,·SHA:·0d7368eb44ad6da848cb60678d9ae9081b8e45a1a517bf2e42c49724f654a389·...·]/core/marker/trait.Unpin.html"·title="trait·core::marker::Unpin">Unpin</a>·for·<a·class="struct"·href="struct.FormatterFn.html"·title="struct·alloc::fmt::FormatterFn">FormatterFn</a>&lt;F&gt;<div·class="where">where
21 ····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-FormatterFn%3CF%3E"·class="impl"><a·href="#impl-UnwindSafe-for-FormatterFn%3CF%3E"·class="anchor">§</a><h3·class="code-hea[·...·truncated·by·diffoscope;·len:·47,·SHA:·4ace24335c6dc36702e731160841ac6438bc597e7661304e48d317f768fde1fa·...·]/core/panic/unwind_safe/trait.UnwindSafe.html"·title="trait·core::panic::unwind_safe::UnwindSafe">UnwindSafe</a>·for·<a·class="struct"·href="struct.FormatterFn.html"·title="struct·alloc::fmt::FormatterFn">FormatterFn</a>&lt;F&gt;<div·class="where">where21 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/marker/trait.Unpin.html"·title="trait·core::marker::Unpin">Unpin</a>,</div></h3></section><section·id="impl-UnwindSafe-for-FormatterFn%3CF%3E"·class="impl"><a·href="#impl-UnwindSafe-for-FormatterFn%3CF%3E"·class="ancho[·...·truncated·by·diffoscope;·len:·101,·SHA:·05204546c945d430e242cfa2dd6d61dc469c330be70309bd3b84a971251668d5·...·]/core/panic/unwind_safe/trait.UnwindSafe.html"·title="trait·core::panic::unwind_safe::UnwindSafe">UnwindSafe</a>·for·<a·class="struct"·href="struct.FormatterFn.html"·title="struct·alloc::fmt::FormatterFn">FormatterFn</a>&lt;F&gt;<div·class="where">where
22 ····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:·6d5262182bd7a0e3c1e841e7c1ea25a6bf66e4385f84bcf81104b18c2f788e31·...·]/core/any/trait.Any.html"·title="trait·core::any::Any">Any</a>·for·T<div·class="where">where22 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.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:·1cd0dfbe7e18bfb0585ddedd8cfd01c39e76a55f1ef6d60c85e5ccc9f62e4863·...·]/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="src·[·...·truncated·by·diffoscope;·len:·672,·SHA:·9db8bacb767d75cc3351ca7341c388130aa05ebef490d992be5374f16eedc378·...·]/src/core/borrow.rs.html#208">source</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.78.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">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:·039b8952ccb1ab7d8f15cd519cbc10f4afc149276d0f9cfd3a53117d606059df·...·]/src/core/borrow.rs.html#208">source</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="src·r[·...·truncated·by·diffoscope;·len:·629,·SHA:·b2ffbab17ff1ef71ba4c506a3aaa515da2082da6f02a53862ce1ca2b2b25f5b4·...·]/src/core/borrow.rs.html#216">source</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.78.0/core/marker/trait.Sized.html"·title="trait·core::marker::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:·952d76e7bcf7b521fffa418ce638abf69976de0942360e56f93e419ca3389394·...·]/src/core/borrow.rs.html#216">source</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="s[·...·truncated·by·diffoscope;·len:·1227,·SHA:·befefcb8cb29dc857e1f3050572f6f470317e3350e0851c4ed6e56cc38673a92·...·]/core/convert/trait.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 ····T:·?<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/marker/trait.Sized.html"·title="trait·core::marker::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:·204bc28c8766993ff59d26bb790f1469ab686e6f172c57f35aa987a81507a7b1·...·]/core/convert/trait.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 </div></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">where26 </div></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.78.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.78.0/core/convert/trait.Into.html"·title="trait·core::convert::Into">Into</a>&lt;U&gt;·for·T<div·class="where">where
27 ····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>27 ····U:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.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:·2cf76a8ca501b2a1fef209fed846779ab1bed3b75f52c7425335e3ce04e6b272·...·]/core/convert/trait.Into.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 <p>That·is,·this·conversion·is·whatever·the·implementation·of28 <p>That·is,·this·conversion·is·whatever·the·implementation·of
29 <code><a·href="../../core/convert/trait.From.html"·title="trait·core::convert::From">From</a>&lt;T&gt;·for·U</code>·chooses·to·do.</p>29 <code><a·href="https://doc.rust-lang.org/1.78.0/core/convert/trait.From.html"·title="trait·core::convert::From">From</a>&lt;T&gt;·for·U</code>·chooses·to·do.</p>
30 </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#2543-2557">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">where30 </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#2543-2557">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
31 ····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:·bf3a3f8ffed9dcfc973405dddaf9f278663007cc35ca5daa38b602630201cbf0·...·]/core/convert/trait.TryFrom.html"·title="trait·core::convert::TryFrom">TryFrom</a>&lt;U&gt;·for·T<div·class="where">where31 ····T:·<a·class="trait"·href="trait.Display.html"·title="trait·alloc::fmt::Display">Display</a>·+·?<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/marker/trait.Sized.html"·title="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:·531ea7c1ecd9197e925ea3063788b96ffe9ed8291f75ffba5fcab4c2298b41ca·...·]/core/convert/trait.TryFrom.html"·title="trait·core::convert::TryFrom">TryFrom</a>&lt;U&gt;·for·T<div·class="where">where
32 ····U:·<a·class="trait"·href="../../core/convert/trait.Into.html"·title="trait·core::convert::Into">Into</a>&lt;T&gt;,</div></h3></section></summary><div·class="impl-items"><details·class="toggle"·open><summary><section·id="associatedtype.Error"·class="associatedtype·trait-impl"><a·hre[·...·truncated·by·diffoscope;·len:·1591,·SHA:·8537afacf1b3cf6b9fb7db778975d49d8a8e5988d420715e464ff4a79dd696c5·...·]/core/convert/trait.TryInto.html"·title="trait·core::convert::TryInto">TryInto</a>&lt;U&gt;·for·T<div·class="where">where32 ····U:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.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"·class="associ[·...·truncated·by·diffoscope;·len:·1861,·SHA:·78398046ba16de2f66a8201a11d6a2dd405fceedeabfcaa37481e77092687e6f·...·]/core/convert/trait.TryInto.html"·title="trait·core::convert::TryInto">TryInto</a>&lt;U&gt;·for·T<div·class="where">where
33 ····U:·<a·class="trait"·href="../../core/convert/trait.TryFrom.html"·title="trait·core::convert::TryFrom">TryFrom</a>&lt;T&gt;,</div></h3></section></summary><div·class="impl-items"><details·class="toggle"·open><summary><section·id="associatedtype.Error-1"·class="associatedtype·trait-i[·...·truncated·by·diffoscope;·len:·1231,·SHA:·7843e7b6cca73922417e4154886c0df66f016d274b48933c21bdb75b67479d5b·...·]/core/convert/trait.TryFrom.html#associatedtype.Error"·title="type·core::convert::TryFrom::Error">Error</a>&gt;</h4></section></summary><div·class='docblock'>Performs·the·conversion.</div></details></div></details></div></section></div></main></body></html>33 ····U:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.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-1"·cl[·...·truncated·by·diffoscope;·len:·1474,·SHA:·ca90cccb6c86c654c95a1aaec456fbbe4b115f0d5a700e7d156e823346d70894·...·]/core/convert/trait.TryFrom.html#associatedtype.Error"·title="type·core::convert::TryFrom::Error">Error</a>&gt;</h4></section></summary><div·class='docblock'>Performs·the·conversion.</div></details></div></details></div></section></div></main></body></html>
29.7 KB
./usr/share/doc/rust-web-doc/html/alloc/fmt/trait.Binary.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="`b`·formatting."><title>Binary·in·alloc::fmt·-·Rust</title><script>·if·(window.location.protocol·!==·"file:")·document.write(`<link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/SourceSerif4-Regular-46f98efaafac5295.ttf.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/FiraSans-Regular-018c141bf0843ffd.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/FiraSans-Medium-8f9a781e4970d388.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/SourceCodePro-Regular-562dcc5011b6de7d.ttf.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/SourceCodePro-Semibold-d899c5a5c4aeb14a.ttf.woff2">`)</script><link·rel="stylesheet"·href="../../static.files/normalize-76eba96aa4d2e634.css"><link·rel="stylesheet"·href="../../static.files/rustdoc-35f9e32502181f1e.css"><meta·name="rustdoc-vars"·data-root-path="../../"·data-static-root-path="../../static.files/"·data-current-crate="alloc"·data-themes=""·data-resource-suffix="1.78.0"·data-rustdoc-version="1.78.0"·data-channel="1.78.0"·data-search-js="search-42d8da7a6b9792c2.js"·data-settings-js="settings-4313503d2e1961c2.js"·><script·src="../../static.files/storage-4c98445ec4002617.js"></script><script·defer·src="sidebar-items1.78.0.js"></script><script·defer·src="../../static.files/main-12cf3b4f4f9dc36d.js"></script><noscript><link·rel="stylesheet"·href="../../static.files/noscript-04d5337699b92874.css"></noscript><link·rel="alternate·icon"·type="image/png"·href="../../static.files/favicon-16x16-8b506e7a72182f1c.png"><link·rel="alternate·icon"·type="image/png"·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.78.0</span></h2></div><h2·class="location"><a·href="#">Binary</a></h2><div·class="sidebar-elems"><section><h3><a·href="#required-methods">Required·Methods</a></h3><ul·class="block"><li><a·href="#tymethod.fmt">fmt</a></li></ul><h3><a·href="#implementors">Implementors</a></h3></section><h2><a·href="index.html">In·alloc::fmt</a></h2></div></nav><div·class="sidebar-resizer"></div>1 <!DOCTYPE·html><html·lang="en"><head><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.write(`<link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/SourceSerif4-Regular-46f98efaafac5295.ttf.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/FiraSans-Regular-018c141bf0843ffd.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/FiraSans-Medium-8f9a781e4970d388.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/SourceCodePro-Regular-562dcc5011b6de7d.ttf.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/SourceCodePro-Semibold-d899c5a5c4aeb14a.ttf.woff2">`)</script><link·rel="stylesheet"·href="../../static.files/normalize-76eba96aa4d2e634.css"><link·rel="stylesheet"·href="../../static.files/rustdoc-35f9e32502181f1e.css"><meta·name="rustdoc-vars"·data-root-path="../../"·data-static-root-path="../../static.files/"·data-current-crate="alloc"·data-themes=""·data-resource-suffix="1.78.0"·data-rustdoc-version="1.78.0"·data-channel="1.78.0"·data-search-js="search-42d8da7a6b9792c2.js"·data-settings-js="settings-4313503d2e1961c2.js"·><script·src="../../static.files/storage-4c98445ec4002617.js"></script><script·defer·src="sidebar-items1.78.0.js"></script><script·defer·src="../../static.files/main-12cf3b4f4f9dc36d.js"></script><noscript><link·rel="stylesheet"·href="../../static.files/noscript-04d5337699b92874.css"></noscript><link·rel="alternate·icon"·type="image/png"·href="../../static.files/favicon-16x16-8b506e7a72182f1c.png"><link·rel="alternate·icon"·type="image/png"·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.78.0</span></h2></div><h2·class="location"><a·href="#">Binary</a></h2><div·class="sidebar-elems"><section><h3><a·href="#required-methods">Required·Methods</a></h3><ul·class="block"><li><a·href="#tymethod.fmt">fmt</a></li></ul><h3><a·href="#implementors">Implementors</a></h3></section><h2><a·href="index.html">In·alloc::fmt</a></h2></div></nav><div·class="sidebar-resizer"></div>
2 ····<main><div·class="width-limiter"><nav·class="sub"><form·class="search-form"><span></span><div·id="sidebar-button"·tabindex="-1"><a·href="../../alloc/all.html"·title="show·sidebar"></a></div><input·class="search-input"·name="search"·aria-label="Run·search·in·the·documentation"·autocomplete="off"·spellcheck="false"·placeholder="Click·or·press·‘S’·to·search,·‘?’·for·more·options…"·type="search"><div·id="help-button"·tabindex="-1"><a·href="../../help.html"·title="help">?</a></div><div·id="settings-menu"·tabindex="-1"><a·href="../../settings.html"·title="settings"><img·width="22"·height="22"·alt="Change·settings"·src="../../static.files/wheel-7b819b6101059cd0.svg"></a></div></form></nav><section·id="main-content"·class="content"><div·class="main-heading"><h1>Trait·<a·href="../index.html">alloc</a>::<wbr><a·href="index.html">fmt</a>::<wbr><a·class="trait"·href="#">Binary</a><button·id="copy-path"·title="Copy·item·path·to·clipboard"><img·src="../../static.files/clipboard-7571035ce49a181d.svg"·width="19"·height="18"·alt="Copy·item·path"></button></h1><span·class="out-of-band"><span·class="since"·title="Stable·since·Rust·version·1.0.0">1.0.0</span>···<a·class="src"·href="../../src/core/fmt/mod.rs.html#838">source</a>···<button·id="toggle-all-docs"·title="collapse·all·docs">[<span>&#x2212;</span>]</button></span></div><pre·class="rust·item-decl"><code>pub·trait·Binary·{2 ····<main><div·class="width-limiter"><nav·class="sub"><form·class="search-form"><span></span><div·id="sidebar-button"·tabindex="-1"><a·href="../../alloc/all.html"·title="show·sidebar"></a></div><input·class="search-input"·name="search"·aria-label="Run·search·in·the·documentation"·autocomplete="off"·spellcheck="false"·placeholder="Click·or·press·‘S’·to·search,·‘?’·for·more·options…"·type="search"><div·id="help-button"·tabindex="-1"><a·href="../../help.html"·title="help">?</a></div><div·id="settings-menu"·tabindex="-1"><a·href="../../settings.html"·title="settings"><img·width="22"·height="22"·alt="Change·settings"·src="../../static.files/wheel-7b819b6101059cd0.svg"></a></div></form></nav><section·id="main-content"·class="content"><div·class="main-heading"><h1>Trait·<a·href="../index.html">alloc</a>::<wbr><a·href="index.html">fmt</a>::<wbr><a·class="trait"·href="#">Binary</a><button·id="copy-path"·title="Copy·item·path·to·clipboard"><img·src="../../static.files/clipboard-7571035ce49a181d.svg"·width="19"·height="18"·alt="Copy·item·path"></button></h1><span·class="out-of-band"><span·class="since"·title="Stable·since·Rust·version·1.0.0">1.0.0</span>···<a·class="src"·href="https://doc.rust-lang.org/1.78.0/src/core/fmt/mod.rs.html#838">source</a>···<button·id="toggle-all-docs"·title="collapse·all·docs">[<span>&#x2212;</span>]</button></span></div><pre·class="rust·item-decl"><code>pub·trait·Binary·{
3 ····//·Required·method3 ····//·Required·method
4 ····fn·<a·href="#tymethod.fmt"·class="fn">fmt</a>(&amp;self,·f:·&amp;mut·<a·class="struct"·href="struct.Formatter.html"·title="struct·alloc::fmt::Formatter">Formatter</a>&lt;'_&gt;)·-&gt;·<a·class="enum"·href="../../core/result/enum.Result.html"·title="enum·core::result::Result">Result</a>&lt;<a·class="primitive"·href="../../core/primitive.unit.html">()</a>,·<a·class="struct"·href="struct.Error.html"·title="struct·alloc::fmt::Error">Error</a>&gt;;4 ····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.78.0/core/result/enum.Result.html"·title="enum·core::result::Result">Result</a>&lt;<a·class="primitive"·href="https://doc.rust-lang.org/1.78.0/core/primitive.unit.html">()</a>,·<a·class="struct"·href="struct.Error.html"·title="struct·alloc::fmt::Error">Error</a>&gt;;
5 }</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 }</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>
6 <p>The·<code>Binary</code>·trait·should·format·its·output·as·a·number·in·binary.</p>6 <p>The·<code>Binary</code>·trait·should·format·its·output·as·a·number·in·binary.</p>
7 <p>For·primitive·signed·integers·(<a·href="../../core/primitive.i8.html"·title="primitive·i8"><code>i8</code></a>·to·<a·href="../../core/primitive.i128.html"·title="primitive·i128"><code>i128</code></a>,·and·<a·href="../../core/primitive.isize.html"·title="primitive·isize"><code>isize</code></a>),7 <p>For·primitive·signed·integers·(<a·href="https://doc.rust-lang.org/1.78.0/core/primitive.i8.html"·title="primitive·i8"><code>i8</code></a>·to·<a·href="https://doc.rust-lang.org/1.78.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:·c83ba7181764d32007e6c3129f7fed30810cb2bcb659c1d9f0e06b8533ea22d1·...·]/core/primitive.isize.html"·title="primitive·isize"><code>isize</code></a>),
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>0b</code>·in·front·of·the·output.</p>9 <p>The·alternate·flag,·<code>#</code>,·adds·a·<code>0b</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>
11 <h2·id="examples"><a·class="doc-anchor"·href="#examples">§</a>Examples</h2>11 <h2·id="examples"><a·class="doc-anchor"·href="#examples">§</a>Examples</h2>
12 <p>Basic·usage·with·<a·href="../../core/primitive.i32.html"·title="primitive·i32"><code>i32</code></a>:</p>12 <p>Basic·usage·with·<a·href="https://doc.rust-lang.org/1.78.0/core/primitive.i32.html"·title="primitive·i32"><code>i32</code></a>:</p>
  
13 <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·binary13 <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
  
14 </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><span·class="macro">assert_eq!</span>(<span·class="macro">format!</span>(<span·class="string">"{x:b}"</span>),·<span·class="string">"101010"</span>);
15 <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">"{x:#b}"</span>),·<span·class="string">"0b101010"</span>);
  
16 <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"·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">Run</a></div>16 <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"·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">Run</a></div>
Offset 37, 14 lines modifiedOffset 37, 14 lines modified
  
37 <span·class="macro">assert_eq!</span>(37 <span·class="macro">assert_eq!</span>(
38 ····<span·class="comment">//·Note·that·the·`0b`·prefix·added·by·`#`·is·included·in·the·total·width,·so·we38 ····<span·class="comment">//·Note·that·the·`0b`·prefix·added·by·`#`·is·included·in·the·total·width,·so·we
39 ····//·need·to·add·two·to·correctly·display·all·32·bits.39 ····//·need·to·add·two·to·correctly·display·all·32·bits.
40 ····</span><span·class="macro">format!</span>(<span·class="string">"l·as·binary·is:·{l:#034b}"</span>),40 ····</span><span·class="macro">format!</span>(<span·class="string">"l·as·binary·is:·{l:#034b}"</span>),
41 ····<span·class="string">"l·as·binary·is:·0b00000000000000000000000001101011"41 ····<span·class="string">"l·as·binary·is:·0b00000000000000000000000001101011"
42 </span>);</code></pre><a·class="test-arrow"·target="_blank"·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">Run</a></div>42 </span>);</code></pre><a·class="test-arrow"·target="_blank"·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">Run</a></div>
43 </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"><a·class="src·rightside"·href="../../src/core/fmt/mod.rs.html#841">source</a><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;)·-&gt;·<a[·...·truncated·by·diffoscope;·len:·136,·SHA:·731bf6754b00624b148e6401ba10758e486bdaf35f5f0a11d686d315c1aa171d·...·]/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 </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"><a·class="src·rightside"·href="https://doc.rust-lang.org/1.78.0/src/core/fmt/mod.rs.html#841">source</a><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">Format[·...·truncated·by·diffoscope;·len:·217,·SHA:·0628040997169d46c9badfd239178940d9e9e9029683558651e0e87aae3fcafb·...·]/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>
44 </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"><a·class="src·rightside"·href="../../src/core/fmt/num.rs.html#179">source</a><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="../../core/pri[·...·truncated·by·diffoscope;·len:·4509,·SHA:·737510e3bb6d5e1d0486c3f40a4efae4308f2a3a19295661506a653a50770438·...·]/core/primitive.reference.html">&amp;T</a><div·class="where">where44 </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"><a·class="src·rightside"·href="https://doc.rust-lang.org/1.78.0/src/core/fmt/num.rs.html#179">source</a><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="prim[·...·truncated·by·diffoscope;·len:·5211,·SHA:·c664daf104e1af23fa946f9fa6b9a8580cf1291ecf299f0d55b0e95035e53c8c·...·]/core/primitive.reference.html">&amp;T</a><div·class="where">where
45 ····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"><a·class="src·rightside"·href="../../src/core/fmt/mod.rs.html#2343">source</a><a·href="#impl-Binary-for[·...·truncated·by·diffoscope;·len:·191,·SHA:·47ccf29939c763b68cd580834cabc6802888c16cf34f9cd6ac93637e53dfea36·...·]/core/primitive.reference.html">&amp;mut·T</a><div·class="where">where45 ····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.78.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"><a·class="src·rightside"·href="https://doc.rust-lang.org/1.78.0/src/core/fmt[·...·truncated·by·diffoscope;·len:·272,·SHA:·9eee26ce9606a7669f0546651e9af580625ba0f56698480cd0f4274c56988f1d·...·]/core/primitive.reference.html">&amp;mut·T</a><div·class="where">where
46 ····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:·034d61169cd65b9b28814a5eb82dccd312e080b3daaa322bc1afe73285e1211c·...·]/core/num/nonzero/struct.NonZero.html"·title="struct·core::num::nonzero::NonZero">NonZero</a>&lt;T&gt;<div·class="where">where46 ····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.78.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:·a88a063727b23480888e221c52ffcafde0723a9c706c2161432b5052f1459944·...·]/core/num/nonzero/struct.NonZero.html"·title="struct·core::num::nonzero::NonZero">NonZero</a>&lt;T&gt;<div·class="where">where
47 ····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">where47 ····T:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.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:·a65a4dcf2966f2f114f339b40cdebd65e38c3ac7af7404afba300392dda55cc8·...·]/core/num/saturating/struct.Saturating.html"·title="struct·core::num::saturating::Saturating">Saturating</a>&lt;T&gt;<div·class="where">where
48 ····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">where48 ····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.78.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:·d92529e4cb94d5b18342562a851d5cee8792b2af0d8cd2be1b8bdaf0e4a90cc4·...·]/core/num/wrapping/struct.Wrapping.html"·title="struct·core::num::wrapping::Wrapping">Wrapping</a>&lt;T&gt;<div·class="where">where
49 ····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>49 ····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>
470 KB
./usr/share/doc/rust-web-doc/html/alloc/fmt/trait.Debug.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="`?`·formatting."><title>Debug·in·alloc::fmt·-·Rust</title><script>·if·(window.location.protocol·!==·"file:")·document.write(`<link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/SourceSerif4-Regular-46f98efaafac5295.ttf.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/FiraSans-Regular-018c141bf0843ffd.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/FiraSans-Medium-8f9a781e4970d388.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/SourceCodePro-Regular-562dcc5011b6de7d.ttf.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/SourceCodePro-Semibold-d899c5a5c4aeb14a.ttf.woff2">`)</script><link·rel="stylesheet"·href="../../static.files/normalize-76eba96aa4d2e634.css"><link·rel="stylesheet"·href="../../static.files/rustdoc-35f9e32502181f1e.css"><meta·name="rustdoc-vars"·data-root-path="../../"·data-static-root-path="../../static.files/"·data-current-crate="alloc"·data-themes=""·data-resource-suffix="1.78.0"·data-rustdoc-version="1.78.0"·data-channel="1.78.0"·data-search-js="search-42d8da7a6b9792c2.js"·data-settings-js="settings-4313503d2e1961c2.js"·><script·src="../../static.files/storage-4c98445ec4002617.js"></script><script·defer·src="sidebar-items1.78.0.js"></script><script·defer·src="../../static.files/main-12cf3b4f4f9dc36d.js"></script><noscript><link·rel="stylesheet"·href="../../static.files/noscript-04d5337699b92874.css"></noscript><link·rel="alternate·icon"·type="image/png"·href="../../static.files/favicon-16x16-8b506e7a72182f1c.png"><link·rel="alternate·icon"·type="image/png"·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.78.0</span></h2></div><h2·class="location"><a·href="#">Debug</a></h2><div·class="sidebar-elems"><section><h3><a·href="#required-methods">Required·Methods</a></h3><ul·class="block"><li><a·href="#tymethod.fmt">fmt</a></li></ul><h3><a·href="#implementors">Implementors</a></h3></section><h2><a·href="index.html">In·alloc::fmt</a></h2></div></nav><div·class="sidebar-resizer"></div>1 <!DOCTYPE·html><html·lang="en"><head><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.write(`<link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/SourceSerif4-Regular-46f98efaafac5295.ttf.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/FiraSans-Regular-018c141bf0843ffd.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/FiraSans-Medium-8f9a781e4970d388.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/SourceCodePro-Regular-562dcc5011b6de7d.ttf.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/SourceCodePro-Semibold-d899c5a5c4aeb14a.ttf.woff2">`)</script><link·rel="stylesheet"·href="../../static.files/normalize-76eba96aa4d2e634.css"><link·rel="stylesheet"·href="../../static.files/rustdoc-35f9e32502181f1e.css"><meta·name="rustdoc-vars"·data-root-path="../../"·data-static-root-path="../../static.files/"·data-current-crate="alloc"·data-themes=""·data-resource-suffix="1.78.0"·data-rustdoc-version="1.78.0"·data-channel="1.78.0"·data-search-js="search-42d8da7a6b9792c2.js"·data-settings-js="settings-4313503d2e1961c2.js"·><script·src="../../static.files/storage-4c98445ec4002617.js"></script><script·defer·src="sidebar-items1.78.0.js"></script><script·defer·src="../../static.files/main-12cf3b4f4f9dc36d.js"></script><noscript><link·rel="stylesheet"·href="../../static.files/noscript-04d5337699b92874.css"></noscript><link·rel="alternate·icon"·type="image/png"·href="../../static.files/favicon-16x16-8b506e7a72182f1c.png"><link·rel="alternate·icon"·type="image/png"·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.78.0</span></h2></div><h2·class="location"><a·href="#">Debug</a></h2><div·class="sidebar-elems"><section><h3><a·href="#required-methods">Required·Methods</a></h3><ul·class="block"><li><a·href="#tymethod.fmt">fmt</a></li></ul><h3><a·href="#implementors">Implementors</a></h3></section><h2><a·href="index.html">In·alloc::fmt</a></h2></div></nav><div·class="sidebar-resizer"></div>
2 ····<main><div·class="width-limiter"><nav·class="sub"><form·class="search-form"><span></span><div·id="sidebar-button"·tabindex="-1"><a·href="../../alloc/all.html"·title="show·sidebar"></a></div><input·class="search-input"·name="search"·aria-label="Run·search·in·the·documentation"·autocomplete="off"·spellcheck="false"·placeholder="Click·or·press·‘S’·to·search,·‘?’·for·more·options…"·type="search"><div·id="help-button"·tabindex="-1"><a·href="../../help.html"·title="help">?</a></div><div·id="settings-menu"·tabindex="-1"><a·href="../../settings.html"·title="settings"><img·width="22"·height="22"·alt="Change·settings"·src="../../static.files/wheel-7b819b6101059cd0.svg"></a></div></form></nav><section·id="main-content"·class="content"><div·class="main-heading"><h1>Trait·<a·href="../index.html">alloc</a>::<wbr><a·href="index.html">fmt</a>::<wbr><a·class="trait"·href="#">Debug</a><button·id="copy-path"·title="Copy·item·path·to·clipboard"><img·src="../../static.files/clipboard-7571035ce49a181d.svg"·width="19"·height="18"·alt="Copy·item·path"></button></h1><span·class="out-of-band"><span·class="since"·title="Stable·since·Rust·version·1.0.0">1.0.0</span>···<a·class="src"·href="../../src/core/fmt/mod.rs.html#588">source</a>···<button·id="toggle-all-docs"·title="collapse·all·docs">[<span>&#x2212;</span>]</button></span></div><pre·class="rust·item-decl"><code>pub·trait·Debug·{2 ····<main><div·class="width-limiter"><nav·class="sub"><form·class="search-form"><span></span><div·id="sidebar-button"·tabindex="-1"><a·href="../../alloc/all.html"·title="show·sidebar"></a></div><input·class="search-input"·name="search"·aria-label="Run·search·in·the·documentation"·autocomplete="off"·spellcheck="false"·placeholder="Click·or·press·‘S’·to·search,·‘?’·for·more·options…"·type="search"><div·id="help-button"·tabindex="-1"><a·href="../../help.html"·title="help">?</a></div><div·id="settings-menu"·tabindex="-1"><a·href="../../settings.html"·title="settings"><img·width="22"·height="22"·alt="Change·settings"·src="../../static.files/wheel-7b819b6101059cd0.svg"></a></div></form></nav><section·id="main-content"·class="content"><div·class="main-heading"><h1>Trait·<a·href="../index.html">alloc</a>::<wbr><a·href="index.html">fmt</a>::<wbr><a·class="trait"·href="#">Debug</a><button·id="copy-path"·title="Copy·item·path·to·clipboard"><img·src="../../static.files/clipboard-7571035ce49a181d.svg"·width="19"·height="18"·alt="Copy·item·path"></button></h1><span·class="out-of-band"><span·class="since"·title="Stable·since·Rust·version·1.0.0">1.0.0</span>···<a·class="src"·href="https://doc.rust-lang.org/1.78.0/src/core/fmt/mod.rs.html#588">source</a>···<button·id="toggle-all-docs"·title="collapse·all·docs">[<span>&#x2212;</span>]</button></span></div><pre·class="rust·item-decl"><code>pub·trait·Debug·{
3 ····//·Required·method3 ····//·Required·method
4 ····fn·<a·href="#tymethod.fmt"·class="fn">fmt</a>(&amp;self,·f:·&amp;mut·<a·class="struct"·href="struct.Formatter.html"·title="struct·alloc::fmt::Formatter">Formatter</a>&lt;'_&gt;)·-&gt;·<a·class="enum"·href="../../core/result/enum.Result.html"·title="enum·core::result::Result">Result</a>&lt;<a·class="primitive"·href="../../core/primitive.unit.html">()</a>,·<a·class="struct"·href="struct.Error.html"·title="struct·alloc::fmt::Error">Error</a>&gt;;4 ····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.78.0/core/result/enum.Result.html"·title="enum·core::result::Result">Result</a>&lt;<a·class="primitive"·href="https://doc.rust-lang.org/1.78.0/core/primitive.unit.html">()</a>,·<a·class="struct"·href="struct.Error.html"·title="struct·alloc::fmt::Error">Error</a>&gt;;
5 }</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 }</code></pre><details·class="toggle·top-doc"·open><summary·class="hideme"><span>Expand·description</span></summary><div·class="docblock"><p><code>?</code>·formatting.</p>
6 <p><code>Debug</code>·should·format·the·output·in·a·programmer-facing,·debugging·context.</p>6 <p><code>Debug</code>·should·format·the·output·in·a·programmer-facing,·debugging·context.</p>
7 <p>Generally·speaking,·you·should·just·<code>derive</code>·a·<code>Debug</code>·implementation.</p>7 <p>Generally·speaking,·you·should·just·<code>derive</code>·a·<code>Debug</code>·implementation.</p>
8 <p>When·used·with·the·alternate·format·specifier·<code>#?</code>,·the·output·is·pretty-printed.</p>8 <p>When·used·with·the·alternate·format·specifier·<code>#?</code>,·the·output·is·pretty-printed.</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 <p>This·trait·can·be·used·with·<code>#[derive]</code>·if·all·fields·implement·<code>Debug</code>.·When10 <p>This·trait·can·be·used·with·<code>#[derive]</code>·if·all·fields·implement·<code>Debug</code>.·When
11 <code>derive</code>d·for·structs,·it·will·use·the·name·of·the·<code>struct</code>,·then·<code>{</code>,·then·a11 <code>derive</code>d·for·structs,·it·will·use·the·name·of·the·<code>struct</code>,·then·<code>{</code>,·then·a
Offset 75, 15 lines modifiedOffset 75, 15 lines modified
75 <span·class="kw">let·</span>origin·=·Point·{·x:·<span·class="number">0</span>,·y:·<span·class="number">0·</span>};75 <span·class="kw">let·</span>origin·=·Point·{·x:·<span·class="number">0</span>,·y:·<span·class="number">0·</span>};
  
76 <span·class="macro">assert_eq!</span>(<span·class="macro">format!</span>(<span·class="string">"The·origin·is:·{origin:#?}"</span>),76 <span·class="macro">assert_eq!</span>(<span·class="macro">format!</span>(<span·class="string">"The·origin·is:·{origin:#?}"</span>),
77 <span·class="string">"The·origin·is:·Point·{77 <span·class="string">"The·origin·is:·Point·{
78 ····x:·0,78 ····x:·0,
79 ····y:·0,79 ····y:·0,
80 }"</span>);</code></pre><a·class="test-arrow"·target="_blank"·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++++assert_eq!(format!(%22The+origin+is:+%7Borigin:%23?%7D%22),%0A++++%22The+origin+is:+Point+%7B%0A++++++++x:+0,%0A++++++++y:+0,%0A++++%7D%22);%0A%7D&amp;edition=2021">Run</a></div>80 }"</span>);</code></pre><a·class="test-arrow"·target="_blank"·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++++assert_eq!(format!(%22The+origin+is:+%7Borigin:%23?%7D%22),%0A++++%22The+origin+is:+Point+%7B%0A++++++++x:+0,%0A++++++++y:+0,%0A++++%7D%22);%0A%7D&amp;edition=2021">Run</a></div>
81 </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"><a·class="src·rightside"·href="../../src/core/fmt/mod.rs.html#619">source</a><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;)·-&gt;·<a[·...·truncated·by·diffoscope;·len:·136,·SHA:·731bf6754b00624b148e6401ba10758e486bdaf35f5f0a11d686d315c1aa171d·...·]/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>81 </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"><a·class="src·rightside"·href="https://doc.rust-lang.org/1.78.0/src/core/fmt/mod.rs.html#619">source</a><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">Format[·...·truncated·by·diffoscope;·len:·217,·SHA:·0628040997169d46c9badfd239178940d9e9e9029683558651e0e87aae3fcafb·...·]/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>
82 <h5·id="examples-1"><a·class="doc-anchor"·href="#examples-1">§</a>Examples</h5>82 <h5·id="examples-1"><a·class="doc-anchor"·href="#examples-1">§</a>Examples</h5>
83 <div·class="example-wrap"><pre·class="rust·rust-example-rendered"><code><span·class="kw">use·</span>std::fmt;83 <div·class="example-wrap"><pre·class="rust·rust-example-rendered"><code><span·class="kw">use·</span>std::fmt;
  
84 <span·class="kw">struct·</span>Position·{84 <span·class="kw">struct·</span>Position·{
85 ····longitude:·f32,85 ····longitude:·f32,
86 ····latitude:·f32,86 ····latitude:·f32,
87 }87 }
Offset 100, 178 lines modifiedOffset 100, 178 lines modified
100 <span·class="kw">let·</span>position·=·Position·{·longitude:·<span·class="number">1.987</span>,·latitude:·<span·class="number">2.983·</span>};100 <span·class="kw">let·</span>position·=·Position·{·longitude:·<span·class="number">1.987</span>,·latitude:·<span·class="number">2.983·</span>};
101 <span·class="macro">assert_eq!</span>(<span·class="macro">format!</span>(<span·class="string">"{position:?}"</span>),·<span·class="string">"(1.987,·2.983)"</span>);101 <span·class="macro">assert_eq!</span>(<span·class="macro">format!</span>(<span·class="string">"{position:?}"</span>),·<span·class="string">"(1.987,·2.983)"</span>);
  
102 <span·class="macro">assert_eq!</span>(<span·class="macro">format!</span>(<span·class="string">"{position:#?}"</span>),·<span·class="string">"(102 <span·class="macro">assert_eq!</span>(<span·class="macro">format!</span>(<span·class="string">"{position:#?}"</span>),·<span·class="string">"(
103 ····1.987,103 ····1.987,
104 ····2.983,104 ····2.983,
105 )"</span>);</code></pre><a·class="test-arrow"·target="_blank"·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">Run</a></div>105 )"</span>);</code></pre><a·class="test-arrow"·target="_blank"·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">Run</a></div>
106 </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#584">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:·69843,·SHA:·18040cf37b37e6683b0dcb39af7a713edbf35937187c1f8796eb71f308054ebc·...·]/core/ffi/struct.VaList.html"·title="struct·core::ffi::VaList">VaList</a>&lt;'a,·'f&gt;<div·class="where">where106 </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#80">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:·76242,·SHA:·e29776cba117f9b0423f56769d539216494544be5ae50bef2af3def2afc1e87e·...·]/core/ffi/struct.VaList.html"·title="struct·core::ffi::VaList">VaList</a>&lt;'a,·'f&gt;<div·class="where">where
107 ····'f:·'a,</div></h3></section><section·id="impl-Debug-for-Iter%3C'a,+A%3E"·class="impl"><a·class="src·rightside"·href="../../src/core/option.rs.html#2272">source</a><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::<a·cl[·...·truncated·by·diffoscope;·len:·24,·SHA:·a484d240ae7654847a266b06e2b0fb5e758035e3b44a1c3e243655765c98e723·...·]/core/option/struct.Iter.html"·title="struct·core::option::Iter">Iter</a>&lt;'a,·A&gt;<div·class="where">where107 ····'f:·'a,</div></h3></section><section·id="impl-Debug-for-Iter%3C'a,+A%3E"·class="impl"><a·class="src·rightside"·href="https://doc.rust-lang.org/1.78.0/src/core/option.rs.html#2272">source</a><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<[·...·truncated·by·diffoscope;·len:·78,·SHA:·701440daf6d2de6e7313f7278e4717c40e8e38b5d7e33001bb0d4df7e7cce5c8·...·]/core/option/struct.Iter.html"·title="struct·core::option::Iter">Iter</a>&lt;'a,·A&gt;<div·class="where">where
108 ····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"><a·class="src·rightside"·href="../../src/core/option.rs.html#2322">source</a><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::option::<a[·...·truncated·by·diffoscope;·len:·27,·SHA:·1463a98b6dfbafe89b3cea16955fc8363cc824de0c5516823d62738300d86245·...·]/core/option/struct.IterMut.html"·title="struct·core::option::IterMut">IterMut</a>&lt;'a,·A&gt;<div·class="where">where108 ····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"><a·class="src·rightside"·href="https://doc.rust-lang.org/1.78.0/src/core/option.rs.html#2322">source</a><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">Deb[·...·truncated·by·diffoscope;·len:·81,·SHA:·387d33bfc0976b633577bb39c1a28b2c92adceaff26709bab151293ca27e75c9·...·]/core/option/struct.IterMut.html"·title="struct·core::option::IterMut">IterMut</a>&lt;'a,·A&gt;<div·class="where">where
109 ····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">where109 ····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.78.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:·38dccd7e450c3d894d74bcc28ccb233b76ed0a0c16892a1f40150dc919d21ba5·...·]/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
110 ····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">where110 ····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.78.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
111 ····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#1073-1089">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">where111 ····I::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.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:·9819975f0e1b1d2e59fad703b29a7369c9cfa46cf4233ff1424b407aa393cb43·...·]/src/core/str/iter.rs.html#1073-1089">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
112 ····P:·<a·class="trait"·href="../str/pattern/trait.Pattern.html"·title="trait·alloc::str::pattern::Pattern">Pattern</a>&lt;'a&gt;,112 ····P:·<a·class="trait"·href="../str/pattern/trait.Pattern.html"·title="trait·alloc::str::pattern::Pattern">Pattern</a>&lt;'a&gt;,
113 ····&lt;P·as·<a·class="trait"·href="../str/pattern/trait.Pattern.html"·title="trait·alloc::str::pattern::Pattern">Pattern</a>&lt;'a&gt;&gt;::<a·class="associatedtype"·href="../str/pattern/trait.Pattern.html#associatedtype.Searcher"·title="type·alloc::str::pattern::Pattern::Searcher">Searcher</a>:·<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#1130-1146">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">where113 ····&lt;P·as·<a·class="trait"·href="../str/pattern/trait.Pattern.html"·title="trait·alloc::str::pattern::Pattern">Pattern</a>&lt;'a&gt;&gt;::<a·class="associatedtype"·href="../str/pattern/trait.Pattern.html#associatedtype.Searcher"·title="type·alloc::str::pattern::Pattern::Searcher">Searcher</a>:·<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.78.0/src/core/str/iter.rs.html#1130-1146">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
114 ····P:·<a·class="trait"·href="../str/pattern/trait.Pattern.html"·title="trait·alloc::str::pattern::Pattern">Pattern</a>&lt;'a&gt;,114 ····P:·<a·class="trait"·href="../str/pattern/trait.Pattern.html"·title="trait·alloc::str::pattern::Pattern">Pattern</a>&lt;'a&gt;,
115 ····&lt;P·as·<a·class="trait"·href="../str/pattern/trait.Pattern.html"·title="trait·alloc::str::pattern::Pattern">Pattern</a>&lt;'a&gt;&gt;::<a·class="associatedtype"·href="../str/pattern/trait.Pattern.html#associatedtype.Searcher"·title="type·alloc::str::pattern::Pattern::Searcher">Searcher</a>:·<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#1073-1089">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">where115 ····&lt;P·as·<a·class="trait"·href="../str/pattern/trait.Pattern.html"·title="trait·alloc::str::pattern::Pattern">Pattern</a>&lt;'a&gt;&gt;::<a·class="associatedtype"·href="../str/pattern/trait.Pattern.html#associatedtype.Searcher"·title="type·alloc::str::pattern::Pattern::Searcher">Searcher</a>:·<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.78.0/src/core/str/iter.rs.html#1073-1089">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
116 ····P:·<a·class="trait"·href="../str/pattern/trait.Pattern.html"·title="trait·alloc::str::pattern::Pattern">Pattern</a>&lt;'a&gt;,116 ····P:·<a·class="trait"·href="../str/pattern/trait.Pattern.html"·title="trait·alloc::str::pattern::Pattern">Pattern</a>&lt;'a&gt;,
117 ····&lt;P·as·<a·class="trait"·href="../str/pattern/trait.Pattern.html"·title="trait·alloc::str::pattern::Pattern">Pattern</a>&lt;'a&gt;&gt;::<a·class="associatedtype"·href="../str/pattern/trait.Pattern.html#associatedtype.Searcher"·title="type·alloc::str::pattern::Pattern::Searcher">Searcher</a>:·<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#1130-1146">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">where117 ····&lt;P·as·<a·class="trait"·href="../str/pattern/trait.Pattern.html"·title="trait·alloc::str::pattern::Pattern">Pattern</a>&lt;'a&gt;&gt;::<a·class="associatedtype"·href="../str/pattern/trait.Pattern.html#associatedtype.Searcher"·title="type·alloc::str::pattern::Pattern::Searcher">Searcher</a>:·<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.78.0/src/core/str/iter.rs.html#1130-1146">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
118 ····P:·<a·class="trait"·href="../str/pattern/trait.Pattern.html"·title="trait·alloc::str::pattern::Pattern">Pattern</a>&lt;'a&gt;,118 ····P:·<a·class="trait"·href="../str/pattern/trait.Pattern.html"·title="trait·alloc::str::pattern::Pattern">Pattern</a>&lt;'a&gt;,
119 ····&lt;P·as·<a·class="trait"·href="../str/pattern/trait.Pattern.html"·title="trait·alloc::str::pattern::Pattern">Pattern</a>&lt;'a&gt;&gt;::<a·class="associatedtype"·href="../str/pattern/trait.Pattern.html#associatedtype.Searcher"·title="type·alloc::str::pattern::Pattern::Searcher">Searcher</a>:·<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"><a·class="src·rightside"·href="../../src/core/str/iter.rs.html#781-797">source</a><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">where119 ····&lt;P·as·<a·class="trait"·href="../str/pattern/trait.Pattern.html"·title="trait·alloc::str::pattern::Pattern">Pattern</a>&lt;'a&gt;&gt;::<a·class="associatedtype"·href="../str/pattern/trait.Pattern.html#associatedtype.Searcher"·title="type·alloc::str::pattern::Pattern::Searcher">Searcher</a>:·<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"><a·class="src·rightside"·href="https://doc.rust-lang.org/1.78.0/src/core/str/iter.rs.html#781-797">source</a><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
120 ····P:·<a·class="trait"·href="../str/pattern/trait.Pattern.html"·title="trait·alloc::str::pattern::Pattern">Pattern</a>&lt;'a&gt;,120 ····P:·<a·class="trait"·href="../str/pattern/trait.Pattern.html"·title="trait·alloc::str::pattern::Pattern">Pattern</a>&lt;'a&gt;,
121 ····&lt;P·as·<a·class="trait"·href="../str/pattern/trait.Pattern.html"·title="trait·alloc::str::pattern::Pattern">Pattern</a>&lt;'a&gt;&gt;::<a·class="associatedtype"·href="../str/pattern/trait.Pattern.html#associatedtype.Searcher"·title="type·alloc::str::pattern::Pattern::Searcher">Searcher</a>:·<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"><a·class="src·rightside"·href="../../src/core/str/iter.rs.html#972-988">source</a><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">where121 ····&lt;P·as·<a·class="trait"·href="../str/pattern/trait.Pattern.html"·title="trait·alloc::str::pattern::Pattern">Pattern</a>&lt;'a&gt;&gt;::<a·class="associatedtype"·href="../str/pattern/trait.Pattern.html#associatedtype.Searcher"·title="type·alloc::str::pattern::Pattern::Searcher">Searcher</a>:·<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"><a·class="src·rightside"·href="https://doc.rust-lang.org/1.78.0/src/core/str/iter.rs.html#972-988">source</a><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
122 ····P:·<a·class="trait"·href="../str/pattern/trait.Pattern.html"·title="trait·alloc::str::pattern::Pattern">Pattern</a>&lt;'a&gt;,122 ····P:·<a·class="trait"·href="../str/pattern/trait.Pattern.html"·title="trait·alloc::str::pattern::Pattern">Pattern</a>&lt;'a&gt;,
123 ····&lt;P·as·<a·class="trait"·href="../str/pattern/trait.Pattern.html"·title="trait·alloc::str::pattern::Pattern">Pattern</a>&lt;'a&gt;&gt;::<a·class="associatedtype"·href="../str/pattern/trait.Pattern.html#associatedtype.Searcher"·title="type·alloc::str::pattern::Pattern::Searcher">Searcher</a>:·<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"><a·class="src·rightside"·href="../../src/core/str/iter.rs.html#845-861">source</a><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">where123 ····&lt;P·as·<a·class="trait"·href="../str/pattern/trait.Pattern.html"·title="trait·alloc::str::pattern::Pattern">Pattern</a>&lt;'a&gt;&gt;::<a·class="associatedtype"·href="../str/pattern/trait.Pattern.html#associatedtype.Searcher"·title="type·alloc::str::pattern::Pattern::Searcher">Searcher</a>:·<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"><a·class="src·rightside"·href="https://doc.rust-lang.org/1.78.0/src/core/str/iter.rs.html#845-861">source</a><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
124 ····P:·<a·class="trait"·href="../str/pattern/trait.Pattern.html"·title="trait·alloc::str::pattern::Pattern">Pattern</a>&lt;'a&gt;,124 ····P:·<a·class="trait"·href="../str/pattern/trait.Pattern.html"·title="trait·alloc::str::pattern::Pattern">Pattern</a>&lt;'a&gt;,
125 ····&lt;P·as·<a·class="trait"·href="../str/pattern/trait.Pattern.html"·title="trait·alloc::str::pattern::Pattern">Pattern</a>&lt;'a&gt;&gt;::<a·class="associatedtype"·href="../str/pattern/trait.Pattern.html#associatedtype.Searcher"·title="type·alloc::str::pattern::Pattern::Searcher">Searcher</a>:·<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"><a·class="src·rightside"·href="../../src/core/str/iter.rs.html#781-797">source</a><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">where125 ····&lt;P·as·<a·class="trait"·href="../str/pattern/trait.Pattern.html"·title="trait·alloc::str::pattern::Pattern">Pattern</a>&lt;'a&gt;&gt;::<a·class="associatedtype"·href="../str/pattern/trait.Pattern.html#associatedtype.Searcher"·title="type·alloc::str::pattern::Pattern::Searcher">Searcher</a>:·<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"><a·class="src·rightside"·href="https://doc.rust-lang.org/1.78.0/src/core/str/iter.rs.html#781-797">source</a><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
126 ····P:·<a·class="trait"·href="../str/pattern/trait.Pattern.html"·title="trait·alloc::str::pattern::Pattern">Pattern</a>&lt;'a&gt;,126 ····P:·<a·class="trait"·href="../str/pattern/trait.Pattern.html"·title="trait·alloc::str::pattern::Pattern">Pattern</a>&lt;'a&gt;,
127 ····&lt;P·as·<a·class="trait"·href="../str/pattern/trait.Pattern.html"·title="trait·alloc::str::pattern::Pattern">Pattern</a>&lt;'a&gt;&gt;::<a·class="associatedtype"·href="../str/pattern/trait.Pattern.html#associatedtype.Searcher"·title="type·alloc::str::pattern::Pattern::Searcher">Searcher</a>:·<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#1423">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">where127 ····&lt;P·as·<a·class="trait"·href="../str/pattern/trait.Pattern.html"·title="trait·alloc::str::pattern::Pattern">Pattern</a>&lt;'a&gt;&gt;::<a·class="associatedtype"·href="../str/pattern/trait.Pattern.html#associatedtype.Searcher"·title="type·alloc::str::pattern::Pattern::Searcher">Searcher</a>:·<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.78.0/src/core/str/iter.rs.html#1423">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
128 ····P:·<a·class="trait"·href="../str/pattern/trait.Pattern.html"·title="trait·alloc::str::pattern::Pattern">Pattern</a>&lt;'a&gt;,128 ····P:·<a·class="trait"·href="../str/pattern/trait.Pattern.html"·title="trait·alloc::str::pattern::Pattern">Pattern</a>&lt;'a&gt;,
129 ····&lt;P·as·<a·class="trait"·href="../str/pattern/trait.Pattern.html"·title="trait·alloc::str::pattern::Pattern">Pattern</a>&lt;'a&gt;&gt;::<a·class="associatedtype"·href="../str/pattern/trait.Pattern.html#associatedtype.Searcher"·title="type·alloc::str::pattern::Pattern::Searcher">Searcher</a>:·<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"><a·class="src·rightside"·href="../../src/core/str/iter.rs.html#972-988">source</a><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">where129 ····&lt;P·as·<a·class="trait"·href="../str/pattern/trait.Pattern.html"·title="trait·alloc::str::pattern::Pattern">Pattern</a>&lt;'a&gt;&gt;::<a·class="associatedtype"·href="../str/pattern/trait.Pattern.html#associatedtype.Searcher"·title="type·alloc::str::pattern::Pattern::Searcher">Searcher</a>:·<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"><a·class="src·rightside"·href="https://doc.rust-lang.org/1.78.0/src/core/str/iter.rs.html#972-988">source</a><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
130 ····P:·<a·class="trait"·href="../str/pattern/trait.Pattern.html"·title="trait·alloc::str::pattern::Pattern">Pattern</a>&lt;'a&gt;,130 ····P:·<a·class="trait"·href="../str/pattern/trait.Pattern.html"·title="trait·alloc::str::pattern::Pattern">Pattern</a>&lt;'a&gt;,
131 ····&lt;P·as·<a·class="trait"·href="../str/pattern/trait.Pattern.html"·title="trait·alloc::str::pattern::Pattern">Pattern</a>&lt;'a&gt;&gt;::<a·class="associatedtype"·href="../str/pattern/trait.Pattern.html#associatedtype.Searcher"·title="type·alloc::str::pattern::Pattern::Searcher">Searcher</a>:·<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"><a·class="src·rightside"·href="../../src/core/str/iter.rs.html#845-861">source</a><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">where131 ····&lt;P·as·<a·class="trait"·href="../str/pattern/trait.Pattern.html"·title="trait·alloc::str::pattern::Pattern">Pattern</a>&lt;'a&gt;&gt;::<a·class="associatedtype"·href="../str/pattern/trait.Pattern.html#associatedtype.Searcher"·title="type·alloc::str::pattern::Pattern::Searcher">Searcher</a>:·<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"><a·class="src·rightside"·href="https://doc.rust-lang.org/1.78.0/src/core/str/iter.rs.html#845-861">source</a><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
132 ····P:·<a·class="trait"·href="../str/pattern/trait.Pattern.html"·title="trait·alloc::str::pattern::Pattern">Pattern</a>&lt;'a&gt;,132 ····P:·<a·class="trait"·href="../str/pattern/trait.Pattern.html"·title="trait·alloc::str::pattern::Pattern">Pattern</a>&lt;'a&gt;,
133 ····&lt;P·as·<a·class="trait"·href="../str/pattern/trait.Pattern.html"·title="trait·alloc::str::pattern::Pattern">Pattern</a>&lt;'a&gt;&gt;::<a·class="associatedtype"·href="../str/pattern/trait.Pattern.html#associatedtype.Searcher"·title="type·alloc::str::pattern::Pattern::Searcher">Searcher</a>:·<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"><a·class="src·rightside"·href="../../src/core/result.rs.html#1752">source</a><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"·titl[·...·truncated·by·diffoscope;·len:·154,·SHA:·f953ad7df3ad575f63c6d583322d7c44b00ce8f3a27f78acde99b88b3d38cbe6·...·]</a>&lt;'a,·T&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>&lt;'a&gt;&gt;::<a·class="associatedtype"·href="../str/pattern/trait.Pattern.html#associatedtype.Searcher"·title="type·alloc::str::pattern::Pattern::Searcher">Searcher</a>:·<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"><a·class="src·rightside"·href="https://doc.rust-lang.org/1.78.0/src/core/slice/iter.rs.html#1453">source</a><a·href="#impl-Debug-for-Chunks%3C'a,+T%3E"·class="anchor">§</a><h3·class="code-header">impl&lt;'a,·T&gt;·<a·class="[·...·truncated·by·diffoscope;·len:·172,·SHA:·5e9a6de67c1086db581cd3e9ee96e3560ec83e440262c40377d4eead7239c219·...·]</a>&lt;'a,·T&gt;<div·class="where">where
134 ····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"><a·class="src·rightside"·href="../../src/core/result.rs.html#1801">source</a><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 
135 ····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"><a·class="src·rightside"·href="../../src/core/slice/iter.rs.html#1453">source</a><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 
136 ····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#1825">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">where134 ····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.78.0/src/core/slice/iter.rs.html#1825">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
137 ····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#1998">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">where135 ····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.78.0/src/core/slice/iter.rs.html#1998">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
138 ····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"><a·class="src·rightside"·href="../../src/core/slice/iter.rs.html#1636">source</a><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">where136 ····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"><a·class="src·rightside"·href="https://doc.rust-lang.org/1.78.0/src/core/slice/iter.rs.html#1636">source</a><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
139 ····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#2531">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">where137 ····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.78.0/src/core/slice/iter.rs.html#2531">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
140 ····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#2898">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">where138 ····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.78.0/src/core/slice/iter.rs.html#2898">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
141 ····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#3074">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">where139 ····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.78.0/src/core/slice/iter.rs.html#3074">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
142 ····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#2704">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">where140 ····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.78.0/src/core/slice/iter.rs.html#2704">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
143 ····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"><a·class="src·rightside"·href="../../src/core/slice/iter.rs.html#1305">source</a><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">where141 ····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"><a·class="src·rightside"·href="https://doc.rust-lang.org/1.78.0/src/core/slice/iter.rs.html#1305">source</a><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
 142 ····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"><a·class="src·rightside"·href="https://doc.rust-lang.org/1.78.0/src/core/result.rs.html#1752">source</a><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.78.0/core/result/struct.Iter.html"·title="struct·core::result::Iter">Iter</a>&lt;'a,·T&gt;<div·class="where">where
 143 ····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"><a·class="src·rightside"·href="https://doc.rust-lang.org/1.78.0/src/core/result.rs.html#1801">source</a><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.78.0/core/result/struct.IterMut.html"·title="struct·core::result::IterMut">IterMut</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-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#3332">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">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-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.78.0/src/core/slice/iter.rs.html#3332">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
145 ····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#3421">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">where145 ····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.78.0/src/core/slice/iter.rs.html#3421">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
146 ····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#2291">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">where146 ····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.78.0/src/core/slice/iter.rs.html#2291">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.78.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
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-ArrayChunksMut%3C'a,+T,+N%3E"·class="impl"><a·class="src·rightside"·href="../../src/core/slice/iter.rs.html#2417">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">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-ArrayChunksMut%3C'a,+T,+N%3E"·class="impl"><a·class="src·rightside"·href="https://doc.rust-lang.org/1.78.0/src/core/slice/iter.rs.html#2417">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.7[·...·truncated·by·diffoscope;·len:·3,·SHA:·7b1bd53949b752d143d871408483b5382371b5bc48d195d0c040ec93cfa2748b·...·]/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
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-ArrayWindows%3C'a,+T,+N%3E"·class="impl"><a·class="src·rightside"·href="../../src/core/slice/iter.rs.html#2168">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">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-ArrayWindows%3C'a,+T,+N%3E"·class="impl"><a·class="src·rightside"·href="https://doc.rust-lang.org/1.78.0/src/core/slice/iter.rs.html#2168">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.78.[·...·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
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-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#165">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#1643">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#1700">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#21">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">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-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#165">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#1643">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#1700">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.78.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#21">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
150 ····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:·1529,·SHA:·dadbe928aea91a232733fbf1d89f8b1485dae83726442b6969a5126783418b90·...·]/core/iter/sources/repeat/struct.Repeat.html"·title="struct·core::iter::sources::repeat::Repeat">Repeat</a>&lt;A&gt;<div·class="where">where150 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(<a·class="primitive"·href="https://doc.rust-lang.org/1.78.0/core/primitive.reference.html">&amp;mut·T</a>)·-&gt;·<a·class="primitive"·hr[·...·truncated·by·diffoscope;·len:·1772,·SHA:·b2839c2e067c7c5a838bfa033505f6bb5d85faf4118a2a535f43fd926c0522f1·...·]/core/iter/sources/repeat/struct.Repeat.html"·title="struct·core::iter::sources::repeat::Repeat">Repeat</a>&lt;A&gt;<div·class="where">where
151 ····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"><a·class="src·rightside"·href="../../src/core/iter/sources/repeat_n.rs.html#79">source</a><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·class="s[·...·truncated·by·diffoscope;·len:·18,·SHA:·86646737a613066e099c84de8897dc4c674dc2ad259a7a45e8d5fd871507e29a·...·]/core/iter/sources/repeat_n/struct.RepeatN.html"·title="struct·core::iter::sources::repeat_n::RepeatN">RepeatN</a>&lt;A&gt;<div·class="where">where151 ····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"><a·class="src·rightside"·href="https://doc.rust-lang.org/1.78.0/src/core/iter/sources/repeat_n.rs.html#79">source</a><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[·...·truncated·by·diffoscope;·len:·72,·SHA:·f830165ab045897f4d2d462a80349b8ebfdd0acab736494a3890904c5c8e95e3·...·]/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
152 ····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"><a·class="src·rightside"·href="../../src/core/option.rs.html#2362">source</a><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·class=[·...·truncated·by·diffoscope;·len:·20,·SHA:·15326731d2f5ebc88a412a3d0513480ef37a2ce52245b654b74a015ef1858f8e·...·]/core/option/struct.IntoIter.html"·title="struct·core::option::IntoIter">IntoIter</a>&lt;A&gt;<div·class="where">where152 ····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"><a·class="src·rightside"·href="https://doc.rust-lang.org/1.78.0/src/core/option.rs.html#2362">source</a><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>·[·...·truncated·by·diffoscope;·len:·74,·SHA:·11a8e8a62b8fca4df96e165a68bdcde3a43732d39384a64592138bc22a2e69f6·...·]/core/option/struct.IntoIter.html"·title="struct·core::option::IntoIter">IntoIter</a>&lt;A&gt;<div·class="where">where
153 ····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"><a·class="src·rightside"·href="../../src/core/iter/adapters/chain.rs.html#20">source</a><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·class=[·...·truncated·by·diffoscope;·len:·20,·SHA:·15326731d2f5ebc88a412a3d0513480ef37a2ce52245b654b74a015ef1858f8e·...·]/core/iter/adapters/chain/struct.Chain.html"·title="struct·core::iter::adapters::chain::Chain">Chain</a>&lt;A,·B&gt;<div·class="where">where153 ····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"><a·class="src·rightside"·href="https://doc.rust-lang.org/1.78.0/src/core/iter/adapters/chain.rs.html#20">source</a><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::Deb[·...·truncated·by·diffoscope;·len:·74,·SHA:·04f50a4ccdc5ae2b282e73f8b9d7215a987338b0be850c8e3bc1b306da9b90d8·...·]/core/iter/adapters/chain/struct.Chain.html"·title="struct·core::iter::adapters::chain::Chain">Chain</a>&lt;A,·B&gt;<div·class="where">where
154 ····A:·<a·class="trait"·href="trait.Debug.html"·title="trait·alloc::fmt::Debug">Debug</a>,154 ····A:·<a·class="trait"·href="trait.Debug.html"·title="trait·alloc::fmt::Debug">Debug</a>,
155 ····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"><a·class="src·rightside"·href="../../src/core/iter/adapters/zip.rs.html#497">source</a><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·class="st[·...·truncated·by·diffoscope;·len:·17,·SHA:·4bac53673843244b8939b723c963a619dc77753ffccdc3328de5a39f13212aac·...·]/core/iter/adapters/zip/struct.Zip.html"·title="struct·core::iter::adapters::zip::Zip">Zip</a>&lt;A,·B&gt;<div·class="where">where155 ····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"><a·class="src·rightside"·href="https://doc.rust-lang.org/1.78.0/src/core/iter/adapters/zip.rs.html#497">source</a><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"[·...·truncated·by·diffoscope;·len:·71,·SHA:·38a0ff12f144501a59e29c3678897c8c4b7901d85c1e51890ae7ac78554675d5·...·]/core/iter/adapters/zip/struct.Zip.html"·title="struct·core::iter::adapters::zip::Zip">Zip</a>&lt;A,·B&gt;<div·class="where">where
156 ····A:·<a·class="trait"·href="trait.Debug.html"·title="trait·alloc::fmt::Debug">Debug</a>,156 ····A:·<a·class="trait"·href="trait.Debug.html"·title="trait·alloc::fmt::Debug">Debug</a>,
157 ····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"><a·class="src·rightside"·href="../../src/alloc/borrow.rs.html#384-394">source</a><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">where157 ····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"><a·class="src·rightside"·href="../../src/alloc/borrow.rs.html#384-394">source</a><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
158 ····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">where158 ····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.78.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:·bc4aef875d7b56b68176ea32ebfc9d3e0dc5f4a2eb9eaaec6919606c7626f6ec·...·]/core/ops/control_flow/enum.ControlFlow.html"·title="enum·core::ops::control_flow::ControlFlow">ControlFlow</a>&lt;B,·C&gt;<div·class="where">where
159 ····B:·<a·class="trait"·href="trait.Debug.html"·title="trait·alloc::fmt::Debug">Debug</a>,159 ····B:·<a·class="trait"·href="trait.Debug.html"·title="trait·alloc::fmt::Debug">Debug</a>,
160 ····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#231">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">where160 ····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.78.0/src/core/ptr/metadata.rs.html#231">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:·f830165ab045897f4d2d462a80349b8ebfdd0acab736494a3890904c5c8e95e3·...·]/core/ptr/metadata/struct.DynMetadata.html"·title="struct·core::ptr::metadata::DynMetadata">DynMetadata</a>&lt;Dyn&gt;<div·class="where">where
 161 ····Dyn:·?<a·class="trait"·href="https://doc.rust-lang.org/1.78.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.78.0/src/core/str/pattern.rs.html#887-889">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
161 ····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:·2793,·SHA:·c700efd111db74bef641bba72e84aab2af6b886f2b8d3cb6a8d3168648fc3668·...·]F&gt;<div·class="where">where162 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(<a·class="primitive"·href="https://doc.rust-lang.org/1.78.0/core/primitive.char.html">char</a>)·-&gt;·<a·class[·...·truncated·by·diffoscope;·len:·3187,·SHA:·f8b996d3c5fafd07746799f31d91f9ca91b1d76fc6b423fc2644764115ff170b·...·]F&gt;<div·class="where">where
162 ····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-FormatterFn%3CF%3E"·class="impl"><a·class="src·rightside"·href="../../src/core/fmt/builders.rs.html#1039-1041">source</a><a·href="#impl-Debug-for-FormatterFn%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.FormatterFn.html"·title="struct·alloc::fmt::FormatterFn">FormatterFn</a>&lt;F&gt;<div·class="where">where 
163 ····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#2089">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">where163 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.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:·37494d0ce02dced547b2f1afdba79cdbd1fcf5561e754279e6a73ffb1752ec5f·...·]/src/core/ptr/mod.rs.html#2089">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
164 ····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:·c50b8e65daa7019844bb5cf0dbd5bda306a1dced4450e8663c8fce6ec74b94c9·...·]/core/async_iter/from_iter/struct.FromIter.html"·title="struct·core::async_iter::from_iter::FromIter">FromIter</a>&lt;I&gt;<div·class="where">where164 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.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:·daa2b4434c6d3c93b32d591e8ff565784918faa99cc6bda4cd1459a8efd3129e·...·]/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
165 ····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">where165 ····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.78.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:·acf1c49d74e14cfe5fd42af10d70feb67293370ad16fd145ff848dc020d69a32·...·]/core/char/decode/struct.DecodeUtf16.html"·title="struct·core::char::decode::DecodeUtf16">DecodeUtf16</a>&lt;I&gt;<div·class="where">where
166 ····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">where166 ····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.78.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.78.0/core/primitive.u16.html">u16</a>&gt;,</d[·...·truncated·by·diffoscope;·len:·527,·SHA:·28d4717e2e7c5cb7caf66ef6621d4a1c25eb326baf5b0c00d24e76e8a47acd4b·...·]/core/iter/adapters/cloned/struct.Cloned.html"·title="struct·core::iter::adapters::cloned::Cloned">Cloned</a>&lt;I&gt;<div·class="where">where
167 ····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#20">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">where167 ····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.78.0/src/core/iter/adapters/copied.rs.html#20">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:·0dc2ba5ab997a19be63894bf13ebbde6f02e4d5eb612e4bcd47db86b9dab6c63·...·]/core/iter/adapters/copied/struct.Copied.html"·title="struct·core::iter::adapters::copied::Copied">Copied</a>&lt;I&gt;<div·class="where">where
168 ····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"><a·class="src·rightside"·href="../../src/core/iter/adapters/cycle.rs.html#11">source</a><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="struc[·...·truncated·by·diffoscope;·len:·14,·SHA:·e4806a188e671314f81ff3b1fee0bccf3020bae01cc54582b1d457f13811d2d9·...·]/core/iter/adapters/cycle/struct.Cycle.html"·title="struct·core::iter::adapters::cycle::Cycle">Cycle</a>&lt;I&gt;<div·class="where">where168 ····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"><a·class="src·rightside"·href="https://doc.rust-lang.org/1.78.0/src/core/iter/adapters/cycle.rs.html#11">source</a><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">De[·...·truncated·by·diffoscope;·len:·68,·SHA:·9e30059e598d0ef81a72159ecc3824eea32864a399617d7ecbe41344a3a4e389·...·]/core/iter/adapters/cycle/struct.Cycle.html"·title="struct·core::iter::adapters::cycle::Cycle">Cycle</a>&lt;I&gt;<div·class="where">where
169 ····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"><a·class="src·rightside"·href="../../src/core/iter/adapters/enumerate.rs.html#15">source</a><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·<a·clas[·...·truncated·by·diffoscope;·len:·22,·SHA:·cc751696a9b292ba8143b127275af780eeeff10c83f5c82b60e77dea4306e0a6·...·]/core/iter/adapters/enumerate/struct.Enumerate.html"·title="struct·core::iter::adapters::enumerate::Enumerate">Enumerate</a>&lt;I&gt;<div·class="where">where169 ····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"><a·class="src·rightside"·href="https://doc.rust-lang.org/1.78.0/src/core/iter/adapters/enumerate.rs.html#15">source</a><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::D[·...·truncated·by·diffoscope;·len:·76,·SHA:·c34eea5768d8d6900e8f2a01a3cbcf4d96a444feb1ec706eb78f06605469dc1a·...·]/core/iter/adapters/enumerate/struct.Enumerate.html"·title="struct·core::iter::adapters::enumerate::Enumerate">Enumerate</a>&lt;I&gt;<div·class="where">where
170 ····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"><a·class="src·rightside"·href="../../src/core/iter/adapters/fuse.rs.html#14">source</a><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="struct"[·...·truncated·by·diffoscope;·len:·12,·SHA:·28a416f8e124658d75303d0298b22d62b819adbb7107c68593d16947e60f089e·...·]/core/iter/adapters/fuse/struct.Fuse.html"·title="struct·core::iter::adapters::fuse::Fuse">Fuse</a>&lt;I&gt;<div·class="where">where170 ····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"><a·class="src·rightside"·href="https://doc.rust-lang.org/1.78.0/src/core/iter/adapters/fuse.rs.html#14">source</a><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">Debu[·...·truncated·by·diffoscope;·len:·66,·SHA:·32e448312cb611325e4e753f403b75ba14c61a79da8479dec636b7ebe6ab4a98·...·]/core/iter/adapters/fuse/struct.Fuse.html"·title="struct·core::iter::adapters::fuse::Fuse">Fuse</a>&lt;I&gt;<div·class="where">where
171 ····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">where171 ····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.78.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:·c47a76e5fa0f862e630e52002cb4f01a2da569d8b057d8eeaf5236b07a398d42·...·]/core/iter/adapters/intersperse/struct.Intersperse.html"·title="struct·core::iter::adapters::intersperse::Intersperse">Intersperse</a>&lt;I&gt;<div·class="where">where
172 ····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>,172 ····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.78.0/core/iter/traits/iterator/trait.Iterator.html"·title="trait·core::iter::traits::iterator::Iterator">Iterator</a>,
173 ····&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:·613,·SHA:·97146375a5bae4caa9a7a6f6f47c14dbce5484eb7dbbe90383f6881a2503c2e1·...·]/core/iter/adapters/peekable/struct.Peekable.html"·title="struct·core::iter::adapters::peekable::Peekable">Peekable</a>&lt;I&gt;<div·class="where">where173 ····&lt;I·as·<a·class="trait"·href="https://doc.rust-lang.org/1.78.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.78.0/core/iter/traits/iterator/trait.Iterator[·...·truncated·by·diffoscope;·len:·748,·SHA:·cc2570472f3ea6d90764359893bec154499700856a5f52bdd1c46c93ff94dc69·...·]/core/iter/adapters/peekable/struct.Peekable.html"·title="struct·core::iter::adapters::peekable::Peekable">Peekable</a>&lt;I&gt;<div·class="where">where
174 ····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>,174 ····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.78.0/core/iter/traits/iterator/trait.Iterator.html"·title="trait·core::iter::traits::iterator::Iterator">Iterator</a>,
175 ····&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:·498,·SHA:·fe8bb30aff9f7a26ec8c6603f82375674b85a0f54d512c2636c366165442941e·...·]/core/iter/adapters/skip/struct.Skip.html"·title="struct·core::iter::adapters::skip::Skip">Skip</a>&lt;I&gt;<div·class="where">where175 ····&lt;I·as·<a·class="trait"·href="https://doc.rust-lang.org/1.78.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.78.0/core/iter/traits/iterator/trait.Iterator[·...·truncated·by·diffoscope;·len:·606,·SHA:·39fe108c851f1ce18ff0f3a2afe9cbfe7b39ceb8b7874b36ad7328432ab49220·...·]/core/iter/adapters/skip/struct.Skip.html"·title="struct·core::iter::adapters::skip::Skip">Skip</a>&lt;I&gt;<div·class="where">where
176 ····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#17">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">where176 ····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.78.0/src/core/iter/adapters/step_by.rs.html#17">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:·b708b79b114b1f8bba140381f423b97cf8fc446e63f1af2ebc8486c5a8e8ed4a·...·]/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
177 ····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"><a·class="src·rightside"·href="../../src/core/iter/adapters/take.rs.html#16">source</a><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="struct"[·...·truncated·by·diffoscope;·len:·12,·SHA:·28a416f8e124658d75303d0298b22d62b819adbb7107c68593d16947e60f089e·...·]/core/iter/adapters/take/struct.Take.html"·title="struct·core::iter::adapters::take::Take">Take</a>&lt;I&gt;<div·class="where">where177 ····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"><a·class="src·rightside"·href="https://doc.rust-lang.org/1.78.0/src/core/iter/adapters/take.rs.html#16">source</a><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">Debu[·...·truncated·by·diffoscope;·len:·66,·SHA:·32e448312cb611325e4e753f403b75ba14c61a79da8479dec636b7ebe6ab4a98·...·]/core/iter/adapters/take/struct.Take.html"·title="struct·core::iter::adapters::take::Take">Take</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-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">where178 ····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.78.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:·e4941237e66b00b2b2d542fe47fe34fb4275f05a91da57e5e8d2308ddd6d5594·...·]/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
179 ····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#28">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">where179 ····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.78.0/src/core/iter/adapters/inspect.rs.html#28">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:·4f73e6800f75ebf33fed8488ac86f968314cb5f674bfd309838a2fbea7edb12c·...·]/core/iter/adapters/inspect/struct.Inspect.html"·title="struct·core::iter::adapters::inspect::Inspect">Inspect</a>&lt;I,·F&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-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#79">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">where180 ····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.78.0/src/core/iter/adapters/map.rs.html#79">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:·0dc2ba5ab997a19be63894bf13ebbde6f02e4d5eb612e4bcd47db86b9dab6c63·...·]/core/iter/adapters/map/struct.Map.html"·title="struct·core::iter::adapters::map::Map">Map</a>&lt;I,·F&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-MapWindows%3CI,+F,+N%3E"·class="impl"><a·class="src·rightside"·href="../../src/core/iter/adapters/map_windows.rs.html#277">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">where181 ····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.78.0/src/core/iter/adapters/map_windows.rs.html#277">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:·b4fc953a138026e064eb823ea3cd87d92ea17648c0700d28ee7ed01d3222a106·...·]/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
182 ····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">where182 ····I:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.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:·4dc3e7e77931707301f46dc5f789a6886b52c6c0c21961fe83038948bb2e608b·...·]/core/iter/adapters/intersperse/struct.IntersperseWith.html"·title="struct·core::iter::adapters::intersperse::IntersperseWith">IntersperseWith</a>&lt;I,·G&gt;<div·class="where">where
183 ····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>,183 ····I:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.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>,
184 ····&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>,184 ····&lt;I·as·<a·class="trait"·href="https://doc.rust-lang.org/1.78.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.78.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>,
185 ····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#31">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">where185 ····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.78.0/src/core/iter/adapters/filter.rs.html#31">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:·fdb3a33bf95ba33c1a5f611186b0ed97516e0d4534b08442de4bb651df17f5e8·...·]/core/iter/adapters/filter/struct.Filter.html"·title="struct·core::iter::adapters::filter::Filter">Filter</a>&lt;I,·P&gt;<div·class="where">where
186 ····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#28">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">where186 ····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.78.0/src/core/iter/adapters/map_while.rs.html#28">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:·c8afa05b5bcb3002f9dcc516623ffc722d728cb8693ba8377393b69c896c401f·...·]/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
187 ····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#29">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">where187 ····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.78.0/src/core/iter/adapters/skip_while.rs.html#29">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:·e4941237e66b00b2b2d542fe47fe34fb4275f05a91da57e5e8d2308ddd6d5594·...·]/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
188 ····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#29">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">where188 ····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.78.0/src/core/iter/adapters/take_while.rs.html#29">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:·e4941237e66b00b2b2d542fe47fe34fb4275f05a91da57e5e8d2308ddd6d5594·...·]/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
189 ····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#29">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">where189 ····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.78.0/src/core/iter/adapters/scan.rs.html#29">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:·38dccd7e450c3d894d74bcc28ccb233b76ed0a0c16892a1f40150dc919d21ba5·...·]/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
190 ····I:·<a·class="trait"·href="trait.Debug.html"·title="trait·alloc::fmt::Debug">Debug</a>,190 ····I:·<a·class="trait"·href="trait.Debug.html"·title="trait·alloc::fmt::Debug">Debug</a>,
191 ····St:·<a·class="trait"·href="trait.Debug.html"·title="trait·alloc::fmt::Debug">Debug</a>,</div></h3></section><section·id="impl-Debug-for-Flatten%3CI%3E"·class="impl"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.29.0">1.29.0</span>···<a·class="src"·href="../../src/core/iter/adapters/flatten.rs.html#267-270">source</a></span><a·href="#impl-Debug-for-Flatten%3CI%3E"·class="anchor">§</a><h3·class="code-header">impl&lt;I,·U&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/flatten/struct.Flatten.html"·title="struct·core::iter::adapters::flatten::Flatten">Flatten</a>&lt;I&gt;<div·class="where">where191 ····St:·<a·class="trait"·href="trait.Debug.html"·title="trait·alloc::fmt::Debug">Debug</a>,</div></h3></section><section·id="impl-Debug-for-Flatten%3CI%3E"·class="impl"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.29.0">1.29.0</span>···<a·class="src"·href="https://doc.rust-lang.org/1.78.0/src/core/iter/adapters/flatten.rs.html#267-270">source</a></span><a·href="#impl-Debug-for-Flatten%3CI%3E"·class="anchor">§</a><h3·class="code-header">impl&lt;I,·U&gt;·<a·class="trait"·href="trait.Debug.html"·title="trait·al[·...·truncated·by·diffoscope;·len:·87,·SHA:·38dccd7e450c3d894d74bcc28ccb233b76ed0a0c16892a1f40150dc919d21ba5·...·]/core/iter/adapters/flatten/struct.Flatten.html"·title="struct·core::iter::adapters::flatten::Flatten">Flatten</a>&lt;I&gt;<div·class="where">where
192 ····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>,192 ····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.78.0/core/iter/traits/iterator/trait.Iterator.html"·title="trait·core::iter::traits::iterator::Iterator">Iterator</a>,
193 ····&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:·410,·SHA:·f7f63e33c359d4a22dc589da1ebf08013daf9dc3e13df6af5f6e289e019173a8·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;,193 ····&lt;I·as·<a·class="trait"·href="https://doc.rust-lang.org/1.78.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.78.0/core/iter/traits/iterator/trait.Iterator[·...·truncated·by·diffoscope;·len:·545,·SHA:·a9cd594edbb72e6180f8b3c5d36618a01da91903c5991088673ed8820c3a11b7·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;,
194 ····U:·<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>,</div></h3></section><section·id="impl-Debug-for-FlatMap%3CI,+U,+F%3E"·class="impl"><span·class="rightside"><span·class="since"·title="St[·...·truncated·by·diffoscope;·len:·363,·SHA:·64f0dabb03142057a201089190a4b294b7c89fdd9bd4ecdb430141e784824a47·...·]/core/iter/adapters/flatten/struct.FlatMap.html"·title="struct·core::iter::adapters::flatten::FlatMap">FlatMap</a>&lt;I,·U,·F&gt;<div·class="where">where194 ····U:·<a·class="trait"·href="trait.Debug.html"·title="trait·alloc::fmt::Debug">Debug</a>·+·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html"·title="trait·core::iter::traits::iterator::Iterator">Iterator</a>,</div></h3></section><section·id="impl-Debug-for-FlatMap%3CI,+U,+F%3E"·class="impl"><span·class="rightside"><s[·...·truncated·by·diffoscope;·len:·444,·SHA:·34dd60e747e4021551a67ae3a1b3c0a6b70f7c75316f09286293962bae76167d·...·]/core/iter/adapters/flatten/struct.FlatMap.html"·title="struct·core::iter::adapters::flatten::FlatMap">FlatMap</a>&lt;I,·U,·F&gt;<div·class="where">where
Max diff block lines reached; 187055/472869 bytes (39.56%) of diff not shown.
8.36 KB
html2text {}
Max HTML report size reached
108 KB
./usr/share/doc/rust-web-doc/html/alloc/fmt/trait.Display.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="Format·trait·for·an·empty·format,·`{}`."><title>Display·in·alloc::fmt·-·Rust</title><script>·if·(window.location.protocol·!==·"file:")·document.write(`<link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/SourceSerif4-Regular-46f98efaafac5295.ttf.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/FiraSans-Regular-018c141bf0843ffd.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/FiraSans-Medium-8f9a781e4970d388.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/SourceCodePro-Regular-562dcc5011b6de7d.ttf.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/SourceCodePro-Semibold-d899c5a5c4aeb14a.ttf.woff2">`)</script><link·rel="stylesheet"·href="../../static.files/normalize-76eba96aa4d2e634.css"><link·rel="stylesheet"·href="../../static.files/rustdoc-35f9e32502181f1e.css"><meta·name="rustdoc-vars"·data-root-path="../../"·data-static-root-path="../../static.files/"·data-current-crate="alloc"·data-themes=""·data-resource-suffix="1.78.0"·data-rustdoc-version="1.78.0"·data-channel="1.78.0"·data-search-js="search-42d8da7a6b9792c2.js"·data-settings-js="settings-4313503d2e1961c2.js"·><script·src="../../static.files/storage-4c98445ec4002617.js"></script><script·defer·src="sidebar-items1.78.0.js"></script><script·defer·src="../../static.files/main-12cf3b4f4f9dc36d.js"></script><noscript><link·rel="stylesheet"·href="../../static.files/noscript-04d5337699b92874.css"></noscript><link·rel="alternate·icon"·type="image/png"·href="../../static.files/favicon-16x16-8b506e7a72182f1c.png"><link·rel="alternate·icon"·type="image/png"·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.78.0</span></h2></div><h2·class="location"><a·href="#">Display</a></h2><div·class="sidebar-elems"><section><h3><a·href="#required-methods">Required·Methods</a></h3><ul·class="block"><li><a·href="#tymethod.fmt">fmt</a></li></ul><h3><a·href="#implementors">Implementors</a></h3></section><h2><a·href="index.html">In·alloc::fmt</a></h2></div></nav><div·class="sidebar-resizer"></div>1 <!DOCTYPE·html><html·lang="en"><head><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.write(`<link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/SourceSerif4-Regular-46f98efaafac5295.ttf.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/FiraSans-Regular-018c141bf0843ffd.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/FiraSans-Medium-8f9a781e4970d388.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/SourceCodePro-Regular-562dcc5011b6de7d.ttf.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/SourceCodePro-Semibold-d899c5a5c4aeb14a.ttf.woff2">`)</script><link·rel="stylesheet"·href="../../static.files/normalize-76eba96aa4d2e634.css"><link·rel="stylesheet"·href="../../static.files/rustdoc-35f9e32502181f1e.css"><meta·name="rustdoc-vars"·data-root-path="../../"·data-static-root-path="../../static.files/"·data-current-crate="alloc"·data-themes=""·data-resource-suffix="1.78.0"·data-rustdoc-version="1.78.0"·data-channel="1.78.0"·data-search-js="search-42d8da7a6b9792c2.js"·data-settings-js="settings-4313503d2e1961c2.js"·><script·src="../../static.files/storage-4c98445ec4002617.js"></script><script·defer·src="sidebar-items1.78.0.js"></script><script·defer·src="../../static.files/main-12cf3b4f4f9dc36d.js"></script><noscript><link·rel="stylesheet"·href="../../static.files/noscript-04d5337699b92874.css"></noscript><link·rel="alternate·icon"·type="image/png"·href="../../static.files/favicon-16x16-8b506e7a72182f1c.png"><link·rel="alternate·icon"·type="image/png"·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.78.0</span></h2></div><h2·class="location"><a·href="#">Display</a></h2><div·class="sidebar-elems"><section><h3><a·href="#required-methods">Required·Methods</a></h3><ul·class="block"><li><a·href="#tymethod.fmt">fmt</a></li></ul><h3><a·href="#implementors">Implementors</a></h3></section><h2><a·href="index.html">In·alloc::fmt</a></h2></div></nav><div·class="sidebar-resizer"></div>
2 ····<main><div·class="width-limiter"><nav·class="sub"><form·class="search-form"><span></span><div·id="sidebar-button"·tabindex="-1"><a·href="../../alloc/all.html"·title="show·sidebar"></a></div><input·class="search-input"·name="search"·aria-label="Run·search·in·the·documentation"·autocomplete="off"·spellcheck="false"·placeholder="Click·or·press·‘S’·to·search,·‘?’·for·more·options…"·type="search"><div·id="help-button"·tabindex="-1"><a·href="../../help.html"·title="help">?</a></div><div·id="settings-menu"·tabindex="-1"><a·href="../../settings.html"·title="settings"><img·width="22"·height="22"·alt="Change·settings"·src="../../static.files/wheel-7b819b6101059cd0.svg"></a></div></form></nav><section·id="main-content"·class="content"><div·class="main-heading"><h1>Trait·<a·href="../index.html">alloc</a>::<wbr><a·href="index.html">fmt</a>::<wbr><a·class="trait"·href="#">Display</a><button·id="copy-path"·title="Copy·item·path·to·clipboard"><img·src="../../static.files/clipboard-7571035ce49a181d.svg"·width="19"·height="18"·alt="Copy·item·path"></button></h1><span·class="out-of-band"><span·class="since"·title="Stable·since·Rust·version·1.0.0">1.0.0</span>···<a·class="src"·href="../../src/core/fmt/mod.rs.html#705">source</a>···<button·id="toggle-all-docs"·title="collapse·all·docs">[<span>&#x2212;</span>]</button></span></div><pre·class="rust·item-decl"><code>pub·trait·Display·{2 ····<main><div·class="width-limiter"><nav·class="sub"><form·class="search-form"><span></span><div·id="sidebar-button"·tabindex="-1"><a·href="../../alloc/all.html"·title="show·sidebar"></a></div><input·class="search-input"·name="search"·aria-label="Run·search·in·the·documentation"·autocomplete="off"·spellcheck="false"·placeholder="Click·or·press·‘S’·to·search,·‘?’·for·more·options…"·type="search"><div·id="help-button"·tabindex="-1"><a·href="../../help.html"·title="help">?</a></div><div·id="settings-menu"·tabindex="-1"><a·href="../../settings.html"·title="settings"><img·width="22"·height="22"·alt="Change·settings"·src="../../static.files/wheel-7b819b6101059cd0.svg"></a></div></form></nav><section·id="main-content"·class="content"><div·class="main-heading"><h1>Trait·<a·href="../index.html">alloc</a>::<wbr><a·href="index.html">fmt</a>::<wbr><a·class="trait"·href="#">Display</a><button·id="copy-path"·title="Copy·item·path·to·clipboard"><img·src="../../static.files/clipboard-7571035ce49a181d.svg"·width="19"·height="18"·alt="Copy·item·path"></button></h1><span·class="out-of-band"><span·class="since"·title="Stable·since·Rust·version·1.0.0">1.0.0</span>···<a·class="src"·href="https://doc.rust-lang.org/1.78.0/src/core/fmt/mod.rs.html#705">source</a>···<button·id="toggle-all-docs"·title="collapse·all·docs">[<span>&#x2212;</span>]</button></span></div><pre·class="rust·item-decl"><code>pub·trait·Display·{
3 ····//·Required·method3 ····//·Required·method
4 ····fn·<a·href="#tymethod.fmt"·class="fn">fmt</a>(&amp;self,·f:·&amp;mut·<a·class="struct"·href="struct.Formatter.html"·title="struct·alloc::fmt::Formatter">Formatter</a>&lt;'_&gt;)·-&gt;·<a·class="enum"·href="../../core/result/enum.Result.html"·title="enum·core::result::Result">Result</a>&lt;<a·class="primitive"·href="../../core/primitive.unit.html">()</a>,·<a·class="struct"·href="struct.Error.html"·title="struct·alloc::fmt::Error">Error</a>&gt;;4 ····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.78.0/core/result/enum.Result.html"·title="enum·core::result::Result">Result</a>&lt;<a·class="primitive"·href="https://doc.rust-lang.org/1.78.0/core/primitive.unit.html">()</a>,·<a·class="struct"·href="struct.Error.html"·title="struct·alloc::fmt::Error">Error</a>&gt;;
5 }</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 }</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>
6 <p>Implementing·this·trait·for·a·type·will·automatically·implement·the6 <p>Implementing·this·trait·for·a·type·will·automatically·implement·the
7 <a·href="../../std/string/trait.ToString.html"><code>ToString</code></a>·trait·for·the·type,·allowing·the·usage7 <a·href="../../std/string/trait.ToString.html"><code>ToString</code></a>·trait·for·the·type,·allowing·the·usage
8 of·the·<a·href="../../std/string/trait.ToString.html#tymethod.to_string"><code>.to_string()</code></a>·method.·Prefer·implementing8 of·the·<a·href="../../std/string/trait.ToString.html#tymethod.to_string"><code>.to_string()</code></a>·method.·Prefer·implementing
9 the·<code>Display</code>·trait·for·a·type,·rather·than·<a·href="../../std/string/trait.ToString.html"><code>ToString</code></a>.</p>9 the·<code>Display</code>·trait·for·a·type,·rather·than·<a·href="../../std/string/trait.ToString.html"><code>ToString</code></a>.</p>
10 <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-facing10 <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
11 output,·and·so·cannot·be·derived.</p>11 output,·and·so·cannot·be·derived.</p>
Offset 15, 15 lines modifiedOffset 15, 15 lines modified
15 to·only·implement·<code>Display</code>·when·there·is·a·single·most·“obvious”·way·that15 to·only·implement·<code>Display</code>·when·there·is·a·single·most·“obvious”·way·that
16 values·can·be·formatted·as·text.·This·could·mean·formatting·according·to·the16 values·can·be·formatted·as·text.·This·could·mean·formatting·according·to·the
17 “invariant”·culture·and·“undefined”·locale,·or·it·could·mean·that·the·type17 “invariant”·culture·and·“undefined”·locale,·or·it·could·mean·that·the·type
18 display·is·designed·for·a·specific·culture/locale,·such·as·developer·logs.</p>18 display·is·designed·for·a·specific·culture/locale,·such·as·developer·logs.</p>
19 <p>If·not·all·values·have·a·justifiably·canonical·textual·format·or·if·you·want19 <p>If·not·all·values·have·a·justifiably·canonical·textual·format·or·if·you·want
20 to·support·alternative·formats·not·covered·by·the·standard·set·of·possible20 to·support·alternative·formats·not·covered·by·the·standard·set·of·possible
21 <a·href="../../std/fmt/index.html#formatting-traits">formatting·traits</a>,·the·most·flexible·approach·is·display·adapters:·methods21 <a·href="../../std/fmt/index.html#formatting-traits">formatting·traits</a>,·the·most·flexible·approach·is·display·adapters:·methods
22 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·wrapper22 like·<a·href="https://doc.rust-lang.org/1.78.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
23 implementing·<code>Display</code>·to·output·the·specific·display·format.</p>23 implementing·<code>Display</code>·to·output·the·specific·display·format.</p>
24 <h2·id="examples"><a·class="doc-anchor"·href="#examples">§</a>Examples</h2>24 <h2·id="examples"><a·class="doc-anchor"·href="#examples">§</a>Examples</h2>
25 <p>Implementing·<code>Display</code>·on·a·type:</p>25 <p>Implementing·<code>Display</code>·on·a·type:</p>
  
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>Point·{27 <span·class="kw">struct·</span>Point·{
Offset 36, 15 lines modifiedOffset 36, 15 lines modified
36 ········<span·class="macro">write!</span>(f,·<span·class="string">"({},·{})"</span>,·<span·class="self">self</span>.x,·<span·class="self">self</span>.y)36 ········<span·class="macro">write!</span>(f,·<span·class="string">"({},·{})"</span>,·<span·class="self">self</span>.x,·<span·class="self">self</span>.y)
37 ····}37 ····}
38 }38 }
  
39 <span·class="kw">let·</span>origin·=·Point·{·x:·<span·class="number">0</span>,·y:·<span·class="number">0·</span>};39 <span·class="kw">let·</span>origin·=·Point·{·x:·<span·class="number">0</span>,·y:·<span·class="number">0·</span>};
  
40 <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"·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">Run</a></div>40 <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"·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">Run</a></div>
41 </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"><a·class="src·rightside"·href="../../src/core/fmt/mod.rs.html#728">source</a><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;)·-&gt;·<a[·...·truncated·by·diffoscope;·len:·136,·SHA:·731bf6754b00624b148e6401ba10758e486bdaf35f5f0a11d686d315c1aa171d·...·]/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 </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"><a·class="src·rightside"·href="https://doc.rust-lang.org/1.78.0/src/core/fmt/mod.rs.html#728">source</a><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">Format[·...·truncated·by·diffoscope;·len:·217,·SHA:·0628040997169d46c9badfd239178940d9e9e9029683558651e0e87aae3fcafb·...·]/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 <h5·id="examples-1"><a·class="doc-anchor"·href="#examples-1">§</a>Examples</h5>42 <h5·id="examples-1"><a·class="doc-anchor"·href="#examples-1">§</a>Examples</h5>
43 <div·class="example-wrap"><pre·class="rust·rust-example-rendered"><code><span·class="kw">use·</span>std::fmt;43 <div·class="example-wrap"><pre·class="rust·rust-example-rendered"><code><span·class="kw">use·</span>std::fmt;
  
44 <span·class="kw">struct·</span>Position·{44 <span·class="kw">struct·</span>Position·{
45 ····longitude:·f32,45 ····longitude:·f32,
46 ····latitude:·f32,46 ····latitude:·f32,
47 }47 }
Offset 53, 20 lines modifiedOffset 53, 20 lines modified
53 ····<span·class="kw">fn·</span>fmt(<span·class="kw-2">&amp;</span><span·class="self">self</span>,·f:·<span·class="kw-2">&amp;mut·</span>fmt::Formatter&lt;<span·class="lifetime">'_</span>&gt;)·-&gt;·fmt::Result·{53 ····<span·class="kw">fn·</span>fmt(<span·class="kw-2">&amp;</span><span·class="self">self</span>,·f:·<span·class="kw-2">&amp;mut·</span>fmt::Formatter&lt;<span·class="lifetime">'_</span>&gt;)·-&gt;·fmt::Result·{
54 ········<span·class="macro">write!</span>(f,·<span·class="string">"({},·{})"</span>,·<span·class="self">self</span>.longitude,·<span·class="self">self</span>.latitude)54 ········<span·class="macro">write!</span>(f,·<span·class="string">"({},·{})"</span>,·<span·class="self">self</span>.longitude,·<span·class="self">self</span>.latitude)
55 ····}55 ····}
56 }56 }
  
57 <span·class="macro">assert_eq!</span>(<span·class="string">"(1.987,·2.983)"</span>,57 <span·class="macro">assert_eq!</span>(<span·class="string">"(1.987,·2.983)"</span>,
58 ···········<span·class="macro">format!</span>(<span·class="string">"{}"</span>,·Position·{·longitude:·<span·class="number">1.987</span>,·latitude:·<span·class="number">2.983</span>,·}));</code></pre><a·class="test-arrow"·target="_blank"·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!(%22(1.987,+2.983)%22,%0A+++++++++++++++format!(%22%7B%7D%22,+Position+%7B+longitude:+1.987,+latitude:+2.983,+%7D));%0A%7D&amp;edition=2021">Run</a></div>58 ···········<span·class="macro">format!</span>(<span·class="string">"{}"</span>,·Position·{·longitude:·<span·class="number">1.987</span>,·latitude:·<span·class="number">2.983</span>,·}));</code></pre><a·class="test-arrow"·target="_blank"·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!(%22(1.987,+2.983)%22,%0A+++++++++++++++format!(%22%7B%7D%22,+Position+%7B+longitude:+1.987,+latitude:+2.983,+%7D));%0A%7D&amp;edition=2021">Run</a></div>
59 </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#577">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:·17976,·SHA:·acbb0bc96453a2e7c6e0a8055256f292669c68304414a3fa02e644c7d2739c23·...·]/core/net/ip_addr/struct.Ipv6Addr.html"·title="struct·core::net::ip_addr::Ipv6Addr">Ipv6Addr</a></h3></section><div·class="docblock"><p>Write·an·Ipv6Addr,·conforming·to·the·canonical·style·described·by59 </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.78.0/src/core/ascii/ascii_char.rs.html#577">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:·26158,·SHA:·d2cd7ea726f4a63864aab7740bc20c5a0c648df0bf890b2265ab7f723217f317·...·]/core/net/ip_addr/struct.Ipv6Addr.html"·title="struct·core::net::ip_addr::Ipv6Addr">Ipv6Addr</a></h3></section><div·class="docblock"><p>Write·an·Ipv6Addr,·conforming·to·the·canonical·style·described·by
60 <a·href="https://tools.ietf.org/html/rfc5952">RFC·5952</a>.</p>60 <a·href="https://tools.ietf.org/html/rfc5952">RFC·5952</a>.</p>
61 </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#508">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:·14317,·SHA:·407a4a41fd4e01aa43db0144fb95fd142b30bceaef2bb70ec20cba526c3664ab·...·]/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"><a·class="src·rightside"·href="../../src/alloc/borrow.rs.html#397-407">source</a><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">where61 </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.78.0/src/core/net/parser.rs.html#508">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:·9051,·SHA:·e36b4dab52d363ea39b55dd3588fc36a073bb27768f714f9392482daccc6d439·...·]/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"><a·class="src·rightside"·href="../../src/alloc/borrow.rs.html#397-407">source</a><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
62 ····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-FormatterFn%3CF%3E"·class="impl"><a·class="src·rightside"·href="../../src/core/fmt/builders.rs.html#1049-1051">source</a><a·href="#impl-Display-for-FormatterFn%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.FormatterFn.html"·title="struct·alloc::fmt::FormatterFn">FormatterFn</a>&lt;F&gt;<div·class="where">where62 ····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.78.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h3></section><section·id="impl-Display-for-FormatterFn%3CF%3E"·class="impl"><a·class="src·rightside"·href="https://doc.rust-lang.org/1.78.0/src/core/fmt/builders.rs.html#1049-1051">source</a><a·href="#impl-Display-for-FormatterFn%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.FormatterFn.html"·title="struct·alloc::fmt::FormatterFn">FormatterFn</a>&lt;F&gt;<div·class="where">where
63 ····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:·1449217f7c8a77d14358c229a5e8835e5ceb303884dc4118160ed213176c7473·...·]/core/pin/struct.Pin.html"·title="struct·core::pin::Pin">Pin</a>&lt;Ptr&gt;<div·class="where">where63 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.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:·7d10c2a0f219051cbdb072b6f2907f2d6cb1f2a8cdaeef9badd06a4a8b1c0c97·...·]/core/pin/struct.Pin.html"·title="struct·core::pin::Pin">Pin</a>&lt;Ptr&gt;<div·class="where">where
64 ····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"><a·class="src·rightside"·href="../../src/core/fmt/mod.rs.html#2343">source</a><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="primitive"·href[·...·truncated·by·diffoscope;·len:·7,·SHA:·bb8dd06557d9cc3572fb2309db738079427035c91a0b2f14758f043df2e52008·...·]/core/primitive.reference.html">&amp;T</a><div·class="where">where64 ····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"><a·class="src·rightside"·href="https://doc.rust-lang.org/1.78.0/src/core/fmt/mod.rs.html#2343">source</a><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>·fo[·...·truncated·by·diffoscope;·len:·61,·SHA:·b38b6f6f6c2772aca56cac5a21a0638fdf69fe4f6f4d7274ebc656a60d911431·...·]/core/primitive.reference.html">&amp;T</a><div·class="where">where
65 ····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"><a·class="src·rightside"·href="../../src/core/fmt/mod.rs.html#2343">source</a><a·href="#impl-Display-f[·...·truncated·by·diffoscope;·len:·196,·SHA:·998b1c5eeff99a7575767eb5cddeec35e23e702d266365a231598a7a3b00d23d·...·]/core/primitive.reference.html">&amp;mut·T</a><div·class="where">where65 ····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.78.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"><a·class="src·rightside"·href="https://doc.rust-lang.org/1.78.0/src/core/fm[·...·truncated·by·diffoscope;·len:·277,·SHA:·d589f6c253ae42c2915a2d19089037a3b6f34d5fd6697560a2036b57bc296546·...·]/core/primitive.reference.html">&amp;mut·T</a><div·class="where">where
66 ····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:·41603d9d83cae73694ea17fcd419baad88b791d82d8b632f404f4e9665c3388f·...·]/core/cell/struct.Ref.html"·title="struct·core::cell::Ref">Ref</a>&lt;'_,·T&gt;<div·class="where">where66 ····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.78.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:·7098808635262f50f587d65c7b729306645572edecf2b7c1b1103f6bfce53418·...·]/core/cell/struct.Ref.html"·title="struct·core::cell::Ref">Ref</a>&lt;'_,·T&gt;<div·class="where">where
67 ····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:·06be1fe38d9e8ae4ad8ab5a9163e1c2ec1201f1bc3415fb61beecabd8d3f37cf·...·]/core/cell/struct.RefMut.html"·title="struct·core::cell::RefMut">RefMut</a>&lt;'_,·T&gt;<div·class="where">where67 ····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.78.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:·2a3dedd3f9e4465d9aa8848e3962641eeeaf8949ba4379f185d14ee6d486774d·...·]/core/cell/struct.RefMut.html"·title="struct·core::cell::RefMut">RefMut</a>&lt;'_,·T&gt;<div·class="where">where
68 ····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:·e7123a0f8f27d0a93dabb86d2f8e8833fa8dc33d7ff6ce9ef712458116923e79·...·]/core/num/nonzero/struct.NonZero.html"·title="struct·core::num::nonzero::NonZero">NonZero</a>&lt;T&gt;<div·class="where">where68 ····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.78.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:·0457a4bfe74bd42041fa53abdebf06d4173b1d04dfaad6c923b60182f1908d2e·...·]/core/num/nonzero/struct.NonZero.html"·title="struct·core::num::nonzero::NonZero">NonZero</a>&lt;T&gt;<div·class="where">where
69 ····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">where69 ····T:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.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:·2c0bd25f633400266e064aa92321943e9592acb69d9ada44d6c6b3b299327fd4·...·]/core/num/saturating/struct.Saturating.html"·title="struct·core::num::saturating::Saturating">Saturating</a>&lt;T&gt;<div·class="where">where
70 ····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">where70 ····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.78.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:·0ed9692e859e16e68bad9075970b9ea01eb3211f9f347e57fcfd190f24f04b75·...·]/core/num/wrapping/struct.Wrapping.html"·title="struct·core::num::wrapping::Wrapping">Wrapping</a>&lt;T&gt;<div·class="where">where
71 ····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"><a·class="src·rightside"·href="../../src/alloc/boxed.rs.html#1908-1912">source</a><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:·2758,·SHA:·51cc8f3e9786c7863846819c0b5a3edf7cb40591da088aabf81152e21d928f4e·...·]/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>71 ····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"><a·class="src·rightside"·href="../../src/alloc/boxed.rs.html#1908-1912">source</a><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.78.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:·2947,·SHA:·edd19739d8ce5750f7b57887917d2bb468b1226bcb58da9c8e7dde785fd22bad·...·]/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>
2.15 KB
html2text {}
    
Offset 114, 14 lines modifiedOffset 114, 38 lines modified
114 ****·impl·Display·for·u32·****114 ****·impl·Display·for·u32·****
115 source§115 source§
116 ****·impl·Display·for·u64·****116 ****·impl·Display·for·u64·****
117 source§117 source§
118 ****·impl·Display·for·u128·****118 ****·impl·Display·for·u128·****
119 source§119 source§
120 ****·impl·Display·for·usize·****120 ****·impl·Display·for·usize·****
 121 source§
 122 ****·impl·Display·for·AllocError·****
 123 1.28.0·Â··source§
 124 ****·impl·Display·for·LayoutError·****
 125 source§
 126 ****·impl·Display·for·UnorderedKeyError·****
 127 1.57.0·Â··source§
 128 ****·impl·Display·for·TryReserveError·****
 129 1.58.0·Â··source§
 130 ****·impl·Display·for·FromVecWithNulError·****
 131 1.7.0·Â··source§
 132 ****·impl·Display·for·IntoStringError·****
 133 source§
 134 ****·impl·Display·for·NulError·****
 135 source§
 136 ****·impl·Display·for·ParseBoolError·****
 137 source§
 138 ****·impl·Display·for·Utf8Error·****
 139 source§
 140 ****·impl·Display·for·FromUtf8Error·****
 141 source§
 142 ****·impl·Display·for·FromUtf16Error·****
 143 source§
 144 ****·impl·Display·for·String·****
121 1.36.0·Â··source§145 1.36.0·Â··source§
122 ****·impl·Display·for·TryFromSliceError·****146 ****·impl·Display·for·TryFromSliceError·****
123 1.39.0·Â··source§147 1.39.0·Â··source§
124 ****·impl·Display·for·core::ascii::EscapeDefault·****148 ****·impl·Display·for·core::ascii::EscapeDefault·****
125 1.13.0·Â··source§149 1.13.0·Â··source§
126 ****·impl·Display·for·BorrowError·****150 ****·impl·Display·for·BorrowError·****
127 1.13.0·Â··source§151 1.13.0·Â··source§
Offset 168, 38 lines modifiedOffset 192, 14 lines modified
168 1.26.0·Â··source§192 1.26.0·Â··source§
169 ****·impl·Display·for·Location<'_>·****193 ****·impl·Display·for·Location<'_>·****
170 1.26.0·Â··source§194 1.26.0·Â··source§
171 ****·impl·Display·for·PanicInfo<'_>·****195 ****·impl·Display·for·PanicInfo<'_>·****
172 1.66.0·Â··source§196 1.66.0·Â··source§
173 ****·impl·Display·for·TryFromFloatSecsError·****197 ****·impl·Display·for·TryFromFloatSecsError·****
174 source§198 source§
175 ****·impl·Display·for·AllocError·**** 
176 1.28.0·Â··source§ 
177 ****·impl·Display·for·LayoutError·**** 
178 source§ 
179 ****·impl·Display·for·UnorderedKeyError·**** 
180 1.57.0·Â··source§ 
181 ****·impl·Display·for·TryReserveError·**** 
182 1.58.0·Â··source§ 
183 ****·impl·Display·for·FromVecWithNulError·**** 
184 1.7.0·Â··source§ 
185 ****·impl·Display·for·IntoStringError·**** 
186 source§ 
187 ****·impl·Display·for·NulError·**** 
188 source§ 
189 ****·impl·Display·for·ParseBoolError·**** 
190 source§ 
191 ****·impl·Display·for·Utf8Error·**** 
192 source§ 
193 ****·impl·Display·for·FromUtf8Error·**** 
194 source§ 
195 ****·impl·Display·for·FromUtf16Error·**** 
196 source§ 
197 ****·impl·Display·for·String·**** 
198 source§ 
199 ****·impl·Display·for·Arguments<'_>·****199 ****·impl·Display·for·Arguments<'_>·****
200 source§200 source§
201 ****·impl·Display·for·Error·****201 ****·impl·Display·for·Error·****
202 1.60.0·Â··source§202 1.60.0·Â··source§
203 ****·impl<'a>·Display·for·EscapeAscii<'a>·****203 ****·impl<'a>·Display·for·EscapeAscii<'a>·****
204 1.34.0·Â··source§204 1.34.0·Â··source§
205 ****·impl<'a>·Display·for·alloc::str::EscapeDebug<'a>·****205 ****·impl<'a>·Display·for·alloc::str::EscapeDebug<'a>·****
27.5 KB
./usr/share/doc/rust-web-doc/html/alloc/fmt/trait.LowerExp.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="`e`·formatting."><title>LowerExp·in·alloc::fmt·-·Rust</title><script>·if·(window.location.protocol·!==·"file:")·document.write(`<link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/SourceSerif4-Regular-46f98efaafac5295.ttf.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/FiraSans-Regular-018c141bf0843ffd.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/FiraSans-Medium-8f9a781e4970d388.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/SourceCodePro-Regular-562dcc5011b6de7d.ttf.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/SourceCodePro-Semibold-d899c5a5c4aeb14a.ttf.woff2">`)</script><link·rel="stylesheet"·href="../../static.files/normalize-76eba96aa4d2e634.css"><link·rel="stylesheet"·href="../../static.files/rustdoc-35f9e32502181f1e.css"><meta·name="rustdoc-vars"·data-root-path="../../"·data-static-root-path="../../static.files/"·data-current-crate="alloc"·data-themes=""·data-resource-suffix="1.78.0"·data-rustdoc-version="1.78.0"·data-channel="1.78.0"·data-search-js="search-42d8da7a6b9792c2.js"·data-settings-js="settings-4313503d2e1961c2.js"·><script·src="../../static.files/storage-4c98445ec4002617.js"></script><script·defer·src="sidebar-items1.78.0.js"></script><script·defer·src="../../static.files/main-12cf3b4f4f9dc36d.js"></script><noscript><link·rel="stylesheet"·href="../../static.files/noscript-04d5337699b92874.css"></noscript><link·rel="alternate·icon"·type="image/png"·href="../../static.files/favicon-16x16-8b506e7a72182f1c.png"><link·rel="alternate·icon"·type="image/png"·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.78.0</span></h2></div><h2·class="location"><a·href="#">LowerExp</a></h2><div·class="sidebar-elems"><section><h3><a·href="#required-methods">Required·Methods</a></h3><ul·class="block"><li><a·href="#tymethod.fmt">fmt</a></li></ul><h3><a·href="#implementors">Implementors</a></h3></section><h2><a·href="index.html">In·alloc::fmt</a></h2></div></nav><div·class="sidebar-resizer"></div>1 <!DOCTYPE·html><html·lang="en"><head><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.write(`<link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/SourceSerif4-Regular-46f98efaafac5295.ttf.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/FiraSans-Regular-018c141bf0843ffd.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/FiraSans-Medium-8f9a781e4970d388.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/SourceCodePro-Regular-562dcc5011b6de7d.ttf.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/SourceCodePro-Semibold-d899c5a5c4aeb14a.ttf.woff2">`)</script><link·rel="stylesheet"·href="../../static.files/normalize-76eba96aa4d2e634.css"><link·rel="stylesheet"·href="../../static.files/rustdoc-35f9e32502181f1e.css"><meta·name="rustdoc-vars"·data-root-path="../../"·data-static-root-path="../../static.files/"·data-current-crate="alloc"·data-themes=""·data-resource-suffix="1.78.0"·data-rustdoc-version="1.78.0"·data-channel="1.78.0"·data-search-js="search-42d8da7a6b9792c2.js"·data-settings-js="settings-4313503d2e1961c2.js"·><script·src="../../static.files/storage-4c98445ec4002617.js"></script><script·defer·src="sidebar-items1.78.0.js"></script><script·defer·src="../../static.files/main-12cf3b4f4f9dc36d.js"></script><noscript><link·rel="stylesheet"·href="../../static.files/noscript-04d5337699b92874.css"></noscript><link·rel="alternate·icon"·type="image/png"·href="../../static.files/favicon-16x16-8b506e7a72182f1c.png"><link·rel="alternate·icon"·type="image/png"·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.78.0</span></h2></div><h2·class="location"><a·href="#">LowerExp</a></h2><div·class="sidebar-elems"><section><h3><a·href="#required-methods">Required·Methods</a></h3><ul·class="block"><li><a·href="#tymethod.fmt">fmt</a></li></ul><h3><a·href="#implementors">Implementors</a></h3></section><h2><a·href="index.html">In·alloc::fmt</a></h2></div></nav><div·class="sidebar-resizer"></div>
2 ····<main><div·class="width-limiter"><nav·class="sub"><form·class="search-form"><span></span><div·id="sidebar-button"·tabindex="-1"><a·href="../../alloc/all.html"·title="show·sidebar"></a></div><input·class="search-input"·name="search"·aria-label="Run·search·in·the·documentation"·autocomplete="off"·spellcheck="false"·placeholder="Click·or·press·‘S’·to·search,·‘?’·for·more·options…"·type="search"><div·id="help-button"·tabindex="-1"><a·href="../../help.html"·title="help">?</a></div><div·id="settings-menu"·tabindex="-1"><a·href="../../settings.html"·title="settings"><img·width="22"·height="22"·alt="Change·settings"·src="../../static.files/wheel-7b819b6101059cd0.svg"></a></div></form></nav><section·id="main-content"·class="content"><div·class="main-heading"><h1>Trait·<a·href="../index.html">alloc</a>::<wbr><a·href="index.html">fmt</a>::<wbr><a·class="trait"·href="#">LowerExp</a><button·id="copy-path"·title="Copy·item·path·to·clipboard"><img·src="../../static.files/clipboard-7571035ce49a181d.svg"·width="19"·height="18"·alt="Copy·item·path"></button></h1><span·class="out-of-band"><span·class="since"·title="Stable·since·Rust·version·1.0.0">1.0.0</span>···<a·class="src"·href="../../src/core/fmt/mod.rs.html#1050">source</a>···<button·id="toggle-all-docs"·title="collapse·all·docs">[<span>&#x2212;</span>]</button></span></div><pre·class="rust·item-decl"><code>pub·trait·LowerExp·{2 ····<main><div·class="width-limiter"><nav·class="sub"><form·class="search-form"><span></span><div·id="sidebar-button"·tabindex="-1"><a·href="../../alloc/all.html"·title="show·sidebar"></a></div><input·class="search-input"·name="search"·aria-label="Run·search·in·the·documentation"·autocomplete="off"·spellcheck="false"·placeholder="Click·or·press·‘S’·to·search,·‘?’·for·more·options…"·type="search"><div·id="help-button"·tabindex="-1"><a·href="../../help.html"·title="help">?</a></div><div·id="settings-menu"·tabindex="-1"><a·href="../../settings.html"·title="settings"><img·width="22"·height="22"·alt="Change·settings"·src="../../static.files/wheel-7b819b6101059cd0.svg"></a></div></form></nav><section·id="main-content"·class="content"><div·class="main-heading"><h1>Trait·<a·href="../index.html">alloc</a>::<wbr><a·href="index.html">fmt</a>::<wbr><a·class="trait"·href="#">LowerExp</a><button·id="copy-path"·title="Copy·item·path·to·clipboard"><img·src="../../static.files/clipboard-7571035ce49a181d.svg"·width="19"·height="18"·alt="Copy·item·path"></button></h1><span·class="out-of-band"><span·class="since"·title="Stable·since·Rust·version·1.0.0">1.0.0</span>···<a·class="src"·href="https://doc.rust-lang.org/1.78.0/src/core/fmt/mod.rs.html#1050">source</a>···<button·id="toggle-all-docs"·title="collapse·all·docs">[<span>&#x2212;</span>]</button></span></div><pre·class="rust·item-decl"><code>pub·trait·LowerExp·{
3 ····//·Required·method3 ····//·Required·method
4 ····fn·<a·href="#tymethod.fmt"·class="fn">fmt</a>(&amp;self,·f:·&amp;mut·<a·class="struct"·href="struct.Formatter.html"·title="struct·alloc::fmt::Formatter">Formatter</a>&lt;'_&gt;)·-&gt;·<a·class="enum"·href="../../core/result/enum.Result.html"·title="enum·core::result::Result">Result</a>&lt;<a·class="primitive"·href="../../core/primitive.unit.html">()</a>,·<a·class="struct"·href="struct.Error.html"·title="struct·alloc::fmt::Error">Error</a>&gt;;4 ····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.78.0/core/result/enum.Result.html"·title="enum·core::result::Result">Result</a>&lt;<a·class="primitive"·href="https://doc.rust-lang.org/1.78.0/core/primitive.unit.html">()</a>,·<a·class="struct"·href="struct.Error.html"·title="struct·alloc::fmt::Error">Error</a>&gt;;
5 }</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 }</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>
6 <p>The·<code>LowerExp</code>·trait·should·format·its·output·in·scientific·notation·with·a·lower-case·<code>e</code>.</p>6 <p>The·<code>LowerExp</code>·trait·should·format·its·output·in·scientific·notation·with·a·lower-case·<code>e</code>.</p>
7 <p>For·more·information·on·formatters,·see·<a·href="../../std/fmt/index.html">the·module-level·documentation</a>.</p>7 <p>For·more·information·on·formatters,·see·<a·href="../../std/fmt/index.html">the·module-level·documentation</a>.</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>Basic·usage·with·<code>f64</code>:</p>9 <p>Basic·usage·with·<code>f64</code>:</p>
  
10 <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·notation10 <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 31, 11 lines modifiedOffset 31, 11 lines modified
31 ····<span·class="string">"l·in·scientific·notation·is:·1e2"31 ····<span·class="string">"l·in·scientific·notation·is:·1e2"
32 </span>);32 </span>);
  
33 <span·class="macro">assert_eq!</span>(33 <span·class="macro">assert_eq!</span>(
34 ····<span·class="macro">format!</span>(<span·class="string">"l·in·scientific·notation·is:·{l:05e}"</span>),34 ····<span·class="macro">format!</span>(<span·class="string">"l·in·scientific·notation·is:·{l:05e}"</span>),
35 ····<span·class="string">"l·in·scientific·notation·is:·001e2"35 ····<span·class="string">"l·in·scientific·notation·is:·001e2"
36 </span>);</code></pre><a·class="test-arrow"·target="_blank"·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">Run</a></div>36 </span>);</code></pre><a·class="test-arrow"·target="_blank"·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">Run</a></div>
37 </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"><a·class="src·rightside"·href="../../src/core/fmt/mod.rs.html#1053">source</a><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;)·-&gt;·<[·...·truncated·by·diffoscope;·len:·137,·SHA:·5611eaf292a43edd47853f23fe845c7ebecc330ad7d302831cae913df97e33a8·...·]/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 </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"><a·class="src·rightside"·href="https://doc.rust-lang.org/1.78.0/src/core/fmt/mod.rs.html#1053">source</a><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">Forma[·...·truncated·by·diffoscope;·len:·218,·SHA:·3af12c71f19a2f75eeb355333065d0f9dbaa8ec7c355423fbacbc275a1e6ce69·...·]/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>
38 </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"><a·class="src·rightside"·href="../../src/core/fmt/float.rs.html#229">source</a><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"·href="../[·...·truncated·by·diffoscope;·len:·6624,·SHA:·f0f4aa0fea330ac73316cabec8bf481b8e7770d8d6c7d7a8c3ee4e3702c2f8b4·...·]/core/primitive.reference.html">&amp;T</a><div·class="where">where38 </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"><a·class="src·rightside"·href="https://doc.rust-lang.org/1.78.0/src/core/fmt/float.rs.html#229">source</a><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·[·...·truncated·by·diffoscope;·len:·7434,·SHA:·f5acc3e0df7a81fa58ec8a8d518c9bca7cde80c394bae947dd78b34948c8e642·...·]/core/primitive.reference.html">&amp;T</a><div·class="where">where
39 ····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"><a·class="src·rightside"·href="../../src/core/fmt/mod.rs.html#2343">source</a><a·href="#impl-LowerExp[·...·truncated·by·diffoscope;·len:·201,·SHA:·9724ba8f8c58d5c29554a533468fe41cdfb8d64d57eb085bdf40868d7e40d377·...·]/core/primitive.reference.html">&amp;mut·T</a><div·class="where">where39 ····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.78.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"><a·class="src·rightside"·href="https://doc.rust-lang.org/1.78.0/src/core/f[·...·truncated·by·diffoscope;·len:·282,·SHA:·cd2d2617daed4dd94b6f09dc26442ff3965e961090f6bbdede00372909bd0cff·...·]/core/primitive.reference.html">&amp;mut·T</a><div·class="where">where
40 ····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>40 ····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.78.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>
28.0 KB
./usr/share/doc/rust-web-doc/html/alloc/fmt/trait.LowerHex.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="`x`·formatting."><title>LowerHex·in·alloc::fmt·-·Rust</title><script>·if·(window.location.protocol·!==·"file:")·document.write(`<link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/SourceSerif4-Regular-46f98efaafac5295.ttf.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/FiraSans-Regular-018c141bf0843ffd.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/FiraSans-Medium-8f9a781e4970d388.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/SourceCodePro-Regular-562dcc5011b6de7d.ttf.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/SourceCodePro-Semibold-d899c5a5c4aeb14a.ttf.woff2">`)</script><link·rel="stylesheet"·href="../../static.files/normalize-76eba96aa4d2e634.css"><link·rel="stylesheet"·href="../../static.files/rustdoc-35f9e32502181f1e.css"><meta·name="rustdoc-vars"·data-root-path="../../"·data-static-root-path="../../static.files/"·data-current-crate="alloc"·data-themes=""·data-resource-suffix="1.78.0"·data-rustdoc-version="1.78.0"·data-channel="1.78.0"·data-search-js="search-42d8da7a6b9792c2.js"·data-settings-js="settings-4313503d2e1961c2.js"·><script·src="../../static.files/storage-4c98445ec4002617.js"></script><script·defer·src="sidebar-items1.78.0.js"></script><script·defer·src="../../static.files/main-12cf3b4f4f9dc36d.js"></script><noscript><link·rel="stylesheet"·href="../../static.files/noscript-04d5337699b92874.css"></noscript><link·rel="alternate·icon"·type="image/png"·href="../../static.files/favicon-16x16-8b506e7a72182f1c.png"><link·rel="alternate·icon"·type="image/png"·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.78.0</span></h2></div><h2·class="location"><a·href="#">LowerHex</a></h2><div·class="sidebar-elems"><section><h3><a·href="#required-methods">Required·Methods</a></h3><ul·class="block"><li><a·href="#tymethod.fmt">fmt</a></li></ul><h3><a·href="#implementors">Implementors</a></h3></section><h2><a·href="index.html">In·alloc::fmt</a></h2></div></nav><div·class="sidebar-resizer"></div>1 <!DOCTYPE·html><html·lang="en"><head><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.write(`<link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/SourceSerif4-Regular-46f98efaafac5295.ttf.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/FiraSans-Regular-018c141bf0843ffd.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/FiraSans-Medium-8f9a781e4970d388.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/SourceCodePro-Regular-562dcc5011b6de7d.ttf.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/SourceCodePro-Semibold-d899c5a5c4aeb14a.ttf.woff2">`)</script><link·rel="stylesheet"·href="../../static.files/normalize-76eba96aa4d2e634.css"><link·rel="stylesheet"·href="../../static.files/rustdoc-35f9e32502181f1e.css"><meta·name="rustdoc-vars"·data-root-path="../../"·data-static-root-path="../../static.files/"·data-current-crate="alloc"·data-themes=""·data-resource-suffix="1.78.0"·data-rustdoc-version="1.78.0"·data-channel="1.78.0"·data-search-js="search-42d8da7a6b9792c2.js"·data-settings-js="settings-4313503d2e1961c2.js"·><script·src="../../static.files/storage-4c98445ec4002617.js"></script><script·defer·src="sidebar-items1.78.0.js"></script><script·defer·src="../../static.files/main-12cf3b4f4f9dc36d.js"></script><noscript><link·rel="stylesheet"·href="../../static.files/noscript-04d5337699b92874.css"></noscript><link·rel="alternate·icon"·type="image/png"·href="../../static.files/favicon-16x16-8b506e7a72182f1c.png"><link·rel="alternate·icon"·type="image/png"·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.78.0</span></h2></div><h2·class="location"><a·href="#">LowerHex</a></h2><div·class="sidebar-elems"><section><h3><a·href="#required-methods">Required·Methods</a></h3><ul·class="block"><li><a·href="#tymethod.fmt">fmt</a></li></ul><h3><a·href="#implementors">Implementors</a></h3></section><h2><a·href="index.html">In·alloc::fmt</a></h2></div></nav><div·class="sidebar-resizer"></div>
2 ····<main><div·class="width-limiter"><nav·class="sub"><form·class="search-form"><span></span><div·id="sidebar-button"·tabindex="-1"><a·href="../../alloc/all.html"·title="show·sidebar"></a></div><input·class="search-input"·name="search"·aria-label="Run·search·in·the·documentation"·autocomplete="off"·spellcheck="false"·placeholder="Click·or·press·‘S’·to·search,·‘?’·for·more·options…"·type="search"><div·id="help-button"·tabindex="-1"><a·href="../../help.html"·title="help">?</a></div><div·id="settings-menu"·tabindex="-1"><a·href="../../settings.html"·title="settings"><img·width="22"·height="22"·alt="Change·settings"·src="../../static.files/wheel-7b819b6101059cd0.svg"></a></div></form></nav><section·id="main-content"·class="content"><div·class="main-heading"><h1>Trait·<a·href="../index.html">alloc</a>::<wbr><a·href="index.html">fmt</a>::<wbr><a·class="trait"·href="#">LowerHex</a><button·id="copy-path"·title="Copy·item·path·to·clipboard"><img·src="../../static.files/clipboard-7571035ce49a181d.svg"·width="19"·height="18"·alt="Copy·item·path"></button></h1><span·class="out-of-band"><span·class="since"·title="Stable·since·Rust·version·1.0.0">1.0.0</span>···<a·class="src"·href="../../src/core/fmt/mod.rs.html#893">source</a>···<button·id="toggle-all-docs"·title="collapse·all·docs">[<span>&#x2212;</span>]</button></span></div><pre·class="rust·item-decl"><code>pub·trait·LowerHex·{2 ····<main><div·class="width-limiter"><nav·class="sub"><form·class="search-form"><span></span><div·id="sidebar-button"·tabindex="-1"><a·href="../../alloc/all.html"·title="show·sidebar"></a></div><input·class="search-input"·name="search"·aria-label="Run·search·in·the·documentation"·autocomplete="off"·spellcheck="false"·placeholder="Click·or·press·‘S’·to·search,·‘?’·for·more·options…"·type="search"><div·id="help-button"·tabindex="-1"><a·href="../../help.html"·title="help">?</a></div><div·id="settings-menu"·tabindex="-1"><a·href="../../settings.html"·title="settings"><img·width="22"·height="22"·alt="Change·settings"·src="../../static.files/wheel-7b819b6101059cd0.svg"></a></div></form></nav><section·id="main-content"·class="content"><div·class="main-heading"><h1>Trait·<a·href="../index.html">alloc</a>::<wbr><a·href="index.html">fmt</a>::<wbr><a·class="trait"·href="#">LowerHex</a><button·id="copy-path"·title="Copy·item·path·to·clipboard"><img·src="../../static.files/clipboard-7571035ce49a181d.svg"·width="19"·height="18"·alt="Copy·item·path"></button></h1><span·class="out-of-band"><span·class="since"·title="Stable·since·Rust·version·1.0.0">1.0.0</span>···<a·class="src"·href="https://doc.rust-lang.org/1.78.0/src/core/fmt/mod.rs.html#893">source</a>···<button·id="toggle-all-docs"·title="collapse·all·docs">[<span>&#x2212;</span>]</button></span></div><pre·class="rust·item-decl"><code>pub·trait·LowerHex·{
3 ····//·Required·method3 ····//·Required·method
4 ····fn·<a·href="#tymethod.fmt"·class="fn">fmt</a>(&amp;self,·f:·&amp;mut·<a·class="struct"·href="struct.Formatter.html"·title="struct·alloc::fmt::Formatter">Formatter</a>&lt;'_&gt;)·-&gt;·<a·class="enum"·href="../../core/result/enum.Result.html"·title="enum·core::result::Result">Result</a>&lt;<a·class="primitive"·href="../../core/primitive.unit.html">()</a>,·<a·class="struct"·href="struct.Error.html"·title="struct·alloc::fmt::Error">Error</a>&gt;;4 ····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.78.0/core/result/enum.Result.html"·title="enum·core::result::Result">Result</a>&lt;<a·class="primitive"·href="https://doc.rust-lang.org/1.78.0/core/primitive.unit.html">()</a>,·<a·class="struct"·href="struct.Error.html"·title="struct·alloc::fmt::Error">Error</a>&gt;;
5 }</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 }</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>
6 <p>The·<code>LowerHex</code>·trait·should·format·its·output·as·a·number·in·hexadecimal,·with·<code>a</code>·through·<code>f</code>6 <p>The·<code>LowerHex</code>·trait·should·format·its·output·as·a·number·in·hexadecimal,·with·<code>a</code>·through·<code>f</code>
7 in·lower·case.</p>7 in·lower·case.</p>
8 <p>For·primitive·signed·integers·(<code>i8</code>·to·<code>i128</code>,·and·<code>isize</code>),8 <p>For·primitive·signed·integers·(<code>i8</code>·to·<code>i128</code>,·and·<code>isize</code>),
9 negative·values·are·formatted·as·the·two’s·complement·representation.</p>9 negative·values·are·formatted·as·the·two’s·complement·representation.</p>
10 <p>The·alternate·flag,·<code>#</code>,·adds·a·<code>0x</code>·in·front·of·the·output.</p>10 <p>The·alternate·flag,·<code>#</code>,·adds·a·<code>0x</code>·in·front·of·the·output.</p>
11 <p>For·more·information·on·formatters,·see·<a·href="../../std/fmt/index.html">the·module-level·documentation</a>.</p>11 <p>For·more·information·on·formatters,·see·<a·href="../../std/fmt/index.html">the·module-level·documentation</a>.</p>
Offset 33, 14 lines modifiedOffset 33, 14 lines modified
33 }33 }
  
34 <span·class="kw">let·</span>l·=·Length(<span·class="number">9</span>);34 <span·class="kw">let·</span>l·=·Length(<span·class="number">9</span>);
  
35 <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:x}"</span>),·<span·class="string">"l·as·hex·is:·9"</span>);
  
36 <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"·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">Run</a></div>36 <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"·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">Run</a></div>
37 </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"><a·class="src·rightside"·href="../../src/core/fmt/mod.rs.html#896">source</a><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;)·-&gt;·<a[·...·truncated·by·diffoscope;·len:·136,·SHA:·731bf6754b00624b148e6401ba10758e486bdaf35f5f0a11d686d315c1aa171d·...·]/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 </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"><a·class="src·rightside"·href="https://doc.rust-lang.org/1.78.0/src/core/fmt/mod.rs.html#896">source</a><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">Format[·...·truncated·by·diffoscope;·len:·217,·SHA:·0628040997169d46c9badfd239178940d9e9e9029683558651e0e87aae3fcafb·...·]/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>
38 </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"><a·class="src·rightside"·href="../../src/core/fmt/num.rs.html#179">source</a><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:·4637,·SHA:·761e1c6cfe5188e5fa84a6e0abbdeed1ef433327be83b335b5092f61a7409e35·...·]/core/primitive.reference.html">&amp;T</a><div·class="where">where38 </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"><a·class="src·rightside"·href="https://doc.rust-lang.org/1.78.0/src/core/fmt/num.rs.html#179">source</a><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·cla[·...·truncated·by·diffoscope;·len:·5339,·SHA:·18011cb00dd94e1a26ce1f16dd43b44ee176a106b01c9628039d45a5329c1229·...·]/core/primitive.reference.html">&amp;T</a><div·class="where">where
39 ····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"><a·class="src·rightside"·href="../../src/core/fmt/mod.rs.html#2343">source</a><a·href="#impl-LowerHex[·...·truncated·by·diffoscope;·len:·201,·SHA:·cba1af0f6a976f4bdbb497db37dbda5128a93d073f218f55b97845e769bc8c2e·...·]/core/primitive.reference.html">&amp;mut·T</a><div·class="where">where39 ····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.78.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"><a·class="src·rightside"·href="https://doc.rust-lang.org/1.78.0/src/core/f[·...·truncated·by·diffoscope;·len:·282,·SHA:·47cd4431280d3252082857ac2cda1c224fbce181af3d56cd3991aa70a0838919·...·]/core/primitive.reference.html">&amp;mut·T</a><div·class="where">where
40 ····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:·9b9e9e67ce313840b0d9fa52a0e24f675ea84b3a5e98200d493949ab3969f762·...·]/core/num/nonzero/struct.NonZero.html"·title="struct·core::num::nonzero::NonZero">NonZero</a>&lt;T&gt;<div·class="where">where40 ····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.78.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:·6fe457a54b457b36c2ec218d5243d7ac3f9d09d0c66be593b8005e982b3ff61f·...·]/core/num/nonzero/struct.NonZero.html"·title="struct·core::num::nonzero::NonZero">NonZero</a>&lt;T&gt;<div·class="where">where
41 ····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">where41 ····T:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.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:·a1d0c5419437b61aa183c2f8b9d421fe4e8fea72b81153e64606c07a9395ee7c·...·]/core/num/saturating/struct.Saturating.html"·title="struct·core::num::saturating::Saturating">Saturating</a>&lt;T&gt;<div·class="where">where
42 ····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">where42 ····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.78.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:·8faaa13608f28417d8eae82abb3b0a9909786ba114a37d9191416370946337f2·...·]/core/num/wrapping/struct.Wrapping.html"·title="struct·core::num::wrapping::Wrapping">Wrapping</a>&lt;T&gt;<div·class="where">where
43 ····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>43 ····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>
27.4 KB
./usr/share/doc/rust-web-doc/html/alloc/fmt/trait.Octal.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="`o`·formatting."><title>Octal·in·alloc::fmt·-·Rust</title><script>·if·(window.location.protocol·!==·"file:")·document.write(`<link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/SourceSerif4-Regular-46f98efaafac5295.ttf.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/FiraSans-Regular-018c141bf0843ffd.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/FiraSans-Medium-8f9a781e4970d388.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/SourceCodePro-Regular-562dcc5011b6de7d.ttf.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/SourceCodePro-Semibold-d899c5a5c4aeb14a.ttf.woff2">`)</script><link·rel="stylesheet"·href="../../static.files/normalize-76eba96aa4d2e634.css"><link·rel="stylesheet"·href="../../static.files/rustdoc-35f9e32502181f1e.css"><meta·name="rustdoc-vars"·data-root-path="../../"·data-static-root-path="../../static.files/"·data-current-crate="alloc"·data-themes=""·data-resource-suffix="1.78.0"·data-rustdoc-version="1.78.0"·data-channel="1.78.0"·data-search-js="search-42d8da7a6b9792c2.js"·data-settings-js="settings-4313503d2e1961c2.js"·><script·src="../../static.files/storage-4c98445ec4002617.js"></script><script·defer·src="sidebar-items1.78.0.js"></script><script·defer·src="../../static.files/main-12cf3b4f4f9dc36d.js"></script><noscript><link·rel="stylesheet"·href="../../static.files/noscript-04d5337699b92874.css"></noscript><link·rel="alternate·icon"·type="image/png"·href="../../static.files/favicon-16x16-8b506e7a72182f1c.png"><link·rel="alternate·icon"·type="image/png"·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.78.0</span></h2></div><h2·class="location"><a·href="#">Octal</a></h2><div·class="sidebar-elems"><section><h3><a·href="#required-methods">Required·Methods</a></h3><ul·class="block"><li><a·href="#tymethod.fmt">fmt</a></li></ul><h3><a·href="#implementors">Implementors</a></h3></section><h2><a·href="index.html">In·alloc::fmt</a></h2></div></nav><div·class="sidebar-resizer"></div>1 <!DOCTYPE·html><html·lang="en"><head><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.write(`<link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/SourceSerif4-Regular-46f98efaafac5295.ttf.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/FiraSans-Regular-018c141bf0843ffd.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/FiraSans-Medium-8f9a781e4970d388.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/SourceCodePro-Regular-562dcc5011b6de7d.ttf.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/SourceCodePro-Semibold-d899c5a5c4aeb14a.ttf.woff2">`)</script><link·rel="stylesheet"·href="../../static.files/normalize-76eba96aa4d2e634.css"><link·rel="stylesheet"·href="../../static.files/rustdoc-35f9e32502181f1e.css"><meta·name="rustdoc-vars"·data-root-path="../../"·data-static-root-path="../../static.files/"·data-current-crate="alloc"·data-themes=""·data-resource-suffix="1.78.0"·data-rustdoc-version="1.78.0"·data-channel="1.78.0"·data-search-js="search-42d8da7a6b9792c2.js"·data-settings-js="settings-4313503d2e1961c2.js"·><script·src="../../static.files/storage-4c98445ec4002617.js"></script><script·defer·src="sidebar-items1.78.0.js"></script><script·defer·src="../../static.files/main-12cf3b4f4f9dc36d.js"></script><noscript><link·rel="stylesheet"·href="../../static.files/noscript-04d5337699b92874.css"></noscript><link·rel="alternate·icon"·type="image/png"·href="../../static.files/favicon-16x16-8b506e7a72182f1c.png"><link·rel="alternate·icon"·type="image/png"·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.78.0</span></h2></div><h2·class="location"><a·href="#">Octal</a></h2><div·class="sidebar-elems"><section><h3><a·href="#required-methods">Required·Methods</a></h3><ul·class="block"><li><a·href="#tymethod.fmt">fmt</a></li></ul><h3><a·href="#implementors">Implementors</a></h3></section><h2><a·href="index.html">In·alloc::fmt</a></h2></div></nav><div·class="sidebar-resizer"></div>
2 ····<main><div·class="width-limiter"><nav·class="sub"><form·class="search-form"><span></span><div·id="sidebar-button"·tabindex="-1"><a·href="../../alloc/all.html"·title="show·sidebar"></a></div><input·class="search-input"·name="search"·aria-label="Run·search·in·the·documentation"·autocomplete="off"·spellcheck="false"·placeholder="Click·or·press·‘S’·to·search,·‘?’·for·more·options…"·type="search"><div·id="help-button"·tabindex="-1"><a·href="../../help.html"·title="help">?</a></div><div·id="settings-menu"·tabindex="-1"><a·href="../../settings.html"·title="settings"><img·width="22"·height="22"·alt="Change·settings"·src="../../static.files/wheel-7b819b6101059cd0.svg"></a></div></form></nav><section·id="main-content"·class="content"><div·class="main-heading"><h1>Trait·<a·href="../index.html">alloc</a>::<wbr><a·href="index.html">fmt</a>::<wbr><a·class="trait"·href="#">Octal</a><button·id="copy-path"·title="Copy·item·path·to·clipboard"><img·src="../../static.files/clipboard-7571035ce49a181d.svg"·width="19"·height="18"·alt="Copy·item·path"></button></h1><span·class="out-of-band"><span·class="since"·title="Stable·since·Rust·version·1.0.0">1.0.0</span>···<a·class="src"·href="../../src/core/fmt/mod.rs.html#779">source</a>···<button·id="toggle-all-docs"·title="collapse·all·docs">[<span>&#x2212;</span>]</button></span></div><pre·class="rust·item-decl"><code>pub·trait·Octal·{2 ····<main><div·class="width-limiter"><nav·class="sub"><form·class="search-form"><span></span><div·id="sidebar-button"·tabindex="-1"><a·href="../../alloc/all.html"·title="show·sidebar"></a></div><input·class="search-input"·name="search"·aria-label="Run·search·in·the·documentation"·autocomplete="off"·spellcheck="false"·placeholder="Click·or·press·‘S’·to·search,·‘?’·for·more·options…"·type="search"><div·id="help-button"·tabindex="-1"><a·href="../../help.html"·title="help">?</a></div><div·id="settings-menu"·tabindex="-1"><a·href="../../settings.html"·title="settings"><img·width="22"·height="22"·alt="Change·settings"·src="../../static.files/wheel-7b819b6101059cd0.svg"></a></div></form></nav><section·id="main-content"·class="content"><div·class="main-heading"><h1>Trait·<a·href="../index.html">alloc</a>::<wbr><a·href="index.html">fmt</a>::<wbr><a·class="trait"·href="#">Octal</a><button·id="copy-path"·title="Copy·item·path·to·clipboard"><img·src="../../static.files/clipboard-7571035ce49a181d.svg"·width="19"·height="18"·alt="Copy·item·path"></button></h1><span·class="out-of-band"><span·class="since"·title="Stable·since·Rust·version·1.0.0">1.0.0</span>···<a·class="src"·href="https://doc.rust-lang.org/1.78.0/src/core/fmt/mod.rs.html#779">source</a>···<button·id="toggle-all-docs"·title="collapse·all·docs">[<span>&#x2212;</span>]</button></span></div><pre·class="rust·item-decl"><code>pub·trait·Octal·{
3 ····//·Required·method3 ····//·Required·method
4 ····fn·<a·href="#tymethod.fmt"·class="fn">fmt</a>(&amp;self,·f:·&amp;mut·<a·class="struct"·href="struct.Formatter.html"·title="struct·alloc::fmt::Formatter">Formatter</a>&lt;'_&gt;)·-&gt;·<a·class="enum"·href="../../core/result/enum.Result.html"·title="enum·core::result::Result">Result</a>&lt;<a·class="primitive"·href="../../core/primitive.unit.html">()</a>,·<a·class="struct"·href="struct.Error.html"·title="struct·alloc::fmt::Error">Error</a>&gt;;4 ····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.78.0/core/result/enum.Result.html"·title="enum·core::result::Result">Result</a>&lt;<a·class="primitive"·href="https://doc.rust-lang.org/1.78.0/core/primitive.unit.html">()</a>,·<a·class="struct"·href="struct.Error.html"·title="struct·alloc::fmt::Error">Error</a>&gt;;
5 }</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 }</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>
6 <p>The·<code>Octal</code>·trait·should·format·its·output·as·a·number·in·base-8.</p>6 <p>The·<code>Octal</code>·trait·should·format·its·output·as·a·number·in·base-8.</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>0o</code>·in·front·of·the·output.</p>9 <p>The·alternate·flag,·<code>#</code>,·adds·a·<code>0o</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>
11 <h2·id="examples"><a·class="doc-anchor"·href="#examples">§</a>Examples</h2>11 <h2·id="examples"><a·class="doc-anchor"·href="#examples">§</a>Examples</h2>
Offset 32, 14 lines modifiedOffset 32, 14 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·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:o}"</span>),·<span·class="string">"l·as·octal·is:·11"</span>);
  
35 <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"·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">Run</a></div>35 <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"·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">Run</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"><a·class="src·rightside"·href="../../src/core/fmt/mod.rs.html#782">source</a><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;)·-&gt;·<a[·...·truncated·by·diffoscope;·len:·136,·SHA:·731bf6754b00624b148e6401ba10758e486bdaf35f5f0a11d686d315c1aa171d·...·]/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"><a·class="src·rightside"·href="https://doc.rust-lang.org/1.78.0/src/core/fmt/mod.rs.html#782">source</a><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">Format[·...·truncated·by·diffoscope;·len:·217,·SHA:·0628040997169d46c9badfd239178940d9e9e9029683558651e0e87aae3fcafb·...·]/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 </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"><a·class="src·rightside"·href="../../src/core/fmt/num.rs.html#179">source</a><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/primiti[·...·truncated·by·diffoscope;·len:·4445,·SHA:·631b07af2937e6342371593b8111a86d477bb3bc979ede061f8b026d49bbaa25·...·]/core/primitive.reference.html">&amp;T</a><div·class="where">where37 </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"><a·class="src·rightside"·href="https://doc.rust-lang.org/1.78.0/src/core/fmt/num.rs.html#179">source</a><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="primitiv[·...·truncated·by·diffoscope;·len:·5147,·SHA:·f305f67d24c21e410ef62edf0d2f95dc5ddcf04a321cff7f60922d2c4e9683c7·...·]/core/primitive.reference.html">&amp;T</a><div·class="where">where
38 ····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"><a·class="src·rightside"·href="../../src/core/fmt/mod.rs.html#2343">source</a><a·href="#impl-Octal-for-%[·...·truncated·by·diffoscope;·len:·186,·SHA:·e95f68e2a892b03d386bbbb4e1413aa67df52c982198457fc634fdd2d541fdcc·...·]/core/primitive.reference.html">&amp;mut·T</a><div·class="where">where38 ····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.78.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"><a·class="src·rightside"·href="https://doc.rust-lang.org/1.78.0/src/core/fmt/[·...·truncated·by·diffoscope;·len:·267,·SHA:·03e95cb6824e3accd70690feff55563f38686cc9da45d81337dc2b9eaae8c17c·...·]/core/primitive.reference.html">&amp;mut·T</a><div·class="where">where
39 ····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:·ebc2cc5cbf2252eb7bdb58524176a13a5ba776b715a63bf479d8faa744598bc7·...·]/core/num/nonzero/struct.NonZero.html"·title="struct·core::num::nonzero::NonZero">NonZero</a>&lt;T&gt;<div·class="where">where39 ····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.78.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:·74fa42a1df8b9c2120f10125ff87dd8cd0c454ee77821ef944b69b258d6ff84f·...·]/core/num/nonzero/struct.NonZero.html"·title="struct·core::num::nonzero::NonZero">NonZero</a>&lt;T&gt;<div·class="where">where
40 ····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">where40 ····T:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.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:·a9ceec815f46f596f340b7679b664cb58f4b111c6e4151e6118abbb8ac2de268·...·]/core/num/saturating/struct.Saturating.html"·title="struct·core::num::saturating::Saturating">Saturating</a>&lt;T&gt;<div·class="where">where
41 ····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">where41 ····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.78.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:·85f5e85bfa2c65091fc4984dfe2f84b542d0541a43b9bfd3b76408f42a6296d9·...·]/core/num/wrapping/struct.Wrapping.html"·title="struct·core::num::wrapping::Wrapping">Wrapping</a>&lt;T&gt;<div·class="where">where
42 ····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>42 ····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>
24.9 KB
./usr/share/doc/rust-web-doc/html/alloc/fmt/trait.Pointer.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="`p`·formatting."><title>Pointer·in·alloc::fmt·-·Rust</title><script>·if·(window.location.protocol·!==·"file:")·document.write(`<link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/SourceSerif4-Regular-46f98efaafac5295.ttf.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/FiraSans-Regular-018c141bf0843ffd.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/FiraSans-Medium-8f9a781e4970d388.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/SourceCodePro-Regular-562dcc5011b6de7d.ttf.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/SourceCodePro-Semibold-d899c5a5c4aeb14a.ttf.woff2">`)</script><link·rel="stylesheet"·href="../../static.files/normalize-76eba96aa4d2e634.css"><link·rel="stylesheet"·href="../../static.files/rustdoc-35f9e32502181f1e.css"><meta·name="rustdoc-vars"·data-root-path="../../"·data-static-root-path="../../static.files/"·data-current-crate="alloc"·data-themes=""·data-resource-suffix="1.78.0"·data-rustdoc-version="1.78.0"·data-channel="1.78.0"·data-search-js="search-42d8da7a6b9792c2.js"·data-settings-js="settings-4313503d2e1961c2.js"·><script·src="../../static.files/storage-4c98445ec4002617.js"></script><script·defer·src="sidebar-items1.78.0.js"></script><script·defer·src="../../static.files/main-12cf3b4f4f9dc36d.js"></script><noscript><link·rel="stylesheet"·href="../../static.files/noscript-04d5337699b92874.css"></noscript><link·rel="alternate·icon"·type="image/png"·href="../../static.files/favicon-16x16-8b506e7a72182f1c.png"><link·rel="alternate·icon"·type="image/png"·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.78.0</span></h2></div><h2·class="location"><a·href="#">Pointer</a></h2><div·class="sidebar-elems"><section><h3><a·href="#required-methods">Required·Methods</a></h3><ul·class="block"><li><a·href="#tymethod.fmt">fmt</a></li></ul><h3><a·href="#implementors">Implementors</a></h3></section><h2><a·href="index.html">In·alloc::fmt</a></h2></div></nav><div·class="sidebar-resizer"></div>1 <!DOCTYPE·html><html·lang="en"><head><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.write(`<link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/SourceSerif4-Regular-46f98efaafac5295.ttf.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/FiraSans-Regular-018c141bf0843ffd.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/FiraSans-Medium-8f9a781e4970d388.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/SourceCodePro-Regular-562dcc5011b6de7d.ttf.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/SourceCodePro-Semibold-d899c5a5c4aeb14a.ttf.woff2">`)</script><link·rel="stylesheet"·href="../../static.files/normalize-76eba96aa4d2e634.css"><link·rel="stylesheet"·href="../../static.files/rustdoc-35f9e32502181f1e.css"><meta·name="rustdoc-vars"·data-root-path="../../"·data-static-root-path="../../static.files/"·data-current-crate="alloc"·data-themes=""·data-resource-suffix="1.78.0"·data-rustdoc-version="1.78.0"·data-channel="1.78.0"·data-search-js="search-42d8da7a6b9792c2.js"·data-settings-js="settings-4313503d2e1961c2.js"·><script·src="../../static.files/storage-4c98445ec4002617.js"></script><script·defer·src="sidebar-items1.78.0.js"></script><script·defer·src="../../static.files/main-12cf3b4f4f9dc36d.js"></script><noscript><link·rel="stylesheet"·href="../../static.files/noscript-04d5337699b92874.css"></noscript><link·rel="alternate·icon"·type="image/png"·href="../../static.files/favicon-16x16-8b506e7a72182f1c.png"><link·rel="alternate·icon"·type="image/png"·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.78.0</span></h2></div><h2·class="location"><a·href="#">Pointer</a></h2><div·class="sidebar-elems"><section><h3><a·href="#required-methods">Required·Methods</a></h3><ul·class="block"><li><a·href="#tymethod.fmt">fmt</a></li></ul><h3><a·href="#implementors">Implementors</a></h3></section><h2><a·href="index.html">In·alloc::fmt</a></h2></div></nav><div·class="sidebar-resizer"></div>
2 ····<main><div·class="width-limiter"><nav·class="sub"><form·class="search-form"><span></span><div·id="sidebar-button"·tabindex="-1"><a·href="../../alloc/all.html"·title="show·sidebar"></a></div><input·class="search-input"·name="search"·aria-label="Run·search·in·the·documentation"·autocomplete="off"·spellcheck="false"·placeholder="Click·or·press·‘S’·to·search,·‘?’·for·more·options…"·type="search"><div·id="help-button"·tabindex="-1"><a·href="../../help.html"·title="help">?</a></div><div·id="settings-menu"·tabindex="-1"><a·href="../../settings.html"·title="settings"><img·width="22"·height="22"·alt="Change·settings"·src="../../static.files/wheel-7b819b6101059cd0.svg"></a></div></form></nav><section·id="main-content"·class="content"><div·class="main-heading"><h1>Trait·<a·href="../index.html">alloc</a>::<wbr><a·href="index.html">fmt</a>::<wbr><a·class="trait"·href="#">Pointer</a><button·id="copy-path"·title="Copy·item·path·to·clipboard"><img·src="../../static.files/clipboard-7571035ce49a181d.svg"·width="19"·height="18"·alt="Copy·item·path"></button></h1><span·class="out-of-band"><span·class="since"·title="Stable·since·Rust·version·1.0.0">1.0.0</span>···<a·class="src"·href="../../src/core/fmt/mod.rs.html#999">source</a>···<button·id="toggle-all-docs"·title="collapse·all·docs">[<span>&#x2212;</span>]</button></span></div><pre·class="rust·item-decl"><code>pub·trait·Pointer·{2 ····<main><div·class="width-limiter"><nav·class="sub"><form·class="search-form"><span></span><div·id="sidebar-button"·tabindex="-1"><a·href="../../alloc/all.html"·title="show·sidebar"></a></div><input·class="search-input"·name="search"·aria-label="Run·search·in·the·documentation"·autocomplete="off"·spellcheck="false"·placeholder="Click·or·press·‘S’·to·search,·‘?’·for·more·options…"·type="search"><div·id="help-button"·tabindex="-1"><a·href="../../help.html"·title="help">?</a></div><div·id="settings-menu"·tabindex="-1"><a·href="../../settings.html"·title="settings"><img·width="22"·height="22"·alt="Change·settings"·src="../../static.files/wheel-7b819b6101059cd0.svg"></a></div></form></nav><section·id="main-content"·class="content"><div·class="main-heading"><h1>Trait·<a·href="../index.html">alloc</a>::<wbr><a·href="index.html">fmt</a>::<wbr><a·class="trait"·href="#">Pointer</a><button·id="copy-path"·title="Copy·item·path·to·clipboard"><img·src="../../static.files/clipboard-7571035ce49a181d.svg"·width="19"·height="18"·alt="Copy·item·path"></button></h1><span·class="out-of-band"><span·class="since"·title="Stable·since·Rust·version·1.0.0">1.0.0</span>···<a·class="src"·href="https://doc.rust-lang.org/1.78.0/src/core/fmt/mod.rs.html#999">source</a>···<button·id="toggle-all-docs"·title="collapse·all·docs">[<span>&#x2212;</span>]</button></span></div><pre·class="rust·item-decl"><code>pub·trait·Pointer·{
3 ····//·Required·method3 ····//·Required·method
4 ····fn·<a·href="#tymethod.fmt"·class="fn">fmt</a>(&amp;self,·f:·&amp;mut·<a·class="struct"·href="struct.Formatter.html"·title="struct·alloc::fmt::Formatter">Formatter</a>&lt;'_&gt;)·-&gt;·<a·class="enum"·href="../../core/result/enum.Result.html"·title="enum·core::result::Result">Result</a>&lt;<a·class="primitive"·href="../../core/primitive.unit.html">()</a>,·<a·class="struct"·href="struct.Error.html"·title="struct·alloc::fmt::Error">Error</a>&gt;;4 ····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.78.0/core/result/enum.Result.html"·title="enum·core::result::Result">Result</a>&lt;<a·class="primitive"·href="https://doc.rust-lang.org/1.78.0/core/primitive.unit.html">()</a>,·<a·class="struct"·href="struct.Error.html"·title="struct·alloc::fmt::Error">Error</a>&gt;;
5 }</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 }</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>
6 <p>The·<code>Pointer</code>·trait·should·format·its·output·as·a·memory·location.·This·is·commonly·presented6 <p>The·<code>Pointer</code>·trait·should·format·its·output·as·a·memory·location.·This·is·commonly·presented
7 as·hexadecimal.</p>7 as·hexadecimal.</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 <h2·id="examples"><a·class="doc-anchor"·href="#examples">§</a>Examples</h2>9 <h2·id="examples"><a·class="doc-anchor"·href="#examples">§</a>Examples</h2>
10 <p>Basic·usage·with·<code>&amp;i32</code>:</p>10 <p>Basic·usage·with·<code>&amp;i32</code>:</p>
  
Offset 30, 16 lines modifiedOffset 30, 16 lines modified
30 <span·class="kw">let·</span>l·=·Length(<span·class="number">42</span>);30 <span·class="kw">let·</span>l·=·Length(<span·class="number">42</span>);
  
31 <span·class="macro">println!</span>(<span·class="string">"l·is·in·memory·here:·{l:p}"</span>);31 <span·class="macro">println!</span>(<span·class="string">"l·is·in·memory·here:·{l:p}"</span>);
  
32 <span·class="kw">let·</span>l_ptr·=·<span·class="macro">format!</span>(<span·class="string">"{l:018p}"</span>);32 <span·class="kw">let·</span>l_ptr·=·<span·class="macro">format!</span>(<span·class="string">"{l:018p}"</span>);
33 <span·class="macro">assert_eq!</span>(l_ptr.len(),·<span·class="number">18</span>);33 <span·class="macro">assert_eq!</span>(l_ptr.len(),·<span·class="number">18</span>);
34 <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"·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">Run</a></div>34 <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"·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">Run</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"><a·class="src·rightside"·href="../../src/core/fmt/mod.rs.html#1002">source</a><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;)·-&gt;·<[·...·truncated·by·diffoscope;·len:·137,·SHA:·5611eaf292a43edd47853f23fe845c7ebecc330ad7d302831cae913df97e33a8·...·]/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"><a·class="src·rightside"·href="https://doc.rust-lang.org/1.78.0/src/core/fmt/mod.rs.html#1002">source</a><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">Forma[·...·truncated·by·diffoscope;·len:·218,·SHA:·3af12c71f19a2f75eeb355333065d0f9dbaa8ec7c355423fbacbc275a1e6ce69·...·]/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></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#2082">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">where36 </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.78.0/src/core/ptr/mod.rs.html#2082">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
37 ····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:·8f4cf05ac6d888b68ef75974cf9d3e0c3d584567c93cc9a5eaa2786081806836·...·]/core/pin/struct.Pin.html"·title="struct·core::pin::Pin">Pin</a>&lt;Ptr&gt;<div·class="where">where37 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.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:·b65bbc7c0bb8ea648a70b643bd4dc6966c69a4bc3f36a77542606797d2fca949·...·]/core/pin/struct.Pin.html"·title="struct·core::pin::Pin">Pin</a>&lt;Ptr&gt;<div·class="where">where
38 ····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"><a·class="src·rightside"·href="../../src/core/fmt/mod.rs.html#2435">source</a><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="primitive"·[·...·truncated·by·diffoscope;·len:·11,·SHA:·3142243e07176a3d6d0bd6a9770d1c65bf3ca49c5f9a117bd4cbf5d3997a2a74·...·]/core/primitive.pointer.html">*const·T</a><div·class="where">where38 ····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"><a·class="src·rightside"·href="https://doc.rust-lang.org/1.78.0/src/core/fmt/mod.rs.html#2435">source</a><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[·...·truncated·by·diffoscope;·len:·65,·SHA:·6335c1d2b1a1a0d6ed879cdeaeff5fc403facf0e952a11925875c8faec2b2c28·...·]/core/primitive.pointer.html">*const·T</a><div·class="where">where
39 ····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"><a·class="src·rightside"·href="../../src/core/fmt/mod.rs.html#2475">source</a><a·href="#impl-Pointer-for[·...·truncated·by·diffoscope;·len:·192,·SHA:·400b81345ee4758aa187f0fba7fe905e31d6bfa297fc682c7293fa308ba9ac32·...·]/core/primitive.pointer.html">*mut·T</a><div·class="where">where39 ····T:·?<a·class="trait"·href="https://doc.rust-lang.org/1.78.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"><a·class="src·rightside"·href="https://doc.rust-lang.org/1.78.0/src/core/fmt/[·...·truncated·by·diffoscope;·len:·273,·SHA:·426a90d2e70f8ed9c9ac745e31f5660e2100558125561a2651fe710fc68f19a3·...·]/core/primitive.pointer.html">*mut·T</a><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><section·id="impl-Pointer-for-%26T"·class="impl"><a·class="src·rightside"·href="../../src/core/fmt/mod.rs.html#2482">source</a><a·href="#impl-Pointer-for-%[·...·truncated·by·diffoscope;·len:·188,·SHA:·97992619c1f88af08eebf1658f210ec19b9bcbe36c08993768cfeb22d7534fb0·...·]/core/primitive.reference.html">&amp;T</a><div·class="where">where40 ····T:·?<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h3></section><section·id="impl-Pointer-for-%26T"·class="impl"><a·class="src·rightside"·href="https://doc.rust-lang.org/1.78.0/src/core/fmt/mo[·...·truncated·by·diffoscope;·len:·269,·SHA:·ef1381e84f342284f9bc03b1a9bb9e96a0f479644a92312744065ff120a868f1·...·]/core/primitive.reference.html">&amp;T</a><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><section·id="impl-Pointer-for-%26mut+T"·class="impl"><a·class="src·rightside"·href="../../src/core/fmt/mod.rs.html#2489">source</a><a·href="#impl-Pointer-f[·...·truncated·by·diffoscope;·len:·196,·SHA:·dd3a97b56bc8b813ac28a45ad436264a4f42f99640d0b3f9e6237616a3ca3704·...·]/core/primitive.reference.html">&amp;mut·T</a><div·class="where">where41 ····T:·?<a·class="trait"·href="https://doc.rust-lang.org/1.78.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"><a·class="src·rightside"·href="https://doc.rust-lang.org/1.78.0/src/core/fm[·...·truncated·by·diffoscope;·len:·277,·SHA:·05e6b68e6863407368656ab65af2aada970e2483a88fa508f478394a613be9e1·...·]/core/primitive.reference.html">&amp;mut·T</a><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><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:·4533d36372281c2679f6c257b357ed4a97a3d78b601428540fd04f67ceb61ece·...·]/core/ptr/non_null/struct.NonNull.html"·title="struct·core::ptr::non_null::NonNull">NonNull</a>&lt;T&gt;<div·class="where">where42 ····T:·?<a·class="trait"·href="https://doc.rust-lang.org/1.78.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:·1d618bc15fc65bf285937a78c54002625a500488cb499c2212916ae70846dafd·...·]/core/ptr/non_null/struct.NonNull.html"·title="struct·core::ptr::non_null::NonNull">NonNull</a>&lt;T&gt;<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><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:·2015,·SHA:·73009b1045460d69c32ad9b74379f2549c3746ddd94f1beab6ba9618f110776a·...·]/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>43 ····T:·?<a·class="trait"·href="https://doc.rust-lang.org/1.78.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:·2177,·SHA:·e0b59163e162c096568d377c7053a90d0dc4db51063351e019919a24126eee33·...·]/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>
27.5 KB
./usr/share/doc/rust-web-doc/html/alloc/fmt/trait.UpperExp.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="`E`·formatting."><title>UpperExp·in·alloc::fmt·-·Rust</title><script>·if·(window.location.protocol·!==·"file:")·document.write(`<link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/SourceSerif4-Regular-46f98efaafac5295.ttf.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/FiraSans-Regular-018c141bf0843ffd.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/FiraSans-Medium-8f9a781e4970d388.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/SourceCodePro-Regular-562dcc5011b6de7d.ttf.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/SourceCodePro-Semibold-d899c5a5c4aeb14a.ttf.woff2">`)</script><link·rel="stylesheet"·href="../../static.files/normalize-76eba96aa4d2e634.css"><link·rel="stylesheet"·href="../../static.files/rustdoc-35f9e32502181f1e.css"><meta·name="rustdoc-vars"·data-root-path="../../"·data-static-root-path="../../static.files/"·data-current-crate="alloc"·data-themes=""·data-resource-suffix="1.78.0"·data-rustdoc-version="1.78.0"·data-channel="1.78.0"·data-search-js="search-42d8da7a6b9792c2.js"·data-settings-js="settings-4313503d2e1961c2.js"·><script·src="../../static.files/storage-4c98445ec4002617.js"></script><script·defer·src="sidebar-items1.78.0.js"></script><script·defer·src="../../static.files/main-12cf3b4f4f9dc36d.js"></script><noscript><link·rel="stylesheet"·href="../../static.files/noscript-04d5337699b92874.css"></noscript><link·rel="alternate·icon"·type="image/png"·href="../../static.files/favicon-16x16-8b506e7a72182f1c.png"><link·rel="alternate·icon"·type="image/png"·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.78.0</span></h2></div><h2·class="location"><a·href="#">UpperExp</a></h2><div·class="sidebar-elems"><section><h3><a·href="#required-methods">Required·Methods</a></h3><ul·class="block"><li><a·href="#tymethod.fmt">fmt</a></li></ul><h3><a·href="#implementors">Implementors</a></h3></section><h2><a·href="index.html">In·alloc::fmt</a></h2></div></nav><div·class="sidebar-resizer"></div>1 <!DOCTYPE·html><html·lang="en"><head><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.write(`<link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/SourceSerif4-Regular-46f98efaafac5295.ttf.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/FiraSans-Regular-018c141bf0843ffd.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/FiraSans-Medium-8f9a781e4970d388.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/SourceCodePro-Regular-562dcc5011b6de7d.ttf.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/SourceCodePro-Semibold-d899c5a5c4aeb14a.ttf.woff2">`)</script><link·rel="stylesheet"·href="../../static.files/normalize-76eba96aa4d2e634.css"><link·rel="stylesheet"·href="../../static.files/rustdoc-35f9e32502181f1e.css"><meta·name="rustdoc-vars"·data-root-path="../../"·data-static-root-path="../../static.files/"·data-current-crate="alloc"·data-themes=""·data-resource-suffix="1.78.0"·data-rustdoc-version="1.78.0"·data-channel="1.78.0"·data-search-js="search-42d8da7a6b9792c2.js"·data-settings-js="settings-4313503d2e1961c2.js"·><script·src="../../static.files/storage-4c98445ec4002617.js"></script><script·defer·src="sidebar-items1.78.0.js"></script><script·defer·src="../../static.files/main-12cf3b4f4f9dc36d.js"></script><noscript><link·rel="stylesheet"·href="../../static.files/noscript-04d5337699b92874.css"></noscript><link·rel="alternate·icon"·type="image/png"·href="../../static.files/favicon-16x16-8b506e7a72182f1c.png"><link·rel="alternate·icon"·type="image/png"·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.78.0</span></h2></div><h2·class="location"><a·href="#">UpperExp</a></h2><div·class="sidebar-elems"><section><h3><a·href="#required-methods">Required·Methods</a></h3><ul·class="block"><li><a·href="#tymethod.fmt">fmt</a></li></ul><h3><a·href="#implementors">Implementors</a></h3></section><h2><a·href="index.html">In·alloc::fmt</a></h2></div></nav><div·class="sidebar-resizer"></div>
2 ····<main><div·class="width-limiter"><nav·class="sub"><form·class="search-form"><span></span><div·id="sidebar-button"·tabindex="-1"><a·href="../../alloc/all.html"·title="show·sidebar"></a></div><input·class="search-input"·name="search"·aria-label="Run·search·in·the·documentation"·autocomplete="off"·spellcheck="false"·placeholder="Click·or·press·‘S’·to·search,·‘?’·for·more·options…"·type="search"><div·id="help-button"·tabindex="-1"><a·href="../../help.html"·title="help">?</a></div><div·id="settings-menu"·tabindex="-1"><a·href="../../settings.html"·title="settings"><img·width="22"·height="22"·alt="Change·settings"·src="../../static.files/wheel-7b819b6101059cd0.svg"></a></div></form></nav><section·id="main-content"·class="content"><div·class="main-heading"><h1>Trait·<a·href="../index.html">alloc</a>::<wbr><a·href="index.html">fmt</a>::<wbr><a·class="trait"·href="#">UpperExp</a><button·id="copy-path"·title="Copy·item·path·to·clipboard"><img·src="../../static.files/clipboard-7571035ce49a181d.svg"·width="19"·height="18"·alt="Copy·item·path"></button></h1><span·class="out-of-band"><span·class="since"·title="Stable·since·Rust·version·1.0.0">1.0.0</span>···<a·class="src"·href="../../src/core/fmt/mod.rs.html#1101">source</a>···<button·id="toggle-all-docs"·title="collapse·all·docs">[<span>&#x2212;</span>]</button></span></div><pre·class="rust·item-decl"><code>pub·trait·UpperExp·{2 ····<main><div·class="width-limiter"><nav·class="sub"><form·class="search-form"><span></span><div·id="sidebar-button"·tabindex="-1"><a·href="../../alloc/all.html"·title="show·sidebar"></a></div><input·class="search-input"·name="search"·aria-label="Run·search·in·the·documentation"·autocomplete="off"·spellcheck="false"·placeholder="Click·or·press·‘S’·to·search,·‘?’·for·more·options…"·type="search"><div·id="help-button"·tabindex="-1"><a·href="../../help.html"·title="help">?</a></div><div·id="settings-menu"·tabindex="-1"><a·href="../../settings.html"·title="settings"><img·width="22"·height="22"·alt="Change·settings"·src="../../static.files/wheel-7b819b6101059cd0.svg"></a></div></form></nav><section·id="main-content"·class="content"><div·class="main-heading"><h1>Trait·<a·href="../index.html">alloc</a>::<wbr><a·href="index.html">fmt</a>::<wbr><a·class="trait"·href="#">UpperExp</a><button·id="copy-path"·title="Copy·item·path·to·clipboard"><img·src="../../static.files/clipboard-7571035ce49a181d.svg"·width="19"·height="18"·alt="Copy·item·path"></button></h1><span·class="out-of-band"><span·class="since"·title="Stable·since·Rust·version·1.0.0">1.0.0</span>···<a·class="src"·href="https://doc.rust-lang.org/1.78.0/src/core/fmt/mod.rs.html#1101">source</a>···<button·id="toggle-all-docs"·title="collapse·all·docs">[<span>&#x2212;</span>]</button></span></div><pre·class="rust·item-decl"><code>pub·trait·UpperExp·{
3 ····//·Required·method3 ····//·Required·method
4 ····fn·<a·href="#tymethod.fmt"·class="fn">fmt</a>(&amp;self,·f:·&amp;mut·<a·class="struct"·href="struct.Formatter.html"·title="struct·alloc::fmt::Formatter">Formatter</a>&lt;'_&gt;)·-&gt;·<a·class="enum"·href="../../core/result/enum.Result.html"·title="enum·core::result::Result">Result</a>&lt;<a·class="primitive"·href="../../core/primitive.unit.html">()</a>,·<a·class="struct"·href="struct.Error.html"·title="struct·alloc::fmt::Error">Error</a>&gt;;4 ····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.78.0/core/result/enum.Result.html"·title="enum·core::result::Result">Result</a>&lt;<a·class="primitive"·href="https://doc.rust-lang.org/1.78.0/core/primitive.unit.html">()</a>,·<a·class="struct"·href="struct.Error.html"·title="struct·alloc::fmt::Error">Error</a>&gt;;
5 }</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 }</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>
6 <p>The·<code>UpperExp</code>·trait·should·format·its·output·in·scientific·notation·with·an·upper-case·<code>E</code>.</p>6 <p>The·<code>UpperExp</code>·trait·should·format·its·output·in·scientific·notation·with·an·upper-case·<code>E</code>.</p>
7 <p>For·more·information·on·formatters,·see·<a·href="../../std/fmt/index.html">the·module-level·documentation</a>.</p>7 <p>For·more·information·on·formatters,·see·<a·href="../../std/fmt/index.html">the·module-level·documentation</a>.</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>Basic·usage·with·<code>f64</code>:</p>9 <p>Basic·usage·with·<code>f64</code>:</p>
  
10 <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·notation10 <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 31, 11 lines modifiedOffset 31, 11 lines modified
31 ····<span·class="string">"l·in·scientific·notation·is:·1E2"31 ····<span·class="string">"l·in·scientific·notation·is:·1E2"
32 </span>);32 </span>);
  
33 <span·class="macro">assert_eq!</span>(33 <span·class="macro">assert_eq!</span>(
34 ····<span·class="macro">format!</span>(<span·class="string">"l·in·scientific·notation·is:·{l:05E}"</span>),34 ····<span·class="macro">format!</span>(<span·class="string">"l·in·scientific·notation·is:·{l:05E}"</span>),
35 ····<span·class="string">"l·in·scientific·notation·is:·001E2"35 ····<span·class="string">"l·in·scientific·notation·is:·001E2"
36 </span>);</code></pre><a·class="test-arrow"·target="_blank"·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">Run</a></div>36 </span>);</code></pre><a·class="test-arrow"·target="_blank"·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">Run</a></div>
37 </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"><a·class="src·rightside"·href="../../src/core/fmt/mod.rs.html#1104">source</a><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;)·-&gt;·<[·...·truncated·by·diffoscope;·len:·137,·SHA:·5611eaf292a43edd47853f23fe845c7ebecc330ad7d302831cae913df97e33a8·...·]/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 </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"><a·class="src·rightside"·href="https://doc.rust-lang.org/1.78.0/src/core/fmt/mod.rs.html#1104">source</a><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">Forma[·...·truncated·by·diffoscope;·len:·218,·SHA:·3af12c71f19a2f75eeb355333065d0f9dbaa8ec7c355423fbacbc275a1e6ce69·...·]/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>
38 </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"><a·class="src·rightside"·href="../../src/core/fmt/float.rs.html#229">source</a><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"·href="../[·...·truncated·by·diffoscope;·len:·6624,·SHA:·3b81302f7ed692f9184570d3edf5031609fe0fa8240d5eb646a410fffc3cf22e·...·]/core/primitive.reference.html">&amp;T</a><div·class="where">where38 </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"><a·class="src·rightside"·href="https://doc.rust-lang.org/1.78.0/src/core/fmt/float.rs.html#229">source</a><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·[·...·truncated·by·diffoscope;·len:·7434,·SHA:·4158f7ceb0f7bf5afe0fe4fc155ef5e9f96b58be16f86628d8f00c638d717b9a·...·]/core/primitive.reference.html">&amp;T</a><div·class="where">where
39 ····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"><a·class="src·rightside"·href="../../src/core/fmt/mod.rs.html#2343">source</a><a·href="#impl-UpperExp[·...·truncated·by·diffoscope;·len:·201,·SHA:·10dbe2199265e8e606c54e7e0ecdac0812c5cbeec821e25a7e93a9a264c30440·...·]/core/primitive.reference.html">&amp;mut·T</a><div·class="where">where39 ····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.78.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"><a·class="src·rightside"·href="https://doc.rust-lang.org/1.78.0/src/core/f[·...·truncated·by·diffoscope;·len:·282,·SHA:·9a1307377b7df44fa4976725c871d76204a29fd357f8e8b8f0986fc1232a7234·...·]/core/primitive.reference.html">&amp;mut·T</a><div·class="where">where
40 ····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>40 ····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.78.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>
28.0 KB
./usr/share/doc/rust-web-doc/html/alloc/fmt/trait.UpperHex.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="`X`·formatting."><title>UpperHex·in·alloc::fmt·-·Rust</title><script>·if·(window.location.protocol·!==·"file:")·document.write(`<link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/SourceSerif4-Regular-46f98efaafac5295.ttf.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/FiraSans-Regular-018c141bf0843ffd.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/FiraSans-Medium-8f9a781e4970d388.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/SourceCodePro-Regular-562dcc5011b6de7d.ttf.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/SourceCodePro-Semibold-d899c5a5c4aeb14a.ttf.woff2">`)</script><link·rel="stylesheet"·href="../../static.files/normalize-76eba96aa4d2e634.css"><link·rel="stylesheet"·href="../../static.files/rustdoc-35f9e32502181f1e.css"><meta·name="rustdoc-vars"·data-root-path="../../"·data-static-root-path="../../static.files/"·data-current-crate="alloc"·data-themes=""·data-resource-suffix="1.78.0"·data-rustdoc-version="1.78.0"·data-channel="1.78.0"·data-search-js="search-42d8da7a6b9792c2.js"·data-settings-js="settings-4313503d2e1961c2.js"·><script·src="../../static.files/storage-4c98445ec4002617.js"></script><script·defer·src="sidebar-items1.78.0.js"></script><script·defer·src="../../static.files/main-12cf3b4f4f9dc36d.js"></script><noscript><link·rel="stylesheet"·href="../../static.files/noscript-04d5337699b92874.css"></noscript><link·rel="alternate·icon"·type="image/png"·href="../../static.files/favicon-16x16-8b506e7a72182f1c.png"><link·rel="alternate·icon"·type="image/png"·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.78.0</span></h2></div><h2·class="location"><a·href="#">UpperHex</a></h2><div·class="sidebar-elems"><section><h3><a·href="#required-methods">Required·Methods</a></h3><ul·class="block"><li><a·href="#tymethod.fmt">fmt</a></li></ul><h3><a·href="#implementors">Implementors</a></h3></section><h2><a·href="index.html">In·alloc::fmt</a></h2></div></nav><div·class="sidebar-resizer"></div>1 <!DOCTYPE·html><html·lang="en"><head><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.write(`<link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/SourceSerif4-Regular-46f98efaafac5295.ttf.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/FiraSans-Regular-018c141bf0843ffd.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/FiraSans-Medium-8f9a781e4970d388.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/SourceCodePro-Regular-562dcc5011b6de7d.ttf.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/SourceCodePro-Semibold-d899c5a5c4aeb14a.ttf.woff2">`)</script><link·rel="stylesheet"·href="../../static.files/normalize-76eba96aa4d2e634.css"><link·rel="stylesheet"·href="../../static.files/rustdoc-35f9e32502181f1e.css"><meta·name="rustdoc-vars"·data-root-path="../../"·data-static-root-path="../../static.files/"·data-current-crate="alloc"·data-themes=""·data-resource-suffix="1.78.0"·data-rustdoc-version="1.78.0"·data-channel="1.78.0"·data-search-js="search-42d8da7a6b9792c2.js"·data-settings-js="settings-4313503d2e1961c2.js"·><script·src="../../static.files/storage-4c98445ec4002617.js"></script><script·defer·src="sidebar-items1.78.0.js"></script><script·defer·src="../../static.files/main-12cf3b4f4f9dc36d.js"></script><noscript><link·rel="stylesheet"·href="../../static.files/noscript-04d5337699b92874.css"></noscript><link·rel="alternate·icon"·type="image/png"·href="../../static.files/favicon-16x16-8b506e7a72182f1c.png"><link·rel="alternate·icon"·type="image/png"·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.78.0</span></h2></div><h2·class="location"><a·href="#">UpperHex</a></h2><div·class="sidebar-elems"><section><h3><a·href="#required-methods">Required·Methods</a></h3><ul·class="block"><li><a·href="#tymethod.fmt">fmt</a></li></ul><h3><a·href="#implementors">Implementors</a></h3></section><h2><a·href="index.html">In·alloc::fmt</a></h2></div></nav><div·class="sidebar-resizer"></div>
2 ····<main><div·class="width-limiter"><nav·class="sub"><form·class="search-form"><span></span><div·id="sidebar-button"·tabindex="-1"><a·href="../../alloc/all.html"·title="show·sidebar"></a></div><input·class="search-input"·name="search"·aria-label="Run·search·in·the·documentation"·autocomplete="off"·spellcheck="false"·placeholder="Click·or·press·‘S’·to·search,·‘?’·for·more·options…"·type="search"><div·id="help-button"·tabindex="-1"><a·href="../../help.html"·title="help">?</a></div><div·id="settings-menu"·tabindex="-1"><a·href="../../settings.html"·title="settings"><img·width="22"·height="22"·alt="Change·settings"·src="../../static.files/wheel-7b819b6101059cd0.svg"></a></div></form></nav><section·id="main-content"·class="content"><div·class="main-heading"><h1>Trait·<a·href="../index.html">alloc</a>::<wbr><a·href="index.html">fmt</a>::<wbr><a·class="trait"·href="#">UpperHex</a><button·id="copy-path"·title="Copy·item·path·to·clipboard"><img·src="../../static.files/clipboard-7571035ce49a181d.svg"·width="19"·height="18"·alt="Copy·item·path"></button></h1><span·class="out-of-band"><span·class="since"·title="Stable·since·Rust·version·1.0.0">1.0.0</span>···<a·class="src"·href="../../src/core/fmt/mod.rs.html#948">source</a>···<button·id="toggle-all-docs"·title="collapse·all·docs">[<span>&#x2212;</span>]</button></span></div><pre·class="rust·item-decl"><code>pub·trait·UpperHex·{2 ····<main><div·class="width-limiter"><nav·class="sub"><form·class="search-form"><span></span><div·id="sidebar-button"·tabindex="-1"><a·href="../../alloc/all.html"·title="show·sidebar"></a></div><input·class="search-input"·name="search"·aria-label="Run·search·in·the·documentation"·autocomplete="off"·spellcheck="false"·placeholder="Click·or·press·‘S’·to·search,·‘?’·for·more·options…"·type="search"><div·id="help-button"·tabindex="-1"><a·href="../../help.html"·title="help">?</a></div><div·id="settings-menu"·tabindex="-1"><a·href="../../settings.html"·title="settings"><img·width="22"·height="22"·alt="Change·settings"·src="../../static.files/wheel-7b819b6101059cd0.svg"></a></div></form></nav><section·id="main-content"·class="content"><div·class="main-heading"><h1>Trait·<a·href="../index.html">alloc</a>::<wbr><a·href="index.html">fmt</a>::<wbr><a·class="trait"·href="#">UpperHex</a><button·id="copy-path"·title="Copy·item·path·to·clipboard"><img·src="../../static.files/clipboard-7571035ce49a181d.svg"·width="19"·height="18"·alt="Copy·item·path"></button></h1><span·class="out-of-band"><span·class="since"·title="Stable·since·Rust·version·1.0.0">1.0.0</span>···<a·class="src"·href="https://doc.rust-lang.org/1.78.0/src/core/fmt/mod.rs.html#948">source</a>···<button·id="toggle-all-docs"·title="collapse·all·docs">[<span>&#x2212;</span>]</button></span></div><pre·class="rust·item-decl"><code>pub·trait·UpperHex·{
3 ····//·Required·method3 ····//·Required·method
4 ····fn·<a·href="#tymethod.fmt"·class="fn">fmt</a>(&amp;self,·f:·&amp;mut·<a·class="struct"·href="struct.Formatter.html"·title="struct·alloc::fmt::Formatter">Formatter</a>&lt;'_&gt;)·-&gt;·<a·class="enum"·href="../../core/result/enum.Result.html"·title="enum·core::result::Result">Result</a>&lt;<a·class="primitive"·href="../../core/primitive.unit.html">()</a>,·<a·class="struct"·href="struct.Error.html"·title="struct·alloc::fmt::Error">Error</a>&gt;;4 ····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.78.0/core/result/enum.Result.html"·title="enum·core::result::Result">Result</a>&lt;<a·class="primitive"·href="https://doc.rust-lang.org/1.78.0/core/primitive.unit.html">()</a>,·<a·class="struct"·href="struct.Error.html"·title="struct·alloc::fmt::Error">Error</a>&gt;;
5 }</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 }</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>
6 <p>The·<code>UpperHex</code>·trait·should·format·its·output·as·a·number·in·hexadecimal,·with·<code>A</code>·through·<code>F</code>6 <p>The·<code>UpperHex</code>·trait·should·format·its·output·as·a·number·in·hexadecimal,·with·<code>A</code>·through·<code>F</code>
7 in·upper·case.</p>7 in·upper·case.</p>
8 <p>For·primitive·signed·integers·(<code>i8</code>·to·<code>i128</code>,·and·<code>isize</code>),8 <p>For·primitive·signed·integers·(<code>i8</code>·to·<code>i128</code>,·and·<code>isize</code>),
9 negative·values·are·formatted·as·the·two’s·complement·representation.</p>9 negative·values·are·formatted·as·the·two’s·complement·representation.</p>
10 <p>The·alternate·flag,·<code>#</code>,·adds·a·<code>0x</code>·in·front·of·the·output.</p>10 <p>The·alternate·flag,·<code>#</code>,·adds·a·<code>0x</code>·in·front·of·the·output.</p>
11 <p>For·more·information·on·formatters,·see·<a·href="../../std/fmt/index.html">the·module-level·documentation</a>.</p>11 <p>For·more·information·on·formatters,·see·<a·href="../../std/fmt/index.html">the·module-level·documentation</a>.</p>
Offset 33, 14 lines modifiedOffset 33, 14 lines modified
33 }33 }
  
34 <span·class="kw">let·</span>l·=·Length(i32::MAX);34 <span·class="kw">let·</span>l·=·Length(i32::MAX);
  
35 <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:X}"</span>),·<span·class="string">"l·as·hex·is:·7FFFFFFF"</span>);
  
36 <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"·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">Run</a></div>36 <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"·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">Run</a></div>
37 </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"><a·class="src·rightside"·href="../../src/core/fmt/mod.rs.html#951">source</a><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;)·-&gt;·<a[·...·truncated·by·diffoscope;·len:·136,·SHA:·731bf6754b00624b148e6401ba10758e486bdaf35f5f0a11d686d315c1aa171d·...·]/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 </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"><a·class="src·rightside"·href="https://doc.rust-lang.org/1.78.0/src/core/fmt/mod.rs.html#951">source</a><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">Format[·...·truncated·by·diffoscope;·len:·217,·SHA:·0628040997169d46c9badfd239178940d9e9e9029683558651e0e87aae3fcafb·...·]/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>
38 </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"><a·class="src·rightside"·href="../../src/core/fmt/num.rs.html#179">source</a><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:·4637,·SHA:·b0c475a9f0644422e25a2ef623c41f8a6ea17b17bc39ce488f97913158f7db22·...·]/core/primitive.reference.html">&amp;T</a><div·class="where">where38 </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"><a·class="src·rightside"·href="https://doc.rust-lang.org/1.78.0/src/core/fmt/num.rs.html#179">source</a><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·cla[·...·truncated·by·diffoscope;·len:·5339,·SHA:·7a37d27179c1ff46ef019c9755f8990767d49a7066fb5440d1eb5ac2c4589fa5·...·]/core/primitive.reference.html">&amp;T</a><div·class="where">where
39 ····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"><a·class="src·rightside"·href="../../src/core/fmt/mod.rs.html#2343">source</a><a·href="#impl-UpperHex[·...·truncated·by·diffoscope;·len:·201,·SHA:·832383f9f37b4c125cc5eced422b64c44c9647afa0b2582b22d829ad30c15366·...·]/core/primitive.reference.html">&amp;mut·T</a><div·class="where">where39 ····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.78.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"><a·class="src·rightside"·href="https://doc.rust-lang.org/1.78.0/src/core/f[·...·truncated·by·diffoscope;·len:·282,·SHA:·292b4238fee4c165da62c04a962ada5c28d4cefd3a043d331ddcf58a4fe19b90·...·]/core/primitive.reference.html">&amp;mut·T</a><div·class="where">where
40 ····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:·1cf8f5696e45a2bb26891ae7fba8cc8be39ab30f650ef48bda9ba49bb309de22·...·]/core/num/nonzero/struct.NonZero.html"·title="struct·core::num::nonzero::NonZero">NonZero</a>&lt;T&gt;<div·class="where">where40 ····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.78.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:·ba241445a25cbfb5c216fbc47ba218f022095046c674bb955665b79a5e91d5ab·...·]/core/num/nonzero/struct.NonZero.html"·title="struct·core::num::nonzero::NonZero">NonZero</a>&lt;T&gt;<div·class="where">where
41 ····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">where41 ····T:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.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:·f6e7ed62ed084dbad12a35a77790ab7aa65656ad7ccf8d0f1f893d0dd607a694·...·]/core/num/saturating/struct.Saturating.html"·title="struct·core::num::saturating::Saturating">Saturating</a>&lt;T&gt;<div·class="where">where
42 ····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">where42 ····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.78.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:·eee8e539503b40575128132dcd1f9dcb6f6984daeb50d3bd2f8e39019db44c7a·...·]/core/num/wrapping/struct.Wrapping.html"·title="struct·core::num::wrapping::Wrapping">Wrapping</a>&lt;T&gt;<div·class="where">where
43 ····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>43 ····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>
24.6 KB
./usr/share/doc/rust-web-doc/html/alloc/fmt/trait.Write.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·writing·or·formatting·into·Unicode-accepting·buffers·or·streams."><title>Write·in·alloc::fmt·-·Rust</title><script>·if·(window.location.protocol·!==·"file:")·document.write(`<link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/SourceSerif4-Regular-46f98efaafac5295.ttf.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/FiraSans-Regular-018c141bf0843ffd.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/FiraSans-Medium-8f9a781e4970d388.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/SourceCodePro-Regular-562dcc5011b6de7d.ttf.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/SourceCodePro-Semibold-d899c5a5c4aeb14a.ttf.woff2">`)</script><link·rel="stylesheet"·href="../../static.files/normalize-76eba96aa4d2e634.css"><link·rel="stylesheet"·href="../../static.files/rustdoc-35f9e32502181f1e.css"><meta·name="rustdoc-vars"·data-root-path="../../"·data-static-root-path="../../static.files/"·data-current-crate="alloc"·data-themes=""·data-resource-suffix="1.78.0"·data-rustdoc-version="1.78.0"·data-channel="1.78.0"·data-search-js="search-42d8da7a6b9792c2.js"·data-settings-js="settings-4313503d2e1961c2.js"·><script·src="../../static.files/storage-4c98445ec4002617.js"></script><script·defer·src="sidebar-items1.78.0.js"></script><script·defer·src="../../static.files/main-12cf3b4f4f9dc36d.js"></script><noscript><link·rel="stylesheet"·href="../../static.files/noscript-04d5337699b92874.css"></noscript><link·rel="alternate·icon"·type="image/png"·href="../../static.files/favicon-16x16-8b506e7a72182f1c.png"><link·rel="alternate·icon"·type="image/png"·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.78.0</span></h2></div><h2·class="location"><a·href="#">Write</a></h2><div·class="sidebar-elems"><section><h3><a·href="#required-methods">Required·Methods</a></h3><ul·class="block"><li><a·href="#tymethod.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">write_char</a></li><li><a·href="#method.write_fmt">write_fmt</a></li></ul><h3><a·href="#implementors">Implementors</a></h3></section><h2><a·href="index.html">In·alloc::fmt</a></h2></div></nav><div·class="sidebar-resizer"></div>1 <!DOCTYPE·html><html·lang="en"><head><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.write(`<link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/SourceSerif4-Regular-46f98efaafac5295.ttf.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/FiraSans-Regular-018c141bf0843ffd.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/FiraSans-Medium-8f9a781e4970d388.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/SourceCodePro-Regular-562dcc5011b6de7d.ttf.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/SourceCodePro-Semibold-d899c5a5c4aeb14a.ttf.woff2">`)</script><link·rel="stylesheet"·href="../../static.files/normalize-76eba96aa4d2e634.css"><link·rel="stylesheet"·href="../../static.files/rustdoc-35f9e32502181f1e.css"><meta·name="rustdoc-vars"·data-root-path="../../"·data-static-root-path="../../static.files/"·data-current-crate="alloc"·data-themes=""·data-resource-suffix="1.78.0"·data-rustdoc-version="1.78.0"·data-channel="1.78.0"·data-search-js="search-42d8da7a6b9792c2.js"·data-settings-js="settings-4313503d2e1961c2.js"·><script·src="../../static.files/storage-4c98445ec4002617.js"></script><script·defer·src="sidebar-items1.78.0.js"></script><script·defer·src="../../static.files/main-12cf3b4f4f9dc36d.js"></script><noscript><link·rel="stylesheet"·href="../../static.files/noscript-04d5337699b92874.css"></noscript><link·rel="alternate·icon"·type="image/png"·href="../../static.files/favicon-16x16-8b506e7a72182f1c.png"><link·rel="alternate·icon"·type="image/png"·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.78.0</span></h2></div><h2·class="location"><a·href="#">Write</a></h2><div·class="sidebar-elems"><section><h3><a·href="#required-methods">Required·Methods</a></h3><ul·class="block"><li><a·href="#tymethod.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">write_char</a></li><li><a·href="#method.write_fmt">write_fmt</a></li></ul><h3><a·href="#implementors">Implementors</a></h3></section><h2><a·href="index.html">In·alloc::fmt</a></h2></div></nav><div·class="sidebar-resizer"></div>
2 ····<main><div·class="width-limiter"><nav·class="sub"><form·class="search-form"><span></span><div·id="sidebar-button"·tabindex="-1"><a·href="../../alloc/all.html"·title="show·sidebar"></a></div><input·class="search-input"·name="search"·aria-label="Run·search·in·the·documentation"·autocomplete="off"·spellcheck="false"·placeholder="Click·or·press·‘S’·to·search,·‘?’·for·more·options…"·type="search"><div·id="help-button"·tabindex="-1"><a·href="../../help.html"·title="help">?</a></div><div·id="settings-menu"·tabindex="-1"><a·href="../../settings.html"·title="settings"><img·width="22"·height="22"·alt="Change·settings"·src="../../static.files/wheel-7b819b6101059cd0.svg"></a></div></form></nav><section·id="main-content"·class="content"><div·class="main-heading"><h1>Trait·<a·href="../index.html">alloc</a>::<wbr><a·href="index.html">fmt</a>::<wbr><a·class="trait"·href="#">Write</a><button·id="copy-path"·title="Copy·item·path·to·clipboard"><img·src="../../static.files/clipboard-7571035ce49a181d.svg"·width="19"·height="18"·alt="Copy·item·path"></button></h1><span·class="out-of-band"><span·class="since"·title="Stable·since·Rust·version·1.0.0">1.0.0</span>···<a·class="src"·href="../../src/core/fmt/mod.rs.html#108">source</a>···<button·id="toggle-all-docs"·title="collapse·all·docs">[<span>&#x2212;</span>]</button></span></div><pre·class="rust·item-decl"><code>pub·trait·Write·{2 ····<main><div·class="width-limiter"><nav·class="sub"><form·class="search-form"><span></span><div·id="sidebar-button"·tabindex="-1"><a·href="../../alloc/all.html"·title="show·sidebar"></a></div><input·class="search-input"·name="search"·aria-label="Run·search·in·the·documentation"·autocomplete="off"·spellcheck="false"·placeholder="Click·or·press·‘S’·to·search,·‘?’·for·more·options…"·type="search"><div·id="help-button"·tabindex="-1"><a·href="../../help.html"·title="help">?</a></div><div·id="settings-menu"·tabindex="-1"><a·href="../../settings.html"·title="settings"><img·width="22"·height="22"·alt="Change·settings"·src="../../static.files/wheel-7b819b6101059cd0.svg"></a></div></form></nav><section·id="main-content"·class="content"><div·class="main-heading"><h1>Trait·<a·href="../index.html">alloc</a>::<wbr><a·href="index.html">fmt</a>::<wbr><a·class="trait"·href="#">Write</a><button·id="copy-path"·title="Copy·item·path·to·clipboard"><img·src="../../static.files/clipboard-7571035ce49a181d.svg"·width="19"·height="18"·alt="Copy·item·path"></button></h1><span·class="out-of-band"><span·class="since"·title="Stable·since·Rust·version·1.0.0">1.0.0</span>···<a·class="src"·href="https://doc.rust-lang.org/1.78.0/src/core/fmt/mod.rs.html#108">source</a>···<button·id="toggle-all-docs"·title="collapse·all·docs">[<span>&#x2212;</span>]</button></span></div><pre·class="rust·item-decl"><code>pub·trait·Write·{
3 ····//·Required·method3 ····//·Required·method
4 ····fn·<a·href="#tymethod.write_str"·class="fn">write_str</a>(&amp;mut·self,·s:·&amp;<a·class="primitive"·href="../../core/primitive.str.html">str</a>)·-&gt;·<a·class="enum"·href="../../core/result/enum.Result.html"·title="enum·core::result::Result">Result</a>&lt;<a·class="primitive"·href="../../core/primitive.unit.html">()</a>,·<a·class="struct"·href="struct.Error.html"·title="struct·alloc::fmt::Error">Error</a>&gt;;4 ····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.78.0/core/primitive.str.html">str</a>)·-&gt;·<a·class="enum"·href="https://doc.rust-lang.org/1.78.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:·481878a1961f0f8d1e18bb5d5e0d62b82a28a5573f87ac04ed1d8e92ac24ff12·...·]/core/primitive.unit.html">()</a>,·<a·class="struct"·href="struct.Error.html"·title="struct·alloc::fmt::Error">Error</a>&gt;;
  
5 ····//·Provided·methods5 ····//·Provided·methods
6 ····fn·<a·href="#method.write_char"·class="fn">write_char</a>(&amp;mut·self,·c:·<a·class="primitive"·href="../../core/primitive.char.html">char</a>)·-&gt;·<a·class="enum"·href="../../core/result/enum.Result.html"·title="enum·core::result::Result">Result</a>&lt;<a·class="primitive"·href="../../core/primitive.unit.html">()</a>,·<a·class="struct"·href="struct.Error.html"·title="struct·alloc::fmt::Error">Error</a>&gt;·{·...·}6 ····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.78.0/core/primitive.char.html">char</a>)·-&gt;·<a·class="enum"·href="https://doc.rust-lang.org/1.78.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:·4a46fd4e80d87ab1d7617bb379721aa69999930224b3eca37c73c8429cd1104c·...·]/core/primitive.unit.html">()</a>,·<a·class="struct"·href="struct.Error.html"·title="struct·alloc::fmt::Error">Error</a>&gt;·{·...·}
7 <span·class="item-spacer"></span>····fn·<a·href="#method.write_fmt"·class="fn">write_fmt</a>(&amp;mut·self,·args:·<a·class="struct"·href="struct.Arguments.html"·title="struct·alloc::fmt::Arguments">Arguments</a>&lt;'_&gt;)·-&gt;·<a·class="enum"·href="../../core/result/enum.Result.html"·title="enum·core::result::Result">Result</a>&lt;<a·class="primitive"·href="../../core/primitive.unit.html">()</a>,·<a·class="struct"·href="struct.Error.html"·title="struct·alloc::fmt::Error">Error</a>&gt;·{·...·}7 <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.78.0/core/result/enum.Result.html"·title="enum·core::result::Result">Result</a>&lt;<a·class="primitive"·href="https://doc.rust-lang.org/1.78.0/core/primitive.unit.html">()</a>,·<a·class="struct"·href="struct.Error.html"·title="struct·alloc::fmt::Error">Error</a>&gt;·{·...·}
8 }</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 }</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>
9 <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·only9 <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
10 want·to·accept·Unicode·and·you·don’t·need·flushing,·you·should·implement·this·trait;10 want·to·accept·Unicode·and·you·don’t·need·flushing,·you·should·implement·this·trait;
11 otherwise·you·should·implement·<a·href="../../std/io/trait.Write.html"><code>std::io::Write</code></a>.</p>11 otherwise·you·should·implement·<a·href="../../std/io/trait.Write.html"><code>std::io::Write</code></a>.</p>
12 </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"><a·class="src·rightside"·href="../../src/core/fmt/mod.rs.html#138">source</a><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="../../core[·...·truncated·by·diffoscope;·len:·106,·SHA:·07d92ef77ba91162da0de1efd9699db2d76c2037cccecd3ba458df30c833df64·...·]/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·write12 </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"><a·class="src·rightside"·href="https://doc.rust-lang.org/1.78.0/src/core/fmt/mod.rs.html#138">source</a><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.78.0/core/primitive.str[·...·truncated·by·diffoscope;·len:·214,·SHA:·5337e19aadc2b27427ece8b18584664f473ff165716e86a5300d585476dda115·...·]/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
13 succeeded.</p>13 succeeded.</p>
14 <p>This·method·can·only·succeed·if·the·entire·string·slice·was·successfully14 <p>This·method·can·only·succeed·if·the·entire·string·slice·was·successfully
15 written,·and·this·method·will·not·return·until·all·data·has·been15 written,·and·this·method·will·not·return·until·all·data·has·been
16 written·or·an·error·occurs.</p>16 written·or·an·error·occurs.</p>
17 <h5·id="errors"><a·class="doc-anchor"·href="#errors">§</a>Errors</h5>17 <h5·id="errors"><a·class="doc-anchor"·href="#errors">§</a>Errors</h5>
18 <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>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>
19 <p>The·purpose·of·that·error·is·to·abort·the·formatting·operation·when·the·underlying19 <p>The·purpose·of·that·error·is·to·abort·the·formatting·operation·when·the·underlying
Offset 26, 16 lines modifiedOffset 26, 16 lines modified
26 <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;·{26 <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 ····f.write_str(s)27 ····f.write_str(s)
28 }28 }
  
29 <span·class="kw">let·</span><span·class="kw-2">mut·</span>buf·=·String::new();29 <span·class="kw">let·</span><span·class="kw-2">mut·</span>buf·=·String::new();
30 writer(<span·class="kw-2">&amp;mut·</span>buf,·<span·class="string">"hola"</span>).unwrap();30 writer(<span·class="kw-2">&amp;mut·</span>buf,·<span·class="string">"hola"</span>).unwrap();
31 <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"·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">Run</a></div>31 <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"·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">Run</a></div>
32 </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#166">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>32 </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.78.0/src/core/fmt/mod.rs.html#166">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.78.0/core/primitive.c[·...·truncated·by·diffoscope;·len:·442,·SHA:·4029fc3c9ef5161998ca4eb65b20aefad8c32132b36ba726cf97d9c73b85b98e·...·]/core/primitive.char.html"·title="primitive·char"><code>char</code></a>·into·this·writer,·returning·whether·the·write·succeeded.</p>
33 <p>A·single·<a·href="../../core/primitive.char.html"·title="primitive·char"><code>char</code></a>·may·be·encoded·as·more·than·one·byte.33 <p>A·single·<a·href="https://doc.rust-lang.org/1.78.0/core/primitive.char.html"·title="primitive·char"><code>char</code></a>·may·be·encoded·as·more·than·one·byte.
34 This·method·can·only·succeed·if·the·entire·byte·sequence·was·successfully34 This·method·can·only·succeed·if·the·entire·byte·sequence·was·successfully
35 written,·and·this·method·will·not·return·until·all·data·has·been35 written,·and·this·method·will·not·return·until·all·data·has·been
36 written·or·an·error·occurs.</p>36 written·or·an·error·occurs.</p>
37 <h5·id="errors-1"><a·class="doc-anchor"·href="#errors-1">§</a>Errors</h5>37 <h5·id="errors-1"><a·class="doc-anchor"·href="#errors-1">§</a>Errors</h5>
38 <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>38 <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 <h5·id="examples-1"><a·class="doc-anchor"·href="#examples-1">§</a>Examples</h5>39 <h5·id="examples-1"><a·class="doc-anchor"·href="#examples-1">§</a>Examples</h5>
40 <div·class="example-wrap"><pre·class="rust·rust-example-rendered"><code><span·class="kw">use·</span>std::fmt::{Error,·Write};40 <div·class="example-wrap"><pre·class="rust·rust-example-rendered"><code><span·class="kw">use·</span>std::fmt::{Error,·Write};
Offset 44, 25 lines modifiedOffset 44, 25 lines modified
44 ····f.write_char(c)44 ····f.write_char(c)
45 }45 }
  
46 <span·class="kw">let·</span><span·class="kw-2">mut·</span>buf·=·String::new();46 <span·class="kw">let·</span><span·class="kw-2">mut·</span>buf·=·String::new();
47 writer(<span·class="kw-2">&amp;mut·</span>buf,·<span·class="string">'a'</span>).unwrap();47 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">'b'</span>).unwrap();48 writer(<span·class="kw-2">&amp;mut·</span>buf,·<span·class="string">'b'</span>).unwrap();
49 <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"·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">Run</a></div>49 <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"·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">Run</a></div>
50 </div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.write_fmt"·class="method"><a·class="src·rightside"·href="../../src/core/fmt/mod.rs.html#194">source</a><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;'_&gt;)·[·...·truncated·by·diffoscope;·len:·354,·SHA:·60009022231f83e4c0c8cf85a79842ea163df427844f6b8163b22fa51713f55f·...·]/core/macro.write.html"·title="macro·core::write"><code>write!</code></a>·macro·with·implementors·of·this·trait.</p>50 </div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.write_fmt"·class="method"><a·class="src·rightside"·href="https://doc.rust-lang.org/1.78.0/src/core/fmt/mod.rs.html#194">source</a><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[·...·truncated·by·diffoscope;·len:·462,·SHA:·045ea292dd8c1907c94f96eefef371aba0a6a3ec0c31d531e636cc6d36af890c·...·]/core/macro.write.html"·title="macro·core::write"><code>write!</code></a>·macro·with·implementors·of·this·trait.</p>
51 <p>This·method·should·generally·not·be·invoked·manually,·but·rather·through51 <p>This·method·should·generally·not·be·invoked·manually,·but·rather·through
52 the·<a·href="../../core/macro.write.html"·title="macro·core::write"><code>write!</code></a>·macro·itself.</p>52 the·<a·href="https://doc.rust-lang.org/1.78.0/core/macro.write.html"·title="macro·core::write"><code>write!</code></a>·macro·itself.</p>
53 <h5·id="errors-2"><a·class="doc-anchor"·href="#errors-2">§</a>Errors</h5>53 <h5·id="errors-2"><a·class="doc-anchor"·href="#errors-2">§</a>Errors</h5>
54 <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·see54 <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
55 <a·href="trait.Write.html#tymethod.write_str"·title="method·alloc::fmt::Write::write_str">write_str</a>·for·details.</p>55 <a·href="trait.Write.html#tymethod.write_str"·title="method·alloc::fmt::Write::write_str">write_str</a>·for·details.</p>
56 <h5·id="examples-2"><a·class="doc-anchor"·href="#examples-2">§</a>Examples</h5>56 <h5·id="examples-2"><a·class="doc-anchor"·href="#examples-2">§</a>Examples</h5>
57 <div·class="example-wrap"><pre·class="rust·rust-example-rendered"><code><span·class="kw">use·</span>std::fmt::{Error,·Write};57 <div·class="example-wrap"><pre·class="rust·rust-example-rendered"><code><span·class="kw">use·</span>std::fmt::{Error,·Write};
  
58 <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;·{58 <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 ····f.write_fmt(<span·class="macro">format_args!</span>(<span·class="string">"{s}"</span>))59 ····f.write_fmt(<span·class="macro">format_args!</span>(<span·class="string">"{s}"</span>))
60 }60 }
  
61 <span·class="kw">let·</span><span·class="kw-2">mut·</span>buf·=·String::new();61 <span·class="kw">let·</span><span·class="kw-2">mut·</span>buf·=·String::new();
62 writer(<span·class="kw-2">&amp;mut·</span>buf,·<span·class="string">"world"</span>).unwrap();62 writer(<span·class="kw-2">&amp;mut·</span>buf,·<span·class="string">"world"</span>).unwrap();
63 <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"·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">Run</a></div>63 <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"·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">Run</a></div>
64 </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"><a·class="src·rightside"·href="../../src/alloc/string.rs.html#2909-2921">source</a><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#2300">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:·79ec2e669c0fef1362434ec218593404d8cf4faa376033e95dd5e18d661fab31·...·]/core/primitive.reference.html">&amp;mut·W</a><div·class="where">where64 </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"><a·class="src·rightside"·href="../../src/alloc/string.rs.html#2909-2921">source</a><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.78.0/src/core/fmt/mod.rs.html#2300">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:·0b16138f168b8698ff29b809f2049ddfb2100437ffc8acee148654cce399e00c·...·]/core/primitive.reference.html">&amp;mut·W</a><div·class="where">where
65 ····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>65 ····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.78.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>
9.9 KB
./usr/share/doc/rust-web-doc/html/alloc/fmt/type.Result.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="The·type·returned·by·formatter·methods."><title>Result·in·alloc::fmt·-·Rust</title><script>·if·(window.location.protocol·!==·"file:")·document.write(`<link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/SourceSerif4-Regular-46f98efaafac5295.ttf.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/FiraSans-Regular-018c141bf0843ffd.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/FiraSans-Medium-8f9a781e4970d388.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/SourceCodePro-Regular-562dcc5011b6de7d.ttf.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/SourceCodePro-Semibold-d899c5a5c4aeb14a.ttf.woff2">`)</script><link·rel="stylesheet"·href="../../static.files/normalize-76eba96aa4d2e634.css"><link·rel="stylesheet"·href="../../static.files/rustdoc-35f9e32502181f1e.css"><meta·name="rustdoc-vars"·data-root-path="../../"·data-static-root-path="../../static.files/"·data-current-crate="alloc"·data-themes=""·data-resource-suffix="1.78.0"·data-rustdoc-version="1.78.0"·data-channel="1.78.0"·data-search-js="search-42d8da7a6b9792c2.js"·data-settings-js="settings-4313503d2e1961c2.js"·><script·src="../../static.files/storage-4c98445ec4002617.js"></script><script·defer·src="sidebar-items1.78.0.js"></script><script·defer·src="../../static.files/main-12cf3b4f4f9dc36d.js"></script><noscript><link·rel="stylesheet"·href="../../static.files/noscript-04d5337699b92874.css"></noscript><link·rel="alternate·icon"·type="image/png"·href="../../static.files/favicon-16x16-8b506e7a72182f1c.png"><link·rel="alternate·icon"·type="image/png"·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.78.0</span></h2></div><h2·class="location"><a·href="#">Result</a></h2><div·class="sidebar-elems"><section><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">Err</a></li><li><a·href="#variant.Ok">Ok</a></li></ul></section><h2><a·href="index.html">In·alloc::fmt</a></h2></div></nav><div·class="sidebar-resizer"></div>1 <!DOCTYPE·html><html·lang="en"><head><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.write(`<link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/SourceSerif4-Regular-46f98efaafac5295.ttf.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/FiraSans-Regular-018c141bf0843ffd.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/FiraSans-Medium-8f9a781e4970d388.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/SourceCodePro-Regular-562dcc5011b6de7d.ttf.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/SourceCodePro-Semibold-d899c5a5c4aeb14a.ttf.woff2">`)</script><link·rel="stylesheet"·href="../../static.files/normalize-76eba96aa4d2e634.css"><link·rel="stylesheet"·href="../../static.files/rustdoc-35f9e32502181f1e.css"><meta·name="rustdoc-vars"·data-root-path="../../"·data-static-root-path="../../static.files/"·data-current-crate="alloc"·data-themes=""·data-resource-suffix="1.78.0"·data-rustdoc-version="1.78.0"·data-channel="1.78.0"·data-search-js="search-42d8da7a6b9792c2.js"·data-settings-js="settings-4313503d2e1961c2.js"·><script·src="../../static.files/storage-4c98445ec4002617.js"></script><script·defer·src="sidebar-items1.78.0.js"></script><script·defer·src="../../static.files/main-12cf3b4f4f9dc36d.js"></script><noscript><link·rel="stylesheet"·href="../../static.files/noscript-04d5337699b92874.css"></noscript><link·rel="alternate·icon"·type="image/png"·href="../../static.files/favicon-16x16-8b506e7a72182f1c.png"><link·rel="alternate·icon"·type="image/png"·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.78.0</span></h2></div><h2·class="location"><a·href="#">Result</a></h2><div·class="sidebar-elems"><section><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">Err</a></li><li><a·href="#variant.Ok">Ok</a></li></ul></section><h2><a·href="index.html">In·alloc::fmt</a></h2></div></nav><div·class="sidebar-resizer"></div>
2 ····<main><div·class="width-limiter"><nav·class="sub"><form·class="search-form"><span></span><div·id="sidebar-button"·tabindex="-1"><a·href="../../alloc/all.html"·title="show·sidebar"></a></div><input·class="search-input"·name="search"·aria-label="Run·search·in·the·documentation"·autocomplete="off"·spellcheck="false"·placeholder="Click·or·press·‘S’·to·search,·‘?’·for·more·options…"·type="search"><div·id="help-button"·tabindex="-1"><a·href="../../help.html"·title="help">?</a></div><div·id="settings-menu"·tabindex="-1"><a·href="../../settings.html"·title="settings"><img·width="22"·height="22"·alt="Change·settings"·src="../../static.files/wheel-7b819b6101059cd0.svg"></a></div></form></nav><section·id="main-content"·class="content"><div·class="main-heading"><h1>Type·Alias·<a·href="../index.html">alloc</a>::<wbr><a·href="index.html">fmt</a>::<wbr><a·class="type"·href="#">Result</a><button·id="copy-path"·title="Copy·item·path·to·clipboard"><img·src="../../static.files/clipboard-7571035ce49a181d.svg"·width="19"·height="18"·alt="Copy·item·path"></button></h1><span·class="out-of-band"><span·class="since"·title="Stable·since·Rust·version·1.0.0">1.0.0</span>···<a·class="src"·href="../../src/core/fmt/mod.rs.html#70">source</a>···<button·id="toggle-all-docs"·title="collapse·all·docs">[<span>&#x2212;</span>]</button></span></div><pre·class="rust·item-decl"><code>pub·type·Result·=·<a·class="enum"·href="../../core/result/enum.Result.html[·...·truncated·by·diffoscope;·len:·82,·SHA:·ec31eb2c9c76977720f0a76a877101367a2d65489d975b79afcf161c07732be4·...·]/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 ····<main><div·class="width-limiter"><nav·class="sub"><form·class="search-form"><span></span><div·id="sidebar-button"·tabindex="-1"><a·href="../../alloc/all.html"·title="show·sidebar"></a></div><input·class="search-input"·name="search"·aria-label="Run·search·in·the·documentation"·autocomplete="off"·spellcheck="false"·placeholder="Click·or·press·‘S’·to·search,·‘?’·for·more·options…"·type="search"><div·id="help-button"·tabindex="-1"><a·href="../../help.html"·title="help">?</a></div><div·id="settings-menu"·tabindex="-1"><a·href="../../settings.html"·title="settings"><img·width="22"·height="22"·alt="Change·settings"·src="../../static.files/wheel-7b819b6101059cd0.svg"></a></div></form></nav><section·id="main-content"·class="content"><div·class="main-heading"><h1>Type·Alias·<a·href="../index.html">alloc</a>::<wbr><a·href="index.html">fmt</a>::<wbr><a·class="type"·href="#">Result</a><button·id="copy-path"·title="Copy·item·path·to·clipboard"><img·src="../../static.files/clipboard-7571035ce49a181d.svg"·width="19"·height="18"·alt="Copy·item·path"></button></h1><span·class="out-of-band"><span·class="since"·title="Stable·since·Rust·version·1.0.0">1.0.0</span>···<a·class="src"·href="https://doc.rust-lang.org/1.78.0/src/core/fmt/mod.rs.html#70">source</a>···<button·id="toggle-all-docs"·title="collapse·all·docs">[<span>&#x2212;</span>]</button></span></div><pre·class="rust·item-decl"><code>pub·type·Result·=·<a·class="enum"·href="https:/[·...·truncated·by·diffoscope;·len:·163,·SHA:·2c3125af433a1254316ef893b6fb3906b45f74eddc7935b7c2fc67ec5741b2e9·...·]/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>
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">use·</span>std::fmt;4 <div·class="example-wrap"><pre·class="rust·rust-example-rendered"><code><span·class="kw">use·</span>std::fmt;
  
5 <span·class="attr">#[derive(Debug)]5 <span·class="attr">#[derive(Debug)]
6 </span><span·class="kw">struct·</span>Triangle·{6 </span><span·class="kw">struct·</span>Triangle·{
7 ····a:·f32,7 ····a:·f32,
8 ····b:·f32,8 ····b:·f32,
Offset 16, 12 lines modifiedOffset 16, 12 lines modified
16 ····}16 ····}
17 }17 }
  
18 <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="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>};
  
19 <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"·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">Run</a></div>19 <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"·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">Run</a></div>
20 </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 </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·{
21 ····Ok(<a·class="primitive"·href="../../core/primitive.unit.html">()</a>),21 ····Ok(<a·class="primitive"·href="https://doc.rust-lang.org/1.78.0/core/primitive.unit.html">()</a>),
22 ····Err(<a·class="struct"·href="struct.Error.html"·title="struct·alloc::fmt::Error">Error</a>),22 ····Err(<a·class="struct"·href="struct.Error.html"·title="struct·alloc::fmt::Error">Error</a>),
23 }</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><h3·class="code-header">Ok(<a·class="primitive"·href="../../core/primitive.unit.html">()</a>)</h3></section><div·class="docblock"><p>Contains·the·success·value</p>23 }</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><h3·class="code-header">Ok(<a·class="primitive"·href="https://doc.rust-lang.org/1.78.0/core/primitive.unit.html">()</a>)</h3></section><div·class="docblock"><p>Contains·the·success·value</p>
24 </div><section·id="variant.Err"·class="variant"><a·href="#variant.Err"·class="anchor">§</a><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><section·id="variant.Err"·class="variant"><a·href="#variant.Err"·class="anchor">§</a><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>
25 </div></div><script·src="../../type.impl/core/result/enum.Result.js"·data-self-path="alloc::fmt::Result"·async></script></section></div></main></body></html>25 </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-web-doc/html/alloc/index.html
    
Offset 15, 16 lines modifiedOffset 15, 16 lines modified
15 is·the·same·as·that·of·a·pointer.·Tree-like·data·structures·are·often·built15 is·the·same·as·that·of·a·pointer.·Tree-like·data·structures·are·often·built
16 with·boxes·because·each·node·often·has·only·one·owner,·the·parent.</p>16 with·boxes·because·each·node·often·has·only·one·owner,·the·parent.</p>
17 <h3·id="reference-counted-pointers"><a·class="doc-anchor"·href="#reference-counted-pointers">§</a>Reference·counted·pointers</h3>17 <h3·id="reference-counted-pointers"><a·class="doc-anchor"·href="#reference-counted-pointers">§</a>Reference·counted·pointers</h3>
18 <p>The·<a·href="rc/index.html"·title="mod·alloc::rc"><code>Rc</code></a>·type·is·a·non-threadsafe·reference-counted·pointer·type·intended18 <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
19 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>,·and19 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
20 only·allows·access·to·<code>&amp;T</code>,·a·shared·reference.</p>20 only·allows·access·to·<code>&amp;T</code>,·a·shared·reference.</p>
21 <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·too21 <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
22 constraining·for·an·application,·and·is·often·paired·with·the·<a·href="../core/cell/index.html"·title="mod·core::cell"><code>Cell</code></a>·or22 constraining·for·an·application,·and·is·often·paired·with·the·<a·href="https://doc.rust-lang.org/1.78.0/core/cell/index.html"·title="mod·core::cell"><code>Cell</code></a>·or
23 <a·href="../core/cell/index.html"·title="mod·core::cell"><code>RefCell</code></a>·types·in·order·to·allow·mutation.</p>23 <a·href="https://doc.rust-lang.org/1.78.0/core/cell/index.html"·title="mod·core::cell"><code>RefCell</code></a>·types·in·order·to·allow·mutation.</p>
24 <h3·id="atomically-reference-counted-pointers"><a·class="doc-anchor"·href="#atomically-reference-counted-pointers">§</a>Atomically·reference·counted·pointers</h3>24 <h3·id="atomically-reference-counted-pointers"><a·class="doc-anchor"·href="#atomically-reference-counted-pointers">§</a>Atomically·reference·counted·pointers</h3>
25 <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.·It25 <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
26 provides·all·the·same·functionality·of·<a·href="rc/index.html"·title="mod·alloc::rc"><code>Rc</code></a>,·except·it·requires·that·the26 provides·all·the·same·functionality·of·<a·href="rc/index.html"·title="mod·alloc::rc"><code>Rc</code></a>,·except·it·requires·that·the
27 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·itself27 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
28 sendable·while·<a·href="rc/index.html"·title="mod·alloc::rc"><code>Rc&lt;T&gt;</code></a>·is·not.</p>28 sendable·while·<a·href="rc/index.html"·title="mod·alloc::rc"><code>Rc&lt;T&gt;</code></a>·is·not.</p>
29 <p>This·type·allows·for·shared·access·to·the·contained·data,·and·is·often29 <p>This·type·allows·for·shared·access·to·the·contained·data,·and·is·often
30 paired·with·synchronization·primitives·such·as·mutexes·to·allow·mutation·of30 paired·with·synchronization·primitives·such·as·mutexes·to·allow·mutation·of
2.79 KB
./usr/share/doc/rust-web-doc/html/alloc/macro.format.html
    
Offset 6, 19 lines modifiedOffset 6, 19 lines modified
6 literal.·The·power·of·the·formatting·string·is·in·the·<code>{}</code>s·contained.6 literal.·The·power·of·the·formatting·string·is·in·the·<code>{}</code>s·contained.
7 Additional·parameters·passed·to·<code>format!</code>·replace·the·<code>{}</code>s·within·the7 Additional·parameters·passed·to·<code>format!</code>·replace·the·<code>{}</code>s·within·the
8 formatting·string·in·the·order·given·unless·named·or·positional·parameters8 formatting·string·in·the·order·given·unless·named·or·positional·parameters
9 are·used.</p>9 are·used.</p>
10 <p>See·<a·href="../std/fmt/index.html">the·formatting·syntax·documentation·in·<code>std::fmt</code></a>10 <p>See·<a·href="../std/fmt/index.html">the·formatting·syntax·documentation·in·<code>std::fmt</code></a>
11 for·details.</p>11 for·details.</p>
12 <p>A·common·use·for·<code>format!</code>·is·concatenation·and·interpolation·of·strings.12 <p>A·common·use·for·<code>format!</code>·is·concatenation·and·interpolation·of·strings.
13 The·same·convention·is·used·with·<a·href="../std/macro.print.html"><code>print!</code></a>·and·<a·href="../core/macro.write.html"·title="macro·core::write"><code>write!</code></a>·macros,13 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.78.0/core/macro.write.html"·title="macro·core::write"><code>write!</code></a>·macros,
14 depending·on·the·intended·destination·of·the·string;·all·these·macros·internally·use·<a·href="../core/macro.format_args.html"·title="macro·core::format_args"><code>format_args!</code></a>.</p>14 depending·on·the·intended·destination·of·the·string;·all·these·macros·internally·use·<a·href="https://doc.rust-lang.org/1.78.0/core/macro.format_args.html"·title="macro·core::format_args"><code>format_args!</code></a>.</p>
15 <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.·This15 <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
16 will·use·the·<a·href="fmt/trait.Display.html"·title="trait·alloc::fmt::Display"><code>Display</code></a>·formatting·trait.</p>16 will·use·the·<a·href="fmt/trait.Display.html"·title="trait·alloc::fmt::Display"><code>Display</code></a>·formatting·trait.</p>
17 <p>To·concatenate·literals·into·a·<code>&amp;'static·str</code>,·use·the·<a·href="../core/macro.concat.html"·title="macro·core::concat"><code>concat!</code></a>·macro.</p>17 <p>To·concatenate·literals·into·a·<code>&amp;'static·str</code>,·use·the·<a·href="https://doc.rust-lang.org/1.78.0/core/macro.concat.html"·title="macro·core::concat"><code>concat!</code></a>·macro.</p>
18 <h2·id="panics"><a·class="doc-anchor"·href="#panics">§</a>Panics</h2>18 <h2·id="panics"><a·class="doc-anchor"·href="#panics">§</a>Panics</h2>
19 <p><code>format!</code>·panics·if·a·formatting·trait·implementation·returns·an·error.19 <p><code>format!</code>·panics·if·a·formatting·trait·implementation·returns·an·error.
20 This·indicates·an·incorrect·implementation20 This·indicates·an·incorrect·implementation
21 since·<code>fmt::Write·for·String</code>·never·returns·an·error·itself.</p>21 since·<code>fmt::Write·for·String</code>·never·returns·an·error·itself.</p>
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 <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 <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"
24 </span><span·class="macro">format!</span>(<span·class="string">"hello·{}"</span>,·<span·class="string">"world!"</span>);···············<span·class="comment">//·=&gt;·"hello·world!"24 </span><span·class="macro">format!</span>(<span·class="string">"hello·{}"</span>,·<span·class="string">"world!"</span>);···············<span·class="comment">//·=&gt;·"hello·world!"
1.69 KB
./usr/share/doc/rust-web-doc/html/alloc/macro.vec.html
    
Offset 17, 15 lines modifiedOffset 17, 15 lines modified
17 <ul>17 <ul>
18 <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 <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>
19 </ul>19 </ul>
  
20 <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 <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>];
21 <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"·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">Run</a></div>21 <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"·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">Run</a></div>
22 <p>Note·that·unlike·array·expressions·this·syntax·supports·all·elements22 <p>Note·that·unlike·array·expressions·this·syntax·supports·all·elements
23 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·be23 which·implement·<a·href="https://doc.rust-lang.org/1.78.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
24 a·constant.</p>24 a·constant.</p>
25 <p>This·will·use·<code>clone</code>·to·duplicate·an·expression,·so·one·should·be·careful25 <p>This·will·use·<code>clone</code>·to·duplicate·an·expression,·so·one·should·be·careful
26 using·this·with·types·having·a·nonstandard·<code>Clone</code>·implementation.·For26 using·this·with·types·having·a·nonstandard·<code>Clone</code>·implementation.·For
27 example,·<code>vec![Rc::new(1);·5]</code>·will·create·a·vector·of·five·references27 example,·<code>vec![Rc::new(1);·5]</code>·will·create·a·vector·of·five·references
28 to·the·same·boxed·integer·value,·not·five·references·pointing·to·independently28 to·the·same·boxed·integer·value,·not·five·references·pointing·to·independently
29 boxed·integers.</p>29 boxed·integers.</p>
30 <p>Also,·note·that·<code>vec![expr;·0]</code>·is·allowed,·and·produces·an·empty·vector.30 <p>Also,·note·that·<code>vec![expr;·0]</code>·is·allowed,·and·produces·an·empty·vector.
17.1 KB
./usr/share/doc/rust-web-doc/html/alloc/rc/index.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="Single-threaded·reference-counting·pointers.·‘Rc’·stands·for·‘Reference·Counted’."><title>alloc::rc·-·Rust</title><script>·if·(window.location.protocol·!==·"file:")·document.write(`<link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/SourceSerif4-Regular-46f98efaafac5295.ttf.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/FiraSans-Regular-018c141bf0843ffd.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/FiraSans-Medium-8f9a781e4970d388.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/SourceCodePro-Regular-562dcc5011b6de7d.ttf.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/SourceCodePro-Semibold-d899c5a5c4aeb14a.ttf.woff2">`)</script><link·rel="stylesheet"·href="../../static.files/normalize-76eba96aa4d2e634.css"><link·rel="stylesheet"·href="../../static.files/rustdoc-35f9e32502181f1e.css"><meta·name="rustdoc-vars"·data-root-path="../../"·data-static-root-path="../../static.files/"·data-current-crate="alloc"·data-themes=""·data-resource-suffix="1.78.0"·data-rustdoc-version="1.78.0"·data-channel="1.78.0"·data-search-js="search-42d8da7a6b9792c2.js"·data-settings-js="settings-4313503d2e1961c2.js"·><script·src="../../static.files/storage-4c98445ec4002617.js"></script><script·defer·src="../sidebar-items1.78.0.js"></script><script·defer·src="../../static.files/main-12cf3b4f4f9dc36d.js"></script><noscript><link·rel="stylesheet"·href="../../static.files/noscript-04d5337699b92874.css"></noscript><link·rel="alternate·icon"·type="image/png"·href="../../static.files/favicon-16x16-8b506e7a72182f1c.png"><link·rel="alternate·icon"·type="image/png"·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.78.0</span></h2></div><h2·class="location"><a·href="#">Module·rc</a></h2><div·class="sidebar-elems"><section><ul·class="block"><li><a·href="#structs">Structs</a></li></ul></section><h2><a·href="../index.html">In·crate·alloc</a></h2></div></nav><div·class="sidebar-resizer"></div>1 <!DOCTYPE·html><html·lang="en"><head><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.write(`<link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/SourceSerif4-Regular-46f98efaafac5295.ttf.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/FiraSans-Regular-018c141bf0843ffd.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/FiraSans-Medium-8f9a781e4970d388.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/SourceCodePro-Regular-562dcc5011b6de7d.ttf.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/SourceCodePro-Semibold-d899c5a5c4aeb14a.ttf.woff2">`)</script><link·rel="stylesheet"·href="../../static.files/normalize-76eba96aa4d2e634.css"><link·rel="stylesheet"·href="../../static.files/rustdoc-35f9e32502181f1e.css"><meta·name="rustdoc-vars"·data-root-path="../../"·data-static-root-path="../../static.files/"·data-current-crate="alloc"·data-themes=""·data-resource-suffix="1.78.0"·data-rustdoc-version="1.78.0"·data-channel="1.78.0"·data-search-js="search-42d8da7a6b9792c2.js"·data-settings-js="settings-4313503d2e1961c2.js"·><script·src="../../static.files/storage-4c98445ec4002617.js"></script><script·defer·src="../sidebar-items1.78.0.js"></script><script·defer·src="../../static.files/main-12cf3b4f4f9dc36d.js"></script><noscript><link·rel="stylesheet"·href="../../static.files/noscript-04d5337699b92874.css"></noscript><link·rel="alternate·icon"·type="image/png"·href="../../static.files/favicon-16x16-8b506e7a72182f1c.png"><link·rel="alternate·icon"·type="image/png"·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.78.0</span></h2></div><h2·class="location"><a·href="#">Module·rc</a></h2><div·class="sidebar-elems"><section><ul·class="block"><li><a·href="#structs">Structs</a></li></ul></section><h2><a·href="../index.html">In·crate·alloc</a></h2></div></nav><div·class="sidebar-resizer"></div>
2 ····<main><div·class="width-limiter"><nav·class="sub"><form·class="search-form"><span></span><div·id="sidebar-button"·tabindex="-1"><a·href="../../alloc/all.html"·title="show·sidebar"></a></div><input·class="search-input"·name="search"·aria-label="Run·search·in·the·documentation"·autocomplete="off"·spellcheck="false"·placeholder="Click·or·press·‘S’·to·search,·‘?’·for·more·options…"·type="search"><div·id="help-button"·tabindex="-1"><a·href="../../help.html"·title="help">?</a></div><div·id="settings-menu"·tabindex="-1"><a·href="../../settings.html"·title="settings"><img·width="22"·height="22"·alt="Change·settings"·src="../../static.files/wheel-7b819b6101059cd0.svg"></a></div></form></nav><section·id="main-content"·class="content"><div·class="main-heading"><h1>Module·<a·href="../index.html">alloc</a>::<wbr><a·class="mod"·href="#">rc</a><button·id="copy-path"·title="Copy·item·path·to·clipboard"><img·src="../../static.files/clipboard-7571035ce49a181d.svg"·width="19"·height="18"·alt="Copy·item·path"></button></h1><span·class="out-of-band"><span·class="since"·title="Stable·since·Rust·version·1.0.0">1.0.0</span>···<a·class="src"·href="../../src/alloc/rc.rs.html#1-3598">source</a>···<button·id="toggle-all-docs"·title="collapse·all·docs">[<span>&#x2212;</span>]</button></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·‘Reference2 ····<main><div·class="width-limiter"><nav·class="sub"><form·class="search-form"><span></span><div·id="sidebar-button"·tabindex="-1"><a·href="../../alloc/all.html"·title="show·sidebar"></a></div><input·class="search-input"·name="search"·aria-label="Run·search·in·the·documentation"·autocomplete="off"·spellcheck="false"·placeholder="Click·or·press·‘S’·to·search,·‘?’·for·more·options…"·type="search"><div·id="help-button"·tabindex="-1"><a·href="../../help.html"·title="help">?</a></div><div·id="settings-menu"·tabindex="-1"><a·href="../../settings.html"·title="settings"><img·width="22"·height="22"·alt="Change·settings"·src="../../static.files/wheel-7b819b6101059cd0.svg"></a></div></form></nav><section·id="main-content"·class="content"><div·class="main-heading"><h1>Module·<a·href="../index.html">alloc</a>::<wbr><a·class="mod"·href="#">rc</a><button·id="copy-path"·title="Copy·item·path·to·clipboard"><img·src="../../static.files/clipboard-7571035ce49a181d.svg"·width="19"·height="18"·alt="Copy·item·path"></button></h1><span·class="out-of-band"><span·class="since"·title="Stable·since·Rust·version·1.0.0">1.0.0</span>···<a·class="src"·href="../../src/alloc/rc.rs.html#1-3598">source</a>···<button·id="toggle-all-docs"·title="collapse·all·docs">[<span>&#x2212;</span>]</button></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
3 Counted’.</p>3 Counted’.</p>
4 <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 <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>,
5 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·new5 allocated·in·the·heap.·Invoking·<a·href="https://doc.rust-lang.org/1.78.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
6 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·a6 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
7 given·allocation·is·destroyed,·the·value·stored·in·that·allocation·(often7 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·<a·href="struct.Rc.html"·title="struct·alloc::rc::Rc"><code>Rc</code></a>9 <p>Shared·references·in·Rust·disallow·mutation·by·default,·and·<a·href="struct.Rc.html"·title="struct·alloc::rc::Rc"><code>Rc</code></a>
10 is·no·exception:·you·cannot·generally·obtain·a·mutable·reference·to10 is·no·exception:·you·cannot·generally·obtain·a·mutable·reference·to
11 something·inside·an·<a·href="struct.Rc.html"·title="struct·alloc::rc::Rc"><code>Rc</code></a>.·If·you·need·mutability,·put·a·<a·href="../../core/cell/struct.Cell.html"·title="struct·core::cell::Cell"><code>Cell</code></a>11 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.78.0/core/cell/struct.Cell.html"·title="struct·core::cell::Cell"><code>Cell</code></a>
12 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·mutability12 or·<a·href="https://doc.rust-lang.org/1.78.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.78.0/core/cell/index.html#introducing-mutability-inside-of-something-immutable"·title="mod·core::cell">an·example·of·mutability
13 inside·an·<code>Rc</code></a>.</p>13 inside·an·<code>Rc</code></a>.</p>
14 <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·very14 <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
15 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 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>
16 does·not·implement·<a·href="../../core/marker/trait.Send.html"·title="trait·core::marker::Send"><code>Send</code></a>.·As·a·result,·the·Rust·compiler16 does·not·implement·<a·href="https://doc.rust-lang.org/1.78.0/core/marker/trait.Send.html"·title="trait·core::marker::Send"><code>Send</code></a>.·As·a·result,·the·Rust·compiler
17 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·between17 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
18 threads.·If·you·need·multi-threaded,·atomic·reference·counting,·use18 threads.·If·you·need·multi-threaded,·atomic·reference·counting,·use
19 <a·href="../sync/struct.Arc.html"·title="struct·alloc::sync::Arc"><code>sync::Arc</code></a>.</p>19 <a·href="../sync/struct.Arc.html"·title="struct·alloc::sync::Arc"><code>sync::Arc</code></a>.</p>
20 <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-owning20 <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
21 <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>d21 <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
22 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·has22 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.78.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
23 already·been·dropped.·In·other·words,·<code>Weak</code>·pointers·do·not·keep·the·value23 already·been·dropped.·In·other·words,·<code>Weak</code>·pointers·do·not·keep·the·value
24 inside·the·allocation·alive;·however,·they·<em>do</em>·keep·the·allocation24 inside·the·allocation·alive;·however,·they·<em>do</em>·keep·the·allocation
25 (the·backing·store·for·the·inner·value)·alive.</p>25 (the·backing·store·for·the·inner·value)·alive.</p>
26 <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 <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,
27 <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·strong27 <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
28 <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·from28 <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
29 children·back·to·their·parents.</p>29 children·back·to·their·parents.</p>
30 <p><code>Rc&lt;T&gt;</code>·automatically·dereferences·to·<code>T</code>·(via·the·<a·href="../../core/ops/deref/trait.Deref.html"·title="trait·core::ops::deref::Deref"><code>Deref</code></a>·trait),30 <p><code>Rc&lt;T&gt;</code>·automatically·dereferences·to·<code>T</code>·(via·the·<a·href="https://doc.rust-lang.org/1.78.0/core/ops/deref/trait.Deref.html"·title="trait·core::ops::deref::Deref"><code>Deref</code></a>·trait),
31 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·name31 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
32 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·associated32 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
33 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 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>
  
34 <div·class="example-wrap"><pre·class="rust·rust-example-rendered"><code><span·class="kw">use·</span>std::rc::Rc;34 <div·class="example-wrap"><pre·class="rust·rust-example-rendered"><code><span·class="kw">use·</span>std::rc::Rc;
  
35 <span·class="kw">let·</span>my_rc·=·Rc::new(());35 <span·class="kw">let·</span>my_rc·=·Rc::new(());
Offset 126, 17 lines modifiedOffset 126, 17 lines modified
126 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 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>
127 pointers.</p>127 pointers.</p>
128 <p>Rust·actually·makes·it·somewhat·difficult·to·produce·this·loop·in·the·first128 <p>Rust·actually·makes·it·somewhat·difficult·to·produce·this·loop·in·the·first
129 place.·In·order·to·end·up·with·two·values·that·point·at·each·other,·one·of129 place.·In·order·to·end·up·with·two·values·that·point·at·each·other,·one·of
130 them·needs·to·be·mutable.·This·is·difficult·because·<a·href="struct.Rc.html"·title="struct·alloc::rc::Rc"><code>Rc</code></a>·enforces130 them·needs·to·be·mutable.·This·is·difficult·because·<a·href="struct.Rc.html"·title="struct·alloc::rc::Rc"><code>Rc</code></a>·enforces
131 memory·safety·by·only·giving·out·shared·references·to·the·value·it·wraps,131 memory·safety·by·only·giving·out·shared·references·to·the·value·it·wraps,
132 and·these·don’t·allow·direct·mutation.·We·need·to·wrap·the·part·of·the132 and·these·don’t·allow·direct·mutation.·We·need·to·wrap·the·part·of·the
133 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>interior133 value·we·wish·to·mutate·in·a·<a·href="https://doc.rust-lang.org/1.78.0/core/cell/struct.RefCell.html"·title="struct·core::cell::RefCell"><code>RefCell</code></a>,·which·provides·<em>interior
134 mutability</em>:·a·method·to·achieve·mutability·through·a·shared·reference.134 mutability</em>:·a·method·to·achieve·mutability·through·a·shared·reference.
135 <a·href="../../core/cell/struct.RefCell.html"·title="struct·core::cell::RefCell"><code>RefCell</code></a>·enforces·Rust’s·borrowing·rules·at·runtime.</p>135 <a·href="https://doc.rust-lang.org/1.78.0/core/cell/struct.RefCell.html"·title="struct·core::cell::RefCell"><code>RefCell</code></a>·enforces·Rust’s·borrowing·rules·at·runtime.</p>
  
136 <div·class="example-wrap"><pre·class="rust·rust-example-rendered"><code><span·class="kw">use·</span>std::rc::Rc;136 <div·class="example-wrap"><pre·class="rust·rust-example-rendered"><code><span·class="kw">use·</span>std::rc::Rc;
137 <span·class="kw">use·</span>std::rc::Weak;137 <span·class="kw">use·</span>std::rc::Weak;
138 <span·class="kw">use·</span>std::cell::RefCell;138 <span·class="kw">use·</span>std::cell::RefCell;
  
139 <span·class="kw">struct·</span>Owner·{139 <span·class="kw">struct·</span>Owner·{
140 ····name:·String,140 ····name:·String,
Offset 203, 8 lines modifiedOffset 203, 8 lines modified
203 ····//·are·destroyed.·There·are·now·no·strong·(`Rc`)·pointers·to·the203 ····//·are·destroyed.·There·are·now·no·strong·(`Rc`)·pointers·to·the
204 ····//·gadgets,·so·they·are·destroyed.·This·zeroes·the·reference·count·on204 ····//·gadgets,·so·they·are·destroyed.·This·zeroes·the·reference·count·on
205 ····//·Gadget·Man,·so·he·gets·destroyed·as·well.205 ····//·Gadget·Man,·so·he·gets·destroyed·as·well.
206 </span>}</code></pre><a·class="test-arrow"·target="_blank"·href="https://play.rust-lang.org/?code=%23!%5Ballow(unused)%5D%0A%23%5Ballow(unused_extern_crates)%5D%0Aextern+crate+r%23alloc;%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">Run</a></div>206 </span>}</code></pre><a·class="test-arrow"·target="_blank"·href="https://play.rust-lang.org/?code=%23!%5Ballow(unused)%5D%0A%23%5Ballow(unused_extern_crates)%5D%0Aextern+crate+r%23alloc;%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">Run</a></div>
207 </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·‘Reference207 </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
208 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·the208 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
209 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 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>
210 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">UniqueRc</a><span·class="stab·unstable"·title="">Experimental</span></div><div·class="desc·docblock-short">A·uniquely·owned·<code>Rc</code></div></li></ul></section></div></main></body></html>210 pointer,·which·returns·an·<code><a·href="https://doc.rust-lang.org/1.78.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">UniqueRc</a><span·class="stab·unstable"·title="">Experimental</span></div><div·class="desc·docblock-short">A·uniquely·owned·<code>Rc</code></div></li></ul></section></div></main></body></html>
323 KB
./usr/share/doc/rust-web-doc/html/alloc/rc/struct.Rc.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·single-threaded·reference-counting·pointer.·‘Rc’·stands·for·‘Reference·Counted’."><title>Rc·in·alloc::rc·-·Rust</title><script>·if·(window.location.protocol·!==·"file:")·document.write(`<link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/SourceSerif4-Regular-46f98efaafac5295.ttf.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/FiraSans-Regular-018c141bf0843ffd.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/FiraSans-Medium-8f9a781e4970d388.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/SourceCodePro-Regular-562dcc5011b6de7d.ttf.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/SourceCodePro-Semibold-d899c5a5c4aeb14a.ttf.woff2">`)</script><link·rel="stylesheet"·href="../../static.files/normalize-76eba96aa4d2e634.css"><link·rel="stylesheet"·href="../../static.files/rustdoc-35f9e32502181f1e.css"><meta·name="rustdoc-vars"·data-root-path="../../"·data-static-root-path="../../static.files/"·data-current-crate="alloc"·data-themes=""·data-resource-suffix="1.78.0"·data-rustdoc-version="1.78.0"·data-channel="1.78.0"·data-search-js="search-42d8da7a6b9792c2.js"·data-settings-js="settings-4313503d2e1961c2.js"·><script·src="../../static.files/storage-4c98445ec4002617.js"></script><script·defer·src="sidebar-items1.78.0.js"></script><script·defer·src="../../static.files/main-12cf3b4f4f9dc36d.js"></script><noscript><link·rel="stylesheet"·href="../../static.files/noscript-04d5337699b92874.css"></noscript><link·rel="alternate·icon"·type="image/png"·href="../../static.files/favicon-16x16-8b506e7a72182f1c.png"><link·rel="alternate·icon"·type="image/png"·href="../../static.files/favicon-32x32-422f7d1d52889060.png"><link·rel="icon"·type="image/svg+xml"·href="../../static.files/favicon-2c020d218678b618.svg"></head><body·class="rustdoc·struct"><!--[if·lte·IE·11]><div·class="warning">This·old·browser·is·unsupported·and·will·most·likely·display·funky·things.</div><![endif]--><nav·class="mobile-topbar"><button·class="sidebar-menu-toggle"·title="show·sidebar"></button><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-151179464ae7ed46.svg"·alt=""></a></nav><nav·class="sidebar"><div·class="sidebar-crate"><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-151179464ae7ed46.svg"·alt="logo"></a><h2><a·href="../../alloc/index.html">alloc</a><span·class="version">1.78.0</span></h2></div><h2·class="location"><a·href="#">Rc</a></h2><div·class="sidebar-elems"><section><h3><a·href="#implementations">Methods</a></h3><ul·class="block·method"><li><a·href="#method.allocator">allocator</a></li><li><a·href="#method.as_ptr">as_ptr</a></li><li><a·href="#method.assume_init">assume_init</a></li><li><a·href="#method.assume_init-1">assume_init</a></li><li><a·href="#method.decrement_strong_count">decrement_strong_count</a></li><li><a·href="#method.decrement_strong_count_in">decrement_strong_count_in</a></li><li><a·href="#method.downcast">downcast</a></li><li><a·href="#method.downcast_unchecked">downcast_unchecked</a></li><li><a·href="#method.downgrade">downgrade</a></li><li><a·href="#method.from_raw">from_raw</a></li><li><a·href="#method.from_raw_in">from_raw_in</a></li><li><a·href="#method.get_mut">get_mut</a></li><li><a·href="#method.get_mut_unchecked">get_mut_unchecked</a></li><li><a·href="#method.increment_strong_count">increment_strong_count</a></li><li><a·href="#method.increment_strong_count_in">increment_strong_count_in</a></li><li><a·href="#method.into_inner">into_inner</a></li><li><a·href="#method.into_raw">into_raw</a></li><li><a·href="#method.make_mut">make_mut</a></li><li><a·href="#method.new">new</a></li><li><a·href="#method.new_cyclic">new_cyclic</a></li><li><a·href="#method.new_in">new_in</a></li><li><a·href="#method.new_uninit">new_uninit</a></li><li><a·href="#method.new_uninit_in">new_uninit_in</a></li><li><a·href="#method.new_uninit_slice">new_uninit_slice</a></li><li><a·href="#method.new_uninit_slice_in">new_uninit_slice_in</a></li><li><a·href="#method.new_zeroed">new_zeroed</a></li><li><a·href="#method.new_zeroed_in">new_zeroed_in</a></li><li><a·href="#method.new_zeroed_slice">new_zeroed_slice</a></li><li><a·href="#method.new_zeroed_slice_in">new_zeroed_slice_in</a></li><li><a·href="#method.pin">pin</a></li><li><a·href="#method.pin_in">pin_in</a></li><li><a·href="#method.ptr_eq">ptr_eq</a></li><li><a·href="#method.strong_count">strong_count</a></li><li><a·href="#method.try_new">try_new</a></li><li><a·href="#method.try_new_in">try_new_in</a></li><li><a·href="#method.try_new_uninit">try_new_uninit</a></li><li><a·href="#method.try_new_uninit_in">try_new_uninit_in</a></li><li><a·href="#method.try_new_zeroed">try_new_zeroed</a></li><li><a·href="#method.try_new_zeroed_in">try_new_zeroed_in</a></li><li><a·href="#method.try_unwrap">try_unwrap</a></li><li><a·href="#method.unwrap_or_clone">unwrap_or_clone</a></li><li><a·href="#method.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">!Send</a></li><li><a·href="#impl-Sync-for-Rc%3CT,+A%3E">!Sync</a></li><li><a·href="#impl-AsRef%3CT%3E-for-Rc%3CT,+A%3E">AsRef&lt;T&gt;</a></li><li><a·href="#impl-Borrow%3CT%3E-for-Rc%3CT,+A%3E">Borrow&lt;T&gt;</a></li><li><a·href="#impl-Clone-for-Rc%3CT,+A%3E">Clone</a></li><li><a·href="#impl-CoerceUnsized%3CRc%3CU,+A%3E%3E-for-Rc%3CT,+A%3E">CoerceUnsized&lt;Rc&lt;U,·A&gt;&gt;</a></li><li><a·href="#impl-Debug-for-Rc%3CT,+A%3E">Debug</a></li><li><a·href="#impl-Default-for-Rc%3CT%3E">Default</a></li><li><a·href="#impl-Deref-for-Rc%3CT,+A%3E">Deref</a></li><li><a·href="#impl-DispatchFromDyn%3CRc%3CU%3E%3E-for-Rc%3CT%3E">DispatchFromDyn&lt;Rc&lt;U&gt;&gt;</a></li><li><a·href="#impl-Display-for-Rc%3CT,+A%3E">Display</a></li><li><a·href="#impl-Drop-for-Rc%3CT,+A%3E">Drop</a></li><li><a·href="#impl-Eq-for-Rc%3CT,+A%3E">Eq</a></li><li><a·href="#impl-From%3C%26CStr%3E-for-Rc%3CCStr%3E">From&lt;&amp;CStr&gt;</a></li><li><a·href="#impl-From%3C%26%5BT%5D%3E-for-Rc%3C%5BT%5D%3E">From&lt;&amp;[T]&gt;</a></li><li><a·href="#impl-From%3C%26str%3E-for-Rc%3Cstr%3E">From&lt;&amp;str&gt;</a></li><li><a·href="#impl-From%3CBox%3CT,+A%3E%3E-for-Rc%3CT,+A%3E">From&lt;Box&lt;T,·A&gt;&gt;</a></li><li><a·href="#impl-From%3CCString%3E-for-Rc%3CCStr%3E">From&lt;CString&gt;</a></li><li><a·href="#impl-From%3CCow%3C'a,+B%3E%3E-for-Rc%3CB%3E">From&lt;Cow&lt;&#x27;a,·B&gt;&gt;</a></li><li><a·href="#impl-From%3CRc%3CW%3E%3E-for-LocalWaker">From&lt;Rc&lt;W&gt;&gt;</a></li><li><a·href="#impl-From%3CRc%3CW%3E%3E-for-RawWaker">From&lt;Rc&lt;W&gt;&gt;</a></li><li><a·href="#impl-From%3CRc%3Cstr%3E%3E-for-Rc%3C%5Bu8%5D%3E">From&lt;Rc&lt;str&gt;&gt;</a></li><li><a·href="#impl-From%3CString%3E-for-Rc%3Cstr%3E">From&lt;String&gt;</a></li><li><a·href="#impl-From%3CT%3E-for-Rc%3CT%3E">From&lt;T&gt;</a></li><li><a·href="#impl-From%3CVec%3CT,+A%3E%3E-for-Rc%3C%5BT%5D,+A%3E">From&lt;Vec&lt;T,·A&gt;&gt;</a></li><li><a·href="#impl-From%3C%5BT;+N%5D%3E-for-Rc%3C%5BT%5D%3E">From&lt;[T;·N]&gt;</a></li><li><a·href="#impl-FromIterator%3CT%3E-for-Rc%3C%5BT%5D%3E">FromIterator&lt;T&gt;</a></li><li><a·href="#impl-Hash-for-Rc%3CT,+A%3E">Hash</a></li><li><a·href="#impl-Ord-for-Rc%3CT,+A%3E">Ord</a></li><li><a·href="#impl-PartialEq-for-Rc%3CT,+A%3E">PartialEq</a></li><li><a·href="#impl-PartialOrd-for-Rc%3CT,+A%3E">PartialOrd</a></li><li><a·href="#impl-Pointer-for-Rc%3CT,+A%3E">Pointer</a></li><li><a·href="#impl-RefUnwindSafe-for-Rc%3CT,+A%3E">RefUnwindSafe</a></li><li><a·href="#impl-TryFrom%3CRc%3C%5BT%5D%3E%3E-for-Rc%3C%5BT;+N%5D%3E">TryFrom&lt;Rc&lt;[T]&gt;&gt;</a></li><li><a·href="#impl-Unpin-for-Rc%3CT,+A%3E">Unpin</a></li><li><a·href="#impl-UnwindSafe-for-Rc%3CT,+A%3E">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">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">Any</a></li><li><a·href="#impl-Borrow%3CT%3E-for-T">Borrow&lt;T&gt;</a></li><li><a·href="#impl-BorrowMut%3CT%3E-for-T">BorrowMut&lt;T&gt;</a></li><li><a·href="#impl-From%3C!%3E-for-T">From&lt;!&gt;</a></li><li><a·href="#impl-From%3CT%3E-for-T">From&lt;T&gt;</a></li><li><a·href="#impl-Into%3CU%3E-for-T">Into&lt;U&gt;</a></li><li><a·href="#impl-ToOwned-for-T">ToOwned</a></li><li><a·href="#impl-ToString-for-T">ToString</a></li><li><a·href="#impl-TryFrom%3CU%3E-for-T">TryFrom&lt;U&gt;</a></li><li><a·href="#impl-TryInto%3CU%3E-for-T">TryInto&lt;U&gt;</a></li></ul></section><h2><a·href="index.html">In·alloc::rc</a></h2></div></nav><div·class="sidebar-resizer"></div>1 <!DOCTYPE·html><html·lang="en"><head><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.write(`<link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/SourceSerif4-Regular-46f98efaafac5295.ttf.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/FiraSans-Regular-018c141bf0843ffd.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/FiraSans-Medium-8f9a781e4970d388.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/SourceCodePro-Regular-562dcc5011b6de7d.ttf.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/SourceCodePro-Semibold-d899c5a5c4aeb14a.ttf.woff2">`)</script><link·rel="stylesheet"·href="../../static.files/normalize-76eba96aa4d2e634.css"><link·rel="stylesheet"·href="../../static.files/rustdoc-35f9e32502181f1e.css"><meta·name="rustdoc-vars"·data-root-path="../../"·data-static-root-path="../../static.files/"·data-current-crate="alloc"·data-themes=""·data-resource-suffix="1.78.0"·data-rustdoc-version="1.78.0"·data-channel="1.78.0"·data-search-js="search-42d8da7a6b9792c2.js"·data-settings-js="settings-4313503d2e1961c2.js"·><script·src="../../static.files/storage-4c98445ec4002617.js"></script><script·defer·src="sidebar-items1.78.0.js"></script><script·defer·src="../../static.files/main-12cf3b4f4f9dc36d.js"></script><noscript><link·rel="stylesheet"·href="../../static.files/noscript-04d5337699b92874.css"></noscript><link·rel="alternate·icon"·type="image/png"·href="../../static.files/favicon-16x16-8b506e7a72182f1c.png"><link·rel="alternate·icon"·type="image/png"·href="../../static.files/favicon-32x32-422f7d1d52889060.png"><link·rel="icon"·type="image/svg+xml"·href="../../static.files/favicon-2c020d218678b618.svg"></head><body·class="rustdoc·struct"><!--[if·lte·IE·11]><div·class="warning">This·old·browser·is·unsupported·and·will·most·likely·display·funky·things.</div><![endif]--><nav·class="mobile-topbar"><button·class="sidebar-menu-toggle"·title="show·sidebar"></button><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-151179464ae7ed46.svg"·alt=""></a></nav><nav·class="sidebar"><div·class="sidebar-crate"><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-151179464ae7ed46.svg"·alt="logo"></a><h2><a·href="../../alloc/index.html">alloc</a><span·class="version">1.78.0</span></h2></div><h2·class="location"><a·href="#">Rc</a></h2><div·class="sidebar-elems"><section><h3><a·href="#implementations">Methods</a></h3><ul·class="block·method"><li><a·href="#method.allocator">allocator</a></li><li><a·href="#method.as_ptr">as_ptr</a></li><li><a·href="#method.assume_init">assume_init</a></li><li><a·href="#method.assume_init-1">assume_init</a></li><li><a·href="#method.decrement_strong_count">decrement_strong_count</a></li><li><a·href="#method.decrement_strong_count_in">decrement_strong_count_in</a></li><li><a·href="#method.downcast">downcast</a></li><li><a·href="#method.downcast_unchecked">downcast_unchecked</a></li><li><a·href="#method.downgrade">downgrade</a></li><li><a·href="#method.from_raw">from_raw</a></li><li><a·href="#method.from_raw_in">from_raw_in</a></li><li><a·href="#method.get_mut">get_mut</a></li><li><a·href="#method.get_mut_unchecked">get_mut_unchecked</a></li><li><a·href="#method.increment_strong_count">increment_strong_count</a></li><li><a·href="#method.increment_strong_count_in">increment_strong_count_in</a></li><li><a·href="#method.into_inner">into_inner</a></li><li><a·href="#method.into_raw">into_raw</a></li><li><a·href="#method.make_mut">make_mut</a></li><li><a·href="#method.new">new</a></li><li><a·href="#method.new_cyclic">new_cyclic</a></li><li><a·href="#method.new_in">new_in</a></li><li><a·href="#method.new_uninit">new_uninit</a></li><li><a·href="#method.new_uninit_in">new_uninit_in</a></li><li><a·href="#method.new_uninit_slice">new_uninit_slice</a></li><li><a·href="#method.new_uninit_slice_in">new_uninit_slice_in</a></li><li><a·href="#method.new_zeroed">new_zeroed</a></li><li><a·href="#method.new_zeroed_in">new_zeroed_in</a></li><li><a·href="#method.new_zeroed_slice">new_zeroed_slice</a></li><li><a·href="#method.new_zeroed_slice_in">new_zeroed_slice_in</a></li><li><a·href="#method.pin">pin</a></li><li><a·href="#method.pin_in">pin_in</a></li><li><a·href="#method.ptr_eq">ptr_eq</a></li><li><a·href="#method.strong_count">strong_count</a></li><li><a·href="#method.try_new">try_new</a></li><li><a·href="#method.try_new_in">try_new_in</a></li><li><a·href="#method.try_new_uninit">try_new_uninit</a></li><li><a·href="#method.try_new_uninit_in">try_new_uninit_in</a></li><li><a·href="#method.try_new_zeroed">try_new_zeroed</a></li><li><a·href="#method.try_new_zeroed_in">try_new_zeroed_in</a></li><li><a·href="#method.try_unwrap">try_unwrap</a></li><li><a·href="#method.unwrap_or_clone">unwrap_or_clone</a></li><li><a·href="#method.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">!Send</a></li><li><a·href="#impl-Sync-for-Rc%3CT,+A%3E">!Sync</a></li><li><a·href="#impl-AsRef%3CT%3E-for-Rc%3CT,+A%3E">AsRef&lt;T&gt;</a></li><li><a·href="#impl-Borrow%3CT%3E-for-Rc%3CT,+A%3E">Borrow&lt;T&gt;</a></li><li><a·href="#impl-Clone-for-Rc%3CT,+A%3E">Clone</a></li><li><a·href="#impl-CoerceUnsized%3CRc%3CU,+A%3E%3E-for-Rc%3CT,+A%3E">CoerceUnsized&lt;Rc&lt;U,·A&gt;&gt;</a></li><li><a·href="#impl-Debug-for-Rc%3CT,+A%3E">Debug</a></li><li><a·href="#impl-Default-for-Rc%3CT%3E">Default</a></li><li><a·href="#impl-Deref-for-Rc%3CT,+A%3E">Deref</a></li><li><a·href="#impl-DispatchFromDyn%3CRc%3CU%3E%3E-for-Rc%3CT%3E">DispatchFromDyn&lt;Rc&lt;U&gt;&gt;</a></li><li><a·href="#impl-Display-for-Rc%3CT,+A%3E">Display</a></li><li><a·href="#impl-Drop-for-Rc%3CT,+A%3E">Drop</a></li><li><a·href="#impl-Eq-for-Rc%3CT,+A%3E">Eq</a></li><li><a·href="#impl-From%3C%26CStr%3E-for-Rc%3CCStr%3E">From&lt;&amp;CStr&gt;</a></li><li><a·href="#impl-From%3C%26%5BT%5D%3E-for-Rc%3C%5BT%5D%3E">From&lt;&amp;[T]&gt;</a></li><li><a·href="#impl-From%3C%26str%3E-for-Rc%3Cstr%3E">From&lt;&amp;str&gt;</a></li><li><a·href="#impl-From%3CBox%3CT,+A%3E%3E-for-Rc%3CT,+A%3E">From&lt;Box&lt;T,·A&gt;&gt;</a></li><li><a·href="#impl-From%3CCString%3E-for-Rc%3CCStr%3E">From&lt;CString&gt;</a></li><li><a·href="#impl-From%3CCow%3C'a,+B%3E%3E-for-Rc%3CB%3E">From&lt;Cow&lt;&#x27;a,·B&gt;&gt;</a></li><li><a·href="#impl-From%3CRc%3CW%3E%3E-for-LocalWaker">From&lt;Rc&lt;W&gt;&gt;</a></li><li><a·href="#impl-From%3CRc%3CW%3E%3E-for-RawWaker">From&lt;Rc&lt;W&gt;&gt;</a></li><li><a·href="#impl-From%3CRc%3Cstr%3E%3E-for-Rc%3C%5Bu8%5D%3E">From&lt;Rc&lt;str&gt;&gt;</a></li><li><a·href="#impl-From%3CString%3E-for-Rc%3Cstr%3E">From&lt;String&gt;</a></li><li><a·href="#impl-From%3CT%3E-for-Rc%3CT%3E">From&lt;T&gt;</a></li><li><a·href="#impl-From%3CVec%3CT,+A%3E%3E-for-Rc%3C%5BT%5D,+A%3E">From&lt;Vec&lt;T,·A&gt;&gt;</a></li><li><a·href="#impl-From%3C%5BT;+N%5D%3E-for-Rc%3C%5BT%5D%3E">From&lt;[T;·N]&gt;</a></li><li><a·href="#impl-FromIterator%3CT%3E-for-Rc%3C%5BT%5D%3E">FromIterator&lt;T&gt;</a></li><li><a·href="#impl-Hash-for-Rc%3CT,+A%3E">Hash</a></li><li><a·href="#impl-Ord-for-Rc%3CT,+A%3E">Ord</a></li><li><a·href="#impl-PartialEq-for-Rc%3CT,+A%3E">PartialEq</a></li><li><a·href="#impl-PartialOrd-for-Rc%3CT,+A%3E">PartialOrd</a></li><li><a·href="#impl-Pointer-for-Rc%3CT,+A%3E">Pointer</a></li><li><a·href="#impl-RefUnwindSafe-for-Rc%3CT,+A%3E">RefUnwindSafe</a></li><li><a·href="#impl-TryFrom%3CRc%3C%5BT%5D%3E%3E-for-Rc%3C%5BT;+N%5D%3E">TryFrom&lt;Rc&lt;[T]&gt;&gt;</a></li><li><a·href="#impl-Unpin-for-Rc%3CT,+A%3E">Unpin</a></li><li><a·href="#impl-UnwindSafe-for-Rc%3CT,+A%3E">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">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">Any</a></li><li><a·href="#impl-Borrow%3CT%3E-for-T">Borrow&lt;T&gt;</a></li><li><a·href="#impl-BorrowMut%3CT%3E-for-T">BorrowMut&lt;T&gt;</a></li><li><a·href="#impl-From%3C!%3E-for-T">From&lt;!&gt;</a></li><li><a·href="#impl-From%3CT%3E-for-T">From&lt;T&gt;</a></li><li><a·href="#impl-Into%3CU%3E-for-T">Into&lt;U&gt;</a></li><li><a·href="#impl-ToOwned-for-T">ToOwned</a></li><li><a·href="#impl-ToString-for-T">ToString</a></li><li><a·href="#impl-TryFrom%3CU%3E-for-T">TryFrom&lt;U&gt;</a></li><li><a·href="#impl-TryInto%3CU%3E-for-T">TryInto&lt;U&gt;</a></li></ul></section><h2><a·href="index.html">In·alloc::rc</a></h2></div></nav><div·class="sidebar-resizer"></div>
2 ····<main><div·class="width-limiter"><nav·class="sub"><form·class="search-form"><span></span><div·id="sidebar-button"·tabindex="-1"><a·href="../../alloc/all.html"·title="show·sidebar"></a></div><input·class="search-input"·name="search"·aria-label="Run·search·in·the·documentation"·autocomplete="off"·spellcheck="false"·placeholder="Click·or·press·‘S’·to·search,·‘?’·for·more·options…"·type="search"><div·id="help-button"·tabindex="-1"><a·href="../../help.html"·title="help">?</a></div><div·id="settings-menu"·tabindex="-1"><a·href="../../settings.html"·title="settings"><img·width="22"·height="22"·alt="Change·settings"·src="../../static.files/wheel-7b819b6101059cd0.svg"></a></div></form></nav><section·id="main-content"·class="content"><div·class="main-heading"><h1>Struct·<a·href="../index.html">alloc</a>::<wbr><a·href="index.html">rc</a>::<wbr><a·class="struct"·href="#">Rc</a><button·id="copy-path"·title="Copy·item·path·to·clipboard"><img·src="../../static.files/clipboard-7571035ce49a181d.svg"·width="19"·height="18"·alt="Copy·item·path"></button></h1><span·class="out-of-band"><span·class="since"·title="Stable·since·Rust·version·1.0.0">1.0.0</span>···<a·class="src"·href="../../src/alloc/rc.rs.html#317-324">source</a>···<button·id="toggle-all-docs"·title="collapse·all·docs">[<span>&#x2212;</span>]</button></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·‘Reference2 ····<main><div·class="width-limiter"><nav·class="sub"><form·class="search-form"><span></span><div·id="sidebar-button"·tabindex="-1"><a·href="../../alloc/all.html"·title="show·sidebar"></a></div><input·class="search-input"·name="search"·aria-label="Run·search·in·the·documentation"·autocomplete="off"·spellcheck="false"·placeholder="Click·or·press·‘S’·to·search,·‘?’·for·more·options…"·type="search"><div·id="help-button"·tabindex="-1"><a·href="../../help.html"·title="help">?</a></div><div·id="settings-menu"·tabindex="-1"><a·href="../../settings.html"·title="settings"><img·width="22"·height="22"·alt="Change·settings"·src="../../static.files/wheel-7b819b6101059cd0.svg"></a></div></form></nav><section·id="main-content"·class="content"><div·class="main-heading"><h1>Struct·<a·href="../index.html">alloc</a>::<wbr><a·href="index.html">rc</a>::<wbr><a·class="struct"·href="#">Rc</a><button·id="copy-path"·title="Copy·item·path·to·clipboard"><img·src="../../static.files/clipboard-7571035ce49a181d.svg"·width="19"·height="18"·alt="Copy·item·path"></button></h1><span·class="out-of-band"><span·class="since"·title="Stable·since·Rust·version·1.0.0">1.0.0</span>···<a·class="src"·href="../../src/alloc/rc.rs.html#317-324">source</a>···<button·id="toggle-all-docs"·title="collapse·all·docs">[<span>&#x2212;</span>]</button></span></div><pre·class="rust·item-decl"><code>pub·struct·Rc&lt;T:·?<a·class="trait"·href="https://doc.rust-lang.org/1.78.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
3 Counted’.</p>3 Counted’.</p>
4 <p>See·the·<a·href="./index.html">module-level·documentation</a>·for·more·details.</p>4 <p>See·the·<a·href="./index.html">module-level·documentation</a>·for·more·details.</p>
5 <p>The·inherent·methods·of·<code>Rc</code>·are·all·associated·functions,·which·means5 <p>The·inherent·methods·of·<code>Rc</code>·are·all·associated·functions,·which·means
6 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·of6 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
7 <code>value.get_mut()</code>.·This·avoids·conflicts·with·methods·of·the·inner·type·<code>T</code>.</p>7 <code>value.get_mut()</code>.·This·avoids·conflicts·with·methods·of·the·inner·type·<code>T</code>.</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-Rc%3CT%3E"·class="impl"><a·class="src·rightside"·href="../../src/alloc/rc.rs.html#379-661">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"><a·class="src·rightside"·href="../../src/alloc/rc.rs.html#391-402">source</a><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 </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#379-661">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"><a·class="src·rightside"·href="../../src/alloc/rc.rs.html#391-402">source</a><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>
9 <h5·id="examples"><a·class="doc-anchor"·href="#examples">§</a>Examples</h5>9 <h5·id="examples"><a·class="doc-anchor"·href="#examples">§</a>Examples</h5>
10 <div·class="example-wrap"><pre·class="rust·rust-example-rendered"><code><span·class="kw">use·</span>std::rc::Rc;10 <div·class="example-wrap"><pre·class="rust·rust-example-rendered"><code><span·class="kw">use·</span>std::rc::Rc;
  
11 <span·class="kw">let·</span>five·=·Rc::new(<span·class="number">5</span>);</code></pre><a·class="test-arrow"·target="_blank"·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">Run</a></div>11 <span·class="kw">let·</span>five·=·Rc::new(<span·class="number">5</span>);</code></pre><a·class="test-arrow"·target="_blank"·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">Run</a></div>
12 </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#457-497">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">where12 </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#457-497">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
13 ····F:·<a·class="trait"·href="../../core/ops/function/trait.FnOnce.html"·title="trait·core::ops::function::FnOnce">FnOnce</a>(&amp;<a·class="struct"·href="struct.Weak.html"·title="struct·alloc::rc::Weak">Weak</a>&lt;T&gt;)·-&gt;·T,</div></h4></section></summary><div·class="docblock"><p>Constructs·a·new·<code>Rc&lt;T&gt;</code>·while·giving·you·a·<code>Weak&lt;T&gt;</code>·to·the·allocation,13 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.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,
14 to·allow·you·to·construct·a·<code>T</code>·which·holds·a·weak·pointer·to·itself.</p>14 to·allow·you·to·construct·a·<code>T</code>·which·holds·a·weak·pointer·to·itself.</p>
15 <p>Generally,·a·structure·circularly·referencing·itself,·either·directly·or15 <p>Generally,·a·structure·circularly·referencing·itself,·either·directly·or
16 indirectly,·should·not·hold·a·strong·reference·to·itself·to·prevent·a·memory·leak.16 indirectly,·should·not·hold·a·strong·reference·to·itself·to·prevent·a·memory·leak.
17 Using·this·function,·you·get·access·to·the·weak·pointer·during·the17 Using·this·function,·you·get·access·to·the·weak·pointer·during·the
18 initialization·of·<code>T</code>,·before·the·<code>Rc&lt;T&gt;</code>·is·created,·such·that·you·can18 initialization·of·<code>T</code>,·before·the·<code>Rc&lt;T&gt;</code>·is·created,·such·that·you·can
19 clone·and·store·it·inside·the·<code>T</code>.</p>19 clone·and·store·it·inside·the·<code>T</code>.</p>
20 <p><code>new_cyclic</code>·first·allocates·the·managed·allocation·for·the·<code>Rc&lt;T&gt;</code>,20 <p><code>new_cyclic</code>·first·allocates·the·managed·allocation·for·the·<code>Rc&lt;T&gt;</code>,
Offset 47, 90 lines modifiedOffset 47, 90 lines modified
47 ····}47 ····}
  
48 ····<span·class="doccomment">///·Return·a·reference·counted·pointer·to·Self.48 ····<span·class="doccomment">///·Return·a·reference·counted·pointer·to·Self.
49 ····</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><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;·{
50 ········<span·class="self">self</span>.me.upgrade().unwrap()50 ········<span·class="self">self</span>.me.upgrade().unwrap()
51 ····}51 ····}
52 }</code></pre><a·class="test-arrow"·target="_blank"·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++++++++///+Construct+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++++++++///+Return+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">Run</a></div>52 }</code></pre><a·class="test-arrow"·target="_blank"·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++++++++///+Construct+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++++++++///+Return+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">Run</a></div>
53 </div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.new_uninit"·class="method"><a·class="src·rightside"·href="../../src/alloc/rc.rs.html#521-529">source</a><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><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>new_uninit</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/63291">#63291</a>)</span></div></span></summary><div·class="docblock"><p>Constructs·a·new·<code>Rc</code>·with·uninitialized·contents.</p>53 </div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.new_uninit"·class="method"><a·class="src·rightside"·href="../../src/alloc/rc.rs.html#521-529">source</a><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.78.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_uninit</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/63291">#63291</a>)</span></div></span></summary><div·class="docblock"><p>Constructs·a·new·<code>Rc</code>·with·uninitialized·contents.</p>
54 <h5·id="examples-2"><a·class="doc-anchor"·href="#examples-2">§</a>Examples</h5>54 <h5·id="examples-2"><a·class="doc-anchor"·href="#examples-2">§</a>Examples</h5>
55 <div·class="example-wrap"><pre·class="rust·rust-example-rendered"><code><span·class="attr">#![feature(new_uninit)]55 <div·class="example-wrap"><pre·class="rust·rust-example-rendered"><code><span·class="attr">#![feature(new_uninit)]
56 #![feature(get_mut_unchecked)]56 #![feature(get_mut_unchecked)]
  
57 </span><span·class="kw">use·</span>std::rc::Rc;57 </span><span·class="kw">use·</span>std::rc::Rc;
  
58 <span·class="kw">let·</span><span·class="kw-2">mut·</span>five·=·Rc::&lt;u32&gt;::new_uninit();58 <span·class="kw">let·</span><span·class="kw-2">mut·</span>five·=·Rc::&lt;u32&gt;::new_uninit();
  
59 <span·class="comment">//·Deferred·initialization:59 <span·class="comment">//·Deferred·initialization:
60 </span>Rc::get_mut(<span·class="kw-2">&amp;mut·</span>five).unwrap().write(<span·class="number">5</span>);60 </span>Rc::get_mut(<span·class="kw-2">&amp;mut·</span>five).unwrap().write(<span·class="number">5</span>);
  
61 <span·class="kw">let·</span>five·=·<span·class="kw">unsafe·</span>{·five.assume_init()·};61 <span·class="kw">let·</span>five·=·<span·class="kw">unsafe·</span>{·five.assume_init()·};
  
62 <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"·href="https://play.rust-lang.org/?code=%23!%5Ballow(unused)%5D%0A%23!%5Bfeature(new_uninit)%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">Run</a></div>62 <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"·href="https://play.rust-lang.org/?code=%23!%5Ballow(unused)%5D%0A%23!%5Bfeature(new_uninit)%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">Run</a></div>
63 </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#554-562">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_uninit</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/63291">#63291</a>)</span></div></span></summary><div·class="docblock"><p>Constructs·a·new·<code>Rc</code>·with·uninitialized·contents,·with·the·memory63 </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#554-562">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.78.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_uninit</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/63291">#63291</a>)</span></div></span></summary><div·class="docblock"><p>Constructs·a·new·<code>Rc</code>·with·uninitialized·contents,·with·the·memory
64 being·filled·with·<code>0</code>·bytes.</p>64 being·filled·with·<code>0</code>·bytes.</p>
65 <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·and65 <p>See·<a·href="https://doc.rust-lang.org/1.78.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
66 incorrect·usage·of·this·method.</p>66 incorrect·usage·of·this·method.</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="attr">#![feature(new_uninit)]68 <div·class="example-wrap"><pre·class="rust·rust-example-rendered"><code><span·class="attr">#![feature(new_uninit)]
  
69 </span><span·class="kw">use·</span>std::rc::Rc;69 </span><span·class="kw">use·</span>std::rc::Rc;
  
70 <span·class="kw">let·</span>zero·=·Rc::&lt;u32&gt;::new_zeroed();70 <span·class="kw">let·</span>zero·=·Rc::&lt;u32&gt;::new_zeroed();
71 <span·class="kw">let·</span>zero·=·<span·class="kw">unsafe·</span>{·zero.assume_init()·};71 <span·class="kw">let·</span>zero·=·<span·class="kw">unsafe·</span>{·zero.assume_init()·};
  
72 <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"·href="https://play.rust-lang.org/?code=%23!%5Ballow(unused)%5D%0A%23!%5Bfeature(new_uninit)%5D%0A%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">Run</a></div>72 <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"·href="https://play.rust-lang.org/?code=%23!%5Ballow(unused)%5D%0A%23!%5Bfeature(new_uninit)%5D%0A%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">Run</a></div>
73 </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#576-587">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>73 </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#576-587">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.78.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>
74 <h5·id="examples-4"><a·class="doc-anchor"·href="#examples-4">§</a>Examples</h5>74 <h5·id="examples-4"><a·class="doc-anchor"·href="#examples-4">§</a>Examples</h5>
75 <div·class="example-wrap"><pre·class="rust·rust-example-rendered"><code><span·class="attr">#![feature(allocator_api)]75 <div·class="example-wrap"><pre·class="rust·rust-example-rendered"><code><span·class="attr">#![feature(allocator_api)]
76 </span><span·class="kw">use·</span>std::rc::Rc;76 </span><span·class="kw">use·</span>std::rc::Rc;
  
77 <span·class="kw">let·</span>five·=·Rc::try_new(<span·class="number">5</span>);</code></pre><a·class="test-arrow"·target="_blank"·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">Run</a></div>77 <span·class="kw">let·</span>five·=·Rc::try_new(<span·class="number">5</span>);</code></pre><a·class="test-arrow"·target="_blank"·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">Run</a></div>
78 </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#611-619">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>78 </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#611-619">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.78.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.78.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>
79 <h5·id="examples-5"><a·class="doc-anchor"·href="#examples-5">§</a>Examples</h5>79 <h5·id="examples-5"><a·class="doc-anchor"·href="#examples-5">§</a>Examples</h5>
80 <div·class="example-wrap"><pre·class="rust·rust-example-rendered"><code><span·class="attr">#![feature(allocator_api,·new_uninit)]80 <div·class="example-wrap"><pre·class="rust·rust-example-rendered"><code><span·class="attr">#![feature(allocator_api,·new_uninit)]
81 #![feature(get_mut_unchecked)]81 #![feature(get_mut_unchecked)]
  
82 </span><span·class="kw">use·</span>std::rc::Rc;82 </span><span·class="kw">use·</span>std::rc::Rc;
  
83 <span·class="kw">let·</span><span·class="kw-2">mut·</span>five·=·Rc::&lt;u32&gt;::try_new_uninit()<span·class="question-mark">?</span>;83 <span·class="kw">let·</span><span·class="kw-2">mut·</span>five·=·Rc::&lt;u32&gt;::try_new_uninit()<span·class="question-mark">?</span>;
  
84 <span·class="comment">//·Deferred·initialization:84 <span·class="comment">//·Deferred·initialization:
85 </span>Rc::get_mut(<span·class="kw-2">&amp;mut·</span>five).unwrap().write(<span·class="number">5</span>);85 </span>Rc::get_mut(<span·class="kw-2">&amp;mut·</span>five).unwrap().write(<span·class="number">5</span>);
  
86 <span·class="kw">let·</span>five·=·<span·class="kw">unsafe·</span>{·five.assume_init()·};86 <span·class="kw">let·</span>five·=·<span·class="kw">unsafe·</span>{·five.assume_init()·};
  
87 <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"·href="https://play.rust-lang.org/?code=%23!%5Ballow(unused)%5D%0A%23!%5Bfeature(allocator_api,+new_uninit)%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">Run</a></div>87 <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"·href="https://play.rust-lang.org/?code=%23!%5Ballow(unused)%5D%0A%23!%5Bfeature(allocator_api,+new_uninit)%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">Run</a></div>
88 </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#644-652">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·memory88 </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#644-652">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.78.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.78.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
89 being·filled·with·<code>0</code>·bytes,·returning·an·error·if·the·allocation·fails</p>89 being·filled·with·<code>0</code>·bytes,·returning·an·error·if·the·allocation·fails</p>
90 <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·and90 <p>See·<a·href="https://doc.rust-lang.org/1.78.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
91 incorrect·usage·of·this·method.</p>91 incorrect·usage·of·this·method.</p>
92 <h5·id="examples-6"><a·class="doc-anchor"·href="#examples-6">§</a>Examples</h5>92 <h5·id="examples-6"><a·class="doc-anchor"·href="#examples-6">§</a>Examples</h5>
93 <div·class="example-wrap"><pre·class="rust·rust-example-rendered"><code><span·class="attr">#![feature(allocator_api,·new_uninit)]93 <div·class="example-wrap"><pre·class="rust·rust-example-rendered"><code><span·class="attr">#![feature(allocator_api,·new_uninit)]
  
94 </span><span·class="kw">use·</span>std::rc::Rc;94 </span><span·class="kw">use·</span>std::rc::Rc;
  
95 <span·class="kw">let·</span>zero·=·Rc::&lt;u32&gt;::try_new_zeroed()<span·class="question-mark">?</span>;95 <span·class="kw">let·</span>zero·=·Rc::&lt;u32&gt;::try_new_zeroed()<span·class="question-mark">?</span>;
96 <span·class="kw">let·</span>zero·=·<span·class="kw">unsafe·</span>{·zero.assume_init()·};96 <span·class="kw">let·</span>zero·=·<span·class="kw">unsafe·</span>{·zero.assume_init()·};
  
97 <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"·href="https://play.rust-lang.org/?code=%23!%5Ballow(unused)%5D%0A%23!%5Bfeature(allocator_api,+new_uninit)%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">Run</a></div>97 <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"·href="https://play.rust-lang.org/?code=%23!%5Ballow(unused)%5D%0A%23!%5Bfeature(allocator_api,+new_uninit)%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">Run</a></div>
98 </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#658-660">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>,·then98 </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#658-660">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.78.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
99 <code>value</code>·will·be·pinned·in·memory·and·unable·to·be·moved.</p>99 <code>value</code>·will·be·pinned·in·memory·and·unable·to·be·moved.</p>
100 </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#663-967">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.allocator"·class="method"><a·class="src·rightside"·href="../../src/alloc/rc.rs.html#671-673">source</a><h4·class="code-header">pub·fn·<a·href="#method.allocator"·class="fn">allocator</a>(this:·<a·class="primitive"·href="../../core/primitive.reference.html">&amp;Self</a>)·-&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>100 </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#663-967">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.allocator"·class="method"><a·class="src·rightside"·href="../../src/alloc/rc.rs.html#671-673">source</a><h4·class="code-header">pub·fn·<a·href="#method.allocator"·class="fn">allocator</a>(this:·<a·class="primitive"·href="https://doc.rust-lang.org/1.78.0/core/primitive.reference.html">&amp;Self</a>)·-&gt;·<a·class="primitive"·href="https://doc.rust-lang.org/1.78.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>
101 <p>Note:·this·is·an·associated·function,·which·means·that·you·have101 <p>Note:·this·is·an·associated·function,·which·means·that·you·have
102 to·call·it·as·<code>Rc::allocator(&amp;r)</code>·instead·of·<code>r.allocator()</code>.·This102 to·call·it·as·<code>Rc::allocator(&amp;r)</code>·instead·of·<code>r.allocator()</code>.·This
103 is·so·that·there·is·no·conflict·with·a·method·on·the·inner·type.</p>103 is·so·that·there·is·no·conflict·with·a·method·on·the·inner·type.</p>
104 </div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.new_in"·class="method"><a·class="src·rightside"·href="../../src/alloc/rc.rs.html#688-695">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>104 </div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.new_in"·class="method"><a·class="src·rightside"·href="../../src/alloc/rc.rs.html#688-695">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>
105 <h5·id="examples-7"><a·class="doc-anchor"·href="#examples-7">§</a>Examples</h5>105 <h5·id="examples-7"><a·class="doc-anchor"·href="#examples-7">§</a>Examples</h5>
106 <div·class="example-wrap"><pre·class="rust·rust-example-rendered"><code><span·class="attr">#![feature(allocator_api)]106 <div·class="example-wrap"><pre·class="rust·rust-example-rendered"><code><span·class="attr">#![feature(allocator_api)]
107 </span><span·class="kw">use·</span>std::rc::Rc;107 </span><span·class="kw">use·</span>std::rc::Rc;
108 <span·class="kw">use·</span>std::alloc::System;108 <span·class="kw">use·</span>std::alloc::System;
  
109 <span·class="kw">let·</span>five·=·Rc::new_in(<span·class="number">5</span>,·System);</code></pre><a·class="test-arrow"·target="_blank"·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">Run</a></div>109 <span·class="kw">let·</span>five·=·Rc::new_in(<span·class="number">5</span>,·System);</code></pre><a·class="test-arrow"·target="_blank"·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">Run</a></div>
110 </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#724-735">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>110 </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#724-735">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.78.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>
111 <h5·id="examples-8"><a·class="doc-anchor"·href="#examples-8">§</a>Examples</h5>111 <h5·id="examples-8"><a·class="doc-anchor"·href="#examples-8">§</a>Examples</h5>
112 <div·class="example-wrap"><pre·class="rust·rust-example-rendered"><code><span·class="attr">#![feature(new_uninit)]112 <div·class="example-wrap"><pre·class="rust·rust-example-rendered"><code><span·class="attr">#![feature(new_uninit)]
113 #![feature(get_mut_unchecked)]113 #![feature(get_mut_unchecked)]
114 #![feature(allocator_api)]114 #![feature(allocator_api)]
  
115 </span><span·class="kw">use·</span>std::rc::Rc;115 </span><span·class="kw">use·</span>std::rc::Rc;
116 <span·class="kw">use·</span>std::alloc::System;116 <span·class="kw">use·</span>std::alloc::System;
Offset 141, 38 lines modifiedOffset 141, 38 lines modified
141 ····<span·class="comment">//·Deferred·initialization:141 ····<span·class="comment">//·Deferred·initialization:
142 ····</span>Rc::get_mut_unchecked(<span·class="kw-2">&amp;mut·</span>five).as_mut_ptr().write(<span·class="number">5</span>);142 ····</span>Rc::get_mut_unchecked(<span·class="kw-2">&amp;mut·</span>five).as_mut_ptr().write(<span·class="number">5</span>);
  
143 ····five.assume_init()143 ····five.assume_init()
144 };144 };
  
145 <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"·href="https://play.rust-lang.org/?code=%23!%5Ballow(unused)%5D%0A%23!%5Bfeature(new_uninit)%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">Run</a></div>145 <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"·href="https://play.rust-lang.org/?code=%23!%5Ballow(unused)%5D%0A%23!%5Bfeature(new_uninit)%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">Run</a></div>
146 </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#763-774">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·memory146 </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#763-774">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.78.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
147 being·filled·with·<code>0</code>·bytes,·in·the·provided·allocator.</p>147 being·filled·with·<code>0</code>·bytes,·in·the·provided·allocator.</p>
148 <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·and148 <p>See·<a·href="https://doc.rust-lang.org/1.78.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
149 incorrect·usage·of·this·method.</p>149 incorrect·usage·of·this·method.</p>
150 <h5·id="examples-9"><a·class="doc-anchor"·href="#examples-9">§</a>Examples</h5>150 <h5·id="examples-9"><a·class="doc-anchor"·href="#examples-9">§</a>Examples</h5>
151 <div·class="example-wrap"><pre·class="rust·rust-example-rendered"><code><span·class="attr">#![feature(new_uninit)]151 <div·class="example-wrap"><pre·class="rust·rust-example-rendered"><code><span·class="attr">#![feature(new_uninit)]
152 #![feature(allocator_api)]152 #![feature(allocator_api)]
Max diff block lines reached; 282989/330360 bytes (85.66%) of diff not shown.
44.0 KB
./usr/share/doc/rust-web-doc/html/alloc/rc/struct.UniqueRc.html
    
Offset 22, 35 lines modifiedOffset 22, 35 lines modified
22 ····});22 ····});
23 ····rc.me·=·UniqueRc::downgrade(<span·class="kw-2">&amp;</span>rc);23 ····rc.me·=·UniqueRc::downgrade(<span·class="kw-2">&amp;</span>rc);
24 ····<span·class="prelude-val">Some</span>(UniqueRc::into_rc(rc))24 ····<span·class="prelude-val">Some</span>(UniqueRc::into_rc(rc))
25 }25 }
  
26 create_gadget().unwrap();</code></pre><a·class="test-arrow"·target="_blank"·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">Run</a></div>26 create_gadget().unwrap();</code></pre><a·class="test-arrow"·target="_blank"·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">Run</a></div>
27 <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·that27 <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
28 <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·the28 <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.78.0/core/result/enum.Result.html"·title="enum·core::result::Result"><code>Result</code></a>.·As·shown·in·the
29 previous·example,·<code>UniqueRc</code>·allows·for·more·flexibility·in·the·construction·of·cyclic·data,29 previous·example,·<code>UniqueRc</code>·allows·for·more·flexibility·in·the·construction·of·cyclic·data,
30 including·fallible·or·async·constructors.</p>30 including·fallible·or·async·constructors.</p>
31 </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#3507-3561">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#3516-3528">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 </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#3507-3561">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#3516-3528">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>
32 <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>.·Upgrading32 <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
33 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 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>.
34 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·will34 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
35 point·to·the·new·<a·href="struct.Rc.html"·title="struct·alloc::rc::Rc"><code>Rc</code></a>.</p>35 point·to·the·new·<a·href="struct.Rc.html"·title="struct·alloc::rc::Rc"><code>Rc</code></a>.</p>
36 </div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.downgrade"·class="method"><a·class="src·rightside"·href="../../src/alloc/rc.rs.html#3535-3542">source</a><h4·class="code-header">pub·fn·<a·href="#method.downgrade"·class="fn">downgrade</a>(this:·<a·class="primitive"·href="../../core/primitive.reference.html">&amp;Self</a>)·-&gt;·<a·class="struct"·href="struct.Weak.html"·title="struct·alloc::rc::Weak">Weak</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>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>36 </div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.downgrade"·class="method"><a·class="src·rightside"·href="../../src/alloc/rc.rs.html#3535-3542">source</a><h4·class="code-header">pub·fn·<a·href="#method.downgrade"·class="fn">downgrade</a>(this:·<a·class="primitive"·href="https://doc.rust-lang.org/1.78.0/core/primitive.reference.html">&amp;Self</a>)·-&gt;·<a·class="struct"·href="struct.Weak.html"·title="struct·alloc::rc::Weak">Weak</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>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>
37 <p>Attempting·to·upgrade·this·weak·reference·will·fail·before·the·<code>UniqueRc</code>·has·been·converted37 <p>Attempting·to·upgrade·this·weak·reference·will·fail·before·the·<code>UniqueRc</code>·has·been·converted
38 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>38 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>
39 </div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.into_rc"·class="method"><a·class="src·rightside"·href="../../src/alloc/rc.rs.html#3552-3560">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&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>39 </div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.into_rc"·class="method"><a·class="src·rightside"·href="../../src/alloc/rc.rs.html#3552-3560">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&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 <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>·that40 <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
41 is·passed·to·<code>into_rc</code>.</p>41 is·passed·to·<code>into_rc</code>.</p>
42 <p>Any·weak·references·created·before·this·method·is·called·can·now·be·upgraded·to·strong42 <p>Any·weak·references·created·before·this·method·is·called·can·now·be·upgraded·to·strong
43 references.</p>43 references.</p>
44 </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%3E"·class="impl"><a·class="src·rightside"·href="../../src/alloc/rc.rs.html#3501">source</a><a·href="#impl-Debug-for-UniqueRc%3CT%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.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.fmt"·class="method·trait-impl"><a·class="src·rightside"·href="../../src/alloc/rc.rs.html#3501">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-Deref-for-UniqueRc%3CT%3E"·class="impl"><a·class="src·rightside"·href="../../src/alloc/rc.rs.html#3564-3571">source</a><a·href="#impl-Deref-for-UniqueRc%3CT%3E"·class="anchor">§</a><h3·class="code-header">impl&lt;T&gt;·<a·class="trait"·href="../../core/ops/deref/trait.Deref.html"·title="trait·core::ops::deref::Deref">Deref</a>·for·<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[·...·truncated·by·diffoscope;·len:·5118,·SHA:·8507ec5232d86fbbd8fba103752a9f2dcd5699adf7b3306523e89a947b69b736·...·]/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&gt;<div·class="where">where44 </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%3E"·class="impl"><a·class="src·rightside"·href="../../src/alloc/rc.rs.html#3501">source</a><a·href="#impl-Debug-for-UniqueRc%3CT%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.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.fmt"·class="method·trait-impl"><a·class="src·rightside"·href="../../src/alloc/rc.rs.html#3501">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-Deref-for-UniqueRc%3CT%3E"·class="impl"><a·class="src·rightside"·href="../../src/alloc/rc.rs.html#3564-3571">source</a><a·href="#impl-Deref-for-UniqueRc%3CT%3E"·class="anchor">§</a><h3·class="code-header">impl&lt;T&gt;·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/ops/deref/trait.Deref.html"·title="trait·core::ops::deref::Deref">Deref</a>·for·<a·class="struct"·href="struct.UniqueRc.html"·title="struct·alloc::rc::UniqueRc">UniqueRc</a>&lt;T&gt;</h3></section></summary><div·class=[·...·truncated·by·diffoscope;·len:·5523,·SHA:·2ae8f71f396ac8011ff01a94a8bf4ccee847f205f2f510bb28a1483e378cb452·...·]/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&gt;<div·class="where">where
45 ····T:·<a·class="trait"·href="../../core/marker/trait.Unpin.html"·title="trait·core::marker::Unpin">Unpin</a>,</div></h3></section><section·id="impl-UnwindSafe-for-UniqueRc%3CT%3E"·class="impl"><a·href="#impl-UnwindSafe-for-UniqueRc%3CT%3E"·class="anchor">§</a><h3·class="code-header">i[·...·truncated·by·diffoscope;·len:·740,·SHA:·4f57d758acee081d9815874d2eee51103683076dde63e0e5b556dbc3137e04e5·...·]/core/any/trait.Any.html"·title="trait·core::any::Any">Any</a>·for·T<div·class="where">where45 ····T:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/marker/trait.Unpin.html"·title="trait·core::marker::Unpin">Unpin</a>,</div></h3></section><section·id="impl-UnwindSafe-for-UniqueRc%3CT%3E"·class="impl"><a·href="#impl-UnwindSafe-for-UniqueRc%3CT%3E"·class="anchor">§</[·...·truncated·by·diffoscope;·len:·848,·SHA:·1e2ccc1e44c95b6799c4bd6b2c5db1c99e2405ea2cc58ed72a7742f87a15201f·...·]/core/any/trait.Any.html"·title="trait·core::any::Any">Any</a>·for·T<div·class="where">where
46 ····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:·9db8bacb767d75cc3351ca7341c388130aa05ebef490d992be5374f16eedc378·...·]/src/core/borrow.rs.html#208">source</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">where46 ····T:·'static·+·?<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">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:·039b8952ccb1ab7d8f15cd519cbc10f4afc149276d0f9cfd3a53117d606059df·...·]/src/core/borrow.rs.html#208">source</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
47 ····T:·?<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::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:·b2ffbab17ff1ef71ba4c506a3aaa515da2082da6f02a53862ce1ca2b2b25f5b4·...·]/src/core/borrow.rs.html#216">source</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">where47 ····T:·?<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/marker/trait.Sized.html"·title="trait·core::marker::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:·952d76e7bcf7b521fffa418ce638abf69976de0942360e56f93e419ca3389394·...·]/src/core/borrow.rs.html#216">source</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
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_mut"·class="method·trait-impl"><a·class="s[·...·truncated·by·diffoscope;·len:·1227,·SHA:·befefcb8cb29dc857e1f3050572f6f470317e3350e0851c4ed6e56cc38673a92·...·]/core/convert/trait.From.html#tymethod.from"·class="fn">from</a>(t:·T)·-&gt;·T</h4></section></summary><div·class="docblock"><p>Returns·the·argument·unchanged.</p>48 ····T:·?<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/marker/trait.Sized.html"·title="trait·core::marker::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:·204bc28c8766993ff59d26bb790f1469ab686e6f172c57f35aa987a81507a7b1·...·]/core/convert/trait.From.html#tymethod.from"·class="fn">from</a>(t:·T)·-&gt;·T</h4></section></summary><div·class="docblock"><p>Returns·the·argument·unchanged.</p>
49 </div></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">where49 </div></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.78.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.78.0/core/convert/trait.Into.html"·title="trait·core::convert::Into">Into</a>&lt;U&gt;·for·T<div·class="where">where
50 ····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>50 ····U:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.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:·2cf76a8ca501b2a1fef209fed846779ab1bed3b75f52c7425335e3ce04e6b272·...·]/core/convert/trait.Into.html#tymethod.into"·class="fn">into</a>(self)·-&gt;·U</h4></section></summary><div·class="docblock"><p>Calls·<code>U::from(self)</code>.</p>
51 <p>That·is,·this·conversion·is·whatever·the·implementation·of51 <p>That·is,·this·conversion·is·whatever·the·implementation·of
52 <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>52 <code><a·href="https://doc.rust-lang.org/1.78.0/core/convert/trait.From.html"·title="trait·core::convert::From">From</a>&lt;T&gt;·for·U</code>·chooses·to·do.</p>
53 </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">where53 </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.78.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.78.0/core/convert/trait.TryFrom.html"·title="trait·core::convert::TryFrom">TryFrom</a>&lt;U&gt;·for·T<div·class="where">where
54 ····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"·class="associatedtype·trait-impl"><a·hre[·...·truncated·by·diffoscope;·len:·1591,·SHA:·8537afacf1b3cf6b9fb7db778975d49d8a8e5988d420715e464ff4a79dd696c5·...·]/core/convert/trait.TryInto.html"·title="trait·core::convert::TryInto">TryInto</a>&lt;U&gt;·for·T<div·class="where">where54 ····U:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.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"·class="associ[·...·truncated·by·diffoscope;·len:·1861,·SHA:·78398046ba16de2f66a8201a11d6a2dd405fceedeabfcaa37481e77092687e6f·...·]/core/convert/trait.TryInto.html"·title="trait·core::convert::TryInto">TryInto</a>&lt;U&gt;·for·T<div·class="where">where
55 ····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-1"·class="associatedtype·trait-i[·...·truncated·by·diffoscope;·len:·1231,·SHA:·7843e7b6cca73922417e4154886c0df66f016d274b48933c21bdb75b67479d5b·...·]/core/convert/trait.TryFrom.html#associatedtype.Error"·title="type·core::convert::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 ····U:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.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-1"·cl[·...·truncated·by·diffoscope;·len:·1474,·SHA:·ca90cccb6c86c654c95a1aaec456fbbe4b115f0d5a700e7d156e823346d70894·...·]/core/convert/trait.TryFrom.html#associatedtype.Error"·title="type·core::convert::TryFrom::Error">Error</a>&gt;</h4></section></summary><div·class='docblock'>Performs·the·conversion.</div></details></div></details></div></section></div></main></body></html>
98.2 KB
./usr/share/doc/rust-web-doc/html/alloc/rc/struct.Weak.html
    
Offset 1, 39 lines modifiedOffset 1, 39 lines modified
1 <!DOCTYPE·html><html·lang="en"><head><meta·charset="utf-8"><meta·name="viewport"·content="width=device-width,·initial-scale=1.0"><meta·name="generator"·content="rustdoc"><meta·name="description"·content="`Weak`·is·a·version·of·`Rc`·that·holds·a·non-owning·reference·to·the·managed·allocation.·The·allocation·is·accessed·by·calling·`upgrade`·on·the·`Weak`·pointer,·which·returns·an·Option&lt;Rc&lt;T&gt;&gt;."><title>Weak·in·alloc::rc·-·Rust</title><script>·if·(window.location.protocol·!==·"file:")·document.write(`<link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/SourceSerif4-Regular-46f98efaafac5295.ttf.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/FiraSans-Regular-018c141bf0843ffd.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/FiraSans-Medium-8f9a781e4970d388.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/SourceCodePro-Regular-562dcc5011b6de7d.ttf.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/SourceCodePro-Semibold-d899c5a5c4aeb14a.ttf.woff2">`)</script><link·rel="stylesheet"·href="../../static.files/normalize-76eba96aa4d2e634.css"><link·rel="stylesheet"·href="../../static.files/rustdoc-35f9e32502181f1e.css"><meta·name="rustdoc-vars"·data-root-path="../../"·data-static-root-path="../../static.files/"·data-current-crate="alloc"·data-themes=""·data-resource-suffix="1.78.0"·data-rustdoc-version="1.78.0"·data-channel="1.78.0"·data-search-js="search-42d8da7a6b9792c2.js"·data-settings-js="settings-4313503d2e1961c2.js"·><script·src="../../static.files/storage-4c98445ec4002617.js"></script><script·defer·src="sidebar-items1.78.0.js"></script><script·defer·src="../../static.files/main-12cf3b4f4f9dc36d.js"></script><noscript><link·rel="stylesheet"·href="../../static.files/noscript-04d5337699b92874.css"></noscript><link·rel="alternate·icon"·type="image/png"·href="../../static.files/favicon-16x16-8b506e7a72182f1c.png"><link·rel="alternate·icon"·type="image/png"·href="../../static.files/favicon-32x32-422f7d1d52889060.png"><link·rel="icon"·type="image/svg+xml"·href="../../static.files/favicon-2c020d218678b618.svg"></head><body·class="rustdoc·struct"><!--[if·lte·IE·11]><div·class="warning">This·old·browser·is·unsupported·and·will·most·likely·display·funky·things.</div><![endif]--><nav·class="mobile-topbar"><button·class="sidebar-menu-toggle"·title="show·sidebar"></button><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-151179464ae7ed46.svg"·alt=""></a></nav><nav·class="sidebar"><div·class="sidebar-crate"><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-151179464ae7ed46.svg"·alt="logo"></a><h2><a·href="../../alloc/index.html">alloc</a><span·class="version">1.78.0</span></h2></div><h2·class="location"><a·href="#">Weak</a></h2><div·class="sidebar-elems"><section><h3><a·href="#implementations">Methods</a></h3><ul·class="block·method"><li><a·href="#method.as_ptr">as_ptr</a></li><li><a·href="#method.from_raw">from_raw</a></li><li><a·href="#method.from_raw_in">from_raw_in</a></li><li><a·href="#method.into_raw">into_raw</a></li><li><a·href="#method.into_raw_and_alloc">into_raw_and_alloc</a></li><li><a·href="#method.new">new</a></li><li><a·href="#method.new_in">new_in</a></li><li><a·href="#method.ptr_eq">ptr_eq</a></li><li><a·href="#method.strong_count">strong_count</a></li><li><a·href="#method.upgrade">upgrade</a></li><li><a·href="#method.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">!Send</a></li><li><a·href="#impl-Sync-for-Weak%3CT,+A%3E">!Sync</a></li><li><a·href="#impl-Clone-for-Weak%3CT,+A%3E">Clone</a></li><li><a·href="#impl-CoerceUnsized%3CWeak%3CU,+A%3E%3E-for-Weak%3CT,+A%3E">CoerceUnsized&lt;Weak&lt;U,·A&gt;&gt;</a></li><li><a·href="#impl-Debug-for-Weak%3CT,+A%3E">Debug</a></li><li><a·href="#impl-Default-for-Weak%3CT%3E">Default</a></li><li><a·href="#impl-DispatchFromDyn%3CWeak%3CU%3E%3E-for-Weak%3CT%3E">DispatchFromDyn&lt;Weak&lt;U&gt;&gt;</a></li><li><a·href="#impl-Drop-for-Weak%3CT,+A%3E">Drop</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">!RefUnwindSafe</a></li><li><a·href="#impl-UnwindSafe-for-Weak%3CT,+A%3E">!UnwindSafe</a></li><li><a·href="#impl-Freeze-for-Weak%3CT,+A%3E">Freeze</a></li><li><a·href="#impl-Unpin-for-Weak%3CT,+A%3E">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">Any</a></li><li><a·href="#impl-Borrow%3CT%3E-for-T">Borrow&lt;T&gt;</a></li><li><a·href="#impl-BorrowMut%3CT%3E-for-T">BorrowMut&lt;T&gt;</a></li><li><a·href="#impl-From%3CT%3E-for-T">From&lt;T&gt;</a></li><li><a·href="#impl-Into%3CU%3E-for-T">Into&lt;U&gt;</a></li><li><a·href="#impl-ToOwned-for-T">ToOwned</a></li><li><a·href="#impl-TryFrom%3CU%3E-for-T">TryFrom&lt;U&gt;</a></li><li><a·href="#impl-TryInto%3CU%3E-for-T">TryInto&lt;U&gt;</a></li></ul></section><h2><a·href="index.html">In·alloc::rc</a></h2></div></nav><div·class="sidebar-resizer"></div>1 <!DOCTYPE·html><html·lang="en"><head><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&lt;Rc&lt;T&gt;&gt;."><title>Weak·in·alloc::rc·-·Rust</title><script>·if·(window.location.protocol·!==·"file:")·document.write(`<link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/SourceSerif4-Regular-46f98efaafac5295.ttf.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/FiraSans-Regular-018c141bf0843ffd.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/FiraSans-Medium-8f9a781e4970d388.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/SourceCodePro-Regular-562dcc5011b6de7d.ttf.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/SourceCodePro-Semibold-d899c5a5c4aeb14a.ttf.woff2">`)</script><link·rel="stylesheet"·href="../../static.files/normalize-76eba96aa4d2e634.css"><link·rel="stylesheet"·href="../../static.files/rustdoc-35f9e32502181f1e.css"><meta·name="rustdoc-vars"·data-root-path="../../"·data-static-root-path="../../static.files/"·data-current-crate="alloc"·data-themes=""·data-resource-suffix="1.78.0"·data-rustdoc-version="1.78.0"·data-channel="1.78.0"·data-search-js="search-42d8da7a6b9792c2.js"·data-settings-js="settings-4313503d2e1961c2.js"·><script·src="../../static.files/storage-4c98445ec4002617.js"></script><script·defer·src="sidebar-items1.78.0.js"></script><script·defer·src="../../static.files/main-12cf3b4f4f9dc36d.js"></script><noscript><link·rel="stylesheet"·href="../../static.files/noscript-04d5337699b92874.css"></noscript><link·rel="alternate·icon"·type="image/png"·href="../../static.files/favicon-16x16-8b506e7a72182f1c.png"><link·rel="alternate·icon"·type="image/png"·href="../../static.files/favicon-32x32-422f7d1d52889060.png"><link·rel="icon"·type="image/svg+xml"·href="../../static.files/favicon-2c020d218678b618.svg"></head><body·class="rustdoc·struct"><!--[if·lte·IE·11]><div·class="warning">This·old·browser·is·unsupported·and·will·most·likely·display·funky·things.</div><![endif]--><nav·class="mobile-topbar"><button·class="sidebar-menu-toggle"·title="show·sidebar"></button><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-151179464ae7ed46.svg"·alt=""></a></nav><nav·class="sidebar"><div·class="sidebar-crate"><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-151179464ae7ed46.svg"·alt="logo"></a><h2><a·href="../../alloc/index.html">alloc</a><span·class="version">1.78.0</span></h2></div><h2·class="location"><a·href="#">Weak</a></h2><div·class="sidebar-elems"><section><h3><a·href="#implementations">Methods</a></h3><ul·class="block·method"><li><a·href="#method.as_ptr">as_ptr</a></li><li><a·href="#method.from_raw">from_raw</a></li><li><a·href="#method.from_raw_in">from_raw_in</a></li><li><a·href="#method.into_raw">into_raw</a></li><li><a·href="#method.into_raw_and_alloc">into_raw_and_alloc</a></li><li><a·href="#method.new">new</a></li><li><a·href="#method.new_in">new_in</a></li><li><a·href="#method.ptr_eq">ptr_eq</a></li><li><a·href="#method.strong_count">strong_count</a></li><li><a·href="#method.upgrade">upgrade</a></li><li><a·href="#method.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">!Send</a></li><li><a·href="#impl-Sync-for-Weak%3CT,+A%3E">!Sync</a></li><li><a·href="#impl-Clone-for-Weak%3CT,+A%3E">Clone</a></li><li><a·href="#impl-CoerceUnsized%3CWeak%3CU,+A%3E%3E-for-Weak%3CT,+A%3E">CoerceUnsized&lt;Weak&lt;U,·A&gt;&gt;</a></li><li><a·href="#impl-Debug-for-Weak%3CT,+A%3E">Debug</a></li><li><a·href="#impl-Default-for-Weak%3CT%3E">Default</a></li><li><a·href="#impl-DispatchFromDyn%3CWeak%3CU%3E%3E-for-Weak%3CT%3E">DispatchFromDyn&lt;Weak&lt;U&gt;&gt;</a></li><li><a·href="#impl-Drop-for-Weak%3CT,+A%3E">Drop</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">!RefUnwindSafe</a></li><li><a·href="#impl-UnwindSafe-for-Weak%3CT,+A%3E">!UnwindSafe</a></li><li><a·href="#impl-Freeze-for-Weak%3CT,+A%3E">Freeze</a></li><li><a·href="#impl-Unpin-for-Weak%3CT,+A%3E">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">Any</a></li><li><a·href="#impl-Borrow%3CT%3E-for-T">Borrow&lt;T&gt;</a></li><li><a·href="#impl-BorrowMut%3CT%3E-for-T">BorrowMut&lt;T&gt;</a></li><li><a·href="#impl-From%3CT%3E-for-T">From&lt;T&gt;</a></li><li><a·href="#impl-Into%3CU%3E-for-T">Into&lt;U&gt;</a></li><li><a·href="#impl-ToOwned-for-T">ToOwned</a></li><li><a·href="#impl-TryFrom%3CU%3E-for-T">TryFrom&lt;U&gt;</a></li><li><a·href="#impl-TryInto%3CU%3E-for-T">TryInto&lt;U&gt;</a></li></ul></section><h2><a·href="index.html">In·alloc::rc</a></h2></div></nav><div·class="sidebar-resizer"></div>
2 ····<main><div·class="width-limiter"><nav·class="sub"><form·class="search-form"><span></span><div·id="sidebar-button"·tabindex="-1"><a·href="../../alloc/all.html"·title="show·sidebar"></a></div><input·class="search-input"·name="search"·aria-label="Run·search·in·the·documentation"·autocomplete="off"·spellcheck="false"·placeholder="Click·or·press·‘S’·to·search,·‘?’·for·more·options…"·type="search"><div·id="help-button"·tabindex="-1"><a·href="../../help.html"·title="help">?</a></div><div·id="settings-menu"·tabindex="-1"><a·href="../../settings.html"·title="settings"><img·width="22"·height="22"·alt="Change·settings"·src="../../static.files/wheel-7b819b6101059cd0.svg"></a></div></form></nav><section·id="main-content"·class="content"><div·class="main-heading"><h1>Struct·<a·href="../index.html">alloc</a>::<wbr><a·href="index.html">rc</a>::<wbr><a·class="struct"·href="#">Weak</a><button·id="copy-path"·title="Copy·item·path·to·clipboard"><img·src="../../static.files/clipboard-7571035ce49a181d.svg"·width="19"·height="18"·alt="Copy·item·path"></button></h1><span·class="out-of-band"><span·class="since"·title="Stable·since·Rust·version·1.4.0">1.4.0</span>···<a·class="src"·href="../../src/alloc/rc.rs.html#2778-2790">source</a>···<button·id="toggle-all-docs"·title="collapse·all·docs">[<span>&#x2212;</span>]</button></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·the2 ····<main><div·class="width-limiter"><nav·class="sub"><form·class="search-form"><span></span><div·id="sidebar-button"·tabindex="-1"><a·href="../../alloc/all.html"·title="show·sidebar"></a></div><input·class="search-input"·name="search"·aria-label="Run·search·in·the·documentation"·autocomplete="off"·spellcheck="false"·placeholder="Click·or·press·‘S’·to·search,·‘?’·for·more·options…"·type="search"><div·id="help-button"·tabindex="-1"><a·href="../../help.html"·title="help">?</a></div><div·id="settings-menu"·tabindex="-1"><a·href="../../settings.html"·title="settings"><img·width="22"·height="22"·alt="Change·settings"·src="../../static.files/wheel-7b819b6101059cd0.svg"></a></div></form></nav><section·id="main-content"·class="content"><div·class="main-heading"><h1>Struct·<a·href="../index.html">alloc</a>::<wbr><a·href="index.html">rc</a>::<wbr><a·class="struct"·href="#">Weak</a><button·id="copy-path"·title="Copy·item·path·to·clipboard"><img·src="../../static.files/clipboard-7571035ce49a181d.svg"·width="19"·height="18"·alt="Copy·item·path"></button></h1><span·class="out-of-band"><span·class="since"·title="Stable·since·Rust·version·1.4.0">1.4.0</span>···<a·class="src"·href="../../src/alloc/rc.rs.html#2778-2790">source</a>···<button·id="toggle-all-docs"·title="collapse·all·docs">[<span>&#x2212;</span>]</button></span></div><pre·class="rust·item-decl"><code>pub·struct·Weak&lt;T:·?<a·class="trait"·href="https://doc.rust-lang.org/1.78.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
3 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 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>
4 pointer,·which·returns·an·<code><a·href="../../core/option/enum.Option.html"·title="enum·core::option::Option">Option</a>&lt;<a·href="struct.Rc.html"·title="struct·alloc::rc::Rc">Rc</a>&lt;T&gt;&gt;</code>.</p>4 pointer,·which·returns·an·<code><a·href="https://doc.rust-lang.org/1.78.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>
5 <p>Since·a·<code>Weak</code>·reference·does·not·count·towards·ownership,·it·will·not5 <p>Since·a·<code>Weak</code>·reference·does·not·count·towards·ownership,·it·will·not
6 prevent·the·value·stored·in·the·allocation·from·being·dropped,·and·<code>Weak</code>·itself·makes·no6 prevent·the·value·stored·in·the·allocation·from·being·dropped,·and·<code>Weak</code>·itself·makes·no
7 guarantees·about·the·value·still·being·present.·Thus·it·may·return·<a·href="../../core/option/enum.Option.html#variant.None"·title="variant·core::option::Option::None"><code>None</code></a>7 guarantees·about·the·value·still·being·present.·Thus·it·may·return·<a·href="https://doc.rust-lang.org/1.78.0/core/option/enum.Option.html#variant.None"·title="variant·core::option::Option::None"><code>None</code></a>
8 when·<a·href="struct.Weak.html#method.upgrade"·title="method·alloc::rc::Weak::upgrade"><code>upgrade</code></a>d.·Note·however·that·a·<code>Weak</code>·reference·<em>does</em>·prevent·the·allocation8 when·<a·href="struct.Weak.html#method.upgrade"·title="method·alloc::rc::Weak::upgrade"><code>upgrade</code></a>d.·Note·however·that·a·<code>Weak</code>·reference·<em>does</em>·prevent·the·allocation
9 itself·(the·backing·store)·from·being·deallocated.</p>9 itself·(the·backing·store)·from·being·deallocated.</p>
10 <p>A·<code>Weak</code>·pointer·is·useful·for·keeping·a·temporary·reference·to·the·allocation10 <p>A·<code>Weak</code>·pointer·is·useful·for·keeping·a·temporary·reference·to·the·allocation
11 managed·by·<a·href="struct.Rc.html"·title="struct·alloc::rc::Rc"><code>Rc</code></a>·without·preventing·its·inner·value·from·being·dropped.·It·is·also·used·to11 managed·by·<a·href="struct.Rc.html"·title="struct·alloc::rc::Rc"><code>Rc</code></a>·without·preventing·its·inner·value·from·being·dropped.·It·is·also·used·to
12 prevent·circular·references·between·<a·href="struct.Rc.html"·title="struct·alloc::rc::Rc"><code>Rc</code></a>·pointers,·since·mutual·owning·references12 prevent·circular·references·between·<a·href="struct.Rc.html"·title="struct·alloc::rc::Rc"><code>Rc</code></a>·pointers,·since·mutual·owning·references
13 would·never·allow·either·<a·href="struct.Rc.html"·title="struct·alloc::rc::Rc"><code>Rc</code></a>·to·be·dropped.·For·example,·a·tree·could13 would·never·allow·either·<a·href="struct.Rc.html"·title="struct·alloc::rc::Rc"><code>Rc</code></a>·to·be·dropped.·For·example,·a·tree·could
14 have·strong·<a·href="struct.Rc.html"·title="struct·alloc::rc::Rc"><code>Rc</code></a>·pointers·from·parent·nodes·to·children,·and·<code>Weak</code>14 have·strong·<a·href="struct.Rc.html"·title="struct·alloc::rc::Rc"><code>Rc</code></a>·pointers·from·parent·nodes·to·children,·and·<code>Weak</code>
15 pointers·from·children·back·to·their·parents.</p>15 pointers·from·children·back·to·their·parents.</p>
16 <p>The·typical·way·to·obtain·a·<code>Weak</code>·pointer·is·to·call·<a·href="struct.Rc.html#method.downgrade"·title="associated·function·alloc::rc::Rc::downgrade"><code>Rc::downgrade</code></a>.</p>16 <p>The·typical·way·to·obtain·a·<code>Weak</code>·pointer·is·to·call·<a·href="struct.Rc.html#method.downgrade"·title="associated·function·alloc::rc::Rc::downgrade"><code>Rc::downgrade</code></a>.</p>
17 </div></details><h2·id="implementations"·class="section-header">Implementations<a·href="#implementations"·class="anchor">§</a></h2><div·id="implementations-list"><details·class="toggle·implementors-toggle"·open><summary><section·id="impl-Weak%3CT%3E"·class="impl"><a·class="src·rightside"·href="../../src/alloc/rc.rs.html#2803-2829">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#2821-2828">source</a></span><h4·class="code-header">pub·const·fn·<a·href="#method.new"·class="fn">new</a>()·-&gt;·<a·class="struct"·href="struct.Weak.html"·title="struct·alloc::rc::Weak">Weak</a>&lt;T&gt;</h4></section></summary><div·class="docblock"><p>Constructs·a·new·<code>Weak&lt;T&gt;</code>,·without·allocating·any·memory.17 </div></details><h2·id="implementations"·class="section-header">Implementations<a·href="#implementations"·class="anchor">§</a></h2><div·id="implementations-list"><details·class="toggle·implementors-toggle"·open><summary><section·id="impl-Weak%3CT%3E"·class="impl"><a·class="src·rightside"·href="../../src/alloc/rc.rs.html#2803-2829">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#2821-2828">source</a></span><h4·class="code-header">pub·const·fn·<a·href="#method.new"·class="fn">new</a>()·-&gt;·<a·class="struct"·href="struct.Weak.html"·title="struct·alloc::rc::Weak">Weak</a>&lt;T&gt;</h4></section></summary><div·class="docblock"><p>Constructs·a·new·<code>Weak&lt;T&gt;</code>,·without·allocating·any·memory.
18 Calling·<a·href="struct.Weak.html#method.upgrade"·title="method·alloc::rc::Weak::upgrade"><code>upgrade</code></a>·on·the·return·value·always·gives·<a·href="../../core/option/enum.Option.html#variant.None"·title="variant·core::option::Option::None"><code>None</code></a>.</p>18 Calling·<a·href="struct.Weak.html#method.upgrade"·title="method·alloc::rc::Weak::upgrade"><code>upgrade</code></a>·on·the·return·value·always·gives·<a·href="https://doc.rust-lang.org/1.78.0/core/option/enum.Option.html#variant.None"·title="variant·core::option::Option::None"><code>None</code></a>.</p>
19 <h5·id="examples"><a·class="doc-anchor"·href="#examples">§</a>Examples</h5>19 <h5·id="examples"><a·class="doc-anchor"·href="#examples">§</a>Examples</h5>
20 <div·class="example-wrap"><pre·class="rust·rust-example-rendered"><code><span·class="kw">use·</span>std::rc::Weak;20 <div·class="example-wrap"><pre·class="rust·rust-example-rendered"><code><span·class="kw">use·</span>std::rc::Weak;
  
21 <span·class="kw">let·</span>empty:·Weak&lt;i64&gt;·=·Weak::new();21 <span·class="kw">let·</span>empty:·Weak&lt;i64&gt;·=·Weak::new();
22 <span·class="macro">assert!</span>(empty.upgrade().is_none());</code></pre><a·class="test-arrow"·target="_blank"·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">Run</a></div>22 <span·class="macro">assert!</span>(empty.upgrade().is_none());</code></pre><a·class="test-arrow"·target="_blank"·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">Run</a></div>
23 </div></details></div></details><details·class="toggle·implementors-toggle"·open><summary><section·id="impl-Weak%3CT,+A%3E"·class="impl"><a·class="src·rightside"·href="../../src/alloc/rc.rs.html#2831-2856">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#2848-2855">source</a><h4·class="code-header">pub·fn·<a·href="#method.new_in"·class="fn">new_in</a>(alloc:·A)·-&gt;·<a·class="struct"·href="struct.Weak.html"·title="struct·alloc::rc::Weak">Weak</a>&lt;T,·A&gt;</h4></section><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>allocator_api</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/32838">#32838</a>)</span></div></span></summary><div·class="docblock"><p>Constructs·a·new·<code>Weak&lt;T&gt;</code>,·without·allocating·any·memory,·technically·in·the·provided23 </div></details></div></details><details·class="toggle·implementors-toggle"·open><summary><section·id="impl-Weak%3CT,+A%3E"·class="impl"><a·class="src·rightside"·href="../../src/alloc/rc.rs.html#2831-2856">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#2848-2855">source</a><h4·class="code-header">pub·fn·<a·href="#method.new_in"·class="fn">new_in</a>(alloc:·A)·-&gt;·<a·class="struct"·href="struct.Weak.html"·title="struct·alloc::rc::Weak">Weak</a>&lt;T,·A&gt;</h4></section><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>allocator_api</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/32838">#32838</a>)</span></div></span></summary><div·class="docblock"><p>Constructs·a·new·<code>Weak&lt;T&gt;</code>,·without·allocating·any·memory,·technically·in·the·provided
24 allocator.24 allocator.
25 Calling·<a·href="struct.Weak.html#method.upgrade"·title="method·alloc::rc::Weak::upgrade"><code>upgrade</code></a>·on·the·return·value·always·gives·<a·href="../../core/option/enum.Option.html#variant.None"·title="variant·core::option::Option::None"><code>None</code></a>.</p>25 Calling·<a·href="struct.Weak.html#method.upgrade"·title="method·alloc::rc::Weak::upgrade"><code>upgrade</code></a>·on·the·return·value·always·gives·<a·href="https://doc.rust-lang.org/1.78.0/core/option/enum.Option.html#variant.None"·title="variant·core::option::Option::None"><code>None</code></a>.</p>
26 <h5·id="examples-1"><a·class="doc-anchor"·href="#examples-1">§</a>Examples</h5>26 <h5·id="examples-1"><a·class="doc-anchor"·href="#examples-1">§</a>Examples</h5>
27 <div·class="example-wrap"><pre·class="rust·rust-example-rendered"><code><span·class="kw">use·</span>std::rc::Weak;27 <div·class="example-wrap"><pre·class="rust·rust-example-rendered"><code><span·class="kw">use·</span>std::rc::Weak;
  
28 <span·class="kw">let·</span>empty:·Weak&lt;i64&gt;·=·Weak::new();28 <span·class="kw">let·</span>empty:·Weak&lt;i64&gt;·=·Weak::new();
29 <span·class="macro">assert!</span>(empty.upgrade().is_none());</code></pre><a·class="test-arrow"·target="_blank"·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">Run</a></div>29 <span·class="macro">assert!</span>(empty.upgrade().is_none());</code></pre><a·class="test-arrow"·target="_blank"·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">Run</a></div>
30 </div></details></div></details><details·class="toggle·implementors-toggle"·open><summary><section·id="impl-Weak%3CT%3E-1"·class="impl"><a·class="src·rightside"·href="../../src/alloc/rc.rs.html#2869-2917">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:·8130ae1cee85fe8647eb86dd0a736762e8d182c573f40f90e8f822cc6cfa0bf5·...·]/core/primitive.pointer.html">*const·T</a>)·-&gt;·Self</h4></section></summary><div·class="docblock"><p>Converts·a·raw·pointer·previously·created·by·<a·href="struct.Weak.html#method.into_raw"·title="method·alloc::rc::Weak::into_raw"><code>into_raw</code></a>·back·into·<code>Weak&lt;T&gt;</code>.</p>30 </div></details></div></details><details·class="toggle·implementors-toggle"·open><summary><section·id="impl-Weak%3CT%3E-1"·class="impl"><a·class="src·rightside"·href="../../src/alloc/rc.rs.html#2869-2917">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.78.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:·4a113773ba44c7a4e912836d33f95ba1e6811928df434729a8701cfeb2b4e7e0·...·]/core/primitive.pointer.html">*const·T</a>)·-&gt;·Self</h4></section></summary><div·class="docblock"><p>Converts·a·raw·pointer·previously·created·by·<a·href="struct.Weak.html#method.into_raw"·title="method·alloc::rc::Weak::into_raw"><code>into_raw</code></a>·back·into·<code>Weak&lt;T&gt;</code>.</p>
31 <p>This·can·be·used·to·safely·get·a·strong·reference·(by·calling·<a·href="struct.Weak.html#method.upgrade"·title="method·alloc::rc::Weak::upgrade"><code>upgrade</code></a>31 <p>This·can·be·used·to·safely·get·a·strong·reference·(by·calling·<a·href="struct.Weak.html#method.upgrade"·title="method·alloc::rc::Weak::upgrade"><code>upgrade</code></a>
32 later)·or·to·deallocate·the·weak·count·by·dropping·the·<code>Weak&lt;T&gt;</code>.</p>32 later)·or·to·deallocate·the·weak·count·by·dropping·the·<code>Weak&lt;T&gt;</code>.</p>
33 <p>It·takes·ownership·of·one·weak·reference·(with·the·exception·of·pointers·created·by·<a·href="struct.Weak.html#method.new"·title="associated·function·alloc::rc::Weak::new"><code>new</code></a>,33 <p>It·takes·ownership·of·one·weak·reference·(with·the·exception·of·pointers·created·by·<a·href="struct.Weak.html#method.new"·title="associated·function·alloc::rc::Weak::new"><code>new</code></a>,
34 as·these·don’t·own·anything;·the·method·still·works·on·them).</p>34 as·these·don’t·own·anything;·the·method·still·works·on·them).</p>
35 <h5·id="safety"><a·class="doc-anchor"·href="#safety">§</a>Safety</h5>35 <h5·id="safety"><a·class="doc-anchor"·href="#safety">§</a>Safety</h5>
36 <p>The·pointer·must·have·originated·from·the·<a·href="struct.Weak.html#method.into_raw"·title="method·alloc::rc::Weak::into_raw"><code>into_raw</code></a>·and·must·still·own·its·potential36 <p>The·pointer·must·have·originated·from·the·<a·href="struct.Weak.html#method.into_raw"·title="method·alloc::rc::Weak::into_raw"><code>into_raw</code></a>·and·must·still·own·its·potential
37 weak·reference,·and·<code>ptr</code>·must·point·to·a·block·of·memory·allocated·by·the·global·allocator.</p>37 weak·reference,·and·<code>ptr</code>·must·point·to·a·block·of·memory·allocated·by·the·global·allocator.</p>
Offset 54, 17 lines modifiedOffset 54, 17 lines modified
54 <span·class="macro">assert_eq!</span>(<span·class="string">"hello"</span>,·<span·class="kw-2">&amp;*</span><span·class="kw">unsafe·</span>{·Weak::from_raw(raw_1)·}.upgrade().unwrap());54 <span·class="macro">assert_eq!</span>(<span·class="string">"hello"</span>,·<span·class="kw-2">&amp;*</span><span·class="kw">unsafe·</span>{·Weak::from_raw(raw_1)·}.upgrade().unwrap());
55 <span·class="macro">assert_eq!</span>(<span·class="number">1</span>,·Rc::weak_count(<span·class="kw-2">&amp;</span>strong));55 <span·class="macro">assert_eq!</span>(<span·class="number">1</span>,·Rc::weak_count(<span·class="kw-2">&amp;</span>strong));
  
56 drop(strong);56 drop(strong);
  
57 <span·class="comment">//·Decrement·the·last·weak·count.57 <span·class="comment">//·Decrement·the·last·weak·count.
58 </span><span·class="macro">assert!</span>(<span·class="kw">unsafe·</span>{·Weak::from_raw(raw_2)·}.upgrade().is_none());</code></pre><a·class="test-arrow"·target="_blank"·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">Run</a></div>58 </span><span·class="macro">assert!</span>(<span·class="kw">unsafe·</span>{·Weak::from_raw(raw_2)·}.upgrade().is_none());</code></pre><a·class="test-arrow"·target="_blank"·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">Run</a></div>
59 </div></details></div></details><details·class="toggle·implementors-toggle"·open><summary><section·id="impl-Weak%3CT,+A%3E-1"·class="impl"><a·class="src·rightside"·href="../../src/alloc/rc.rs.html#2919-3229">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:·479,·SHA:·5bd63ed5e53a451f26c333d4314e92fcc519ca8c408eac2a679e33ec56bca2a0·...·]/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></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#2919-3229">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.78.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:·89c24b8614c733b84e4cfc205a440428e2a6f3ef0eba7ad623c1b53f89c02ba3·...·]/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.78.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"·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">Run</a></div>77 //·assert_eq!("hello",·unsafe·{·&amp;*weak.as_ptr()·});</span></code></pre><a·class="test-arrow"·target="_blank"·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">Run</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#2991-2995">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#2991-2995">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.78.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, 16 lines modifiedOffset 90, 16 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"·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">Run</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"·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">Run</a></div>
95 </div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.into_raw_and_alloc"·class="method"><a·class="src·rightside"·href="../../src/alloc/rc.rs.html#3026-3034">source</a><h4·class="code-header">pub·fn·<a·href="#method.into_raw_and_alloc"·class="fn">into_raw_and_alloc</a>(self)·-&gt;·(<a·class="primitive"·href="../../core/primitive.pointer.html">*const·T</a>,·A)<div·class="where">where95 </div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.into_raw_and_alloc"·class="method"><a·class="src·rightside"·href="../../src/alloc/rc.rs.html#3026-3034">source</a><h4·class="code-header">pub·fn·<a·href="#method.into_raw_and_alloc"·class="fn">into_raw_and_alloc</a>(self)·-&gt;·(<a·class="primitive"·href="https://doc.rust-lang.org/1.78.0/core/primitive.pointer.html">*const·T</a>,·A)<div·class="where">where
96 ····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>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>·and·turns·it·into·a·raw·pointer.</p>96 ····A:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.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>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>·and·turns·it·into·a·raw·pointer.</p>
97 <p>This·converts·the·weak·pointer·into·a·raw·pointer,·while·still·preserving·the·ownership·of97 <p>This·converts·the·weak·pointer·into·a·raw·pointer,·while·still·preserving·the·ownership·of
98 one·weak·reference·(the·weak·count·is·not·modified·by·this·operation).·It·can·be·turned98 one·weak·reference·(the·weak·count·is·not·modified·by·this·operation).·It·can·be·turned
99 back·into·the·<code>Weak&lt;T&gt;</code>·with·<a·href="struct.Weak.html#method.from_raw"·title="associated·function·alloc::rc::Weak::from_raw"><code>from_raw</code></a>.</p>99 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>
100 <p>The·same·restrictions·of·accessing·the·target·of·the·pointer·as·with100 <p>The·same·restrictions·of·accessing·the·target·of·the·pointer·as·with
101 <a·href="struct.Weak.html#method.as_ptr"·title="method·alloc::rc::Weak::as_ptr"><code>as_ptr</code></a>·apply.</p>101 <a·href="struct.Weak.html#method.as_ptr"·title="method·alloc::rc::Weak::as_ptr"><code>as_ptr</code></a>·apply.</p>
102 <h5·id="examples-5"><a·class="doc-anchor"·href="#examples-5">§</a>Examples</h5>102 <h5·id="examples-5"><a·class="doc-anchor"·href="#examples-5">§</a>Examples</h5>
103 <div·class="example-wrap"><pre·class="rust·rust-example-rendered"><code><span·class="kw">use·</span>std::rc::{Rc,·Weak};103 <div·class="example-wrap"><pre·class="rust·rust-example-rendered"><code><span·class="kw">use·</span>std::rc::{Rc,·Weak};
Offset 109, 15 lines modifiedOffset 109, 15 lines modified
109 <span·class="kw">let·</span>raw·=·weak.into_raw();109 <span·class="kw">let·</span>raw·=·weak.into_raw();
  
110 <span·class="macro">assert_eq!</span>(<span·class="number">1</span>,·Rc::weak_count(<span·class="kw-2">&amp;</span>strong));110 <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="string">"hello"</span>,·<span·class="kw">unsafe·</span>{·<span·class="kw-2">&amp;*</span>raw·});111 <span·class="macro">assert_eq!</span>(<span·class="string">"hello"</span>,·<span·class="kw">unsafe·</span>{·<span·class="kw-2">&amp;*</span>raw·});
  
112 drop(<span·class="kw">unsafe·</span>{·Weak::from_raw(raw)·});112 drop(<span·class="kw">unsafe·</span>{·Weak::from_raw(raw)·});
113 <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"·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">Run</a></div>113 <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"·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">Run</a></div>
114 </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#3080-3097">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>114 </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#3080-3097">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.78.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>
115 <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>115 <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 later)·or·to·deallocate·the·weak·count·by·dropping·the·<code>Weak&lt;T&gt;</code>.</p>116 later)·or·to·deallocate·the·weak·count·by·dropping·the·<code>Weak&lt;T&gt;</code>.</p>
117 <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>,117 <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 as·these·don’t·own·anything;·the·method·still·works·on·them).</p>118 as·these·don’t·own·anything;·the·method·still·works·on·them).</p>
119 <h5·id="safety-1"><a·class="doc-anchor"·href="#safety-1">§</a>Safety</h5>119 <h5·id="safety-1"><a·class="doc-anchor"·href="#safety-1">§</a>Safety</h5>
120 <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·potential120 <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
121 weak·reference,·and·<code>ptr</code>·must·point·to·a·block·of·memory·allocated·by·<code>alloc</code>.</p>121 weak·reference,·and·<code>ptr</code>·must·point·to·a·block·of·memory·allocated·by·<code>alloc</code>.</p>
Offset 138, 18 lines modifiedOffset 138, 18 lines modified
138 <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());138 <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="number">1</span>,·Rc::weak_count(<span·class="kw-2">&amp;</span>strong));139 <span·class="macro">assert_eq!</span>(<span·class="number">1</span>,·Rc::weak_count(<span·class="kw-2">&amp;</span>strong));
  
140 drop(strong);140 drop(strong);
  
141 <span·class="comment">//·Decrement·the·last·weak·count.141 <span·class="comment">//·Decrement·the·last·weak·count.
142 </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"·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">Run</a></div>142 </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"·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">Run</a></div>
143 </div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.upgrade"·class="method"><a·class="src·rightside"·href="../../src/alloc/rc.rs.html#3125-3139">source</a><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">where143 </div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.upgrade"·class="method"><a·class="src·rightside"·href="../../src/alloc/rc.rs.html#3125-3139">source</a><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.78.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
144 ····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>,·delaying144 ····A:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.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
145 dropping·of·the·inner·value·if·successful.</p>145 dropping·of·the·inner·value·if·successful.</p>
146 <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>146 <p>Returns·<a·href="https://doc.rust-lang.org/1.78.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>
147 <h5·id="examples-7"><a·class="doc-anchor"·href="#examples-7">§</a>Examples</h5>147 <h5·id="examples-7"><a·class="doc-anchor"·href="#examples-7">§</a>Examples</h5>
148 <div·class="example-wrap"><pre·class="rust·rust-example-rendered"><code><span·class="kw">use·</span>std::rc::Rc;148 <div·class="example-wrap"><pre·class="rust·rust-example-rendered"><code><span·class="kw">use·</span>std::rc::Rc;
  
149 <span·class="kw">let·</span>five·=·Rc::new(<span·class="number">5</span>);149 <span·class="kw">let·</span>five·=·Rc::new(<span·class="number">5</span>);
  
150 <span·class="kw">let·</span>weak_five·=·Rc::downgrade(<span·class="kw-2">&amp;</span>five);150 <span·class="kw">let·</span>weak_five·=·Rc::downgrade(<span·class="kw-2">&amp;</span>five);
  
Offset 157, 19 lines modifiedOffset 157, 19 lines modified
157 <span·class="macro">assert!</span>(strong_five.is_some());157 <span·class="macro">assert!</span>(strong_five.is_some());
Max diff block lines reached; 60846/100442 bytes (60.58%) of diff not shown.
6.9 KB
./usr/share/doc/rust-web-doc/html/alloc/slice/fn.from_mut.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="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.write(`<link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/SourceSerif4-Regular-46f98efaafac5295.ttf.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/FiraSans-Regular-018c141bf0843ffd.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/FiraSans-Medium-8f9a781e4970d388.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/SourceCodePro-Regular-562dcc5011b6de7d.ttf.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/SourceCodePro-Semibold-d899c5a5c4aeb14a.ttf.woff2">`)</script><link·rel="stylesheet"·href="../../static.files/normalize-76eba96aa4d2e634.css"><link·rel="stylesheet"·href="../../static.files/rustdoc-35f9e32502181f1e.css"><meta·name="rustdoc-vars"·data-root-path="../../"·data-static-root-path="../../static.files/"·data-current-crate="alloc"·data-themes=""·data-resource-suffix="1.78.0"·data-rustdoc-version="1.78.0"·data-channel="1.78.0"·data-search-js="search-42d8da7a6b9792c2.js"·data-settings-js="settings-4313503d2e1961c2.js"·><script·src="../../static.files/storage-4c98445ec4002617.js"></script><script·defer·src="sidebar-items1.78.0.js"></script><script·defer·src="../../static.files/main-12cf3b4f4f9dc36d.js"></script><noscript><link·rel="stylesheet"·href="../../static.files/noscript-04d5337699b92874.css"></noscript><link·rel="alternate·icon"·type="image/png"·href="../../static.files/favicon-16x16-8b506e7a72182f1c.png"><link·rel="alternate·icon"·type="image/png"·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.78.0</span></h2></div><div·class="sidebar-elems"><h2><a·href="index.html">In·alloc::slice</a></h2></div></nav><div·class="sidebar-resizer"></div>1 <!DOCTYPE·html><html·lang="en"><head><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.write(`<link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/SourceSerif4-Regular-46f98efaafac5295.ttf.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/FiraSans-Regular-018c141bf0843ffd.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/FiraSans-Medium-8f9a781e4970d388.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/SourceCodePro-Regular-562dcc5011b6de7d.ttf.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/SourceCodePro-Semibold-d899c5a5c4aeb14a.ttf.woff2">`)</script><link·rel="stylesheet"·href="../../static.files/normalize-76eba96aa4d2e634.css"><link·rel="stylesheet"·href="../../static.files/rustdoc-35f9e32502181f1e.css"><meta·name="rustdoc-vars"·data-root-path="../../"·data-static-root-path="../../static.files/"·data-current-crate="alloc"·data-themes=""·data-resource-suffix="1.78.0"·data-rustdoc-version="1.78.0"·data-channel="1.78.0"·data-search-js="search-42d8da7a6b9792c2.js"·data-settings-js="settings-4313503d2e1961c2.js"·><script·src="../../static.files/storage-4c98445ec4002617.js"></script><script·defer·src="sidebar-items1.78.0.js"></script><script·defer·src="../../static.files/main-12cf3b4f4f9dc36d.js"></script><noscript><link·rel="stylesheet"·href="../../static.files/noscript-04d5337699b92874.css"></noscript><link·rel="alternate·icon"·type="image/png"·href="../../static.files/favicon-16x16-8b506e7a72182f1c.png"><link·rel="alternate·icon"·type="image/png"·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.78.0</span></h2></div><div·class="sidebar-elems"><h2><a·href="index.html">In·alloc::slice</a></h2></div></nav><div·class="sidebar-resizer"></div>
2 ····<main><div·class="width-limiter"><nav·class="sub"><form·class="search-form"><span></span><div·id="sidebar-button"·tabindex="-1"><a·href="../../alloc/all.html"·title="show·sidebar"></a></div><input·class="search-input"·name="search"·aria-label="Run·search·in·the·documentation"·autocomplete="off"·spellcheck="false"·placeholder="Click·or·press·‘S’·to·search,·‘?’·for·more·options…"·type="search"><div·id="help-button"·tabindex="-1"><a·href="../../help.html"·title="help">?</a></div><div·id="settings-menu"·tabindex="-1"><a·href="../../settings.html"·title="settings"><img·width="22"·height="22"·alt="Change·settings"·src="../../static.files/wheel-7b819b6101059cd0.svg"></a></div></form></nav><section·id="main-content"·class="content"><div·class="main-heading"><h1>Function·<a·href="../index.html">alloc</a>::<wbr><a·href="index.html">slice</a>::<wbr><a·class="fn"·href="#">from_mut</a><button·id="copy-path"·title="Copy·item·path·to·clipboard"><img·src="../../static.files/clipboard-7571035ce49a181d.svg"·width="19"·height="18"·alt="Copy·item·path"></button></h1><span·class="out-of-band"><span·class="since"·title="Stable·since·Rust·version·1.28.0,·const·unstable">1.28.0·(const:·<a·href="https://github.com/rust-lang/rust/issues/90206"·title="Tracking·issue·for·const_slice_from_ref">unstable</a>)</span>···<a·class="src"·href="../../src/core/slice/raw.rs.html#180">source</a>···<button·id="toggle-all-docs"·title="collapse·all·docs">[<span>&#x2212;</span>]</button></span></div><pre·class="rust·item-decl"><code>pub·fn·from_mut&lt;T&gt;(s:·<a·class="primitive"·href="../../core/primi[·...·truncated·by·diffoscope;·len:·84,·SHA:·76bd511c56b830d73ba860e07d057a421398eec18527f15f6d4df89ccf2cf3e3·...·]/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 ····<main><div·class="width-limiter"><nav·class="sub"><form·class="search-form"><span></span><div·id="sidebar-button"·tabindex="-1"><a·href="../../alloc/all.html"·title="show·sidebar"></a></div><input·class="search-input"·name="search"·aria-label="Run·search·in·the·documentation"·autocomplete="off"·spellcheck="false"·placeholder="Click·or·press·‘S’·to·search,·‘?’·for·more·options…"·type="search"><div·id="help-button"·tabindex="-1"><a·href="../../help.html"·title="help">?</a></div><div·id="settings-menu"·tabindex="-1"><a·href="../../settings.html"·title="settings"><img·width="22"·height="22"·alt="Change·settings"·src="../../static.files/wheel-7b819b6101059cd0.svg"></a></div></form></nav><section·id="main-content"·class="content"><div·class="main-heading"><h1>Function·<a·href="../index.html">alloc</a>::<wbr><a·href="index.html">slice</a>::<wbr><a·class="fn"·href="#">from_mut</a><button·id="copy-path"·title="Copy·item·path·to·clipboard"><img·src="../../static.files/clipboard-7571035ce49a181d.svg"·width="19"·height="18"·alt="Copy·item·path"></button></h1><span·class="out-of-band"><span·class="since"·title="Stable·since·Rust·version·1.28.0,·const·unstable">1.28.0·(const:·<a·href="https://github.com/rust-lang/rust/issues/90206"·title="Tracking·issue·for·const_slice_from_ref">unstable</a>)</span>···<a·class="src"·href="https://doc.rust-lang.org/1.78.0/src/core/slice/raw.rs.html#180">source</a>···<button·id="toggle-all-docs"·title="collapse·all·docs">[<span>&#x2212;</span>]</button></span></div><pre·class="rust·item-decl"><code>pub·fn·from_mut&lt;T&gt;(s:·<a·class="primit[·...·truncated·by·diffoscope;·len:·165,·SHA:·a04d5f1e689df020031a600b7d540599355ffbab1aeb21438f26e84b0832c03b·...·]/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>
3 </div></details></section></div></main></body></html>3 </div></details></section></div></main></body></html>
10.8 KB
./usr/share/doc/rust-web-doc/html/alloc/slice/fn.from_mut_ptr_range.html
    
Offset 1, 23 lines modifiedOffset 1, 23 lines modified
1 <!DOCTYPE·html><html·lang="en"><head><meta·charset="utf-8"><meta·name="viewport"·content="width=device-width,·initial-scale=1.0"><meta·name="generator"·content="rustdoc"><meta·name="description"·content="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.write(`<link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/SourceSerif4-Regular-46f98efaafac5295.ttf.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/FiraSans-Regular-018c141bf0843ffd.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/FiraSans-Medium-8f9a781e4970d388.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/SourceCodePro-Regular-562dcc5011b6de7d.ttf.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/SourceCodePro-Semibold-d899c5a5c4aeb14a.ttf.woff2">`)</script><link·rel="stylesheet"·href="../../static.files/normalize-76eba96aa4d2e634.css"><link·rel="stylesheet"·href="../../static.files/rustdoc-35f9e32502181f1e.css"><meta·name="rustdoc-vars"·data-root-path="../../"·data-static-root-path="../../static.files/"·data-current-crate="alloc"·data-themes=""·data-resource-suffix="1.78.0"·data-rustdoc-version="1.78.0"·data-channel="1.78.0"·data-search-js="search-42d8da7a6b9792c2.js"·data-settings-js="settings-4313503d2e1961c2.js"·><script·src="../../static.files/storage-4c98445ec4002617.js"></script><script·defer·src="sidebar-items1.78.0.js"></script><script·defer·src="../../static.files/main-12cf3b4f4f9dc36d.js"></script><noscript><link·rel="stylesheet"·href="../../static.files/noscript-04d5337699b92874.css"></noscript><link·rel="alternate·icon"·type="image/png"·href="../../static.files/favicon-16x16-8b506e7a72182f1c.png"><link·rel="alternate·icon"·type="image/png"·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.78.0</span></h2></div><div·class="sidebar-elems"><h2><a·href="index.html">In·alloc::slice</a></h2></div></nav><div·class="sidebar-resizer"></div>1 <!DOCTYPE·html><html·lang="en"><head><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.write(`<link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/SourceSerif4-Regular-46f98efaafac5295.ttf.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/FiraSans-Regular-018c141bf0843ffd.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/FiraSans-Medium-8f9a781e4970d388.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/SourceCodePro-Regular-562dcc5011b6de7d.ttf.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/SourceCodePro-Semibold-d899c5a5c4aeb14a.ttf.woff2">`)</script><link·rel="stylesheet"·href="../../static.files/normalize-76eba96aa4d2e634.css"><link·rel="stylesheet"·href="../../static.files/rustdoc-35f9e32502181f1e.css"><meta·name="rustdoc-vars"·data-root-path="../../"·data-static-root-path="../../static.files/"·data-current-crate="alloc"·data-themes=""·data-resource-suffix="1.78.0"·data-rustdoc-version="1.78.0"·data-channel="1.78.0"·data-search-js="search-42d8da7a6b9792c2.js"·data-settings-js="settings-4313503d2e1961c2.js"·><script·src="../../static.files/storage-4c98445ec4002617.js"></script><script·defer·src="sidebar-items1.78.0.js"></script><script·defer·src="../../static.files/main-12cf3b4f4f9dc36d.js"></script><noscript><link·rel="stylesheet"·href="../../static.files/noscript-04d5337699b92874.css"></noscript><link·rel="alternate·icon"·type="image/png"·href="../../static.files/favicon-16x16-8b506e7a72182f1c.png"><link·rel="alternate·icon"·type="image/png"·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.78.0</span></h2></div><div·class="sidebar-elems"><h2><a·href="index.html">In·alloc::slice</a></h2></div></nav><div·class="sidebar-resizer"></div>
2 ····<main><div·class="width-limiter"><nav·class="sub"><form·class="search-form"><span></span><div·id="sidebar-button"·tabindex="-1"><a·href="../../alloc/all.html"·title="show·sidebar"></a></div><input·class="search-input"·name="search"·aria-label="Run·search·in·the·documentation"·autocomplete="off"·spellcheck="false"·placeholder="Click·or·press·‘S’·to·search,·‘?’·for·more·options…"·type="search"><div·id="help-button"·tabindex="-1"><a·href="../../help.html"·title="help">?</a></div><div·id="settings-menu"·tabindex="-1"><a·href="../../settings.html"·title="settings"><img·width="22"·height="22"·alt="Change·settings"·src="../../static.files/wheel-7b819b6101059cd0.svg"></a></div></form></nav><section·id="main-content"·class="content"><div·class="main-heading"><h1>Function·<a·href="../index.html">alloc</a>::<wbr><a·href="index.html">slice</a>::<wbr><a·class="fn"·href="#">from_mut_ptr_range</a><button·id="copy-path"·title="Copy·item·path·to·clipboard"><img·src="../../static.files/clipboard-7571035ce49a181d.svg"·width="19"·height="18"·alt="Copy·item·path"></button></h1><span·class="out-of-band"><span·class="since"·title="const·unstable">const:·<a·href="https://github.com/rust-lang/rust/issues/89792"·title="Tracking·issue·for·const_slice_from_mut_ptr_range">unstable</a></span>···<a·class="src"·href="../../src/core/slice/raw.rs.html#315">source</a>···<button·id="toggle-all-docs"·title="collapse·all·docs">[<span>&#x2212;</span>]</button></span></div><pre·class="rust·item-decl"><code>pub·unsafe·fn·from_mut_ptr_range&lt;'a,·T&gt;(range:·<a·class="struct"·[·...·truncated·by·diffoscope;·len:·226,·SHA:·4b6735571e0c007f80e447e4e8002ca66fefe2e6772bc7ed4edf55bb6e925f95·...·]/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>2 ····<main><div·class="width-limiter"><nav·class="sub"><form·class="search-form"><span></span><div·id="sidebar-button"·tabindex="-1"><a·href="../../alloc/all.html"·title="show·sidebar"></a></div><input·class="search-input"·name="search"·aria-label="Run·search·in·the·documentation"·autocomplete="off"·spellcheck="false"·placeholder="Click·or·press·‘S’·to·search,·‘?’·for·more·options…"·type="search"><div·id="help-button"·tabindex="-1"><a·href="../../help.html"·title="help">?</a></div><div·id="settings-menu"·tabindex="-1"><a·href="../../settings.html"·title="settings"><img·width="22"·height="22"·alt="Change·settings"·src="../../static.files/wheel-7b819b6101059cd0.svg"></a></div></form></nav><section·id="main-content"·class="content"><div·class="main-heading"><h1>Function·<a·href="../index.html">alloc</a>::<wbr><a·href="index.html">slice</a>::<wbr><a·class="fn"·href="#">from_mut_ptr_range</a><button·id="copy-path"·title="Copy·item·path·to·clipboard"><img·src="../../static.files/clipboard-7571035ce49a181d.svg"·width="19"·height="18"·alt="Copy·item·path"></button></h1><span·class="out-of-band"><span·class="since"·title="const·unstable">const:·<a·href="https://github.com/rust-lang/rust/issues/89792"·title="Tracking·issue·for·const_slice_from_mut_ptr_range">unstable</a></span>···<a·class="src"·href="https://doc.rust-lang.org/1.78.0/src/core/slice/raw.rs.html#315">source</a>···<button·id="toggle-all-docs"·title="collapse·all·docs">[<span>&#x2212;</span>]</button></span></div><pre·class="rust·item-decl"><code>pub·unsafe·fn·from_mut_ptr_range&lt;'a,·T&gt[·...·truncated·by·diffoscope;·len:·334,·SHA:·67c7000a663c8b171285f5885b392e3e37e930fca8180fb52c3d3c90877f6e99·...·]/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 <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·a3 <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
4 mutable·slice·is·returned.</p>4 mutable·slice·is·returned.</p>
5 <p>This·function·is·useful·for·interacting·with·foreign·interfaces·which5 <p>This·function·is·useful·for·interacting·with·foreign·interfaces·which
6 use·two·pointers·to·refer·to·a·range·of·elements·in·memory,·as·is6 use·two·pointers·to·refer·to·a·range·of·elements·in·memory,·as·is
7 common·in·C++.</p>7 common·in·C++.</p>
8 <h2·id="safety"><a·class="doc-anchor"·href="#safety">§</a>Safety</h2>8 <h2·id="safety"><a·class="doc-anchor"·href="#safety">§</a>Safety</h2>
9 <p>Behavior·is·undefined·if·any·of·the·following·conditions·are·violated:</p>9 <p>Behavior·is·undefined·if·any·of·the·following·conditions·are·violated:</p>
10 <ul>10 <ul>
11 <li>11 <li>
12 <p>The·<code>start</code>·pointer·of·the·range·must·be·a·<a·href="../../core/ptr/index.html#safety"·title="mod·core::ptr">valid</a>·and·properly·aligned·pointer12 <p>The·<code>start</code>·pointer·of·the·range·must·be·a·<a·href="https://doc.rust-lang.org/1.78.0/core/ptr/index.html#safety"·title="mod·core::ptr">valid</a>·and·properly·aligned·pointer
13 to·the·first·element·of·a·slice.</p>13 to·the·first·element·of·a·slice.</p>
14 </li>14 </li>
15 <li>15 <li>
16 <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>16 <p>The·<code>end</code>·pointer·must·be·a·<a·href="https://doc.rust-lang.org/1.78.0/core/ptr/index.html#safety"·title="mod·core::ptr">valid</a>·and·properly·aligned·pointer·to·<em>one·past</em>
17 the·last·element,·such·that·the·offset·from·the·end·to·the·start·pointer·is17 the·last·element,·such·that·the·offset·from·the·end·to·the·start·pointer·is
18 the·length·of·the·slice.</p>18 the·length·of·the·slice.</p>
19 </li>19 </li>
20 <li>20 <li>
21 <p>The·entire·memory·range·of·this·slice·must·be·contained·within·a·single·allocated·object!21 <p>The·entire·memory·range·of·this·slice·must·be·contained·within·a·single·allocated·object!
22 Slices·can·never·span·across·multiple·allocated·objects.</p>22 Slices·can·never·span·across·multiple·allocated·objects.</p>
23 </li>23 </li>
Offset 28, 18 lines modifiedOffset 28, 18 lines modified
28 <p>The·memory·referenced·by·the·returned·slice·must·not·be·accessed·through·any·other·pointer28 <p>The·memory·referenced·by·the·returned·slice·must·not·be·accessed·through·any·other·pointer
29 (not·derived·from·the·return·value)·for·the·duration·of·lifetime·<code>'a</code>.29 (not·derived·from·the·return·value)·for·the·duration·of·lifetime·<code>'a</code>.
30 Both·read·and·write·accesses·are·forbidden.</p>30 Both·read·and·write·accesses·are·forbidden.</p>
31 </li>31 </li>
32 <li>32 <li>
33 <p>The·total·length·of·the·range·must·be·no·larger·than·<code>isize::MAX</code>,33 <p>The·total·length·of·the·range·must·be·no·larger·than·<code>isize::MAX</code>,
34 and·adding·that·size·to·<code>data</code>·must·not·“wrap·around”·the·address·space.34 and·adding·that·size·to·<code>data</code>·must·not·“wrap·around”·the·address·space.
35 See·the·safety·documentation·of·<a·href="../../core/primitive.pointer.html#method.offset"·title="method·pointer::offset"><code>pointer::offset</code></a>.</p>35 See·the·safety·documentation·of·<a·href="https://doc.rust-lang.org/1.78.0/core/primitive.pointer.html#method.offset"·title="method·pointer::offset"><code>pointer::offset</code></a>.</p>
36 </li>36 </li>
37 </ul>37 </ul>
38 <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>38 <p>Note·that·a·range·created·from·<a·href="https://doc.rust-lang.org/1.78.0/core/primitive.slice.html#method.as_mut_ptr_range"·title="method·slice::as_mut_ptr_range"><code>slice::as_mut_ptr_range</code></a>·fulfills·these·requirements.</p>
39 <h2·id="panics"><a·class="doc-anchor"·href="#panics">§</a>Panics</h2>39 <h2·id="panics"><a·class="doc-anchor"·href="#panics">§</a>Panics</h2>
40 <p>This·function·panics·if·<code>T</code>·is·a·Zero-Sized·Type·(“ZST”).</p>40 <p>This·function·panics·if·<code>T</code>·is·a·Zero-Sized·Type·(“ZST”).</p>
41 <h2·id="caveat"><a·class="doc-anchor"·href="#caveat">§</a>Caveat</h2>41 <h2·id="caveat"><a·class="doc-anchor"·href="#caveat">§</a>Caveat</h2>
42 <p>The·lifetime·for·the·returned·slice·is·inferred·from·its·usage.·To42 <p>The·lifetime·for·the·returned·slice·is·inferred·from·its·usage.·To
43 prevent·accidental·misuse,·it’s·suggested·to·tie·the·lifetime·to·whichever43 prevent·accidental·misuse,·it’s·suggested·to·tie·the·lifetime·to·whichever
44 source·lifetime·is·safe·in·the·context,·such·as·by·providing·a·helper44 source·lifetime·is·safe·in·the·context,·such·as·by·providing·a·helper
45 function·taking·the·lifetime·of·a·host·value·for·the·slice,·or·by·explicit45 function·taking·the·lifetime·of·a·host·value·for·the·slice,·or·by·explicit
10.5 KB
./usr/share/doc/rust-web-doc/html/alloc/slice/fn.from_ptr_range.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="Forms·a·slice·from·a·pointer·range."><title>from_ptr_range·in·alloc::slice·-·Rust</title><script>·if·(window.location.protocol·!==·"file:")·document.write(`<link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/SourceSerif4-Regular-46f98efaafac5295.ttf.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/FiraSans-Regular-018c141bf0843ffd.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/FiraSans-Medium-8f9a781e4970d388.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/SourceCodePro-Regular-562dcc5011b6de7d.ttf.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/SourceCodePro-Semibold-d899c5a5c4aeb14a.ttf.woff2">`)</script><link·rel="stylesheet"·href="../../static.files/normalize-76eba96aa4d2e634.css"><link·rel="stylesheet"·href="../../static.files/rustdoc-35f9e32502181f1e.css"><meta·name="rustdoc-vars"·data-root-path="../../"·data-static-root-path="../../static.files/"·data-current-crate="alloc"·data-themes=""·data-resource-suffix="1.78.0"·data-rustdoc-version="1.78.0"·data-channel="1.78.0"·data-search-js="search-42d8da7a6b9792c2.js"·data-settings-js="settings-4313503d2e1961c2.js"·><script·src="../../static.files/storage-4c98445ec4002617.js"></script><script·defer·src="sidebar-items1.78.0.js"></script><script·defer·src="../../static.files/main-12cf3b4f4f9dc36d.js"></script><noscript><link·rel="stylesheet"·href="../../static.files/noscript-04d5337699b92874.css"></noscript><link·rel="alternate·icon"·type="image/png"·href="../../static.files/favicon-16x16-8b506e7a72182f1c.png"><link·rel="alternate·icon"·type="image/png"·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.78.0</span></h2></div><div·class="sidebar-elems"><h2><a·href="index.html">In·alloc::slice</a></h2></div></nav><div·class="sidebar-resizer"></div>1 <!DOCTYPE·html><html·lang="en"><head><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.write(`<link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/SourceSerif4-Regular-46f98efaafac5295.ttf.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/FiraSans-Regular-018c141bf0843ffd.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/FiraSans-Medium-8f9a781e4970d388.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/SourceCodePro-Regular-562dcc5011b6de7d.ttf.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/SourceCodePro-Semibold-d899c5a5c4aeb14a.ttf.woff2">`)</script><link·rel="stylesheet"·href="../../static.files/normalize-76eba96aa4d2e634.css"><link·rel="stylesheet"·href="../../static.files/rustdoc-35f9e32502181f1e.css"><meta·name="rustdoc-vars"·data-root-path="../../"·data-static-root-path="../../static.files/"·data-current-crate="alloc"·data-themes=""·data-resource-suffix="1.78.0"·data-rustdoc-version="1.78.0"·data-channel="1.78.0"·data-search-js="search-42d8da7a6b9792c2.js"·data-settings-js="settings-4313503d2e1961c2.js"·><script·src="../../static.files/storage-4c98445ec4002617.js"></script><script·defer·src="sidebar-items1.78.0.js"></script><script·defer·src="../../static.files/main-12cf3b4f4f9dc36d.js"></script><noscript><link·rel="stylesheet"·href="../../static.files/noscript-04d5337699b92874.css"></noscript><link·rel="alternate·icon"·type="image/png"·href="../../static.files/favicon-16x16-8b506e7a72182f1c.png"><link·rel="alternate·icon"·type="image/png"·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.78.0</span></h2></div><div·class="sidebar-elems"><h2><a·href="index.html">In·alloc::slice</a></h2></div></nav><div·class="sidebar-resizer"></div>
2 ····<main><div·class="width-limiter"><nav·class="sub"><form·class="search-form"><span></span><div·id="sidebar-button"·tabindex="-1"><a·href="../../alloc/all.html"·title="show·sidebar"></a></div><input·class="search-input"·name="search"·aria-label="Run·search·in·the·documentation"·autocomplete="off"·spellcheck="false"·placeholder="Click·or·press·‘S’·to·search,·‘?’·for·more·options…"·type="search"><div·id="help-button"·tabindex="-1"><a·href="../../help.html"·title="help">?</a></div><div·id="settings-menu"·tabindex="-1"><a·href="../../settings.html"·title="settings"><img·width="22"·height="22"·alt="Change·settings"·src="../../static.files/wheel-7b819b6101059cd0.svg"></a></div></form></nav><section·id="main-content"·class="content"><div·class="main-heading"><h1>Function·<a·href="../index.html">alloc</a>::<wbr><a·href="index.html">slice</a>::<wbr><a·class="fn"·href="#">from_ptr_range</a><button·id="copy-path"·title="Copy·item·path·to·clipboard"><img·src="../../static.files/clipboard-7571035ce49a181d.svg"·width="19"·height="18"·alt="Copy·item·path"></button></h1><span·class="out-of-band"><span·class="since"·title="const·unstable">const:·<a·href="https://github.com/rust-lang/rust/issues/89792"·title="Tracking·issue·for·const_slice_from_ptr_range">unstable</a></span>···<a·class="src"·href="../../src/core/slice/raw.rs.html#245">source</a>···<button·id="toggle-all-docs"·title="collapse·all·docs">[<span>&#x2212;</span>]</button></span></div><pre·class="rust·item-decl"><code>pub·unsafe·fn·from_ptr_range&lt;'a,·T&gt;(range:·<a·class="struct"·href[·...·truncated·by·diffoscope;·len:·220,·SHA:·138d28d3e5bce17c090b747041d30304213593993ba184d9a0ec4f2a2c080210·...·]/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 ····<main><div·class="width-limiter"><nav·class="sub"><form·class="search-form"><span></span><div·id="sidebar-button"·tabindex="-1"><a·href="../../alloc/all.html"·title="show·sidebar"></a></div><input·class="search-input"·name="search"·aria-label="Run·search·in·the·documentation"·autocomplete="off"·spellcheck="false"·placeholder="Click·or·press·‘S’·to·search,·‘?’·for·more·options…"·type="search"><div·id="help-button"·tabindex="-1"><a·href="../../help.html"·title="help">?</a></div><div·id="settings-menu"·tabindex="-1"><a·href="../../settings.html"·title="settings"><img·width="22"·height="22"·alt="Change·settings"·src="../../static.files/wheel-7b819b6101059cd0.svg"></a></div></form></nav><section·id="main-content"·class="content"><div·class="main-heading"><h1>Function·<a·href="../index.html">alloc</a>::<wbr><a·href="index.html">slice</a>::<wbr><a·class="fn"·href="#">from_ptr_range</a><button·id="copy-path"·title="Copy·item·path·to·clipboard"><img·src="../../static.files/clipboard-7571035ce49a181d.svg"·width="19"·height="18"·alt="Copy·item·path"></button></h1><span·class="out-of-band"><span·class="since"·title="const·unstable">const:·<a·href="https://github.com/rust-lang/rust/issues/89792"·title="Tracking·issue·for·const_slice_from_ptr_range">unstable</a></span>···<a·class="src"·href="https://doc.rust-lang.org/1.78.0/src/core/slice/raw.rs.html#245">source</a>···<button·id="toggle-all-docs"·title="collapse·all·docs">[<span>&#x2212;</span>]</button></span></div><pre·class="rust·item-decl"><code>pub·unsafe·fn·from_ptr_range&lt;'a,·T&gt;(ra[·...·truncated·by·diffoscope;·len:·328,·SHA:·74759e1ebbee2c82735736287dd7efc81af31dfaf7fd648659711a41e7070ca0·...·]/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>
3 <p>This·function·is·useful·for·interacting·with·foreign·interfaces·which3 <p>This·function·is·useful·for·interacting·with·foreign·interfaces·which
4 use·two·pointers·to·refer·to·a·range·of·elements·in·memory,·as·is4 use·two·pointers·to·refer·to·a·range·of·elements·in·memory,·as·is
5 common·in·C++.</p>5 common·in·C++.</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>The·<code>start</code>·pointer·of·the·range·must·be·a·<a·href="../../core/ptr/index.html#safety"·title="mod·core::ptr">valid</a>·and·properly·aligned·pointer10 <p>The·<code>start</code>·pointer·of·the·range·must·be·a·<a·href="https://doc.rust-lang.org/1.78.0/core/ptr/index.html#safety"·title="mod·core::ptr">valid</a>·and·properly·aligned·pointer
11 to·the·first·element·of·a·slice.</p>11 to·the·first·element·of·a·slice.</p>
12 </li>12 </li>
13 <li>13 <li>
14 <p>The·<code>end</code>·pointer·must·be·a·<a·href="../../core/ptr/index.html#safety"·title="mod·core::ptr">valid</a>·and·properly·aligned·pointer·to·<em>one·past</em>14 <p>The·<code>end</code>·pointer·must·be·a·<a·href="https://doc.rust-lang.org/1.78.0/core/ptr/index.html#safety"·title="mod·core::ptr">valid</a>·and·properly·aligned·pointer·to·<em>one·past</em>
15 the·last·element,·such·that·the·offset·from·the·end·to·the·start·pointer·is15 the·last·element,·such·that·the·offset·from·the·end·to·the·start·pointer·is
16 the·length·of·the·slice.</p>16 the·length·of·the·slice.</p>
17 </li>17 </li>
18 <li>18 <li>
19 <p>The·entire·memory·range·of·this·slice·must·be·contained·within·a·single·allocated·object!19 <p>The·entire·memory·range·of·this·slice·must·be·contained·within·a·single·allocated·object!
20 Slices·can·never·span·across·multiple·allocated·objects.</p>20 Slices·can·never·span·across·multiple·allocated·objects.</p>
21 </li>21 </li>
Offset 25, 18 lines modifiedOffset 25, 18 lines modified
25 <li>25 <li>
26 <p>The·memory·referenced·by·the·returned·slice·must·not·be·mutated·for·the·duration26 <p>The·memory·referenced·by·the·returned·slice·must·not·be·mutated·for·the·duration
27 of·lifetime·<code>'a</code>,·except·inside·an·<code>UnsafeCell</code>.</p>27 of·lifetime·<code>'a</code>,·except·inside·an·<code>UnsafeCell</code>.</p>
28 </li>28 </li>
29 <li>29 <li>
30 <p>The·total·length·of·the·range·must·be·no·larger·than·<code>isize::MAX</code>,30 <p>The·total·length·of·the·range·must·be·no·larger·than·<code>isize::MAX</code>,
31 and·adding·that·size·to·<code>data</code>·must·not·“wrap·around”·the·address·space.31 and·adding·that·size·to·<code>data</code>·must·not·“wrap·around”·the·address·space.
32 See·the·safety·documentation·of·<a·href="../../core/primitive.pointer.html#method.offset"·title="method·pointer::offset"><code>pointer::offset</code></a>.</p>32 See·the·safety·documentation·of·<a·href="https://doc.rust-lang.org/1.78.0/core/primitive.pointer.html#method.offset"·title="method·pointer::offset"><code>pointer::offset</code></a>.</p>
33 </li>33 </li>
34 </ul>34 </ul>
35 <p>Note·that·a·range·created·from·<a·href="../../core/primitive.slice.html#method.as_ptr_range"·title="method·slice::as_ptr_range"><code>slice::as_ptr_range</code></a>·fulfills·these·requirements.</p>35 <p>Note·that·a·range·created·from·<a·href="https://doc.rust-lang.org/1.78.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>
36 <h2·id="panics"><a·class="doc-anchor"·href="#panics">§</a>Panics</h2>36 <h2·id="panics"><a·class="doc-anchor"·href="#panics">§</a>Panics</h2>
37 <p>This·function·panics·if·<code>T</code>·is·a·Zero-Sized·Type·(“ZST”).</p>37 <p>This·function·panics·if·<code>T</code>·is·a·Zero-Sized·Type·(“ZST”).</p>
38 <h2·id="caveat"><a·class="doc-anchor"·href="#caveat">§</a>Caveat</h2>38 <h2·id="caveat"><a·class="doc-anchor"·href="#caveat">§</a>Caveat</h2>
39 <p>The·lifetime·for·the·returned·slice·is·inferred·from·its·usage.·To39 <p>The·lifetime·for·the·returned·slice·is·inferred·from·its·usage.·To
40 prevent·accidental·misuse,·it’s·suggested·to·tie·the·lifetime·to·whichever40 prevent·accidental·misuse,·it’s·suggested·to·tie·the·lifetime·to·whichever
41 source·lifetime·is·safe·in·the·context,·such·as·by·providing·a·helper41 source·lifetime·is·safe·in·the·context,·such·as·by·providing·a·helper
42 function·taking·the·lifetime·of·a·host·value·for·the·slice,·or·by·explicit42 function·taking·the·lifetime·of·a·host·value·for·the·slice,·or·by·explicit
9.74 KB
./usr/share/doc/rust-web-doc/html/alloc/slice/fn.from_raw_parts.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="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.write(`<link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/SourceSerif4-Regular-46f98efaafac5295.ttf.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/FiraSans-Regular-018c141bf0843ffd.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/FiraSans-Medium-8f9a781e4970d388.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/SourceCodePro-Regular-562dcc5011b6de7d.ttf.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/SourceCodePro-Semibold-d899c5a5c4aeb14a.ttf.woff2">`)</script><link·rel="stylesheet"·href="../../static.files/normalize-76eba96aa4d2e634.css"><link·rel="stylesheet"·href="../../static.files/rustdoc-35f9e32502181f1e.css"><meta·name="rustdoc-vars"·data-root-path="../../"·data-static-root-path="../../static.files/"·data-current-crate="alloc"·data-themes=""·data-resource-suffix="1.78.0"·data-rustdoc-version="1.78.0"·data-channel="1.78.0"·data-search-js="search-42d8da7a6b9792c2.js"·data-settings-js="settings-4313503d2e1961c2.js"·><script·src="../../static.files/storage-4c98445ec4002617.js"></script><script·defer·src="sidebar-items1.78.0.js"></script><script·defer·src="../../static.files/main-12cf3b4f4f9dc36d.js"></script><noscript><link·rel="stylesheet"·href="../../static.files/noscript-04d5337699b92874.css"></noscript><link·rel="alternate·icon"·type="image/png"·href="../../static.files/favicon-16x16-8b506e7a72182f1c.png"><link·rel="alternate·icon"·type="image/png"·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.78.0</span></h2></div><div·class="sidebar-elems"><h2><a·href="index.html">In·alloc::slice</a></h2></div></nav><div·class="sidebar-resizer"></div>1 <!DOCTYPE·html><html·lang="en"><head><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.write(`<link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/SourceSerif4-Regular-46f98efaafac5295.ttf.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/FiraSans-Regular-018c141bf0843ffd.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/FiraSans-Medium-8f9a781e4970d388.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/SourceCodePro-Regular-562dcc5011b6de7d.ttf.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/SourceCodePro-Semibold-d899c5a5c4aeb14a.ttf.woff2">`)</script><link·rel="stylesheet"·href="../../static.files/normalize-76eba96aa4d2e634.css"><link·rel="stylesheet"·href="../../static.files/rustdoc-35f9e32502181f1e.css"><meta·name="rustdoc-vars"·data-root-path="../../"·data-static-root-path="../../static.files/"·data-current-crate="alloc"·data-themes=""·data-resource-suffix="1.78.0"·data-rustdoc-version="1.78.0"·data-channel="1.78.0"·data-search-js="search-42d8da7a6b9792c2.js"·data-settings-js="settings-4313503d2e1961c2.js"·><script·src="../../static.files/storage-4c98445ec4002617.js"></script><script·defer·src="sidebar-items1.78.0.js"></script><script·defer·src="../../static.files/main-12cf3b4f4f9dc36d.js"></script><noscript><link·rel="stylesheet"·href="../../static.files/noscript-04d5337699b92874.css"></noscript><link·rel="alternate·icon"·type="image/png"·href="../../static.files/favicon-16x16-8b506e7a72182f1c.png"><link·rel="alternate·icon"·type="image/png"·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.78.0</span></h2></div><div·class="sidebar-elems"><h2><a·href="index.html">In·alloc::slice</a></h2></div></nav><div·class="sidebar-resizer"></div>
2 ····<main><div·class="width-limiter"><nav·class="sub"><form·class="search-form"><span></span><div·id="sidebar-button"·tabindex="-1"><a·href="../../alloc/all.html"·title="show·sidebar"></a></div><input·class="search-input"·name="search"·aria-label="Run·search·in·the·documentation"·autocomplete="off"·spellcheck="false"·placeholder="Click·or·press·‘S’·to·search,·‘?’·for·more·options…"·type="search"><div·id="help-button"·tabindex="-1"><a·href="../../help.html"·title="help">?</a></div><div·id="settings-menu"·tabindex="-1"><a·href="../../settings.html"·title="settings"><img·width="22"·height="22"·alt="Change·settings"·src="../../static.files/wheel-7b819b6101059cd0.svg"></a></div></form></nav><section·id="main-content"·class="content"><div·class="main-heading"><h1>Function·<a·href="../index.html">alloc</a>::<wbr><a·href="index.html">slice</a>::<wbr><a·class="fn"·href="#">from_raw_parts</a><button·id="copy-path"·title="Copy·item·path·to·clipboard"><img·src="../../static.files/clipboard-7571035ce49a181d.svg"·width="19"·height="18"·alt="Copy·item·path"></button></h1><span·class="out-of-band"><span·class="since"·title="Stable·since·Rust·version·1.0.0,·const·since·1.64.0">1.0.0·(const:·1.64.0)</span>···<a·class="src"·href="../../src/core/slice/raw.rs.html#95">source</a>···<button·id="toggle-all-docs"·title="collapse·all·docs">[<span>&#x2212;</span>]</button></span></div><pre·class="rust·item-decl"><code>pub·const·unsafe·fn·from_raw_parts&lt;'a,·T&gt;(data:·<a·class="primitiv[·...·truncated·by·diffoscope;·len:·180,·SHA:·9d9da1603a5ea3a192d3c381bdd3bd56273f32af108097d887ac3205a96fd5a8·...·]/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 ····<main><div·class="width-limiter"><nav·class="sub"><form·class="search-form"><span></span><div·id="sidebar-button"·tabindex="-1"><a·href="../../alloc/all.html"·title="show·sidebar"></a></div><input·class="search-input"·name="search"·aria-label="Run·search·in·the·documentation"·autocomplete="off"·spellcheck="false"·placeholder="Click·or·press·‘S’·to·search,·‘?’·for·more·options…"·type="search"><div·id="help-button"·tabindex="-1"><a·href="../../help.html"·title="help">?</a></div><div·id="settings-menu"·tabindex="-1"><a·href="../../settings.html"·title="settings"><img·width="22"·height="22"·alt="Change·settings"·src="../../static.files/wheel-7b819b6101059cd0.svg"></a></div></form></nav><section·id="main-content"·class="content"><div·class="main-heading"><h1>Function·<a·href="../index.html">alloc</a>::<wbr><a·href="index.html">slice</a>::<wbr><a·class="fn"·href="#">from_raw_parts</a><button·id="copy-path"·title="Copy·item·path·to·clipboard"><img·src="../../static.files/clipboard-7571035ce49a181d.svg"·width="19"·height="18"·alt="Copy·item·path"></button></h1><span·class="out-of-band"><span·class="since"·title="Stable·since·Rust·version·1.0.0,·const·since·1.64.0">1.0.0·(const:·1.64.0)</span>···<a·class="src"·href="https://doc.rust-lang.org/1.78.0/src/core/slice/raw.rs.html#95">source</a>···<button·id="toggle-all-docs"·title="collapse·all·docs">[<span>&#x2212;</span>]</button></span></div><pre·class="rust·item-decl"><code>pub·const·unsafe·fn·from_raw_parts&lt;'a,·T&g[·...·truncated·by·diffoscope;·len:·288,·SHA:·77137b4564a382abe28cdb215ba6fa8d6cba62b52797ced483cfea6a8db0548c·...·]/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>
3 <p>The·<code>len</code>·argument·is·the·number·of·<strong>elements</strong>,·not·the·number·of·bytes.</p>3 <p>The·<code>len</code>·argument·is·the·number·of·<strong>elements</strong>,·not·the·number·of·bytes.</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>Behavior·is·undefined·if·any·of·the·following·conditions·are·violated:</p>5 <p>Behavior·is·undefined·if·any·of·the·following·conditions·are·violated:</p>
6 <ul>6 <ul>
7 <li>7 <li>
8 <p><code>data</code>·must·be·<a·href="../../core/ptr/index.html#safety"·title="mod·core::ptr">valid</a>·for·reads·for·<code>len·*·mem::size_of::&lt;T&gt;()</code>·many·bytes,8 <p><code>data</code>·must·be·<a·href="https://doc.rust-lang.org/1.78.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,
9 and·it·must·be·properly·aligned.·This·means·in·particular:</p>9 and·it·must·be·properly·aligned.·This·means·in·particular:</p>
10 <ul>10 <ul>
11 <li>The·entire·memory·range·of·this·slice·must·be·contained·within·a·single·allocated·object!11 <li>The·entire·memory·range·of·this·slice·must·be·contained·within·a·single·allocated·object!
12 Slices·can·never·span·across·multiple·allocated·objects.·See·<a·href="#incorrect-usage">below</a>12 Slices·can·never·span·across·multiple·allocated·objects.·See·<a·href="#incorrect-usage">below</a>
13 for·an·example·incorrectly·not·taking·this·into·account.</li>13 for·an·example·incorrectly·not·taking·this·into·account.</li>
14 <li><code>data</code>·must·be·non-null·and·aligned·even·for·zero-length·slices.·One14 <li><code>data</code>·must·be·non-null·and·aligned·even·for·zero-length·slices.·One
15 reason·for·this·is·that·enum·layout·optimizations·may·rely·on·references15 reason·for·this·is·that·enum·layout·optimizations·may·rely·on·references
16 (including·slices·of·any·length)·being·aligned·and·non-null·to·distinguish16 (including·slices·of·any·length)·being·aligned·and·non-null·to·distinguish
17 them·from·other·data.·You·can·obtain·a·pointer·that·is·usable·as·<code>data</code>17 them·from·other·data.·You·can·obtain·a·pointer·that·is·usable·as·<code>data</code>
18 for·zero-length·slices·using·<a·href="../../core/ptr/non_null/struct.NonNull.html#method.dangling"·title="associated·function·core::ptr::non_null::NonNull::dangling"><code>NonNull::dangling()</code></a>.</li>18 for·zero-length·slices·using·<a·href="https://doc.rust-lang.org/1.78.0/core/ptr/non_null/struct.NonNull.html#method.dangling"·title="associated·function·core::ptr::non_null::NonNull::dangling"><code>NonNull::dangling()</code></a>.</li>
19 </ul>19 </ul>
20 </li>20 </li>
21 <li>21 <li>
22 <p><code>data</code>·must·point·to·<code>len</code>·consecutive·properly·initialized·values·of·type·<code>T</code>.</p>22 <p><code>data</code>·must·point·to·<code>len</code>·consecutive·properly·initialized·values·of·type·<code>T</code>.</p>
23 </li>23 </li>
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·size·<code>len·*·mem::size_of::&lt;T&gt;()</code>·of·the·slice·must·be·no·larger·than·<code>isize::MAX</code>,29 <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>,
30 and·adding·that·size·to·<code>data</code>·must·not·“wrap·around”·the·address·space.30 and·adding·that·size·to·<code>data</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.78.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 <h2·id="caveat"><a·class="doc-anchor"·href="#caveat">§</a>Caveat</h2>34 <h2·id="caveat"><a·class="doc-anchor"·href="#caveat">§</a>Caveat</h2>
35 <p>The·lifetime·for·the·returned·slice·is·inferred·from·its·usage.·To35 <p>The·lifetime·for·the·returned·slice·is·inferred·from·its·usage.·To
36 prevent·accidental·misuse,·it’s·suggested·to·tie·the·lifetime·to·whichever36 prevent·accidental·misuse,·it’s·suggested·to·tie·the·lifetime·to·whichever
37 source·lifetime·is·safe·in·the·context,·such·as·by·providing·a·helper37 source·lifetime·is·safe·in·the·context,·such·as·by·providing·a·helper
38 function·taking·the·lifetime·of·a·host·value·for·the·slice,·or·by·explicit38 function·taking·the·lifetime·of·a·host·value·for·the·slice,·or·by·explicit
9.87 KB
./usr/share/doc/rust-web-doc/html/alloc/slice/fn.from_raw_parts_mut.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="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.write(`<link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/SourceSerif4-Regular-46f98efaafac5295.ttf.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/FiraSans-Regular-018c141bf0843ffd.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/FiraSans-Medium-8f9a781e4970d388.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/SourceCodePro-Regular-562dcc5011b6de7d.ttf.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/SourceCodePro-Semibold-d899c5a5c4aeb14a.ttf.woff2">`)</script><link·rel="stylesheet"·href="../../static.files/normalize-76eba96aa4d2e634.css"><link·rel="stylesheet"·href="../../static.files/rustdoc-35f9e32502181f1e.css"><meta·name="rustdoc-vars"·data-root-path="../../"·data-static-root-path="../../static.files/"·data-current-crate="alloc"·data-themes=""·data-resource-suffix="1.78.0"·data-rustdoc-version="1.78.0"·data-channel="1.78.0"·data-search-js="search-42d8da7a6b9792c2.js"·data-settings-js="settings-4313503d2e1961c2.js"·><script·src="../../static.files/storage-4c98445ec4002617.js"></script><script·defer·src="sidebar-items1.78.0.js"></script><script·defer·src="../../static.files/main-12cf3b4f4f9dc36d.js"></script><noscript><link·rel="stylesheet"·href="../../static.files/noscript-04d5337699b92874.css"></noscript><link·rel="alternate·icon"·type="image/png"·href="../../static.files/favicon-16x16-8b506e7a72182f1c.png"><link·rel="alternate·icon"·type="image/png"·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.78.0</span></h2></div><div·class="sidebar-elems"><h2><a·href="index.html">In·alloc::slice</a></h2></div></nav><div·class="sidebar-resizer"></div>1 <!DOCTYPE·html><html·lang="en"><head><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.write(`<link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/SourceSerif4-Regular-46f98efaafac5295.ttf.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/FiraSans-Regular-018c141bf0843ffd.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/FiraSans-Medium-8f9a781e4970d388.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/SourceCodePro-Regular-562dcc5011b6de7d.ttf.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/SourceCodePro-Semibold-d899c5a5c4aeb14a.ttf.woff2">`)</script><link·rel="stylesheet"·href="../../static.files/normalize-76eba96aa4d2e634.css"><link·rel="stylesheet"·href="../../static.files/rustdoc-35f9e32502181f1e.css"><meta·name="rustdoc-vars"·data-root-path="../../"·data-static-root-path="../../static.files/"·data-current-crate="alloc"·data-themes=""·data-resource-suffix="1.78.0"·data-rustdoc-version="1.78.0"·data-channel="1.78.0"·data-search-js="search-42d8da7a6b9792c2.js"·data-settings-js="settings-4313503d2e1961c2.js"·><script·src="../../static.files/storage-4c98445ec4002617.js"></script><script·defer·src="sidebar-items1.78.0.js"></script><script·defer·src="../../static.files/main-12cf3b4f4f9dc36d.js"></script><noscript><link·rel="stylesheet"·href="../../static.files/noscript-04d5337699b92874.css"></noscript><link·rel="alternate·icon"·type="image/png"·href="../../static.files/favicon-16x16-8b506e7a72182f1c.png"><link·rel="alternate·icon"·type="image/png"·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.78.0</span></h2></div><div·class="sidebar-elems"><h2><a·href="index.html">In·alloc::slice</a></h2></div></nav><div·class="sidebar-resizer"></div>
2 ····<main><div·class="width-limiter"><nav·class="sub"><form·class="search-form"><span></span><div·id="sidebar-button"·tabindex="-1"><a·href="../../alloc/all.html"·title="show·sidebar"></a></div><input·class="search-input"·name="search"·aria-label="Run·search·in·the·documentation"·autocomplete="off"·spellcheck="false"·placeholder="Click·or·press·‘S’·to·search,·‘?’·for·more·options…"·type="search"><div·id="help-button"·tabindex="-1"><a·href="../../help.html"·title="help">?</a></div><div·id="settings-menu"·tabindex="-1"><a·href="../../settings.html"·title="settings"><img·width="22"·height="22"·alt="Change·settings"·src="../../static.files/wheel-7b819b6101059cd0.svg"></a></div></form></nav><section·id="main-content"·class="content"><div·class="main-heading"><h1>Function·<a·href="../index.html">alloc</a>::<wbr><a·href="index.html">slice</a>::<wbr><a·class="fn"·href="#">from_raw_parts_mut</a><button·id="copy-path"·title="Copy·item·path·to·clipboard"><img·src="../../static.files/clipboard-7571035ce49a181d.svg"·width="19"·height="18"·alt="Copy·item·path"></button></h1><span·class="out-of-band"><span·class="since"·title="Stable·since·Rust·version·1.0.0,·const·unstable">1.0.0·(const:·<a·href="https://github.com/rust-lang/rust/issues/67456"·title="Tracking·issue·for·const_slice_from_raw_parts_mut">unstable</a>)</span>···<a·class="src"·href="../../src/core/slice/raw.rs.html#149">source</a>···<button·id="toggle-all-docs"·title="collapse·all·docs">[<span>&#x2212;</span>]</button></span></div><pre·class="rust·item-decl"><code>pub·unsafe·fn·from_raw_parts_mut&lt;'a,·T&gt;(data:·<a·class="primitive[·...·truncated·by·diffoscope;·len:·181,·SHA:·4c04acfa6e9dfcbb8043f9072dbbc1541179b66170ef37ee699f13550d0b23e4·...·]/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·a2 ····<main><div·class="width-limiter"><nav·class="sub"><form·class="search-form"><span></span><div·id="sidebar-button"·tabindex="-1"><a·href="../../alloc/all.html"·title="show·sidebar"></a></div><input·class="search-input"·name="search"·aria-label="Run·search·in·the·documentation"·autocomplete="off"·spellcheck="false"·placeholder="Click·or·press·‘S’·to·search,·‘?’·for·more·options…"·type="search"><div·id="help-button"·tabindex="-1"><a·href="../../help.html"·title="help">?</a></div><div·id="settings-menu"·tabindex="-1"><a·href="../../settings.html"·title="settings"><img·width="22"·height="22"·alt="Change·settings"·src="../../static.files/wheel-7b819b6101059cd0.svg"></a></div></form></nav><section·id="main-content"·class="content"><div·class="main-heading"><h1>Function·<a·href="../index.html">alloc</a>::<wbr><a·href="index.html">slice</a>::<wbr><a·class="fn"·href="#">from_raw_parts_mut</a><button·id="copy-path"·title="Copy·item·path·to·clipboard"><img·src="../../static.files/clipboard-7571035ce49a181d.svg"·width="19"·height="18"·alt="Copy·item·path"></button></h1><span·class="out-of-band"><span·class="since"·title="Stable·since·Rust·version·1.0.0,·const·unstable">1.0.0·(const:·<a·href="https://github.com/rust-lang/rust/issues/67456"·title="Tracking·issue·for·const_slice_from_raw_parts_mut">unstable</a>)</span>···<a·class="src"·href="https://doc.rust-lang.org/1.78.0/src/core/slice/raw.rs.html#149">source</a>···<button·id="toggle-all-docs"·title="collapse·all·docs">[<span>&#x2212;</span>]</button></span></div><pre·class="rust·item-decl"><code>pub·unsafe·fn·from_raw_parts_mut&lt;'a,·T&gt[·...·truncated·by·diffoscope;·len:·289,·SHA:·da7991173cef1abded9beb6aceb05e2e74148a2c31ab264f811574ffe17c7484·...·]/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
3 mutable·slice·is·returned.</p>3 mutable·slice·is·returned.</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>Behavior·is·undefined·if·any·of·the·following·conditions·are·violated:</p>5 <p>Behavior·is·undefined·if·any·of·the·following·conditions·are·violated:</p>
6 <ul>6 <ul>
7 <li>7 <li>
8 <p><code>data</code>·must·be·<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,8 <p><code>data</code>·must·be·<a·href="https://doc.rust-lang.org/1.78.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,
9 and·it·must·be·properly·aligned.·This·means·in·particular:</p>9 and·it·must·be·properly·aligned.·This·means·in·particular:</p>
10 <ul>10 <ul>
11 <li>The·entire·memory·range·of·this·slice·must·be·contained·within·a·single·allocated·object!11 <li>The·entire·memory·range·of·this·slice·must·be·contained·within·a·single·allocated·object!
12 Slices·can·never·span·across·multiple·allocated·objects.</li>12 Slices·can·never·span·across·multiple·allocated·objects.</li>
13 <li><code>data</code>·must·be·non-null·and·aligned·even·for·zero-length·slices.·One13 <li><code>data</code>·must·be·non-null·and·aligned·even·for·zero-length·slices.·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.78.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·accessed·through·any·other·pointer24 <p>The·memory·referenced·by·the·returned·slice·must·not·be·accessed·through·any·other·pointer
25 (not·derived·from·the·return·value)·for·the·duration·of·lifetime·<code>'a</code>.25 (not·derived·from·the·return·value)·for·the·duration·of·lifetime·<code>'a</code>.
26 Both·read·and·write·accesses·are·forbidden.</p>26 Both·read·and·write·accesses·are·forbidden.</p>
27 </li>27 </li>
28 <li>28 <li>
29 <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 <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>,
30 and·adding·that·size·to·<code>data</code>·must·not·“wrap·around”·the·address·space.30 and·adding·that·size·to·<code>data</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.78.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 </div></details></section></div></main></body></html>34 </div></details></section></div></main></body></html>
6.69 KB
./usr/share/doc/rust-web-doc/html/alloc/slice/fn.from_ref.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="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.write(`<link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/SourceSerif4-Regular-46f98efaafac5295.ttf.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/FiraSans-Regular-018c141bf0843ffd.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/FiraSans-Medium-8f9a781e4970d388.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/SourceCodePro-Regular-562dcc5011b6de7d.ttf.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/SourceCodePro-Semibold-d899c5a5c4aeb14a.ttf.woff2">`)</script><link·rel="stylesheet"·href="../../static.files/normalize-76eba96aa4d2e634.css"><link·rel="stylesheet"·href="../../static.files/rustdoc-35f9e32502181f1e.css"><meta·name="rustdoc-vars"·data-root-path="../../"·data-static-root-path="../../static.files/"·data-current-crate="alloc"·data-themes=""·data-resource-suffix="1.78.0"·data-rustdoc-version="1.78.0"·data-channel="1.78.0"·data-search-js="search-42d8da7a6b9792c2.js"·data-settings-js="settings-4313503d2e1961c2.js"·><script·src="../../static.files/storage-4c98445ec4002617.js"></script><script·defer·src="sidebar-items1.78.0.js"></script><script·defer·src="../../static.files/main-12cf3b4f4f9dc36d.js"></script><noscript><link·rel="stylesheet"·href="../../static.files/noscript-04d5337699b92874.css"></noscript><link·rel="alternate·icon"·type="image/png"·href="../../static.files/favicon-16x16-8b506e7a72182f1c.png"><link·rel="alternate·icon"·type="image/png"·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.78.0</span></h2></div><div·class="sidebar-elems"><h2><a·href="index.html">In·alloc::slice</a></h2></div></nav><div·class="sidebar-resizer"></div>1 <!DOCTYPE·html><html·lang="en"><head><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.write(`<link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/SourceSerif4-Regular-46f98efaafac5295.ttf.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/FiraSans-Regular-018c141bf0843ffd.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/FiraSans-Medium-8f9a781e4970d388.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/SourceCodePro-Regular-562dcc5011b6de7d.ttf.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/SourceCodePro-Semibold-d899c5a5c4aeb14a.ttf.woff2">`)</script><link·rel="stylesheet"·href="../../static.files/normalize-76eba96aa4d2e634.css"><link·rel="stylesheet"·href="../../static.files/rustdoc-35f9e32502181f1e.css"><meta·name="rustdoc-vars"·data-root-path="../../"·data-static-root-path="../../static.files/"·data-current-crate="alloc"·data-themes=""·data-resource-suffix="1.78.0"·data-rustdoc-version="1.78.0"·data-channel="1.78.0"·data-search-js="search-42d8da7a6b9792c2.js"·data-settings-js="settings-4313503d2e1961c2.js"·><script·src="../../static.files/storage-4c98445ec4002617.js"></script><script·defer·src="sidebar-items1.78.0.js"></script><script·defer·src="../../static.files/main-12cf3b4f4f9dc36d.js"></script><noscript><link·rel="stylesheet"·href="../../static.files/noscript-04d5337699b92874.css"></noscript><link·rel="alternate·icon"·type="image/png"·href="../../static.files/favicon-16x16-8b506e7a72182f1c.png"><link·rel="alternate·icon"·type="image/png"·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.78.0</span></h2></div><div·class="sidebar-elems"><h2><a·href="index.html">In·alloc::slice</a></h2></div></nav><div·class="sidebar-resizer"></div>
2 ····<main><div·class="width-limiter"><nav·class="sub"><form·class="search-form"><span></span><div·id="sidebar-button"·tabindex="-1"><a·href="../../alloc/all.html"·title="show·sidebar"></a></div><input·class="search-input"·name="search"·aria-label="Run·search·in·the·documentation"·autocomplete="off"·spellcheck="false"·placeholder="Click·or·press·‘S’·to·search,·‘?’·for·more·options…"·type="search"><div·id="help-button"·tabindex="-1"><a·href="../../help.html"·title="help">?</a></div><div·id="settings-menu"·tabindex="-1"><a·href="../../settings.html"·title="settings"><img·width="22"·height="22"·alt="Change·settings"·src="../../static.files/wheel-7b819b6101059cd0.svg"></a></div></form></nav><section·id="main-content"·class="content"><div·class="main-heading"><h1>Function·<a·href="../index.html">alloc</a>::<wbr><a·href="index.html">slice</a>::<wbr><a·class="fn"·href="#">from_ref</a><button·id="copy-path"·title="Copy·item·path·to·clipboard"><img·src="../../static.files/clipboard-7571035ce49a181d.svg"·width="19"·height="18"·alt="Copy·item·path"></button></h1><span·class="out-of-band"><span·class="since"·title="Stable·since·Rust·version·1.28.0,·const·since·1.63.0">1.28.0·(const:·1.63.0)</span>···<a·class="src"·href="../../src/core/slice/raw.rs.html#172">source</a>···<button·id="toggle-all-docs"·title="collapse·all·docs">[<span>&#x2212;</span>]</button></span></div><pre·class="rust·item-decl"><code>pub·const·fn·from_ref&lt;T&gt;(s:·<a·class="primitive"·href="../../core[·...·truncated·by·diffoscope;·len:·82,·SHA:·6c2c3fcd9e1ca6a514a515fdc5bcec26cd093db921b499fc936c2700cfb44ca3·...·]/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 ····<main><div·class="width-limiter"><nav·class="sub"><form·class="search-form"><span></span><div·id="sidebar-button"·tabindex="-1"><a·href="../../alloc/all.html"·title="show·sidebar"></a></div><input·class="search-input"·name="search"·aria-label="Run·search·in·the·documentation"·autocomplete="off"·spellcheck="false"·placeholder="Click·or·press·‘S’·to·search,·‘?’·for·more·options…"·type="search"><div·id="help-button"·tabindex="-1"><a·href="../../help.html"·title="help">?</a></div><div·id="settings-menu"·tabindex="-1"><a·href="../../settings.html"·title="settings"><img·width="22"·height="22"·alt="Change·settings"·src="../../static.files/wheel-7b819b6101059cd0.svg"></a></div></form></nav><section·id="main-content"·class="content"><div·class="main-heading"><h1>Function·<a·href="../index.html">alloc</a>::<wbr><a·href="index.html">slice</a>::<wbr><a·class="fn"·href="#">from_ref</a><button·id="copy-path"·title="Copy·item·path·to·clipboard"><img·src="../../static.files/clipboard-7571035ce49a181d.svg"·width="19"·height="18"·alt="Copy·item·path"></button></h1><span·class="out-of-band"><span·class="since"·title="Stable·since·Rust·version·1.28.0,·const·since·1.63.0">1.28.0·(const:·1.63.0)</span>···<a·class="src"·href="https://doc.rust-lang.org/1.78.0/src/core/slice/raw.rs.html#172">source</a>···<button·id="toggle-all-docs"·title="collapse·all·docs">[<span>&#x2212;</span>]</button></span></div><pre·class="rust·item-decl"><code>pub·const·fn·from_ref&lt;T&gt;(s:·<a·class="[·...·truncated·by·diffoscope;·len:·163,·SHA:·c33f9e20d3337273104d78f62c82720bf4a40509cb270c7dcea4c64087fec66f·...·]/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>
3 </div></details></section></div></main></body></html>3 </div></details></section></div></main></body></html>
12.6 KB
./usr/share/doc/rust-web-doc/html/alloc/slice/fn.range.html
    
Offset 1, 29 lines modifiedOffset 1, 29 lines modified
1 <!DOCTYPE·html><html·lang="en"><head><meta·charset="utf-8"><meta·name="viewport"·content="width=device-width,·initial-scale=1.0"><meta·name="generator"·content="rustdoc"><meta·name="description"·content="Performs·bounds-checking·of·a·range."><title>range·in·alloc::slice·-·Rust</title><script>·if·(window.location.protocol·!==·"file:")·document.write(`<link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/SourceSerif4-Regular-46f98efaafac5295.ttf.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/FiraSans-Regular-018c141bf0843ffd.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/FiraSans-Medium-8f9a781e4970d388.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/SourceCodePro-Regular-562dcc5011b6de7d.ttf.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/SourceCodePro-Semibold-d899c5a5c4aeb14a.ttf.woff2">`)</script><link·rel="stylesheet"·href="../../static.files/normalize-76eba96aa4d2e634.css"><link·rel="stylesheet"·href="../../static.files/rustdoc-35f9e32502181f1e.css"><meta·name="rustdoc-vars"·data-root-path="../../"·data-static-root-path="../../static.files/"·data-current-crate="alloc"·data-themes=""·data-resource-suffix="1.78.0"·data-rustdoc-version="1.78.0"·data-channel="1.78.0"·data-search-js="search-42d8da7a6b9792c2.js"·data-settings-js="settings-4313503d2e1961c2.js"·><script·src="../../static.files/storage-4c98445ec4002617.js"></script><script·defer·src="sidebar-items1.78.0.js"></script><script·defer·src="../../static.files/main-12cf3b4f4f9dc36d.js"></script><noscript><link·rel="stylesheet"·href="../../static.files/noscript-04d5337699b92874.css"></noscript><link·rel="alternate·icon"·type="image/png"·href="../../static.files/favicon-16x16-8b506e7a72182f1c.png"><link·rel="alternate·icon"·type="image/png"·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.78.0</span></h2></div><div·class="sidebar-elems"><h2><a·href="index.html">In·alloc::slice</a></h2></div></nav><div·class="sidebar-resizer"></div>1 <!DOCTYPE·html><html·lang="en"><head><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.write(`<link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/SourceSerif4-Regular-46f98efaafac5295.ttf.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/FiraSans-Regular-018c141bf0843ffd.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/FiraSans-Medium-8f9a781e4970d388.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/SourceCodePro-Regular-562dcc5011b6de7d.ttf.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/SourceCodePro-Semibold-d899c5a5c4aeb14a.ttf.woff2">`)</script><link·rel="stylesheet"·href="../../static.files/normalize-76eba96aa4d2e634.css"><link·rel="stylesheet"·href="../../static.files/rustdoc-35f9e32502181f1e.css"><meta·name="rustdoc-vars"·data-root-path="../../"·data-static-root-path="../../static.files/"·data-current-crate="alloc"·data-themes=""·data-resource-suffix="1.78.0"·data-rustdoc-version="1.78.0"·data-channel="1.78.0"·data-search-js="search-42d8da7a6b9792c2.js"·data-settings-js="settings-4313503d2e1961c2.js"·><script·src="../../static.files/storage-4c98445ec4002617.js"></script><script·defer·src="sidebar-items1.78.0.js"></script><script·defer·src="../../static.files/main-12cf3b4f4f9dc36d.js"></script><noscript><link·rel="stylesheet"·href="../../static.files/noscript-04d5337699b92874.css"></noscript><link·rel="alternate·icon"·type="image/png"·href="../../static.files/favicon-16x16-8b506e7a72182f1c.png"><link·rel="alternate·icon"·type="image/png"·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.78.0</span></h2></div><div·class="sidebar-elems"><h2><a·href="index.html">In·alloc::slice</a></h2></div></nav><div·class="sidebar-resizer"></div>
2 ····<main><div·class="width-limiter"><nav·class="sub"><form·class="search-form"><span></span><div·id="sidebar-button"·tabindex="-1"><a·href="../../alloc/all.html"·title="show·sidebar"></a></div><input·class="search-input"·name="search"·aria-label="Run·search·in·the·documentation"·autocomplete="off"·spellcheck="false"·placeholder="Click·or·press·‘S’·to·search,·‘?’·for·more·options…"·type="search"><div·id="help-button"·tabindex="-1"><a·href="../../help.html"·title="help">?</a></div><div·id="settings-menu"·tabindex="-1"><a·href="../../settings.html"·title="settings"><img·width="22"·height="22"·alt="Change·settings"·src="../../static.files/wheel-7b819b6101059cd0.svg"></a></div></form></nav><section·id="main-content"·class="content"><div·class="main-heading"><h1>Function·<a·href="../index.html">alloc</a>::<wbr><a·href="index.html">slice</a>::<wbr><a·class="fn"·href="#">range</a><button·id="copy-path"·title="Copy·item·path·to·clipboard"><img·src="../../static.files/clipboard-7571035ce49a181d.svg"·width="19"·height="18"·alt="Copy·item·path"></button></h1><span·class="out-of-band"><a·class="src"·href="../../src/core/slice/index.rs.html#701-703">source</a>···<button·id="toggle-all-docs"·title="collapse·all·docs">[<span>&#x2212;</span>]</button></span></div><pre·class="rust·item-decl"><code>pub·fn·range&lt;R&gt;(range:·R,·bounds:·<a·class="struct"·href=".[·...·truncated·by·diffoscope;·len:·326,·SHA:·04bb284b11044a061f4d9fdab18dc25aea36fd7eb7ff2d4407f9adff5f70d33e·...·]/core/primitive.usize.html">usize</a>&gt;<div·class="where">where2 ····<main><div·class="width-limiter"><nav·class="sub"><form·class="search-form"><span></span><div·id="sidebar-button"·tabindex="-1"><a·href="../../alloc/all.html"·title="show·sidebar"></a></div><input·class="search-input"·name="search"·aria-label="Run·search·in·the·documentation"·autocomplete="off"·spellcheck="false"·placeholder="Click·or·press·‘S’·to·search,·‘?’·for·more·options…"·type="search"><div·id="help-button"·tabindex="-1"><a·href="../../help.html"·title="help">?</a></div><div·id="settings-menu"·tabindex="-1"><a·href="../../settings.html"·title="settings"><img·width="22"·height="22"·alt="Change·settings"·src="../../static.files/wheel-7b819b6101059cd0.svg"></a></div></form></nav><section·id="main-content"·class="content"><div·class="main-heading"><h1>Function·<a·href="../index.html">alloc</a>::<wbr><a·href="index.html">slice</a>::<wbr><a·class="fn"·href="#">range</a><button·id="copy-path"·title="Copy·item·path·to·clipboard"><img·src="../../static.files/clipboard-7571035ce49a181d.svg"·width="19"·height="18"·alt="Copy·item·path"></button></h1><span·class="out-of-band"><a·class="src"·href="https://doc.rust-lang.org/1.78.0/src/core/slice/index.rs.html#701-703">source</a>···<button·id="toggle-all-docs"·title="collapse·all·docs">[<span>&#x2212;</span>]</button></span></div><pre·class="rust·item-decl"><code>pub·fn·range&lt;R&gt;(range:·R,·bounds[·...·truncated·by·diffoscope;·len:·461,·SHA:·920a6991a8b208ad8af4f86a6855336e933adc6646828d09121ba1a537396ada·...·]/core/primitive.usize.html">usize</a>&gt;<div·class="where">where
3 ····R:·<a·class="trait"·href="../../core/ops/range/trait.RangeBounds.html"·title="trait·core::ops::range::RangeBounds">RangeBounds</a>&lt;<a·class="primitive"·href="../../core/primitive.usize.html">usize</a>&gt;,</div></code></pre><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>slice_range</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/76393">#76393</a>)</span></div></span><details·class="toggle·top-doc"·open><summary·class="hideme"><span>Expand·description</span></summary><div·class="docblock"><p>Performs·bounds-checking·of·a·range.</p>3 ····R:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.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.78.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>
4 <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·a4 <p>This·method·is·similar·to·<a·href="https://doc.rust-lang.org/1.78.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
5 <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·range5 <a·href="https://doc.rust-lang.org/1.78.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
6 into·<code>start</code>·and·<code>end</code>·values.</p>6 into·<code>start</code>·and·<code>end</code>·values.</p>
7 <p><code>bounds</code>·is·the·range·of·the·slice·to·use·for·bounds-checking.·It·should7 <p><code>bounds</code>·is·the·range·of·the·slice·to·use·for·bounds-checking.·It·should
8 be·a·<a·href="../../core/ops/range/struct.RangeTo.html"·title="struct·core::ops::range::RangeTo"><code>RangeTo</code></a>·range·that·ends·at·the·length·of·the·slice.</p>8 be·a·<a·href="https://doc.rust-lang.org/1.78.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>
9 <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>·and9 <p>The·returned·<a·href="https://doc.rust-lang.org/1.78.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.78.0/core/primitive.slice.html#method.get_unchecked"·title="method·slice::get_unchecked"><code>slice::get_unchecked</code></a>·and
10 <a·href="../../core/primitive.slice.html#method.get_unchecked_mut"·title="method·slice::get_unchecked_mut"><code>slice::get_unchecked_mut</code></a>·for·slices·with·the·given·range.</p>10 <a·href="https://doc.rust-lang.org/1.78.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>
11 <h2·id="panics"><a·class="doc-anchor"·href="#panics">§</a>Panics</h2>11 <h2·id="panics"><a·class="doc-anchor"·href="#panics">§</a>Panics</h2>
12 <p>Panics·if·<code>range</code>·would·be·out·of·bounds.</p>12 <p>Panics·if·<code>range</code>·would·be·out·of·bounds.</p>
13 <h2·id="examples"><a·class="doc-anchor"·href="#examples">§</a>Examples</h2>13 <h2·id="examples"><a·class="doc-anchor"·href="#examples">§</a>Examples</h2>
14 <div·class="example-wrap"><pre·class="rust·rust-example-rendered"><code><span·class="attr">#![feature(slice_range)]14 <div·class="example-wrap"><pre·class="rust·rust-example-rendered"><code><span·class="attr">#![feature(slice_range)]
  
15 </span><span·class="kw">use·</span>std::slice;15 </span><span·class="kw">use·</span>std::slice;
  
16 <span·class="kw">let·</span>v·=·[<span·class="number">10</span>,·<span·class="number">40</span>,·<span·class="number">30</span>];16 <span·class="kw">let·</span>v·=·[<span·class="number">10</span>,·<span·class="number">40</span>,·<span·class="number">30</span>];
17 <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">1</span>..<span·class="number">2</span>,·slice::range(<span·class="number">1</span>..<span·class="number">2</span>,·..v.len()));
18 <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">0</span>..<span·class="number">2</span>,·slice::range(..<span·class="number">2</span>,·..v.len()));
19 <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"·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">Run</a></div>19 <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"·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">Run</a></div>
20 <p>Panics·when·<a·href="../../core/ops/index/trait.Index.html#tymethod.index"·title="method·core::ops::index::Index::index"><code>Index::index</code></a>·would·panic:</p>20 <p>Panics·when·<a·href="https://doc.rust-lang.org/1.78.0/core/ops/index/trait.Index.html#tymethod.index"·title="method·core::ops::index::Index::index"><code>Index::index</code></a>·would·panic:</p>
  
21 <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 <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)]
  
22 </span><span·class="kw">use·</span>std::slice;22 </span><span·class="kw">use·</span>std::slice;
  
23 <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"·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">Run</a></div>23 <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"·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">Run</a></div>
  
11.4 KB
./usr/share/doc/rust-web-doc/html/alloc/slice/fn.try_range.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="Performs·bounds-checking·of·a·range·without·panicking."><title>try_range·in·alloc::slice·-·Rust</title><script>·if·(window.location.protocol·!==·"file:")·document.write(`<link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/SourceSerif4-Regular-46f98efaafac5295.ttf.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/FiraSans-Regular-018c141bf0843ffd.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/FiraSans-Medium-8f9a781e4970d388.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/SourceCodePro-Regular-562dcc5011b6de7d.ttf.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/SourceCodePro-Semibold-d899c5a5c4aeb14a.ttf.woff2">`)</script><link·rel="stylesheet"·href="../../static.files/normalize-76eba96aa4d2e634.css"><link·rel="stylesheet"·href="../../static.files/rustdoc-35f9e32502181f1e.css"><meta·name="rustdoc-vars"·data-root-path="../../"·data-static-root-path="../../static.files/"·data-current-crate="alloc"·data-themes=""·data-resource-suffix="1.78.0"·data-rustdoc-version="1.78.0"·data-channel="1.78.0"·data-search-js="search-42d8da7a6b9792c2.js"·data-settings-js="settings-4313503d2e1961c2.js"·><script·src="../../static.files/storage-4c98445ec4002617.js"></script><script·defer·src="sidebar-items1.78.0.js"></script><script·defer·src="../../static.files/main-12cf3b4f4f9dc36d.js"></script><noscript><link·rel="stylesheet"·href="../../static.files/noscript-04d5337699b92874.css"></noscript><link·rel="alternate·icon"·type="image/png"·href="../../static.files/favicon-16x16-8b506e7a72182f1c.png"><link·rel="alternate·icon"·type="image/png"·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.78.0</span></h2></div><div·class="sidebar-elems"><h2><a·href="index.html">In·alloc::slice</a></h2></div></nav><div·class="sidebar-resizer"></div>1 <!DOCTYPE·html><html·lang="en"><head><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.write(`<link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/SourceSerif4-Regular-46f98efaafac5295.ttf.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/FiraSans-Regular-018c141bf0843ffd.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/FiraSans-Medium-8f9a781e4970d388.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/SourceCodePro-Regular-562dcc5011b6de7d.ttf.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/SourceCodePro-Semibold-d899c5a5c4aeb14a.ttf.woff2">`)</script><link·rel="stylesheet"·href="../../static.files/normalize-76eba96aa4d2e634.css"><link·rel="stylesheet"·href="../../static.files/rustdoc-35f9e32502181f1e.css"><meta·name="rustdoc-vars"·data-root-path="../../"·data-static-root-path="../../static.files/"·data-current-crate="alloc"·data-themes=""·data-resource-suffix="1.78.0"·data-rustdoc-version="1.78.0"·data-channel="1.78.0"·data-search-js="search-42d8da7a6b9792c2.js"·data-settings-js="settings-4313503d2e1961c2.js"·><script·src="../../static.files/storage-4c98445ec4002617.js"></script><script·defer·src="sidebar-items1.78.0.js"></script><script·defer·src="../../static.files/main-12cf3b4f4f9dc36d.js"></script><noscript><link·rel="stylesheet"·href="../../static.files/noscript-04d5337699b92874.css"></noscript><link·rel="alternate·icon"·type="image/png"·href="../../static.files/favicon-16x16-8b506e7a72182f1c.png"><link·rel="alternate·icon"·type="image/png"·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.78.0</span></h2></div><div·class="sidebar-elems"><h2><a·href="index.html">In·alloc::slice</a></h2></div></nav><div·class="sidebar-resizer"></div>
2 ····<main><div·class="width-limiter"><nav·class="sub"><form·class="search-form"><span></span><div·id="sidebar-button"·tabindex="-1"><a·href="../../alloc/all.html"·title="show·sidebar"></a></div><input·class="search-input"·name="search"·aria-label="Run·search·in·the·documentation"·autocomplete="off"·spellcheck="false"·placeholder="Click·or·press·‘S’·to·search,·‘?’·for·more·options…"·type="search"><div·id="help-button"·tabindex="-1"><a·href="../../help.html"·title="help">?</a></div><div·id="settings-menu"·tabindex="-1"><a·href="../../settings.html"·title="settings"><img·width="22"·height="22"·alt="Change·settings"·src="../../static.files/wheel-7b819b6101059cd0.svg"></a></div></form></nav><section·id="main-content"·class="content"><div·class="main-heading"><h1>Function·<a·href="../index.html">alloc</a>::<wbr><a·href="index.html">slice</a>::<wbr><a·class="fn"·href="#">try_range</a><button·id="copy-path"·title="Copy·item·path·to·clipboard"><img·src="../../static.files/clipboard-7571035ce49a181d.svg"·width="19"·height="18"·alt="Copy·item·path"></button></h1><span·class="out-of-band"><a·class="src"·href="../../src/core/slice/index.rs.html#765-767">source</a>···<button·id="toggle-all-docs"·title="collapse·all·docs">[<span>&#x2212;</span>]</button></span></div><pre·class="rust·item-decl"><code>pub·fn·try_range&lt;R&gt;(range:·R,·bounds:·<a·class="struct"·hre[·...·truncated·by·diffoscope;·len:·436,·SHA:·10e1e443db6a3a77d1e4cc1d1d72d45d6cca26984bd0df19a5af84ddc3748b9e·...·]/core/primitive.usize.html">usize</a>&gt;&gt;<div·class="where">where2 ····<main><div·class="width-limiter"><nav·class="sub"><form·class="search-form"><span></span><div·id="sidebar-button"·tabindex="-1"><a·href="../../alloc/all.html"·title="show·sidebar"></a></div><input·class="search-input"·name="search"·aria-label="Run·search·in·the·documentation"·autocomplete="off"·spellcheck="false"·placeholder="Click·or·press·‘S’·to·search,·‘?’·for·more·options…"·type="search"><div·id="help-button"·tabindex="-1"><a·href="../../help.html"·title="help">?</a></div><div·id="settings-menu"·tabindex="-1"><a·href="../../settings.html"·title="settings"><img·width="22"·height="22"·alt="Change·settings"·src="../../static.files/wheel-7b819b6101059cd0.svg"></a></div></form></nav><section·id="main-content"·class="content"><div·class="main-heading"><h1>Function·<a·href="../index.html">alloc</a>::<wbr><a·href="index.html">slice</a>::<wbr><a·class="fn"·href="#">try_range</a><button·id="copy-path"·title="Copy·item·path·to·clipboard"><img·src="../../static.files/clipboard-7571035ce49a181d.svg"·width="19"·height="18"·alt="Copy·item·path"></button></h1><span·class="out-of-band"><a·class="src"·href="https://doc.rust-lang.org/1.78.0/src/core/slice/index.rs.html#765-767">source</a>···<button·id="toggle-all-docs"·title="collapse·all·docs">[<span>&#x2212;</span>]</button></span></div><pre·class="rust·item-decl"><code>pub·fn·try_range&lt;R&gt;(range:·R,·bo[·...·truncated·by·diffoscope;·len:·598,·SHA:·91f076146e6aefb3907e0ba4dcff868db422a0458bfc91048578f1e579bb592c·...·]/core/primitive.usize.html">usize</a>&gt;&gt;<div·class="where">where
3 ····R:·<a·class="trait"·href="../../core/ops/range/trait.RangeBounds.html"·title="trait·core::ops::range::RangeBounds">RangeBounds</a>&lt;<a·class="primitive"·href="../../core/primitive.usize.html">usize</a>&gt;,</div></code></pre><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>slice_range</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/76393">#76393</a>)</span></div></span><details·class="toggle·top-doc"·open><summary·class="hideme"><span>Expand·description</span></summary><div·class="docblock"><p>Performs·bounds-checking·of·a·range·without·panicking.</p>3 ····R:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.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.78.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>
4 <p>This·is·a·version·of·<a·href="fn.range.html"·title="fn·alloc::slice::range"><code>range</code></a>·that·returns·<a·href="../../core/option/enum.Option.html#variant.None"·title="variant·core::option::Option::None"><code>None</code></a>·instead·of·panicking.</p>4 <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.78.0/core/option/enum.Option.html#variant.None"·title="variant·core::option::Option::None"><code>None</code></a>·instead·of·panicking.</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 <div·class="example-wrap"><pre·class="rust·rust-example-rendered"><code><span·class="attr">#![feature(slice_range)]6 <div·class="example-wrap"><pre·class="rust·rust-example-rendered"><code><span·class="attr">#![feature(slice_range)]
  
7 </span><span·class="kw">use·</span>std::slice;7 </span><span·class="kw">use·</span>std::slice;
  
8 <span·class="kw">let·</span>v·=·[<span·class="number">10</span>,·<span·class="number">40</span>,·<span·class="number">30</span>];8 <span·class="kw">let·</span>v·=·[<span·class="number">10</span>,·<span·class="number">40</span>,·<span·class="number">30</span>];
9 <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">1</span>..<span·class="number">2</span>),·slice::try_range(<span·class="number">1</span>..<span·class="number">2</span>,·..v.len()));
10 <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">0</span>..<span·class="number">2</span>),·slice::try_range(..<span·class="number">2</span>,·..v.len()));
11 <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"·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">Run</a></div>11 <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"·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">Run</a></div>
12 <p>Returns·<a·href="../../core/option/enum.Option.html#variant.None"·title="variant·core::option::Option::None"><code>None</code></a>·when·<a·href="../../core/ops/index/trait.Index.html#tymethod.index"·title="method·core::ops::index::Index::index"><code>Index::index</code></a>·would·panic:</p>12 <p>Returns·<a·href="https://doc.rust-lang.org/1.78.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.78.0/core/ops/index/trait.Index.html#tymethod.index"·title="method·core::ops::index::Index::index"><code>Index::index</code></a>·would·panic:</p>
  
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="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">2</span>..<span·class="number">1</span>,·..<span·class="number">3</span>));
16 <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>));16 <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>));
14.2 KB
./usr/share/doc/rust-web-doc/html/alloc/slice/index.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="Utilities·for·the·slice·primitive·type."><title>alloc::slice·-·Rust</title><script>·if·(window.location.protocol·!==·"file:")·document.write(`<link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/SourceSerif4-Regular-46f98efaafac5295.ttf.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/FiraSans-Regular-018c141bf0843ffd.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/FiraSans-Medium-8f9a781e4970d388.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/SourceCodePro-Regular-562dcc5011b6de7d.ttf.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/SourceCodePro-Semibold-d899c5a5c4aeb14a.ttf.woff2">`)</script><link·rel="stylesheet"·href="../../static.files/normalize-76eba96aa4d2e634.css"><link·rel="stylesheet"·href="../../static.files/rustdoc-35f9e32502181f1e.css"><meta·name="rustdoc-vars"·data-root-path="../../"·data-static-root-path="../../static.files/"·data-current-crate="alloc"·data-themes=""·data-resource-suffix="1.78.0"·data-rustdoc-version="1.78.0"·data-channel="1.78.0"·data-search-js="search-42d8da7a6b9792c2.js"·data-settings-js="settings-4313503d2e1961c2.js"·><script·src="../../static.files/storage-4c98445ec4002617.js"></script><script·defer·src="../sidebar-items1.78.0.js"></script><script·defer·src="../../static.files/main-12cf3b4f4f9dc36d.js"></script><noscript><link·rel="stylesheet"·href="../../static.files/noscript-04d5337699b92874.css"></noscript><link·rel="alternate·icon"·type="image/png"·href="../../static.files/favicon-16x16-8b506e7a72182f1c.png"><link·rel="alternate·icon"·type="image/png"·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.78.0</span></h2></div><h2·class="location"><a·href="#">Module·slice</a></h2><div·class="sidebar-elems"><section><ul·class="block"><li><a·href="#structs">Structs</a></li><li><a·href="#traits">Traits</a></li><li><a·href="#functions">Functions</a></li></ul></section><h2><a·href="../index.html">In·crate·alloc</a></h2></div></nav><div·class="sidebar-resizer"></div>1 <!DOCTYPE·html><html·lang="en"><head><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.write(`<link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/SourceSerif4-Regular-46f98efaafac5295.ttf.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/FiraSans-Regular-018c141bf0843ffd.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/FiraSans-Medium-8f9a781e4970d388.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/SourceCodePro-Regular-562dcc5011b6de7d.ttf.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/SourceCodePro-Semibold-d899c5a5c4aeb14a.ttf.woff2">`)</script><link·rel="stylesheet"·href="../../static.files/normalize-76eba96aa4d2e634.css"><link·rel="stylesheet"·href="../../static.files/rustdoc-35f9e32502181f1e.css"><meta·name="rustdoc-vars"·data-root-path="../../"·data-static-root-path="../../static.files/"·data-current-crate="alloc"·data-themes=""·data-resource-suffix="1.78.0"·data-rustdoc-version="1.78.0"·data-channel="1.78.0"·data-search-js="search-42d8da7a6b9792c2.js"·data-settings-js="settings-4313503d2e1961c2.js"·><script·src="../../static.files/storage-4c98445ec4002617.js"></script><script·defer·src="../sidebar-items1.78.0.js"></script><script·defer·src="../../static.files/main-12cf3b4f4f9dc36d.js"></script><noscript><link·rel="stylesheet"·href="../../static.files/noscript-04d5337699b92874.css"></noscript><link·rel="alternate·icon"·type="image/png"·href="../../static.files/favicon-16x16-8b506e7a72182f1c.png"><link·rel="alternate·icon"·type="image/png"·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.78.0</span></h2></div><h2·class="location"><a·href="#">Module·slice</a></h2><div·class="sidebar-elems"><section><ul·class="block"><li><a·href="#structs">Structs</a></li><li><a·href="#traits">Traits</a></li><li><a·href="#functions">Functions</a></li></ul></section><h2><a·href="../index.html">In·crate·alloc</a></h2></div></nav><div·class="sidebar-resizer"></div>
2 ····<main><div·class="width-limiter"><nav·class="sub"><form·class="search-form"><span></span><div·id="sidebar-button"·tabindex="-1"><a·href="../../alloc/all.html"·title="show·sidebar"></a></div><input·class="search-input"·name="search"·aria-label="Run·search·in·the·documentation"·autocomplete="off"·spellcheck="false"·placeholder="Click·or·press·‘S’·to·search,·‘?’·for·more·options…"·type="search"><div·id="help-button"·tabindex="-1"><a·href="../../help.html"·title="help">?</a></div><div·id="settings-menu"·tabindex="-1"><a·href="../../settings.html"·title="settings"><img·width="22"·height="22"·alt="Change·settings"·src="../../static.files/wheel-7b819b6101059cd0.svg"></a></div></form></nav><section·id="main-content"·class="content"><div·class="main-heading"><h1>Module·<a·href="../index.html">alloc</a>::<wbr><a·class="mod"·href="#">slice</a><button·id="copy-path"·title="Copy·item·path·to·clipboard"><img·src="../../static.files/clipboard-7571035ce49a181d.svg"·width="19"·height="18"·alt="Copy·item·path"></button></h1><span·class="out-of-band"><span·class="since"·title="Stable·since·Rust·version·1.0.0">1.0.0</span>···<a·class="src"·href="../../src/alloc/slice.rs.html#1-888">source</a>···<button·id="toggle-all-docs"·title="collapse·all·docs">[<span>&#x2212;</span>]</button></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 ····<main><div·class="width-limiter"><nav·class="sub"><form·class="search-form"><span></span><div·id="sidebar-button"·tabindex="-1"><a·href="../../alloc/all.html"·title="show·sidebar"></a></div><input·class="search-input"·name="search"·aria-label="Run·search·in·the·documentation"·autocomplete="off"·spellcheck="false"·placeholder="Click·or·press·‘S’·to·search,·‘?’·for·more·options…"·type="search"><div·id="help-button"·tabindex="-1"><a·href="../../help.html"·title="help">?</a></div><div·id="settings-menu"·tabindex="-1"><a·href="../../settings.html"·title="settings"><img·width="22"·height="22"·alt="Change·settings"·src="../../static.files/wheel-7b819b6101059cd0.svg"></a></div></form></nav><section·id="main-content"·class="content"><div·class="main-heading"><h1>Module·<a·href="../index.html">alloc</a>::<wbr><a·class="mod"·href="#">slice</a><button·id="copy-path"·title="Copy·item·path·to·clipboard"><img·src="../../static.files/clipboard-7571035ce49a181d.svg"·width="19"·height="18"·alt="Copy·item·path"></button></h1><span·class="out-of-band"><span·class="since"·title="Stable·since·Rust·version·1.0.0">1.0.0</span>···<a·class="src"·href="../../src/alloc/slice.rs.html#1-888">source</a>···<button·id="toggle-all-docs"·title="collapse·all·docs">[<span>&#x2212;</span>]</button></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>
3 <p><em><a·href="../../core/primitive.slice.html"·title="primitive·slice">See·also·the·slice·primitive·type</a>.</em></p>3 <p><em><a·href="https://doc.rust-lang.org/1.78.0/core/primitive.slice.html"·title="primitive·slice">See·also·the·slice·primitive·type</a>.</em></p>
4 <p>Most·of·the·structs·in·this·module·are·iterator·types·which·can·only·be·created4 <p>Most·of·the·structs·in·this·module·are·iterator·types·which·can·only·be·created
5 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 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>
6 <p>A·few·functions·are·provided·to·create·a·slice·from·a·value·reference6 <p>A·few·functions·are·provided·to·create·a·slice·from·a·value·reference
7 or·from·a·raw·pointer.</p>7 or·from·a·raw·pointer.</p>
8 </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">ChunkByMut</a></div><div·class="desc·docblock-short">An·iterator·over·slice·in·(non-overlapping)·mutable·chunks·separated8 </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">ChunkByMut</a></div><div·class="desc·docblock-short">An·iterator·over·slice·in·(non-overlapping)·mutable·chunks·separated
9 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·a9 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
10 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">ChunksExact</a></div><div·class="desc·docblock-short">An·iterator·over·a·slice·in·(non-overlapping)·chunks·(<code>chunk_size</code>·elements·at·a10 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">ChunksExact</a></div><div·class="desc·docblock-short">An·iterator·over·a·slice·in·(non-overlapping)·chunks·(<code>chunk_size</code>·elements·at·a
Offset 27, 9 lines modifiedOffset 27, 9 lines modified
27 by·elements·that·match·<code>pred</code>.·Unlike·<code>SplitMut</code>,·it·contains·the·matched27 by·elements·that·match·<code>pred</code>.·Unlike·<code>SplitMut</code>,·it·contains·the·matched
28 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">SplitMut</a></div><div·class="desc·docblock-short">An·iterator·over·the·mutable·subslices·of·the·vector·which·are·separated28 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">SplitMut</a></div><div·class="desc·docblock-short">An·iterator·over·the·mutable·subslices·of·the·vector·which·are·separated
29 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·predicate29 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
30 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">SplitNMut</a></div><div·class="desc·docblock-short">An·iterator·over·subslices·separated·by·elements·that·match·a·predicate30 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">SplitNMut</a></div><div·class="desc·docblock-short">An·iterator·over·subslices·separated·by·elements·that·match·a·predicate
31 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">ArrayChunks</a><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·a31 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">ArrayChunks</a><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
32 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">ArrayChunksMut</a><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>·elements32 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">ArrayChunksMut</a><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
33 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">ArrayWindows</a><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·a33 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">ArrayWindows</a><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
34 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">SliceIndex</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><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><span·class="stab·unstable"·titl[·...·truncated·by·diffoscope;·len:·94,·SHA:·4d469e7b4902a73ce583c7b10690d8dd81de8e84cfc7c7cea11dbaad0cdc72b8·...·]/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_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_raw_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_raw_parts_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·a34 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">SliceIndex</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><span·class="stab·unstable"·title="">Experimental</span></div><div·class="desc·docblock-short">Helper·trait·for·<a·href="https://doc.rust-lang.org/1.78.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><span[·...·truncated·by·diffoscope;·len:·148,·SHA:·26c7993b621f78b64d5b2c88b43507897f4c8a576248e35e2ba879549afa678a·...·]/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_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_raw_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_raw_parts_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
35 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_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_mut_ptr_range</a><sup·title="unsafe·function">⚠</sup><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_ptr_range</a><sup·title="unsafe·function">⚠</sup><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><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_range</a><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>35 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_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_mut_ptr_range</a><sup·title="unsafe·function">⚠</sup><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_ptr_range</a><sup·title="unsafe·function">⚠</sup><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><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_range</a><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>
318 KB
./usr/share/doc/rust-web-doc/html/alloc/slice/struct.ArrayChunks.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·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.write(`<link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/SourceSerif4-Regular-46f98efaafac5295.ttf.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/FiraSans-Regular-018c141bf0843ffd.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/FiraSans-Medium-8f9a781e4970d388.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/SourceCodePro-Regular-562dcc5011b6de7d.ttf.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/SourceCodePro-Semibold-d899c5a5c4aeb14a.ttf.woff2">`)</script><link·rel="stylesheet"·href="../../static.files/normalize-76eba96aa4d2e634.css"><link·rel="stylesheet"·href="../../static.files/rustdoc-35f9e32502181f1e.css"><meta·name="rustdoc-vars"·data-root-path="../../"·data-static-root-path="../../static.files/"·data-current-crate="alloc"·data-themes=""·data-resource-suffix="1.78.0"·data-rustdoc-version="1.78.0"·data-channel="1.78.0"·data-search-js="search-42d8da7a6b9792c2.js"·data-settings-js="settings-4313503d2e1961c2.js"·><script·src="../../static.files/storage-4c98445ec4002617.js"></script><script·defer·src="sidebar-items1.78.0.js"></script><script·defer·src="../../static.files/main-12cf3b4f4f9dc36d.js"></script><noscript><link·rel="stylesheet"·href="../../static.files/noscript-04d5337699b92874.css"></noscript><link·rel="alternate·icon"·type="image/png"·href="../../static.files/favicon-16x16-8b506e7a72182f1c.png"><link·rel="alternate·icon"·type="image/png"·href="../../static.files/favicon-32x32-422f7d1d52889060.png"><link·rel="icon"·type="image/svg+xml"·href="../../static.files/favicon-2c020d218678b618.svg"></head><body·class="rustdoc·struct"><!--[if·lte·IE·11]><div·class="warning">This·old·browser·is·unsupported·and·will·most·likely·display·funky·things.</div><![endif]--><nav·class="mobile-topbar"><button·class="sidebar-menu-toggle"·title="show·sidebar"></button><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-151179464ae7ed46.svg"·alt=""></a></nav><nav·class="sidebar"><div·class="sidebar-crate"><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-151179464ae7ed46.svg"·alt="logo"></a><h2><a·href="../../alloc/index.html">alloc</a><span·class="version">1.78.0</span></h2></div><h2·class="location"><a·href="#">ArrayChunks</a></h2><div·class="sidebar-elems"><section><h3><a·href="#implementations">Methods</a></h3><ul·class="block·method"><li><a·href="#method.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">Clone</a></li><li><a·href="#impl-Debug-for-ArrayChunks%3C'a,+T,+N%3E">Debug</a></li><li><a·href="#impl-DoubleEndedIterator-for-ArrayChunks%3C'a,+T,+N%3E">DoubleEndedIterator</a></li><li><a·href="#impl-ExactSizeIterator-for-ArrayChunks%3C'_,+T,+N%3E">ExactSizeIterator</a></li><li><a·href="#impl-FusedIterator-for-ArrayChunks%3C'_,+T,+N%3E">FusedIterator</a></li><li><a·href="#impl-Iterator-for-ArrayChunks%3C'a,+T,+N%3E">Iterator</a></li><li><a·href="#impl-TrustedLen-for-ArrayChunks%3C'_,+T,+N%3E">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">Freeze</a></li><li><a·href="#impl-RefUnwindSafe-for-ArrayChunks%3C'a,+T,+N%3E">RefUnwindSafe</a></li><li><a·href="#impl-Send-for-ArrayChunks%3C'a,+T,+N%3E">Send</a></li><li><a·href="#impl-Sync-for-ArrayChunks%3C'a,+T,+N%3E">Sync</a></li><li><a·href="#impl-Unpin-for-ArrayChunks%3C'a,+T,+N%3E">Unpin</a></li><li><a·href="#impl-UnwindSafe-for-ArrayChunks%3C'a,+T,+N%3E">UnwindSafe</a></li></ul><h3><a·href="#blanket-implementations">Blanket·Implementations</a></h3><ul·class="block·blanket-implementation"><li><a·href="#impl-Any-for-T">Any</a></li><li><a·href="#impl-Borrow%3CT%3E-for-T">Borrow&lt;T&gt;</a></li><li><a·href="#impl-BorrowMut%3CT%3E-for-T">BorrowMut&lt;T&gt;</a></li><li><a·href="#impl-From%3CT%3E-for-T">From&lt;T&gt;</a></li><li><a·href="#impl-Into%3CU%3E-for-T">Into&lt;U&gt;</a></li><li><a·href="#impl-IntoIterator-for-I">IntoIterator</a></li><li><a·href="#impl-ToOwned-for-T">ToOwned</a></li><li><a·href="#impl-TryFrom%3CU%3E-for-T">TryFrom&lt;U&gt;</a></li><li><a·href="#impl-TryInto%3CU%3E-for-T">TryInto&lt;U&gt;</a></li></ul></section><h2><a·href="index.html">In·alloc::slice</a></h2></div></nav><div·class="sidebar-resizer"></div>1 <!DOCTYPE·html><html·lang="en"><head><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.write(`<link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/SourceSerif4-Regular-46f98efaafac5295.ttf.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/FiraSans-Regular-018c141bf0843ffd.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/FiraSans-Medium-8f9a781e4970d388.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/SourceCodePro-Regular-562dcc5011b6de7d.ttf.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/SourceCodePro-Semibold-d899c5a5c4aeb14a.ttf.woff2">`)</script><link·rel="stylesheet"·href="../../static.files/normalize-76eba96aa4d2e634.css"><link·rel="stylesheet"·href="../../static.files/rustdoc-35f9e32502181f1e.css"><meta·name="rustdoc-vars"·data-root-path="../../"·data-static-root-path="../../static.files/"·data-current-crate="alloc"·data-themes=""·data-resource-suffix="1.78.0"·data-rustdoc-version="1.78.0"·data-channel="1.78.0"·data-search-js="search-42d8da7a6b9792c2.js"·data-settings-js="settings-4313503d2e1961c2.js"·><script·src="../../static.files/storage-4c98445ec4002617.js"></script><script·defer·src="sidebar-items1.78.0.js"></script><script·defer·src="../../static.files/main-12cf3b4f4f9dc36d.js"></script><noscript><link·rel="stylesheet"·href="../../static.files/noscript-04d5337699b92874.css"></noscript><link·rel="alternate·icon"·type="image/png"·href="../../static.files/favicon-16x16-8b506e7a72182f1c.png"><link·rel="alternate·icon"·type="image/png"·href="../../static.files/favicon-32x32-422f7d1d52889060.png"><link·rel="icon"·type="image/svg+xml"·href="../../static.files/favicon-2c020d218678b618.svg"></head><body·class="rustdoc·struct"><!--[if·lte·IE·11]><div·class="warning">This·old·browser·is·unsupported·and·will·most·likely·display·funky·things.</div><![endif]--><nav·class="mobile-topbar"><button·class="sidebar-menu-toggle"·title="show·sidebar"></button><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-151179464ae7ed46.svg"·alt=""></a></nav><nav·class="sidebar"><div·class="sidebar-crate"><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-151179464ae7ed46.svg"·alt="logo"></a><h2><a·href="../../alloc/index.html">alloc</a><span·class="version">1.78.0</span></h2></div><h2·class="location"><a·href="#">ArrayChunks</a></h2><div·class="sidebar-elems"><section><h3><a·href="#implementations">Methods</a></h3><ul·class="block·method"><li><a·href="#method.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">Clone</a></li><li><a·href="#impl-Debug-for-ArrayChunks%3C'a,+T,+N%3E">Debug</a></li><li><a·href="#impl-DoubleEndedIterator-for-ArrayChunks%3C'a,+T,+N%3E">DoubleEndedIterator</a></li><li><a·href="#impl-ExactSizeIterator-for-ArrayChunks%3C'_,+T,+N%3E">ExactSizeIterator</a></li><li><a·href="#impl-FusedIterator-for-ArrayChunks%3C'_,+T,+N%3E">FusedIterator</a></li><li><a·href="#impl-Iterator-for-ArrayChunks%3C'a,+T,+N%3E">Iterator</a></li><li><a·href="#impl-TrustedLen-for-ArrayChunks%3C'_,+T,+N%3E">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">Freeze</a></li><li><a·href="#impl-RefUnwindSafe-for-ArrayChunks%3C'a,+T,+N%3E">RefUnwindSafe</a></li><li><a·href="#impl-Send-for-ArrayChunks%3C'a,+T,+N%3E">Send</a></li><li><a·href="#impl-Sync-for-ArrayChunks%3C'a,+T,+N%3E">Sync</a></li><li><a·href="#impl-Unpin-for-ArrayChunks%3C'a,+T,+N%3E">Unpin</a></li><li><a·href="#impl-UnwindSafe-for-ArrayChunks%3C'a,+T,+N%3E">UnwindSafe</a></li></ul><h3><a·href="#blanket-implementations">Blanket·Implementations</a></h3><ul·class="block·blanket-implementation"><li><a·href="#impl-Any-for-T">Any</a></li><li><a·href="#impl-Borrow%3CT%3E-for-T">Borrow&lt;T&gt;</a></li><li><a·href="#impl-BorrowMut%3CT%3E-for-T">BorrowMut&lt;T&gt;</a></li><li><a·href="#impl-From%3CT%3E-for-T">From&lt;T&gt;</a></li><li><a·href="#impl-Into%3CU%3E-for-T">Into&lt;U&gt;</a></li><li><a·href="#impl-IntoIterator-for-I">IntoIterator</a></li><li><a·href="#impl-ToOwned-for-T">ToOwned</a></li><li><a·href="#impl-TryFrom%3CU%3E-for-T">TryFrom&lt;U&gt;</a></li><li><a·href="#impl-TryInto%3CU%3E-for-T">TryInto&lt;U&gt;</a></li></ul></section><h2><a·href="index.html">In·alloc::slice</a></h2></div></nav><div·class="sidebar-resizer"></div>
2 ····<main><div·class="width-limiter"><nav·class="sub"><form·class="search-form"><span></span><div·id="sidebar-button"·tabindex="-1"><a·href="../../alloc/all.html"·title="show·sidebar"></a></div><input·class="search-input"·name="search"·aria-label="Run·search·in·the·documentation"·autocomplete="off"·spellcheck="false"·placeholder="Click·or·press·‘S’·to·search,·‘?’·for·more·options…"·type="search"><div·id="help-button"·tabindex="-1"><a·href="../../help.html"·title="help">?</a></div><div·id="settings-menu"·tabindex="-1"><a·href="../../settings.html"·title="settings"><img·width="22"·height="22"·alt="Change·settings"·src="../../static.files/wheel-7b819b6101059cd0.svg"></a></div></form></nav><section·id="main-content"·class="content"><div·class="main-heading"><h1>Struct·<a·href="../index.html">alloc</a>::<wbr><a·href="index.html">slice</a>::<wbr><a·class="struct"·href="#">ArrayChunks</a><button·id="copy-path"·title="Copy·item·path·to·clipboard"><img·src="../../static.files/clipboard-7571035ce49a181d.svg"·width="19"·height="18"·alt="Copy·item·path"></button></h1><span·class="out-of-band"><a·class="src"·href="../../src/core/slice/iter.rs.html#2294">source</a>···<button·id="toggle-all-docs"·title="collapse·all·docs">[<span>&#x2212;</span>]</button></span></div><pre·class="rust·item-decl"><code>pub·struct·ArrayChunks&lt;'a,·T,·const·N:·<a·class="primitive"·href="[·...·truncated·by·diffoscope;·len:·5,·SHA:·0cfd1c96cbc0c0e025888750a8b75d7d507ab83eaef58650f1023579f03ca306·...·]/core/primitive.usize.html">usize</a>&gt;<div·class="where">where2 ····<main><div·class="width-limiter"><nav·class="sub"><form·class="search-form"><span></span><div·id="sidebar-button"·tabindex="-1"><a·href="../../alloc/all.html"·title="show·sidebar"></a></div><input·class="search-input"·name="search"·aria-label="Run·search·in·the·documentation"·autocomplete="off"·spellcheck="false"·placeholder="Click·or·press·‘S’·to·search,·‘?’·for·more·options…"·type="search"><div·id="help-button"·tabindex="-1"><a·href="../../help.html"·title="help">?</a></div><div·id="settings-menu"·tabindex="-1"><a·href="../../settings.html"·title="settings"><img·width="22"·height="22"·alt="Change·settings"·src="../../static.files/wheel-7b819b6101059cd0.svg"></a></div></form></nav><section·id="main-content"·class="content"><div·class="main-heading"><h1>Struct·<a·href="../index.html">alloc</a>::<wbr><a·href="index.html">slice</a>::<wbr><a·class="struct"·href="#">ArrayChunks</a><button·id="copy-path"·title="Copy·item·path·to·clipboard"><img·src="../../static.files/clipboard-7571035ce49a181d.svg"·width="19"·height="18"·alt="Copy·item·path"></button></h1><span·class="out-of-band"><a·class="src"·href="https://doc.rust-lang.org/1.78.0/src/core/slice/iter.rs.html#2294">source</a>···<button·id="toggle-all-docs"·title="collapse·all·docs">[<span>&#x2212;</span>]</button></span></div><pre·class="rust·item-decl"><code>pub·struct·ArrayChunks&lt;'a,·T,·const·N:·[·...·truncated·by·diffoscope;·len:·59,·SHA:·52124dac37ff398d278fb9b9d476e941b052f370e9ec5b8f9940a24abb23b53e·...·]/core/primitive.usize.html">usize</a>&gt;<div·class="where">where
3 ····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·a3 ····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
4 time),·starting·at·the·beginning·of·the·slice.</p>4 time),·starting·at·the·beginning·of·the·slice.</p>
5 <p>When·the·slice·len·is·not·evenly·divided·by·the·chunk·size,·the·last5 <p>When·the·slice·len·is·not·evenly·divided·by·the·chunk·size,·the·last
6 up·to·<code>N-1</code>·elements·will·be·omitted·but·can·be·retrieved·from6 up·to·<code>N-1</code>·elements·will·be·omitted·but·can·be·retrieved·from
7 the·<a·href="struct.ArrayChunks.html#method.remainder"·title="method·alloc::slice::ArrayChunks::remainder"><code>remainder</code></a>·function·from·the·iterator.</p>7 the·<a·href="struct.ArrayChunks.html#method.remainder"·title="method·alloc::slice::ArrayChunks::remainder"><code>remainder</code></a>·function·from·the·iterator.</p>
8 <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>8 <p>This·struct·is·created·by·the·<a·href="https://doc.rust-lang.org/1.78.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.78.0/core/primitive.slice.html"·title="primitive·slice">slices</a>.</p>
9 <h2·id="example"><a·class="doc-anchor"·href="#example">§</a>Example</h2>9 <h2·id="example"><a·class="doc-anchor"·href="#example">§</a>Example</h2>
10 <div·class="example-wrap"><pre·class="rust·rust-example-rendered"><code><span·class="attr">#![feature(array_chunks)]10 <div·class="example-wrap"><pre·class="rust·rust-example-rendered"><code><span·class="attr">#![feature(array_chunks)]
  
11 </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><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>];
12 <span·class="kw">let·</span>iter·=·slice.array_chunks::&lt;<span·class="number">2</span>&gt;();</code></pre><a·class="test-arrow"·target="_blank"·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+iter+=+slice.array_chunks::%3C2%3E();%0A%7D&amp;version=nightly&amp;edition=2021">Run</a></div>12 <span·class="kw">let·</span>iter·=·slice.array_chunks::&lt;<span·class="number">2</span>&gt;();</code></pre><a·class="test-arrow"·target="_blank"·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+iter+=+slice.array_chunks::%3C2%3E();%0A%7D&amp;version=nightly&amp;edition=2021">Run</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-ArrayChunks%3C'a,+T,+N%3E"·class="impl"><a·class="src·rightside"·href="../../src/core/slice/iter.rs.html#2299">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:·b7f3525217475876e39e20ce9b6932703476cd3453abeef229a50a5800231c8e·...·]/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·be13 </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.78.0/src/core/slice/iter.rs.html#2299">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.78.0/core/prim[·...·truncated·by·diffoscope;·len:·576,·SHA:·5366413a33ebdcbc6a930d740ba970e10f642267ea99030d428af977da4006c4·...·]/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
14 returned·by·the·iterator.·The·returned·slice·has·at·most·<code>N-1</code>14 returned·by·the·iterator.·The·returned·slice·has·at·most·<code>N-1</code>
15 elements.</p>15 elements.</p>
16 </div></details></div></details></div><h2·id="trait-implementations"·class="section-header">Trait·Implementations<a·href="#trait-implementations"·class="anchor">§</a></h2><div·id="trait-implementations-list"><details·class="toggle·implementors-toggle"·open><summary><section·id="impl-Clone-for-ArrayChunks%3C'_,+T,+N%3E"·class="impl"><a·class="src·rightside"·href="../../src/core/slice/iter.rs.html#2318">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:·2092,·SHA:·4c07ea9fcfd4563366441cfb57ac0c6aa0d825503212db48d2c686efee5f5513·...·]/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">where16 </div></details></div></details></div><h2·id="trait-implementations"·class="section-header">Trait·Implementations<a·href="#trait-implementations"·class="anchor">§</a></h2><div·id="trait-implementations-list"><details·class="toggle·implementors-toggle"·open><summary><section·id="impl-Clone-for-ArrayChunks%3C'_,+T,+N%3E"·class="impl"><a·class="src·rightside"·href="https://doc.rust-lang.org/1.78.0/src/core/slice/iter.rs.html#2318">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.78.0/cor[·...·truncated·by·diffoscope;·len:·2416,·SHA:·d8804bc596ff73f8f1e111b06f8ac60bfa7bb01655266c1759d59d44a2dcba20·...·]/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
17 ····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#2291">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:·8644590564de43db5248a16085a1f6a283354f7f939e6d14348c5e33b31667c7·...·]/core/iter/traits/double_ended/trait.DoubleEndedIterator.html#method.nth_back"·class="fn">nth_back</a>(17 ····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.78.0/src/core/slice/iter.rs.html#2291">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:·7d36e36ae82cea8775ecd1b1b7497d094ea5820e0973cb1480e14157bbb7fb47·...·]/core/iter/traits/double_ended/trait.DoubleEndedIterator.html#method.nth_back"·class="fn">nth_back</a>(
18 ····&amp;mut·self,18 ····&amp;mut·self,
19 ····n:·<a·class="primitive"·href="../../core/primitive.usize.html">usize</a>19 ····n:·<a·class="primitive"·href="https://doc.rust-lang.org/1.78.0/core/primitive.usize.html">usize</a>
20 )·-&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:·ea8ac97472e15723a77579b751d1150fae5b1e8c47cc409bd18399626bba40b4·...·]/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">where20 )·-&gt;·<a·class="enum"·href="https://doc.rust-lang.org/1.78.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:·c4344ebf53a7d80a17f09c5062a4a58c82e114e3f027e5b86fdf85e1c5f4b8ce·...·]/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
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.78.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;·R,22 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(B,·Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·R,
23 ····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·takes23 ····R:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.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.7[·...·truncated·by·diffoscope;·len:·3,·SHA:·7b1bd53949b752d143d871408483b5382371b5bc48d195d0c040ec93cfa2748b·...·]/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
24 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:·74b709f2c818a4eda5d85ea863eb2d8af72c87564dbab2746e67feafb0cbb9a3·...·]/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">where24 elements·starting·from·the·back·of·the·iterator.·<a·href="https://doc.rust-lang.org/1.78.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:·d66ed7e195a53e9945339ef1976aed455dcf80228d8e5b7b0c69a64c3983fea1·...·]/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
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.78.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>(B,·Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/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 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(B,·Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/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 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:·f8bdf1e28866c7668477ab391452c7cfa7fd52cc69b633e782a157931421b39b·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;<div·class="where">where27 final·value,·starting·from·the·back.·<a·href="https://doc.rust-lang.org/1.78.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:·c264047794019a6dcf05728ba6a6ee1f8f07c7209958b3366ba94546b527ecdc·...·]/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>,28 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.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:·9074,·SHA:·80dbc538be48e8186d4828f1a15fa5460c568275afe99e9e65cee9483cbf9515·...·]/core/primitive.usize.html">usize</a>&gt;(29 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·10451,·SHA:·74f796f443d98a1245b0d668e1dbcd7cd76d210461ce95f58a6ad1c5eac77c7a·...·]/core/primitive.usize.html">usize</a>&gt;(
30 ····&amp;mut·self30 ····&amp;mut·self
31 )·-&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">where31 )·-&gt;·<a·class="enum"·href="https://doc.rust-lang.org/1.78.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.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title=[·...·truncated·by·diffoscope;·len:·381,·SHA:·88c48923c9b7ea5cc47c1087c60e09656e81d4671c58071ba2bef826335388bc·...·]/core/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
32 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></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:·35097ac20cb94a94d329a7511e21173c3e63fd8ce0a6d69b63b12136ae10fe6d·...·]/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.78.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></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:·3b082a2bc331439bfa16e12f26774fc7db23f44625156e2161c751eb349fb5c0·...·]/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.78.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:·5667b9b6c9778ff3b9d23ed0a110e7ab9d3fccc786fdcaca8c17edf996236439·...·]/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.78.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:·e83c903581753673e083ce8dd809879a2fc81ab3050eb6db267d7fa26b15e035·...·]/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.78.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:·1c6bb9803ee8832ebd4c28a08a952178165595b6870cf35d3c89454b9da828b2·...·]/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.78.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.78.0/core/iter/traits/it[·...·truncated·by·diffoscope;·len:·1329,·SHA:·d9299c8edc606ed82f24d61ce441bec451141d684c2a9a75074f5b19c57f196c·...·]/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.78.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:·c1b5e692e89c9c809075ee8ee72fb15a9ec46c075b08450e1f707d672a224750·...·]/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.78.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:·98627729f77dcf1c9d258f343354ba600b7134c6b3929080f231e8de7155b70b·...·]/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.78.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.78.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.78.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:·d6282409add0999f2130eb6bbe6d0473ce96bf2544799e8bc22156f3c2d2e0dd·...·]/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.78.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:·7301b6beba7b6885849be90a625df68ef739a5374af456c51fe2e81d91a25363·...·]/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.78.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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::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:·fb4c9589a16c7b6d697c109d1193d2f1e763e5dd967101c2fd92b32416972229·...·]/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.78.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:·98f6effefa44d759c249143d83623f0055d937382bfc398b7e1f5e92cd413657·...·]/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.78.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:·7abbad666ec88a1053b8aca2a481d629a3ef3596eddb570c381205fa2d859a52·...·]/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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·916,·SHA:·30d0b2a76513c5a880e9aee43e92b18805845cfcfe5783f62dc090167a439e63·...·]/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.78.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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·140,·SHA:·752f473b57e7444ebfddf5ea7fd40a332e83ec55524a6c31b5ee0f82a5dea819·...·]/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:·7da07154834a15b8ae55b4fd41479da070ccbd27e071909f81698570c306a081·...·]/core/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.78.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:·76aa2ad154f88085ee3f8a22721a7e6812680bac785d19059532407f50da1801·...·]/core/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.78.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:·c89169e5bf1c4724c7b411e568b6dad6475896f2606f557b3d708359ef71f5cc·...·]/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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·1052,·SHA:·110b47c7083083d565fcfc89337fddc8e5c87e81b2f720f3f7b0ded55e8500fb·...·]/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.78.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:·53634008856676c70c32b501f7ec498c1f86d123cc9b5b898256a69895ff31fc·...·]/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.78.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:·8464264e074dde5d84f0414ab3b5b2d8da83f3c9e3ca04c45458241580a8c80d·...·]/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.78.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.78.0/core/iter/adapte[·...·truncated·by·diffoscope;·len:·175,·SHA:·16fe7225bf05b478e2828b347c3d23ded9a22f89d8887a2c65d9f7b3faf1b0e7·...·]/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:·77dd41e041d66c618d306e900a9159cf1b00478b8f37e5692be62119a1d4fcda·...·]/core/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.78.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:·00ccbb673c11ed48d8c6aa2a3f8984fb298202e7bccfa42f1ac21290fcc0fb06·...·]/core/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.78.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:·c18326af66652e52fa627bfd0312af7fa2ad0ddc162b12a46e61047a031b0264·...·]/core/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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·1234,·SHA:·3b805567411cdcebed740f9e8d400dbe7fb487504f40e284544a140155090fdf·...·]/core/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.78.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:·39eeddf219b211245393e51a591d5064c740fa9be49d88883d8a6474679741ad·...·]/core/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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·1058,·SHA:·b390dbdda8d7e93604b5ecd906a93efd03fe19bdaf41cf12893fd361bf974307·...·]/core/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.78.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:·9369fa85b74ff841f7401949cadba6dfbbbeead2a99568f20dcfd5aab20d61ab·...·]/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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·1163,·SHA:·5772149166d344bf8fa5ebbd9db8693a8f2e5f031c50338e8f1523ef72f814d6·...·]/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:·a25e81a74cc82c1837477e2b0cea682fff9f43550640901b8010ac501ca69e3d·...·]/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.78.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:·6216516fe581c401abda3c95818192e8f030e2008c9bbdbaafebba16f33ea9bd·...·]/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.78.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:·de8f1023275132502c1569b0ef9a557dc98eaf60aae97cdb916e52f9f55100aa·...·]/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.78.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:·485843399c56e24bdf020ff0610d0ce1f62fbac5530d9880a1a7417105e3d70f·...·]/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.78.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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(<a·class="primitive"·href="https://doc.rust-lang.org/1.78.0/core/primitive.reference.html">&amp;mut·St</a>,·Self::<a·class="associatedty[·...·truncated·by·diffoscope;·len:·449,·SHA:·f12c268a8a8111b9e7126ad78bf5523a63733caa63d187c4fe792309ea41acdf·...·]/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:·8b31595e3cee3022819032aac82e3df712188a2a6dcc20da6939262e5e528591·...·]/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.78.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.78.0/core/iter/trai[·...·truncated·by·diffoscope;·len:·690,·SHA:·371190e5c1bf9b7dde6e84447965a69946212b977b9eb6d89048fbe34c5dda1c·...·]/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.78.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.78.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:·9b6a337a3ad68c2a987b52450c153f87a04a8ed9e83603d26077fe6e70d61edf·...·]/core/iter/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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·976,·SHA:·2a9182f6fe88e0b8a9b1ae1f46cace940cc0b8736033c354c0f0ccbf1c196e7a·...·]/core/iter/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.78.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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;[Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtyp[·...·truncated·by·diffoscope;·len:·135,·SHA:·0b06a6094d42ccbc8bce5b01c4383961fe7f1967f05e4c9f1ff33e71e425fb26·...·]/core/primitive.array.html">N</a>])·-&gt;·R,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iter_map_windows</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/87155">#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.78.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:·238f6b49b3e28d725c57040edaa60bfbb34f140155e6af1d30eab52da1c7274f·...·]/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.78.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:·0d33056cee8a4f9b70b573c0adecc2f3599a2f8d9fa9f2c2044e9118ab134f73·...·]/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:·cfd3edf89fe5aca24b994f83b0d7da765620394e35140e694d98233d4d92481b·...·]/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.78.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.78.0/core/op[·...·truncated·by·diffoscope;·len:·841,·SHA:·9cba1b175fb3726d7f1f01da9be7c1a56568a68e4ce7915a468b730902daf8d3·...·]/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.78.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:·772,·SHA:·31d2052382378512fa905c6d5297d384eac7b7f126141ce561719c0e27cc9d39·...·]/core/primitive.reference.html">&amp;mut·Self</a><div·class="where">where78 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·934,·SHA:·ea20d2e0fe9388580ea08100baa9120b5e9b6cb48f43fc846f15db8b9649e7f6·...·]/core/primitive.reference.html">&amp;mut·Self</a><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:·98760b16b1ed91f9558e6e2637724a4608316181d5f6f4d236e896a83eca9af9·...·]/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.78.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.78.0/core/it[·...·truncated·by·diffoscope;·len:·523,·SHA:·97064c705f6f4bdf74469c54fabcf580d21893127d1b4cd9a9c1018a717ef153·...·]/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.78.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.78.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:·e5d524e874326d0b9b733f5ee809c6595cde869afab0cc3d4ba8454093f420da·...·]/core/primitive.reference.html">&amp;mut·E</a><div·class="where">where81 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.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.78.0/core/iter/tr[·...·truncated·by·diffoscope;·len:·728,·SHA:·01937c2dc314c259495665570ae249c94b4a5b0719718f5f1188e6fc64ecf487·...·]/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.78.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.78.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:·b0297783e056393a542c4058b42c18523a86c961c1b6ce3bc94342c1a2c10c58·...·]/core/primitive.tuple.html">(B,·B)</a><div·class="where">where83 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></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:·00bd47017b1bdd1bbe2c3fc932d955a8aa2f7f5eff8c00e3001ae28a982a5883·...·]/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.78.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.78.0/core/default/trait.Default.html"·title="trait·core::default::Default">Default</a>·+·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/collect/trait.Extend.html"·title="trait·core::iter::traits::collec[·...·truncated·by·diffoscope;·len:·95,·SHA:·8b3be1d0042cae0550f865faf5849221240bdf04eb1b2107605b72d48c3ad29c·...·]/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:·5a1bcc1ddfc5fccf50d61bf2b8879dae247aa12c0b23ba2f437fd2a345cabac7·...·]/core/primitive.usize.html">usize</a><div·class="where">where86 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·995,·SHA:·bec3765fdab56713186e2454cd84738b5b28e3280a2f3d5a25cefdbc3089b520·...·]/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.78.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>·+·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/double_ended/trait.DoubleEndedIterator.html"·title="trait·core::iter::trai[·...·truncated·by·diffoscope;·len:·132,·SHA:·e5b2cf5f56946ede1e190ed09879c5821e2de04cf8e5d145142eeb40c6340982·...·]/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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(<a·class="primitive"·href="https://doc.rust-lang.org/1.78.0/core/primitive.reference.html">&amp;T</a>)·-&gt;·<a·class="primitive"·href="[·...·truncated·by·diffoscope;·len:·32,·SHA:·63d052a8ced32bf927ffadd7e884c08caf4970e85dfdf6be0e568d49b174da96·...·]/core/primitive.bool.html">bool</a>,</div></h4></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:·97056c44eac6a0f986fb2c8edec37302cc06edf44a6c6f7153a5d8623d8d6c0d·...·]/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.78.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:·0c224636c18baa273f69de21f90083317f2ea0b7367a3f0d0f1c0ace55a36f79·...·]/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.78.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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·135,·SHA:·51ff5f5c7ebd8440623ea71b125c5a5837e809e308fe1a13fbe19cddb941dbd9·...·]/core/primitive.bool.html">bool</a>,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iter_is_partitioned</code>&nbsp;<a·href="https://github.com/rust-lang/rust/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:·6f406a351b93047f56fa70265a6bf28ec6874f75cd6cc5a39d51c7af462f2992·...·]/core/iter/traits/iterator/trait.Iterator.html#method.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.78.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:·2c74873f4e5ba70004a1c7edd1cc3f9e2d91271295dd1591e2d26848df4c02ba·...·]/core/iter/traits/iterator/trait.Iterator.html#method.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.78.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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(B,·Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.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.78.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:·eecdce021399d206eb3ef5af12ee7663b4eb0dca55b0f411c7fa66f605b6b2e2·...·]/core/iter/traits/iterator/trait.Iterator.html#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.78.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:·52912e82c4b0a760d06f77eb4ee3a59ba70dd76cb532954900c73ae94c652674·...·]/core/iter/traits/iterator/trait.Iterator.html#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.78.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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.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.78.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.78.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:·ffdacd6b524bc823efebbf23dc0f77317a07fe9c8b691f2ea18db7aa0c08b146·...·]/core/iter/traits/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.78.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:·1d6c4809cea8748e901d3f94777f450d430f3161f6ac05ed1c178d9327f966a3·...·]/core/iter/traits/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.78.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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(B,·Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::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:·dbe3a08fe63abd47570741e71208c31aaf51152feac5917db07665a1f56bb3e3·...·]/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.78.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:·b60215068a6d9721be05f81098c51167d7138c4042f140cad42f77c4df43f597·...·]/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.78.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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·352,·SHA:·e7c3c296abe2c0a183967153e4ae7fd50bafa2ae7088e3e78b3b48fee253adc6·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::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:·a9dce8bb557b5a11426bf2ffcbd5eea7c6c870833e3ee5bb072dcaaa11687b0c·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_reduce"·class="fn">try_reduce</a>&lt;F,·R&gt;(108 operation.·<a·href="https://doc.rust-lang.org/1.78.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:·7a18fdd041b1a001b4a8feb289ee127fd9240232239269eb35dc3b8f74783ec9·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_reduce"·class="fn">try_reduce</a>&lt;F,·R&gt;(
109 ····&amp;mut·self,109 ····&amp;mut·self,
110 ····f:·F110 ····f:·F
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.78.0/core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&gt;::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/ops/try_trait/trait.Try.html#associatedtype.Residual"·title="type[·...·truncated·by·diffoscope;·len:·754,·SHA:·6fb4dfdb6b4da68921c1e7f8b75d99cf293d58318d684a840254ce9576957bea·...·]/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.78.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:·59,·SHA:·3d53eece7c48858eda31192ab2620ae144896b35400c945bbf3eb5dc06bf8d12·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·R,113 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·140,·SHA:·c27972e6fa3464c9476eaa185e8657edb6bb294f148403f3d079285294a9f909·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·R,
114 ····R:·<a·class="trait"·href="../../core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&lt;Output·=·Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;,114 ····R:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.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.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;,
115 ····&lt;R·as·<a·class="trait"·href="../../core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&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·the115 ····&lt;R·as·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&gt;::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/ops/try_trait/trait.Try.html#associatedtype.Residual"·title="type[·...·truncated·by·diffoscope;·len:·412,·SHA:·22b8cbb007e5cce82b9d13a65bfa56aa8d83c32541fac25f4d9b3857b0540908·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;&gt;,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iterator_try_reduce</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/87053">#87053</a>)</span></div></span><div·class='docblock'>Reduces·the·elements·to·a·single·one·by·repeatedly·applying·a·reducing·operation.·If·the
116 closure·returns·a·failure,·the·failure·is·propagated·back·to·the·caller·immediately.·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.try_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:·65b80c848af6e465c8c5aef4ec8d3faaa399d30c8427c9507fda7b3bd1d3ea93·...·]/core/primitive.bool.html">bool</a><div·class="where">where116 closure·returns·a·failure,·the·failure·is·propagated·back·to·the·caller·immediately.·<a·href="https://doc.rust-lang.org/1.78.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:·bc0d658d56e348823de15386e1cd4ab49109f3a7a055a4573a19391b47071193·...·]/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.78.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:·829,·SHA:·95a840b532d3d621bde4032d63854eb0a481248e2b4bbb3ef058dbffb4dae4fa·...·]/core/primitive.bool.html">bool</a><div·class="where">where118 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·1018,·SHA:·e61cd6bdd36729cc38e57fcaea2ccb91a23a5acbda3c8986071f19bf1ecfc52a·...·]/core/primitive.bool.html">bool</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.78.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>(Self::<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:·f828c62edd4fe85e217286f359b56c116e14ed18bb292ba1cc13d3ed7146909e·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;<div·class="where">where120 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·1172,·SHA:·e64ab74d116d286191ad43d9d9e10411fc011c23724aa806e9a8f9b0be0757e3·...·]/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.78.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>(&amp;Self::<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:·21d7086b3ce0092e3f7a6a41174339bbd8724e7d186158db4db3385a73d94e8e·...·]/core/option/enum.Option.html"·title="enum·core::option::Option">Option</a>&lt;B&gt;<div·class="where">where122 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·1051,·SHA:·ecc0b8fccd861464760f9ae047ff6ab98c91a1db010cb5fa59a8c2ab883db7c4·...·]/core/option/enum.Option.html"·title="enum·core::option::Option">Option</a>&lt;B&gt;<div·class="where">where
123 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,123 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.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>(Self::<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·returns124 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·130,·SHA:·130a13019dc175d02304b4f550157e2f13ac15c2f25a979c74161d10b146ab89·...·]/core/option/enum.Option.html"·title="enum·core::option::Option">Option</a>&lt;B&gt;,</div></h4></section></summary><div·class='docblock'>Applies·function·to·the·elements·of·iterator·and·returns
125 the·first·non-none·result.·<a·href="../../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:·ac4da3337aac1ec10038e246be9cb719eeb5af1acc709f5a6a25b91900c56f53·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_find"·class="fn">try_find</a>&lt;F,·R&gt;(125 the·first·non-none·result.·<a·href="https://doc.rust-lang.org/1.78.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:·8ced1b10e78750774c5c8ed995ed83dcd13983aa75d329acf8069da106ab9f4a·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_find"·class="fn">try_find</a>&lt;F,·R&gt;(
126 ····&amp;mut·self,126 ····&amp;mut·self,
Max diff block lines reached; 147167/325054 bytes (45.27%) of diff not shown.
305 KB
./usr/share/doc/rust-web-doc/html/alloc/slice/struct.ArrayChunksMut.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·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.write(`<link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/SourceSerif4-Regular-46f98efaafac5295.ttf.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/FiraSans-Regular-018c141bf0843ffd.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/FiraSans-Medium-8f9a781e4970d388.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/SourceCodePro-Regular-562dcc5011b6de7d.ttf.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/SourceCodePro-Semibold-d899c5a5c4aeb14a.ttf.woff2">`)</script><link·rel="stylesheet"·href="../../static.files/normalize-76eba96aa4d2e634.css"><link·rel="stylesheet"·href="../../static.files/rustdoc-35f9e32502181f1e.css"><meta·name="rustdoc-vars"·data-root-path="../../"·data-static-root-path="../../static.files/"·data-current-crate="alloc"·data-themes=""·data-resource-suffix="1.78.0"·data-rustdoc-version="1.78.0"·data-channel="1.78.0"·data-search-js="search-42d8da7a6b9792c2.js"·data-settings-js="settings-4313503d2e1961c2.js"·><script·src="../../static.files/storage-4c98445ec4002617.js"></script><script·defer·src="sidebar-items1.78.0.js"></script><script·defer·src="../../static.files/main-12cf3b4f4f9dc36d.js"></script><noscript><link·rel="stylesheet"·href="../../static.files/noscript-04d5337699b92874.css"></noscript><link·rel="alternate·icon"·type="image/png"·href="../../static.files/favicon-16x16-8b506e7a72182f1c.png"><link·rel="alternate·icon"·type="image/png"·href="../../static.files/favicon-32x32-422f7d1d52889060.png"><link·rel="icon"·type="image/svg+xml"·href="../../static.files/favicon-2c020d218678b618.svg"></head><body·class="rustdoc·struct"><!--[if·lte·IE·11]><div·class="warning">This·old·browser·is·unsupported·and·will·most·likely·display·funky·things.</div><![endif]--><nav·class="mobile-topbar"><button·class="sidebar-menu-toggle"·title="show·sidebar"></button><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-151179464ae7ed46.svg"·alt=""></a></nav><nav·class="sidebar"><div·class="sidebar-crate"><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-151179464ae7ed46.svg"·alt="logo"></a><h2><a·href="../../alloc/index.html">alloc</a><span·class="version">1.78.0</span></h2></div><h2·class="location"><a·href="#">ArrayChunksMut</a></h2><div·class="sidebar-elems"><section><h3><a·href="#implementations">Methods</a></h3><ul·class="block·method"><li><a·href="#method.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">Debug</a></li><li><a·href="#impl-DoubleEndedIterator-for-ArrayChunksMut%3C'a,+T,+N%3E">DoubleEndedIterator</a></li><li><a·href="#impl-ExactSizeIterator-for-ArrayChunksMut%3C'_,+T,+N%3E">ExactSizeIterator</a></li><li><a·href="#impl-FusedIterator-for-ArrayChunksMut%3C'_,+T,+N%3E">FusedIterator</a></li><li><a·href="#impl-Iterator-for-ArrayChunksMut%3C'a,+T,+N%3E">Iterator</a></li><li><a·href="#impl-TrustedLen-for-ArrayChunksMut%3C'_,+T,+N%3E">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">!UnwindSafe</a></li><li><a·href="#impl-Freeze-for-ArrayChunksMut%3C'a,+T,+N%3E">Freeze</a></li><li><a·href="#impl-RefUnwindSafe-for-ArrayChunksMut%3C'a,+T,+N%3E">RefUnwindSafe</a></li><li><a·href="#impl-Send-for-ArrayChunksMut%3C'a,+T,+N%3E">Send</a></li><li><a·href="#impl-Sync-for-ArrayChunksMut%3C'a,+T,+N%3E">Sync</a></li><li><a·href="#impl-Unpin-for-ArrayChunksMut%3C'a,+T,+N%3E">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">Any</a></li><li><a·href="#impl-Borrow%3CT%3E-for-T">Borrow&lt;T&gt;</a></li><li><a·href="#impl-BorrowMut%3CT%3E-for-T">BorrowMut&lt;T&gt;</a></li><li><a·href="#impl-From%3CT%3E-for-T">From&lt;T&gt;</a></li><li><a·href="#impl-Into%3CU%3E-for-T">Into&lt;U&gt;</a></li><li><a·href="#impl-IntoIterator-for-I">IntoIterator</a></li><li><a·href="#impl-TryFrom%3CU%3E-for-T">TryFrom&lt;U&gt;</a></li><li><a·href="#impl-TryInto%3CU%3E-for-T">TryInto&lt;U&gt;</a></li></ul></section><h2><a·href="index.html">In·alloc::slice</a></h2></div></nav><div·class="sidebar-resizer"></div>1 <!DOCTYPE·html><html·lang="en"><head><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.write(`<link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/SourceSerif4-Regular-46f98efaafac5295.ttf.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/FiraSans-Regular-018c141bf0843ffd.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/FiraSans-Medium-8f9a781e4970d388.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/SourceCodePro-Regular-562dcc5011b6de7d.ttf.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/SourceCodePro-Semibold-d899c5a5c4aeb14a.ttf.woff2">`)</script><link·rel="stylesheet"·href="../../static.files/normalize-76eba96aa4d2e634.css"><link·rel="stylesheet"·href="../../static.files/rustdoc-35f9e32502181f1e.css"><meta·name="rustdoc-vars"·data-root-path="../../"·data-static-root-path="../../static.files/"·data-current-crate="alloc"·data-themes=""·data-resource-suffix="1.78.0"·data-rustdoc-version="1.78.0"·data-channel="1.78.0"·data-search-js="search-42d8da7a6b9792c2.js"·data-settings-js="settings-4313503d2e1961c2.js"·><script·src="../../static.files/storage-4c98445ec4002617.js"></script><script·defer·src="sidebar-items1.78.0.js"></script><script·defer·src="../../static.files/main-12cf3b4f4f9dc36d.js"></script><noscript><link·rel="stylesheet"·href="../../static.files/noscript-04d5337699b92874.css"></noscript><link·rel="alternate·icon"·type="image/png"·href="../../static.files/favicon-16x16-8b506e7a72182f1c.png"><link·rel="alternate·icon"·type="image/png"·href="../../static.files/favicon-32x32-422f7d1d52889060.png"><link·rel="icon"·type="image/svg+xml"·href="../../static.files/favicon-2c020d218678b618.svg"></head><body·class="rustdoc·struct"><!--[if·lte·IE·11]><div·class="warning">This·old·browser·is·unsupported·and·will·most·likely·display·funky·things.</div><![endif]--><nav·class="mobile-topbar"><button·class="sidebar-menu-toggle"·title="show·sidebar"></button><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-151179464ae7ed46.svg"·alt=""></a></nav><nav·class="sidebar"><div·class="sidebar-crate"><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-151179464ae7ed46.svg"·alt="logo"></a><h2><a·href="../../alloc/index.html">alloc</a><span·class="version">1.78.0</span></h2></div><h2·class="location"><a·href="#">ArrayChunksMut</a></h2><div·class="sidebar-elems"><section><h3><a·href="#implementations">Methods</a></h3><ul·class="block·method"><li><a·href="#method.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">Debug</a></li><li><a·href="#impl-DoubleEndedIterator-for-ArrayChunksMut%3C'a,+T,+N%3E">DoubleEndedIterator</a></li><li><a·href="#impl-ExactSizeIterator-for-ArrayChunksMut%3C'_,+T,+N%3E">ExactSizeIterator</a></li><li><a·href="#impl-FusedIterator-for-ArrayChunksMut%3C'_,+T,+N%3E">FusedIterator</a></li><li><a·href="#impl-Iterator-for-ArrayChunksMut%3C'a,+T,+N%3E">Iterator</a></li><li><a·href="#impl-TrustedLen-for-ArrayChunksMut%3C'_,+T,+N%3E">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">!UnwindSafe</a></li><li><a·href="#impl-Freeze-for-ArrayChunksMut%3C'a,+T,+N%3E">Freeze</a></li><li><a·href="#impl-RefUnwindSafe-for-ArrayChunksMut%3C'a,+T,+N%3E">RefUnwindSafe</a></li><li><a·href="#impl-Send-for-ArrayChunksMut%3C'a,+T,+N%3E">Send</a></li><li><a·href="#impl-Sync-for-ArrayChunksMut%3C'a,+T,+N%3E">Sync</a></li><li><a·href="#impl-Unpin-for-ArrayChunksMut%3C'a,+T,+N%3E">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">Any</a></li><li><a·href="#impl-Borrow%3CT%3E-for-T">Borrow&lt;T&gt;</a></li><li><a·href="#impl-BorrowMut%3CT%3E-for-T">BorrowMut&lt;T&gt;</a></li><li><a·href="#impl-From%3CT%3E-for-T">From&lt;T&gt;</a></li><li><a·href="#impl-Into%3CU%3E-for-T">Into&lt;U&gt;</a></li><li><a·href="#impl-IntoIterator-for-I">IntoIterator</a></li><li><a·href="#impl-TryFrom%3CU%3E-for-T">TryFrom&lt;U&gt;</a></li><li><a·href="#impl-TryInto%3CU%3E-for-T">TryInto&lt;U&gt;</a></li></ul></section><h2><a·href="index.html">In·alloc::slice</a></h2></div></nav><div·class="sidebar-resizer"></div>
2 ····<main><div·class="width-limiter"><nav·class="sub"><form·class="search-form"><span></span><div·id="sidebar-button"·tabindex="-1"><a·href="../../alloc/all.html"·title="show·sidebar"></a></div><input·class="search-input"·name="search"·aria-label="Run·search·in·the·documentation"·autocomplete="off"·spellcheck="false"·placeholder="Click·or·press·‘S’·to·search,·‘?’·for·more·options…"·type="search"><div·id="help-button"·tabindex="-1"><a·href="../../help.html"·title="help">?</a></div><div·id="settings-menu"·tabindex="-1"><a·href="../../settings.html"·title="settings"><img·width="22"·height="22"·alt="Change·settings"·src="../../static.files/wheel-7b819b6101059cd0.svg"></a></div></form></nav><section·id="main-content"·class="content"><div·class="main-heading"><h1>Struct·<a·href="../index.html">alloc</a>::<wbr><a·href="index.html">slice</a>::<wbr><a·class="struct"·href="#">ArrayChunksMut</a><button·id="copy-path"·title="Copy·item·path·to·clipboard"><img·src="../../static.files/clipboard-7571035ce49a181d.svg"·width="19"·height="18"·alt="Copy·item·path"></button></h1><span·class="out-of-band"><a·class="src"·href="../../src/core/slice/iter.rs.html#2420">source</a>···<button·id="toggle-all-docs"·title="collapse·all·docs">[<span>&#x2212;</span>]</button></span></div><pre·class="rust·item-decl"><code>pub·struct·ArrayChunksMut&lt;'a,·T,·const·N:·<a·class="primitive"·hre[·...·truncated·by·diffoscope;·len:·8,·SHA:·33dbd245b648d41c56eb1011c43e998f0e623642374a0bcaddf5be1415191c4e·...·]/core/primitive.usize.html">usize</a>&gt;<div·class="where">where2 ····<main><div·class="width-limiter"><nav·class="sub"><form·class="search-form"><span></span><div·id="sidebar-button"·tabindex="-1"><a·href="../../alloc/all.html"·title="show·sidebar"></a></div><input·class="search-input"·name="search"·aria-label="Run·search·in·the·documentation"·autocomplete="off"·spellcheck="false"·placeholder="Click·or·press·‘S’·to·search,·‘?’·for·more·options…"·type="search"><div·id="help-button"·tabindex="-1"><a·href="../../help.html"·title="help">?</a></div><div·id="settings-menu"·tabindex="-1"><a·href="../../settings.html"·title="settings"><img·width="22"·height="22"·alt="Change·settings"·src="../../static.files/wheel-7b819b6101059cd0.svg"></a></div></form></nav><section·id="main-content"·class="content"><div·class="main-heading"><h1>Struct·<a·href="../index.html">alloc</a>::<wbr><a·href="index.html">slice</a>::<wbr><a·class="struct"·href="#">ArrayChunksMut</a><button·id="copy-path"·title="Copy·item·path·to·clipboard"><img·src="../../static.files/clipboard-7571035ce49a181d.svg"·width="19"·height="18"·alt="Copy·item·path"></button></h1><span·class="out-of-band"><a·class="src"·href="https://doc.rust-lang.org/1.78.0/src/core/slice/iter.rs.html#2420">source</a>···<button·id="toggle-all-docs"·title="collapse·all·docs">[<span>&#x2212;</span>]</button></span></div><pre·class="rust·item-decl"><code>pub·struct·ArrayChunksMut&lt;'a,·T,·const·[·...·truncated·by·diffoscope;·len:·62,·SHA:·45c44b816c950c434bbb607d8612417fb9ce2826cc60d89e6f83c3244ff88a8c·...·]/core/primitive.usize.html">usize</a>&gt;<div·class="where">where
3 ····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>·elements3 ····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
4 at·a·time),·starting·at·the·beginning·of·the·slice.</p>4 at·a·time),·starting·at·the·beginning·of·the·slice.</p>
5 <p>When·the·slice·len·is·not·evenly·divided·by·the·chunk·size,·the·last5 <p>When·the·slice·len·is·not·evenly·divided·by·the·chunk·size,·the·last
6 up·to·<code>N-1</code>·elements·will·be·omitted·but·can·be·retrieved·from6 up·to·<code>N-1</code>·elements·will·be·omitted·but·can·be·retrieved·from
7 the·<a·href="../../std/slice/struct.ArrayChunksMut.html#method.into_remainder"><code>into_remainder</code></a>·function·from·the·iterator.</p>7 the·<a·href="../../std/slice/struct.ArrayChunksMut.html#method.into_remainder"><code>into_remainder</code></a>·function·from·the·iterator.</p>
8 <p>This·struct·is·created·by·the·<a·href="../../core/primitive.slice.html#method.array_chunks_mut"·title="method·slice::array_chunks_mut"><code>array_chunks_mut</code></a>·method·on·<a·href="../../core/primitive.slice.html"·title="primitive·slice">slices</a>.</p>8 <p>This·struct·is·created·by·the·<a·href="https://doc.rust-lang.org/1.78.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.78.0/core/primitive.slice.html"·title="primitive·slice">slices</a>.</p>
9 <h2·id="example"><a·class="doc-anchor"·href="#example">§</a>Example</h2>9 <h2·id="example"><a·class="doc-anchor"·href="#example">§</a>Example</h2>
10 <div·class="example-wrap"><pre·class="rust·rust-example-rendered"><code><span·class="attr">#![feature(array_chunks)]10 <div·class="example-wrap"><pre·class="rust·rust-example-rendered"><code><span·class="attr">#![feature(array_chunks)]
  
11 </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><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>];
12 <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"·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">Run</a></div>12 <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"·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">Run</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-ArrayChunksMut%3C'a,+T,+N%3E"·class="impl"><a·class="src·rightside"·href="../../src/core/slice/iter.rs.html#2425">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:·1cf24377993f6b36be8c8e9324a0443ae9657e3d8ade24ecf65bd441c41fa046·...·]/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·be13 </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.78.0/src/core/slice/iter.rs.html#2425">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.78.0/core/p[·...·truncated·by·diffoscope;·len:·602,·SHA:·1d62934225f3c679e185054b2db9c045ec1dc283c315c34be5e2eb5bc981186f·...·]/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
14 returned·by·the·iterator.·The·returned·slice·has·at·most·<code>N-1</code>14 returned·by·the·iterator.·The·returned·slice·has·at·most·<code>N-1</code>
15 elements.</p>15 elements.</p>
16 </div></details></div></details></div><h2·id="trait-implementations"·class="section-header">Trait·Implementations<a·href="#trait-implementations"·class="anchor">§</a></h2><div·id="trait-implementations-list"><details·class="toggle·implementors-toggle"·open><summary><section·id="impl-Debug-for-ArrayChunksMut%3C'a,+T,+N%3E"·class="impl"><a·class="src·rightside"·href="../../src/core/slice/iter.rs.html#2417">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">where16 </div></details></div></details></div><h2·id="trait-implementations"·class="section-header">Trait·Implementations<a·href="#trait-implementations"·class="anchor">§</a></h2><div·id="trait-implementations-list"><details·class="toggle·implementors-toggle"·open><summary><section·id="impl-Debug-for-ArrayChunksMut%3C'a,+T,+N%3E"·class="impl"><a·class="src·rightside"·href="https://doc.rust-lang.org/1.78.0/src/core/slice/iter.rs.html#2417">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.7[·...·truncated·by·diffoscope;·len:·3,·SHA:·7b1bd53949b752d143d871408483b5382371b5bc48d195d0c040ec93cfa2748b·...·]/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
17 ····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#2417">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:·05a36c1d474a6b5facf5cc6944e1c093c7ad63b18fb86534839fa0c0db16f7bd·...·]/core/iter/traits/double_ended/trait.DoubleEndedIterator.html#method.nth_back"·class="fn">nth_back</a>(17 ····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.78.0/src/core/slice/iter.rs.html#2417">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:·08ca63370dc5d82aee3966fecf6f2dbcd5f4906d9cee5c1975f9ca15bff34208·...·]/core/iter/traits/double_ended/trait.DoubleEndedIterator.html#method.nth_back"·class="fn">nth_back</a>(
18 ····&amp;mut·self,18 ····&amp;mut·self,
19 ····n:·<a·class="primitive"·href="../../core/primitive.usize.html">usize</a>19 ····n:·<a·class="primitive"·href="https://doc.rust-lang.org/1.78.0/core/primitive.usize.html">usize</a>
20 )·-&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:·b2a84c8d28fa1a40110beb0fd6941dfc9eac6d8008ad91220e386838b54479ee·...·]/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">where20 )·-&gt;·<a·class="enum"·href="https://doc.rust-lang.org/1.78.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:·7d3297bf50b5a857f7e037a9978374abc82c4d5206733cc5e820bddd5508503f·...·]/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
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.78.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;·R,22 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(B,·Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·R,
23 ····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·takes23 ····R:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.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.7[·...·truncated·by·diffoscope;·len:·3,·SHA:·7b1bd53949b752d143d871408483b5382371b5bc48d195d0c040ec93cfa2748b·...·]/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
24 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:·74b709f2c818a4eda5d85ea863eb2d8af72c87564dbab2746e67feafb0cbb9a3·...·]/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">where24 elements·starting·from·the·back·of·the·iterator.·<a·href="https://doc.rust-lang.org/1.78.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:·d66ed7e195a53e9945339ef1976aed455dcf80228d8e5b7b0c69a64c3983fea1·...·]/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
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.78.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>(B,·Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/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 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(B,·Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/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 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:·f8bdf1e28866c7668477ab391452c7cfa7fd52cc69b633e782a157931421b39b·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;<div·class="where">where27 final·value,·starting·from·the·back.·<a·href="https://doc.rust-lang.org/1.78.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:·c264047794019a6dcf05728ba6a6ee1f8f07c7209958b3366ba94546b527ecdc·...·]/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>,28 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.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:·6630,·SHA:·a143d3a5d09afa955ae767048b9dd18563c4f8b6657e92f89de558fab3268c82·...·]/core/iter/traits/iterator/trait.Iterator.html#method.nth"·class="fn">nth</a>(29 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·7629,·SHA:·aa0801b6e8b87e8a45554e1e30a20681a0887a8757076ae9ef9a2b6bf80de18e·...·]/core/iter/traits/iterator/trait.Iterator.html#method.nth"·class="fn">nth</a>(
30 ····&amp;mut·self,30 ····&amp;mut·self,
31 ····n:·<a·class="primitive"·href="../../core/primitive.usize.html">usize</a>31 ····n:·<a·class="primitive"·href="https://doc.rust-lang.org/1.78.0/core/primitive.usize.html">usize</a>
32 )·-&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:·3b715afd8bce808a1fcc50cd42b9795a54524fd8a87b5b7a680c86b79dfad8e2·...·]/core/primitive.usize.html">usize</a>&gt;(32 )·-&gt;·<a·class="enum"·href="https://doc.rust-lang.org/1.78.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:·3c3fbaf768a95f003f1ec694de39a39847821162e2f5d3fead41af15dd1198bd·...·]/core/primitive.usize.html">usize</a>&gt;(
33 ····&amp;mut·self33 ····&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.78.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.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title=[·...·truncated·by·diffoscope;·len:·381,·SHA:·88c48923c9b7ea5cc47c1087c60e09656e81d4671c58071ba2bef826335388bc·...·]/core/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:·2219,·SHA:·35097ac20cb94a94d329a7511e21173c3e63fd8ce0a6d69b63b12136ae10fe6d·...·]/core/iter/adapters/step_by/struct.StepBy.html"·title="struct·core::iter::adapters::step_by::StepBy">StepBy</a>&lt;Self&gt;<div·class="where">where35 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></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:·3b082a2bc331439bfa16e12f26774fc7db23f44625156e2161c751eb349fb5c0·...·]/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
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·starting·at·the·same·point,·but·stepping·by36 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.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
37 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:·5667b9b6c9778ff3b9d23ed0a110e7ab9d3fccc786fdcaca8c17edf996236439·...·]/core/iter/traits/collect/trait.IntoIterator.html#associatedtype.IntoIter"·title="type·core::iter::traits::collect::IntoIterator::IntoIter">IntoIter</a>&gt;<div·class="where">where37 the·given·amount·at·each·iteration.·<a·href="https://doc.rust-lang.org/1.78.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:·e83c903581753673e083ce8dd809879a2fc81ab3050eb6db267d7fa26b15e035·...·]/core/iter/traits/collect/trait.IntoIterator.html#associatedtype.IntoIter"·title="type·core::iter::traits::collect::IntoIterator::IntoIter">IntoIter</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.78.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
39 ····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:·1c6bb9803ee8832ebd4c28a08a952178165595b6870cf35d3c89454b9da828b2·...·]/core/iter/traits/collect/trait.IntoIterator.html#associatedtype.IntoIter"·title="type·core::iter::traits::collect::IntoIterator::IntoIter">IntoIter</a>&gt;<div·class="where">where39 ····U:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.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.78.0/core/iter/traits/it[·...·truncated·by·diffoscope;·len:·1329,·SHA:·d9299c8edc606ed82f24d61ce441bec451141d684c2a9a75074f5b19c57f196c·...·]/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.78.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>,</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:·c1b5e692e89c9c809075ee8ee72fb15a9ec46c075b08450e1f707d672a224750·...·]/core/iter/adapters/intersperse/struct.IntersperseWith.html"·title="struct·core::iter::adapters::intersperse::IntersperseWith">IntersperseWith</a>&lt;Self,·G&gt;<div·class="where">where41 ····U:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.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:·98627729f77dcf1c9d258f343354ba600b7134c6b3929080f231e8de7155b70b·...·]/core/iter/adapters/intersperse/struct.IntersperseWith.html"·title="struct·core::iter::adapters::intersperse::IntersperseWith">IntersperseWith</a>&lt;Self,·G&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.78.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
43 ····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>43 ····G:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.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.78.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>
44 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:·d6282409add0999f2130eb6bbe6d0473ce96bf2544799e8bc22156f3c2d2e0dd·...·]/core/iter/adapters/map/struct.Map.html"·title="struct·core::iter::adapters::map::Map">Map</a>&lt;Self,·F&gt;<div·class="where">where44 between·adjacent·items·of·the·original·iterator.·<a·href="https://doc.rust-lang.org/1.78.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:·7301b6beba7b6885849be90a625df68ef739a5374af456c51fe2e81d91a25363·...·]/core/iter/adapters/map/struct.Map.html"·title="struct·core::iter::adapters::map::Map">Map</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.78.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::Item">Item</a>)·-&gt;·B,</div></h4></section></summary><div·class='docblock'>Takes·a·closure·and·creates·an·iterator·which·calls·that·closure·on·each46 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::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
47 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:·fb4c9589a16c7b6d697c109d1193d2f1e763e5dd967101c2fd92b32416972229·...·]/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 element.·<a·href="https://doc.rust-lang.org/1.78.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:·98f6effefa44d759c249143d83623f0055d937382bfc398b7e1f5e92cd413657·...·]/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 ····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.78.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:·754,·SHA:·7abbad666ec88a1053b8aca2a481d629a3ef3596eddb570c381205fa2d859a52·...·]/core/iter/adapters/filter/struct.Filter.html"·title="struct·core::iter::adapters::filter::Filter">Filter</a>&lt;Self,·P&gt;<div·class="where">where49 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·916,·SHA:·30d0b2a76513c5a880e9aee43e92b18805845cfcfe5783f62dc090167a439e63·...·]/core/iter/adapters/filter/struct.Filter.html"·title="struct·core::iter::adapters::filter::Filter">Filter</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.78.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:·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·element51 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·140,·SHA:·752f473b57e7444ebfddf5ea7fd40a332e83ec55524a6c31b5ee0f82a5dea819·...·]/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
52 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:·7da07154834a15b8ae55b4fd41479da070ccbd27e071909f81698570c306a081·...·]/core/iter/adapters/filter_map/struct.FilterMap.html"·title="struct·core::iter::adapters::filter_map::FilterMap">FilterMap</a>&lt;Self,·F&gt;<div·class="where">where52 should·be·yielded.·<a·href="https://doc.rust-lang.org/1.78.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:·76aa2ad154f88085ee3f8a22721a7e6812680bac785d19059532407f50da1801·...·]/core/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
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.78.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:·863,·SHA:·c89169e5bf1c4724c7b411e568b6dad6475896f2606f557b3d708359ef71f5cc·...·]/core/iter/adapters/enumerate/struct.Enumerate.html"·title="struct·core::iter::adapters::enumerate::Enumerate">Enumerate</a>&lt;Self&gt;<div·class="where">where54 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·1052,·SHA:·110b47c7083083d565fcfc89337fddc8e5c87e81b2f720f3f7b0ded55e8500fb·...·]/core/iter/adapters/enumerate/struct.Enumerate.html"·title="struct·core::iter::adapters::enumerate::Enumerate">Enumerate</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·gives·the·current·iteration·count·as·well·as55 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.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
56 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:·53634008856676c70c32b501f7ec498c1f86d123cc9b5b898256a69895ff31fc·...·]/core/iter/adapters/peekable/struct.Peekable.html"·title="struct·core::iter::adapters::peekable::Peekable">Peekable</a>&lt;Self&gt;<div·class="where">where56 the·next·value.·<a·href="https://doc.rust-lang.org/1.78.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:·8464264e074dde5d84f0414ab3b5b2d8da83f3c9e3ca04c45458241580a8c80d·...·]/core/iter/adapters/peekable/struct.Peekable.html"·title="struct·core::iter::adapters::peekable::Peekable">Peekable</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·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>·methods57 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.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.78.0/core/iter/adapte[·...·truncated·by·diffoscope;·len:·175,·SHA:·16fe7225bf05b478e2828b347c3d23ded9a22f89d8887a2c65d9f7b3faf1b0e7·...·]/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
58 to·look·at·the·next·element·of·the·iterator·without·consuming·it.·See58 to·look·at·the·next·element·of·the·iterator·without·consuming·it.·See
59 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:·77dd41e041d66c618d306e900a9159cf1b00478b8f37e5692be62119a1d4fcda·...·]/core/iter/adapters/skip_while/struct.SkipWhile.html"·title="struct·core::iter::adapters::skip_while::SkipWhile">SkipWhile</a>&lt;Self,·P&gt;<div·class="where">where59 their·documentation·for·more·information.·<a·href="https://doc.rust-lang.org/1.78.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:·00ccbb673c11ed48d8c6aa2a3f8984fb298202e7bccfa42f1ac21290fcc0fb06·...·]/core/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
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.78.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:·1018,·SHA:·c18326af66652e52fa627bfd0312af7fa2ad0ddc162b12a46e61047a031b0264·...·]/core/iter/adapters/take_while/struct.TakeWhile.html"·title="struct·core::iter::adapters::take_while::TakeWhile">TakeWhile</a>&lt;Self,·P&gt;<div·class="where">where61 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·1234,·SHA:·3b805567411cdcebed740f9e8d400dbe7fb487504f40e284544a140155090fdf·...·]/core/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
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.78.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:·869,·SHA:·39eeddf219b211245393e51a591d5064c740fa9be49d88883d8a6474679741ad·...·]/core/iter/adapters/map_while/struct.MapWhile.html"·title="struct·core::iter::adapters::map_while::MapWhile">MapWhile</a>&lt;Self,·P&gt;<div·class="where">where63 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·1058,·SHA:·b390dbdda8d7e93604b5ecd906a93efd03fe19bdaf41cf12893fd361bf974307·...·]/core/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
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.78.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:·947,·SHA:·9369fa85b74ff841f7401949cadba6dfbbbeead2a99568f20dcfd5aab20d61ab·...·]/core/iter/adapters/skip/struct.Skip.html"·title="struct·core::iter::adapters::skip::Skip">Skip</a>&lt;Self&gt;<div·class="where">where65 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·1163,·SHA:·5772149166d344bf8fa5ebbd9db8693a8f2e5f031c50338e8f1523ef72f814d6·...·]/core/iter/adapters/skip/struct.Skip.html"·title="struct·core::iter::adapters::skip::Skip">Skip</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·skips·the·first·<code>n</code>·elements.·<a·href="../../core/iter/traits/iterator/trait.Iterator.h[·...·truncated·by·diffoscope;·len:·621,·SHA:·a25e81a74cc82c1837477e2b0cea682fff9f43550640901b8010ac501ca69e3d·...·]/core/iter/adapters/take/struct.Take.html"·title="struct·core::iter::adapters::take::Take">Take</a>&lt;Self&gt;<div·class="where">where66 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.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:·6216516fe581c401abda3c95818192e8f030e2008c9bbdbaafebba16f33ea9bd·...·]/core/iter/adapters/take/struct.Take.html"·title="struct·core::iter::adapters::take::Take">Take</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·yields·the·first·<code>n</code>·elements,·or·fewer67 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.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
68 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:·de8f1023275132502c1569b0ef9a557dc98eaf60aae97cdb916e52f9f55100aa·...·]/core/iter/adapters/scan/struct.Scan.html"·title="struct·core::iter::adapters::scan::Scan">Scan</a>&lt;Self,·St,·F&gt;<div·class="where">where68 if·the·underlying·iterator·ends·sooner.·<a·href="https://doc.rust-lang.org/1.78.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:·485843399c56e24bdf020ff0610d0ce1f62fbac5530d9880a1a7417105e3d70f·...·]/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
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.78.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>(<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,·but70 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(<a·class="primitive"·href="https://doc.rust-lang.org/1.78.0/core/primitive.reference.html">&amp;mut·St</a>,·Self::<a·class="associatedty[·...·truncated·by·diffoscope;·len:·449,·SHA:·f12c268a8a8111b9e7126ad78bf5523a63733caa63d187c4fe792309ea41acdf·...·]/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
71 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:·8b31595e3cee3022819032aac82e3df712188a2a6dcc20da6939262e5e528591·...·]/core/iter/adapters/flatten/struct.FlatMap.html"·title="struct·core::iter::adapters::flatten::FlatMap">FlatMap</a>&lt;Self,·U,·F&gt;<div·class="where">where71 unlike·<a·href="https://doc.rust-lang.org/1.78.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.78.0/core/iter/trai[·...·truncated·by·diffoscope;·len:·690,·SHA:·371190e5c1bf9b7dde6e84447965a69946212b977b9eb6d89048fbe34c5dda1c·...·]/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
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.78.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
73 ····U:·<a·class="trait"·href="../../core/iter/traits/collect/trait.IntoIterator.html"·title="trait·core::iter::traits::collect::IntoIterator">IntoIterator</a>,73 ····U:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/collect/trait.IntoIterator.html"·title="trait·core::iter::traits::collect::IntoIterator">IntoIterator</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::[·...·truncated·by·diffoscope;·len:·787,·SHA:·9b6a337a3ad68c2a987b52450c153f87a04a8ed9e83603d26077fe6e70d61edf·...·]/core/iter/adapters/map_windows/struct.MapWindows.html"·title="struct·core::iter::adapters::map_windows::MapWindows">MapWindows</a>&lt;Self,·F,·N&gt;<div·class="where">where74 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·976,·SHA:·2a9182f6fe88e0b8a9b1ae1f46cace940cc0b8736033c354c0f0ccbf1c196e7a·...·]/core/iter/adapters/map_windows/struct.MapWindows.html"·title="struct·core::iter::adapters::map_windows::MapWindows">MapWindows</a>&lt;Self,·F,·N&gt;<div·class="where">where
75 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,75 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.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::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>·over76 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;[Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtyp[·...·truncated·by·diffoscope;·len:·135,·SHA:·0b06a6094d42ccbc8bce5b01c4383961fe7f1967f05e4c9f1ff33e71e425fb26·...·]/core/primitive.array.html">N</a>])·-&gt;·R,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iter_map_windows</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/87155">#87155</a>)</span></div></span><div·class='docblock'>Calls·the·given·function·<code>f</code>·for·each·contiguous·window·of·size·<code>N</code>·over
77 <code>self</code>·and·returns·an·iterator·over·the·outputs·of·<code>f</code>.·Like·<a·href="../../core/primitive.slice.html#method.windows"·title="method·slice::windows"><code>slice::windows()</code></a>,77 <code>self</code>·and·returns·an·iterator·over·the·outputs·of·<code>f</code>.·Like·<a·href="https://doc.rust-lang.org/1.78.0/core/primitive.slice.html#method.windows"·title="method·slice::windows"><code>slice::windows()</code></a>,
78 the·windows·during·mapping·overlap·as·well.·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.map_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:·238f6b49b3e28d725c57040edaa60bfbb34f140155e6af1d30eab52da1c7274f·...·]/core/iter/adapters/fuse/struct.Fuse.html"·title="struct·core::iter::adapters::fuse::Fuse">Fuse</a>&lt;Self&gt;<div·class="where">where78 the·windows·during·mapping·overlap·as·well.·<a·href="https://doc.rust-lang.org/1.78.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:·0d33056cee8a4f9b70b573c0adecc2f3599a2f8d9fa9f2c2044e9118ab134f73·...·]/core/iter/adapters/fuse/struct.Fuse.html"·title="struct·core::iter::adapters::fuse::Fuse">Fuse</a>&lt;Self&gt;<div·class="where">where
79 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·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:·cfd3edf89fe5aca24b994f83b0d7da765620394e35140e694d98233d4d92481b·...·]/core/iter/adapters/inspect/struct.Inspect.html"·title="struct·core::iter::adapters::inspect::Inspect">Inspect</a>&lt;Self,·F&gt;<div·class="where">where79 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.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.78.0/core/op[·...·truncated·by·diffoscope;·len:·841,·SHA:·9cba1b175fb3726d7f1f01da9be7c1a56568a68e4ce7915a468b730902daf8d3·...·]/core/iter/adapters/inspect/struct.Inspect.html"·title="struct·core::iter::adapters::inspect::Inspect">Inspect</a>&lt;Self,·F&gt;<div·class="where">where
80 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,80 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.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::Itera[·...·truncated·by·diffoscope;·len:·772,·SHA:·31d2052382378512fa905c6d5297d384eac7b7f126141ce561719c0e27cc9d39·...·]/core/primitive.reference.html">&amp;mut·Self</a><div·class="where">where81 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·934,·SHA:·ea20d2e0fe9388580ea08100baa9120b5e9b6cb48f43fc846f15db8b9649e7f6·...·]/core/primitive.reference.html">&amp;mut·Self</a><div·class="where">where
82 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>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:·98760b16b1ed91f9558e6e2637724a4608316181d5f6f4d236e896a83eca9af9·...·]/core/iter/traits/iterator/trait.Iterator.html#method.collect"·class="fn">collect</a>&lt;B&gt;(self)·-&gt;·B<div·class="where">where82 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.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.78.0/core/it[·...·truncated·by·diffoscope;·len:·523,·SHA:·97064c705f6f4bdf74469c54fabcf580d21893127d1b4cd9a9c1018a717ef153·...·]/core/iter/traits/iterator/trait.Iterator.html#method.collect"·class="fn">collect</a>&lt;B&gt;(self)·-&gt;·B<div·class="where">where
83 ····B:·<a·class="trait"·href="../../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;,83 ····B:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.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.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;,
84 ····Self:·<a·class="trait"·href="../../core/marker/trait.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:·e5d524e874326d0b9b733f5ee809c6595cde869afab0cc3d4ba8454093f420da·...·]/core/primitive.reference.html">&amp;mut·E</a><div·class="where">where84 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.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.78.0/core/iter/tr[·...·truncated·by·diffoscope;·len:·728,·SHA:·01937c2dc314c259495665570ae249c94b4a5b0719718f5f1188e6fc64ecf487·...·]/core/primitive.reference.html">&amp;mut·E</a><div·class="where">where
85 ····E:·<a·class="trait"·href="../../core/iter/traits/collect/trait.Extend.html"·title="trait·core::iter::traits::collect::Extend">Extend</a>&lt;Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;,85 ····E:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.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.78.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><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:·b0297783e056393a542c4058b42c18523a86c961c1b6ce3bc94342c1a2c10c58·...·]/core/primitive.tuple.html">(B,·B)</a><div·class="where">where86 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></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:·00bd47017b1bdd1bbe2c3fc932d955a8aa2f7f5eff8c00e3001ae28a982a5883·...·]/core/primitive.tuple.html">(B,·B)</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.78.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
88 ····B:·<a·class="trait"·href="../../core/default/trait.Default.html"·title="trait·core::default::Default">Default</a>·+·<a·class="trait"·href="../../core/iter/traits/collect/trait.Extend.html"·title="trait·core::iter::traits::collect::Extend">Extend</a>&lt;Self::<a·class="associatedtyp[·...·truncated·by·diffoscope;·len:·14,·SHA:·4105980ca4887a52797067761af25a11e3de6069cd8d7c8ce82cd885bb798fe8·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;,88 ····B:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/default/trait.Default.html"·title="trait·core::default::Default">Default</a>·+·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/collect/trait.Extend.html"·title="trait·core::iter::traits::collec[·...·truncated·by·diffoscope;·len:·95,·SHA:·8b3be1d0042cae0550f865faf5849221240bdf04eb1b2107605b72d48c3ad29c·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;,
89 ····F:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<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:·5a1bcc1ddfc5fccf50d61bf2b8879dae247aa12c0b23ba2f437fd2a345cabac7·...·]/core/primitive.usize.html">usize</a><div·class="where">where89 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·995,·SHA:·bec3765fdab56713186e2454cd84738b5b28e3280a2f3d5a25cefdbc3089b520·...·]/core/primitive.usize.html">usize</a><div·class="where">where
90 ····T:·'a,90 ····T:·'a,
91 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>·+·<a·class="trait"·href="../../core/iter/traits/double_ended/trait.DoubleEndedIterator.html"·title="trait·core::iter::traits::double_ended::DoubleEndedIterator">DoubleEndedIter[·...·truncated·by·diffoscope;·len:·51,·SHA:·c9be73bbed9d11ecac2a179f480a640f51d6255f26712667ffdabc72c1fc7fb0·...·]/core/primitive.reference.html">&amp;'a·mut·T</a>&gt;,91 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>·+·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/double_ended/trait.DoubleEndedIterator.html"·title="trait·core::iter::trai[·...·truncated·by·diffoscope;·len:·132,·SHA:·e5b2cf5f56946ede1e190ed09879c5821e2de04cf8e5d145142eeb40c6340982·...·]/core/primitive.reference.html">&amp;'a·mut·T</a>&gt;,
92 ····P:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(<a·class="primitive"·href="../../core/primitive.reference.html">&amp;T</a>)·-&gt;·<a·class="primitive"·href="../../core/primitive.bool.html">bool</a>,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iter_partition_in_place</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/62543">#62543</a>)</span></div></span><div·class='docblock'>Reorders·the·elements·of·this·iterator·<em>in-place</em>·according·to·the·given·predicate,92 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(<a·class="primitive"·href="https://doc.rust-lang.org/1.78.0/core/primitive.reference.html">&amp;T</a>)·-&gt;·<a·class="primitive"·href="[·...·truncated·by·diffoscope;·len:·32,·SHA:·63d052a8ced32bf927ffadd7e884c08caf4970e85dfdf6be0e568d49b174da96·...·]/core/primitive.bool.html">bool</a>,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iter_partition_in_place</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/62543">#62543</a>)</span></div></span><div·class='docblock'>Reorders·the·elements·of·this·iterator·<em>in-place</em>·according·to·the·given·predicate,
93 such·that·all·those·that·return·<code>true</code>·precede·all·those·that·return·<code>false</code>.93 such·that·all·those·that·return·<code>true</code>·precede·all·those·that·return·<code>false</code>.
94 Returns·the·number·of·<code>true</code>·elements·found.·<a·href="../../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:·97056c44eac6a0f986fb2c8edec37302cc06edf44a6c6f7153a5d8623d8d6c0d·...·]/core/primitive.bool.html">bool</a><div·class="where">where94 Returns·the·number·of·<code>true</code>·elements·found.·<a·href="https://doc.rust-lang.org/1.78.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:·0c224636c18baa273f69de21f90083317f2ea0b7367a3f0d0f1c0ace55a36f79·...·]/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.78.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:·54,·SHA:·d5ac304cc26edf57442227b641dd21c427d0f9cb322b79986f5b15fc49f867b0·...·]/core/primitive.bool.html">bool</a>,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iter_is_partitioned</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/62544">#62544</a>)</span></div></span><div·class='docblock'>Checks·if·the·elements·of·this·iterator·are·partitioned·according·to·the·given·predicate,96 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·135,·SHA:·51ff5f5c7ebd8440623ea71b125c5a5837e809e308fe1a13fbe19cddb941dbd9·...·]/core/primitive.bool.html">bool</a>,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iter_is_partitioned</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/62544">#62544</a>)</span></div></span><div·class='docblock'>Checks·if·the·elements·of·this·iterator·are·partitioned·according·to·the·given·predicate,
97 such·that·all·those·that·return·<code>true</code>·precede·all·those·that·return·<code>false</code>.·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.is_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:·6f406a351b93047f56fa70265a6bf28ec6874f75cd6cc5a39d51c7af462f2992·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_fold"·class="fn">try_fold</a>&lt;B,·F,·R&gt;(&amp;mut·self,·init:·B,·f:·F)·-&gt;·R<div·class="where">where97 such·that·all·those·that·return·<code>true</code>·precede·all·those·that·return·<code>false</code>.·<a·href="https://doc.rust-lang.org/1.78.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:·2c74873f4e5ba70004a1c7edd1cc3f9e2d91271295dd1591e2d26848df4c02ba·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_fold"·class="fn">try_fold</a>&lt;B,·F,·R&gt;(&amp;mut·self,·init:·B,·f:·F)·-&gt;·R<div·class="where">where
98 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,98 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.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;·R,99 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(B,·Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.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·=·B&gt;,</div></h4></section></summary><div·class='docblock'>An·iterator·method·that·applies·a·function·as·long·as·it·returns100 ····R:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.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
101 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:·eecdce021399d206eb3ef5af12ee7663b4eb0dca55b0f411c7fa66f605b6b2e2·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_for_each"·class="fn">try_for_each</a>&lt;F,·R&gt;(&amp;mut·self,·f:·F)·-&gt;·R<div·class="where">where101 successfully,·producing·a·single,·final·value.·<a·href="https://doc.rust-lang.org/1.78.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:·52912e82c4b0a760d06f77eb4ee3a59ba70dd76cb532954900c73ae94c652674·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_for_each"·class="fn">try_for_each</a>&lt;F,·R&gt;(&amp;mut·self,·f:·F)·-&gt;·R<div·class="where">where
102 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,102 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.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::Item">Item</a>)·-&gt;·R,103 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·R,
104 ····R:·<a·class="trait"·href="../../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·the104 ····R:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.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.78.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
105 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:·ffdacd6b524bc823efebbf23dc0f77317a07fe9c8b691f2ea18db7aa0c08b146·...·]/core/iter/traits/iterator/trait.Iterator.html#method.fold"·class="fn">fold</a>&lt;B,·F&gt;(self,·init:·B,·f:·F)·-&gt;·B<div·class="where">where105 iterator,·stopping·at·the·first·error·and·returning·that·error.·<a·href="https://doc.rust-lang.org/1.78.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:·1d6c4809cea8748e901d3f94777f450d430f3161f6ac05ed1c178d9327f966a3·...·]/core/iter/traits/iterator/trait.Iterator.html#method.fold"·class="fn">fold</a>&lt;B,·F&gt;(self,·init:·B,·f:·F)·-&gt;·B<div·class="where">where
106 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,106 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.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;·B,</div></h4></section></summary><div·class='docblock'>Folds·every·element·into·an·accumulator·by·applying·an·operation,107 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(B,·Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·B,</div></h4></section></summary><div·class='docblock'>Folds·every·element·into·an·accumulator·by·applying·an·operation,
108 returning·the·final·result.·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.fold">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:·dbe3a08fe63abd47570741e71208c31aaf51152feac5917db07665a1f56bb3e3·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;<div·class="where">where108 returning·the·final·result.·<a·href="https://doc.rust-lang.org/1.78.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:·b60215068a6d9721be05f81098c51167d7138c4042f140cad42f77c4df43f597·...·]/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.78.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:·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·reducing110 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·352,·SHA:·e7c3c296abe2c0a183967153e4ae7fd50bafa2ae7088e3e78b3b48fee253adc6·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>,</div></h4></section></summary><div·class='docblock'>Reduces·the·elements·to·a·single·one,·by·repeatedly·applying·a·reducing
111 operation.·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.reduce">Read·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:·a9dce8bb557b5a11426bf2ffcbd5eea7c6c870833e3ee5bb072dcaaa11687b0c·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_reduce"·class="fn">try_reduce</a>&lt;F,·R&gt;(111 operation.·<a·href="https://doc.rust-lang.org/1.78.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:·7a18fdd041b1a001b4a8feb289ee127fd9240232239269eb35dc3b8f74783ec9·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_reduce"·class="fn">try_reduce</a>&lt;F,·R&gt;(
112 ····&amp;mut·self,112 ····&amp;mut·self,
113 ····f:·F113 ····f:·F
114 )·-&gt;·&lt;&lt;R·as·<a·class="trait"·href="../../core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&gt;::<a·class="associatedtype"·href="../../core/ops/try_trait/trait.Try.html#associatedtype.Residual"·title="type·core::ops::try_trait::Try::Residual">Residual</a>·as·[·...·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">where114 )·-&gt;·&lt;&lt;R·as·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&gt;::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/ops/try_trait/trait.Try.html#associatedtype.Residual"·title="type[·...·truncated·by·diffoscope;·len:·754,·SHA:·6fb4dfdb6b4da68921c1e7f8b75d99cf293d58318d684a840254ce9576957bea·...·]/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.78.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:·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:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·140,·SHA:·c27972e6fa3464c9476eaa185e8657edb6bb294f148403f3d079285294a9f909·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·R,
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.78.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.78.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.78.0/core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&gt;::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/ops/try_trait/trait.Try.html#associatedtype.Residual"·title="type[·...·truncated·by·diffoscope;·len:·412,·SHA:·22b8cbb007e5cce82b9d13a65bfa56aa8d83c32541fac25f4d9b3857b0540908·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;&gt;,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iterator_try_reduce</code>&nbsp;<a·href="https://github.com/rust-lang/rust/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:·65b80c848af6e465c8c5aef4ec8d3faaa399d30c8427c9507fda7b3bd1d3ea93·...·]/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.78.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:·bc0d658d56e348823de15386e1cd4ab49109f3a7a055a4573a19391b47071193·...·]/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.78.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:·95a840b532d3d621bde4032d63854eb0a481248e2b4bbb3ef058dbffb4dae4fa·...·]/core/primitive.bool.html">bool</a><div·class="where">where121 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·1018,·SHA:·e61cd6bdd36729cc38e57fcaea2ccb91a23a5acbda3c8986071f19bf1ecfc52a·...·]/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.78.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:·f828c62edd4fe85e217286f359b56c116e14ed18bb292ba1cc13d3ed7146909e·...·]/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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·1172,·SHA:·e64ab74d116d286191ad43d9d9e10411fc011c23724aa806e9a8f9b0be0757e3·...·]/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.78.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:·21d7086b3ce0092e3f7a6a41174339bbd8724e7d186158db4db3385a73d94e8e·...·]/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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·1051,·SHA:·ecc0b8fccd861464760f9ae047ff6ab98c91a1db010cb5fa59a8c2ab883db7c4·...·]/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.78.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
Max diff block lines reached; 138436/312017 bytes (44.37%) of diff not shown.
311 KB
./usr/share/doc/rust-web-doc/html/alloc/slice/struct.ArrayWindows.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="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.write(`<link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/SourceSerif4-Regular-46f98efaafac5295.ttf.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/FiraSans-Regular-018c141bf0843ffd.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/FiraSans-Medium-8f9a781e4970d388.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/SourceCodePro-Regular-562dcc5011b6de7d.ttf.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/SourceCodePro-Semibold-d899c5a5c4aeb14a.ttf.woff2">`)</script><link·rel="stylesheet"·href="../../static.files/normalize-76eba96aa4d2e634.css"><link·rel="stylesheet"·href="../../static.files/rustdoc-35f9e32502181f1e.css"><meta·name="rustdoc-vars"·data-root-path="../../"·data-static-root-path="../../static.files/"·data-current-crate="alloc"·data-themes=""·data-resource-suffix="1.78.0"·data-rustdoc-version="1.78.0"·data-channel="1.78.0"·data-search-js="search-42d8da7a6b9792c2.js"·data-settings-js="settings-4313503d2e1961c2.js"·><script·src="../../static.files/storage-4c98445ec4002617.js"></script><script·defer·src="sidebar-items1.78.0.js"></script><script·defer·src="../../static.files/main-12cf3b4f4f9dc36d.js"></script><noscript><link·rel="stylesheet"·href="../../static.files/noscript-04d5337699b92874.css"></noscript><link·rel="alternate·icon"·type="image/png"·href="../../static.files/favicon-16x16-8b506e7a72182f1c.png"><link·rel="alternate·icon"·type="image/png"·href="../../static.files/favicon-32x32-422f7d1d52889060.png"><link·rel="icon"·type="image/svg+xml"·href="../../static.files/favicon-2c020d218678b618.svg"></head><body·class="rustdoc·struct"><!--[if·lte·IE·11]><div·class="warning">This·old·browser·is·unsupported·and·will·most·likely·display·funky·things.</div><![endif]--><nav·class="mobile-topbar"><button·class="sidebar-menu-toggle"·title="show·sidebar"></button><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-151179464ae7ed46.svg"·alt=""></a></nav><nav·class="sidebar"><div·class="sidebar-crate"><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-151179464ae7ed46.svg"·alt="logo"></a><h2><a·href="../../alloc/index.html">alloc</a><span·class="version">1.78.0</span></h2></div><h2·class="location"><a·href="#">ArrayWindows</a></h2><div·class="sidebar-elems"><section><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">Clone</a></li><li><a·href="#impl-Copy-for-ArrayWindows%3C'a,+T,+N%3E">Copy</a></li><li><a·href="#impl-Debug-for-ArrayWindows%3C'a,+T,+N%3E">Debug</a></li><li><a·href="#impl-DoubleEndedIterator-for-ArrayWindows%3C'a,+T,+N%3E">DoubleEndedIterator</a></li><li><a·href="#impl-ExactSizeIterator-for-ArrayWindows%3C'_,+T,+N%3E">ExactSizeIterator</a></li><li><a·href="#impl-Iterator-for-ArrayWindows%3C'a,+T,+N%3E">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">!Send</a></li><li><a·href="#impl-Sync-for-ArrayWindows%3C'a,+T,+N%3E">!Sync</a></li><li><a·href="#impl-Freeze-for-ArrayWindows%3C'a,+T,+N%3E">Freeze</a></li><li><a·href="#impl-RefUnwindSafe-for-ArrayWindows%3C'a,+T,+N%3E">RefUnwindSafe</a></li><li><a·href="#impl-Unpin-for-ArrayWindows%3C'a,+T,+N%3E">Unpin</a></li><li><a·href="#impl-UnwindSafe-for-ArrayWindows%3C'a,+T,+N%3E">UnwindSafe</a></li></ul><h3><a·href="#blanket-implementations">Blanket·Implementations</a></h3><ul·class="block·blanket-implementation"><li><a·href="#impl-Any-for-T">Any</a></li><li><a·href="#impl-Borrow%3CT%3E-for-T">Borrow&lt;T&gt;</a></li><li><a·href="#impl-BorrowMut%3CT%3E-for-T">BorrowMut&lt;T&gt;</a></li><li><a·href="#impl-From%3CT%3E-for-T">From&lt;T&gt;</a></li><li><a·href="#impl-Into%3CU%3E-for-T">Into&lt;U&gt;</a></li><li><a·href="#impl-IntoIterator-for-I">IntoIterator</a></li><li><a·href="#impl-ToOwned-for-T">ToOwned</a></li><li><a·href="#impl-TryFrom%3CU%3E-for-T">TryFrom&lt;U&gt;</a></li><li><a·href="#impl-TryInto%3CU%3E-for-T">TryInto&lt;U&gt;</a></li></ul></section><h2><a·href="index.html">In·alloc::slice</a></h2></div></nav><div·class="sidebar-resizer"></div>1 <!DOCTYPE·html><html·lang="en"><head><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.write(`<link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/SourceSerif4-Regular-46f98efaafac5295.ttf.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/FiraSans-Regular-018c141bf0843ffd.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/FiraSans-Medium-8f9a781e4970d388.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/SourceCodePro-Regular-562dcc5011b6de7d.ttf.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/SourceCodePro-Semibold-d899c5a5c4aeb14a.ttf.woff2">`)</script><link·rel="stylesheet"·href="../../static.files/normalize-76eba96aa4d2e634.css"><link·rel="stylesheet"·href="../../static.files/rustdoc-35f9e32502181f1e.css"><meta·name="rustdoc-vars"·data-root-path="../../"·data-static-root-path="../../static.files/"·data-current-crate="alloc"·data-themes=""·data-resource-suffix="1.78.0"·data-rustdoc-version="1.78.0"·data-channel="1.78.0"·data-search-js="search-42d8da7a6b9792c2.js"·data-settings-js="settings-4313503d2e1961c2.js"·><script·src="../../static.files/storage-4c98445ec4002617.js"></script><script·defer·src="sidebar-items1.78.0.js"></script><script·defer·src="../../static.files/main-12cf3b4f4f9dc36d.js"></script><noscript><link·rel="stylesheet"·href="../../static.files/noscript-04d5337699b92874.css"></noscript><link·rel="alternate·icon"·type="image/png"·href="../../static.files/favicon-16x16-8b506e7a72182f1c.png"><link·rel="alternate·icon"·type="image/png"·href="../../static.files/favicon-32x32-422f7d1d52889060.png"><link·rel="icon"·type="image/svg+xml"·href="../../static.files/favicon-2c020d218678b618.svg"></head><body·class="rustdoc·struct"><!--[if·lte·IE·11]><div·class="warning">This·old·browser·is·unsupported·and·will·most·likely·display·funky·things.</div><![endif]--><nav·class="mobile-topbar"><button·class="sidebar-menu-toggle"·title="show·sidebar"></button><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-151179464ae7ed46.svg"·alt=""></a></nav><nav·class="sidebar"><div·class="sidebar-crate"><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-151179464ae7ed46.svg"·alt="logo"></a><h2><a·href="../../alloc/index.html">alloc</a><span·class="version">1.78.0</span></h2></div><h2·class="location"><a·href="#">ArrayWindows</a></h2><div·class="sidebar-elems"><section><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">Clone</a></li><li><a·href="#impl-Copy-for-ArrayWindows%3C'a,+T,+N%3E">Copy</a></li><li><a·href="#impl-Debug-for-ArrayWindows%3C'a,+T,+N%3E">Debug</a></li><li><a·href="#impl-DoubleEndedIterator-for-ArrayWindows%3C'a,+T,+N%3E">DoubleEndedIterator</a></li><li><a·href="#impl-ExactSizeIterator-for-ArrayWindows%3C'_,+T,+N%3E">ExactSizeIterator</a></li><li><a·href="#impl-Iterator-for-ArrayWindows%3C'a,+T,+N%3E">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">!Send</a></li><li><a·href="#impl-Sync-for-ArrayWindows%3C'a,+T,+N%3E">!Sync</a></li><li><a·href="#impl-Freeze-for-ArrayWindows%3C'a,+T,+N%3E">Freeze</a></li><li><a·href="#impl-RefUnwindSafe-for-ArrayWindows%3C'a,+T,+N%3E">RefUnwindSafe</a></li><li><a·href="#impl-Unpin-for-ArrayWindows%3C'a,+T,+N%3E">Unpin</a></li><li><a·href="#impl-UnwindSafe-for-ArrayWindows%3C'a,+T,+N%3E">UnwindSafe</a></li></ul><h3><a·href="#blanket-implementations">Blanket·Implementations</a></h3><ul·class="block·blanket-implementation"><li><a·href="#impl-Any-for-T">Any</a></li><li><a·href="#impl-Borrow%3CT%3E-for-T">Borrow&lt;T&gt;</a></li><li><a·href="#impl-BorrowMut%3CT%3E-for-T">BorrowMut&lt;T&gt;</a></li><li><a·href="#impl-From%3CT%3E-for-T">From&lt;T&gt;</a></li><li><a·href="#impl-Into%3CU%3E-for-T">Into&lt;U&gt;</a></li><li><a·href="#impl-IntoIterator-for-I">IntoIterator</a></li><li><a·href="#impl-ToOwned-for-T">ToOwned</a></li><li><a·href="#impl-TryFrom%3CU%3E-for-T">TryFrom&lt;U&gt;</a></li><li><a·href="#impl-TryInto%3CU%3E-for-T">TryInto&lt;U&gt;</a></li></ul></section><h2><a·href="index.html">In·alloc::slice</a></h2></div></nav><div·class="sidebar-resizer"></div>
2 ····<main><div·class="width-limiter"><nav·class="sub"><form·class="search-form"><span></span><div·id="sidebar-button"·tabindex="-1"><a·href="../../alloc/all.html"·title="show·sidebar"></a></div><input·class="search-input"·name="search"·aria-label="Run·search·in·the·documentation"·autocomplete="off"·spellcheck="false"·placeholder="Click·or·press·‘S’·to·search,·‘?’·for·more·options…"·type="search"><div·id="help-button"·tabindex="-1"><a·href="../../help.html"·title="help">?</a></div><div·id="settings-menu"·tabindex="-1"><a·href="../../settings.html"·title="settings"><img·width="22"·height="22"·alt="Change·settings"·src="../../static.files/wheel-7b819b6101059cd0.svg"></a></div></form></nav><section·id="main-content"·class="content"><div·class="main-heading"><h1>Struct·<a·href="../index.html">alloc</a>::<wbr><a·href="index.html">slice</a>::<wbr><a·class="struct"·href="#">ArrayWindows</a><button·id="copy-path"·title="Copy·item·path·to·clipboard"><img·src="../../static.files/clipboard-7571035ce49a181d.svg"·width="19"·height="18"·alt="Copy·item·path"></button></h1><span·class="out-of-band"><a·class="src"·href="../../src/core/slice/iter.rs.html#2171">source</a>···<button·id="toggle-all-docs"·title="collapse·all·docs">[<span>&#x2212;</span>]</button></span></div><pre·class="rust·item-decl"><code>pub·struct·ArrayWindows&lt;'a,·T,·const·N:·<a·class="primitive"·href=[·...·truncated·by·diffoscope;·len:·6,·SHA:·fe467039c22668817abaeb2f863d68f75f95c02e83d950e3f51051d19c904946·...·]/core/primitive.usize.html">usize</a>&gt;<div·class="where">where2 ····<main><div·class="width-limiter"><nav·class="sub"><form·class="search-form"><span></span><div·id="sidebar-button"·tabindex="-1"><a·href="../../alloc/all.html"·title="show·sidebar"></a></div><input·class="search-input"·name="search"·aria-label="Run·search·in·the·documentation"·autocomplete="off"·spellcheck="false"·placeholder="Click·or·press·‘S’·to·search,·‘?’·for·more·options…"·type="search"><div·id="help-button"·tabindex="-1"><a·href="../../help.html"·title="help">?</a></div><div·id="settings-menu"·tabindex="-1"><a·href="../../settings.html"·title="settings"><img·width="22"·height="22"·alt="Change·settings"·src="../../static.files/wheel-7b819b6101059cd0.svg"></a></div></form></nav><section·id="main-content"·class="content"><div·class="main-heading"><h1>Struct·<a·href="../index.html">alloc</a>::<wbr><a·href="index.html">slice</a>::<wbr><a·class="struct"·href="#">ArrayWindows</a><button·id="copy-path"·title="Copy·item·path·to·clipboard"><img·src="../../static.files/clipboard-7571035ce49a181d.svg"·width="19"·height="18"·alt="Copy·item·path"></button></h1><span·class="out-of-band"><a·class="src"·href="https://doc.rust-lang.org/1.78.0/src/core/slice/iter.rs.html#2171">source</a>···<button·id="toggle-all-docs"·title="collapse·all·docs">[<span>&#x2212;</span>]</button></span></div><pre·class="rust·item-decl"><code>pub·struct·ArrayWindows&lt;'a,·T,·const·N:[·...·truncated·by·diffoscope;·len:·60,·SHA:·567349b5e700cda98ffe324d07325461a7cbdc61bd2d625994d6bbc9d06c1873·...·]/core/primitive.usize.html">usize</a>&gt;<div·class="where">where
3 ····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·a3 ····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
4 time),·starting·at·the·beginning·of·the·slice</p>4 time),·starting·at·the·beginning·of·the·slice</p>
5 <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>5 <p>This·struct·is·created·by·the·<a·href="https://doc.rust-lang.org/1.78.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.78.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="attr">#![feature(array_windows)]7 <div·class="example-wrap"><pre·class="rust·rust-example-rendered"><code><span·class="attr">#![feature(array_windows)]
  
8 </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><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>];
9 <span·class="kw">let·</span>iter·=·slice.array_windows::&lt;<span·class="number">2</span>&gt;();</code></pre><a·class="test-arrow"·target="_blank"·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+iter+=+slice.array_windows::%3C2%3E();%0A%7D&amp;version=nightly&amp;edition=2021">Run</a></div>9 <span·class="kw">let·</span>iter·=·slice.array_windows::&lt;<span·class="number">2</span>&gt;();</code></pre><a·class="test-arrow"·target="_blank"·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+iter+=+slice.array_windows::%3C2%3E();%0A%7D&amp;version=nightly&amp;edition=2021">Run</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-Clone-for-ArrayWindows%3C'a,+T,+N%3E"·class="impl"><a·class="src·rightside"·href="../../src/core/slice/iter.rs.html#2168">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">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-Clone-for-ArrayWindows%3C'a,+T,+N%3E"·class="impl"><a·class="src·rightside"·href="https://doc.rust-lang.org/1.78.0/src/core/slice/iter.rs.html#2168">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.78.[·...·truncated·by·diffoscope;·len:·98,·SHA:·ce6459f70a4d70cdafc70dd8b0b2c8258be93855d1e1502ca4e1626eb2f09c38·...·]/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
11 ····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:·1721,·SHA:·87ee5f543d03f6f0e135a360ea6490aee55931b7029edf178e7d2e81d78496dd·...·]/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">where11 ····T:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.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:·1991,·SHA:·f1be7e6d96dc96413aa5cb7ac1cb28757dc702bd760846f93522125acd963785·...·]/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
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#2168">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:·ec4901bd967488830005483cda703d876ca21dcecde1a7cc34d2c40a1624ca6a·...·]/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.78.0/src/core/slice/iter.rs.html#2168">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:·a9f018d933b5fdae7bba57c1c8234d12f8460cd831b02e97bdb25a622360f01e·...·]/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.78.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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(B,·Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.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.78.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.7[·...·truncated·by·diffoscope;·len:·3,·SHA:·7b1bd53949b752d143d871408483b5382371b5bc48d195d0c040ec93cfa2748b·...·]/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:·74b709f2c818a4eda5d85ea863eb2d8af72c87564dbab2746e67feafb0cbb9a3·...·]/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.78.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:·d66ed7e195a53e9945339ef1976aed455dcf80228d8e5b7b0c69a64c3983fea1·...·]/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.78.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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(B,·Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/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:·f8bdf1e28866c7668477ab391452c7cfa7fd52cc69b633e782a157931421b39b·...·]/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.78.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:·c264047794019a6dcf05728ba6a6ee1f8f07c7209958b3366ba94546b527ecdc·...·]/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.78.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:·6974,·SHA:·ef2e3284e66074ed63640a46e45db17b3c82213d33f48784fd1bd2f4942cf05a·...·]/core/iter/traits/iterator/trait.Iterator.html#method.nth"·class="fn">nth</a>(21 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·8000,·SHA:·76275baa3a284f115c174a4ecd9de072f5d5362fc42a5220a0424f22fb9a67dc·...·]/core/iter/traits/iterator/trait.Iterator.html#method.nth"·class="fn">nth</a>(
22 ····&amp;mut·self,22 ····&amp;mut·self,
23 ····n:·<a·class="primitive"·href="../../core/primitive.usize.html">usize</a>23 ····n:·<a·class="primitive"·href="https://doc.rust-lang.org/1.78.0/core/primitive.usize.html">usize</a>
24 )·-&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:·f1264cd472282f4ec2928ec3165e3630b60330d2ba5187d3be2e042a473ebea7·...·]/core/primitive.usize.html">usize</a>&gt;(24 )·-&gt;·<a·class="enum"·href="https://doc.rust-lang.org/1.78.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:·8f40a2a5fd98508b6e77a2a46212ce02b5c60b6bafa45e26d48dbfacc171e2aa·...·]/core/primitive.usize.html">usize</a>&gt;(
25 ····&amp;mut·self25 ····&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.78.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.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title=[·...·truncated·by·diffoscope;·len:·381,·SHA:·88c48923c9b7ea5cc47c1087c60e09656e81d4671c58071ba2bef826335388bc·...·]/core/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:·35097ac20cb94a94d329a7511e21173c3e63fd8ce0a6d69b63b12136ae10fe6d·...·]/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.78.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></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:·3b082a2bc331439bfa16e12f26774fc7db23f44625156e2161c751eb349fb5c0·...·]/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.78.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:·5667b9b6c9778ff3b9d23ed0a110e7ab9d3fccc786fdcaca8c17edf996236439·...·]/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.78.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:·e83c903581753673e083ce8dd809879a2fc81ab3050eb6db267d7fa26b15e035·...·]/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.78.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:·1c6bb9803ee8832ebd4c28a08a952178165595b6870cf35d3c89454b9da828b2·...·]/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.78.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.78.0/core/iter/traits/it[·...·truncated·by·diffoscope;·len:·1329,·SHA:·d9299c8edc606ed82f24d61ce441bec451141d684c2a9a75074f5b19c57f196c·...·]/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.78.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:·c1b5e692e89c9c809075ee8ee72fb15a9ec46c075b08450e1f707d672a224750·...·]/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.78.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:·98627729f77dcf1c9d258f343354ba600b7134c6b3929080f231e8de7155b70b·...·]/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.78.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.78.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.78.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:·d6282409add0999f2130eb6bbe6d0473ce96bf2544799e8bc22156f3c2d2e0dd·...·]/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.78.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:·7301b6beba7b6885849be90a625df68ef739a5374af456c51fe2e81d91a25363·...·]/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.78.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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::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:·fb4c9589a16c7b6d697c109d1193d2f1e763e5dd967101c2fd92b32416972229·...·]/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.78.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:·98f6effefa44d759c249143d83623f0055d937382bfc398b7e1f5e92cd413657·...·]/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.78.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:·7abbad666ec88a1053b8aca2a481d629a3ef3596eddb570c381205fa2d859a52·...·]/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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·916,·SHA:·30d0b2a76513c5a880e9aee43e92b18805845cfcfe5783f62dc090167a439e63·...·]/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.78.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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·140,·SHA:·752f473b57e7444ebfddf5ea7fd40a332e83ec55524a6c31b5ee0f82a5dea819·...·]/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:·7da07154834a15b8ae55b4fd41479da070ccbd27e071909f81698570c306a081·...·]/core/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.78.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:·76aa2ad154f88085ee3f8a22721a7e6812680bac785d19059532407f50da1801·...·]/core/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.78.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:·c89169e5bf1c4724c7b411e568b6dad6475896f2606f557b3d708359ef71f5cc·...·]/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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·1052,·SHA:·110b47c7083083d565fcfc89337fddc8e5c87e81b2f720f3f7b0ded55e8500fb·...·]/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.78.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:·53634008856676c70c32b501f7ec498c1f86d123cc9b5b898256a69895ff31fc·...·]/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.78.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:·8464264e074dde5d84f0414ab3b5b2d8da83f3c9e3ca04c45458241580a8c80d·...·]/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.78.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.78.0/core/iter/adapte[·...·truncated·by·diffoscope;·len:·175,·SHA:·16fe7225bf05b478e2828b347c3d23ded9a22f89d8887a2c65d9f7b3faf1b0e7·...·]/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:·77dd41e041d66c618d306e900a9159cf1b00478b8f37e5692be62119a1d4fcda·...·]/core/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.78.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:·00ccbb673c11ed48d8c6aa2a3f8984fb298202e7bccfa42f1ac21290fcc0fb06·...·]/core/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.78.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:·c18326af66652e52fa627bfd0312af7fa2ad0ddc162b12a46e61047a031b0264·...·]/core/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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·1234,·SHA:·3b805567411cdcebed740f9e8d400dbe7fb487504f40e284544a140155090fdf·...·]/core/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.78.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:·39eeddf219b211245393e51a591d5064c740fa9be49d88883d8a6474679741ad·...·]/core/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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·1058,·SHA:·b390dbdda8d7e93604b5ecd906a93efd03fe19bdaf41cf12893fd361bf974307·...·]/core/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.78.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:·9369fa85b74ff841f7401949cadba6dfbbbeead2a99568f20dcfd5aab20d61ab·...·]/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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·1163,·SHA:·5772149166d344bf8fa5ebbd9db8693a8f2e5f031c50338e8f1523ef72f814d6·...·]/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:·a25e81a74cc82c1837477e2b0cea682fff9f43550640901b8010ac501ca69e3d·...·]/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.78.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:·6216516fe581c401abda3c95818192e8f030e2008c9bbdbaafebba16f33ea9bd·...·]/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.78.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:·de8f1023275132502c1569b0ef9a557dc98eaf60aae97cdb916e52f9f55100aa·...·]/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.78.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:·485843399c56e24bdf020ff0610d0ce1f62fbac5530d9880a1a7417105e3d70f·...·]/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.78.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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(<a·class="primitive"·href="https://doc.rust-lang.org/1.78.0/core/primitive.reference.html">&amp;mut·St</a>,·Self::<a·class="associatedty[·...·truncated·by·diffoscope;·len:·449,·SHA:·f12c268a8a8111b9e7126ad78bf5523a63733caa63d187c4fe792309ea41acdf·...·]/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:·8b31595e3cee3022819032aac82e3df712188a2a6dcc20da6939262e5e528591·...·]/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.78.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.78.0/core/iter/trai[·...·truncated·by·diffoscope;·len:·690,·SHA:·371190e5c1bf9b7dde6e84447965a69946212b977b9eb6d89048fbe34c5dda1c·...·]/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.78.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.78.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:·9b6a337a3ad68c2a987b52450c153f87a04a8ed9e83603d26077fe6e70d61edf·...·]/core/iter/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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·976,·SHA:·2a9182f6fe88e0b8a9b1ae1f46cace940cc0b8736033c354c0f0ccbf1c196e7a·...·]/core/iter/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.78.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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;[Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtyp[·...·truncated·by·diffoscope;·len:·135,·SHA:·0b06a6094d42ccbc8bce5b01c4383961fe7f1967f05e4c9f1ff33e71e425fb26·...·]/core/primitive.array.html">N</a>])·-&gt;·R,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iter_map_windows</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/87155">#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.78.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:·238f6b49b3e28d725c57040edaa60bfbb34f140155e6af1d30eab52da1c7274f·...·]/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.78.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:·0d33056cee8a4f9b70b573c0adecc2f3599a2f8d9fa9f2c2044e9118ab134f73·...·]/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:·cfd3edf89fe5aca24b994f83b0d7da765620394e35140e694d98233d4d92481b·...·]/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.78.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.78.0/core/op[·...·truncated·by·diffoscope;·len:·841,·SHA:·9cba1b175fb3726d7f1f01da9be7c1a56568a68e4ce7915a468b730902daf8d3·...·]/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.78.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:·772,·SHA:·31d2052382378512fa905c6d5297d384eac7b7f126141ce561719c0e27cc9d39·...·]/core/primitive.reference.html">&amp;mut·Self</a><div·class="where">where73 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·934,·SHA:·ea20d2e0fe9388580ea08100baa9120b5e9b6cb48f43fc846f15db8b9649e7f6·...·]/core/primitive.reference.html">&amp;mut·Self</a><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:·98760b16b1ed91f9558e6e2637724a4608316181d5f6f4d236e896a83eca9af9·...·]/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.78.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.78.0/core/it[·...·truncated·by·diffoscope;·len:·523,·SHA:·97064c705f6f4bdf74469c54fabcf580d21893127d1b4cd9a9c1018a717ef153·...·]/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.78.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.78.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:·e5d524e874326d0b9b733f5ee809c6595cde869afab0cc3d4ba8454093f420da·...·]/core/primitive.reference.html">&amp;mut·E</a><div·class="where">where76 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.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.78.0/core/iter/tr[·...·truncated·by·diffoscope;·len:·728,·SHA:·01937c2dc314c259495665570ae249c94b4a5b0719718f5f1188e6fc64ecf487·...·]/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.78.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.78.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:·b0297783e056393a542c4058b42c18523a86c961c1b6ce3bc94342c1a2c10c58·...·]/core/primitive.tuple.html">(B,·B)</a><div·class="where">where78 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></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:·00bd47017b1bdd1bbe2c3fc932d955a8aa2f7f5eff8c00e3001ae28a982a5883·...·]/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.78.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.78.0/core/default/trait.Default.html"·title="trait·core::default::Default">Default</a>·+·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/collect/trait.Extend.html"·title="trait·core::iter::traits::collec[·...·truncated·by·diffoscope;·len:·95,·SHA:·8b3be1d0042cae0550f865faf5849221240bdf04eb1b2107605b72d48c3ad29c·...·]/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:·5a1bcc1ddfc5fccf50d61bf2b8879dae247aa12c0b23ba2f437fd2a345cabac7·...·]/core/primitive.usize.html">usize</a><div·class="where">where81 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·995,·SHA:·bec3765fdab56713186e2454cd84738b5b28e3280a2f3d5a25cefdbc3089b520·...·]/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.78.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>·+·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/double_ended/trait.DoubleEndedIterator.html"·title="trait·core::iter::trai[·...·truncated·by·diffoscope;·len:·132,·SHA:·e5b2cf5f56946ede1e190ed09879c5821e2de04cf8e5d145142eeb40c6340982·...·]/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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(<a·class="primitive"·href="https://doc.rust-lang.org/1.78.0/core/primitive.reference.html">&amp;T</a>)·-&gt;·<a·class="primitive"·href="[·...·truncated·by·diffoscope;·len:·32,·SHA:·63d052a8ced32bf927ffadd7e884c08caf4970e85dfdf6be0e568d49b174da96·...·]/core/primitive.bool.html">bool</a>,</div></h4></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:·97056c44eac6a0f986fb2c8edec37302cc06edf44a6c6f7153a5d8623d8d6c0d·...·]/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.78.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:·0c224636c18baa273f69de21f90083317f2ea0b7367a3f0d0f1c0ace55a36f79·...·]/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.78.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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·135,·SHA:·51ff5f5c7ebd8440623ea71b125c5a5837e809e308fe1a13fbe19cddb941dbd9·...·]/core/primitive.bool.html">bool</a>,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iter_is_partitioned</code>&nbsp;<a·href="https://github.com/rust-lang/rust/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:·6f406a351b93047f56fa70265a6bf28ec6874f75cd6cc5a39d51c7af462f2992·...·]/core/iter/traits/iterator/trait.Iterator.html#method.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.78.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:·2c74873f4e5ba70004a1c7edd1cc3f9e2d91271295dd1591e2d26848df4c02ba·...·]/core/iter/traits/iterator/trait.Iterator.html#method.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.78.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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(B,·Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.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.78.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:·eecdce021399d206eb3ef5af12ee7663b4eb0dca55b0f411c7fa66f605b6b2e2·...·]/core/iter/traits/iterator/trait.Iterator.html#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.78.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:·52912e82c4b0a760d06f77eb4ee3a59ba70dd76cb532954900c73ae94c652674·...·]/core/iter/traits/iterator/trait.Iterator.html#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.78.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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.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.78.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.78.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:·ffdacd6b524bc823efebbf23dc0f77317a07fe9c8b691f2ea18db7aa0c08b146·...·]/core/iter/traits/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.78.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:·1d6c4809cea8748e901d3f94777f450d430f3161f6ac05ed1c178d9327f966a3·...·]/core/iter/traits/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.78.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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(B,·Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::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:·dbe3a08fe63abd47570741e71208c31aaf51152feac5917db07665a1f56bb3e3·...·]/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.78.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:·b60215068a6d9721be05f81098c51167d7138c4042f140cad42f77c4df43f597·...·]/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.78.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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·352,·SHA:·e7c3c296abe2c0a183967153e4ae7fd50bafa2ae7088e3e78b3b48fee253adc6·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::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:·a9dce8bb557b5a11426bf2ffcbd5eea7c6c870833e3ee5bb072dcaaa11687b0c·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_reduce"·class="fn">try_reduce</a>&lt;F,·R&gt;(103 operation.·<a·href="https://doc.rust-lang.org/1.78.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:·7a18fdd041b1a001b4a8feb289ee127fd9240232239269eb35dc3b8f74783ec9·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_reduce"·class="fn">try_reduce</a>&lt;F,·R&gt;(
104 ····&amp;mut·self,104 ····&amp;mut·self,
105 ····f:·F105 ····f:·F
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.78.0/core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&gt;::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/ops/try_trait/trait.Try.html#associatedtype.Residual"·title="type[·...·truncated·by·diffoscope;·len:·754,·SHA:·6fb4dfdb6b4da68921c1e7f8b75d99cf293d58318d684a840254ce9576957bea·...·]/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.78.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:·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:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·140,·SHA:·c27972e6fa3464c9476eaa185e8657edb6bb294f148403f3d079285294a9f909·...·]/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·=·Self::<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.78.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.78.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.78.0/core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&gt;::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/ops/try_trait/trait.Try.html#associatedtype.Residual"·title="type[·...·truncated·by·diffoscope;·len:·412,·SHA:·22b8cbb007e5cce82b9d13a65bfa56aa8d83c32541fac25f4d9b3857b0540908·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;&gt;,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iterator_try_reduce</code>&nbsp;<a·href="https://github.com/rust-lang/rust/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:·65b80c848af6e465c8c5aef4ec8d3faaa399d30c8427c9507fda7b3bd1d3ea93·...·]/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.78.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:·bc0d658d56e348823de15386e1cd4ab49109f3a7a055a4573a19391b47071193·...·]/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.78.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:·95a840b532d3d621bde4032d63854eb0a481248e2b4bbb3ef058dbffb4dae4fa·...·]/core/primitive.bool.html">bool</a><div·class="where">where113 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·1018,·SHA:·e61cd6bdd36729cc38e57fcaea2ccb91a23a5acbda3c8986071f19bf1ecfc52a·...·]/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.78.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:·f828c62edd4fe85e217286f359b56c116e14ed18bb292ba1cc13d3ed7146909e·...·]/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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·1172,·SHA:·e64ab74d116d286191ad43d9d9e10411fc011c23724aa806e9a8f9b0be0757e3·...·]/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.78.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:·21d7086b3ce0092e3f7a6a41174339bbd8724e7d186158db4db3385a73d94e8e·...·]/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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·1051,·SHA:·ecc0b8fccd861464760f9ae047ff6ab98c91a1db010cb5fa59a8c2ab883db7c4·...·]/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.78.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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·130,·SHA:·130a13019dc175d02304b4f550157e2f13ac15c2f25a979c74161d10b146ab89·...·]/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:·ac4da3337aac1ec10038e246be9cb719eeb5af1acc709f5a6a25b91900c56f53·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_find"·class="fn">try_find</a>&lt;F,·R&gt;(120 the·first·non-none·result.·<a·href="https://doc.rust-lang.org/1.78.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:·8ced1b10e78750774c5c8ed995ed83dcd13983aa75d329acf8069da106ab9f4a·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_find"·class="fn">try_find</a>&lt;F,·R&gt;(
121 ····&amp;mut·self,121 ····&amp;mut·self,
122 ····f:·F122 ····f:·F
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.78.0/core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&gt;::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/ops/try_trait/trait.Try.html#associatedtype.Residual"·title="type[·...·truncated·by·diffoscope;·len:·626,·SHA:·95f9831257b68862cbcbf54f0ad2ff4e597a4c9f763112d1da8a0897dadcf872·...·]/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.78.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;·R,125 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·R,
126 ····R:·<a·class="trait"·href="../../core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&lt;Output·=·<a·class="primitive"·href="../../core/primitive.bool.html">bool</a>&gt;,126 ····R:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.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.78.0/core/primitive.bool.html">bool</a>&gt;,
Max diff block lines reached; 85856/317834 bytes (27.01%) of diff not shown.
293 KB
./usr/share/doc/rust-web-doc/html/alloc/slice/struct.ChunkBy.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·slice·in·(non-overlapping)·chunks·separated·by·a·predicate."><title>ChunkBy·in·alloc::slice·-·Rust</title><script>·if·(window.location.protocol·!==·"file:")·document.write(`<link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/SourceSerif4-Regular-46f98efaafac5295.ttf.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/FiraSans-Regular-018c141bf0843ffd.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/FiraSans-Medium-8f9a781e4970d388.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/SourceCodePro-Regular-562dcc5011b6de7d.ttf.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/SourceCodePro-Semibold-d899c5a5c4aeb14a.ttf.woff2">`)</script><link·rel="stylesheet"·href="../../static.files/normalize-76eba96aa4d2e634.css"><link·rel="stylesheet"·href="../../static.files/rustdoc-35f9e32502181f1e.css"><meta·name="rustdoc-vars"·data-root-path="../../"·data-static-root-path="../../static.files/"·data-current-crate="alloc"·data-themes=""·data-resource-suffix="1.78.0"·data-rustdoc-version="1.78.0"·data-channel="1.78.0"·data-search-js="search-42d8da7a6b9792c2.js"·data-settings-js="settings-4313503d2e1961c2.js"·><script·src="../../static.files/storage-4c98445ec4002617.js"></script><script·defer·src="sidebar-items1.78.0.js"></script><script·defer·src="../../static.files/main-12cf3b4f4f9dc36d.js"></script><noscript><link·rel="stylesheet"·href="../../static.files/noscript-04d5337699b92874.css"></noscript><link·rel="alternate·icon"·type="image/png"·href="../../static.files/favicon-16x16-8b506e7a72182f1c.png"><link·rel="alternate·icon"·type="image/png"·href="../../static.files/favicon-32x32-422f7d1d52889060.png"><link·rel="icon"·type="image/svg+xml"·href="../../static.files/favicon-2c020d218678b618.svg"></head><body·class="rustdoc·struct"><!--[if·lte·IE·11]><div·class="warning">This·old·browser·is·unsupported·and·will·most·likely·display·funky·things.</div><![endif]--><nav·class="mobile-topbar"><button·class="sidebar-menu-toggle"·title="show·sidebar"></button><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-151179464ae7ed46.svg"·alt=""></a></nav><nav·class="sidebar"><div·class="sidebar-crate"><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-151179464ae7ed46.svg"·alt="logo"></a><h2><a·href="../../alloc/index.html">alloc</a><span·class="version">1.78.0</span></h2></div><h2·class="location"><a·href="#">ChunkBy</a></h2><div·class="sidebar-elems"><section><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">Debug</a></li><li><a·href="#impl-DoubleEndedIterator-for-ChunkBy%3C'a,+T,+P%3E">DoubleEndedIterator</a></li><li><a·href="#impl-FusedIterator-for-ChunkBy%3C'a,+T,+P%3E">FusedIterator</a></li><li><a·href="#impl-Iterator-for-ChunkBy%3C'a,+T,+P%3E">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">Freeze</a></li><li><a·href="#impl-RefUnwindSafe-for-ChunkBy%3C'a,+T,+P%3E">RefUnwindSafe</a></li><li><a·href="#impl-Send-for-ChunkBy%3C'a,+T,+P%3E">Send</a></li><li><a·href="#impl-Sync-for-ChunkBy%3C'a,+T,+P%3E">Sync</a></li><li><a·href="#impl-Unpin-for-ChunkBy%3C'a,+T,+P%3E">Unpin</a></li><li><a·href="#impl-UnwindSafe-for-ChunkBy%3C'a,+T,+P%3E">UnwindSafe</a></li></ul><h3><a·href="#blanket-implementations">Blanket·Implementations</a></h3><ul·class="block·blanket-implementation"><li><a·href="#impl-Any-for-T">Any</a></li><li><a·href="#impl-Borrow%3CT%3E-for-T">Borrow&lt;T&gt;</a></li><li><a·href="#impl-BorrowMut%3CT%3E-for-T">BorrowMut&lt;T&gt;</a></li><li><a·href="#impl-From%3CT%3E-for-T">From&lt;T&gt;</a></li><li><a·href="#impl-Into%3CU%3E-for-T">Into&lt;U&gt;</a></li><li><a·href="#impl-IntoIterator-for-I">IntoIterator</a></li><li><a·href="#impl-TryFrom%3CU%3E-for-T">TryFrom&lt;U&gt;</a></li><li><a·href="#impl-TryInto%3CU%3E-for-T">TryInto&lt;U&gt;</a></li></ul></section><h2><a·href="index.html">In·alloc::slice</a></h2></div></nav><div·class="sidebar-resizer"></div>1 <!DOCTYPE·html><html·lang="en"><head><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.write(`<link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/SourceSerif4-Regular-46f98efaafac5295.ttf.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/FiraSans-Regular-018c141bf0843ffd.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/FiraSans-Medium-8f9a781e4970d388.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/SourceCodePro-Regular-562dcc5011b6de7d.ttf.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/SourceCodePro-Semibold-d899c5a5c4aeb14a.ttf.woff2">`)</script><link·rel="stylesheet"·href="../../static.files/normalize-76eba96aa4d2e634.css"><link·rel="stylesheet"·href="../../static.files/rustdoc-35f9e32502181f1e.css"><meta·name="rustdoc-vars"·data-root-path="../../"·data-static-root-path="../../static.files/"·data-current-crate="alloc"·data-themes=""·data-resource-suffix="1.78.0"·data-rustdoc-version="1.78.0"·data-channel="1.78.0"·data-search-js="search-42d8da7a6b9792c2.js"·data-settings-js="settings-4313503d2e1961c2.js"·><script·src="../../static.files/storage-4c98445ec4002617.js"></script><script·defer·src="sidebar-items1.78.0.js"></script><script·defer·src="../../static.files/main-12cf3b4f4f9dc36d.js"></script><noscript><link·rel="stylesheet"·href="../../static.files/noscript-04d5337699b92874.css"></noscript><link·rel="alternate·icon"·type="image/png"·href="../../static.files/favicon-16x16-8b506e7a72182f1c.png"><link·rel="alternate·icon"·type="image/png"·href="../../static.files/favicon-32x32-422f7d1d52889060.png"><link·rel="icon"·type="image/svg+xml"·href="../../static.files/favicon-2c020d218678b618.svg"></head><body·class="rustdoc·struct"><!--[if·lte·IE·11]><div·class="warning">This·old·browser·is·unsupported·and·will·most·likely·display·funky·things.</div><![endif]--><nav·class="mobile-topbar"><button·class="sidebar-menu-toggle"·title="show·sidebar"></button><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-151179464ae7ed46.svg"·alt=""></a></nav><nav·class="sidebar"><div·class="sidebar-crate"><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-151179464ae7ed46.svg"·alt="logo"></a><h2><a·href="../../alloc/index.html">alloc</a><span·class="version">1.78.0</span></h2></div><h2·class="location"><a·href="#">ChunkBy</a></h2><div·class="sidebar-elems"><section><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">Debug</a></li><li><a·href="#impl-DoubleEndedIterator-for-ChunkBy%3C'a,+T,+P%3E">DoubleEndedIterator</a></li><li><a·href="#impl-FusedIterator-for-ChunkBy%3C'a,+T,+P%3E">FusedIterator</a></li><li><a·href="#impl-Iterator-for-ChunkBy%3C'a,+T,+P%3E">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">Freeze</a></li><li><a·href="#impl-RefUnwindSafe-for-ChunkBy%3C'a,+T,+P%3E">RefUnwindSafe</a></li><li><a·href="#impl-Send-for-ChunkBy%3C'a,+T,+P%3E">Send</a></li><li><a·href="#impl-Sync-for-ChunkBy%3C'a,+T,+P%3E">Sync</a></li><li><a·href="#impl-Unpin-for-ChunkBy%3C'a,+T,+P%3E">Unpin</a></li><li><a·href="#impl-UnwindSafe-for-ChunkBy%3C'a,+T,+P%3E">UnwindSafe</a></li></ul><h3><a·href="#blanket-implementations">Blanket·Implementations</a></h3><ul·class="block·blanket-implementation"><li><a·href="#impl-Any-for-T">Any</a></li><li><a·href="#impl-Borrow%3CT%3E-for-T">Borrow&lt;T&gt;</a></li><li><a·href="#impl-BorrowMut%3CT%3E-for-T">BorrowMut&lt;T&gt;</a></li><li><a·href="#impl-From%3CT%3E-for-T">From&lt;T&gt;</a></li><li><a·href="#impl-Into%3CU%3E-for-T">Into&lt;U&gt;</a></li><li><a·href="#impl-IntoIterator-for-I">IntoIterator</a></li><li><a·href="#impl-TryFrom%3CU%3E-for-T">TryFrom&lt;U&gt;</a></li><li><a·href="#impl-TryInto%3CU%3E-for-T">TryInto&lt;U&gt;</a></li></ul></section><h2><a·href="index.html">In·alloc::slice</a></h2></div></nav><div·class="sidebar-resizer"></div>
2 ····<main><div·class="width-limiter"><nav·class="sub"><form·class="search-form"><span></span><div·id="sidebar-button"·tabindex="-1"><a·href="../../alloc/all.html"·title="show·sidebar"></a></div><input·class="search-input"·name="search"·aria-label="Run·search·in·the·documentation"·autocomplete="off"·spellcheck="false"·placeholder="Click·or·press·‘S’·to·search,·‘?’·for·more·options…"·type="search"><div·id="help-button"·tabindex="-1"><a·href="../../help.html"·title="help">?</a></div><div·id="settings-menu"·tabindex="-1"><a·href="../../settings.html"·title="settings"><img·width="22"·height="22"·alt="Change·settings"·src="../../static.files/wheel-7b819b6101059cd0.svg"></a></div></form></nav><section·id="main-content"·class="content"><div·class="main-heading"><h1>Struct·<a·href="../index.html">alloc</a>::<wbr><a·href="index.html">slice</a>::<wbr><a·class="struct"·href="#">ChunkBy</a><button·id="copy-path"·title="Copy·item·path·to·clipboard"><img·src="../../static.files/clipboard-7571035ce49a181d.svg"·width="19"·height="18"·alt="Copy·item·path"></button></h1><span·class="out-of-band"><span·class="since"·title="Stable·since·Rust·version·1.77.0">1.77.0</span>···<a·class="src"·href="../../src/core/slice/iter.rs.html#3260">source</a>···<button·id="toggle-all-docs"·title="collapse·all·docs">[<span>&#x2212;</span>]</button></span></div><pre·class="rust·item-decl"><code>pub·struct·ChunkBy&lt;'a,·T,·P&gt;<div·class="where">where2 ····<main><div·class="width-limiter"><nav·class="sub"><form·class="search-form"><span></span><div·id="sidebar-button"·tabindex="-1"><a·href="../../alloc/all.html"·title="show·sidebar"></a></div><input·class="search-input"·name="search"·aria-label="Run·search·in·the·documentation"·autocomplete="off"·spellcheck="false"·placeholder="Click·or·press·‘S’·to·search,·‘?’·for·more·options…"·type="search"><div·id="help-button"·tabindex="-1"><a·href="../../help.html"·title="help">?</a></div><div·id="settings-menu"·tabindex="-1"><a·href="../../settings.html"·title="settings"><img·width="22"·height="22"·alt="Change·settings"·src="../../static.files/wheel-7b819b6101059cd0.svg"></a></div></form></nav><section·id="main-content"·class="content"><div·class="main-heading"><h1>Struct·<a·href="../index.html">alloc</a>::<wbr><a·href="index.html">slice</a>::<wbr><a·class="struct"·href="#">ChunkBy</a><button·id="copy-path"·title="Copy·item·path·to·clipboard"><img·src="../../static.files/clipboard-7571035ce49a181d.svg"·width="19"·height="18"·alt="Copy·item·path"></button></h1><span·class="out-of-band"><span·class="since"·title="Stable·since·Rust·version·1.77.0">1.77.0</span>···<a·class="src"·href="https://doc.rust-lang.org/1.78.0/src/core/slice/iter.rs.html#3260">source</a>···<button·id="toggle-all-docs"·title="collapse·all·docs">[<span>&#x2212;</span>]</button></span></div><pre·class="rust·item-decl"><code>pub·struct·ChunkBy&lt;'a,·T,·P&gt;<div·class="where">where
3 ····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 ····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>
4 <p>This·struct·is·created·by·the·<a·href="../../core/primitive.slice.html#method.chunk_by"·title="method·slice::chunk_by"><code>chunk_by</code></a>·method·on·<a·href="../../core/primitive.slice.html"·title="primitive·slice">slices</a>.</p>4 <p>This·struct·is·created·by·the·<a·href="https://doc.rust-lang.org/1.78.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.78.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-ChunkBy%3C'a,+T,+P%3E"·class="impl"><a·class="src·rightside"·href="../../src/core/slice/iter.rs.html#3332">source</a><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">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-ChunkBy%3C'a,+T,+P%3E"·class="impl"><a·class="src·rightside"·href="https://doc.rust-lang.org/1.78.0/src/core/slice/iter.rs.html#3332">source</a><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
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#3333">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:·904,·SHA:·1de31b5afa50038512b6c848121a6b473a372227d7055dff5ed9e53273193e52·...·]/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">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.78.0/src/core/slice/iter.rs.html#3333">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:·1039,·SHA:·fbc67f14bad48ee28096cd4ff5a139bed95618a9ccdef3570307320e3e2fc433·...·]/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
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:·4187,·SHA:·95ba28227394cad990f5933665b05709be7697ca0c331439abb0e13ab1b3cdac·...·]/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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(<a·class="primitive"·href="https://doc.rust-lang.org/1.78.0/core/primitive.reference.html">&amp;T</a>,·<a·class="primitive"·href="https:[·...·truncated·by·diffoscope;·len:·4889,·SHA:·a3d567f8682c74d3a3f32732fba18cf3d552e8442214f37832166e5d823a3b9a·...·]/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.78.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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(B,·Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.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.78.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.7[·...·truncated·by·diffoscope;·len:·3,·SHA:·7b1bd53949b752d143d871408483b5382371b5bc48d195d0c040ec93cfa2748b·...·]/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:·74b709f2c818a4eda5d85ea863eb2d8af72c87564dbab2746e67feafb0cbb9a3·...·]/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.78.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:·d66ed7e195a53e9945339ef1976aed455dcf80228d8e5b7b0c69a64c3983fea1·...·]/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.78.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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(B,·Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/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:·f8bdf1e28866c7668477ab391452c7cfa7fd52cc69b633e782a157931421b39b·...·]/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.78.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:·c264047794019a6dcf05728ba6a6ee1f8f07c7209958b3366ba94546b527ecdc·...·]/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.78.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:·719,·SHA:·a315e95ba43b630be257bdc2d2e325200452242c8d7f68e53fba3904f0c7d197·...·]/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">where17 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·881,·SHA:·ab3b72c0289a8bb13ea9151f87ff5e4f68245a2113c6b37a763b2c9d4ed6fb1b·...·]/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
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:·4112,·SHA:·30cb10ab55f7fe71cdcf237b2bbc783d40a6bf0540c48706e64e4244a9c5eca9·...·]/core/primitive.usize.html">usize</a>&gt;(19 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(<a·class="primitive"·href="https://doc.rust-lang.org/1.78.0/core/primitive.reference.html">&amp;T</a>,·<a·class="primitive"·href="https:[·...·truncated·by·diffoscope;·len:·4841,·SHA:·c5366da06ecdb3832079b21ed9528c544c85f886831dfc41942402dce6bbe686·...·]/core/primitive.usize.html">usize</a>&gt;(
20 ····&amp;mut·self20 ····&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.78.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.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title=[·...·truncated·by·diffoscope;·len:·381,·SHA:·88c48923c9b7ea5cc47c1087c60e09656e81d4671c58071ba2bef826335388bc·...·]/core/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:·602d17b58d1cf716882ddc867fc66cfda4f899bef17b038a48553e9133f60097·...·]/core/primitive.usize.html">usize</a><div·class="where">where22 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></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:·89791450da70cbd536c3cf8fbf2dd9891668362f9a252d3ee098222d19960bae·...·]/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:·f92dde8c48ff35deb05a51084054ecdf425850256e0755fd705ef0e8dee5a42a·...·]/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.78.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:·5acc2bcc91ab2687c8137eaa20bd4287e0b901b846fa877b4a1d59df04bc4956·...·]/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.78.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:·5667b9b6c9778ff3b9d23ed0a110e7ab9d3fccc786fdcaca8c17edf996236439·...·]/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.78.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:·e83c903581753673e083ce8dd809879a2fc81ab3050eb6db267d7fa26b15e035·...·]/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.78.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:·1c6bb9803ee8832ebd4c28a08a952178165595b6870cf35d3c89454b9da828b2·...·]/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.78.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.78.0/core/iter/traits/it[·...·truncated·by·diffoscope;·len:·1329,·SHA:·d9299c8edc606ed82f24d61ce441bec451141d684c2a9a75074f5b19c57f196c·...·]/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.78.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:·c1b5e692e89c9c809075ee8ee72fb15a9ec46c075b08450e1f707d672a224750·...·]/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.78.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:·98627729f77dcf1c9d258f343354ba600b7134c6b3929080f231e8de7155b70b·...·]/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.78.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.78.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.78.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:·d6282409add0999f2130eb6bbe6d0473ce96bf2544799e8bc22156f3c2d2e0dd·...·]/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.78.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:·7301b6beba7b6885849be90a625df68ef739a5374af456c51fe2e81d91a25363·...·]/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.78.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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::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:·fb4c9589a16c7b6d697c109d1193d2f1e763e5dd967101c2fd92b32416972229·...·]/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.78.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:·98f6effefa44d759c249143d83623f0055d937382bfc398b7e1f5e92cd413657·...·]/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.78.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:·7abbad666ec88a1053b8aca2a481d629a3ef3596eddb570c381205fa2d859a52·...·]/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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·916,·SHA:·30d0b2a76513c5a880e9aee43e92b18805845cfcfe5783f62dc090167a439e63·...·]/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.78.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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·140,·SHA:·752f473b57e7444ebfddf5ea7fd40a332e83ec55524a6c31b5ee0f82a5dea819·...·]/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:·7da07154834a15b8ae55b4fd41479da070ccbd27e071909f81698570c306a081·...·]/core/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.78.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:·76aa2ad154f88085ee3f8a22721a7e6812680bac785d19059532407f50da1801·...·]/core/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.78.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:·c89169e5bf1c4724c7b411e568b6dad6475896f2606f557b3d708359ef71f5cc·...·]/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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·1052,·SHA:·110b47c7083083d565fcfc89337fddc8e5c87e81b2f720f3f7b0ded55e8500fb·...·]/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.78.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:·53634008856676c70c32b501f7ec498c1f86d123cc9b5b898256a69895ff31fc·...·]/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.78.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:·8464264e074dde5d84f0414ab3b5b2d8da83f3c9e3ca04c45458241580a8c80d·...·]/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.78.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.78.0/core/iter/adapte[·...·truncated·by·diffoscope;·len:·175,·SHA:·16fe7225bf05b478e2828b347c3d23ded9a22f89d8887a2c65d9f7b3faf1b0e7·...·]/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:·77dd41e041d66c618d306e900a9159cf1b00478b8f37e5692be62119a1d4fcda·...·]/core/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.78.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:·00ccbb673c11ed48d8c6aa2a3f8984fb298202e7bccfa42f1ac21290fcc0fb06·...·]/core/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.78.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:·c18326af66652e52fa627bfd0312af7fa2ad0ddc162b12a46e61047a031b0264·...·]/core/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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·1234,·SHA:·3b805567411cdcebed740f9e8d400dbe7fb487504f40e284544a140155090fdf·...·]/core/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.78.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:·39eeddf219b211245393e51a591d5064c740fa9be49d88883d8a6474679741ad·...·]/core/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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·1058,·SHA:·b390dbdda8d7e93604b5ecd906a93efd03fe19bdaf41cf12893fd361bf974307·...·]/core/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.78.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:·9369fa85b74ff841f7401949cadba6dfbbbeead2a99568f20dcfd5aab20d61ab·...·]/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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·1163,·SHA:·5772149166d344bf8fa5ebbd9db8693a8f2e5f031c50338e8f1523ef72f814d6·...·]/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:·a25e81a74cc82c1837477e2b0cea682fff9f43550640901b8010ac501ca69e3d·...·]/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.78.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:·6216516fe581c401abda3c95818192e8f030e2008c9bbdbaafebba16f33ea9bd·...·]/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.78.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:·de8f1023275132502c1569b0ef9a557dc98eaf60aae97cdb916e52f9f55100aa·...·]/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.78.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:·485843399c56e24bdf020ff0610d0ce1f62fbac5530d9880a1a7417105e3d70f·...·]/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.78.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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(<a·class="primitive"·href="https://doc.rust-lang.org/1.78.0/core/primitive.reference.html">&amp;mut·St</a>,·Self::<a·class="associatedty[·...·truncated·by·diffoscope;·len:·449,·SHA:·f12c268a8a8111b9e7126ad78bf5523a63733caa63d187c4fe792309ea41acdf·...·]/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:·8b31595e3cee3022819032aac82e3df712188a2a6dcc20da6939262e5e528591·...·]/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.78.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.78.0/core/iter/trai[·...·truncated·by·diffoscope;·len:·690,·SHA:·371190e5c1bf9b7dde6e84447965a69946212b977b9eb6d89048fbe34c5dda1c·...·]/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.78.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.78.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:·9b6a337a3ad68c2a987b52450c153f87a04a8ed9e83603d26077fe6e70d61edf·...·]/core/iter/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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·976,·SHA:·2a9182f6fe88e0b8a9b1ae1f46cace940cc0b8736033c354c0f0ccbf1c196e7a·...·]/core/iter/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.78.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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;[Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtyp[·...·truncated·by·diffoscope;·len:·135,·SHA:·0b06a6094d42ccbc8bce5b01c4383961fe7f1967f05e4c9f1ff33e71e425fb26·...·]/core/primitive.array.html">N</a>])·-&gt;·R,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iter_map_windows</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/87155">#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.78.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:·238f6b49b3e28d725c57040edaa60bfbb34f140155e6af1d30eab52da1c7274f·...·]/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.78.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:·0d33056cee8a4f9b70b573c0adecc2f3599a2f8d9fa9f2c2044e9118ab134f73·...·]/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:·cfd3edf89fe5aca24b994f83b0d7da765620394e35140e694d98233d4d92481b·...·]/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.78.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.78.0/core/op[·...·truncated·by·diffoscope;·len:·841,·SHA:·9cba1b175fb3726d7f1f01da9be7c1a56568a68e4ce7915a468b730902daf8d3·...·]/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.78.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:·772,·SHA:·31d2052382378512fa905c6d5297d384eac7b7f126141ce561719c0e27cc9d39·...·]/core/primitive.reference.html">&amp;mut·Self</a><div·class="where">where69 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·934,·SHA:·ea20d2e0fe9388580ea08100baa9120b5e9b6cb48f43fc846f15db8b9649e7f6·...·]/core/primitive.reference.html">&amp;mut·Self</a><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:·98760b16b1ed91f9558e6e2637724a4608316181d5f6f4d236e896a83eca9af9·...·]/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.78.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.78.0/core/it[·...·truncated·by·diffoscope;·len:·523,·SHA:·97064c705f6f4bdf74469c54fabcf580d21893127d1b4cd9a9c1018a717ef153·...·]/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.78.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.78.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:·e5d524e874326d0b9b733f5ee809c6595cde869afab0cc3d4ba8454093f420da·...·]/core/primitive.reference.html">&amp;mut·E</a><div·class="where">where72 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.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.78.0/core/iter/tr[·...·truncated·by·diffoscope;·len:·728,·SHA:·01937c2dc314c259495665570ae249c94b4a5b0719718f5f1188e6fc64ecf487·...·]/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.78.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.78.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:·b0297783e056393a542c4058b42c18523a86c961c1b6ce3bc94342c1a2c10c58·...·]/core/primitive.tuple.html">(B,·B)</a><div·class="where">where74 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></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:·00bd47017b1bdd1bbe2c3fc932d955a8aa2f7f5eff8c00e3001ae28a982a5883·...·]/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.78.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.78.0/core/default/trait.Default.html"·title="trait·core::default::Default">Default</a>·+·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/collect/trait.Extend.html"·title="trait·core::iter::traits::collec[·...·truncated·by·diffoscope;·len:·95,·SHA:·8b3be1d0042cae0550f865faf5849221240bdf04eb1b2107605b72d48c3ad29c·...·]/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:·5a1bcc1ddfc5fccf50d61bf2b8879dae247aa12c0b23ba2f437fd2a345cabac7·...·]/core/primitive.usize.html">usize</a><div·class="where">where77 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·995,·SHA:·bec3765fdab56713186e2454cd84738b5b28e3280a2f3d5a25cefdbc3089b520·...·]/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.78.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>·+·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/double_ended/trait.DoubleEndedIterator.html"·title="trait·core::iter::trai[·...·truncated·by·diffoscope;·len:·132,·SHA:·e5b2cf5f56946ede1e190ed09879c5821e2de04cf8e5d145142eeb40c6340982·...·]/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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(<a·class="primitive"·href="https://doc.rust-lang.org/1.78.0/core/primitive.reference.html">&amp;T</a>)·-&gt;·<a·class="primitive"·href="[·...·truncated·by·diffoscope;·len:·32,·SHA:·63d052a8ced32bf927ffadd7e884c08caf4970e85dfdf6be0e568d49b174da96·...·]/core/primitive.bool.html">bool</a>,</div></h4></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:·97056c44eac6a0f986fb2c8edec37302cc06edf44a6c6f7153a5d8623d8d6c0d·...·]/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.78.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:·0c224636c18baa273f69de21f90083317f2ea0b7367a3f0d0f1c0ace55a36f79·...·]/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.78.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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·135,·SHA:·51ff5f5c7ebd8440623ea71b125c5a5837e809e308fe1a13fbe19cddb941dbd9·...·]/core/primitive.bool.html">bool</a>,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iter_is_partitioned</code>&nbsp;<a·href="https://github.com/rust-lang/rust/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:·6f406a351b93047f56fa70265a6bf28ec6874f75cd6cc5a39d51c7af462f2992·...·]/core/iter/traits/iterator/trait.Iterator.html#method.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.78.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:·2c74873f4e5ba70004a1c7edd1cc3f9e2d91271295dd1591e2d26848df4c02ba·...·]/core/iter/traits/iterator/trait.Iterator.html#method.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.78.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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(B,·Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.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.78.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:·eecdce021399d206eb3ef5af12ee7663b4eb0dca55b0f411c7fa66f605b6b2e2·...·]/core/iter/traits/iterator/trait.Iterator.html#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.78.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:·52912e82c4b0a760d06f77eb4ee3a59ba70dd76cb532954900c73ae94c652674·...·]/core/iter/traits/iterator/trait.Iterator.html#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.78.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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.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.78.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.78.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:·ffdacd6b524bc823efebbf23dc0f77317a07fe9c8b691f2ea18db7aa0c08b146·...·]/core/iter/traits/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.78.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:·1d6c4809cea8748e901d3f94777f450d430f3161f6ac05ed1c178d9327f966a3·...·]/core/iter/traits/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.78.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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(B,·Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::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:·dbe3a08fe63abd47570741e71208c31aaf51152feac5917db07665a1f56bb3e3·...·]/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.78.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:·b60215068a6d9721be05f81098c51167d7138c4042f140cad42f77c4df43f597·...·]/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.78.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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·352,·SHA:·e7c3c296abe2c0a183967153e4ae7fd50bafa2ae7088e3e78b3b48fee253adc6·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::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:·a9dce8bb557b5a11426bf2ffcbd5eea7c6c870833e3ee5bb072dcaaa11687b0c·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_reduce"·class="fn">try_reduce</a>&lt;F,·R&gt;(99 operation.·<a·href="https://doc.rust-lang.org/1.78.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:·7a18fdd041b1a001b4a8feb289ee127fd9240232239269eb35dc3b8f74783ec9·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_reduce"·class="fn">try_reduce</a>&lt;F,·R&gt;(
100 ····&amp;mut·self,100 ····&amp;mut·self,
101 ····f:·F101 ····f:·F
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.78.0/core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&gt;::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/ops/try_trait/trait.Try.html#associatedtype.Residual"·title="type[·...·truncated·by·diffoscope;·len:·754,·SHA:·6fb4dfdb6b4da68921c1e7f8b75d99cf293d58318d684a840254ce9576957bea·...·]/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.78.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:·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:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·140,·SHA:·c27972e6fa3464c9476eaa185e8657edb6bb294f148403f3d079285294a9f909·...·]/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·=·Self::<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.78.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.78.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.78.0/core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&gt;::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/ops/try_trait/trait.Try.html#associatedtype.Residual"·title="type[·...·truncated·by·diffoscope;·len:·412,·SHA:·22b8cbb007e5cce82b9d13a65bfa56aa8d83c32541fac25f4d9b3857b0540908·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;&gt;,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iterator_try_reduce</code>&nbsp;<a·href="https://github.com/rust-lang/rust/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:·65b80c848af6e465c8c5aef4ec8d3faaa399d30c8427c9507fda7b3bd1d3ea93·...·]/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.78.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:·bc0d658d56e348823de15386e1cd4ab49109f3a7a055a4573a19391b47071193·...·]/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.78.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:·95a840b532d3d621bde4032d63854eb0a481248e2b4bbb3ef058dbffb4dae4fa·...·]/core/primitive.bool.html">bool</a><div·class="where">where109 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·1018,·SHA:·e61cd6bdd36729cc38e57fcaea2ccb91a23a5acbda3c8986071f19bf1ecfc52a·...·]/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.78.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:·f828c62edd4fe85e217286f359b56c116e14ed18bb292ba1cc13d3ed7146909e·...·]/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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·1172,·SHA:·e64ab74d116d286191ad43d9d9e10411fc011c23724aa806e9a8f9b0be0757e3·...·]/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.78.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:·21d7086b3ce0092e3f7a6a41174339bbd8724e7d186158db4db3385a73d94e8e·...·]/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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·1051,·SHA:·ecc0b8fccd861464760f9ae047ff6ab98c91a1db010cb5fa59a8c2ab883db7c4·...·]/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.78.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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·130,·SHA:·130a13019dc175d02304b4f550157e2f13ac15c2f25a979c74161d10b146ab89·...·]/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:·ac4da3337aac1ec10038e246be9cb719eeb5af1acc709f5a6a25b91900c56f53·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_find"·class="fn">try_find</a>&lt;F,·R&gt;(116 the·first·non-none·result.·<a·href="https://doc.rust-lang.org/1.78.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:·8ced1b10e78750774c5c8ed995ed83dcd13983aa75d329acf8069da106ab9f4a·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_find"·class="fn">try_find</a>&lt;F,·R&gt;(
117 ····&amp;mut·self,117 ····&amp;mut·self,
118 ····f:·F118 ····f:·F
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.78.0/core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&gt;::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/ops/try_trait/trait.Try.html#associatedtype.Residual"·title="type[·...·truncated·by·diffoscope;·len:·626,·SHA:·95f9831257b68862cbcbf54f0ad2ff4e597a4c9f763112d1da8a0897dadcf872·...·]/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.78.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::Iterator::Item">Item</a>)·-&gt;·R,121 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·R,
122 ····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;,122 ····R:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.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.78.0/core/primitive.bool.html">bool</a>&gt;,
123 ····&lt;R·as·<a·class="trait"·href="../../core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&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·returns123 ····&lt;R·as·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&gt;::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/ops/try_trait/trait.Try.html#associatedtype.Residual"·title="type[·...·truncated·by·diffoscope;·len:·412,·SHA:·22b8cbb007e5cce82b9d13a65bfa56aa8d83c32541fac25f4d9b3857b0540908·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;&gt;,</div></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
124 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">where124 the·first·true·result·or·the·first·error.·<a·href="https://doc.rust-lang.org/1.78.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:·fa9d94b216f6e4ce6035b4762e3bf17cb86a0272db0a55a056f05c68bcaeb0da·...·]/core/primitive.usize.html">usize</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.78.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
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:·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">where126 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·1190,·SHA:·882e9e9a037f916d0ed4aa6d749399e6e01ca81811eacfc54a484818cb5d5029·...·]/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.78.0/core/cmp/trait.Ord.html"·title="trait·core::cmp::Ord">Ord</a>,
Max diff block lines reached; 81016/299796 bytes (27.02%) of diff not shown.
293 KB
./usr/share/doc/rust-web-doc/html/alloc/slice/struct.ChunkByMut.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·slice·in·(non-overlapping)·mutable·chunks·separated·by·a·predicate."><title>ChunkByMut·in·alloc::slice·-·Rust</title><script>·if·(window.location.protocol·!==·"file:")·document.write(`<link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/SourceSerif4-Regular-46f98efaafac5295.ttf.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/FiraSans-Regular-018c141bf0843ffd.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/FiraSans-Medium-8f9a781e4970d388.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/SourceCodePro-Regular-562dcc5011b6de7d.ttf.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/SourceCodePro-Semibold-d899c5a5c4aeb14a.ttf.woff2">`)</script><link·rel="stylesheet"·href="../../static.files/normalize-76eba96aa4d2e634.css"><link·rel="stylesheet"·href="../../static.files/rustdoc-35f9e32502181f1e.css"><meta·name="rustdoc-vars"·data-root-path="../../"·data-static-root-path="../../static.files/"·data-current-crate="alloc"·data-themes=""·data-resource-suffix="1.78.0"·data-rustdoc-version="1.78.0"·data-channel="1.78.0"·data-search-js="search-42d8da7a6b9792c2.js"·data-settings-js="settings-4313503d2e1961c2.js"·><script·src="../../static.files/storage-4c98445ec4002617.js"></script><script·defer·src="sidebar-items1.78.0.js"></script><script·defer·src="../../static.files/main-12cf3b4f4f9dc36d.js"></script><noscript><link·rel="stylesheet"·href="../../static.files/noscript-04d5337699b92874.css"></noscript><link·rel="alternate·icon"·type="image/png"·href="../../static.files/favicon-16x16-8b506e7a72182f1c.png"><link·rel="alternate·icon"·type="image/png"·href="../../static.files/favicon-32x32-422f7d1d52889060.png"><link·rel="icon"·type="image/svg+xml"·href="../../static.files/favicon-2c020d218678b618.svg"></head><body·class="rustdoc·struct"><!--[if·lte·IE·11]><div·class="warning">This·old·browser·is·unsupported·and·will·most·likely·display·funky·things.</div><![endif]--><nav·class="mobile-topbar"><button·class="sidebar-menu-toggle"·title="show·sidebar"></button><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-151179464ae7ed46.svg"·alt=""></a></nav><nav·class="sidebar"><div·class="sidebar-crate"><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-151179464ae7ed46.svg"·alt="logo"></a><h2><a·href="../../alloc/index.html">alloc</a><span·class="version">1.78.0</span></h2></div><h2·class="location"><a·href="#">ChunkByMut</a></h2><div·class="sidebar-elems"><section><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">Debug</a></li><li><a·href="#impl-DoubleEndedIterator-for-ChunkByMut%3C'a,+T,+P%3E">DoubleEndedIterator</a></li><li><a·href="#impl-FusedIterator-for-ChunkByMut%3C'a,+T,+P%3E">FusedIterator</a></li><li><a·href="#impl-Iterator-for-ChunkByMut%3C'a,+T,+P%3E">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">!UnwindSafe</a></li><li><a·href="#impl-Freeze-for-ChunkByMut%3C'a,+T,+P%3E">Freeze</a></li><li><a·href="#impl-RefUnwindSafe-for-ChunkByMut%3C'a,+T,+P%3E">RefUnwindSafe</a></li><li><a·href="#impl-Send-for-ChunkByMut%3C'a,+T,+P%3E">Send</a></li><li><a·href="#impl-Sync-for-ChunkByMut%3C'a,+T,+P%3E">Sync</a></li><li><a·href="#impl-Unpin-for-ChunkByMut%3C'a,+T,+P%3E">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">Any</a></li><li><a·href="#impl-Borrow%3CT%3E-for-T">Borrow&lt;T&gt;</a></li><li><a·href="#impl-BorrowMut%3CT%3E-for-T">BorrowMut&lt;T&gt;</a></li><li><a·href="#impl-From%3CT%3E-for-T">From&lt;T&gt;</a></li><li><a·href="#impl-Into%3CU%3E-for-T">Into&lt;U&gt;</a></li><li><a·href="#impl-IntoIterator-for-I">IntoIterator</a></li><li><a·href="#impl-TryFrom%3CU%3E-for-T">TryFrom&lt;U&gt;</a></li><li><a·href="#impl-TryInto%3CU%3E-for-T">TryInto&lt;U&gt;</a></li></ul></section><h2><a·href="index.html">In·alloc::slice</a></h2></div></nav><div·class="sidebar-resizer"></div>1 <!DOCTYPE·html><html·lang="en"><head><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.write(`<link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/SourceSerif4-Regular-46f98efaafac5295.ttf.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/FiraSans-Regular-018c141bf0843ffd.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/FiraSans-Medium-8f9a781e4970d388.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/SourceCodePro-Regular-562dcc5011b6de7d.ttf.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/SourceCodePro-Semibold-d899c5a5c4aeb14a.ttf.woff2">`)</script><link·rel="stylesheet"·href="../../static.files/normalize-76eba96aa4d2e634.css"><link·rel="stylesheet"·href="../../static.files/rustdoc-35f9e32502181f1e.css"><meta·name="rustdoc-vars"·data-root-path="../../"·data-static-root-path="../../static.files/"·data-current-crate="alloc"·data-themes=""·data-resource-suffix="1.78.0"·data-rustdoc-version="1.78.0"·data-channel="1.78.0"·data-search-js="search-42d8da7a6b9792c2.js"·data-settings-js="settings-4313503d2e1961c2.js"·><script·src="../../static.files/storage-4c98445ec4002617.js"></script><script·defer·src="sidebar-items1.78.0.js"></script><script·defer·src="../../static.files/main-12cf3b4f4f9dc36d.js"></script><noscript><link·rel="stylesheet"·href="../../static.files/noscript-04d5337699b92874.css"></noscript><link·rel="alternate·icon"·type="image/png"·href="../../static.files/favicon-16x16-8b506e7a72182f1c.png"><link·rel="alternate·icon"·type="image/png"·href="../../static.files/favicon-32x32-422f7d1d52889060.png"><link·rel="icon"·type="image/svg+xml"·href="../../static.files/favicon-2c020d218678b618.svg"></head><body·class="rustdoc·struct"><!--[if·lte·IE·11]><div·class="warning">This·old·browser·is·unsupported·and·will·most·likely·display·funky·things.</div><![endif]--><nav·class="mobile-topbar"><button·class="sidebar-menu-toggle"·title="show·sidebar"></button><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-151179464ae7ed46.svg"·alt=""></a></nav><nav·class="sidebar"><div·class="sidebar-crate"><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-151179464ae7ed46.svg"·alt="logo"></a><h2><a·href="../../alloc/index.html">alloc</a><span·class="version">1.78.0</span></h2></div><h2·class="location"><a·href="#">ChunkByMut</a></h2><div·class="sidebar-elems"><section><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">Debug</a></li><li><a·href="#impl-DoubleEndedIterator-for-ChunkByMut%3C'a,+T,+P%3E">DoubleEndedIterator</a></li><li><a·href="#impl-FusedIterator-for-ChunkByMut%3C'a,+T,+P%3E">FusedIterator</a></li><li><a·href="#impl-Iterator-for-ChunkByMut%3C'a,+T,+P%3E">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">!UnwindSafe</a></li><li><a·href="#impl-Freeze-for-ChunkByMut%3C'a,+T,+P%3E">Freeze</a></li><li><a·href="#impl-RefUnwindSafe-for-ChunkByMut%3C'a,+T,+P%3E">RefUnwindSafe</a></li><li><a·href="#impl-Send-for-ChunkByMut%3C'a,+T,+P%3E">Send</a></li><li><a·href="#impl-Sync-for-ChunkByMut%3C'a,+T,+P%3E">Sync</a></li><li><a·href="#impl-Unpin-for-ChunkByMut%3C'a,+T,+P%3E">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">Any</a></li><li><a·href="#impl-Borrow%3CT%3E-for-T">Borrow&lt;T&gt;</a></li><li><a·href="#impl-BorrowMut%3CT%3E-for-T">BorrowMut&lt;T&gt;</a></li><li><a·href="#impl-From%3CT%3E-for-T">From&lt;T&gt;</a></li><li><a·href="#impl-Into%3CU%3E-for-T">Into&lt;U&gt;</a></li><li><a·href="#impl-IntoIterator-for-I">IntoIterator</a></li><li><a·href="#impl-TryFrom%3CU%3E-for-T">TryFrom&lt;U&gt;</a></li><li><a·href="#impl-TryInto%3CU%3E-for-T">TryInto&lt;U&gt;</a></li></ul></section><h2><a·href="index.html">In·alloc::slice</a></h2></div></nav><div·class="sidebar-resizer"></div>
2 ····<main><div·class="width-limiter"><nav·class="sub"><form·class="search-form"><span></span><div·id="sidebar-button"·tabindex="-1"><a·href="../../alloc/all.html"·title="show·sidebar"></a></div><input·class="search-input"·name="search"·aria-label="Run·search·in·the·documentation"·autocomplete="off"·spellcheck="false"·placeholder="Click·or·press·‘S’·to·search,·‘?’·for·more·options…"·type="search"><div·id="help-button"·tabindex="-1"><a·href="../../help.html"·title="help">?</a></div><div·id="settings-menu"·tabindex="-1"><a·href="../../settings.html"·title="settings"><img·width="22"·height="22"·alt="Change·settings"·src="../../static.files/wheel-7b819b6101059cd0.svg"></a></div></form></nav><section·id="main-content"·class="content"><div·class="main-heading"><h1>Struct·<a·href="../index.html">alloc</a>::<wbr><a·href="index.html">slice</a>::<wbr><a·class="struct"·href="#">ChunkByMut</a><button·id="copy-path"·title="Copy·item·path·to·clipboard"><img·src="../../static.files/clipboard-7571035ce49a181d.svg"·width="19"·height="18"·alt="Copy·item·path"></button></h1><span·class="out-of-band"><span·class="since"·title="Stable·since·Rust·version·1.77.0">1.77.0</span>···<a·class="src"·href="../../src/core/slice/iter.rs.html#3347">source</a>···<button·id="toggle-all-docs"·title="collapse·all·docs">[<span>&#x2212;</span>]</button></span></div><pre·class="rust·item-decl"><code>pub·struct·ChunkByMut&lt;'a,·T,·P&gt;<div·class="where">where2 ····<main><div·class="width-limiter"><nav·class="sub"><form·class="search-form"><span></span><div·id="sidebar-button"·tabindex="-1"><a·href="../../alloc/all.html"·title="show·sidebar"></a></div><input·class="search-input"·name="search"·aria-label="Run·search·in·the·documentation"·autocomplete="off"·spellcheck="false"·placeholder="Click·or·press·‘S’·to·search,·‘?’·for·more·options…"·type="search"><div·id="help-button"·tabindex="-1"><a·href="../../help.html"·title="help">?</a></div><div·id="settings-menu"·tabindex="-1"><a·href="../../settings.html"·title="settings"><img·width="22"·height="22"·alt="Change·settings"·src="../../static.files/wheel-7b819b6101059cd0.svg"></a></div></form></nav><section·id="main-content"·class="content"><div·class="main-heading"><h1>Struct·<a·href="../index.html">alloc</a>::<wbr><a·href="index.html">slice</a>::<wbr><a·class="struct"·href="#">ChunkByMut</a><button·id="copy-path"·title="Copy·item·path·to·clipboard"><img·src="../../static.files/clipboard-7571035ce49a181d.svg"·width="19"·height="18"·alt="Copy·item·path"></button></h1><span·class="out-of-band"><span·class="since"·title="Stable·since·Rust·version·1.77.0">1.77.0</span>···<a·class="src"·href="https://doc.rust-lang.org/1.78.0/src/core/slice/iter.rs.html#3347">source</a>···<button·id="toggle-all-docs"·title="collapse·all·docs">[<span>&#x2212;</span>]</button></span></div><pre·class="rust·item-decl"><code>pub·struct·ChunkByMut&lt;'a,·T,·P&gt;<div·class="where">where
3 ····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·separated3 ····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
4 by·a·predicate.</p>4 by·a·predicate.</p>
5 <p>This·struct·is·created·by·the·<a·href="../../core/primitive.slice.html#method.chunk_by_mut"·title="method·slice::chunk_by_mut"><code>chunk_by_mut</code></a>·method·on·<a·href="../../core/primitive.slice.html"·title="primitive·slice">slices</a>.</p>5 <p>This·struct·is·created·by·the·<a·href="https://doc.rust-lang.org/1.78.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.78.0/core/primitive.slice.html"·title="primitive·slice">slices</a>.</p>
6 </div></details><h2·id="trait-implementations"·class="section-header">Trait·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"><a·class="src·rightside"·href="../../src/core/slice/iter.rs.html#3421">source</a><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">where6 </div></details><h2·id="trait-implementations"·class="section-header">Trait·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"><a·class="src·rightside"·href="https://doc.rust-lang.org/1.78.0/src/core/slice/iter.rs.html#3421">source</a><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
7 ····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#3422">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:·910,·SHA:·ef0106f2beba63b5d5b089e94ad10b8e8a2175f490d3523b97506882d3555103·...·]/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">where7 ····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.78.0/src/core/slice/iter.rs.html#3422">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:·1045,·SHA:·26004977b4170e4c327452b06cd957c7894b76aa4f607f2c9d02a1470b18f3b8·...·]/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
8 ····T:·'a,8 ····T:·'a,
9 ····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:·841ce3c683515ae11a35f12335296579a99ec1fa4e615a3497ab7602a6156fb8·...·]/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 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(<a·class="primitive"·href="https://doc.rust-lang.org/1.78.0/core/primitive.reference.html">&amp;T</a>,·<a·class="primitive"·href="https:[·...·truncated·by·diffoscope;·len:·4898,·SHA:·1de54bbd6641e27de3e62e4f0ea12e1866ff075a9b4285cb50d0b7b865365953·...·]/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.78.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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(B,·Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.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.78.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.7[·...·truncated·by·diffoscope;·len:·3,·SHA:·7b1bd53949b752d143d871408483b5382371b5bc48d195d0c040ec93cfa2748b·...·]/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:·74b709f2c818a4eda5d85ea863eb2d8af72c87564dbab2746e67feafb0cbb9a3·...·]/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.78.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:·d66ed7e195a53e9945339ef1976aed455dcf80228d8e5b7b0c69a64c3983fea1·...·]/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.78.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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(B,·Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/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:·f8bdf1e28866c7668477ab391452c7cfa7fd52cc69b633e782a157931421b39b·...·]/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.78.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:·c264047794019a6dcf05728ba6a6ee1f8f07c7209958b3366ba94546b527ecdc·...·]/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.78.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:·725,·SHA:·a1991c54acf9fd40bdf39a6178bf2bf21aac4f86aee17d2625d9b40f0b873084·...·]/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">where18 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·887,·SHA:·5799b97dd4add3d3f3a2356362b6275b536e042e5e3e8dedc4d1aa6abce892b6·...·]/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
19 ····T:·'a,19 ····T:·'a,
20 ····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:·4134,·SHA:·7cac5fc35c455d25ef62e9dd5fa091edb9eca2a5851943aa42d4b35b95c1182d·...·]/core/primitive.usize.html">usize</a>&gt;(20 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(<a·class="primitive"·href="https://doc.rust-lang.org/1.78.0/core/primitive.reference.html">&amp;T</a>,·<a·class="primitive"·href="https:[·...·truncated·by·diffoscope;·len:·4863,·SHA:·7e8583db2c3636ca2d1cf0fd0c7117275f1917cae13d5241aea9522ad3bebe0f·...·]/core/primitive.usize.html">usize</a>&gt;(
21 ····&amp;mut·self21 ····&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.78.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.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title=[·...·truncated·by·diffoscope;·len:·381,·SHA:·88c48923c9b7ea5cc47c1087c60e09656e81d4671c58071ba2bef826335388bc·...·]/core/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:·602d17b58d1cf716882ddc867fc66cfda4f899bef17b038a48553e9133f60097·...·]/core/primitive.usize.html">usize</a><div·class="where">where23 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></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:·89791450da70cbd536c3cf8fbf2dd9891668362f9a252d3ee098222d19960bae·...·]/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:·f92dde8c48ff35deb05a51084054ecdf425850256e0755fd705ef0e8dee5a42a·...·]/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.78.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:·5acc2bcc91ab2687c8137eaa20bd4287e0b901b846fa877b4a1d59df04bc4956·...·]/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.78.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:·5667b9b6c9778ff3b9d23ed0a110e7ab9d3fccc786fdcaca8c17edf996236439·...·]/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.78.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:·e83c903581753673e083ce8dd809879a2fc81ab3050eb6db267d7fa26b15e035·...·]/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.78.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:·1c6bb9803ee8832ebd4c28a08a952178165595b6870cf35d3c89454b9da828b2·...·]/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.78.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.78.0/core/iter/traits/it[·...·truncated·by·diffoscope;·len:·1329,·SHA:·d9299c8edc606ed82f24d61ce441bec451141d684c2a9a75074f5b19c57f196c·...·]/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.78.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:·c1b5e692e89c9c809075ee8ee72fb15a9ec46c075b08450e1f707d672a224750·...·]/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.78.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:·98627729f77dcf1c9d258f343354ba600b7134c6b3929080f231e8de7155b70b·...·]/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.78.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.78.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.78.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:·d6282409add0999f2130eb6bbe6d0473ce96bf2544799e8bc22156f3c2d2e0dd·...·]/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.78.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:·7301b6beba7b6885849be90a625df68ef739a5374af456c51fe2e81d91a25363·...·]/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.78.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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::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:·fb4c9589a16c7b6d697c109d1193d2f1e763e5dd967101c2fd92b32416972229·...·]/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.78.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:·98f6effefa44d759c249143d83623f0055d937382bfc398b7e1f5e92cd413657·...·]/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.78.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:·7abbad666ec88a1053b8aca2a481d629a3ef3596eddb570c381205fa2d859a52·...·]/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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·916,·SHA:·30d0b2a76513c5a880e9aee43e92b18805845cfcfe5783f62dc090167a439e63·...·]/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.78.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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·140,·SHA:·752f473b57e7444ebfddf5ea7fd40a332e83ec55524a6c31b5ee0f82a5dea819·...·]/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:·7da07154834a15b8ae55b4fd41479da070ccbd27e071909f81698570c306a081·...·]/core/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.78.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:·76aa2ad154f88085ee3f8a22721a7e6812680bac785d19059532407f50da1801·...·]/core/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.78.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:·c89169e5bf1c4724c7b411e568b6dad6475896f2606f557b3d708359ef71f5cc·...·]/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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·1052,·SHA:·110b47c7083083d565fcfc89337fddc8e5c87e81b2f720f3f7b0ded55e8500fb·...·]/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.78.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:·53634008856676c70c32b501f7ec498c1f86d123cc9b5b898256a69895ff31fc·...·]/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.78.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:·8464264e074dde5d84f0414ab3b5b2d8da83f3c9e3ca04c45458241580a8c80d·...·]/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.78.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.78.0/core/iter/adapte[·...·truncated·by·diffoscope;·len:·175,·SHA:·16fe7225bf05b478e2828b347c3d23ded9a22f89d8887a2c65d9f7b3faf1b0e7·...·]/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:·77dd41e041d66c618d306e900a9159cf1b00478b8f37e5692be62119a1d4fcda·...·]/core/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.78.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:·00ccbb673c11ed48d8c6aa2a3f8984fb298202e7bccfa42f1ac21290fcc0fb06·...·]/core/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.78.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:·c18326af66652e52fa627bfd0312af7fa2ad0ddc162b12a46e61047a031b0264·...·]/core/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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·1234,·SHA:·3b805567411cdcebed740f9e8d400dbe7fb487504f40e284544a140155090fdf·...·]/core/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.78.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:·39eeddf219b211245393e51a591d5064c740fa9be49d88883d8a6474679741ad·...·]/core/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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·1058,·SHA:·b390dbdda8d7e93604b5ecd906a93efd03fe19bdaf41cf12893fd361bf974307·...·]/core/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.78.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:·9369fa85b74ff841f7401949cadba6dfbbbeead2a99568f20dcfd5aab20d61ab·...·]/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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·1163,·SHA:·5772149166d344bf8fa5ebbd9db8693a8f2e5f031c50338e8f1523ef72f814d6·...·]/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:·a25e81a74cc82c1837477e2b0cea682fff9f43550640901b8010ac501ca69e3d·...·]/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.78.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:·6216516fe581c401abda3c95818192e8f030e2008c9bbdbaafebba16f33ea9bd·...·]/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.78.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:·de8f1023275132502c1569b0ef9a557dc98eaf60aae97cdb916e52f9f55100aa·...·]/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.78.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:·485843399c56e24bdf020ff0610d0ce1f62fbac5530d9880a1a7417105e3d70f·...·]/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.78.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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(<a·class="primitive"·href="https://doc.rust-lang.org/1.78.0/core/primitive.reference.html">&amp;mut·St</a>,·Self::<a·class="associatedty[·...·truncated·by·diffoscope;·len:·449,·SHA:·f12c268a8a8111b9e7126ad78bf5523a63733caa63d187c4fe792309ea41acdf·...·]/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:·8b31595e3cee3022819032aac82e3df712188a2a6dcc20da6939262e5e528591·...·]/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.78.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.78.0/core/iter/trai[·...·truncated·by·diffoscope;·len:·690,·SHA:·371190e5c1bf9b7dde6e84447965a69946212b977b9eb6d89048fbe34c5dda1c·...·]/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.78.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.78.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:·9b6a337a3ad68c2a987b52450c153f87a04a8ed9e83603d26077fe6e70d61edf·...·]/core/iter/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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·976,·SHA:·2a9182f6fe88e0b8a9b1ae1f46cace940cc0b8736033c354c0f0ccbf1c196e7a·...·]/core/iter/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.78.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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;[Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtyp[·...·truncated·by·diffoscope;·len:·135,·SHA:·0b06a6094d42ccbc8bce5b01c4383961fe7f1967f05e4c9f1ff33e71e425fb26·...·]/core/primitive.array.html">N</a>])·-&gt;·R,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iter_map_windows</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/87155">#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.78.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:·238f6b49b3e28d725c57040edaa60bfbb34f140155e6af1d30eab52da1c7274f·...·]/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.78.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:·0d33056cee8a4f9b70b573c0adecc2f3599a2f8d9fa9f2c2044e9118ab134f73·...·]/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:·cfd3edf89fe5aca24b994f83b0d7da765620394e35140e694d98233d4d92481b·...·]/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.78.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.78.0/core/op[·...·truncated·by·diffoscope;·len:·841,·SHA:·9cba1b175fb3726d7f1f01da9be7c1a56568a68e4ce7915a468b730902daf8d3·...·]/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.78.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:·772,·SHA:·31d2052382378512fa905c6d5297d384eac7b7f126141ce561719c0e27cc9d39·...·]/core/primitive.reference.html">&amp;mut·Self</a><div·class="where">where70 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·934,·SHA:·ea20d2e0fe9388580ea08100baa9120b5e9b6cb48f43fc846f15db8b9649e7f6·...·]/core/primitive.reference.html">&amp;mut·Self</a><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:·98760b16b1ed91f9558e6e2637724a4608316181d5f6f4d236e896a83eca9af9·...·]/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.78.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.78.0/core/it[·...·truncated·by·diffoscope;·len:·523,·SHA:·97064c705f6f4bdf74469c54fabcf580d21893127d1b4cd9a9c1018a717ef153·...·]/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.78.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.78.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:·e5d524e874326d0b9b733f5ee809c6595cde869afab0cc3d4ba8454093f420da·...·]/core/primitive.reference.html">&amp;mut·E</a><div·class="where">where73 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.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.78.0/core/iter/tr[·...·truncated·by·diffoscope;·len:·728,·SHA:·01937c2dc314c259495665570ae249c94b4a5b0719718f5f1188e6fc64ecf487·...·]/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.78.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.78.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:·b0297783e056393a542c4058b42c18523a86c961c1b6ce3bc94342c1a2c10c58·...·]/core/primitive.tuple.html">(B,·B)</a><div·class="where">where75 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></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:·00bd47017b1bdd1bbe2c3fc932d955a8aa2f7f5eff8c00e3001ae28a982a5883·...·]/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.78.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.78.0/core/default/trait.Default.html"·title="trait·core::default::Default">Default</a>·+·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/collect/trait.Extend.html"·title="trait·core::iter::traits::collec[·...·truncated·by·diffoscope;·len:·95,·SHA:·8b3be1d0042cae0550f865faf5849221240bdf04eb1b2107605b72d48c3ad29c·...·]/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:·5a1bcc1ddfc5fccf50d61bf2b8879dae247aa12c0b23ba2f437fd2a345cabac7·...·]/core/primitive.usize.html">usize</a><div·class="where">where78 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·995,·SHA:·bec3765fdab56713186e2454cd84738b5b28e3280a2f3d5a25cefdbc3089b520·...·]/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.78.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>·+·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/double_ended/trait.DoubleEndedIterator.html"·title="trait·core::iter::trai[·...·truncated·by·diffoscope;·len:·132,·SHA:·e5b2cf5f56946ede1e190ed09879c5821e2de04cf8e5d145142eeb40c6340982·...·]/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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(<a·class="primitive"·href="https://doc.rust-lang.org/1.78.0/core/primitive.reference.html">&amp;T</a>)·-&gt;·<a·class="primitive"·href="[·...·truncated·by·diffoscope;·len:·32,·SHA:·63d052a8ced32bf927ffadd7e884c08caf4970e85dfdf6be0e568d49b174da96·...·]/core/primitive.bool.html">bool</a>,</div></h4></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:·97056c44eac6a0f986fb2c8edec37302cc06edf44a6c6f7153a5d8623d8d6c0d·...·]/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.78.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:·0c224636c18baa273f69de21f90083317f2ea0b7367a3f0d0f1c0ace55a36f79·...·]/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.78.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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·135,·SHA:·51ff5f5c7ebd8440623ea71b125c5a5837e809e308fe1a13fbe19cddb941dbd9·...·]/core/primitive.bool.html">bool</a>,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iter_is_partitioned</code>&nbsp;<a·href="https://github.com/rust-lang/rust/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:·6f406a351b93047f56fa70265a6bf28ec6874f75cd6cc5a39d51c7af462f2992·...·]/core/iter/traits/iterator/trait.Iterator.html#method.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.78.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:·2c74873f4e5ba70004a1c7edd1cc3f9e2d91271295dd1591e2d26848df4c02ba·...·]/core/iter/traits/iterator/trait.Iterator.html#method.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.78.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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(B,·Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.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.78.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:·eecdce021399d206eb3ef5af12ee7663b4eb0dca55b0f411c7fa66f605b6b2e2·...·]/core/iter/traits/iterator/trait.Iterator.html#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.78.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:·52912e82c4b0a760d06f77eb4ee3a59ba70dd76cb532954900c73ae94c652674·...·]/core/iter/traits/iterator/trait.Iterator.html#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.78.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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.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.78.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.78.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:·ffdacd6b524bc823efebbf23dc0f77317a07fe9c8b691f2ea18db7aa0c08b146·...·]/core/iter/traits/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.78.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:·1d6c4809cea8748e901d3f94777f450d430f3161f6ac05ed1c178d9327f966a3·...·]/core/iter/traits/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.78.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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(B,·Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::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:·dbe3a08fe63abd47570741e71208c31aaf51152feac5917db07665a1f56bb3e3·...·]/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.78.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:·b60215068a6d9721be05f81098c51167d7138c4042f140cad42f77c4df43f597·...·]/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.78.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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·352,·SHA:·e7c3c296abe2c0a183967153e4ae7fd50bafa2ae7088e3e78b3b48fee253adc6·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::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:·a9dce8bb557b5a11426bf2ffcbd5eea7c6c870833e3ee5bb072dcaaa11687b0c·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_reduce"·class="fn">try_reduce</a>&lt;F,·R&gt;(100 operation.·<a·href="https://doc.rust-lang.org/1.78.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:·7a18fdd041b1a001b4a8feb289ee127fd9240232239269eb35dc3b8f74783ec9·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_reduce"·class="fn">try_reduce</a>&lt;F,·R&gt;(
101 ····&amp;mut·self,101 ····&amp;mut·self,
102 ····f:·F102 ····f:·F
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.78.0/core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&gt;::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/ops/try_trait/trait.Try.html#associatedtype.Residual"·title="type[·...·truncated·by·diffoscope;·len:·754,·SHA:·6fb4dfdb6b4da68921c1e7f8b75d99cf293d58318d684a840254ce9576957bea·...·]/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.78.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:·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:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·140,·SHA:·c27972e6fa3464c9476eaa185e8657edb6bb294f148403f3d079285294a9f909·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·R,
106 ····R:·<a·class="trait"·href="../../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;,106 ····R:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.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.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;,
107 ····&lt;R·as·<a·class="trait"·href="../../core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&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·the107 ····&lt;R·as·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&gt;::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/ops/try_trait/trait.Try.html#associatedtype.Residual"·title="type[·...·truncated·by·diffoscope;·len:·412,·SHA:·22b8cbb007e5cce82b9d13a65bfa56aa8d83c32541fac25f4d9b3857b0540908·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;&gt;,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iterator_try_reduce</code>&nbsp;<a·href="https://github.com/rust-lang/rust/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
108 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:·65b80c848af6e465c8c5aef4ec8d3faaa399d30c8427c9507fda7b3bd1d3ea93·...·]/core/primitive.bool.html">bool</a><div·class="where">where108 closure·returns·a·failure,·the·failure·is·propagated·back·to·the·caller·immediately.·<a·href="https://doc.rust-lang.org/1.78.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:·bc0d658d56e348823de15386e1cd4ab49109f3a7a055a4573a19391b47071193·...·]/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.78.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:·829,·SHA:·95a840b532d3d621bde4032d63854eb0a481248e2b4bbb3ef058dbffb4dae4fa·...·]/core/primitive.bool.html">bool</a><div·class="where">where110 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·1018,·SHA:·e61cd6bdd36729cc38e57fcaea2ccb91a23a5acbda3c8986071f19bf1ecfc52a·...·]/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.78.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:·956,·SHA:·f828c62edd4fe85e217286f359b56c116e14ed18bb292ba1cc13d3ed7146909e·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;<div·class="where">where112 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·1172,·SHA:·e64ab74d116d286191ad43d9d9e10411fc011c23724aa806e9a8f9b0be0757e3·...·]/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.78.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;Self::<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:·21d7086b3ce0092e3f7a6a41174339bbd8724e7d186158db4db3385a73d94e8e·...·]/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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·1051,·SHA:·ecc0b8fccd861464760f9ae047ff6ab98c91a1db010cb5fa59a8c2ab883db7c4·...·]/core/option/enum.Option.html"·title="enum·core::option::Option">Option</a>&lt;B&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.78.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:·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·returns116 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·130,·SHA:·130a13019dc175d02304b4f550157e2f13ac15c2f25a979c74161d10b146ab89·...·]/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.try_find"·class="method·trait-impl"><a·class="src·rightside"·href="../../src/core/iter[·...·truncated·by·diffoscope;·len:·134,·SHA:·ac4da3337aac1ec10038e246be9cb719eeb5af1acc709f5a6a25b91900c56f53·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_find"·class="fn">try_find</a>&lt;F,·R&gt;(117 the·first·non-none·result.·<a·href="https://doc.rust-lang.org/1.78.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:·8ced1b10e78750774c5c8ed995ed83dcd13983aa75d329acf8069da106ab9f4a·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_find"·class="fn">try_find</a>&lt;F,·R&gt;(
118 ····&amp;mut·self,118 ····&amp;mut·self,
119 ····f:·F119 ····f:·F
120 )·-&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">where120 )·-&gt;·&lt;&lt;R·as·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&gt;::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/ops/try_trait/trait.Try.html#associatedtype.Residual"·title="type[·...·truncated·by·diffoscope;·len:·626,·SHA:·95f9831257b68862cbcbf54f0ad2ff4e597a4c9f763112d1da8a0897dadcf872·...·]/core/ops/try_trait/trait.Residual.html#associatedtype.TryType"·title="type·core::ops::try_trait::Residual::TryType">TryType</a><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.78.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;·R,122 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·R,
123 ····R:·<a·class="trait"·href="../../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.78.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.78.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.78.0/core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&gt;::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/ops/try_trait/trait.Try.html#associatedtype.Residual"·title="type[·...·truncated·by·diffoscope;·len:·412,·SHA:·22b8cbb007e5cce82b9d13a65bfa56aa8d83c32541fac25f4d9b3857b0540908·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;&gt;,</div></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.78.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:·fa9d94b216f6e4ce6035b4762e3bf17cb86a0272db0a55a056f05c68bcaeb0da·...·]/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.78.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:·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">where127 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·1190,·SHA:·882e9e9a037f916d0ed4aa6d749399e6e01ca81811eacfc54a484818cb5d5029·...·]/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; 80496/299518 bytes (26.88%) of diff not shown.
305 KB
./usr/share/doc/rust-web-doc/html/alloc/slice/struct.Chunks.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·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.write(`<link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/SourceSerif4-Regular-46f98efaafac5295.ttf.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/FiraSans-Regular-018c141bf0843ffd.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/FiraSans-Medium-8f9a781e4970d388.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/SourceCodePro-Regular-562dcc5011b6de7d.ttf.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/SourceCodePro-Semibold-d899c5a5c4aeb14a.ttf.woff2">`)</script><link·rel="stylesheet"·href="../../static.files/normalize-76eba96aa4d2e634.css"><link·rel="stylesheet"·href="../../static.files/rustdoc-35f9e32502181f1e.css"><meta·name="rustdoc-vars"·data-root-path="../../"·data-static-root-path="../../static.files/"·data-current-crate="alloc"·data-themes=""·data-resource-suffix="1.78.0"·data-rustdoc-version="1.78.0"·data-channel="1.78.0"·data-search-js="search-42d8da7a6b9792c2.js"·data-settings-js="settings-4313503d2e1961c2.js"·><script·src="../../static.files/storage-4c98445ec4002617.js"></script><script·defer·src="sidebar-items1.78.0.js"></script><script·defer·src="../../static.files/main-12cf3b4f4f9dc36d.js"></script><noscript><link·rel="stylesheet"·href="../../static.files/noscript-04d5337699b92874.css"></noscript><link·rel="alternate·icon"·type="image/png"·href="../../static.files/favicon-16x16-8b506e7a72182f1c.png"><link·rel="alternate·icon"·type="image/png"·href="../../static.files/favicon-32x32-422f7d1d52889060.png"><link·rel="icon"·type="image/svg+xml"·href="../../static.files/favicon-2c020d218678b618.svg"></head><body·class="rustdoc·struct"><!--[if·lte·IE·11]><div·class="warning">This·old·browser·is·unsupported·and·will·most·likely·display·funky·things.</div><![endif]--><nav·class="mobile-topbar"><button·class="sidebar-menu-toggle"·title="show·sidebar"></button><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-151179464ae7ed46.svg"·alt=""></a></nav><nav·class="sidebar"><div·class="sidebar-crate"><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-151179464ae7ed46.svg"·alt="logo"></a><h2><a·href="../../alloc/index.html">alloc</a><span·class="version">1.78.0</span></h2></div><h2·class="location"><a·href="#">Chunks</a></h2><div·class="sidebar-elems"><section><h3><a·href="#trait-implementations">Trait·Implementations</a></h3><ul·class="block·trait-implementation"><li><a·href="#impl-Clone-for-Chunks%3C'_,+T%3E">Clone</a></li><li><a·href="#impl-Debug-for-Chunks%3C'a,+T%3E">Debug</a></li><li><a·href="#impl-DoubleEndedIterator-for-Chunks%3C'a,+T%3E">DoubleEndedIterator</a></li><li><a·href="#impl-ExactSizeIterator-for-Chunks%3C'_,+T%3E">ExactSizeIterator</a></li><li><a·href="#impl-FusedIterator-for-Chunks%3C'_,+T%3E">FusedIterator</a></li><li><a·href="#impl-Iterator-for-Chunks%3C'a,+T%3E">Iterator</a></li><li><a·href="#impl-TrustedLen-for-Chunks%3C'_,+T%3E">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">Freeze</a></li><li><a·href="#impl-RefUnwindSafe-for-Chunks%3C'a,+T%3E">RefUnwindSafe</a></li><li><a·href="#impl-Send-for-Chunks%3C'a,+T%3E">Send</a></li><li><a·href="#impl-Sync-for-Chunks%3C'a,+T%3E">Sync</a></li><li><a·href="#impl-Unpin-for-Chunks%3C'a,+T%3E">Unpin</a></li><li><a·href="#impl-UnwindSafe-for-Chunks%3C'a,+T%3E">UnwindSafe</a></li></ul><h3><a·href="#blanket-implementations">Blanket·Implementations</a></h3><ul·class="block·blanket-implementation"><li><a·href="#impl-Any-for-T">Any</a></li><li><a·href="#impl-Borrow%3CT%3E-for-T">Borrow&lt;T&gt;</a></li><li><a·href="#impl-BorrowMut%3CT%3E-for-T">BorrowMut&lt;T&gt;</a></li><li><a·href="#impl-From%3CT%3E-for-T">From&lt;T&gt;</a></li><li><a·href="#impl-Into%3CU%3E-for-T">Into&lt;U&gt;</a></li><li><a·href="#impl-IntoIterator-for-I">IntoIterator</a></li><li><a·href="#impl-ToOwned-for-T">ToOwned</a></li><li><a·href="#impl-TryFrom%3CU%3E-for-T">TryFrom&lt;U&gt;</a></li><li><a·href="#impl-TryInto%3CU%3E-for-T">TryInto&lt;U&gt;</a></li></ul></section><h2><a·href="index.html">In·alloc::slice</a></h2></div></nav><div·class="sidebar-resizer"></div>1 <!DOCTYPE·html><html·lang="en"><head><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.write(`<link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/SourceSerif4-Regular-46f98efaafac5295.ttf.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/FiraSans-Regular-018c141bf0843ffd.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/FiraSans-Medium-8f9a781e4970d388.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/SourceCodePro-Regular-562dcc5011b6de7d.ttf.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/SourceCodePro-Semibold-d899c5a5c4aeb14a.ttf.woff2">`)</script><link·rel="stylesheet"·href="../../static.files/normalize-76eba96aa4d2e634.css"><link·rel="stylesheet"·href="../../static.files/rustdoc-35f9e32502181f1e.css"><meta·name="rustdoc-vars"·data-root-path="../../"·data-static-root-path="../../static.files/"·data-current-crate="alloc"·data-themes=""·data-resource-suffix="1.78.0"·data-rustdoc-version="1.78.0"·data-channel="1.78.0"·data-search-js="search-42d8da7a6b9792c2.js"·data-settings-js="settings-4313503d2e1961c2.js"·><script·src="../../static.files/storage-4c98445ec4002617.js"></script><script·defer·src="sidebar-items1.78.0.js"></script><script·defer·src="../../static.files/main-12cf3b4f4f9dc36d.js"></script><noscript><link·rel="stylesheet"·href="../../static.files/noscript-04d5337699b92874.css"></noscript><link·rel="alternate·icon"·type="image/png"·href="../../static.files/favicon-16x16-8b506e7a72182f1c.png"><link·rel="alternate·icon"·type="image/png"·href="../../static.files/favicon-32x32-422f7d1d52889060.png"><link·rel="icon"·type="image/svg+xml"·href="../../static.files/favicon-2c020d218678b618.svg"></head><body·class="rustdoc·struct"><!--[if·lte·IE·11]><div·class="warning">This·old·browser·is·unsupported·and·will·most·likely·display·funky·things.</div><![endif]--><nav·class="mobile-topbar"><button·class="sidebar-menu-toggle"·title="show·sidebar"></button><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-151179464ae7ed46.svg"·alt=""></a></nav><nav·class="sidebar"><div·class="sidebar-crate"><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-151179464ae7ed46.svg"·alt="logo"></a><h2><a·href="../../alloc/index.html">alloc</a><span·class="version">1.78.0</span></h2></div><h2·class="location"><a·href="#">Chunks</a></h2><div·class="sidebar-elems"><section><h3><a·href="#trait-implementations">Trait·Implementations</a></h3><ul·class="block·trait-implementation"><li><a·href="#impl-Clone-for-Chunks%3C'_,+T%3E">Clone</a></li><li><a·href="#impl-Debug-for-Chunks%3C'a,+T%3E">Debug</a></li><li><a·href="#impl-DoubleEndedIterator-for-Chunks%3C'a,+T%3E">DoubleEndedIterator</a></li><li><a·href="#impl-ExactSizeIterator-for-Chunks%3C'_,+T%3E">ExactSizeIterator</a></li><li><a·href="#impl-FusedIterator-for-Chunks%3C'_,+T%3E">FusedIterator</a></li><li><a·href="#impl-Iterator-for-Chunks%3C'a,+T%3E">Iterator</a></li><li><a·href="#impl-TrustedLen-for-Chunks%3C'_,+T%3E">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">Freeze</a></li><li><a·href="#impl-RefUnwindSafe-for-Chunks%3C'a,+T%3E">RefUnwindSafe</a></li><li><a·href="#impl-Send-for-Chunks%3C'a,+T%3E">Send</a></li><li><a·href="#impl-Sync-for-Chunks%3C'a,+T%3E">Sync</a></li><li><a·href="#impl-Unpin-for-Chunks%3C'a,+T%3E">Unpin</a></li><li><a·href="#impl-UnwindSafe-for-Chunks%3C'a,+T%3E">UnwindSafe</a></li></ul><h3><a·href="#blanket-implementations">Blanket·Implementations</a></h3><ul·class="block·blanket-implementation"><li><a·href="#impl-Any-for-T">Any</a></li><li><a·href="#impl-Borrow%3CT%3E-for-T">Borrow&lt;T&gt;</a></li><li><a·href="#impl-BorrowMut%3CT%3E-for-T">BorrowMut&lt;T&gt;</a></li><li><a·href="#impl-From%3CT%3E-for-T">From&lt;T&gt;</a></li><li><a·href="#impl-Into%3CU%3E-for-T">Into&lt;U&gt;</a></li><li><a·href="#impl-IntoIterator-for-I">IntoIterator</a></li><li><a·href="#impl-ToOwned-for-T">ToOwned</a></li><li><a·href="#impl-TryFrom%3CU%3E-for-T">TryFrom&lt;U&gt;</a></li><li><a·href="#impl-TryInto%3CU%3E-for-T">TryInto&lt;U&gt;</a></li></ul></section><h2><a·href="index.html">In·alloc::slice</a></h2></div></nav><div·class="sidebar-resizer"></div>
2 ····<main><div·class="width-limiter"><nav·class="sub"><form·class="search-form"><span></span><div·id="sidebar-button"·tabindex="-1"><a·href="../../alloc/all.html"·title="show·sidebar"></a></div><input·class="search-input"·name="search"·aria-label="Run·search·in·the·documentation"·autocomplete="off"·spellcheck="false"·placeholder="Click·or·press·‘S’·to·search,·‘?’·for·more·options…"·type="search"><div·id="help-button"·tabindex="-1"><a·href="../../help.html"·title="help">?</a></div><div·id="settings-menu"·tabindex="-1"><a·href="../../settings.html"·title="settings"><img·width="22"·height="22"·alt="Change·settings"·src="../../static.files/wheel-7b819b6101059cd0.svg"></a></div></form></nav><section·id="main-content"·class="content"><div·class="main-heading"><h1>Struct·<a·href="../index.html">alloc</a>::<wbr><a·href="index.html">slice</a>::<wbr><a·class="struct"·href="#">Chunks</a><button·id="copy-path"·title="Copy·item·path·to·clipboard"><img·src="../../static.files/clipboard-7571035ce49a181d.svg"·width="19"·height="18"·alt="Copy·item·path"></button></h1><span·class="out-of-band"><span·class="since"·title="Stable·since·Rust·version·1.0.0">1.0.0</span>···<a·class="src"·href="../../src/core/slice/iter.rs.html#1456">source</a>···<button·id="toggle-all-docs"·title="collapse·all·docs">[<span>&#x2212;</span>]</button></span></div><pre·class="rust·item-decl"><code>pub·struct·Chunks&lt;'a,·T&gt;<div·class="where">where2 ····<main><div·class="width-limiter"><nav·class="sub"><form·class="search-form"><span></span><div·id="sidebar-button"·tabindex="-1"><a·href="../../alloc/all.html"·title="show·sidebar"></a></div><input·class="search-input"·name="search"·aria-label="Run·search·in·the·documentation"·autocomplete="off"·spellcheck="false"·placeholder="Click·or·press·‘S’·to·search,·‘?’·for·more·options…"·type="search"><div·id="help-button"·tabindex="-1"><a·href="../../help.html"·title="help">?</a></div><div·id="settings-menu"·tabindex="-1"><a·href="../../settings.html"·title="settings"><img·width="22"·height="22"·alt="Change·settings"·src="../../static.files/wheel-7b819b6101059cd0.svg"></a></div></form></nav><section·id="main-content"·class="content"><div·class="main-heading"><h1>Struct·<a·href="../index.html">alloc</a>::<wbr><a·href="index.html">slice</a>::<wbr><a·class="struct"·href="#">Chunks</a><button·id="copy-path"·title="Copy·item·path·to·clipboard"><img·src="../../static.files/clipboard-7571035ce49a181d.svg"·width="19"·height="18"·alt="Copy·item·path"></button></h1><span·class="out-of-band"><span·class="since"·title="Stable·since·Rust·version·1.0.0">1.0.0</span>···<a·class="src"·href="https://doc.rust-lang.org/1.78.0/src/core/slice/iter.rs.html#1456">source</a>···<button·id="toggle-all-docs"·title="collapse·all·docs">[<span>&#x2212;</span>]</button></span></div><pre·class="rust·item-decl"><code>pub·struct·Chunks&lt;'a,·T&gt;<div·class="where">where
3 ····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·a3 ····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
4 time),·starting·at·the·beginning·of·the·slice.</p>4 time),·starting·at·the·beginning·of·the·slice.</p>
5 <p>When·the·slice·len·is·not·evenly·divided·by·the·chunk·size,·the·last·slice5 <p>When·the·slice·len·is·not·evenly·divided·by·the·chunk·size,·the·last·slice
6 of·the·iteration·will·be·the·remainder.</p>6 of·the·iteration·will·be·the·remainder.</p>
7 <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>7 <p>This·struct·is·created·by·the·<a·href="https://doc.rust-lang.org/1.78.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.78.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>iter·=·slice.chunks(<span·class="number">2</span>);</code></pre><a·class="test-arrow"·target="_blank"·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+iter+=+slice.chunks(2);%0A%7D&amp;edition=2021">Run</a></div>10 <span·class="kw">let·</span>iter·=·slice.chunks(<span·class="number">2</span>);</code></pre><a·class="test-arrow"·target="_blank"·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+iter+=+slice.chunks(2);%0A%7D&amp;edition=2021">Run</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-Chunks%3C'_,+T%3E"·class="impl"><a·class="src·rightside"·href="../../src/core/slice/iter.rs.html#1470">source</a><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</a>·for[·...·truncated·by·diffoscope;·len:·1659,·SHA:·8ba8d2cb547242c475e374af686e611b779b6eb0d4d2dc3ed618c92b74e65239·...·]/src/core/slice/iter.rs.html#1453">source</a><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">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-Chunks%3C'_,+T%3E"·class="impl"><a·class="src·rightside"·href="https://doc.rust-lang.org/1.78.0/src/core/slice/iter.rs.html#1470">source</a><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.78.0/core/clone/trait.Clon[·...·truncated·by·diffoscope;·len:·1929,·SHA:·5b89966e359bd6179f3385cb67f84fadedf56622e8a283bb6cfc67946a091426·...·]/src/core/slice/iter.rs.html#1453">source</a><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
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#1453">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:·5049,·SHA:·13c8281a989ac0ec07ad1e86cee228f94321b2cdca96933ab66e8afa2022884f·...·]/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.78.0/src/core/slice/iter.rs.html#1453">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:·5778,·SHA:·9f2f687aeb7ee39271ea8054ae22e3add704af22e664fe7a6b4e14f105da1d99·...·]/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.78.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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(B,·Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.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.78.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.7[·...·truncated·by·diffoscope;·len:·3,·SHA:·7b1bd53949b752d143d871408483b5382371b5bc48d195d0c040ec93cfa2748b·...·]/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:·74b709f2c818a4eda5d85ea863eb2d8af72c87564dbab2746e67feafb0cbb9a3·...·]/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.78.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:·d66ed7e195a53e9945339ef1976aed455dcf80228d8e5b7b0c69a64c3983fea1·...·]/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.78.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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(B,·Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/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:·f8bdf1e28866c7668477ab391452c7cfa7fd52cc69b633e782a157931421b39b·...·]/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.78.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:·c264047794019a6dcf05728ba6a6ee1f8f07c7209958b3366ba94546b527ecdc·...·]/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.78.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:·8719,·SHA:·1ab6fa19d0d203fe02361a19228f700be0711c4cdf801dc8a65ab5b6e901ed93·...·]/core/primitive.usize.html">usize</a>&gt;(21 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·10042,·SHA:·65d4bb30b7bd7b34f04e2394b4331825644048aa1b353f1ef468b74fa5b132e0·...·]/core/primitive.usize.html">usize</a>&gt;(
22 ····&amp;mut·self22 ····&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.78.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.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title=[·...·truncated·by·diffoscope;·len:·381,·SHA:·88c48923c9b7ea5cc47c1087c60e09656e81d4671c58071ba2bef826335388bc·...·]/core/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:·35097ac20cb94a94d329a7511e21173c3e63fd8ce0a6d69b63b12136ae10fe6d·...·]/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.78.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></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:·3b082a2bc331439bfa16e12f26774fc7db23f44625156e2161c751eb349fb5c0·...·]/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.78.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"><a·class="src·rightside"·href="../../src/core/iter/tra[·...·truncated·by·diffoscope;·len:·584,·SHA:·fd3e570373eb5121d35d7e22cdd5dd5fbf7183ee80147135a591fd1285174e82·...·]/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.78.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"><a·class="src·rightside"·hr[·...·truncated·by·diffoscope;·len:·746,·SHA:·f1f70d650c102c8658e13890c7dbfc87418f07e7b522246fb579ec434ef64f7c·...·]/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.78.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:·1017,·SHA:·c0f5f8cfd297e1678ac0ee2fd847fb6f0577665ac326e8e2e9d6414a710c8f98·...·]/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.78.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.78.0/core/iter/traits/it[·...·truncated·by·diffoscope;·len:·1233,·SHA:·f677df2d893dfe0dc1a9d31ebb0ba71a346d265781813e0d664d3f18369b6163·...·]/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.78.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:·c1b5e692e89c9c809075ee8ee72fb15a9ec46c075b08450e1f707d672a224750·...·]/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.78.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:·98627729f77dcf1c9d258f343354ba600b7134c6b3929080f231e8de7155b70b·...·]/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.78.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.78.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.78.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"><a·class="src·rightside"·href="../../src/core/i[·...·truncated·by·diffoscope;·len:·267,·SHA:·1764c9d6d2e39e1367ae2111c28ab846e66ecf12617fbff35e0132e82e5c8b13·...·]/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.78.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"><a·class="src·rights[·...·truncated·by·diffoscope;·len:·375,·SHA:·58419346f92e1709dadb70cc3cf356e3cd27972451bdc6b4fc4267e6f7e8bdae·...·]/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.78.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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::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:·fb4c9589a16c7b6d697c109d1193d2f1e763e5dd967101c2fd92b32416972229·...·]/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.78.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:·98f6effefa44d759c249143d83623f0055d937382bfc398b7e1f5e92cd413657·...·]/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.78.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:·658,·SHA:·e4449b6c00d036dd30444817045eddaf2697443d65789bb5c0b585ed1bc77702·...·]/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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·820,·SHA:·a664bbcbc0891663662e4eb7b4394d0fcd72e568136fc4d34097fea242cc32e7·...·]/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.78.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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·140,·SHA:·752f473b57e7444ebfddf5ea7fd40a332e83ec55524a6c31b5ee0f82a5dea819·...·]/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"><a·class="src·rightside"·href="../../src/core/iter[·...·truncated·by·diffoscope;·len:·285,·SHA:·738ce0440ff568829f40d141e38e2c0da2fd05d2b73d1a574be0ed9baa32e827·...·]/core/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.78.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"><a·class="src·rightside[·...·truncated·by·diffoscope;·len:·393,·SHA:·2e2aa7c9c9c087e7b346da376749064ab8c1894795a2f0a0f646cdc8c7bea997·...·]/core/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.78.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:·767,·SHA:·da0fc5bc95a3398627e0c5836423b719ccea45d351e21ddaa96f793f67f9c6de·...·]/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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·956,·SHA:·faba0521e870dbbd26d466fadba3522e7d29013a9b86376fffafffac11a57e0e·...·]/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.78.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"><a·class="src·rightside"·href="../../src/core/ite[·...·truncated·by·diffoscope;·len:·264,·SHA:·e3fa7ab43c6353bc2216a22d7010c41a8ab50d273a128d15d0eff050c058993a·...·]/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.78.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"><a·class="src·rightsid[·...·truncated·by·diffoscope;·len:·372,·SHA:·03eea0861575eb80d3f7a87a3ba747adb1a33fe7e9ce72aa2172e7a287c63a94·...·]/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.78.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.78.0/core/iter/adapte[·...·truncated·by·diffoscope;·len:·175,·SHA:·16fe7225bf05b478e2828b347c3d23ded9a22f89d8887a2c65d9f7b3faf1b0e7·...·]/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"><a·class="src·rightside"·href="../../src/core/it[·...·truncated·by·diffoscope;·len:·294,·SHA:·c0aee2077af6a4f81ed47e37c84a75b5f9b941875509fbe0b3d352866f825f45·...·]/core/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.78.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"><a·class="src·rightsi[·...·truncated·by·diffoscope;·len:·402,·SHA:·7689a974f800fd069d1b4453ef62d6d6ad1b654462d624d36e3672051d502030·...·]/core/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.78.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:·922,·SHA:·5220bbb4db3c3cd3d7ca7c27520f44f04fe367ee2f0f407fb1d50c0a327a2f99·...·]/core/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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·1138,·SHA:·f6ae06b7de8e94df014341c5cf589a5e4a1298367b2ef7a968ec499c5170a70e·...·]/core/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.78.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:·39eeddf219b211245393e51a591d5064c740fa9be49d88883d8a6474679741ad·...·]/core/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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·1058,·SHA:·b390dbdda8d7e93604b5ecd906a93efd03fe19bdaf41cf12893fd361bf974307·...·]/core/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.78.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:·851,·SHA:·ad2e090d21a034b7c3836ed38a686f4c483f9a929132fef846d48271f749a79c·...·]/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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·1067,·SHA:·415d32e1211c35d3bb405de1d6e51c2102c14cadc3333894f063148dbe0b1f69·...·]/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:·525,·SHA:·6471f48fecadc56edf21fc04794b884b96ce06d339c715e410f5a906e028bc28·...·]/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.78.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:·687,·SHA:·7f5256104c35c5948a2cb42b55f3048c9d2887e48a4a8226537a284f959c562a·...·]/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.78.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"><a·class="src·rightside"·href="../../src/core/iter/traits/[·...·truncated·by·diffoscope;·len:·284,·SHA:·aee83f38f8c40848e159b12a8faa43b9dadf589fe974632a1f15ce2a15834071·...·]/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.78.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"><a·class="src·rightside"·href="[·...·truncated·by·diffoscope;·len:·392,·SHA:·4e7da68f7be2622ef173653eca78d58e1f202b544a2e6abd14d8335c298c93a7·...·]/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.78.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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(<a·class="primitive"·href="https://doc.rust-lang.org/1.78.0/core/primitive.reference.html">&amp;mut·St</a>,·Self::<a·class="associatedty[·...·truncated·by·diffoscope;·len:·449,·SHA:·f12c268a8a8111b9e7126ad78bf5523a63733caa63d187c4fe792309ea41acdf·...·]/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:·459,·SHA:·b825570d9672670eacd8828b3abec12cd1c35433286857de28f5ea8d5e300e03·...·]/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.78.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.78.0/core/iter/trai[·...·truncated·by·diffoscope;·len:·594,·SHA:·02960742fa7892efaa08f289ce85865fc5efb6a4cd138c22e3566ca6fc727d78·...·]/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.78.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.78.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:·9b6a337a3ad68c2a987b52450c153f87a04a8ed9e83603d26077fe6e70d61edf·...·]/core/iter/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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·976,·SHA:·2a9182f6fe88e0b8a9b1ae1f46cace940cc0b8736033c354c0f0ccbf1c196e7a·...·]/core/iter/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.78.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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;[Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtyp[·...·truncated·by·diffoscope;·len:·135,·SHA:·0b06a6094d42ccbc8bce5b01c4383961fe7f1967f05e4c9f1ff33e71e425fb26·...·]/core/primitive.array.html">N</a>])·-&gt;·R,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iter_map_windows</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/87155">#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.78.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"><a·class="src·rightside"·href="../../src/core/iter/[·...·truncated·by·diffoscope;·len:·250,·SHA:·e355ddd0f04b2470ee915aec3ad97857be56b95e6a1f3d733d6c477453f4cf0d·...·]/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.78.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"><a·class="src·rightside"[·...·truncated·by·diffoscope;·len:·358,·SHA:·d91b2ab18e0ce069e262cf523c6ef961f56eecad042ea1e9bcefe33cff28fc8f·...·]/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:·583,·SHA:·b7d7d6125e8980756a2636a6b6e01600057c98a027dcf7d267b1f61538a7b6b0·...·]/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.78.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.78.0/core/op[·...·truncated·by·diffoscope;·len:·745,·SHA:·424783f22102f4446d3ad4d362b1aafdb7531fa777213f97ee138aa878f67bd1·...·]/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.78.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:·676,·SHA:·ae75f35cafbae1e0e695226baca09b0bec6e4a0ed5656a83c3357b29fb00442d·...·]/core/primitive.reference.html">&amp;mut·Self</a><div·class="where">where70 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·838,·SHA:·9b4fd8df7f41e9a76fd4cfca0a233b74b9bd27c3fe8228248abc3f940425a3e3·...·]/core/primitive.reference.html">&amp;mut·Self</a><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:·319,·SHA:·bbb653fcb1f5ad46e04905bf78a76b9dd63ea5d49a2d8cd5b7b36efbb0f7e105·...·]/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.78.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.78.0/core/it[·...·truncated·by·diffoscope;·len:·427,·SHA:·ecfaaac5d1d10c1bc4fcee9a050af0a268bee0b528c2d8ea4e9774440bd8a279·...·]/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.78.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.78.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:·e5d524e874326d0b9b733f5ee809c6595cde869afab0cc3d4ba8454093f420da·...·]/core/primitive.reference.html">&amp;mut·E</a><div·class="where">where73 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.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.78.0/core/iter/tr[·...·truncated·by·diffoscope;·len:·728,·SHA:·01937c2dc314c259495665570ae249c94b4a5b0719718f5f1188e6fc64ecf487·...·]/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.78.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.78.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:·744,·SHA:·a7446142ab67c3f20d866315fbe6cb9c57cd4af012812d6dd19d5061aee6e97b·...·]/core/primitive.tuple.html">(B,·B)</a><div·class="where">where75 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experiment[·...·truncated·by·diffoscope;·len:·879,·SHA:·e773b2222c92d001e295030cb47a780ab0c1132d7fc8e9e3a98de4f532e6c520·...·]/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.78.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.78.0/core/default/trait.Default.html"·title="trait·core::default::Default">Default</a>·+·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/collect/trait.Extend.html"·title="trait·core::iter::traits::collec[·...·truncated·by·diffoscope;·len:·95,·SHA:·8b3be1d0042cae0550f865faf5849221240bdf04eb1b2107605b72d48c3ad29c·...·]/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:·5a1bcc1ddfc5fccf50d61bf2b8879dae247aa12c0b23ba2f437fd2a345cabac7·...·]/core/primitive.usize.html">usize</a><div·class="where">where78 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·995,·SHA:·bec3765fdab56713186e2454cd84738b5b28e3280a2f3d5a25cefdbc3089b520·...·]/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.78.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>·+·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/double_ended/trait.DoubleEndedIterator.html"·title="trait·core::iter::trai[·...·truncated·by·diffoscope;·len:·132,·SHA:·e5b2cf5f56946ede1e190ed09879c5821e2de04cf8e5d145142eeb40c6340982·...·]/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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(<a·class="primitive"·href="https://doc.rust-lang.org/1.78.0/core/primitive.reference.html">&amp;T</a>)·-&gt;·<a·class="primitive"·href="[·...·truncated·by·diffoscope;·len:·32,·SHA:·63d052a8ced32bf927ffadd7e884c08caf4970e85dfdf6be0e568d49b174da96·...·]/core/primitive.bool.html">bool</a>,</div></h4></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:·97056c44eac6a0f986fb2c8edec37302cc06edf44a6c6f7153a5d8623d8d6c0d·...·]/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.78.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:·0c224636c18baa273f69de21f90083317f2ea0b7367a3f0d0f1c0ace55a36f79·...·]/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.78.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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·135,·SHA:·51ff5f5c7ebd8440623ea71b125c5a5837e809e308fe1a13fbe19cddb941dbd9·...·]/core/primitive.bool.html">bool</a>,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iter_is_partitioned</code>&nbsp;<a·href="https://github.com/rust-lang/rust/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:·6f406a351b93047f56fa70265a6bf28ec6874f75cd6cc5a39d51c7af462f2992·...·]/core/iter/traits/iterator/trait.Iterator.html#method.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.78.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:·2c74873f4e5ba70004a1c7edd1cc3f9e2d91271295dd1591e2d26848df4c02ba·...·]/core/iter/traits/iterator/trait.Iterator.html#method.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.78.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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(B,·Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.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.78.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:·eecdce021399d206eb3ef5af12ee7663b4eb0dca55b0f411c7fa66f605b6b2e2·...·]/core/iter/traits/iterator/trait.Iterator.html#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.78.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:·52912e82c4b0a760d06f77eb4ee3a59ba70dd76cb532954900c73ae94c652674·...·]/core/iter/traits/iterator/trait.Iterator.html#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.78.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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.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.78.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.78.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"><a·class="src·rightside"·href="../../src/core/iter[·...·truncated·by·diffoscope;·len:·130,·SHA:·75c0150024fe6cdc702d7337508ab57600248490dd062768204ddb064c9a1b8b·...·]/core/iter/traits/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.78.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"><a·class="src·rightside[·...·truncated·by·diffoscope;·len:·211,·SHA:·924e062acd8127e8d6158162219ee5d57a941854e14063d21d7768edae549431·...·]/core/iter/traits/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.78.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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(B,·Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::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:·dbe3a08fe63abd47570741e71208c31aaf51152feac5917db07665a1f56bb3e3·...·]/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.78.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:·b60215068a6d9721be05f81098c51167d7138c4042f140cad42f77c4df43f597·...·]/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.78.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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·352,·SHA:·e7c3c296abe2c0a183967153e4ae7fd50bafa2ae7088e3e78b3b48fee253adc6·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::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:·a9dce8bb557b5a11426bf2ffcbd5eea7c6c870833e3ee5bb072dcaaa11687b0c·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_reduce"·class="fn">try_reduce</a>&lt;F,·R&gt;(100 operation.·<a·href="https://doc.rust-lang.org/1.78.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:·7a18fdd041b1a001b4a8feb289ee127fd9240232239269eb35dc3b8f74783ec9·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_reduce"·class="fn">try_reduce</a>&lt;F,·R&gt;(
101 ····&amp;mut·self,101 ····&amp;mut·self,
102 ····f:·F102 ····f:·F
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.78.0/core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&gt;::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/ops/try_trait/trait.Try.html#associatedtype.Residual"·title="type[·...·truncated·by·diffoscope;·len:·754,·SHA:·6fb4dfdb6b4da68921c1e7f8b75d99cf293d58318d684a840254ce9576957bea·...·]/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.78.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:·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:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·140,·SHA:·c27972e6fa3464c9476eaa185e8657edb6bb294f148403f3d079285294a9f909·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·R,
106 ····R:·<a·class="trait"·href="../../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;,106 ····R:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.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.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;,
107 ····&lt;R·as·<a·class="trait"·href="../../core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&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·the107 ····&lt;R·as·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&gt;::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/ops/try_trait/trait.Try.html#associatedtype.Residual"·title="type[·...·truncated·by·diffoscope;·len:·412,·SHA:·22b8cbb007e5cce82b9d13a65bfa56aa8d83c32541fac25f4d9b3857b0540908·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;&gt;,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iterator_try_reduce</code>&nbsp;<a·href="https://github.com/rust-lang/rust/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
108 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"><a·class="src·rightside"·href="../../src/core/iter/tr[·...·truncated·by·diffoscope;·len:·272,·SHA:·97959736d897a01242f49f2e45854ab874bf0c9bbe30acad9a49eb73169e457c·...·]/core/primitive.bool.html">bool</a><div·class="where">where108 closure·returns·a·failure,·the·failure·is·propagated·back·to·the·caller·immediately.·<a·href="https://doc.rust-lang.org/1.78.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"><a·class="src·rightside"·h[·...·truncated·by·diffoscope;·len:·380,·SHA:·29c4004d4d8b0c8c9dfe9023f8b2c5ef801d9dc4688893035d182c1ae774c453·...·]/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.78.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:·733,·SHA:·9bb9f0199d90f78ad65c59dbe67a1c751cd5a681130a03bef3b1e8ed907a3bba·...·]/core/primitive.bool.html">bool</a><div·class="where">where110 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·922,·SHA:·f4fd532c280e18f28bd6dda6c2a129e2e92114b67f27235bb5fd39f725be9c43·...·]/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.78.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:·860,·SHA:·6a94ae33b82eb12a91660811a8ab9d243468d885c07ac766a2507d25a4e7ee62·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;<div·class="where">where112 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·1076,·SHA:·2dd9de8adaee4a5ee96501d9a58bfac2fea00ba8d78b834bfca29949b3afe18b·...·]/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.78.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;Self::<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:·21d7086b3ce0092e3f7a6a41174339bbd8724e7d186158db4db3385a73d94e8e·...·]/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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·1051,·SHA:·ecc0b8fccd861464760f9ae047ff6ab98c91a1db010cb5fa59a8c2ab883db7c4·...·]/core/option/enum.Option.html"·title="enum·core::option::Option">Option</a>&lt;B&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.78.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:·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·returns116 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·130,·SHA:·130a13019dc175d02304b4f550157e2f13ac15c2f25a979c74161d10b146ab89·...·]/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.try_find"·class="method·trait-impl"><a·class="src·rightside"·href="../../src/core/iter[·...·truncated·by·diffoscope;·len:·134,·SHA:·ac4da3337aac1ec10038e246be9cb719eeb5af1acc709f5a6a25b91900c56f53·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_find"·class="fn">try_find</a>&lt;F,·R&gt;(117 the·first·non-none·result.·<a·href="https://doc.rust-lang.org/1.78.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:·8ced1b10e78750774c5c8ed995ed83dcd13983aa75d329acf8069da106ab9f4a·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_find"·class="fn">try_find</a>&lt;F,·R&gt;(
118 ····&amp;mut·self,118 ····&amp;mut·self,
119 ····f:·F119 ····f:·F
120 )·-&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">where120 )·-&gt;·&lt;&lt;R·as·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&gt;::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/ops/try_trait/trait.Try.html#associatedtype.Residual"·title="type[·...·truncated·by·diffoscope;·len:·626,·SHA:·95f9831257b68862cbcbf54f0ad2ff4e597a4c9f763112d1da8a0897dadcf872·...·]/core/ops/try_trait/trait.Residual.html#associatedtype.TryType"·title="type·core::ops::try_trait::Residual::TryType">TryType</a><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.78.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;·R,122 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·R,
123 ····R:·<a·class="trait"·href="../../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.78.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.78.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.78.0/core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&gt;::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/ops/try_trait/trait.Try.html#associatedtype.Residual"·title="type[·...·truncated·by·diffoscope;·len:·412,·SHA:·22b8cbb007e5cce82b9d13a65bfa56aa8d83c32541fac25f4d9b3857b0540908·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;&gt;,</div></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"><a·class="src·rightside"·href="../../src/core/iter[·...·truncated·by·diffoscope;·len:·404,·SHA:·f45e13f24791f759991b5b3c0f29ce7cc9019b87d7ca444f65464e8a939e287c·...·]/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.78.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"><a·class="src·rightside[·...·truncated·by·diffoscope;·len:·539,·SHA:·04e329705f11ed9ec269a68b0b75ac4ab26c78e4316a571ee9336c28bbca6359·...·]/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.78.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:·877,·SHA:·075b700e51707b888367963648dd2aecf8d17daa7cc803f00bfcc74c2a659f56·...·]/core/primitive.usize.html">usize</a>&gt;<div·class="where">where127 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·1093,·SHA:·623dbacabfe45799103c799fb60a4d212ceb8759ff853a11209a07793257c9cd·...·]/core/primitive.usize.html">usize</a>&gt;<div·class="where">where
Max diff block lines reached; 85411/311721 bytes (27.40%) of diff not shown.
316 KB
./usr/share/doc/rust-web-doc/html/alloc/slice/struct.ChunksExact.html
    
Offset 1, 239 lines modifiedOffset 1, 239 lines modified
1 <!DOCTYPE·html><html·lang="en"><head><meta·charset="utf-8"><meta·name="viewport"·content="width=device-width,·initial-scale=1.0"><meta·name="generator"·content="rustdoc"><meta·name="description"·content="An·iterator·over·a·slice·in·(non-overlapping)·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.write(`<link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/SourceSerif4-Regular-46f98efaafac5295.ttf.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/FiraSans-Regular-018c141bf0843ffd.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/FiraSans-Medium-8f9a781e4970d388.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/SourceCodePro-Regular-562dcc5011b6de7d.ttf.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/SourceCodePro-Semibold-d899c5a5c4aeb14a.ttf.woff2">`)</script><link·rel="stylesheet"·href="../../static.files/normalize-76eba96aa4d2e634.css"><link·rel="stylesheet"·href="../../static.files/rustdoc-35f9e32502181f1e.css"><meta·name="rustdoc-vars"·data-root-path="../../"·data-static-root-path="../../static.files/"·data-current-crate="alloc"·data-themes=""·data-resource-suffix="1.78.0"·data-rustdoc-version="1.78.0"·data-channel="1.78.0"·data-search-js="search-42d8da7a6b9792c2.js"·data-settings-js="settings-4313503d2e1961c2.js"·><script·src="../../static.files/storage-4c98445ec4002617.js"></script><script·defer·src="sidebar-items1.78.0.js"></script><script·defer·src="../../static.files/main-12cf3b4f4f9dc36d.js"></script><noscript><link·rel="stylesheet"·href="../../static.files/noscript-04d5337699b92874.css"></noscript><link·rel="alternate·icon"·type="image/png"·href="../../static.files/favicon-16x16-8b506e7a72182f1c.png"><link·rel="alternate·icon"·type="image/png"·href="../../static.files/favicon-32x32-422f7d1d52889060.png"><link·rel="icon"·type="image/svg+xml"·href="../../static.files/favicon-2c020d218678b618.svg"></head><body·class="rustdoc·struct"><!--[if·lte·IE·11]><div·class="warning">This·old·browser·is·unsupported·and·will·most·likely·display·funky·things.</div><![endif]--><nav·class="mobile-topbar"><button·class="sidebar-menu-toggle"·title="show·sidebar"></button><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-151179464ae7ed46.svg"·alt=""></a></nav><nav·class="sidebar"><div·class="sidebar-crate"><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-151179464ae7ed46.svg"·alt="logo"></a><h2><a·href="../../alloc/index.html">alloc</a><span·class="version">1.78.0</span></h2></div><h2·class="location"><a·href="#">ChunksExact</a></h2><div·class="sidebar-elems"><section><h3><a·href="#implementations">Methods</a></h3><ul·class="block·method"><li><a·href="#method.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">Clone</a></li><li><a·href="#impl-Debug-for-ChunksExact%3C'a,+T%3E">Debug</a></li><li><a·href="#impl-DoubleEndedIterator-for-ChunksExact%3C'a,+T%3E">DoubleEndedIterator</a></li><li><a·href="#impl-ExactSizeIterator-for-ChunksExact%3C'_,+T%3E">ExactSizeIterator</a></li><li><a·href="#impl-FusedIterator-for-ChunksExact%3C'_,+T%3E">FusedIterator</a></li><li><a·href="#impl-Iterator-for-ChunksExact%3C'a,+T%3E">Iterator</a></li><li><a·href="#impl-TrustedLen-for-ChunksExact%3C'_,+T%3E">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">Freeze</a></li><li><a·href="#impl-RefUnwindSafe-for-ChunksExact%3C'a,+T%3E">RefUnwindSafe</a></li><li><a·href="#impl-Send-for-ChunksExact%3C'a,+T%3E">Send</a></li><li><a·href="#impl-Sync-for-ChunksExact%3C'a,+T%3E">Sync</a></li><li><a·href="#impl-Unpin-for-ChunksExact%3C'a,+T%3E">Unpin</a></li><li><a·href="#impl-UnwindSafe-for-ChunksExact%3C'a,+T%3E">UnwindSafe</a></li></ul><h3><a·href="#blanket-implementations">Blanket·Implementations</a></h3><ul·class="block·blanket-implementation"><li><a·href="#impl-Any-for-T">Any</a></li><li><a·href="#impl-Borrow%3CT%3E-for-T">Borrow&lt;T&gt;</a></li><li><a·href="#impl-BorrowMut%3CT%3E-for-T">BorrowMut&lt;T&gt;</a></li><li><a·href="#impl-From%3CT%3E-for-T">From&lt;T&gt;</a></li><li><a·href="#impl-Into%3CU%3E-for-T">Into&lt;U&gt;</a></li><li><a·href="#impl-IntoIterator-for-I">IntoIterator</a></li><li><a·href="#impl-ToOwned-for-T">ToOwned</a></li><li><a·href="#impl-TryFrom%3CU%3E-for-T">TryFrom&lt;U&gt;</a></li><li><a·href="#impl-TryInto%3CU%3E-for-T">TryInto&lt;U&gt;</a></li></ul></section><h2><a·href="index.html">In·alloc::slice</a></h2></div></nav><div·class="sidebar-resizer"></div>1 <!DOCTYPE·html><html·lang="en"><head><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.write(`<link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/SourceSerif4-Regular-46f98efaafac5295.ttf.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/FiraSans-Regular-018c141bf0843ffd.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/FiraSans-Medium-8f9a781e4970d388.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/SourceCodePro-Regular-562dcc5011b6de7d.ttf.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/SourceCodePro-Semibold-d899c5a5c4aeb14a.ttf.woff2">`)</script><link·rel="stylesheet"·href="../../static.files/normalize-76eba96aa4d2e634.css"><link·rel="stylesheet"·href="../../static.files/rustdoc-35f9e32502181f1e.css"><meta·name="rustdoc-vars"·data-root-path="../../"·data-static-root-path="../../static.files/"·data-current-crate="alloc"·data-themes=""·data-resource-suffix="1.78.0"·data-rustdoc-version="1.78.0"·data-channel="1.78.0"·data-search-js="search-42d8da7a6b9792c2.js"·data-settings-js="settings-4313503d2e1961c2.js"·><script·src="../../static.files/storage-4c98445ec4002617.js"></script><script·defer·src="sidebar-items1.78.0.js"></script><script·defer·src="../../static.files/main-12cf3b4f4f9dc36d.js"></script><noscript><link·rel="stylesheet"·href="../../static.files/noscript-04d5337699b92874.css"></noscript><link·rel="alternate·icon"·type="image/png"·href="../../static.files/favicon-16x16-8b506e7a72182f1c.png"><link·rel="alternate·icon"·type="image/png"·href="../../static.files/favicon-32x32-422f7d1d52889060.png"><link·rel="icon"·type="image/svg+xml"·href="../../static.files/favicon-2c020d218678b618.svg"></head><body·class="rustdoc·struct"><!--[if·lte·IE·11]><div·class="warning">This·old·browser·is·unsupported·and·will·most·likely·display·funky·things.</div><![endif]--><nav·class="mobile-topbar"><button·class="sidebar-menu-toggle"·title="show·sidebar"></button><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-151179464ae7ed46.svg"·alt=""></a></nav><nav·class="sidebar"><div·class="sidebar-crate"><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-151179464ae7ed46.svg"·alt="logo"></a><h2><a·href="../../alloc/index.html">alloc</a><span·class="version">1.78.0</span></h2></div><h2·class="location"><a·href="#">ChunksExact</a></h2><div·class="sidebar-elems"><section><h3><a·href="#implementations">Methods</a></h3><ul·class="block·method"><li><a·href="#method.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">Clone</a></li><li><a·href="#impl-Debug-for-ChunksExact%3C'a,+T%3E">Debug</a></li><li><a·href="#impl-DoubleEndedIterator-for-ChunksExact%3C'a,+T%3E">DoubleEndedIterator</a></li><li><a·href="#impl-ExactSizeIterator-for-ChunksExact%3C'_,+T%3E">ExactSizeIterator</a></li><li><a·href="#impl-FusedIterator-for-ChunksExact%3C'_,+T%3E">FusedIterator</a></li><li><a·href="#impl-Iterator-for-ChunksExact%3C'a,+T%3E">Iterator</a></li><li><a·href="#impl-TrustedLen-for-ChunksExact%3C'_,+T%3E">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">Freeze</a></li><li><a·href="#impl-RefUnwindSafe-for-ChunksExact%3C'a,+T%3E">RefUnwindSafe</a></li><li><a·href="#impl-Send-for-ChunksExact%3C'a,+T%3E">Send</a></li><li><a·href="#impl-Sync-for-ChunksExact%3C'a,+T%3E">Sync</a></li><li><a·href="#impl-Unpin-for-ChunksExact%3C'a,+T%3E">Unpin</a></li><li><a·href="#impl-UnwindSafe-for-ChunksExact%3C'a,+T%3E">UnwindSafe</a></li></ul><h3><a·href="#blanket-implementations">Blanket·Implementations</a></h3><ul·class="block·blanket-implementation"><li><a·href="#impl-Any-for-T">Any</a></li><li><a·href="#impl-Borrow%3CT%3E-for-T">Borrow&lt;T&gt;</a></li><li><a·href="#impl-BorrowMut%3CT%3E-for-T">BorrowMut&lt;T&gt;</a></li><li><a·href="#impl-From%3CT%3E-for-T">From&lt;T&gt;</a></li><li><a·href="#impl-Into%3CU%3E-for-T">Into&lt;U&gt;</a></li><li><a·href="#impl-IntoIterator-for-I">IntoIterator</a></li><li><a·href="#impl-ToOwned-for-T">ToOwned</a></li><li><a·href="#impl-TryFrom%3CU%3E-for-T">TryFrom&lt;U&gt;</a></li><li><a·href="#impl-TryInto%3CU%3E-for-T">TryInto&lt;U&gt;</a></li></ul></section><h2><a·href="index.html">In·alloc::slice</a></h2></div></nav><div·class="sidebar-resizer"></div>
2 ····<main><div·class="width-limiter"><nav·class="sub"><form·class="search-form"><span></span><div·id="sidebar-button"·tabindex="-1"><a·href="../../alloc/all.html"·title="show·sidebar"></a></div><input·class="search-input"·name="search"·aria-label="Run·search·in·the·documentation"·autocomplete="off"·spellcheck="false"·placeholder="Click·or·press·‘S’·to·search,·‘?’·for·more·options…"·type="search"><div·id="help-button"·tabindex="-1"><a·href="../../help.html"·title="help">?</a></div><div·id="settings-menu"·tabindex="-1"><a·href="../../settings.html"·title="settings"><img·width="22"·height="22"·alt="Change·settings"·src="../../static.files/wheel-7b819b6101059cd0.svg"></a></div></form></nav><section·id="main-content"·class="content"><div·class="main-heading"><h1>Struct·<a·href="../index.html">alloc</a>::<wbr><a·href="index.html">slice</a>::<wbr><a·class="struct"·href="#">ChunksExact</a><button·id="copy-path"·title="Copy·item·path·to·clipboard"><img·src="../../static.files/clipboard-7571035ce49a181d.svg"·width="19"·height="18"·alt="Copy·item·path"></button></h1><span·class="out-of-band"><span·class="since"·title="Stable·since·Rust·version·1.31.0">1.31.0</span>···<a·class="src"·href="../../src/core/slice/iter.rs.html#1828">source</a>···<button·id="toggle-all-docs"·title="collapse·all·docs">[<span>&#x2212;</span>]</button></span></div><pre·class="rust·item-decl"><code>pub·struct·ChunksExact&lt;'a,·T&gt;<div·class="where">where2 ····<main><div·class="width-limiter"><nav·class="sub"><form·class="search-form"><span></span><div·id="sidebar-button"·tabindex="-1"><a·href="../../alloc/all.html"·title="show·sidebar"></a></div><input·class="search-input"·name="search"·aria-label="Run·search·in·the·documentation"·autocomplete="off"·spellcheck="false"·placeholder="Click·or·press·‘S’·to·search,·‘?’·for·more·options…"·type="search"><div·id="help-button"·tabindex="-1"><a·href="../../help.html"·title="help">?</a></div><div·id="settings-menu"·tabindex="-1"><a·href="../../settings.html"·title="settings"><img·width="22"·height="22"·alt="Change·settings"·src="../../static.files/wheel-7b819b6101059cd0.svg"></a></div></form></nav><section·id="main-content"·class="content"><div·class="main-heading"><h1>Struct·<a·href="../index.html">alloc</a>::<wbr><a·href="index.html">slice</a>::<wbr><a·class="struct"·href="#">ChunksExact</a><button·id="copy-path"·title="Copy·item·path·to·clipboard"><img·src="../../static.files/clipboard-7571035ce49a181d.svg"·width="19"·height="18"·alt="Copy·item·path"></button></h1><span·class="out-of-band"><span·class="since"·title="Stable·since·Rust·version·1.31.0">1.31.0</span>···<a·class="src"·href="https://doc.rust-lang.org/1.78.0/src/core/slice/iter.rs.html#1828">source</a>···<button·id="toggle-all-docs"·title="collapse·all·docs">[<span>&#x2212;</span>]</button></span></div><pre·class="rust·item-decl"><code>pub·struct·ChunksExact&lt;'a,·T&gt;<div·class="where">where
3 ····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·a3 ····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
4 time),·starting·at·the·beginning·of·the·slice.</p>4 time),·starting·at·the·beginning·of·the·slice.</p>
5 <p>When·the·slice·len·is·not·evenly·divided·by·the·chunk·size,·the·last5 <p>When·the·slice·len·is·not·evenly·divided·by·the·chunk·size,·the·last
6 up·to·<code>chunk_size-1</code>·elements·will·be·omitted·but·can·be·retrieved·from6 up·to·<code>chunk_size-1</code>·elements·will·be·omitted·but·can·be·retrieved·from
7 the·<a·href="struct.ChunksExact.html#method.remainder"·title="method·alloc::slice::ChunksExact::remainder"><code>remainder</code></a>·function·from·the·iterator.</p>7 the·<a·href="struct.ChunksExact.html#method.remainder"·title="method·alloc::slice::ChunksExact::remainder"><code>remainder</code></a>·function·from·the·iterator.</p>
8 <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>8 <p>This·struct·is·created·by·the·<a·href="https://doc.rust-lang.org/1.78.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.78.0/core/primitive.slice.html"·title="primitive·slice">slices</a>.</p>
9 <h2·id="example"><a·class="doc-anchor"·href="#example">§</a>Example</h2>9 <h2·id="example"><a·class="doc-anchor"·href="#example">§</a>Example</h2>
10 <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 <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>];
11 <span·class="kw">let·</span>iter·=·slice.chunks_exact(<span·class="number">2</span>);</code></pre><a·class="test-arrow"·target="_blank"·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+iter+=+slice.chunks_exact(2);%0A%7D&amp;edition=2021">Run</a></div>11 <span·class="kw">let·</span>iter·=·slice.chunks_exact(<span·class="number">2</span>);</code></pre><a·class="test-arrow"·target="_blank"·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+iter+=+slice.chunks_exact(2);%0A%7D&amp;edition=2021">Run</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-ChunksExact%3C'a,+T%3E"·class="impl"><a·class="src·rightside"·href="../../src/core/slice/iter.rs.html#1834">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:·382,·SHA:·41ea632ca625dbf1604d4489661d66043e7f88fa1404e07425a6afab2d3481b7·...·]/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·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-ChunksExact%3C'a,+T%3E"·class="impl"><a·class="src·rightside"·href="https://doc.rust-lang.org/1.78.0/src/core/slice/iter.rs.html#1834">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:·463,·SHA:·2c0b18f337d01c62b0f2bb96a011c4f196040b1d81dfaca0053b1ef64284e9ec·...·]/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
13 returned·by·the·iterator.·The·returned·slice·has·at·most·<code>chunk_size-1</code>13 returned·by·the·iterator.·The·returned·slice·has·at·most·<code>chunk_size-1</code>
14 elements.</p>14 elements.</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="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>];16 <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>];
17 <span·class="kw">let·</span><span·class="kw-2">mut·</span>iter·=·slice.chunks_exact(<span·class="number">2</span>);17 <span·class="kw">let·</span><span·class="kw-2">mut·</span>iter·=·slice.chunks_exact(<span·class="number">2</span>);
18 <span·class="macro">assert_eq!</span>(iter.remainder(),·<span·class="kw-2">&amp;</span>[<span·class="string">'m'</span>][..]);18 <span·class="macro">assert_eq!</span>(iter.remainder(),·<span·class="kw-2">&amp;</span>[<span·class="string">'m'</span>][..]);
19 <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>][..]));19 <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>][..]));
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">'r'</span>,·<span·class="string">'e'</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">'r'</span>,·<span·class="string">'e'</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">None</span>);23 <span·class="macro">assert_eq!</span>(iter.next(),·<span·class="prelude-val">None</span>);
24 <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"·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">Run</a></div>24 <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"·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">Run</a></div>
25 </div></details></div></details></div><h2·id="trait-implementations"·class="section-header">Trait·Implementations<a·href="#trait-implementations"·class="anchor">§</a></h2><div·id="trait-implementations-list"><details·class="toggle·implementors-toggle"·open><summary><section·id="impl-Clone-for-ChunksExact%3C'_,+T%3E"·class="impl"><a·class="src·rightside"·href="../../src/core/slice/iter.rs.html#1870">source</a><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">Clone</a[·...·truncated·by·diffoscope;·len:·1800,·SHA:·df77709ba1302cc575b48928d7795d837145eb76d1c14845ed54754801b7251a·...·]/src/core/slice/iter.rs.html#1825">source</a><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">where25 </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"><a·class="src·rightside"·href="https://doc.rust-lang.org/1.78.0/src/core/slice/iter.rs.html#1870">source</a><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.78.0/core/clone/trait[·...·truncated·by·diffoscope;·len:·2070,·SHA:·b3e20f5ecf97a1918a3a43e162d504dc524fcb44597baa6dcaa30eeef835dad1·...·]/src/core/slice/iter.rs.html#1825">source</a><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
26 ····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#1825">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:·2326,·SHA:·5064d61731c4bf03d0b4eccd3448f8556332b05e672d416824f3fd27d06f5dfa·...·]/core/iter/traits/double_ended/trait.DoubleEndedIterator.html#method.nth_back"·class="fn">nth_back</a>(26 ····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.78.0/src/core/slice/iter.rs.html#1825">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:·2650,·SHA:·0621c2355ee73ff0b200d819ae5ed4c8210b4a70137caf0539ae3cdc2f92bb5a·...·]/core/iter/traits/double_ended/trait.DoubleEndedIterator.html#method.nth_back"·class="fn">nth_back</a>(
27 ····&amp;mut·self,27 ····&amp;mut·self,
28 ····n:·<a·class="primitive"·href="../../core/primitive.usize.html">usize</a>28 ····n:·<a·class="primitive"·href="https://doc.rust-lang.org/1.78.0/core/primitive.usize.html">usize</a>
29 )·-&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:·1ec94da3afa11e7fa6c051fa967474a0f8832f4f9804651bf0611d06e62a2016·...·]/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 )·-&gt;·<a·class="enum"·href="https://doc.rust-lang.org/1.78.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:·33284218fe56f2a57e78c05ab315cfe38236c8011431414b1d78e15ccab18a1c·...·]/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.78.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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(B,·Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.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.78.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.7[·...·truncated·by·diffoscope;·len:·3,·SHA:·7b1bd53949b752d143d871408483b5382371b5bc48d195d0c040ec93cfa2748b·...·]/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:·74b709f2c818a4eda5d85ea863eb2d8af72c87564dbab2746e67feafb0cbb9a3·...·]/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.78.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:·d66ed7e195a53e9945339ef1976aed455dcf80228d8e5b7b0c69a64c3983fea1·...·]/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.78.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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(B,·Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/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:·f8bdf1e28866c7668477ab391452c7cfa7fd52cc69b633e782a157931421b39b·...·]/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.78.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:·c264047794019a6dcf05728ba6a6ee1f8f07c7209958b3366ba94546b527ecdc·...·]/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.78.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:·8884,·SHA:·c828dafcf9eb2393397ad32c88a3f09940f6a6fe1fa0ee7863cf961450f52ac6·...·]/core/primitive.usize.html">usize</a>&gt;(38 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·10207,·SHA:·63cce79c20946ccabb4dcbcbdab8a17d9b50017746cedea0c16f98af7c4e83be·...·]/core/primitive.usize.html">usize</a>&gt;(
39 ····&amp;mut·self39 ····&amp;mut·self
40 )·-&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">where40 )·-&gt;·<a·class="enum"·href="https://doc.rust-lang.org/1.78.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.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title=[·...·truncated·by·diffoscope;·len:·381,·SHA:·88c48923c9b7ea5cc47c1087c60e09656e81d4671c58071ba2bef826335388bc·...·]/core/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
41 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></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:·35097ac20cb94a94d329a7511e21173c3e63fd8ce0a6d69b63b12136ae10fe6d·...·]/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.78.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></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:·3b082a2bc331439bfa16e12f26774fc7db23f44625156e2161c751eb349fb5c0·...·]/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.78.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:·5667b9b6c9778ff3b9d23ed0a110e7ab9d3fccc786fdcaca8c17edf996236439·...·]/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.78.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:·e83c903581753673e083ce8dd809879a2fc81ab3050eb6db267d7fa26b15e035·...·]/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.78.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:·1c6bb9803ee8832ebd4c28a08a952178165595b6870cf35d3c89454b9da828b2·...·]/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.78.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.78.0/core/iter/traits/it[·...·truncated·by·diffoscope;·len:·1329,·SHA:·d9299c8edc606ed82f24d61ce441bec451141d684c2a9a75074f5b19c57f196c·...·]/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.78.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:·c1b5e692e89c9c809075ee8ee72fb15a9ec46c075b08450e1f707d672a224750·...·]/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.78.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:·98627729f77dcf1c9d258f343354ba600b7134c6b3929080f231e8de7155b70b·...·]/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.78.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.78.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.78.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:·d6282409add0999f2130eb6bbe6d0473ce96bf2544799e8bc22156f3c2d2e0dd·...·]/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.78.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:·7301b6beba7b6885849be90a625df68ef739a5374af456c51fe2e81d91a25363·...·]/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.78.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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::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:·fb4c9589a16c7b6d697c109d1193d2f1e763e5dd967101c2fd92b32416972229·...·]/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.78.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:·98f6effefa44d759c249143d83623f0055d937382bfc398b7e1f5e92cd413657·...·]/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.78.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:·7abbad666ec88a1053b8aca2a481d629a3ef3596eddb570c381205fa2d859a52·...·]/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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·916,·SHA:·30d0b2a76513c5a880e9aee43e92b18805845cfcfe5783f62dc090167a439e63·...·]/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.78.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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·140,·SHA:·752f473b57e7444ebfddf5ea7fd40a332e83ec55524a6c31b5ee0f82a5dea819·...·]/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:·7da07154834a15b8ae55b4fd41479da070ccbd27e071909f81698570c306a081·...·]/core/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.78.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:·76aa2ad154f88085ee3f8a22721a7e6812680bac785d19059532407f50da1801·...·]/core/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.78.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:·c89169e5bf1c4724c7b411e568b6dad6475896f2606f557b3d708359ef71f5cc·...·]/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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·1052,·SHA:·110b47c7083083d565fcfc89337fddc8e5c87e81b2f720f3f7b0ded55e8500fb·...·]/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.78.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:·53634008856676c70c32b501f7ec498c1f86d123cc9b5b898256a69895ff31fc·...·]/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.78.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:·8464264e074dde5d84f0414ab3b5b2d8da83f3c9e3ca04c45458241580a8c80d·...·]/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.78.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.78.0/core/iter/adapte[·...·truncated·by·diffoscope;·len:·175,·SHA:·16fe7225bf05b478e2828b347c3d23ded9a22f89d8887a2c65d9f7b3faf1b0e7·...·]/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:·77dd41e041d66c618d306e900a9159cf1b00478b8f37e5692be62119a1d4fcda·...·]/core/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.78.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:·00ccbb673c11ed48d8c6aa2a3f8984fb298202e7bccfa42f1ac21290fcc0fb06·...·]/core/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.78.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:·c18326af66652e52fa627bfd0312af7fa2ad0ddc162b12a46e61047a031b0264·...·]/core/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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·1234,·SHA:·3b805567411cdcebed740f9e8d400dbe7fb487504f40e284544a140155090fdf·...·]/core/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.78.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:·39eeddf219b211245393e51a591d5064c740fa9be49d88883d8a6474679741ad·...·]/core/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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·1058,·SHA:·b390dbdda8d7e93604b5ecd906a93efd03fe19bdaf41cf12893fd361bf974307·...·]/core/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.78.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:·9369fa85b74ff841f7401949cadba6dfbbbeead2a99568f20dcfd5aab20d61ab·...·]/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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·1163,·SHA:·5772149166d344bf8fa5ebbd9db8693a8f2e5f031c50338e8f1523ef72f814d6·...·]/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:·a25e81a74cc82c1837477e2b0cea682fff9f43550640901b8010ac501ca69e3d·...·]/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.78.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:·6216516fe581c401abda3c95818192e8f030e2008c9bbdbaafebba16f33ea9bd·...·]/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.78.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:·de8f1023275132502c1569b0ef9a557dc98eaf60aae97cdb916e52f9f55100aa·...·]/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.78.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:·485843399c56e24bdf020ff0610d0ce1f62fbac5530d9880a1a7417105e3d70f·...·]/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.78.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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(<a·class="primitive"·href="https://doc.rust-lang.org/1.78.0/core/primitive.reference.html">&amp;mut·St</a>,·Self::<a·class="associatedty[·...·truncated·by·diffoscope;·len:·449,·SHA:·f12c268a8a8111b9e7126ad78bf5523a63733caa63d187c4fe792309ea41acdf·...·]/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:·8b31595e3cee3022819032aac82e3df712188a2a6dcc20da6939262e5e528591·...·]/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.78.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.78.0/core/iter/trai[·...·truncated·by·diffoscope;·len:·690,·SHA:·371190e5c1bf9b7dde6e84447965a69946212b977b9eb6d89048fbe34c5dda1c·...·]/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.78.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.78.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:·9b6a337a3ad68c2a987b52450c153f87a04a8ed9e83603d26077fe6e70d61edf·...·]/core/iter/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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·976,·SHA:·2a9182f6fe88e0b8a9b1ae1f46cace940cc0b8736033c354c0f0ccbf1c196e7a·...·]/core/iter/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.78.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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;[Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtyp[·...·truncated·by·diffoscope;·len:·135,·SHA:·0b06a6094d42ccbc8bce5b01c4383961fe7f1967f05e4c9f1ff33e71e425fb26·...·]/core/primitive.array.html">N</a>])·-&gt;·R,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iter_map_windows</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/87155">#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.78.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:·238f6b49b3e28d725c57040edaa60bfbb34f140155e6af1d30eab52da1c7274f·...·]/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.78.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:·0d33056cee8a4f9b70b573c0adecc2f3599a2f8d9fa9f2c2044e9118ab134f73·...·]/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:·cfd3edf89fe5aca24b994f83b0d7da765620394e35140e694d98233d4d92481b·...·]/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.78.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.78.0/core/op[·...·truncated·by·diffoscope;·len:·841,·SHA:·9cba1b175fb3726d7f1f01da9be7c1a56568a68e4ce7915a468b730902daf8d3·...·]/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.78.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:·772,·SHA:·31d2052382378512fa905c6d5297d384eac7b7f126141ce561719c0e27cc9d39·...·]/core/primitive.reference.html">&amp;mut·Self</a><div·class="where">where87 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·934,·SHA:·ea20d2e0fe9388580ea08100baa9120b5e9b6cb48f43fc846f15db8b9649e7f6·...·]/core/primitive.reference.html">&amp;mut·Self</a><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:·98760b16b1ed91f9558e6e2637724a4608316181d5f6f4d236e896a83eca9af9·...·]/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.78.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.78.0/core/it[·...·truncated·by·diffoscope;·len:·523,·SHA:·97064c705f6f4bdf74469c54fabcf580d21893127d1b4cd9a9c1018a717ef153·...·]/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.78.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.78.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:·e5d524e874326d0b9b733f5ee809c6595cde869afab0cc3d4ba8454093f420da·...·]/core/primitive.reference.html">&amp;mut·E</a><div·class="where">where90 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.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.78.0/core/iter/tr[·...·truncated·by·diffoscope;·len:·728,·SHA:·01937c2dc314c259495665570ae249c94b4a5b0719718f5f1188e6fc64ecf487·...·]/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.78.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.78.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:·b0297783e056393a542c4058b42c18523a86c961c1b6ce3bc94342c1a2c10c58·...·]/core/primitive.tuple.html">(B,·B)</a><div·class="where">where92 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></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:·00bd47017b1bdd1bbe2c3fc932d955a8aa2f7f5eff8c00e3001ae28a982a5883·...·]/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.78.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.78.0/core/default/trait.Default.html"·title="trait·core::default::Default">Default</a>·+·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/collect/trait.Extend.html"·title="trait·core::iter::traits::collec[·...·truncated·by·diffoscope;·len:·95,·SHA:·8b3be1d0042cae0550f865faf5849221240bdf04eb1b2107605b72d48c3ad29c·...·]/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:·806,·SHA:·5a1bcc1ddfc5fccf50d61bf2b8879dae247aa12c0b23ba2f437fd2a345cabac7·...·]/core/primitive.usize.html">usize</a><div·class="where">where95 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·995,·SHA:·bec3765fdab56713186e2454cd84738b5b28e3280a2f3d5a25cefdbc3089b520·...·]/core/primitive.usize.html">usize</a><div·class="where">where
96 ····T:·'a,96 ····T:·'a,
97 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>·+·<a·class="trait"·href="../../core/iter/traits/double_ended/trait.DoubleEndedIterator.html"·title="trait·core::iter::traits::double_ended::DoubleEndedIterator">DoubleEndedIter[·...·truncated·by·diffoscope;·len:·51,·SHA:·c9be73bbed9d11ecac2a179f480a640f51d6255f26712667ffdabc72c1fc7fb0·...·]/core/primitive.reference.html">&amp;'a·mut·T</a>&gt;,97 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>·+·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/double_ended/trait.DoubleEndedIterator.html"·title="trait·core::iter::trai[·...·truncated·by·diffoscope;·len:·132,·SHA:·e5b2cf5f56946ede1e190ed09879c5821e2de04cf8e5d145142eeb40c6340982·...·]/core/primitive.reference.html">&amp;'a·mut·T</a>&gt;,
98 ····P:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(<a·class="primitive"·href="../../core/primitive.reference.html">&amp;T</a>)·-&gt;·<a·class="primitive"·href="../../core/primitive.bool.html">bool</a>,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iter_partition_in_place</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/62543">#62543</a>)</span></div></span><div·class='docblock'>Reorders·the·elements·of·this·iterator·<em>in-place</em>·according·to·the·given·predicate,98 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(<a·class="primitive"·href="https://doc.rust-lang.org/1.78.0/core/primitive.reference.html">&amp;T</a>)·-&gt;·<a·class="primitive"·href="[·...·truncated·by·diffoscope;·len:·32,·SHA:·63d052a8ced32bf927ffadd7e884c08caf4970e85dfdf6be0e568d49b174da96·...·]/core/primitive.bool.html">bool</a>,</div></h4></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 such·that·all·those·that·return·<code>true</code>·precede·all·those·that·return·<code>false</code>.99 such·that·all·those·that·return·<code>true</code>·precede·all·those·that·return·<code>false</code>.
100 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:·97056c44eac6a0f986fb2c8edec37302cc06edf44a6c6f7153a5d8623d8d6c0d·...·]/core/primitive.bool.html">bool</a><div·class="where">where100 Returns·the·number·of·<code>true</code>·elements·found.·<a·href="https://doc.rust-lang.org/1.78.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:·0c224636c18baa273f69de21f90083317f2ea0b7367a3f0d0f1c0ace55a36f79·...·]/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.78.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:·54,·SHA:·d5ac304cc26edf57442227b641dd21c427d0f9cb322b79986f5b15fc49f867b0·...·]/core/primitive.bool.html">bool</a>,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iter_is_partitioned</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/62544">#62544</a>)</span></div></span><div·class='docblock'>Checks·if·the·elements·of·this·iterator·are·partitioned·according·to·the·given·predicate,102 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·135,·SHA:·51ff5f5c7ebd8440623ea71b125c5a5837e809e308fe1a13fbe19cddb941dbd9·...·]/core/primitive.bool.html">bool</a>,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iter_is_partitioned</code>&nbsp;<a·href="https://github.com/rust-lang/rust/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 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:·6f406a351b93047f56fa70265a6bf28ec6874f75cd6cc5a39d51c7af462f2992·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_fold"·class="fn">try_fold</a>&lt;B,·F,·R&gt;(&amp;mut·self,·init:·B,·f:·F)·-&gt;·R<div·class="where">where103 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.78.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:·2c74873f4e5ba70004a1c7edd1cc3f9e2d91271295dd1591e2d26848df4c02ba·...·]/core/iter/traits/iterator/trait.Iterator.html#method.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
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.78.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>(B,·Self::<a·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:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(B,·Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·R,
106 ····R:·<a·class="trait"·href="../../core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&lt;Output·=·B&gt;,</div></h4></section></summary><div·class='docblock'>An·iterator·method·that·applies·a·function·as·long·as·it·returns106 ····R:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.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
107 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:·eecdce021399d206eb3ef5af12ee7663b4eb0dca55b0f411c7fa66f605b6b2e2·...·]/core/iter/traits/iterator/trait.Iterator.html#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 successfully,·producing·a·single,·final·value.·<a·href="https://doc.rust-lang.org/1.78.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:·52912e82c4b0a760d06f77eb4ee3a59ba70dd76cb532954900c73ae94c652674·...·]/core/iter/traits/iterator/trait.Iterator.html#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.78.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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.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.78.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.78.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.fold"·class="method·trait-impl"><span·class="rightside"><span·class="since"·title=[·...·truncated·by·diffoscope;·len:·226,·SHA:·ffdacd6b524bc823efebbf23dc0f77317a07fe9c8b691f2ea18db7aa0c08b146·...·]/core/iter/traits/iterator/trait.Iterator.html#method.fold"·class="fn">fold</a>&lt;B,·F&gt;(self,·init:·B,·f:·F)·-&gt;·B<div·class="where">where111 iterator,·stopping·at·the·first·error·and·returning·that·error.·<a·href="https://doc.rust-lang.org/1.78.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:·1d6c4809cea8748e901d3f94777f450d430f3161f6ac05ed1c178d9327f966a3·...·]/core/iter/traits/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
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.78.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>(B,·Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::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 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(B,·Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::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 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:·dbe3a08fe63abd47570741e71208c31aaf51152feac5917db07665a1f56bb3e3·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;<div·class="where">where114 returning·the·final·result.·<a·href="https://doc.rust-lang.org/1.78.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:·b60215068a6d9721be05f81098c51167d7138c4042f140cad42f77c4df43f597·...·]/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.78.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:·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·reducing116 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·352,·SHA:·e7c3c296abe2c0a183967153e4ae7fd50bafa2ae7088e3e78b3b48fee253adc6·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::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
117 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:·a9dce8bb557b5a11426bf2ffcbd5eea7c6c870833e3ee5bb072dcaaa11687b0c·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_reduce"·class="fn">try_reduce</a>&lt;F,·R&gt;(117 operation.·<a·href="https://doc.rust-lang.org/1.78.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:·7a18fdd041b1a001b4a8feb289ee127fd9240232239269eb35dc3b8f74783ec9·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_reduce"·class="fn">try_reduce</a>&lt;F,·R&gt;(
118 ····&amp;mut·self,118 ····&amp;mut·self,
119 ····f:·F119 ····f:·F
120 )·-&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">where120 )·-&gt;·&lt;&lt;R·as·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&gt;::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/ops/try_trait/trait.Try.html#associatedtype.Residual"·title="type[·...·truncated·by·diffoscope;·len:·754,·SHA:·6fb4dfdb6b4da68921c1e7f8b75d99cf293d58318d684a840254ce9576957bea·...·]/core/ops/try_trait/trait.Residual.html#associatedtype.TryType"·title="type·core::ops::try_trait::Residual::TryType">TryType</a><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.78.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:·59,·SHA:·3d53eece7c48858eda31192ab2620ae144896b35400c945bbf3eb5dc06bf8d12·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·R,122 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·140,·SHA:·c27972e6fa3464c9476eaa185e8657edb6bb294f148403f3d079285294a9f909·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·R,
123 ····R:·<a·class="trait"·href="../../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.78.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.78.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.78.0/core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&gt;::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/ops/try_trait/trait.Try.html#associatedtype.Residual"·title="type[·...·truncated·by·diffoscope;·len:·412,·SHA:·22b8cbb007e5cce82b9d13a65bfa56aa8d83c32541fac25f4d9b3857b0540908·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;&gt;,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iterator_try_reduce</code>&nbsp;<a·href="https://github.com/rust-lang/rust/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:·65b80c848af6e465c8c5aef4ec8d3faaa399d30c8427c9507fda7b3bd1d3ea93·...·]/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.78.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:·bc0d658d56e348823de15386e1cd4ab49109f3a7a055a4573a19391b47071193·...·]/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.78.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:·95a840b532d3d621bde4032d63854eb0a481248e2b4bbb3ef058dbffb4dae4fa·...·]/core/primitive.bool.html">bool</a><div·class="where">where127 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·1018,·SHA:·e61cd6bdd36729cc38e57fcaea2ccb91a23a5acbda3c8986071f19bf1ecfc52a·...·]/core/primitive.bool.html">bool</a><div·class="where">where
Max diff block lines reached; 145318/323135 bytes (44.97%) of diff not shown.
301 KB
./usr/share/doc/rust-web-doc/html/alloc/slice/struct.ChunksExactMut.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·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.write(`<link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/SourceSerif4-Regular-46f98efaafac5295.ttf.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/FiraSans-Regular-018c141bf0843ffd.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/FiraSans-Medium-8f9a781e4970d388.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/SourceCodePro-Regular-562dcc5011b6de7d.ttf.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/SourceCodePro-Semibold-d899c5a5c4aeb14a.ttf.woff2">`)</script><link·rel="stylesheet"·href="../../static.files/normalize-76eba96aa4d2e634.css"><link·rel="stylesheet"·href="../../static.files/rustdoc-35f9e32502181f1e.css"><meta·name="rustdoc-vars"·data-root-path="../../"·data-static-root-path="../../static.files/"·data-current-crate="alloc"·data-themes=""·data-resource-suffix="1.78.0"·data-rustdoc-version="1.78.0"·data-channel="1.78.0"·data-search-js="search-42d8da7a6b9792c2.js"·data-settings-js="settings-4313503d2e1961c2.js"·><script·src="../../static.files/storage-4c98445ec4002617.js"></script><script·defer·src="sidebar-items1.78.0.js"></script><script·defer·src="../../static.files/main-12cf3b4f4f9dc36d.js"></script><noscript><link·rel="stylesheet"·href="../../static.files/noscript-04d5337699b92874.css"></noscript><link·rel="alternate·icon"·type="image/png"·href="../../static.files/favicon-16x16-8b506e7a72182f1c.png"><link·rel="alternate·icon"·type="image/png"·href="../../static.files/favicon-32x32-422f7d1d52889060.png"><link·rel="icon"·type="image/svg+xml"·href="../../static.files/favicon-2c020d218678b618.svg"></head><body·class="rustdoc·struct"><!--[if·lte·IE·11]><div·class="warning">This·old·browser·is·unsupported·and·will·most·likely·display·funky·things.</div><![endif]--><nav·class="mobile-topbar"><button·class="sidebar-menu-toggle"·title="show·sidebar"></button><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-151179464ae7ed46.svg"·alt=""></a></nav><nav·class="sidebar"><div·class="sidebar-crate"><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-151179464ae7ed46.svg"·alt="logo"></a><h2><a·href="../../alloc/index.html">alloc</a><span·class="version">1.78.0</span></h2></div><h2·class="location"><a·href="#">ChunksExactMut</a></h2><div·class="sidebar-elems"><section><h3><a·href="#implementations">Methods</a></h3><ul·class="block·method"><li><a·href="#method.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">Debug</a></li><li><a·href="#impl-DoubleEndedIterator-for-ChunksExactMut%3C'a,+T%3E">DoubleEndedIterator</a></li><li><a·href="#impl-ExactSizeIterator-for-ChunksExactMut%3C'_,+T%3E">ExactSizeIterator</a></li><li><a·href="#impl-FusedIterator-for-ChunksExactMut%3C'_,+T%3E">FusedIterator</a></li><li><a·href="#impl-Iterator-for-ChunksExactMut%3C'a,+T%3E">Iterator</a></li><li><a·href="#impl-Send-for-ChunksExactMut%3C'_,+T%3E">Send</a></li><li><a·href="#impl-Sync-for-ChunksExactMut%3C'_,+T%3E">Sync</a></li><li><a·href="#impl-TrustedLen-for-ChunksExactMut%3C'_,+T%3E">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">!UnwindSafe</a></li><li><a·href="#impl-Freeze-for-ChunksExactMut%3C'a,+T%3E">Freeze</a></li><li><a·href="#impl-RefUnwindSafe-for-ChunksExactMut%3C'a,+T%3E">RefUnwindSafe</a></li><li><a·href="#impl-Unpin-for-ChunksExactMut%3C'a,+T%3E">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">Any</a></li><li><a·href="#impl-Borrow%3CT%3E-for-T">Borrow&lt;T&gt;</a></li><li><a·href="#impl-BorrowMut%3CT%3E-for-T">BorrowMut&lt;T&gt;</a></li><li><a·href="#impl-From%3CT%3E-for-T">From&lt;T&gt;</a></li><li><a·href="#impl-Into%3CU%3E-for-T">Into&lt;U&gt;</a></li><li><a·href="#impl-IntoIterator-for-I">IntoIterator</a></li><li><a·href="#impl-TryFrom%3CU%3E-for-T">TryFrom&lt;U&gt;</a></li><li><a·href="#impl-TryInto%3CU%3E-for-T">TryInto&lt;U&gt;</a></li></ul></section><h2><a·href="index.html">In·alloc::slice</a></h2></div></nav><div·class="sidebar-resizer"></div>1 <!DOCTYPE·html><html·lang="en"><head><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.write(`<link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/SourceSerif4-Regular-46f98efaafac5295.ttf.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/FiraSans-Regular-018c141bf0843ffd.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/FiraSans-Medium-8f9a781e4970d388.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/SourceCodePro-Regular-562dcc5011b6de7d.ttf.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/SourceCodePro-Semibold-d899c5a5c4aeb14a.ttf.woff2">`)</script><link·rel="stylesheet"·href="../../static.files/normalize-76eba96aa4d2e634.css"><link·rel="stylesheet"·href="../../static.files/rustdoc-35f9e32502181f1e.css"><meta·name="rustdoc-vars"·data-root-path="../../"·data-static-root-path="../../static.files/"·data-current-crate="alloc"·data-themes=""·data-resource-suffix="1.78.0"·data-rustdoc-version="1.78.0"·data-channel="1.78.0"·data-search-js="search-42d8da7a6b9792c2.js"·data-settings-js="settings-4313503d2e1961c2.js"·><script·src="../../static.files/storage-4c98445ec4002617.js"></script><script·defer·src="sidebar-items1.78.0.js"></script><script·defer·src="../../static.files/main-12cf3b4f4f9dc36d.js"></script><noscript><link·rel="stylesheet"·href="../../static.files/noscript-04d5337699b92874.css"></noscript><link·rel="alternate·icon"·type="image/png"·href="../../static.files/favicon-16x16-8b506e7a72182f1c.png"><link·rel="alternate·icon"·type="image/png"·href="../../static.files/favicon-32x32-422f7d1d52889060.png"><link·rel="icon"·type="image/svg+xml"·href="../../static.files/favicon-2c020d218678b618.svg"></head><body·class="rustdoc·struct"><!--[if·lte·IE·11]><div·class="warning">This·old·browser·is·unsupported·and·will·most·likely·display·funky·things.</div><![endif]--><nav·class="mobile-topbar"><button·class="sidebar-menu-toggle"·title="show·sidebar"></button><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-151179464ae7ed46.svg"·alt=""></a></nav><nav·class="sidebar"><div·class="sidebar-crate"><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-151179464ae7ed46.svg"·alt="logo"></a><h2><a·href="../../alloc/index.html">alloc</a><span·class="version">1.78.0</span></h2></div><h2·class="location"><a·href="#">ChunksExactMut</a></h2><div·class="sidebar-elems"><section><h3><a·href="#implementations">Methods</a></h3><ul·class="block·method"><li><a·href="#method.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">Debug</a></li><li><a·href="#impl-DoubleEndedIterator-for-ChunksExactMut%3C'a,+T%3E">DoubleEndedIterator</a></li><li><a·href="#impl-ExactSizeIterator-for-ChunksExactMut%3C'_,+T%3E">ExactSizeIterator</a></li><li><a·href="#impl-FusedIterator-for-ChunksExactMut%3C'_,+T%3E">FusedIterator</a></li><li><a·href="#impl-Iterator-for-ChunksExactMut%3C'a,+T%3E">Iterator</a></li><li><a·href="#impl-Send-for-ChunksExactMut%3C'_,+T%3E">Send</a></li><li><a·href="#impl-Sync-for-ChunksExactMut%3C'_,+T%3E">Sync</a></li><li><a·href="#impl-TrustedLen-for-ChunksExactMut%3C'_,+T%3E">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">!UnwindSafe</a></li><li><a·href="#impl-Freeze-for-ChunksExactMut%3C'a,+T%3E">Freeze</a></li><li><a·href="#impl-RefUnwindSafe-for-ChunksExactMut%3C'a,+T%3E">RefUnwindSafe</a></li><li><a·href="#impl-Unpin-for-ChunksExactMut%3C'a,+T%3E">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">Any</a></li><li><a·href="#impl-Borrow%3CT%3E-for-T">Borrow&lt;T&gt;</a></li><li><a·href="#impl-BorrowMut%3CT%3E-for-T">BorrowMut&lt;T&gt;</a></li><li><a·href="#impl-From%3CT%3E-for-T">From&lt;T&gt;</a></li><li><a·href="#impl-Into%3CU%3E-for-T">Into&lt;U&gt;</a></li><li><a·href="#impl-IntoIterator-for-I">IntoIterator</a></li><li><a·href="#impl-TryFrom%3CU%3E-for-T">TryFrom&lt;U&gt;</a></li><li><a·href="#impl-TryInto%3CU%3E-for-T">TryInto&lt;U&gt;</a></li></ul></section><h2><a·href="index.html">In·alloc::slice</a></h2></div></nav><div·class="sidebar-resizer"></div>
2 ····<main><div·class="width-limiter"><nav·class="sub"><form·class="search-form"><span></span><div·id="sidebar-button"·tabindex="-1"><a·href="../../alloc/all.html"·title="show·sidebar"></a></div><input·class="search-input"·name="search"·aria-label="Run·search·in·the·documentation"·autocomplete="off"·spellcheck="false"·placeholder="Click·or·press·‘S’·to·search,·‘?’·for·more·options…"·type="search"><div·id="help-button"·tabindex="-1"><a·href="../../help.html"·title="help">?</a></div><div·id="settings-menu"·tabindex="-1"><a·href="../../settings.html"·title="settings"><img·width="22"·height="22"·alt="Change·settings"·src="../../static.files/wheel-7b819b6101059cd0.svg"></a></div></form></nav><section·id="main-content"·class="content"><div·class="main-heading"><h1>Struct·<a·href="../index.html">alloc</a>::<wbr><a·href="index.html">slice</a>::<wbr><a·class="struct"·href="#">ChunksExactMut</a><button·id="copy-path"·title="Copy·item·path·to·clipboard"><img·src="../../static.files/clipboard-7571035ce49a181d.svg"·width="19"·height="18"·alt="Copy·item·path"></button></h1><span·class="out-of-band"><span·class="since"·title="Stable·since·Rust·version·1.31.0">1.31.0</span>···<a·class="src"·href="../../src/core/slice/iter.rs.html#2001">source</a>···<button·id="toggle-all-docs"·title="collapse·all·docs">[<span>&#x2212;</span>]</button></span></div><pre·class="rust·item-decl"><code>pub·struct·ChunksExactMut&lt;'a,·T&gt;<div·class="where">where2 ····<main><div·class="width-limiter"><nav·class="sub"><form·class="search-form"><span></span><div·id="sidebar-button"·tabindex="-1"><a·href="../../alloc/all.html"·title="show·sidebar"></a></div><input·class="search-input"·name="search"·aria-label="Run·search·in·the·documentation"·autocomplete="off"·spellcheck="false"·placeholder="Click·or·press·‘S’·to·search,·‘?’·for·more·options…"·type="search"><div·id="help-button"·tabindex="-1"><a·href="../../help.html"·title="help">?</a></div><div·id="settings-menu"·tabindex="-1"><a·href="../../settings.html"·title="settings"><img·width="22"·height="22"·alt="Change·settings"·src="../../static.files/wheel-7b819b6101059cd0.svg"></a></div></form></nav><section·id="main-content"·class="content"><div·class="main-heading"><h1>Struct·<a·href="../index.html">alloc</a>::<wbr><a·href="index.html">slice</a>::<wbr><a·class="struct"·href="#">ChunksExactMut</a><button·id="copy-path"·title="Copy·item·path·to·clipboard"><img·src="../../static.files/clipboard-7571035ce49a181d.svg"·width="19"·height="18"·alt="Copy·item·path"></button></h1><span·class="out-of-band"><span·class="since"·title="Stable·since·Rust·version·1.31.0">1.31.0</span>···<a·class="src"·href="https://doc.rust-lang.org/1.78.0/src/core/slice/iter.rs.html#2001">source</a>···<button·id="toggle-all-docs"·title="collapse·all·docs">[<span>&#x2212;</span>]</button></span></div><pre·class="rust·item-decl"><code>pub·struct·ChunksExactMut&lt;'a,·T&gt;<div·class="where">where
3 ····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 ····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>
4 elements·at·a·time),·starting·at·the·beginning·of·the·slice.</p>4 elements·at·a·time),·starting·at·the·beginning·of·the·slice.</p>
5 <p>When·the·slice·len·is·not·evenly·divided·by·the·chunk·size,·the·last·up·to5 <p>When·the·slice·len·is·not·evenly·divided·by·the·chunk·size,·the·last·up·to
6 <code>chunk_size-1</code>·elements·will·be·omitted·but·can·be·retrieved·from·the6 <code>chunk_size-1</code>·elements·will·be·omitted·but·can·be·retrieved·from·the
7 <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 <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>
8 <p>This·struct·is·created·by·the·<a·href="../../core/primitive.slice.html#method.chunks_exact_mut"·title="method·slice::chunks_exact_mut"><code>chunks_exact_mut</code></a>·method·on·<a·href="../../core/primitive.slice.html"·title="primitive·slice">slices</a>.</p>8 <p>This·struct·is·created·by·the·<a·href="https://doc.rust-lang.org/1.78.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.78.0/core/primitive.slice.html"·title="primitive·slice">slices</a>.</p>
9 <h2·id="example"><a·class="doc-anchor"·href="#example">§</a>Example</h2>9 <h2·id="example"><a·class="doc-anchor"·href="#example">§</a>Example</h2>
10 <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 <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>];
11 <span·class="kw">let·</span>iter·=·slice.chunks_exact_mut(<span·class="number">2</span>);</code></pre><a·class="test-arrow"·target="_blank"·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">Run</a></div>11 <span·class="kw">let·</span>iter·=·slice.chunks_exact_mut(<span·class="number">2</span>);</code></pre><a·class="test-arrow"·target="_blank"·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">Run</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-ChunksExactMut%3C'a,+T%3E"·class="impl"><a·class="src·rightside"·href="../../src/core/slice/iter.rs.html#2014">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:·408,·SHA:·0e33a31fe753d8f00b088c4ccbe53e69f9c0d3bf57f8e23b7e587c77a3797f72·...·]/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·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-ChunksExactMut%3C'a,+T%3E"·class="impl"><a·class="src·rightside"·href="https://doc.rust-lang.org/1.78.0/src/core/slice/iter.rs.html#2014">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:·489,·SHA:·276921115d16411b6199b6ef0eeab1f50f9e0cd229a03fcb50b7d47213db8622·...·]/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
13 returned·by·the·iterator.·The·returned·slice·has·at·most·<code>chunk_size-1</code>13 returned·by·the·iterator.·The·returned·slice·has·at·most·<code>chunk_size-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-ChunksExactMut%3C'a,+T%3E"·class="impl"><a·class="src·rightside"·href="../../src/core/slice/iter.rs.html#1998">source</a><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">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-ChunksExactMut%3C'a,+T%3E"·class="impl"><a·class="src·rightside"·href="https://doc.rust-lang.org/1.78.0/src/core/slice/iter.rs.html#1998">source</a><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
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#1998">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:·2345,·SHA:·3edb60a4c7e8272a50b154825acca7b40fe6287ed72712d1ab96793df3ed4487·...·]/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.78.0/src/core/slice/iter.rs.html#1998">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:·2669,·SHA:·90114369da222f9933e5b9d7aded774e7d1ca715d3bff9abc028cd09213727e3·...·]/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.78.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.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:·5aec69fd6239b94b8151d99237e85b5e2f605ff9685748f45feaf1e426c439b1·...·]/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.78.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:·f90675bb7e4f957379da1e0c18299abf07ee5a4fe1b4ca3eb03fbf83e325e0bb·...·]/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.78.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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(B,·Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.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.78.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.7[·...·truncated·by·diffoscope;·len:·3,·SHA:·7b1bd53949b752d143d871408483b5382371b5bc48d195d0c040ec93cfa2748b·...·]/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:·74b709f2c818a4eda5d85ea863eb2d8af72c87564dbab2746e67feafb0cbb9a3·...·]/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.78.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:·d66ed7e195a53e9945339ef1976aed455dcf80228d8e5b7b0c69a64c3983fea1·...·]/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.78.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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(B,·Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/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:·f8bdf1e28866c7668477ab391452c7cfa7fd52cc69b633e782a157931421b39b·...·]/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.78.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:·c264047794019a6dcf05728ba6a6ee1f8f07c7209958b3366ba94546b527ecdc·...·]/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.78.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:·8566,·SHA:·ba8be1690f3f70f0362775d8bf4b5a09fa5f67aa6e8c7f7ebd7927b959b861ec·...·]/core/primitive.usize.html">usize</a>&gt;(28 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·9862,·SHA:·df05c6a33ec48fc5353d3df5515854bc10e7fb5bb9776becb5f56c60edeec1b5·...·]/core/primitive.usize.html">usize</a>&gt;(
29 ····&amp;mut·self29 ····&amp;mut·self
30 )·-&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">where30 )·-&gt;·<a·class="enum"·href="https://doc.rust-lang.org/1.78.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.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title=[·...·truncated·by·diffoscope;·len:·381,·SHA:·88c48923c9b7ea5cc47c1087c60e09656e81d4671c58071ba2bef826335388bc·...·]/core/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
31 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></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:·35097ac20cb94a94d329a7511e21173c3e63fd8ce0a6d69b63b12136ae10fe6d·...·]/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.78.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></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:·3b082a2bc331439bfa16e12f26774fc7db23f44625156e2161c751eb349fb5c0·...·]/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.78.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:·5667b9b6c9778ff3b9d23ed0a110e7ab9d3fccc786fdcaca8c17edf996236439·...·]/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.78.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:·e83c903581753673e083ce8dd809879a2fc81ab3050eb6db267d7fa26b15e035·...·]/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.78.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:·1c6bb9803ee8832ebd4c28a08a952178165595b6870cf35d3c89454b9da828b2·...·]/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.78.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.78.0/core/iter/traits/it[·...·truncated·by·diffoscope;·len:·1329,·SHA:·d9299c8edc606ed82f24d61ce441bec451141d684c2a9a75074f5b19c57f196c·...·]/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.78.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:·c1b5e692e89c9c809075ee8ee72fb15a9ec46c075b08450e1f707d672a224750·...·]/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.78.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:·98627729f77dcf1c9d258f343354ba600b7134c6b3929080f231e8de7155b70b·...·]/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.78.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.78.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.78.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:·d6282409add0999f2130eb6bbe6d0473ce96bf2544799e8bc22156f3c2d2e0dd·...·]/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.78.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:·7301b6beba7b6885849be90a625df68ef739a5374af456c51fe2e81d91a25363·...·]/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.78.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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::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:·fb4c9589a16c7b6d697c109d1193d2f1e763e5dd967101c2fd92b32416972229·...·]/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.78.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:·98f6effefa44d759c249143d83623f0055d937382bfc398b7e1f5e92cd413657·...·]/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.78.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:·7abbad666ec88a1053b8aca2a481d629a3ef3596eddb570c381205fa2d859a52·...·]/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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·916,·SHA:·30d0b2a76513c5a880e9aee43e92b18805845cfcfe5783f62dc090167a439e63·...·]/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.78.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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·140,·SHA:·752f473b57e7444ebfddf5ea7fd40a332e83ec55524a6c31b5ee0f82a5dea819·...·]/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:·7da07154834a15b8ae55b4fd41479da070ccbd27e071909f81698570c306a081·...·]/core/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.78.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:·76aa2ad154f88085ee3f8a22721a7e6812680bac785d19059532407f50da1801·...·]/core/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.78.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:·c89169e5bf1c4724c7b411e568b6dad6475896f2606f557b3d708359ef71f5cc·...·]/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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·1052,·SHA:·110b47c7083083d565fcfc89337fddc8e5c87e81b2f720f3f7b0ded55e8500fb·...·]/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.78.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:·53634008856676c70c32b501f7ec498c1f86d123cc9b5b898256a69895ff31fc·...·]/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.78.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:·8464264e074dde5d84f0414ab3b5b2d8da83f3c9e3ca04c45458241580a8c80d·...·]/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.78.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.78.0/core/iter/adapte[·...·truncated·by·diffoscope;·len:·175,·SHA:·16fe7225bf05b478e2828b347c3d23ded9a22f89d8887a2c65d9f7b3faf1b0e7·...·]/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:·77dd41e041d66c618d306e900a9159cf1b00478b8f37e5692be62119a1d4fcda·...·]/core/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.78.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:·00ccbb673c11ed48d8c6aa2a3f8984fb298202e7bccfa42f1ac21290fcc0fb06·...·]/core/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.78.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:·c18326af66652e52fa627bfd0312af7fa2ad0ddc162b12a46e61047a031b0264·...·]/core/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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·1234,·SHA:·3b805567411cdcebed740f9e8d400dbe7fb487504f40e284544a140155090fdf·...·]/core/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.78.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:·39eeddf219b211245393e51a591d5064c740fa9be49d88883d8a6474679741ad·...·]/core/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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·1058,·SHA:·b390dbdda8d7e93604b5ecd906a93efd03fe19bdaf41cf12893fd361bf974307·...·]/core/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.78.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:·9369fa85b74ff841f7401949cadba6dfbbbeead2a99568f20dcfd5aab20d61ab·...·]/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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·1163,·SHA:·5772149166d344bf8fa5ebbd9db8693a8f2e5f031c50338e8f1523ef72f814d6·...·]/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:·a25e81a74cc82c1837477e2b0cea682fff9f43550640901b8010ac501ca69e3d·...·]/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.78.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:·6216516fe581c401abda3c95818192e8f030e2008c9bbdbaafebba16f33ea9bd·...·]/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.78.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:·de8f1023275132502c1569b0ef9a557dc98eaf60aae97cdb916e52f9f55100aa·...·]/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.78.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:·485843399c56e24bdf020ff0610d0ce1f62fbac5530d9880a1a7417105e3d70f·...·]/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.78.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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(<a·class="primitive"·href="https://doc.rust-lang.org/1.78.0/core/primitive.reference.html">&amp;mut·St</a>,·Self::<a·class="associatedty[·...·truncated·by·diffoscope;·len:·449,·SHA:·f12c268a8a8111b9e7126ad78bf5523a63733caa63d187c4fe792309ea41acdf·...·]/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:·8b31595e3cee3022819032aac82e3df712188a2a6dcc20da6939262e5e528591·...·]/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.78.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.78.0/core/iter/trai[·...·truncated·by·diffoscope;·len:·690,·SHA:·371190e5c1bf9b7dde6e84447965a69946212b977b9eb6d89048fbe34c5dda1c·...·]/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.78.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.78.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:·9b6a337a3ad68c2a987b52450c153f87a04a8ed9e83603d26077fe6e70d61edf·...·]/core/iter/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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·976,·SHA:·2a9182f6fe88e0b8a9b1ae1f46cace940cc0b8736033c354c0f0ccbf1c196e7a·...·]/core/iter/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.78.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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;[Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtyp[·...·truncated·by·diffoscope;·len:·135,·SHA:·0b06a6094d42ccbc8bce5b01c4383961fe7f1967f05e4c9f1ff33e71e425fb26·...·]/core/primitive.array.html">N</a>])·-&gt;·R,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iter_map_windows</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/87155">#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.78.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:·238f6b49b3e28d725c57040edaa60bfbb34f140155e6af1d30eab52da1c7274f·...·]/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.78.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:·0d33056cee8a4f9b70b573c0adecc2f3599a2f8d9fa9f2c2044e9118ab134f73·...·]/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:·cfd3edf89fe5aca24b994f83b0d7da765620394e35140e694d98233d4d92481b·...·]/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.78.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.78.0/core/op[·...·truncated·by·diffoscope;·len:·841,·SHA:·9cba1b175fb3726d7f1f01da9be7c1a56568a68e4ce7915a468b730902daf8d3·...·]/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.78.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:·772,·SHA:·31d2052382378512fa905c6d5297d384eac7b7f126141ce561719c0e27cc9d39·...·]/core/primitive.reference.html">&amp;mut·Self</a><div·class="where">where77 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·934,·SHA:·ea20d2e0fe9388580ea08100baa9120b5e9b6cb48f43fc846f15db8b9649e7f6·...·]/core/primitive.reference.html">&amp;mut·Self</a><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:·98760b16b1ed91f9558e6e2637724a4608316181d5f6f4d236e896a83eca9af9·...·]/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.78.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.78.0/core/it[·...·truncated·by·diffoscope;·len:·523,·SHA:·97064c705f6f4bdf74469c54fabcf580d21893127d1b4cd9a9c1018a717ef153·...·]/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.78.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.78.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:·e5d524e874326d0b9b733f5ee809c6595cde869afab0cc3d4ba8454093f420da·...·]/core/primitive.reference.html">&amp;mut·E</a><div·class="where">where80 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.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.78.0/core/iter/tr[·...·truncated·by·diffoscope;·len:·728,·SHA:·01937c2dc314c259495665570ae249c94b4a5b0719718f5f1188e6fc64ecf487·...·]/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.78.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.78.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:·b0297783e056393a542c4058b42c18523a86c961c1b6ce3bc94342c1a2c10c58·...·]/core/primitive.tuple.html">(B,·B)</a><div·class="where">where82 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></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:·00bd47017b1bdd1bbe2c3fc932d955a8aa2f7f5eff8c00e3001ae28a982a5883·...·]/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.78.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.78.0/core/default/trait.Default.html"·title="trait·core::default::Default">Default</a>·+·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/collect/trait.Extend.html"·title="trait·core::iter::traits::collec[·...·truncated·by·diffoscope;·len:·95,·SHA:·8b3be1d0042cae0550f865faf5849221240bdf04eb1b2107605b72d48c3ad29c·...·]/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:·5a1bcc1ddfc5fccf50d61bf2b8879dae247aa12c0b23ba2f437fd2a345cabac7·...·]/core/primitive.usize.html">usize</a><div·class="where">where85 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·995,·SHA:·bec3765fdab56713186e2454cd84738b5b28e3280a2f3d5a25cefdbc3089b520·...·]/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.78.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>·+·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/double_ended/trait.DoubleEndedIterator.html"·title="trait·core::iter::trai[·...·truncated·by·diffoscope;·len:·132,·SHA:·e5b2cf5f56946ede1e190ed09879c5821e2de04cf8e5d145142eeb40c6340982·...·]/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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(<a·class="primitive"·href="https://doc.rust-lang.org/1.78.0/core/primitive.reference.html">&amp;T</a>)·-&gt;·<a·class="primitive"·href="[·...·truncated·by·diffoscope;·len:·32,·SHA:·63d052a8ced32bf927ffadd7e884c08caf4970e85dfdf6be0e568d49b174da96·...·]/core/primitive.bool.html">bool</a>,</div></h4></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:·97056c44eac6a0f986fb2c8edec37302cc06edf44a6c6f7153a5d8623d8d6c0d·...·]/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.78.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:·0c224636c18baa273f69de21f90083317f2ea0b7367a3f0d0f1c0ace55a36f79·...·]/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.78.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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·135,·SHA:·51ff5f5c7ebd8440623ea71b125c5a5837e809e308fe1a13fbe19cddb941dbd9·...·]/core/primitive.bool.html">bool</a>,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iter_is_partitioned</code>&nbsp;<a·href="https://github.com/rust-lang/rust/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:·6f406a351b93047f56fa70265a6bf28ec6874f75cd6cc5a39d51c7af462f2992·...·]/core/iter/traits/iterator/trait.Iterator.html#method.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.78.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:·2c74873f4e5ba70004a1c7edd1cc3f9e2d91271295dd1591e2d26848df4c02ba·...·]/core/iter/traits/iterator/trait.Iterator.html#method.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.78.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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(B,·Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.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.78.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:·eecdce021399d206eb3ef5af12ee7663b4eb0dca55b0f411c7fa66f605b6b2e2·...·]/core/iter/traits/iterator/trait.Iterator.html#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.78.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:·52912e82c4b0a760d06f77eb4ee3a59ba70dd76cb532954900c73ae94c652674·...·]/core/iter/traits/iterator/trait.Iterator.html#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.78.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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.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.78.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.78.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:·ffdacd6b524bc823efebbf23dc0f77317a07fe9c8b691f2ea18db7aa0c08b146·...·]/core/iter/traits/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.78.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:·1d6c4809cea8748e901d3f94777f450d430f3161f6ac05ed1c178d9327f966a3·...·]/core/iter/traits/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.78.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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(B,·Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::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:·dbe3a08fe63abd47570741e71208c31aaf51152feac5917db07665a1f56bb3e3·...·]/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.78.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:·b60215068a6d9721be05f81098c51167d7138c4042f140cad42f77c4df43f597·...·]/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.78.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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·352,·SHA:·e7c3c296abe2c0a183967153e4ae7fd50bafa2ae7088e3e78b3b48fee253adc6·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::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:·a9dce8bb557b5a11426bf2ffcbd5eea7c6c870833e3ee5bb072dcaaa11687b0c·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_reduce"·class="fn">try_reduce</a>&lt;F,·R&gt;(107 operation.·<a·href="https://doc.rust-lang.org/1.78.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:·7a18fdd041b1a001b4a8feb289ee127fd9240232239269eb35dc3b8f74783ec9·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_reduce"·class="fn">try_reduce</a>&lt;F,·R&gt;(
108 ····&amp;mut·self,108 ····&amp;mut·self,
109 ····f:·F109 ····f:·F
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.78.0/core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&gt;::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/ops/try_trait/trait.Try.html#associatedtype.Residual"·title="type[·...·truncated·by·diffoscope;·len:·754,·SHA:·6fb4dfdb6b4da68921c1e7f8b75d99cf293d58318d684a840254ce9576957bea·...·]/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.78.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:·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:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·140,·SHA:·c27972e6fa3464c9476eaa185e8657edb6bb294f148403f3d079285294a9f909·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·R,
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.78.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.78.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.78.0/core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&gt;::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/ops/try_trait/trait.Try.html#associatedtype.Residual"·title="type[·...·truncated·by·diffoscope;·len:·412,·SHA:·22b8cbb007e5cce82b9d13a65bfa56aa8d83c32541fac25f4d9b3857b0540908·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;&gt;,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iterator_try_reduce</code>&nbsp;<a·href="https://github.com/rust-lang/rust/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:·65b80c848af6e465c8c5aef4ec8d3faaa399d30c8427c9507fda7b3bd1d3ea93·...·]/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.78.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:·bc0d658d56e348823de15386e1cd4ab49109f3a7a055a4573a19391b47071193·...·]/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.78.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:·95a840b532d3d621bde4032d63854eb0a481248e2b4bbb3ef058dbffb4dae4fa·...·]/core/primitive.bool.html">bool</a><div·class="where">where117 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·1018,·SHA:·e61cd6bdd36729cc38e57fcaea2ccb91a23a5acbda3c8986071f19bf1ecfc52a·...·]/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.78.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:·f828c62edd4fe85e217286f359b56c116e14ed18bb292ba1cc13d3ed7146909e·...·]/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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·1172,·SHA:·e64ab74d116d286191ad43d9d9e10411fc011c23724aa806e9a8f9b0be0757e3·...·]/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.78.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:·21d7086b3ce0092e3f7a6a41174339bbd8724e7d186158db4db3385a73d94e8e·...·]/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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·1051,·SHA:·ecc0b8fccd861464760f9ae047ff6ab98c91a1db010cb5fa59a8c2ab883db7c4·...·]/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.78.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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·130,·SHA:·130a13019dc175d02304b4f550157e2f13ac15c2f25a979c74161d10b146ab89·...·]/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:·ac4da3337aac1ec10038e246be9cb719eeb5af1acc709f5a6a25b91900c56f53·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_find"·class="fn">try_find</a>&lt;F,·R&gt;(124 the·first·non-none·result.·<a·href="https://doc.rust-lang.org/1.78.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:·8ced1b10e78750774c5c8ed995ed83dcd13983aa75d329acf8069da106ab9f4a·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_find"·class="fn">try_find</a>&lt;F,·R&gt;(
125 ····&amp;mut·self,125 ····&amp;mut·self,
126 ····f:·F126 ····f:·F
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.78.0/core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&gt;::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/ops/try_trait/trait.Try.html#associatedtype.Residual"·title="type[·...·truncated·by·diffoscope;·len:·626,·SHA:·95f9831257b68862cbcbf54f0ad2ff4e597a4c9f763112d1da8a0897dadcf872·...·]/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; 79789/308040 bytes (25.90%) of diff not shown.
292 KB
./usr/share/doc/rust-web-doc/html/alloc/slice/struct.ChunksMut.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·beginning·of·the·slice."><title>ChunksMut·in·alloc::slice·-·Rust</title><script>·if·(window.location.protocol·!==·"file:")·document.write(`<link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/SourceSerif4-Regular-46f98efaafac5295.ttf.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/FiraSans-Regular-018c141bf0843ffd.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/FiraSans-Medium-8f9a781e4970d388.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/SourceCodePro-Regular-562dcc5011b6de7d.ttf.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/SourceCodePro-Semibold-d899c5a5c4aeb14a.ttf.woff2">`)</script><link·rel="stylesheet"·href="../../static.files/normalize-76eba96aa4d2e634.css"><link·rel="stylesheet"·href="../../static.files/rustdoc-35f9e32502181f1e.css"><meta·name="rustdoc-vars"·data-root-path="../../"·data-static-root-path="../../static.files/"·data-current-crate="alloc"·data-themes=""·data-resource-suffix="1.78.0"·data-rustdoc-version="1.78.0"·data-channel="1.78.0"·data-search-js="search-42d8da7a6b9792c2.js"·data-settings-js="settings-4313503d2e1961c2.js"·><script·src="../../static.files/storage-4c98445ec4002617.js"></script><script·defer·src="sidebar-items1.78.0.js"></script><script·defer·src="../../static.files/main-12cf3b4f4f9dc36d.js"></script><noscript><link·rel="stylesheet"·href="../../static.files/noscript-04d5337699b92874.css"></noscript><link·rel="alternate·icon"·type="image/png"·href="../../static.files/favicon-16x16-8b506e7a72182f1c.png"><link·rel="alternate·icon"·type="image/png"·href="../../static.files/favicon-32x32-422f7d1d52889060.png"><link·rel="icon"·type="image/svg+xml"·href="../../static.files/favicon-2c020d218678b618.svg"></head><body·class="rustdoc·struct"><!--[if·lte·IE·11]><div·class="warning">This·old·browser·is·unsupported·and·will·most·likely·display·funky·things.</div><![endif]--><nav·class="mobile-topbar"><button·class="sidebar-menu-toggle"·title="show·sidebar"></button><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-151179464ae7ed46.svg"·alt=""></a></nav><nav·class="sidebar"><div·class="sidebar-crate"><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-151179464ae7ed46.svg"·alt="logo"></a><h2><a·href="../../alloc/index.html">alloc</a><span·class="version">1.78.0</span></h2></div><h2·class="location"><a·href="#">ChunksMut</a></h2><div·class="sidebar-elems"><section><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">Debug</a></li><li><a·href="#impl-DoubleEndedIterator-for-ChunksMut%3C'a,+T%3E">DoubleEndedIterator</a></li><li><a·href="#impl-ExactSizeIterator-for-ChunksMut%3C'_,+T%3E">ExactSizeIterator</a></li><li><a·href="#impl-FusedIterator-for-ChunksMut%3C'_,+T%3E">FusedIterator</a></li><li><a·href="#impl-Iterator-for-ChunksMut%3C'a,+T%3E">Iterator</a></li><li><a·href="#impl-Send-for-ChunksMut%3C'_,+T%3E">Send</a></li><li><a·href="#impl-Sync-for-ChunksMut%3C'_,+T%3E">Sync</a></li><li><a·href="#impl-TrustedLen-for-ChunksMut%3C'_,+T%3E">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">!UnwindSafe</a></li><li><a·href="#impl-Freeze-for-ChunksMut%3C'a,+T%3E">Freeze</a></li><li><a·href="#impl-RefUnwindSafe-for-ChunksMut%3C'a,+T%3E">RefUnwindSafe</a></li><li><a·href="#impl-Unpin-for-ChunksMut%3C'a,+T%3E">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">Any</a></li><li><a·href="#impl-Borrow%3CT%3E-for-T">Borrow&lt;T&gt;</a></li><li><a·href="#impl-BorrowMut%3CT%3E-for-T">BorrowMut&lt;T&gt;</a></li><li><a·href="#impl-From%3CT%3E-for-T">From&lt;T&gt;</a></li><li><a·href="#impl-Into%3CU%3E-for-T">Into&lt;U&gt;</a></li><li><a·href="#impl-IntoIterator-for-I">IntoIterator</a></li><li><a·href="#impl-TryFrom%3CU%3E-for-T">TryFrom&lt;U&gt;</a></li><li><a·href="#impl-TryInto%3CU%3E-for-T">TryInto&lt;U&gt;</a></li></ul></section><h2><a·href="index.html">In·alloc::slice</a></h2></div></nav><div·class="sidebar-resizer"></div>1 <!DOCTYPE·html><html·lang="en"><head><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.write(`<link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/SourceSerif4-Regular-46f98efaafac5295.ttf.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/FiraSans-Regular-018c141bf0843ffd.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/FiraSans-Medium-8f9a781e4970d388.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/SourceCodePro-Regular-562dcc5011b6de7d.ttf.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/SourceCodePro-Semibold-d899c5a5c4aeb14a.ttf.woff2">`)</script><link·rel="stylesheet"·href="../../static.files/normalize-76eba96aa4d2e634.css"><link·rel="stylesheet"·href="../../static.files/rustdoc-35f9e32502181f1e.css"><meta·name="rustdoc-vars"·data-root-path="../../"·data-static-root-path="../../static.files/"·data-current-crate="alloc"·data-themes=""·data-resource-suffix="1.78.0"·data-rustdoc-version="1.78.0"·data-channel="1.78.0"·data-search-js="search-42d8da7a6b9792c2.js"·data-settings-js="settings-4313503d2e1961c2.js"·><script·src="../../static.files/storage-4c98445ec4002617.js"></script><script·defer·src="sidebar-items1.78.0.js"></script><script·defer·src="../../static.files/main-12cf3b4f4f9dc36d.js"></script><noscript><link·rel="stylesheet"·href="../../static.files/noscript-04d5337699b92874.css"></noscript><link·rel="alternate·icon"·type="image/png"·href="../../static.files/favicon-16x16-8b506e7a72182f1c.png"><link·rel="alternate·icon"·type="image/png"·href="../../static.files/favicon-32x32-422f7d1d52889060.png"><link·rel="icon"·type="image/svg+xml"·href="../../static.files/favicon-2c020d218678b618.svg"></head><body·class="rustdoc·struct"><!--[if·lte·IE·11]><div·class="warning">This·old·browser·is·unsupported·and·will·most·likely·display·funky·things.</div><![endif]--><nav·class="mobile-topbar"><button·class="sidebar-menu-toggle"·title="show·sidebar"></button><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-151179464ae7ed46.svg"·alt=""></a></nav><nav·class="sidebar"><div·class="sidebar-crate"><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-151179464ae7ed46.svg"·alt="logo"></a><h2><a·href="../../alloc/index.html">alloc</a><span·class="version">1.78.0</span></h2></div><h2·class="location"><a·href="#">ChunksMut</a></h2><div·class="sidebar-elems"><section><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">Debug</a></li><li><a·href="#impl-DoubleEndedIterator-for-ChunksMut%3C'a,+T%3E">DoubleEndedIterator</a></li><li><a·href="#impl-ExactSizeIterator-for-ChunksMut%3C'_,+T%3E">ExactSizeIterator</a></li><li><a·href="#impl-FusedIterator-for-ChunksMut%3C'_,+T%3E">FusedIterator</a></li><li><a·href="#impl-Iterator-for-ChunksMut%3C'a,+T%3E">Iterator</a></li><li><a·href="#impl-Send-for-ChunksMut%3C'_,+T%3E">Send</a></li><li><a·href="#impl-Sync-for-ChunksMut%3C'_,+T%3E">Sync</a></li><li><a·href="#impl-TrustedLen-for-ChunksMut%3C'_,+T%3E">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">!UnwindSafe</a></li><li><a·href="#impl-Freeze-for-ChunksMut%3C'a,+T%3E">Freeze</a></li><li><a·href="#impl-RefUnwindSafe-for-ChunksMut%3C'a,+T%3E">RefUnwindSafe</a></li><li><a·href="#impl-Unpin-for-ChunksMut%3C'a,+T%3E">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">Any</a></li><li><a·href="#impl-Borrow%3CT%3E-for-T">Borrow&lt;T&gt;</a></li><li><a·href="#impl-BorrowMut%3CT%3E-for-T">BorrowMut&lt;T&gt;</a></li><li><a·href="#impl-From%3CT%3E-for-T">From&lt;T&gt;</a></li><li><a·href="#impl-Into%3CU%3E-for-T">Into&lt;U&gt;</a></li><li><a·href="#impl-IntoIterator-for-I">IntoIterator</a></li><li><a·href="#impl-TryFrom%3CU%3E-for-T">TryFrom&lt;U&gt;</a></li><li><a·href="#impl-TryInto%3CU%3E-for-T">TryInto&lt;U&gt;</a></li></ul></section><h2><a·href="index.html">In·alloc::slice</a></h2></div></nav><div·class="sidebar-resizer"></div>
2 ····<main><div·class="width-limiter"><nav·class="sub"><form·class="search-form"><span></span><div·id="sidebar-button"·tabindex="-1"><a·href="../../alloc/all.html"·title="show·sidebar"></a></div><input·class="search-input"·name="search"·aria-label="Run·search·in·the·documentation"·autocomplete="off"·spellcheck="false"·placeholder="Click·or·press·‘S’·to·search,·‘?’·for·more·options…"·type="search"><div·id="help-button"·tabindex="-1"><a·href="../../help.html"·title="help">?</a></div><div·id="settings-menu"·tabindex="-1"><a·href="../../settings.html"·title="settings"><img·width="22"·height="22"·alt="Change·settings"·src="../../static.files/wheel-7b819b6101059cd0.svg"></a></div></form></nav><section·id="main-content"·class="content"><div·class="main-heading"><h1>Struct·<a·href="../index.html">alloc</a>::<wbr><a·href="index.html">slice</a>::<wbr><a·class="struct"·href="#">ChunksMut</a><button·id="copy-path"·title="Copy·item·path·to·clipboard"><img·src="../../static.files/clipboard-7571035ce49a181d.svg"·width="19"·height="18"·alt="Copy·item·path"></button></h1><span·class="out-of-band"><span·class="since"·title="Stable·since·Rust·version·1.0.0">1.0.0</span>···<a·class="src"·href="../../src/core/slice/iter.rs.html#1639">source</a>···<button·id="toggle-all-docs"·title="collapse·all·docs">[<span>&#x2212;</span>]</button></span></div><pre·class="rust·item-decl"><code>pub·struct·ChunksMut&lt;'a,·T&gt;<div·class="where">where2 ····<main><div·class="width-limiter"><nav·class="sub"><form·class="search-form"><span></span><div·id="sidebar-button"·tabindex="-1"><a·href="../../alloc/all.html"·title="show·sidebar"></a></div><input·class="search-input"·name="search"·aria-label="Run·search·in·the·documentation"·autocomplete="off"·spellcheck="false"·placeholder="Click·or·press·‘S’·to·search,·‘?’·for·more·options…"·type="search"><div·id="help-button"·tabindex="-1"><a·href="../../help.html"·title="help">?</a></div><div·id="settings-menu"·tabindex="-1"><a·href="../../settings.html"·title="settings"><img·width="22"·height="22"·alt="Change·settings"·src="../../static.files/wheel-7b819b6101059cd0.svg"></a></div></form></nav><section·id="main-content"·class="content"><div·class="main-heading"><h1>Struct·<a·href="../index.html">alloc</a>::<wbr><a·href="index.html">slice</a>::<wbr><a·class="struct"·href="#">ChunksMut</a><button·id="copy-path"·title="Copy·item·path·to·clipboard"><img·src="../../static.files/clipboard-7571035ce49a181d.svg"·width="19"·height="18"·alt="Copy·item·path"></button></h1><span·class="out-of-band"><span·class="since"·title="Stable·since·Rust·version·1.0.0">1.0.0</span>···<a·class="src"·href="https://doc.rust-lang.org/1.78.0/src/core/slice/iter.rs.html#1639">source</a>···<button·id="toggle-all-docs"·title="collapse·all·docs">[<span>&#x2212;</span>]</button></span></div><pre·class="rust·item-decl"><code>pub·struct·ChunksMut&lt;'a,·T&gt;<div·class="where">where
3 ····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 ····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>
4 elements·at·a·time),·starting·at·the·beginning·of·the·slice.</p>4 elements·at·a·time),·starting·at·the·beginning·of·the·slice.</p>
5 <p>When·the·slice·len·is·not·evenly·divided·by·the·chunk·size,·the·last·slice5 <p>When·the·slice·len·is·not·evenly·divided·by·the·chunk·size,·the·last·slice
6 of·the·iteration·will·be·the·remainder.</p>6 of·the·iteration·will·be·the·remainder.</p>
7 <p>This·struct·is·created·by·the·<a·href="../../core/primitive.slice.html#method.chunks_mut"·title="method·slice::chunks_mut"><code>chunks_mut</code></a>·method·on·<a·href="../../core/primitive.slice.html"·title="primitive·slice">slices</a>.</p>7 <p>This·struct·is·created·by·the·<a·href="https://doc.rust-lang.org/1.78.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.78.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_mut(<span·class="number">2</span>);</code></pre><a·class="test-arrow"·target="_blank"·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">Run</a></div>10 <span·class="kw">let·</span>iter·=·slice.chunks_mut(<span·class="number">2</span>);</code></pre><a·class="test-arrow"·target="_blank"·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">Run</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-Debug-for-ChunksMut%3C'a,+T%3E"·class="impl"><a·class="src·rightside"·href="../../src/core/slice/iter.rs.html#1636">source</a><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">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-Debug-for-ChunksMut%3C'a,+T%3E"·class="impl"><a·class="src·rightside"·href="https://doc.rust-lang.org/1.78.0/src/core/slice/iter.rs.html#1636">source</a><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
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#1636">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:·5077,·SHA:·1a0d78627ed7af6f0fd3f701491f20f98a03507298f41bf2567f006eb33f891e·...·]/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.78.0/src/core/slice/iter.rs.html#1636">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:·5806,·SHA:·83cd2d0774c029aa3dd197e36c22750e340d0c15e2253a4b66fd8a6d17392fcd·...·]/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.78.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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(B,·Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.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.78.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.7[·...·truncated·by·diffoscope;·len:·3,·SHA:·7b1bd53949b752d143d871408483b5382371b5bc48d195d0c040ec93cfa2748b·...·]/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:·74b709f2c818a4eda5d85ea863eb2d8af72c87564dbab2746e67feafb0cbb9a3·...·]/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.78.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:·d66ed7e195a53e9945339ef1976aed455dcf80228d8e5b7b0c69a64c3983fea1·...·]/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.78.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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(B,·Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/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:·f8bdf1e28866c7668477ab391452c7cfa7fd52cc69b633e782a157931421b39b·...·]/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.78.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:·c264047794019a6dcf05728ba6a6ee1f8f07c7209958b3366ba94546b527ecdc·...·]/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.78.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:·8416,·SHA:·e956f0c36ce46be1627513ff3969888cc4d3a1480d1144fac75f9131dddddd84·...·]/core/primitive.usize.html">usize</a>&gt;(21 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·9712,·SHA:·34f9053384482ce5c2ceb2bc3bf38caa26eb14ef39af2a2f41a00de2b60aa897·...·]/core/primitive.usize.html">usize</a>&gt;(
22 ····&amp;mut·self22 ····&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.78.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.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title=[·...·truncated·by·diffoscope;·len:·381,·SHA:·88c48923c9b7ea5cc47c1087c60e09656e81d4671c58071ba2bef826335388bc·...·]/core/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:·35097ac20cb94a94d329a7511e21173c3e63fd8ce0a6d69b63b12136ae10fe6d·...·]/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.78.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></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:·3b082a2bc331439bfa16e12f26774fc7db23f44625156e2161c751eb349fb5c0·...·]/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.78.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"><a·class="src·rightside"·href="../../src/core/iter/tra[·...·truncated·by·diffoscope;·len:·584,·SHA:·fd3e570373eb5121d35d7e22cdd5dd5fbf7183ee80147135a591fd1285174e82·...·]/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.78.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"><a·class="src·rightside"·hr[·...·truncated·by·diffoscope;·len:·746,·SHA:·f1f70d650c102c8658e13890c7dbfc87418f07e7b522246fb579ec434ef64f7c·...·]/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.78.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:·1017,·SHA:·c0f5f8cfd297e1678ac0ee2fd847fb6f0577665ac326e8e2e9d6414a710c8f98·...·]/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.78.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.78.0/core/iter/traits/it[·...·truncated·by·diffoscope;·len:·1233,·SHA:·f677df2d893dfe0dc1a9d31ebb0ba71a346d265781813e0d664d3f18369b6163·...·]/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.78.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:·c1b5e692e89c9c809075ee8ee72fb15a9ec46c075b08450e1f707d672a224750·...·]/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.78.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:·98627729f77dcf1c9d258f343354ba600b7134c6b3929080f231e8de7155b70b·...·]/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.78.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.78.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.78.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"><a·class="src·rightside"·href="../../src/core/i[·...·truncated·by·diffoscope;·len:·267,·SHA:·1764c9d6d2e39e1367ae2111c28ab846e66ecf12617fbff35e0132e82e5c8b13·...·]/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.78.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"><a·class="src·rights[·...·truncated·by·diffoscope;·len:·375,·SHA:·58419346f92e1709dadb70cc3cf356e3cd27972451bdc6b4fc4267e6f7e8bdae·...·]/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.78.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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::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:·fb4c9589a16c7b6d697c109d1193d2f1e763e5dd967101c2fd92b32416972229·...·]/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.78.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:·98f6effefa44d759c249143d83623f0055d937382bfc398b7e1f5e92cd413657·...·]/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.78.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:·658,·SHA:·e4449b6c00d036dd30444817045eddaf2697443d65789bb5c0b585ed1bc77702·...·]/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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·820,·SHA:·a664bbcbc0891663662e4eb7b4394d0fcd72e568136fc4d34097fea242cc32e7·...·]/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.78.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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·140,·SHA:·752f473b57e7444ebfddf5ea7fd40a332e83ec55524a6c31b5ee0f82a5dea819·...·]/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"><a·class="src·rightside"·href="../../src/core/iter[·...·truncated·by·diffoscope;·len:·285,·SHA:·738ce0440ff568829f40d141e38e2c0da2fd05d2b73d1a574be0ed9baa32e827·...·]/core/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.78.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"><a·class="src·rightside[·...·truncated·by·diffoscope;·len:·393,·SHA:·2e2aa7c9c9c087e7b346da376749064ab8c1894795a2f0a0f646cdc8c7bea997·...·]/core/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.78.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:·767,·SHA:·da0fc5bc95a3398627e0c5836423b719ccea45d351e21ddaa96f793f67f9c6de·...·]/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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·956,·SHA:·faba0521e870dbbd26d466fadba3522e7d29013a9b86376fffafffac11a57e0e·...·]/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.78.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"><a·class="src·rightside"·href="../../src/core/ite[·...·truncated·by·diffoscope;·len:·264,·SHA:·e3fa7ab43c6353bc2216a22d7010c41a8ab50d273a128d15d0eff050c058993a·...·]/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.78.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"><a·class="src·rightsid[·...·truncated·by·diffoscope;·len:·372,·SHA:·03eea0861575eb80d3f7a87a3ba747adb1a33fe7e9ce72aa2172e7a287c63a94·...·]/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.78.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.78.0/core/iter/adapte[·...·truncated·by·diffoscope;·len:·175,·SHA:·16fe7225bf05b478e2828b347c3d23ded9a22f89d8887a2c65d9f7b3faf1b0e7·...·]/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"><a·class="src·rightside"·href="../../src/core/it[·...·truncated·by·diffoscope;·len:·294,·SHA:·c0aee2077af6a4f81ed47e37c84a75b5f9b941875509fbe0b3d352866f825f45·...·]/core/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.78.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"><a·class="src·rightsi[·...·truncated·by·diffoscope;·len:·402,·SHA:·7689a974f800fd069d1b4453ef62d6d6ad1b654462d624d36e3672051d502030·...·]/core/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.78.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:·922,·SHA:·5220bbb4db3c3cd3d7ca7c27520f44f04fe367ee2f0f407fb1d50c0a327a2f99·...·]/core/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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·1138,·SHA:·f6ae06b7de8e94df014341c5cf589a5e4a1298367b2ef7a968ec499c5170a70e·...·]/core/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.78.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:·39eeddf219b211245393e51a591d5064c740fa9be49d88883d8a6474679741ad·...·]/core/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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·1058,·SHA:·b390dbdda8d7e93604b5ecd906a93efd03fe19bdaf41cf12893fd361bf974307·...·]/core/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.78.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:·851,·SHA:·ad2e090d21a034b7c3836ed38a686f4c483f9a929132fef846d48271f749a79c·...·]/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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·1067,·SHA:·415d32e1211c35d3bb405de1d6e51c2102c14cadc3333894f063148dbe0b1f69·...·]/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:·525,·SHA:·6471f48fecadc56edf21fc04794b884b96ce06d339c715e410f5a906e028bc28·...·]/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.78.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:·687,·SHA:·7f5256104c35c5948a2cb42b55f3048c9d2887e48a4a8226537a284f959c562a·...·]/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.78.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"><a·class="src·rightside"·href="../../src/core/iter/traits/[·...·truncated·by·diffoscope;·len:·284,·SHA:·aee83f38f8c40848e159b12a8faa43b9dadf589fe974632a1f15ce2a15834071·...·]/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.78.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"><a·class="src·rightside"·href="[·...·truncated·by·diffoscope;·len:·392,·SHA:·4e7da68f7be2622ef173653eca78d58e1f202b544a2e6abd14d8335c298c93a7·...·]/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.78.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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(<a·class="primitive"·href="https://doc.rust-lang.org/1.78.0/core/primitive.reference.html">&amp;mut·St</a>,·Self::<a·class="associatedty[·...·truncated·by·diffoscope;·len:·449,·SHA:·f12c268a8a8111b9e7126ad78bf5523a63733caa63d187c4fe792309ea41acdf·...·]/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:·459,·SHA:·b825570d9672670eacd8828b3abec12cd1c35433286857de28f5ea8d5e300e03·...·]/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.78.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.78.0/core/iter/trai[·...·truncated·by·diffoscope;·len:·594,·SHA:·02960742fa7892efaa08f289ce85865fc5efb6a4cd138c22e3566ca6fc727d78·...·]/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.78.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.78.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:·9b6a337a3ad68c2a987b52450c153f87a04a8ed9e83603d26077fe6e70d61edf·...·]/core/iter/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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·976,·SHA:·2a9182f6fe88e0b8a9b1ae1f46cace940cc0b8736033c354c0f0ccbf1c196e7a·...·]/core/iter/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.78.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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;[Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtyp[·...·truncated·by·diffoscope;·len:·135,·SHA:·0b06a6094d42ccbc8bce5b01c4383961fe7f1967f05e4c9f1ff33e71e425fb26·...·]/core/primitive.array.html">N</a>])·-&gt;·R,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iter_map_windows</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/87155">#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.78.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"><a·class="src·rightside"·href="../../src/core/iter/[·...·truncated·by·diffoscope;·len:·250,·SHA:·e355ddd0f04b2470ee915aec3ad97857be56b95e6a1f3d733d6c477453f4cf0d·...·]/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.78.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"><a·class="src·rightside"[·...·truncated·by·diffoscope;·len:·358,·SHA:·d91b2ab18e0ce069e262cf523c6ef961f56eecad042ea1e9bcefe33cff28fc8f·...·]/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:·583,·SHA:·b7d7d6125e8980756a2636a6b6e01600057c98a027dcf7d267b1f61538a7b6b0·...·]/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.78.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.78.0/core/op[·...·truncated·by·diffoscope;·len:·745,·SHA:·424783f22102f4446d3ad4d362b1aafdb7531fa777213f97ee138aa878f67bd1·...·]/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.78.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:·676,·SHA:·ae75f35cafbae1e0e695226baca09b0bec6e4a0ed5656a83c3357b29fb00442d·...·]/core/primitive.reference.html">&amp;mut·Self</a><div·class="where">where70 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·838,·SHA:·9b4fd8df7f41e9a76fd4cfca0a233b74b9bd27c3fe8228248abc3f940425a3e3·...·]/core/primitive.reference.html">&amp;mut·Self</a><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:·319,·SHA:·bbb653fcb1f5ad46e04905bf78a76b9dd63ea5d49a2d8cd5b7b36efbb0f7e105·...·]/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.78.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.78.0/core/it[·...·truncated·by·diffoscope;·len:·427,·SHA:·ecfaaac5d1d10c1bc4fcee9a050af0a268bee0b528c2d8ea4e9774440bd8a279·...·]/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.78.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.78.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:·e5d524e874326d0b9b733f5ee809c6595cde869afab0cc3d4ba8454093f420da·...·]/core/primitive.reference.html">&amp;mut·E</a><div·class="where">where73 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.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.78.0/core/iter/tr[·...·truncated·by·diffoscope;·len:·728,·SHA:·01937c2dc314c259495665570ae249c94b4a5b0719718f5f1188e6fc64ecf487·...·]/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.78.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.78.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:·744,·SHA:·a7446142ab67c3f20d866315fbe6cb9c57cd4af012812d6dd19d5061aee6e97b·...·]/core/primitive.tuple.html">(B,·B)</a><div·class="where">where75 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experiment[·...·truncated·by·diffoscope;·len:·879,·SHA:·e773b2222c92d001e295030cb47a780ab0c1132d7fc8e9e3a98de4f532e6c520·...·]/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.78.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.78.0/core/default/trait.Default.html"·title="trait·core::default::Default">Default</a>·+·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/collect/trait.Extend.html"·title="trait·core::iter::traits::collec[·...·truncated·by·diffoscope;·len:·95,·SHA:·8b3be1d0042cae0550f865faf5849221240bdf04eb1b2107605b72d48c3ad29c·...·]/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:·5a1bcc1ddfc5fccf50d61bf2b8879dae247aa12c0b23ba2f437fd2a345cabac7·...·]/core/primitive.usize.html">usize</a><div·class="where">where78 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·995,·SHA:·bec3765fdab56713186e2454cd84738b5b28e3280a2f3d5a25cefdbc3089b520·...·]/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.78.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>·+·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/double_ended/trait.DoubleEndedIterator.html"·title="trait·core::iter::trai[·...·truncated·by·diffoscope;·len:·132,·SHA:·e5b2cf5f56946ede1e190ed09879c5821e2de04cf8e5d145142eeb40c6340982·...·]/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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(<a·class="primitive"·href="https://doc.rust-lang.org/1.78.0/core/primitive.reference.html">&amp;T</a>)·-&gt;·<a·class="primitive"·href="[·...·truncated·by·diffoscope;·len:·32,·SHA:·63d052a8ced32bf927ffadd7e884c08caf4970e85dfdf6be0e568d49b174da96·...·]/core/primitive.bool.html">bool</a>,</div></h4></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:·97056c44eac6a0f986fb2c8edec37302cc06edf44a6c6f7153a5d8623d8d6c0d·...·]/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.78.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:·0c224636c18baa273f69de21f90083317f2ea0b7367a3f0d0f1c0ace55a36f79·...·]/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.78.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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·135,·SHA:·51ff5f5c7ebd8440623ea71b125c5a5837e809e308fe1a13fbe19cddb941dbd9·...·]/core/primitive.bool.html">bool</a>,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iter_is_partitioned</code>&nbsp;<a·href="https://github.com/rust-lang/rust/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:·6f406a351b93047f56fa70265a6bf28ec6874f75cd6cc5a39d51c7af462f2992·...·]/core/iter/traits/iterator/trait.Iterator.html#method.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.78.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:·2c74873f4e5ba70004a1c7edd1cc3f9e2d91271295dd1591e2d26848df4c02ba·...·]/core/iter/traits/iterator/trait.Iterator.html#method.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.78.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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(B,·Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.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.78.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:·eecdce021399d206eb3ef5af12ee7663b4eb0dca55b0f411c7fa66f605b6b2e2·...·]/core/iter/traits/iterator/trait.Iterator.html#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.78.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:·52912e82c4b0a760d06f77eb4ee3a59ba70dd76cb532954900c73ae94c652674·...·]/core/iter/traits/iterator/trait.Iterator.html#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.78.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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.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.78.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.78.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"><a·class="src·rightside"·href="../../src/core/iter[·...·truncated·by·diffoscope;·len:·130,·SHA:·75c0150024fe6cdc702d7337508ab57600248490dd062768204ddb064c9a1b8b·...·]/core/iter/traits/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.78.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"><a·class="src·rightside[·...·truncated·by·diffoscope;·len:·211,·SHA:·924e062acd8127e8d6158162219ee5d57a941854e14063d21d7768edae549431·...·]/core/iter/traits/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.78.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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(B,·Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::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:·dbe3a08fe63abd47570741e71208c31aaf51152feac5917db07665a1f56bb3e3·...·]/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.78.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:·b60215068a6d9721be05f81098c51167d7138c4042f140cad42f77c4df43f597·...·]/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.78.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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·352,·SHA:·e7c3c296abe2c0a183967153e4ae7fd50bafa2ae7088e3e78b3b48fee253adc6·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::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:·a9dce8bb557b5a11426bf2ffcbd5eea7c6c870833e3ee5bb072dcaaa11687b0c·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_reduce"·class="fn">try_reduce</a>&lt;F,·R&gt;(100 operation.·<a·href="https://doc.rust-lang.org/1.78.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:·7a18fdd041b1a001b4a8feb289ee127fd9240232239269eb35dc3b8f74783ec9·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_reduce"·class="fn">try_reduce</a>&lt;F,·R&gt;(
101 ····&amp;mut·self,101 ····&amp;mut·self,
102 ····f:·F102 ····f:·F
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.78.0/core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&gt;::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/ops/try_trait/trait.Try.html#associatedtype.Residual"·title="type[·...·truncated·by·diffoscope;·len:·754,·SHA:·6fb4dfdb6b4da68921c1e7f8b75d99cf293d58318d684a840254ce9576957bea·...·]/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.78.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:·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:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·140,·SHA:·c27972e6fa3464c9476eaa185e8657edb6bb294f148403f3d079285294a9f909·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·R,
106 ····R:·<a·class="trait"·href="../../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;,106 ····R:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.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.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;,
107 ····&lt;R·as·<a·class="trait"·href="../../core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&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·the107 ····&lt;R·as·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&gt;::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/ops/try_trait/trait.Try.html#associatedtype.Residual"·title="type[·...·truncated·by·diffoscope;·len:·412,·SHA:·22b8cbb007e5cce82b9d13a65bfa56aa8d83c32541fac25f4d9b3857b0540908·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;&gt;,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iterator_try_reduce</code>&nbsp;<a·href="https://github.com/rust-lang/rust/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
108 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"><a·class="src·rightside"·href="../../src/core/iter/tr[·...·truncated·by·diffoscope;·len:·272,·SHA:·97959736d897a01242f49f2e45854ab874bf0c9bbe30acad9a49eb73169e457c·...·]/core/primitive.bool.html">bool</a><div·class="where">where108 closure·returns·a·failure,·the·failure·is·propagated·back·to·the·caller·immediately.·<a·href="https://doc.rust-lang.org/1.78.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"><a·class="src·rightside"·h[·...·truncated·by·diffoscope;·len:·380,·SHA:·29c4004d4d8b0c8c9dfe9023f8b2c5ef801d9dc4688893035d182c1ae774c453·...·]/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.78.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:·733,·SHA:·9bb9f0199d90f78ad65c59dbe67a1c751cd5a681130a03bef3b1e8ed907a3bba·...·]/core/primitive.bool.html">bool</a><div·class="where">where110 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·922,·SHA:·f4fd532c280e18f28bd6dda6c2a129e2e92114b67f27235bb5fd39f725be9c43·...·]/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.78.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:·860,·SHA:·6a94ae33b82eb12a91660811a8ab9d243468d885c07ac766a2507d25a4e7ee62·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;<div·class="where">where112 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·1076,·SHA:·2dd9de8adaee4a5ee96501d9a58bfac2fea00ba8d78b834bfca29949b3afe18b·...·]/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.78.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;Self::<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:·21d7086b3ce0092e3f7a6a41174339bbd8724e7d186158db4db3385a73d94e8e·...·]/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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·1051,·SHA:·ecc0b8fccd861464760f9ae047ff6ab98c91a1db010cb5fa59a8c2ab883db7c4·...·]/core/option/enum.Option.html"·title="enum·core::option::Option">Option</a>&lt;B&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.78.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:·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·returns116 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·130,·SHA:·130a13019dc175d02304b4f550157e2f13ac15c2f25a979c74161d10b146ab89·...·]/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.try_find"·class="method·trait-impl"><a·class="src·rightside"·href="../../src/core/iter[·...·truncated·by·diffoscope;·len:·134,·SHA:·ac4da3337aac1ec10038e246be9cb719eeb5af1acc709f5a6a25b91900c56f53·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_find"·class="fn">try_find</a>&lt;F,·R&gt;(117 the·first·non-none·result.·<a·href="https://doc.rust-lang.org/1.78.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:·8ced1b10e78750774c5c8ed995ed83dcd13983aa75d329acf8069da106ab9f4a·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_find"·class="fn">try_find</a>&lt;F,·R&gt;(
118 ····&amp;mut·self,118 ····&amp;mut·self,
119 ····f:·F119 ····f:·F
120 )·-&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">where120 )·-&gt;·&lt;&lt;R·as·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&gt;::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/ops/try_trait/trait.Try.html#associatedtype.Residual"·title="type[·...·truncated·by·diffoscope;·len:·626,·SHA:·95f9831257b68862cbcbf54f0ad2ff4e597a4c9f763112d1da8a0897dadcf872·...·]/core/ops/try_trait/trait.Residual.html#associatedtype.TryType"·title="type·core::ops::try_trait::Residual::TryType">TryType</a><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.78.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;·R,122 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·R,
123 ····R:·<a·class="trait"·href="../../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.78.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.78.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.78.0/core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&gt;::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/ops/try_trait/trait.Try.html#associatedtype.Residual"·title="type[·...·truncated·by·diffoscope;·len:·412,·SHA:·22b8cbb007e5cce82b9d13a65bfa56aa8d83c32541fac25f4d9b3857b0540908·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;&gt;,</div></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"><a·class="src·rightside"·href="../../src/core/iter[·...·truncated·by·diffoscope;·len:·404,·SHA:·f45e13f24791f759991b5b3c0f29ce7cc9019b87d7ca444f65464e8a939e287c·...·]/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.78.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"><a·class="src·rightside[·...·truncated·by·diffoscope;·len:·539,·SHA:·04e329705f11ed9ec269a68b0b75ac4ab26c78e4316a571ee9336c28bbca6359·...·]/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.78.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:·877,·SHA:·075b700e51707b888367963648dd2aecf8d17daa7cc803f00bfcc74c2a659f56·...·]/core/primitive.usize.html">usize</a>&gt;<div·class="where">where127 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·1093,·SHA:·623dbacabfe45799103c799fb60a4d212ceb8759ff853a11209a07793257c9cd·...·]/core/primitive.usize.html">usize</a>&gt;<div·class="where">where
Max diff block lines reached; 79585/299238 bytes (26.60%) of diff not shown.
303 KB
./usr/share/doc/rust-web-doc/html/alloc/slice/struct.EscapeAscii.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·the·escaped·version·of·a·byte·slice."><title>EscapeAscii·in·alloc::slice·-·Rust</title><script>·if·(window.location.protocol·!==·"file:")·document.write(`<link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/SourceSerif4-Regular-46f98efaafac5295.ttf.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/FiraSans-Regular-018c141bf0843ffd.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/FiraSans-Medium-8f9a781e4970d388.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/SourceCodePro-Regular-562dcc5011b6de7d.ttf.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/SourceCodePro-Semibold-d899c5a5c4aeb14a.ttf.woff2">`)</script><link·rel="stylesheet"·href="../../static.files/normalize-76eba96aa4d2e634.css"><link·rel="stylesheet"·href="../../static.files/rustdoc-35f9e32502181f1e.css"><meta·name="rustdoc-vars"·data-root-path="../../"·data-static-root-path="../../static.files/"·data-current-crate="alloc"·data-themes=""·data-resource-suffix="1.78.0"·data-rustdoc-version="1.78.0"·data-channel="1.78.0"·data-search-js="search-42d8da7a6b9792c2.js"·data-settings-js="settings-4313503d2e1961c2.js"·><script·src="../../static.files/storage-4c98445ec4002617.js"></script><script·defer·src="sidebar-items1.78.0.js"></script><script·defer·src="../../static.files/main-12cf3b4f4f9dc36d.js"></script><noscript><link·rel="stylesheet"·href="../../static.files/noscript-04d5337699b92874.css"></noscript><link·rel="alternate·icon"·type="image/png"·href="../../static.files/favicon-16x16-8b506e7a72182f1c.png"><link·rel="alternate·icon"·type="image/png"·href="../../static.files/favicon-32x32-422f7d1d52889060.png"><link·rel="icon"·type="image/svg+xml"·href="../../static.files/favicon-2c020d218678b618.svg"></head><body·class="rustdoc·struct"><!--[if·lte·IE·11]><div·class="warning">This·old·browser·is·unsupported·and·will·most·likely·display·funky·things.</div><![endif]--><nav·class="mobile-topbar"><button·class="sidebar-menu-toggle"·title="show·sidebar"></button><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-151179464ae7ed46.svg"·alt=""></a></nav><nav·class="sidebar"><div·class="sidebar-crate"><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-151179464ae7ed46.svg"·alt="logo"></a><h2><a·href="../../alloc/index.html">alloc</a><span·class="version">1.78.0</span></h2></div><h2·class="location"><a·href="#">EscapeAscii</a></h2><div·class="sidebar-elems"><section><h3><a·href="#trait-implementations">Trait·Implementations</a></h3><ul·class="block·trait-implementation"><li><a·href="#impl-Clone-for-EscapeAscii%3C'a%3E">Clone</a></li><li><a·href="#impl-Debug-for-EscapeAscii%3C'a%3E">Debug</a></li><li><a·href="#impl-Display-for-EscapeAscii%3C'a%3E">Display</a></li><li><a·href="#impl-DoubleEndedIterator-for-EscapeAscii%3C'a%3E">DoubleEndedIterator</a></li><li><a·href="#impl-FusedIterator-for-EscapeAscii%3C'a%3E">FusedIterator</a></li><li><a·href="#impl-Iterator-for-EscapeAscii%3C'a%3E">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">Freeze</a></li><li><a·href="#impl-RefUnwindSafe-for-EscapeAscii%3C'a%3E">RefUnwindSafe</a></li><li><a·href="#impl-Send-for-EscapeAscii%3C'a%3E">Send</a></li><li><a·href="#impl-Sync-for-EscapeAscii%3C'a%3E">Sync</a></li><li><a·href="#impl-Unpin-for-EscapeAscii%3C'a%3E">Unpin</a></li><li><a·href="#impl-UnwindSafe-for-EscapeAscii%3C'a%3E">UnwindSafe</a></li></ul><h3><a·href="#blanket-implementations">Blanket·Implementations</a></h3><ul·class="block·blanket-implementation"><li><a·href="#impl-Any-for-T">Any</a></li><li><a·href="#impl-Borrow%3CT%3E-for-T">Borrow&lt;T&gt;</a></li><li><a·href="#impl-BorrowMut%3CT%3E-for-T">BorrowMut&lt;T&gt;</a></li><li><a·href="#impl-From%3CT%3E-for-T">From&lt;T&gt;</a></li><li><a·href="#impl-Into%3CU%3E-for-T">Into&lt;U&gt;</a></li><li><a·href="#impl-IntoIterator-for-I">IntoIterator</a></li><li><a·href="#impl-ToOwned-for-T">ToOwned</a></li><li><a·href="#impl-ToString-for-T">ToString</a></li><li><a·href="#impl-TryFrom%3CU%3E-for-T">TryFrom&lt;U&gt;</a></li><li><a·href="#impl-TryInto%3CU%3E-for-T">TryInto&lt;U&gt;</a></li></ul></section><h2><a·href="index.html">In·alloc::slice</a></h2></div></nav><div·class="sidebar-resizer"></div>1 <!DOCTYPE·html><html·lang="en"><head><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.write(`<link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/SourceSerif4-Regular-46f98efaafac5295.ttf.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/FiraSans-Regular-018c141bf0843ffd.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/FiraSans-Medium-8f9a781e4970d388.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/SourceCodePro-Regular-562dcc5011b6de7d.ttf.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/SourceCodePro-Semibold-d899c5a5c4aeb14a.ttf.woff2">`)</script><link·rel="stylesheet"·href="../../static.files/normalize-76eba96aa4d2e634.css"><link·rel="stylesheet"·href="../../static.files/rustdoc-35f9e32502181f1e.css"><meta·name="rustdoc-vars"·data-root-path="../../"·data-static-root-path="../../static.files/"·data-current-crate="alloc"·data-themes=""·data-resource-suffix="1.78.0"·data-rustdoc-version="1.78.0"·data-channel="1.78.0"·data-search-js="search-42d8da7a6b9792c2.js"·data-settings-js="settings-4313503d2e1961c2.js"·><script·src="../../static.files/storage-4c98445ec4002617.js"></script><script·defer·src="sidebar-items1.78.0.js"></script><script·defer·src="../../static.files/main-12cf3b4f4f9dc36d.js"></script><noscript><link·rel="stylesheet"·href="../../static.files/noscript-04d5337699b92874.css"></noscript><link·rel="alternate·icon"·type="image/png"·href="../../static.files/favicon-16x16-8b506e7a72182f1c.png"><link·rel="alternate·icon"·type="image/png"·href="../../static.files/favicon-32x32-422f7d1d52889060.png"><link·rel="icon"·type="image/svg+xml"·href="../../static.files/favicon-2c020d218678b618.svg"></head><body·class="rustdoc·struct"><!--[if·lte·IE·11]><div·class="warning">This·old·browser·is·unsupported·and·will·most·likely·display·funky·things.</div><![endif]--><nav·class="mobile-topbar"><button·class="sidebar-menu-toggle"·title="show·sidebar"></button><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-151179464ae7ed46.svg"·alt=""></a></nav><nav·class="sidebar"><div·class="sidebar-crate"><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-151179464ae7ed46.svg"·alt="logo"></a><h2><a·href="../../alloc/index.html">alloc</a><span·class="version">1.78.0</span></h2></div><h2·class="location"><a·href="#">EscapeAscii</a></h2><div·class="sidebar-elems"><section><h3><a·href="#trait-implementations">Trait·Implementations</a></h3><ul·class="block·trait-implementation"><li><a·href="#impl-Clone-for-EscapeAscii%3C'a%3E">Clone</a></li><li><a·href="#impl-Debug-for-EscapeAscii%3C'a%3E">Debug</a></li><li><a·href="#impl-Display-for-EscapeAscii%3C'a%3E">Display</a></li><li><a·href="#impl-DoubleEndedIterator-for-EscapeAscii%3C'a%3E">DoubleEndedIterator</a></li><li><a·href="#impl-FusedIterator-for-EscapeAscii%3C'a%3E">FusedIterator</a></li><li><a·href="#impl-Iterator-for-EscapeAscii%3C'a%3E">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">Freeze</a></li><li><a·href="#impl-RefUnwindSafe-for-EscapeAscii%3C'a%3E">RefUnwindSafe</a></li><li><a·href="#impl-Send-for-EscapeAscii%3C'a%3E">Send</a></li><li><a·href="#impl-Sync-for-EscapeAscii%3C'a%3E">Sync</a></li><li><a·href="#impl-Unpin-for-EscapeAscii%3C'a%3E">Unpin</a></li><li><a·href="#impl-UnwindSafe-for-EscapeAscii%3C'a%3E">UnwindSafe</a></li></ul><h3><a·href="#blanket-implementations">Blanket·Implementations</a></h3><ul·class="block·blanket-implementation"><li><a·href="#impl-Any-for-T">Any</a></li><li><a·href="#impl-Borrow%3CT%3E-for-T">Borrow&lt;T&gt;</a></li><li><a·href="#impl-BorrowMut%3CT%3E-for-T">BorrowMut&lt;T&gt;</a></li><li><a·href="#impl-From%3CT%3E-for-T">From&lt;T&gt;</a></li><li><a·href="#impl-Into%3CU%3E-for-T">Into&lt;U&gt;</a></li><li><a·href="#impl-IntoIterator-for-I">IntoIterator</a></li><li><a·href="#impl-ToOwned-for-T">ToOwned</a></li><li><a·href="#impl-ToString-for-T">ToString</a></li><li><a·href="#impl-TryFrom%3CU%3E-for-T">TryFrom&lt;U&gt;</a></li><li><a·href="#impl-TryInto%3CU%3E-for-T">TryInto&lt;U&gt;</a></li></ul></section><h2><a·href="index.html">In·alloc::slice</a></h2></div></nav><div·class="sidebar-resizer"></div>
2 ····<main><div·class="width-limiter"><nav·class="sub"><form·class="search-form"><span></span><div·id="sidebar-button"·tabindex="-1"><a·href="../../alloc/all.html"·title="show·sidebar"></a></div><input·class="search-input"·name="search"·aria-label="Run·search·in·the·documentation"·autocomplete="off"·spellcheck="false"·placeholder="Click·or·press·‘S’·to·search,·‘?’·for·more·options…"·type="search"><div·id="help-button"·tabindex="-1"><a·href="../../help.html"·title="help">?</a></div><div·id="settings-menu"·tabindex="-1"><a·href="../../settings.html"·title="settings"><img·width="22"·height="22"·alt="Change·settings"·src="../../static.files/wheel-7b819b6101059cd0.svg"></a></div></form></nav><section·id="main-content"·class="content"><div·class="main-heading"><h1>Struct·<a·href="../index.html">alloc</a>::<wbr><a·href="index.html">slice</a>::<wbr><a·class="struct"·href="#">EscapeAscii</a><button·id="copy-path"·title="Copy·item·path·to·clipboard"><img·src="../../static.files/clipboard-7571035ce49a181d.svg"·width="19"·height="18"·alt="Copy·item·path"></button></h1><span·class="out-of-band"><span·class="since"·title="Stable·since·Rust·version·1.60.0">1.60.0</span>···<a·class="src"·href="../../src/core/slice/ascii.rs.html#210">source</a>···<button·id="toggle-all-docs"·title="collapse·all·docs">[<span>&#x2212;</span>]</button></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 ····<main><div·class="width-limiter"><nav·class="sub"><form·class="search-form"><span></span><div·id="sidebar-button"·tabindex="-1"><a·href="../../alloc/all.html"·title="show·sidebar"></a></div><input·class="search-input"·name="search"·aria-label="Run·search·in·the·documentation"·autocomplete="off"·spellcheck="false"·placeholder="Click·or·press·‘S’·to·search,·‘?’·for·more·options…"·type="search"><div·id="help-button"·tabindex="-1"><a·href="../../help.html"·title="help">?</a></div><div·id="settings-menu"·tabindex="-1"><a·href="../../settings.html"·title="settings"><img·width="22"·height="22"·alt="Change·settings"·src="../../static.files/wheel-7b819b6101059cd0.svg"></a></div></form></nav><section·id="main-content"·class="content"><div·class="main-heading"><h1>Struct·<a·href="../index.html">alloc</a>::<wbr><a·href="index.html">slice</a>::<wbr><a·class="struct"·href="#">EscapeAscii</a><button·id="copy-path"·title="Copy·item·path·to·clipboard"><img·src="../../static.files/clipboard-7571035ce49a181d.svg"·width="19"·height="18"·alt="Copy·item·path"></button></h1><span·class="out-of-band"><span·class="since"·title="Stable·since·Rust·version·1.60.0">1.60.0</span>···<a·class="src"·href="https://doc.rust-lang.org/1.78.0/src/core/slice/ascii.rs.html#210">source</a>···<button·id="toggle-all-docs"·title="collapse·all·docs">[<span>&#x2212;</span>]</button></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>
3 <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·its3 <p>This·<code>struct</code>·is·created·by·the·<a·href="https://doc.rust-lang.org/1.78.0/core/primitive.slice.html#method.escape_ascii"·title="method·slice::escape_ascii"><code>slice::escape_ascii</code></a>·method.·See·its
4 documentation·for·more·information.</p>4 documentation·for·more·information.</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-EscapeAscii%3C'a%3E"·class="impl"><a·class="src·rightside"·href="../../src/core/slice/ascii.rs.html#208">source</a><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">Clone</a>·[·...·truncated·by·diffoscope;·len:·8992,·SHA:·3645a5a8329e64cc58cd0e189860f1c47166dc1b025df1f24b780da5df9c3987·...·]/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><h2·id="trait-implementations"·class="section-header">Trait·Implementations<a·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"><a·class="src·rightside"·href="https://doc.rust-lang.org/1.78.0/src/core/slice/ascii.rs.html#208">source</a><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.78.0/core/clone/trait.C[·...·truncated·by·diffoscope;·len:·10072,·SHA:·4e38538a28ea8c799dacab7f69a0e9cc788088bff39094c5a27fd241d9ab4d60·...·]/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.78.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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(B,·Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.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.78.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.7[·...·truncated·by·diffoscope;·len:·3,·SHA:·7b1bd53949b752d143d871408483b5382371b5bc48d195d0c040ec93cfa2748b·...·]/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:·74b709f2c818a4eda5d85ea863eb2d8af72c87564dbab2746e67feafb0cbb9a3·...·]/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.78.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:·d66ed7e195a53e9945339ef1976aed455dcf80228d8e5b7b0c69a64c3983fea1·...·]/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.78.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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(B,·Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/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="sinc[·...·truncated·by·diffoscope;·len:·530,·SHA:·f8bdf1e28866c7668477ab391452c7cfa7fd52cc69b633e782a157931421b39b·...·]/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.78.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:·c264047794019a6dcf05728ba6a6ee1f8f07c7209958b3366ba94546b527ecdc·...·]/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.78.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::Itera[·...·truncated·by·diffoscope;·len:·3340,·SHA:·5439def35e5b1e921c979f2bdd517d6d85d3f74f25219ceda4133e8614320bd0·...·]/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">where14 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·3907,·SHA:·0b1cbb11591db452f3644dcffe9a21069ac1e8f8b6a3c6537b25aae589d4feb0·...·]/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
15 ····Fold:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Acc,·&lt;<a·class="struct"·href="struct.EscapeAscii.html"·title="struct·alloc::slice::EscapeAscii">EscapeAscii</a>&lt;'a&gt;·as·<a·class="trait"·href="../../core/i[·...·truncated·by·diffoscope;·len:·149,·SHA:·54f826e30413cd92d4c86f9ee8bc393dd994e8f511cf6bd14387642c9c882646·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·R,15 ····Fold:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.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:·308bc7148f686c87f002392275f8bbdbf20719486a95bef72cf48f6e7543304a·...·]/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·=·Acc&gt;,</div></h4></section></summary><div·class='docblock'>An·iterator·method·that·applies·a·function·as·long·as·it·returns16 ····R:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.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
17 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:·373da3d7b0f3f373b6fae58d58d918f7aac93ed773260ce1515412a5d7630b7b·...·]/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">where17 successfully,·producing·a·single,·final·value.·<a·href="https://doc.rust-lang.org/1.78.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:·eb6f72531fc5d8cc139a455b834ef4f17a746e3857d84be2a9f561d8e5d03417·...·]/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
18 ····Fold:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Acc,·&lt;<a·class="struct"·href="struct.EscapeAscii.html"·title="struct·alloc::slice::EscapeAscii">EscapeAscii</a>&lt;'a&gt;·as·<a·class="trait"·href="../../core/i[·...·truncated·by·diffoscope;·len:·149,·SHA:·54f826e30413cd92d4c86f9ee8bc393dd994e8f511cf6bd14387642c9c882646·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·Acc,</div></h4></section></summary><div·class='docblock'>Folds·every·element·into·an·accumulator·by·applying·an·operation,18 ····Fold:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.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:·308bc7148f686c87f002392275f8bbdbf20719486a95bef72cf48f6e7543304a·...·]/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,
19 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:·0bc8ee65922fedefd91b38484d205e3e90b25c0265d0fc3b6a9747b180393972·...·]/core/primitive.usize.html">usize</a>&gt;(19 returning·the·final·result.·<a·href="https://doc.rust-lang.org/1.78.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:·23bbf458802e14cc333bb0b7b7eaf91f55097aec12bae95efb324809268ad5cf·...·]/core/primitive.usize.html">usize</a>&gt;(
20 ····&amp;mut·self20 ····&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.78.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.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title=[·...·truncated·by·diffoscope;·len:·381,·SHA:·88c48923c9b7ea5cc47c1087c60e09656e81d4671c58071ba2bef826335388bc·...·]/core/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:·602d17b58d1cf716882ddc867fc66cfda4f899bef17b038a48553e9133f60097·...·]/core/primitive.usize.html">usize</a><div·class="where">where22 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></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:·89791450da70cbd536c3cf8fbf2dd9891668362f9a252d3ee098222d19960bae·...·]/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:·f92dde8c48ff35deb05a51084054ecdf425850256e0755fd705ef0e8dee5a42a·...·]/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.78.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:·5acc2bcc91ab2687c8137eaa20bd4287e0b901b846fa877b4a1d59df04bc4956·...·]/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.78.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:·5667b9b6c9778ff3b9d23ed0a110e7ab9d3fccc786fdcaca8c17edf996236439·...·]/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.78.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:·e83c903581753673e083ce8dd809879a2fc81ab3050eb6db267d7fa26b15e035·...·]/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.78.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:·1c6bb9803ee8832ebd4c28a08a952178165595b6870cf35d3c89454b9da828b2·...·]/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.78.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.78.0/core/iter/traits/it[·...·truncated·by·diffoscope;·len:·1329,·SHA:·d9299c8edc606ed82f24d61ce441bec451141d684c2a9a75074f5b19c57f196c·...·]/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.78.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:·c1b5e692e89c9c809075ee8ee72fb15a9ec46c075b08450e1f707d672a224750·...·]/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.78.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:·98627729f77dcf1c9d258f343354ba600b7134c6b3929080f231e8de7155b70b·...·]/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.78.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.78.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.78.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:·d6282409add0999f2130eb6bbe6d0473ce96bf2544799e8bc22156f3c2d2e0dd·...·]/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.78.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:·7301b6beba7b6885849be90a625df68ef739a5374af456c51fe2e81d91a25363·...·]/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.78.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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::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:·fb4c9589a16c7b6d697c109d1193d2f1e763e5dd967101c2fd92b32416972229·...·]/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.78.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:·98f6effefa44d759c249143d83623f0055d937382bfc398b7e1f5e92cd413657·...·]/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.78.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:·7abbad666ec88a1053b8aca2a481d629a3ef3596eddb570c381205fa2d859a52·...·]/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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·916,·SHA:·30d0b2a76513c5a880e9aee43e92b18805845cfcfe5783f62dc090167a439e63·...·]/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.78.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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·140,·SHA:·752f473b57e7444ebfddf5ea7fd40a332e83ec55524a6c31b5ee0f82a5dea819·...·]/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:·7da07154834a15b8ae55b4fd41479da070ccbd27e071909f81698570c306a081·...·]/core/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.78.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:·76aa2ad154f88085ee3f8a22721a7e6812680bac785d19059532407f50da1801·...·]/core/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.78.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:·c89169e5bf1c4724c7b411e568b6dad6475896f2606f557b3d708359ef71f5cc·...·]/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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·1052,·SHA:·110b47c7083083d565fcfc89337fddc8e5c87e81b2f720f3f7b0ded55e8500fb·...·]/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.78.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:·53634008856676c70c32b501f7ec498c1f86d123cc9b5b898256a69895ff31fc·...·]/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.78.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:·8464264e074dde5d84f0414ab3b5b2d8da83f3c9e3ca04c45458241580a8c80d·...·]/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.78.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.78.0/core/iter/adapte[·...·truncated·by·diffoscope;·len:·175,·SHA:·16fe7225bf05b478e2828b347c3d23ded9a22f89d8887a2c65d9f7b3faf1b0e7·...·]/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:·77dd41e041d66c618d306e900a9159cf1b00478b8f37e5692be62119a1d4fcda·...·]/core/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.78.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:·00ccbb673c11ed48d8c6aa2a3f8984fb298202e7bccfa42f1ac21290fcc0fb06·...·]/core/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.78.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:·c18326af66652e52fa627bfd0312af7fa2ad0ddc162b12a46e61047a031b0264·...·]/core/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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·1234,·SHA:·3b805567411cdcebed740f9e8d400dbe7fb487504f40e284544a140155090fdf·...·]/core/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.78.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:·39eeddf219b211245393e51a591d5064c740fa9be49d88883d8a6474679741ad·...·]/core/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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·1058,·SHA:·b390dbdda8d7e93604b5ecd906a93efd03fe19bdaf41cf12893fd361bf974307·...·]/core/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.78.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:·9369fa85b74ff841f7401949cadba6dfbbbeead2a99568f20dcfd5aab20d61ab·...·]/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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·1163,·SHA:·5772149166d344bf8fa5ebbd9db8693a8f2e5f031c50338e8f1523ef72f814d6·...·]/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:·a25e81a74cc82c1837477e2b0cea682fff9f43550640901b8010ac501ca69e3d·...·]/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.78.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:·6216516fe581c401abda3c95818192e8f030e2008c9bbdbaafebba16f33ea9bd·...·]/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.78.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:·de8f1023275132502c1569b0ef9a557dc98eaf60aae97cdb916e52f9f55100aa·...·]/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.78.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:·485843399c56e24bdf020ff0610d0ce1f62fbac5530d9880a1a7417105e3d70f·...·]/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.78.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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(<a·class="primitive"·href="https://doc.rust-lang.org/1.78.0/core/primitive.reference.html">&amp;mut·St</a>,·Self::<a·class="associatedty[·...·truncated·by·diffoscope;·len:·449,·SHA:·f12c268a8a8111b9e7126ad78bf5523a63733caa63d187c4fe792309ea41acdf·...·]/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:·8b31595e3cee3022819032aac82e3df712188a2a6dcc20da6939262e5e528591·...·]/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.78.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.78.0/core/iter/trai[·...·truncated·by·diffoscope;·len:·690,·SHA:·371190e5c1bf9b7dde6e84447965a69946212b977b9eb6d89048fbe34c5dda1c·...·]/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.78.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.78.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:·9b6a337a3ad68c2a987b52450c153f87a04a8ed9e83603d26077fe6e70d61edf·...·]/core/iter/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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·976,·SHA:·2a9182f6fe88e0b8a9b1ae1f46cace940cc0b8736033c354c0f0ccbf1c196e7a·...·]/core/iter/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.78.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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;[Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtyp[·...·truncated·by·diffoscope;·len:·135,·SHA:·0b06a6094d42ccbc8bce5b01c4383961fe7f1967f05e4c9f1ff33e71e425fb26·...·]/core/primitive.array.html">N</a>])·-&gt;·R,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iter_map_windows</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/87155">#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.78.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:·238f6b49b3e28d725c57040edaa60bfbb34f140155e6af1d30eab52da1c7274f·...·]/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.78.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:·0d33056cee8a4f9b70b573c0adecc2f3599a2f8d9fa9f2c2044e9118ab134f73·...·]/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:·cfd3edf89fe5aca24b994f83b0d7da765620394e35140e694d98233d4d92481b·...·]/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.78.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.78.0/core/op[·...·truncated·by·diffoscope;·len:·841,·SHA:·9cba1b175fb3726d7f1f01da9be7c1a56568a68e4ce7915a468b730902daf8d3·...·]/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.78.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:·772,·SHA:·31d2052382378512fa905c6d5297d384eac7b7f126141ce561719c0e27cc9d39·...·]/core/primitive.reference.html">&amp;mut·Self</a><div·class="where">where69 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·934,·SHA:·ea20d2e0fe9388580ea08100baa9120b5e9b6cb48f43fc846f15db8b9649e7f6·...·]/core/primitive.reference.html">&amp;mut·Self</a><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:·98760b16b1ed91f9558e6e2637724a4608316181d5f6f4d236e896a83eca9af9·...·]/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.78.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.78.0/core/it[·...·truncated·by·diffoscope;·len:·523,·SHA:·97064c705f6f4bdf74469c54fabcf580d21893127d1b4cd9a9c1018a717ef153·...·]/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.78.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.78.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:·e5d524e874326d0b9b733f5ee809c6595cde869afab0cc3d4ba8454093f420da·...·]/core/primitive.reference.html">&amp;mut·E</a><div·class="where">where72 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.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.78.0/core/iter/tr[·...·truncated·by·diffoscope;·len:·728,·SHA:·01937c2dc314c259495665570ae249c94b4a5b0719718f5f1188e6fc64ecf487·...·]/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.78.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.78.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:·b0297783e056393a542c4058b42c18523a86c961c1b6ce3bc94342c1a2c10c58·...·]/core/primitive.tuple.html">(B,·B)</a><div·class="where">where74 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></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:·00bd47017b1bdd1bbe2c3fc932d955a8aa2f7f5eff8c00e3001ae28a982a5883·...·]/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.78.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.78.0/core/default/trait.Default.html"·title="trait·core::default::Default">Default</a>·+·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/collect/trait.Extend.html"·title="trait·core::iter::traits::collec[·...·truncated·by·diffoscope;·len:·95,·SHA:·8b3be1d0042cae0550f865faf5849221240bdf04eb1b2107605b72d48c3ad29c·...·]/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:·5a1bcc1ddfc5fccf50d61bf2b8879dae247aa12c0b23ba2f437fd2a345cabac7·...·]/core/primitive.usize.html">usize</a><div·class="where">where77 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·995,·SHA:·bec3765fdab56713186e2454cd84738b5b28e3280a2f3d5a25cefdbc3089b520·...·]/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.78.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>·+·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/double_ended/trait.DoubleEndedIterator.html"·title="trait·core::iter::trai[·...·truncated·by·diffoscope;·len:·132,·SHA:·e5b2cf5f56946ede1e190ed09879c5821e2de04cf8e5d145142eeb40c6340982·...·]/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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(<a·class="primitive"·href="https://doc.rust-lang.org/1.78.0/core/primitive.reference.html">&amp;T</a>)·-&gt;·<a·class="primitive"·href="[·...·truncated·by·diffoscope;·len:·32,·SHA:·63d052a8ced32bf927ffadd7e884c08caf4970e85dfdf6be0e568d49b174da96·...·]/core/primitive.bool.html">bool</a>,</div></h4></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:·97056c44eac6a0f986fb2c8edec37302cc06edf44a6c6f7153a5d8623d8d6c0d·...·]/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.78.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:·0c224636c18baa273f69de21f90083317f2ea0b7367a3f0d0f1c0ace55a36f79·...·]/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.78.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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·135,·SHA:·51ff5f5c7ebd8440623ea71b125c5a5837e809e308fe1a13fbe19cddb941dbd9·...·]/core/primitive.bool.html">bool</a>,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iter_is_partitioned</code>&nbsp;<a·href="https://github.com/rust-lang/rust/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="sin[·...·truncated·by·diffoscope;·len:·246,·SHA:·16087a70ed3fdb9452fac1db6c6dfd70950937f6c202d0651e9de5cd42f89c47·...·]/core/iter/traits/iterator/trait.Iterator.html#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.78.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:·b5b5559d4bedab0135adfae89ec80ffab292c35f0d8c34fa5240955934cefd74·...·]/core/iter/traits/iterator/trait.Iterator.html#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.78.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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.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.78.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.78.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"·titl[·...·truncated·by·diffoscope;·len:·492,·SHA:·62c9073cbde434b3360fecb6291c690b867ce1a9341636a10915665ff20914ca·...·]/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.78.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:·94f0d6f81d13cadba9ee012268cda8b0ff7a775a8c03d992a108a9ae039e4d71·...·]/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.78.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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·352,·SHA:·e7c3c296abe2c0a183967153e4ae7fd50bafa2ae7088e3e78b3b48fee253adc6·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::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:·a9dce8bb557b5a11426bf2ffcbd5eea7c6c870833e3ee5bb072dcaaa11687b0c·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_reduce"·class="fn">try_reduce</a>&lt;F,·R&gt;(92 operation.·<a·href="https://doc.rust-lang.org/1.78.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:·7a18fdd041b1a001b4a8feb289ee127fd9240232239269eb35dc3b8f74783ec9·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_reduce"·class="fn">try_reduce</a>&lt;F,·R&gt;(
93 ····&amp;mut·self,93 ····&amp;mut·self,
94 ····f:·F94 ····f:·F
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.78.0/core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&gt;::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/ops/try_trait/trait.Try.html#associatedtype.Residual"·title="type[·...·truncated·by·diffoscope;·len:·754,·SHA:·6fb4dfdb6b4da68921c1e7f8b75d99cf293d58318d684a840254ce9576957bea·...·]/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.78.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:·59,·SHA:·3d53eece7c48858eda31192ab2620ae144896b35400c945bbf3eb5dc06bf8d12·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·R,97 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·140,·SHA:·c27972e6fa3464c9476eaa185e8657edb6bb294f148403f3d079285294a9f909·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·R,
98 ····R:·<a·class="trait"·href="../../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.78.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.78.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</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·the99 ····&lt;R·as·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&gt;::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/ops/try_trait/trait.Try.html#associatedtype.Residual"·title="type[·...·truncated·by·diffoscope;·len:·412,·SHA:·22b8cbb007e5cce82b9d13a65bfa56aa8d83c32541fac25f4d9b3857b0540908·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;&gt;,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iterator_try_reduce</code>&nbsp;<a·href="https://github.com/rust-lang/rust/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="St[·...·truncated·by·diffoscope;·len:·368,·SHA:·65b80c848af6e465c8c5aef4ec8d3faaa399d30c8427c9507fda7b3bd1d3ea93·...·]/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.78.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:·bc0d658d56e348823de15386e1cd4ab49109f3a7a055a4573a19391b47071193·...·]/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.78.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:·829,·SHA:·95a840b532d3d621bde4032d63854eb0a481248e2b4bbb3ef058dbffb4dae4fa·...·]/core/primitive.bool.html">bool</a><div·class="where">where102 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·1018,·SHA:·e61cd6bdd36729cc38e57fcaea2ccb91a23a5acbda3c8986071f19bf1ecfc52a·...·]/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.78.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:·956,·SHA:·f828c62edd4fe85e217286f359b56c116e14ed18bb292ba1cc13d3ed7146909e·...·]/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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·1172,·SHA:·e64ab74d116d286191ad43d9d9e10411fc011c23724aa806e9a8f9b0be0757e3·...·]/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.78.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::Itera[·...·truncated·by·diffoscope;·len:·862,·SHA:·21d7086b3ce0092e3f7a6a41174339bbd8724e7d186158db4db3385a73d94e8e·...·]/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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·1051,·SHA:·ecc0b8fccd861464760f9ae047ff6ab98c91a1db010cb5fa59a8c2ab883db7c4·...·]/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.78.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:·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·returns108 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·130,·SHA:·130a13019dc175d02304b4f550157e2f13ac15c2f25a979c74161d10b146ab89·...·]/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/core/iter[·...·truncated·by·diffoscope;·len:·134,·SHA:·ac4da3337aac1ec10038e246be9cb719eeb5af1acc709f5a6a25b91900c56f53·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_find"·class="fn">try_find</a>&lt;F,·R&gt;(109 the·first·non-none·result.·<a·href="https://doc.rust-lang.org/1.78.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:·8ced1b10e78750774c5c8ed995ed83dcd13983aa75d329acf8069da106ab9f4a·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_find"·class="fn">try_find</a>&lt;F,·R&gt;(
110 ····&amp;mut·self,110 ····&amp;mut·self,
111 ····f:·F111 ····f:·F
112 )·-&gt;·&lt;&lt;R·as·<a·class="trait"·href="../../core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&gt;::<a·class="associatedtype"·href="../../core/ops/try_trait/trait.Try.html#associatedtype.Residual"·title="type·core::ops::try_trait::Try::Residual">Residual</a>·as·[·...·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">where112 )·-&gt;·&lt;&lt;R·as·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&gt;::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/ops/try_trait/trait.Try.html#associatedtype.Residual"·title="type[·...·truncated·by·diffoscope;·len:·626,·SHA:·95f9831257b68862cbcbf54f0ad2ff4e597a4c9f763112d1da8a0897dadcf872·...·]/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.78.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::Iterator::Item">Item</a>)·-&gt;·R,114 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·R,
115 ····R:·<a·class="trait"·href="../../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.78.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.78.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.78.0/core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&gt;::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/ops/try_trait/trait.Try.html#associatedtype.Residual"·title="type[·...·truncated·by·diffoscope;·len:·412,·SHA:·22b8cbb007e5cce82b9d13a65bfa56aa8d83c32541fac25f4d9b3857b0540908·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;&gt;,</div></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.78.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:·fa9d94b216f6e4ce6035b4762e3bf17cb86a0272db0a55a056f05c68bcaeb0da·...·]/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.78.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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·1190,·SHA:·882e9e9a037f916d0ed4aa6d749399e6e01ca81811eacfc54a484818cb5d5029·...·]/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.78.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.78.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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/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.78.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:·0367b1bacc0a7d8e05f1c5181f8c4ea428f3f11edbae0e76811f3ef1d4925e41·...·]/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.78.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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·346,·SHA:·7113e4c2d65a123253bb18971efdc2d49241cfc2dd4c2b18e4cfa4e4d7d4140f·...·]/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.78.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:·db89d4cca0becf2a4ab904adac2870de6fd83cfad5131f5a1431a67766274f81·...·]/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.78.0/core/cmp/trait.Ord.html"·title="trait·core::cmp::Ord">Ord</a>,
Max diff block lines reached; 85644/310238 bytes (27.61%) of diff not shown.
319 KB
./usr/share/doc/rust-web-doc/html/alloc/slice/struct.Iter.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="Immutable·slice·iterator"><title>Iter·in·alloc::slice·-·Rust</title><script>·if·(window.location.protocol·!==·"file:")·document.write(`<link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/SourceSerif4-Regular-46f98efaafac5295.ttf.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/FiraSans-Regular-018c141bf0843ffd.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/FiraSans-Medium-8f9a781e4970d388.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/SourceCodePro-Regular-562dcc5011b6de7d.ttf.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/SourceCodePro-Semibold-d899c5a5c4aeb14a.ttf.woff2">`)</script><link·rel="stylesheet"·href="../../static.files/normalize-76eba96aa4d2e634.css"><link·rel="stylesheet"·href="../../static.files/rustdoc-35f9e32502181f1e.css"><meta·name="rustdoc-vars"·data-root-path="../../"·data-static-root-path="../../static.files/"·data-current-crate="alloc"·data-themes=""·data-resource-suffix="1.78.0"·data-rustdoc-version="1.78.0"·data-channel="1.78.0"·data-search-js="search-42d8da7a6b9792c2.js"·data-settings-js="settings-4313503d2e1961c2.js"·><script·src="../../static.files/storage-4c98445ec4002617.js"></script><script·defer·src="sidebar-items1.78.0.js"></script><script·defer·src="../../static.files/main-12cf3b4f4f9dc36d.js"></script><noscript><link·rel="stylesheet"·href="../../static.files/noscript-04d5337699b92874.css"></noscript><link·rel="alternate·icon"·type="image/png"·href="../../static.files/favicon-16x16-8b506e7a72182f1c.png"><link·rel="alternate·icon"·type="image/png"·href="../../static.files/favicon-32x32-422f7d1d52889060.png"><link·rel="icon"·type="image/svg+xml"·href="../../static.files/favicon-2c020d218678b618.svg"></head><body·class="rustdoc·struct"><!--[if·lte·IE·11]><div·class="warning">This·old·browser·is·unsupported·and·will·most·likely·display·funky·things.</div><![endif]--><nav·class="mobile-topbar"><button·class="sidebar-menu-toggle"·title="show·sidebar"></button><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-151179464ae7ed46.svg"·alt=""></a></nav><nav·class="sidebar"><div·class="sidebar-crate"><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-151179464ae7ed46.svg"·alt="logo"></a><h2><a·href="../../alloc/index.html">alloc</a><span·class="version">1.78.0</span></h2></div><h2·class="location"><a·href="#">Iter</a></h2><div·class="sidebar-elems"><section><h3><a·href="#implementations">Methods</a></h3><ul·class="block·method"><li><a·href="#method.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">AsRef&lt;[T]&gt;</a></li><li><a·href="#impl-Clone-for-Iter%3C'_,+T%3E">Clone</a></li><li><a·href="#impl-Debug-for-Iter%3C'_,+T%3E">Debug</a></li><li><a·href="#impl-Default-for-Iter%3C'_,+T%3E">Default</a></li><li><a·href="#impl-DoubleEndedIterator-for-Iter%3C'a,+T%3E">DoubleEndedIterator</a></li><li><a·href="#impl-ExactSizeIterator-for-Iter%3C'_,+T%3E">ExactSizeIterator</a></li><li><a·href="#impl-FusedIterator-for-Iter%3C'_,+T%3E">FusedIterator</a></li><li><a·href="#impl-Iterator-for-Iter%3C'a,+T%3E">Iterator</a></li><li><a·href="#impl-Send-for-Iter%3C'_,+T%3E">Send</a></li><li><a·href="#impl-Sync-for-Iter%3C'_,+T%3E">Sync</a></li><li><a·href="#impl-TrustedLen-for-Iter%3C'_,+T%3E">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">Freeze</a></li><li><a·href="#impl-RefUnwindSafe-for-Iter%3C'a,+T%3E">RefUnwindSafe</a></li><li><a·href="#impl-Unpin-for-Iter%3C'a,+T%3E">Unpin</a></li><li><a·href="#impl-UnwindSafe-for-Iter%3C'a,+T%3E">UnwindSafe</a></li></ul><h3><a·href="#blanket-implementations">Blanket·Implementations</a></h3><ul·class="block·blanket-implementation"><li><a·href="#impl-Any-for-T">Any</a></li><li><a·href="#impl-Borrow%3CT%3E-for-T">Borrow&lt;T&gt;</a></li><li><a·href="#impl-BorrowMut%3CT%3E-for-T">BorrowMut&lt;T&gt;</a></li><li><a·href="#impl-From%3CT%3E-for-T">From&lt;T&gt;</a></li><li><a·href="#impl-Into%3CU%3E-for-T">Into&lt;U&gt;</a></li><li><a·href="#impl-IntoIterator-for-I">IntoIterator</a></li><li><a·href="#impl-ToOwned-for-T">ToOwned</a></li><li><a·href="#impl-TryFrom%3CU%3E-for-T">TryFrom&lt;U&gt;</a></li><li><a·href="#impl-TryInto%3CU%3E-for-T">TryInto&lt;U&gt;</a></li></ul></section><h2><a·href="index.html">In·alloc::slice</a></h2></div></nav><div·class="sidebar-resizer"></div>1 <!DOCTYPE·html><html·lang="en"><head><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.write(`<link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/SourceSerif4-Regular-46f98efaafac5295.ttf.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/FiraSans-Regular-018c141bf0843ffd.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/FiraSans-Medium-8f9a781e4970d388.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/SourceCodePro-Regular-562dcc5011b6de7d.ttf.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/SourceCodePro-Semibold-d899c5a5c4aeb14a.ttf.woff2">`)</script><link·rel="stylesheet"·href="../../static.files/normalize-76eba96aa4d2e634.css"><link·rel="stylesheet"·href="../../static.files/rustdoc-35f9e32502181f1e.css"><meta·name="rustdoc-vars"·data-root-path="../../"·data-static-root-path="../../static.files/"·data-current-crate="alloc"·data-themes=""·data-resource-suffix="1.78.0"·data-rustdoc-version="1.78.0"·data-channel="1.78.0"·data-search-js="search-42d8da7a6b9792c2.js"·data-settings-js="settings-4313503d2e1961c2.js"·><script·src="../../static.files/storage-4c98445ec4002617.js"></script><script·defer·src="sidebar-items1.78.0.js"></script><script·defer·src="../../static.files/main-12cf3b4f4f9dc36d.js"></script><noscript><link·rel="stylesheet"·href="../../static.files/noscript-04d5337699b92874.css"></noscript><link·rel="alternate·icon"·type="image/png"·href="../../static.files/favicon-16x16-8b506e7a72182f1c.png"><link·rel="alternate·icon"·type="image/png"·href="../../static.files/favicon-32x32-422f7d1d52889060.png"><link·rel="icon"·type="image/svg+xml"·href="../../static.files/favicon-2c020d218678b618.svg"></head><body·class="rustdoc·struct"><!--[if·lte·IE·11]><div·class="warning">This·old·browser·is·unsupported·and·will·most·likely·display·funky·things.</div><![endif]--><nav·class="mobile-topbar"><button·class="sidebar-menu-toggle"·title="show·sidebar"></button><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-151179464ae7ed46.svg"·alt=""></a></nav><nav·class="sidebar"><div·class="sidebar-crate"><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-151179464ae7ed46.svg"·alt="logo"></a><h2><a·href="../../alloc/index.html">alloc</a><span·class="version">1.78.0</span></h2></div><h2·class="location"><a·href="#">Iter</a></h2><div·class="sidebar-elems"><section><h3><a·href="#implementations">Methods</a></h3><ul·class="block·method"><li><a·href="#method.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">AsRef&lt;[T]&gt;</a></li><li><a·href="#impl-Clone-for-Iter%3C'_,+T%3E">Clone</a></li><li><a·href="#impl-Debug-for-Iter%3C'_,+T%3E">Debug</a></li><li><a·href="#impl-Default-for-Iter%3C'_,+T%3E">Default</a></li><li><a·href="#impl-DoubleEndedIterator-for-Iter%3C'a,+T%3E">DoubleEndedIterator</a></li><li><a·href="#impl-ExactSizeIterator-for-Iter%3C'_,+T%3E">ExactSizeIterator</a></li><li><a·href="#impl-FusedIterator-for-Iter%3C'_,+T%3E">FusedIterator</a></li><li><a·href="#impl-Iterator-for-Iter%3C'a,+T%3E">Iterator</a></li><li><a·href="#impl-Send-for-Iter%3C'_,+T%3E">Send</a></li><li><a·href="#impl-Sync-for-Iter%3C'_,+T%3E">Sync</a></li><li><a·href="#impl-TrustedLen-for-Iter%3C'_,+T%3E">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">Freeze</a></li><li><a·href="#impl-RefUnwindSafe-for-Iter%3C'a,+T%3E">RefUnwindSafe</a></li><li><a·href="#impl-Unpin-for-Iter%3C'a,+T%3E">Unpin</a></li><li><a·href="#impl-UnwindSafe-for-Iter%3C'a,+T%3E">UnwindSafe</a></li></ul><h3><a·href="#blanket-implementations">Blanket·Implementations</a></h3><ul·class="block·blanket-implementation"><li><a·href="#impl-Any-for-T">Any</a></li><li><a·href="#impl-Borrow%3CT%3E-for-T">Borrow&lt;T&gt;</a></li><li><a·href="#impl-BorrowMut%3CT%3E-for-T">BorrowMut&lt;T&gt;</a></li><li><a·href="#impl-From%3CT%3E-for-T">From&lt;T&gt;</a></li><li><a·href="#impl-Into%3CU%3E-for-T">Into&lt;U&gt;</a></li><li><a·href="#impl-IntoIterator-for-I">IntoIterator</a></li><li><a·href="#impl-ToOwned-for-T">ToOwned</a></li><li><a·href="#impl-TryFrom%3CU%3E-for-T">TryFrom&lt;U&gt;</a></li><li><a·href="#impl-TryInto%3CU%3E-for-T">TryInto&lt;U&gt;</a></li></ul></section><h2><a·href="index.html">In·alloc::slice</a></h2></div></nav><div·class="sidebar-resizer"></div>
2 ····<main><div·class="width-limiter"><nav·class="sub"><form·class="search-form"><span></span><div·id="sidebar-button"·tabindex="-1"><a·href="../../alloc/all.html"·title="show·sidebar"></a></div><input·class="search-input"·name="search"·aria-label="Run·search·in·the·documentation"·autocomplete="off"·spellcheck="false"·placeholder="Click·or·press·‘S’·to·search,·‘?’·for·more·options…"·type="search"><div·id="help-button"·tabindex="-1"><a·href="../../help.html"·title="help">?</a></div><div·id="settings-menu"·tabindex="-1"><a·href="../../settings.html"·title="settings"><img·width="22"·height="22"·alt="Change·settings"·src="../../static.files/wheel-7b819b6101059cd0.svg"></a></div></form></nav><section·id="main-content"·class="content"><div·class="main-heading"><h1>Struct·<a·href="../index.html">alloc</a>::<wbr><a·href="index.html">slice</a>::<wbr><a·class="struct"·href="#">Iter</a><button·id="copy-path"·title="Copy·item·path·to·clipboard"><img·src="../../static.files/clipboard-7571035ce49a181d.svg"·width="19"·height="18"·alt="Copy·item·path"></button></h1><span·class="out-of-band"><span·class="since"·title="Stable·since·Rust·version·1.0.0">1.0.0</span>···<a·class="src"·href="../../src/core/slice/iter.rs.html#62">source</a>···<button·id="toggle-all-docs"·title="collapse·all·docs">[<span>&#x2212;</span>]</button></span></div><pre·class="rust·item-decl"><code>pub·struct·Iter&lt;'a,·T&gt;<div·class="where">where2 ····<main><div·class="width-limiter"><nav·class="sub"><form·class="search-form"><span></span><div·id="sidebar-button"·tabindex="-1"><a·href="../../alloc/all.html"·title="show·sidebar"></a></div><input·class="search-input"·name="search"·aria-label="Run·search·in·the·documentation"·autocomplete="off"·spellcheck="false"·placeholder="Click·or·press·‘S’·to·search,·‘?’·for·more·options…"·type="search"><div·id="help-button"·tabindex="-1"><a·href="../../help.html"·title="help">?</a></div><div·id="settings-menu"·tabindex="-1"><a·href="../../settings.html"·title="settings"><img·width="22"·height="22"·alt="Change·settings"·src="../../static.files/wheel-7b819b6101059cd0.svg"></a></div></form></nav><section·id="main-content"·class="content"><div·class="main-heading"><h1>Struct·<a·href="../index.html">alloc</a>::<wbr><a·href="index.html">slice</a>::<wbr><a·class="struct"·href="#">Iter</a><button·id="copy-path"·title="Copy·item·path·to·clipboard"><img·src="../../static.files/clipboard-7571035ce49a181d.svg"·width="19"·height="18"·alt="Copy·item·path"></button></h1><span·class="out-of-band"><span·class="since"·title="Stable·since·Rust·version·1.0.0">1.0.0</span>···<a·class="src"·href="https://doc.rust-lang.org/1.78.0/src/core/slice/iter.rs.html#62">source</a>···<button·id="toggle-all-docs"·title="collapse·all·docs">[<span>&#x2212;</span>]</button></span></div><pre·class="rust·item-decl"><code>pub·struct·Iter&lt;'a,·T&gt;<div·class="where">where
3 ····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 ····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>
4 <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>4 <p>This·struct·is·created·by·the·<a·href="https://doc.rust-lang.org/1.78.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.78.0/core/primitive.slice.html"·title="primitive·slice">slices</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>Basic·usage:</p>6 <p>Basic·usage:</p>
  
7 <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 <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):
8 </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><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>];
  
9 <span·class="comment">//·Then,·we·iterate·over·it:9 <span·class="comment">//·Then,·we·iterate·over·it:
10 </span><span·class="kw">for·</span>element·<span·class="kw">in·</span>slice.iter()·{10 </span><span·class="kw">for·</span>element·<span·class="kw">in·</span>slice.iter()·{
11 ····<span·class="macro">println!</span>(<span·class="string">"{element}"</span>);11 ····<span·class="macro">println!</span>(<span·class="string">"{element}"</span>);
12 }</code></pre><a·class="test-arrow"·target="_blank"·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">Run</a></div>12 }</code></pre><a·class="test-arrow"·target="_blank"·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">Run</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-Iter%3C'a,+T%3E"·class="impl"><a·class="src·rightside"·href="../../src/core/slice/iter.rs.html#87">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:·063d3d2c10d0b948ad19e4ee4881934cb16affcd410853f37112cb31b4c68e19·...·]/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 </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.78.0/src/core/slice/iter.rs.html#87">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:·6b61dfd47ecb129394ee135eb179fdce1f3b98c15623e74f24ac13c7fbf6331f·...·]/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>
14 <p>This·has·the·same·lifetime·as·the·original·slice,·and·so·the14 <p>This·has·the·same·lifetime·as·the·original·slice,·and·so·the
15 iterator·can·continue·to·be·used·while·this·exists.</p>15 iterator·can·continue·to·be·used·while·this·exists.</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 <p>Basic·usage:</p>17 <p>Basic·usage:</p>
  
18 <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 <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`
19 //·struct·(`&amp;[usize]`·here):19 //·struct·(`&amp;[usize]`·here):
Offset 27, 222 lines modifiedOffset 27, 222 lines modified
27 <span·class="comment">//·So·if·we·print·what·`as_slice`·method·returns·here,·we·have·"[1,·2,·3]":27 <span·class="comment">//·So·if·we·print·what·`as_slice`·method·returns·here,·we·have·"[1,·2,·3]":
28 </span><span·class="macro">println!</span>(<span·class="string">"{:?}"</span>,·iter.as_slice());28 </span><span·class="macro">println!</span>(<span·class="string">"{:?}"</span>,·iter.as_slice());
  
29 <span·class="comment">//·Next,·we·move·to·the·second·element·of·the·slice:29 <span·class="comment">//·Next,·we·move·to·the·second·element·of·the·slice:
30 </span>iter.next();30 </span>iter.next();
31 <span·class="comment">//·Now·`as_slice`·returns·"[2,·3]":31 <span·class="comment">//·Now·`as_slice`·returns·"[2,·3]":
32 </span><span·class="macro">println!</span>(<span·class="string">"{:?}"</span>,·iter.as_slice());</code></pre><a·class="test-arrow"·target="_blank"·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">Run</a></div>32 </span><span·class="macro">println!</span>(<span·class="string">"{:?}"</span>,·iter.as_slice());</code></pre><a·class="test-arrow"·target="_blank"·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">Run</a></div>
33 </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#152">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:·2964,·SHA:·e757d0f5cebb7a468c819f62278630a74a6330244eaffb7f7a6a9f1f15e078ec·...·]/src/core/slice/iter.rs.html#76">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">where33 </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.78.0/src/core/slice/iter.rs.html#152">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.78.0/core[·...·truncated·by·diffoscope;·len:·3396,·SHA:·cade0204ab9df72b03b5f14ba7646bb7a8af2a7a2f5f6a2e937642eda226a0da·...·]/src/core/slice/iter.rs.html#76">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
34 ····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#77">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:·62c08452a11af726d307dc158ff2fd9a7fee6b100993edac53789f4d3f9ba2a2·...·]/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 ····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.78.0/src/core/slice/iter.rs.html#77">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:·a8df5dc499d62f1d7d03e6501d0ff4c1fd72608151ee7ef31a8589c7803baeb3·...·]/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>
  
35 <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 <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();
36 <span·class="macro">assert_eq!</span>(iter.len(),·<span·class="number">0</span>);</code></pre><a·class="test-arrow"·target="_blank"·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">Run</a></div>36 <span·class="macro">assert_eq!</span>(iter.len(),·<span·class="number">0</span>);</code></pre><a·class="test-arrow"·target="_blank"·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">Run</a></div>
37 </div></details></div></details><details·class="toggle·implementors-toggle"·open><summary><section·id="impl-DoubleEndedIterator-for-Iter%3C'a,+T%3E"·class="impl"><a·class="src·rightside"·href="../../src/core/slice/iter.rs.html#133-141">source</a><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.[·...·truncated·by·diffoscope;·len:·3744,·SHA:·ecc3f99c00916c58ae5a3e624b6a20a645af7da660a362d80ac7d1929414ade7·...·]/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">where37 </div></details></div></details><details·class="toggle·implementors-toggle"·open><summary><section·id="impl-DoubleEndedIterator-for-Iter%3C'a,+T%3E"·class="impl"><a·class="src·rightside"·href="https://doc.rust-lang.org/1.78.0/src/core/slice/iter.rs.html#133-141">source</a><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.78.0/co[·...·truncated·by·diffoscope;·len:·4365,·SHA:·cb972698e99e229b239cc698255caf6d8b9868181dc554de69ee447573bf57bd·...·]/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
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.78.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>(B,·Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·R,39 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(B,·Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·R,
40 ····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·takes40 ····R:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.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.7[·...·truncated·by·diffoscope;·len:·3,·SHA:·7b1bd53949b752d143d871408483b5382371b5bc48d195d0c040ec93cfa2748b·...·]/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
41 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:·74b709f2c818a4eda5d85ea863eb2d8af72c87564dbab2746e67feafb0cbb9a3·...·]/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">where41 elements·starting·from·the·back·of·the·iterator.·<a·href="https://doc.rust-lang.org/1.78.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:·d66ed7e195a53e9945339ef1976aed455dcf80228d8e5b7b0c69a64c3983fea1·...·]/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
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.78.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>(B,·Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/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 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(B,·Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/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,
44 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:·f8bdf1e28866c7668477ab391452c7cfa7fd52cc69b633e782a157931421b39b·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;<div·class="where">where44 final·value,·starting·from·the·back.·<a·href="https://doc.rust-lang.org/1.78.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:·c264047794019a6dcf05728ba6a6ee1f8f07c7209958b3366ba94546b527ecdc·...·]/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>,45 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.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:·9148,·SHA:·f03d94f9036dd80e9da2cc458219b4c70290f93886db63021dadba686d6541b1·...·]/core/iter/traits/iterator/trait.Iterator.html#method.fold"·class="fn">fold</a>&lt;B,·F&gt;(self,·init:·B,·f:·F)·-&gt;·B<div·class="where">where46 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·10606,·SHA:·91994cb4bb591b3f5a46c650930431b531f90c261446d7111ffe2a981440783f·...·]/core/iter/traits/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
47 ····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,47 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.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:·03c1320edda394b06f5d26a033d0491ae061ed49c0e08b2b7d0390a01aadd3e9·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·B,</div></h4></section></summary><div·class='docblock'>Folds·every·element·into·an·accumulator·by·applying·an·operation,
48 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:·bba0bc9dc61d99095aadd6815f4a17db8078f9f2b074313ed71393c5c2987d76·...·]/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 returning·the·final·result.·<a·href="https://doc.rust-lang.org/1.78.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:·ee709632a53a5d31c15835e6243c1e54b6591ca65f2a663cf14f22baf24e8c35·...·]/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 ····<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>,49 ····<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.78.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>(&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:·9855d9f9769808e4759bbc19513bb4b638b139664a2ee4f63c322eefb138255c·...·]/core/primitive.bool.html">bool</a><div·class="where">where50 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.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:·2bc4922d814daf891732a344b5cec9c77d5480bd799b2032e30642cf27186f70·...·]/core/primitive.bool.html">bool</a><div·class="where">where
51 ····<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>,51 ····<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.78.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>(&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:·4513563b1ec0c5f28bce5ec24b1379806110b25e79fe79831b8318419bc6d549·...·]/core/primitive.bool.html">bool</a><div·class="where">where52 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.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:·eb3564cc206d6c966994de5a3fcf9e19d88b948103dfb80b1750b21846e80253·...·]/core/primitive.bool.html">bool</a><div·class="where">where
53 ····<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>,53 ····<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.78.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>(&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:·2e7be4f20fd485b0efed9a66ae6da22234be6d3248840ad6a28785ebd1218bf4·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;<div·class="where">where54 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.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:·531f08acc05a345ae5d44f71c69a102da49178c7f32bf98c42218818c0e96ae6·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;<div·class="where">where
55 ····<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>,55 ····<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.78.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;&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:·a60761dd7acdb88738fe9cfba3c62db25fd7a1ee8ad1ecd33c741d7ca72e2bcb·...·]/core/option/enum.Option.html"·title="enum·core::option::Option">Option</a>&lt;B&gt;<div·class="where">where56 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.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:·e9cf571065ab3e9a5ace50563709f9971b50c16f9f998c52f864f6b925ebbbf0·...·]/core/option/enum.Option.html"·title="enum·core::option::Option">Option</a>&lt;B&gt;<div·class="where">where
57 ····<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>,57 ····<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.78.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>(&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·returns58 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.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:·aab9c2990aa0acf2e3f2ebc6bdf56a2485764fd45c41c9b622399e9c2f753ccd·...·]/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
59 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:·68850419bd433423b7d7f6e0cd2010ec22b06f3a6ad0dc2fca31e6a730d2dbd1·...·]/core/primitive.usize.html">usize</a>&gt;<div·class="where">where59 the·first·non-none·result.·<a·href="https://doc.rust-lang.org/1.78.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:·653f27b672f154a8c7a190d0f458b6dc5598a3e71dd587b65c2fbe591a80c466·...·]/core/primitive.usize.html">usize</a>&gt;<div·class="where">where
60 ····<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>,60 ····<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.78.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>(&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:·e54789fd9f1342bbc2a43204b32313a12f27435ec2b961537a3bc14d6c5ad821·...·]/core/primitive.usize.html">usize</a>&gt;<div·class="where">where61 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.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:·87716ad58d482918fffe20dd2e6a90737fba5394117eb51b7147285e71b9362c·...·]/core/primitive.usize.html">usize</a>&gt;<div·class="where">where
62 ····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>,62 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.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:·9e840b28e306831237151363b5083053f48474b3d06da6f0b68ef5ce7db4c5c1·...·]/core/primitive.bool.html">bool</a>,
63 ····<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·its63 ····<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.78.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>·+·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/exact_size/trait.ExactSizeIterator.html"·title="trait·core::iter::traits::[·...·truncated·by·diffoscope;·len:·110,·SHA:·a8846fff2831d0de2de7dbb91c4e50f6f60fac276813cbaa471bf32fb45120d4·...·]/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
64 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:·428983aaa2e6edc375568f5227a92ccb62043587cc07893f9c2648accf3b7a3d·...·]/core/primitive.bool.html">bool</a><div·class="where">where64 index.·<a·href="https://doc.rust-lang.org/1.78.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:·2370fb8d4939c7a36ee2d5b3be269630607a35907e15ba2232603007c69bfc1e·...·]/core/primitive.bool.html">bool</a><div·class="where">where
65 ····<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>,65 ····<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.78.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;&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:·1696,·SHA:·e46c80a7345b6d42cce9003ca05cea1bf50c45207b2d3c9c1d4d69a22ee264ad·...·]/core/primitive.usize.html">usize</a>&gt;(66 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.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:·1966,·SHA:·ee8f17a721fe170de51354b6f87398b6469f919ce4eb8e85bd6b0b86b044931c·...·]/core/primitive.usize.html">usize</a>&gt;(
67 ····&amp;mut·self67 ····&amp;mut·self
68 )·-&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">where68 )·-&gt;·<a·class="enum"·href="https://doc.rust-lang.org/1.78.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.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title=[·...·truncated·by·diffoscope;·len:·381,·SHA:·88c48923c9b7ea5cc47c1087c60e09656e81d4671c58071ba2bef826335388bc·...·]/core/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
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_next_ch[·...·truncated·by·diffoscope;·len:·911,·SHA:·3d7c7f8b86c4a97963bb29656bd79f46cdeff3d182a9a25218b02a96ac573bdb·...·]/core/iter/adapters/step_by/struct.StepBy.html"·title="struct·core::iter::adapters::step_by::StepBy">StepBy</a>&lt;Self&gt;<div·class="where">where69 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></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:·fe78489556017bc5032a8e5aee741cef0ae6f055dd6dc0ad64dee12e53c468a3·...·]/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
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·starting·at·the·same·point,·but·stepping·by70 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.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
71 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"><a·class="src·rightside"·href="../../src/core/iter/tra[·...·truncated·by·diffoscope;·len:·584,·SHA:·fd3e570373eb5121d35d7e22cdd5dd5fbf7183ee80147135a591fd1285174e82·...·]/core/iter/traits/collect/trait.IntoIterator.html#associatedtype.IntoIter"·title="type·core::iter::traits::collect::IntoIterator::IntoIter">IntoIter</a>&gt;<div·class="where">where71 the·given·amount·at·each·iteration.·<a·href="https://doc.rust-lang.org/1.78.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"><a·class="src·rightside"·hr[·...·truncated·by·diffoscope;·len:·746,·SHA:·f1f70d650c102c8658e13890c7dbfc87418f07e7b522246fb579ec434ef64f7c·...·]/core/iter/traits/collect/trait.IntoIterator.html#associatedtype.IntoIter"·title="type·core::iter::traits::collect::IntoIterator::IntoIter">IntoIter</a>&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.78.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
73 ····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:·1017,·SHA:·c0f5f8cfd297e1678ac0ee2fd847fb6f0577665ac326e8e2e9d6414a710c8f98·...·]/core/iter/traits/collect/trait.IntoIterator.html#associatedtype.IntoIter"·title="type·core::iter::traits::collect::IntoIterator::IntoIter">IntoIter</a>&gt;<div·class="where">where73 ····U:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.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.78.0/core/iter/traits/it[·...·truncated·by·diffoscope;·len:·1233,·SHA:·f677df2d893dfe0dc1a9d31ebb0ba71a346d265781813e0d664d3f18369b6163·...·]/core/iter/traits/collect/trait.IntoIterator.html#associatedtype.IntoIter"·title="type·core::iter::traits::collect::IntoIterator::IntoIter">IntoIter</a>&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.78.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>,</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:·c1b5e692e89c9c809075ee8ee72fb15a9ec46c075b08450e1f707d672a224750·...·]/core/iter/adapters/intersperse/struct.IntersperseWith.html"·title="struct·core::iter::adapters::intersperse::IntersperseWith">IntersperseWith</a>&lt;Self,·G&gt;<div·class="where">where75 ····U:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.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:·98627729f77dcf1c9d258f343354ba600b7134c6b3929080f231e8de7155b70b·...·]/core/iter/adapters/intersperse/struct.IntersperseWith.html"·title="struct·core::iter::adapters::intersperse::IntersperseWith">IntersperseWith</a>&lt;Self,·G&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.78.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
77 ····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>77 ····G:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.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.78.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>
78 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"><a·class="src·rightside"·href="../../src/core/i[·...·truncated·by·diffoscope;·len:·267,·SHA:·1764c9d6d2e39e1367ae2111c28ab846e66ecf12617fbff35e0132e82e5c8b13·...·]/core/iter/adapters/map/struct.Map.html"·title="struct·core::iter::adapters::map::Map">Map</a>&lt;Self,·F&gt;<div·class="where">where78 between·adjacent·items·of·the·original·iterator.·<a·href="https://doc.rust-lang.org/1.78.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"><a·class="src·rights[·...·truncated·by·diffoscope;·len:·375,·SHA:·58419346f92e1709dadb70cc3cf356e3cd27972451bdc6b4fc4267e6f7e8bdae·...·]/core/iter/adapters/map/struct.Map.html"·title="struct·core::iter::adapters::map::Map">Map</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.78.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;·B,</div></h4></section></summary><div·class='docblock'>Takes·a·closure·and·creates·an·iterator·which·calls·that·closure·on·each80 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::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
81 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"><a·class="src·rightside"·href="../../src/core/iter/traits[·...·truncated·by·diffoscope;·len:·271,·SHA:·f6dc777da924f2a9a708bc1e422a049937f51dbcadf28398920dfdc146be6417·...·]/core/iter/adapters/filter/struct.Filter.html"·title="struct·core::iter::adapters::filter::Filter">Filter</a>&lt;Self,·P&gt;<div·class="where">where81 element.·<a·href="https://doc.rust-lang.org/1.78.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"><a·class="src·rightside"·href=[·...·truncated·by·diffoscope;·len:·379,·SHA:·604c5fe4f73d61a5842d2e61ca263d3090116fd50b44269db9ed11cd6e015528·...·]/core/iter/adapters/filter/struct.Filter.html"·title="struct·core::iter::adapters::filter::Filter">Filter</a>&lt;Self,·P&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.78.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>(&amp;Self::<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·element83 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·140,·SHA:·752f473b57e7444ebfddf5ea7fd40a332e83ec55524a6c31b5ee0f82a5dea819·...·]/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
84 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"><a·class="src·rightside"·href="../../src/core/iter[·...·truncated·by·diffoscope;·len:·285,·SHA:·738ce0440ff568829f40d141e38e2c0da2fd05d2b73d1a574be0ed9baa32e827·...·]/core/iter/adapters/filter_map/struct.FilterMap.html"·title="struct·core::iter::adapters::filter_map::FilterMap">FilterMap</a>&lt;Self,·F&gt;<div·class="where">where84 should·be·yielded.·<a·href="https://doc.rust-lang.org/1.78.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"><a·class="src·rightside[·...·truncated·by·diffoscope;·len:·393,·SHA:·2e2aa7c9c9c087e7b346da376749064ab8c1894795a2f0a0f646cdc8c7bea997·...·]/core/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
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.78.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:·767,·SHA:·da0fc5bc95a3398627e0c5836423b719ccea45d351e21ddaa96f793f67f9c6de·...·]/core/iter/adapters/enumerate/struct.Enumerate.html"·title="struct·core::iter::adapters::enumerate::Enumerate">Enumerate</a>&lt;Self&gt;<div·class="where">where86 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·956,·SHA:·faba0521e870dbbd26d466fadba3522e7d29013a9b86376fffafffac11a57e0e·...·]/core/iter/adapters/enumerate/struct.Enumerate.html"·title="struct·core::iter::adapters::enumerate::Enumerate">Enumerate</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·gives·the·current·iteration·count·as·well·as87 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.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
88 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"><a·class="src·rightside"·href="../../src/core/ite[·...·truncated·by·diffoscope;·len:·264,·SHA:·e3fa7ab43c6353bc2216a22d7010c41a8ab50d273a128d15d0eff050c058993a·...·]/core/iter/adapters/peekable/struct.Peekable.html"·title="struct·core::iter::adapters::peekable::Peekable">Peekable</a>&lt;Self&gt;<div·class="where">where88 the·next·value.·<a·href="https://doc.rust-lang.org/1.78.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"><a·class="src·rightsid[·...·truncated·by·diffoscope;·len:·372,·SHA:·03eea0861575eb80d3f7a87a3ba747adb1a33fe7e9ce72aa2172e7a287c63a94·...·]/core/iter/adapters/peekable/struct.Peekable.html"·title="struct·core::iter::adapters::peekable::Peekable">Peekable</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·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>·methods89 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.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.78.0/core/iter/adapte[·...·truncated·by·diffoscope;·len:·175,·SHA:·16fe7225bf05b478e2828b347c3d23ded9a22f89d8887a2c65d9f7b3faf1b0e7·...·]/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
90 to·look·at·the·next·element·of·the·iterator·without·consuming·it.·See90 to·look·at·the·next·element·of·the·iterator·without·consuming·it.·See
91 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"><a·class="src·rightside"·href="../../src/core/it[·...·truncated·by·diffoscope;·len:·294,·SHA:·c0aee2077af6a4f81ed47e37c84a75b5f9b941875509fbe0b3d352866f825f45·...·]/core/iter/adapters/skip_while/struct.SkipWhile.html"·title="struct·core::iter::adapters::skip_while::SkipWhile">SkipWhile</a>&lt;Self,·P&gt;<div·class="where">where91 their·documentation·for·more·information.·<a·href="https://doc.rust-lang.org/1.78.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"><a·class="src·rightsi[·...·truncated·by·diffoscope;·len:·402,·SHA:·7689a974f800fd069d1b4453ef62d6d6ad1b654462d624d36e3672051d502030·...·]/core/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
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.78.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:·922,·SHA:·5220bbb4db3c3cd3d7ca7c27520f44f04fe367ee2f0f407fb1d50c0a327a2f99·...·]/core/iter/adapters/take_while/struct.TakeWhile.html"·title="struct·core::iter::adapters::take_while::TakeWhile">TakeWhile</a>&lt;Self,·P&gt;<div·class="where">where93 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·1138,·SHA:·f6ae06b7de8e94df014341c5cf589a5e4a1298367b2ef7a968ec499c5170a70e·...·]/core/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
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.78.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::Itera[·...·truncated·by·diffoscope;·len:·869,·SHA:·39eeddf219b211245393e51a591d5064c740fa9be49d88883d8a6474679741ad·...·]/core/iter/adapters/map_while/struct.MapWhile.html"·title="struct·core::iter::adapters::map_while::MapWhile">MapWhile</a>&lt;Self,·P&gt;<div·class="where">where95 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·1058,·SHA:·b390dbdda8d7e93604b5ecd906a93efd03fe19bdaf41cf12893fd361bf974307·...·]/core/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
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.78.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:·851,·SHA:·ad2e090d21a034b7c3836ed38a686f4c483f9a929132fef846d48271f749a79c·...·]/core/iter/adapters/skip/struct.Skip.html"·title="struct·core::iter::adapters::skip::Skip">Skip</a>&lt;Self&gt;<div·class="where">where97 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·1067,·SHA:·415d32e1211c35d3bb405de1d6e51c2102c14cadc3333894f063148dbe0b1f69·...·]/core/iter/adapters/skip/struct.Skip.html"·title="struct·core::iter::adapters::skip::Skip">Skip</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·skips·the·first·<code>n</code>·elements.·<a·href="../../core/iter/traits/iterator/trait.Iterator.h[·...·truncated·by·diffoscope;·len:·525,·SHA:·6471f48fecadc56edf21fc04794b884b96ce06d339c715e410f5a906e028bc28·...·]/core/iter/adapters/take/struct.Take.html"·title="struct·core::iter::adapters::take::Take">Take</a>&lt;Self&gt;<div·class="where">where98 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.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:·687,·SHA:·7f5256104c35c5948a2cb42b55f3048c9d2887e48a4a8226537a284f959c562a·...·]/core/iter/adapters/take/struct.Take.html"·title="struct·core::iter::adapters::take::Take">Take</a>&lt;Self&gt;<div·class="where">where
99 ····Self:·<a·class="trait"·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·fewer99 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.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
100 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"><a·class="src·rightside"·href="../../src/core/iter/traits/[·...·truncated·by·diffoscope;·len:·284,·SHA:·aee83f38f8c40848e159b12a8faa43b9dadf589fe974632a1f15ce2a15834071·...·]/core/iter/adapters/scan/struct.Scan.html"·title="struct·core::iter::adapters::scan::Scan">Scan</a>&lt;Self,·St,·F&gt;<div·class="where">where100 if·the·underlying·iterator·ends·sooner.·<a·href="https://doc.rust-lang.org/1.78.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"><a·class="src·rightside"·href="[·...·truncated·by·diffoscope;·len:·392,·SHA:·4e7da68f7be2622ef173653eca78d58e1f202b544a2e6abd14d8335c298c93a7·...·]/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
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.78.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>(<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,·but102 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(<a·class="primitive"·href="https://doc.rust-lang.org/1.78.0/core/primitive.reference.html">&amp;mut·St</a>,·Self::<a·class="associatedty[·...·truncated·by·diffoscope;·len:·449,·SHA:·f12c268a8a8111b9e7126ad78bf5523a63733caa63d187c4fe792309ea41acdf·...·]/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
103 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:·459,·SHA:·b825570d9672670eacd8828b3abec12cd1c35433286857de28f5ea8d5e300e03·...·]/core/iter/adapters/flatten/struct.FlatMap.html"·title="struct·core::iter::adapters::flatten::FlatMap">FlatMap</a>&lt;Self,·U,·F&gt;<div·class="where">where103 unlike·<a·href="https://doc.rust-lang.org/1.78.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.78.0/core/iter/trai[·...·truncated·by·diffoscope;·len:·594,·SHA:·02960742fa7892efaa08f289ce85865fc5efb6a4cd138c22e3566ca6fc727d78·...·]/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
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.78.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
105 ····U:·<a·class="trait"·href="../../core/iter/traits/collect/trait.IntoIterator.html"·title="trait·core::iter::traits::collect::IntoIterator">IntoIterator</a>,105 ····U:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/collect/trait.IntoIterator.html"·title="trait·core::iter::traits::collect::IntoIterator">IntoIterator</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:·787,·SHA:·9b6a337a3ad68c2a987b52450c153f87a04a8ed9e83603d26077fe6e70d61edf·...·]/core/iter/adapters/map_windows/struct.MapWindows.html"·title="struct·core::iter::adapters::map_windows::MapWindows">MapWindows</a>&lt;Self,·F,·N&gt;<div·class="where">where106 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·976,·SHA:·2a9182f6fe88e0b8a9b1ae1f46cace940cc0b8736033c354c0f0ccbf1c196e7a·...·]/core/iter/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
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.78.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::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>·over108 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;[Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtyp[·...·truncated·by·diffoscope;·len:·135,·SHA:·0b06a6094d42ccbc8bce5b01c4383961fe7f1967f05e4c9f1ff33e71e425fb26·...·]/core/primitive.array.html">N</a>])·-&gt;·R,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iter_map_windows</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/87155">#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
109 <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>,109 <code>self</code>·and·returns·an·iterator·over·the·outputs·of·<code>f</code>.·Like·<a·href="https://doc.rust-lang.org/1.78.0/core/primitive.slice.html#method.windows"·title="method·slice::windows"><code>slice::windows()</code></a>,
110 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"><a·class="src·rightside"·href="../../src/core/iter/[·...·truncated·by·diffoscope;·len:·250,·SHA:·e355ddd0f04b2470ee915aec3ad97857be56b95e6a1f3d733d6c477453f4cf0d·...·]/core/iter/adapters/fuse/struct.Fuse.html"·title="struct·core::iter::adapters::fuse::Fuse">Fuse</a>&lt;Self&gt;<div·class="where">where110 the·windows·during·mapping·overlap·as·well.·<a·href="https://doc.rust-lang.org/1.78.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"><a·class="src·rightside"[·...·truncated·by·diffoscope;·len:·358,·SHA:·d91b2ab18e0ce069e262cf523c6ef961f56eecad042ea1e9bcefe33cff28fc8f·...·]/core/iter/adapters/fuse/struct.Fuse.html"·title="struct·core::iter::adapters::fuse::Fuse">Fuse</a>&lt;Self&gt;<div·class="where">where
111 ····Self:·<a·class="trait"·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:·583,·SHA:·b7d7d6125e8980756a2636a6b6e01600057c98a027dcf7d267b1f61538a7b6b0·...·]/core/iter/adapters/inspect/struct.Inspect.html"·title="struct·core::iter::adapters::inspect::Inspect">Inspect</a>&lt;Self,·F&gt;<div·class="where">where111 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.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.78.0/core/op[·...·truncated·by·diffoscope;·len:·745,·SHA:·424783f22102f4446d3ad4d362b1aafdb7531fa777213f97ee138aa878f67bd1·...·]/core/iter/adapters/inspect/struct.Inspect.html"·title="struct·core::iter::adapters::inspect::Inspect">Inspect</a>&lt;Self,·F&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.78.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::Itera[·...·truncated·by·diffoscope;·len:·676,·SHA:·ae75f35cafbae1e0e695226baca09b0bec6e4a0ed5656a83c3357b29fb00442d·...·]/core/primitive.reference.html">&amp;mut·Self</a><div·class="where">where113 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·838,·SHA:·9b4fd8df7f41e9a76fd4cfca0a233b74b9bd27c3fe8228248abc3f940425a3e3·...·]/core/primitive.reference.html">&amp;mut·Self</a><div·class="where">where
114 ····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:·319,·SHA:·bbb653fcb1f5ad46e04905bf78a76b9dd63ea5d49a2d8cd5b7b36efbb0f7e105·...·]/core/iter/traits/iterator/trait.Iterator.html#method.collect"·class="fn">collect</a>&lt;B&gt;(self)·-&gt;·B<div·class="where">where114 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.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.78.0/core/it[·...·truncated·by·diffoscope;·len:·427,·SHA:·ecfaaac5d1d10c1bc4fcee9a050af0a268bee0b528c2d8ea4e9774440bd8a279·...·]/core/iter/traits/iterator/trait.Iterator.html#method.collect"·class="fn">collect</a>&lt;B&gt;(self)·-&gt;·B<div·class="where">where
115 ····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;,115 ····B:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.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.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;,
116 ····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:·e5d524e874326d0b9b733f5ee809c6595cde869afab0cc3d4ba8454093f420da·...·]/core/primitive.reference.html">&amp;mut·E</a><div·class="where">where116 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.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.78.0/core/iter/tr[·...·truncated·by·diffoscope;·len:·728,·SHA:·01937c2dc314c259495665570ae249c94b4a5b0719718f5f1188e6fc64ecf487·...·]/core/primitive.reference.html">&amp;mut·E</a><div·class="where">where
117 ····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;,117 ····E:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.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.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;,
118 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></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:·744,·SHA:·a7446142ab67c3f20d866315fbe6cb9c57cd4af012812d6dd19d5061aee6e97b·...·]/core/primitive.tuple.html">(B,·B)</a><div·class="where">where118 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experiment[·...·truncated·by·diffoscope;·len:·879,·SHA:·e773b2222c92d001e295030cb47a780ab0c1132d7fc8e9e3a98de4f532e6c520·...·]/core/primitive.tuple.html">(B,·B)</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.78.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
120 ····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;,120 ····B:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/default/trait.Default.html"·title="trait·core::default::Default">Default</a>·+·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/collect/trait.Extend.html"·title="trait·core::iter::traits::collec[·...·truncated·by·diffoscope;·len:·95,·SHA:·8b3be1d0042cae0550f865faf5849221240bdf04eb1b2107605b72d48c3ad29c·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;,
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:·806,·SHA:·5a1bcc1ddfc5fccf50d61bf2b8879dae247aa12c0b23ba2f437fd2a345cabac7·...·]/core/primitive.usize.html">usize</a><div·class="where">where121 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·995,·SHA:·bec3765fdab56713186e2454cd84738b5b28e3280a2f3d5a25cefdbc3089b520·...·]/core/primitive.usize.html">usize</a><div·class="where">where
122 ····T:·'a,122 ····T:·'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/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;,123 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>·+·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/double_ended/trait.DoubleEndedIterator.html"·title="trait·core::iter::trai[·...·truncated·by·diffoscope;·len:·132,·SHA:·e5b2cf5f56946ede1e190ed09879c5821e2de04cf8e5d145142eeb40c6340982·...·]/core/primitive.reference.html">&amp;'a·mut·T</a>&gt;,
124 ····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,124 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(<a·class="primitive"·href="https://doc.rust-lang.org/1.78.0/core/primitive.reference.html">&amp;T</a>)·-&gt;·<a·class="primitive"·href="[·...·truncated·by·diffoscope;·len:·32,·SHA:·63d052a8ced32bf927ffadd7e884c08caf4970e85dfdf6be0e568d49b174da96·...·]/core/primitive.bool.html">bool</a>,</div></h4></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,
125 such·that·all·those·that·return·<code>true</code>·precede·all·those·that·return·<code>false</code>.125 such·that·all·those·that·return·<code>true</code>·precede·all·those·that·return·<code>false</code>.
126 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:·97056c44eac6a0f986fb2c8edec37302cc06edf44a6c6f7153a5d8623d8d6c0d·...·]/core/primitive.bool.html">bool</a><div·class="where">where126 Returns·the·number·of·<code>true</code>·elements·found.·<a·href="https://doc.rust-lang.org/1.78.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:·0c224636c18baa273f69de21f90083317f2ea0b7367a3f0d0f1c0ace55a36f79·...·]/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.78.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
128 ····P:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<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,128 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·135,·SHA:·51ff5f5c7ebd8440623ea71b125c5a5837e809e308fe1a13fbe19cddb941dbd9·...·]/core/primitive.bool.html">bool</a>,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iter_is_partitioned</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/62544">#62544</a>)</span></div></span><div·class='docblock'>Checks·if·the·elements·of·this·iterator·are·partitioned·according·to·the·given·predicate,
Max diff block lines reached; 141640/326634 bytes (43.36%) of diff not shown.
315 KB
./usr/share/doc/rust-web-doc/html/alloc/slice/struct.IterMut.html
    
Offset 1, 26 lines modifiedOffset 1, 26 lines modified
1 <!DOCTYPE·html><html·lang="en"><head><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.write(`<link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/SourceSerif4-Regular-46f98efaafac5295.ttf.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/FiraSans-Regular-018c141bf0843ffd.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/FiraSans-Medium-8f9a781e4970d388.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/SourceCodePro-Regular-562dcc5011b6de7d.ttf.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/SourceCodePro-Semibold-d899c5a5c4aeb14a.ttf.woff2">`)</script><link·rel="stylesheet"·href="../../static.files/normalize-76eba96aa4d2e634.css"><link·rel="stylesheet"·href="../../static.files/rustdoc-35f9e32502181f1e.css"><meta·name="rustdoc-vars"·data-root-path="../../"·data-static-root-path="../../static.files/"·data-current-crate="alloc"·data-themes=""·data-resource-suffix="1.78.0"·data-rustdoc-version="1.78.0"·data-channel="1.78.0"·data-search-js="search-42d8da7a6b9792c2.js"·data-settings-js="settings-4313503d2e1961c2.js"·><script·src="../../static.files/storage-4c98445ec4002617.js"></script><script·defer·src="sidebar-items1.78.0.js"></script><script·defer·src="../../static.files/main-12cf3b4f4f9dc36d.js"></script><noscript><link·rel="stylesheet"·href="../../static.files/noscript-04d5337699b92874.css"></noscript><link·rel="alternate·icon"·type="image/png"·href="../../static.files/favicon-16x16-8b506e7a72182f1c.png"><link·rel="alternate·icon"·type="image/png"·href="../../static.files/favicon-32x32-422f7d1d52889060.png"><link·rel="icon"·type="image/svg+xml"·href="../../static.files/favicon-2c020d218678b618.svg"></head><body·class="rustdoc·struct"><!--[if·lte·IE·11]><div·class="warning">This·old·browser·is·unsupported·and·will·most·likely·display·funky·things.</div><![endif]--><nav·class="mobile-topbar"><button·class="sidebar-menu-toggle"·title="show·sidebar"></button><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-151179464ae7ed46.svg"·alt=""></a></nav><nav·class="sidebar"><div·class="sidebar-crate"><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-151179464ae7ed46.svg"·alt="logo"></a><h2><a·href="../../alloc/index.html">alloc</a><span·class="version">1.78.0</span></h2></div><h2·class="location"><a·href="#">IterMut</a></h2><div·class="sidebar-elems"><section><h3><a·href="#implementations">Methods</a></h3><ul·class="block·method"><li><a·href="#method.as_mut_slice">as_mut_slice</a></li><li><a·href="#method.as_slice">as_slice</a></li><li><a·href="#method.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">AsRef&lt;[T]&gt;</a></li><li><a·href="#impl-Debug-for-IterMut%3C'_,+T%3E">Debug</a></li><li><a·href="#impl-Default-for-IterMut%3C'_,+T%3E">Default</a></li><li><a·href="#impl-DoubleEndedIterator-for-IterMut%3C'a,+T%3E">DoubleEndedIterator</a></li><li><a·href="#impl-ExactSizeIterator-for-IterMut%3C'_,+T%3E">ExactSizeIterator</a></li><li><a·href="#impl-FusedIterator-for-IterMut%3C'_,+T%3E">FusedIterator</a></li><li><a·href="#impl-Iterator-for-IterMut%3C'a,+T%3E">Iterator</a></li><li><a·href="#impl-Send-for-IterMut%3C'_,+T%3E">Send</a></li><li><a·href="#impl-Sync-for-IterMut%3C'_,+T%3E">Sync</a></li><li><a·href="#impl-TrustedLen-for-IterMut%3C'_,+T%3E">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">!UnwindSafe</a></li><li><a·href="#impl-Freeze-for-IterMut%3C'a,+T%3E">Freeze</a></li><li><a·href="#impl-RefUnwindSafe-for-IterMut%3C'a,+T%3E">RefUnwindSafe</a></li><li><a·href="#impl-Unpin-for-IterMut%3C'a,+T%3E">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">Any</a></li><li><a·href="#impl-Borrow%3CT%3E-for-T">Borrow&lt;T&gt;</a></li><li><a·href="#impl-BorrowMut%3CT%3E-for-T">BorrowMut&lt;T&gt;</a></li><li><a·href="#impl-From%3CT%3E-for-T">From&lt;T&gt;</a></li><li><a·href="#impl-Into%3CU%3E-for-T">Into&lt;U&gt;</a></li><li><a·href="#impl-IntoIterator-for-I">IntoIterator</a></li><li><a·href="#impl-TryFrom%3CU%3E-for-T">TryFrom&lt;U&gt;</a></li><li><a·href="#impl-TryInto%3CU%3E-for-T">TryInto&lt;U&gt;</a></li></ul></section><h2><a·href="index.html">In·alloc::slice</a></h2></div></nav><div·class="sidebar-resizer"></div>1 <!DOCTYPE·html><html·lang="en"><head><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.write(`<link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/SourceSerif4-Regular-46f98efaafac5295.ttf.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/FiraSans-Regular-018c141bf0843ffd.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/FiraSans-Medium-8f9a781e4970d388.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/SourceCodePro-Regular-562dcc5011b6de7d.ttf.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/SourceCodePro-Semibold-d899c5a5c4aeb14a.ttf.woff2">`)</script><link·rel="stylesheet"·href="../../static.files/normalize-76eba96aa4d2e634.css"><link·rel="stylesheet"·href="../../static.files/rustdoc-35f9e32502181f1e.css"><meta·name="rustdoc-vars"·data-root-path="../../"·data-static-root-path="../../static.files/"·data-current-crate="alloc"·data-themes=""·data-resource-suffix="1.78.0"·data-rustdoc-version="1.78.0"·data-channel="1.78.0"·data-search-js="search-42d8da7a6b9792c2.js"·data-settings-js="settings-4313503d2e1961c2.js"·><script·src="../../static.files/storage-4c98445ec4002617.js"></script><script·defer·src="sidebar-items1.78.0.js"></script><script·defer·src="../../static.files/main-12cf3b4f4f9dc36d.js"></script><noscript><link·rel="stylesheet"·href="../../static.files/noscript-04d5337699b92874.css"></noscript><link·rel="alternate·icon"·type="image/png"·href="../../static.files/favicon-16x16-8b506e7a72182f1c.png"><link·rel="alternate·icon"·type="image/png"·href="../../static.files/favicon-32x32-422f7d1d52889060.png"><link·rel="icon"·type="image/svg+xml"·href="../../static.files/favicon-2c020d218678b618.svg"></head><body·class="rustdoc·struct"><!--[if·lte·IE·11]><div·class="warning">This·old·browser·is·unsupported·and·will·most·likely·display·funky·things.</div><![endif]--><nav·class="mobile-topbar"><button·class="sidebar-menu-toggle"·title="show·sidebar"></button><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-151179464ae7ed46.svg"·alt=""></a></nav><nav·class="sidebar"><div·class="sidebar-crate"><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-151179464ae7ed46.svg"·alt="logo"></a><h2><a·href="../../alloc/index.html">alloc</a><span·class="version">1.78.0</span></h2></div><h2·class="location"><a·href="#">IterMut</a></h2><div·class="sidebar-elems"><section><h3><a·href="#implementations">Methods</a></h3><ul·class="block·method"><li><a·href="#method.as_mut_slice">as_mut_slice</a></li><li><a·href="#method.as_slice">as_slice</a></li><li><a·href="#method.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">AsRef&lt;[T]&gt;</a></li><li><a·href="#impl-Debug-for-IterMut%3C'_,+T%3E">Debug</a></li><li><a·href="#impl-Default-for-IterMut%3C'_,+T%3E">Default</a></li><li><a·href="#impl-DoubleEndedIterator-for-IterMut%3C'a,+T%3E">DoubleEndedIterator</a></li><li><a·href="#impl-ExactSizeIterator-for-IterMut%3C'_,+T%3E">ExactSizeIterator</a></li><li><a·href="#impl-FusedIterator-for-IterMut%3C'_,+T%3E">FusedIterator</a></li><li><a·href="#impl-Iterator-for-IterMut%3C'a,+T%3E">Iterator</a></li><li><a·href="#impl-Send-for-IterMut%3C'_,+T%3E">Send</a></li><li><a·href="#impl-Sync-for-IterMut%3C'_,+T%3E">Sync</a></li><li><a·href="#impl-TrustedLen-for-IterMut%3C'_,+T%3E">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">!UnwindSafe</a></li><li><a·href="#impl-Freeze-for-IterMut%3C'a,+T%3E">Freeze</a></li><li><a·href="#impl-RefUnwindSafe-for-IterMut%3C'a,+T%3E">RefUnwindSafe</a></li><li><a·href="#impl-Unpin-for-IterMut%3C'a,+T%3E">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">Any</a></li><li><a·href="#impl-Borrow%3CT%3E-for-T">Borrow&lt;T&gt;</a></li><li><a·href="#impl-BorrowMut%3CT%3E-for-T">BorrowMut&lt;T&gt;</a></li><li><a·href="#impl-From%3CT%3E-for-T">From&lt;T&gt;</a></li><li><a·href="#impl-Into%3CU%3E-for-T">Into&lt;U&gt;</a></li><li><a·href="#impl-IntoIterator-for-I">IntoIterator</a></li><li><a·href="#impl-TryFrom%3CU%3E-for-T">TryFrom&lt;U&gt;</a></li><li><a·href="#impl-TryInto%3CU%3E-for-T">TryInto&lt;U&gt;</a></li></ul></section><h2><a·href="index.html">In·alloc::slice</a></h2></div></nav><div·class="sidebar-resizer"></div>
2 ····<main><div·class="width-limiter"><nav·class="sub"><form·class="search-form"><span></span><div·id="sidebar-button"·tabindex="-1"><a·href="../../alloc/all.html"·title="show·sidebar"></a></div><input·class="search-input"·name="search"·aria-label="Run·search·in·the·documentation"·autocomplete="off"·spellcheck="false"·placeholder="Click·or·press·‘S’·to·search,·‘?’·for·more·options…"·type="search"><div·id="help-button"·tabindex="-1"><a·href="../../help.html"·title="help">?</a></div><div·id="settings-menu"·tabindex="-1"><a·href="../../settings.html"·title="settings"><img·width="22"·height="22"·alt="Change·settings"·src="../../static.files/wheel-7b819b6101059cd0.svg"></a></div></form></nav><section·id="main-content"·class="content"><div·class="main-heading"><h1>Struct·<a·href="../index.html">alloc</a>::<wbr><a·href="index.html">slice</a>::<wbr><a·class="struct"·href="#">IterMut</a><button·id="copy-path"·title="Copy·item·path·to·clipboard"><img·src="../../static.files/clipboard-7571035ce49a181d.svg"·width="19"·height="18"·alt="Copy·item·path"></button></h1><span·class="out-of-band"><span·class="since"·title="Stable·since·Rust·version·1.0.0">1.0.0</span>···<a·class="src"·href="../../src/core/slice/iter.rs.html#185">source</a>···<button·id="toggle-all-docs"·title="collapse·all·docs">[<span>&#x2212;</span>]</button></span></div><pre·class="rust·item-decl"><code>pub·struct·IterMut&lt;'a,·T&gt;<div·class="where">where2 ····<main><div·class="width-limiter"><nav·class="sub"><form·class="search-form"><span></span><div·id="sidebar-button"·tabindex="-1"><a·href="../../alloc/all.html"·title="show·sidebar"></a></div><input·class="search-input"·name="search"·aria-label="Run·search·in·the·documentation"·autocomplete="off"·spellcheck="false"·placeholder="Click·or·press·‘S’·to·search,·‘?’·for·more·options…"·type="search"><div·id="help-button"·tabindex="-1"><a·href="../../help.html"·title="help">?</a></div><div·id="settings-menu"·tabindex="-1"><a·href="../../settings.html"·title="settings"><img·width="22"·height="22"·alt="Change·settings"·src="../../static.files/wheel-7b819b6101059cd0.svg"></a></div></form></nav><section·id="main-content"·class="content"><div·class="main-heading"><h1>Struct·<a·href="../index.html">alloc</a>::<wbr><a·href="index.html">slice</a>::<wbr><a·class="struct"·href="#">IterMut</a><button·id="copy-path"·title="Copy·item·path·to·clipboard"><img·src="../../static.files/clipboard-7571035ce49a181d.svg"·width="19"·height="18"·alt="Copy·item·path"></button></h1><span·class="out-of-band"><span·class="since"·title="Stable·since·Rust·version·1.0.0">1.0.0</span>···<a·class="src"·href="https://doc.rust-lang.org/1.78.0/src/core/slice/iter.rs.html#185">source</a>···<button·id="toggle-all-docs"·title="collapse·all·docs">[<span>&#x2212;</span>]</button></span></div><pre·class="rust·item-decl"><code>pub·struct·IterMut&lt;'a,·T&gt;<div·class="where">where
3 ····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 ····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>
4 <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>4 <p>This·struct·is·created·by·the·<a·href="https://doc.rust-lang.org/1.78.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.78.0/core/primitive.slice.html"·title="primitive·slice">slices</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>Basic·usage:</p>6 <p>Basic·usage:</p>
  
7 <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 <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`
8 //·struct·(`&amp;[usize]`·here):8 //·struct·(`&amp;[usize]`·here):
9 </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><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>];
  
10 <span·class="comment">//·Then,·we·iterate·over·it·and·increment·each·element·value:10 <span·class="comment">//·Then,·we·iterate·over·it·and·increment·each·element·value:
11 </span><span·class="kw">for·</span>element·<span·class="kw">in·</span>slice.iter_mut()·{11 </span><span·class="kw">for·</span>element·<span·class="kw">in·</span>slice.iter_mut()·{
12 ····<span·class="kw-2">*</span>element·+=·<span·class="number">1</span>;12 ····<span·class="kw-2">*</span>element·+=·<span·class="number">1</span>;
13 }13 }
  
14 <span·class="comment">//·We·now·have·"[2,·3,·4]":14 <span·class="comment">//·We·now·have·"[2,·3,·4]":
15 </span><span·class="macro">println!</span>(<span·class="string">"{slice:?}"</span>);</code></pre><a·class="test-arrow"·target="_blank"·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">Run</a></div>15 </span><span·class="macro">println!</span>(<span·class="string">"{slice:?}"</span>);</code></pre><a·class="test-arrow"·target="_blank"·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">Run</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-IterMut%3C'a,+T%3E"·class="impl"><a·class="src·rightside"·href="../../src/core/slice/iter.rs.html#210">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:·36e7734608ed1911d084eecabae959da6405e310c2fd6c851f4dc322635a6d4e·...·]/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 </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.78.0/src/core/slice/iter.rs.html#210">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:·bd0e3849864f4881ad7426306fd4e6c206293e37eb6e592a6481f05764510a08·...·]/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>
17 <p>To·avoid·creating·<code>&amp;mut</code>·references·that·alias,·this·is·forced17 <p>To·avoid·creating·<code>&amp;mut</code>·references·that·alias,·this·is·forced
18 to·consume·the·iterator.</p>18 to·consume·the·iterator.</p>
19 <h5·id="examples-1"><a·class="doc-anchor"·href="#examples-1">§</a>Examples</h5>19 <h5·id="examples-1"><a·class="doc-anchor"·href="#examples-1">§</a>Examples</h5>
20 <p>Basic·usage:</p>20 <p>Basic·usage:</p>
  
21 <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 <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`
22 //·struct·(`&amp;[usize]`·here):22 //·struct·(`&amp;[usize]`·here):
Offset 40, 15 lines modifiedOffset 40, 15 lines modified
40 ····<span·class="comment">//·First·we·get·back·the·iterator:40 ····<span·class="comment">//·First·we·get·back·the·iterator:
41 ····</span><span·class="kw">let·</span><span·class="kw-2">mut·</span>iter·=·slice.iter_mut();41 ····</span><span·class="kw">let·</span><span·class="kw-2">mut·</span>iter·=·slice.iter_mut();
42 ····<span·class="comment">//·We·change·the·value·of·the·first·element·of·the·slice·returned·by·the·`next`·method:42 ····<span·class="comment">//·We·change·the·value·of·the·first·element·of·the·slice·returned·by·the·`next`·method:
43 ····</span><span·class="kw-2">*</span>iter.next().unwrap()·+=·<span·class="number">1</span>;43 ····</span><span·class="kw-2">*</span>iter.next().unwrap()·+=·<span·class="number">1</span>;
44 }44 }
45 <span·class="comment">//·Now·slice·is·"[2,·2,·3]":45 <span·class="comment">//·Now·slice·is·"[2,·2,·3]":
46 </span><span·class="macro">println!</span>(<span·class="string">"{slice:?}"</span>);</code></pre><a·class="test-arrow"·target="_blank"·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">Run</a></div>46 </span><span·class="macro">println!</span>(<span·class="string">"{slice:?}"</span>);</code></pre><a·class="test-arrow"·target="_blank"·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">Run</a></div>
47 </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#306">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>47 </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.78.0/src/core/slice/iter.rs.html#306">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.78.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>
48 <p>To·avoid·creating·<code>&amp;mut·[T]</code>·references·that·alias,·the·returned·slice48 <p>To·avoid·creating·<code>&amp;mut·[T]</code>·references·that·alias,·the·returned·slice
49 borrows·its·lifetime·from·the·iterator·the·method·is·applied·on.</p>49 borrows·its·lifetime·from·the·iterator·the·method·is·applied·on.</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>
51 <p>Basic·usage:</p>51 <p>Basic·usage:</p>
  
52 <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>];52 <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 57, 15 lines modifiedOffset 57, 15 lines modified
57 <span·class="comment">//·So·if·we·check·what·the·`as_slice`·method·returns·here,·we·have·"[1,·2,·3]":57 <span·class="comment">//·So·if·we·check·what·the·`as_slice`·method·returns·here,·we·have·"[1,·2,·3]":
58 </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><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>]);
  
59 <span·class="comment">//·Next,·we·move·to·the·second·element·of·the·slice:59 <span·class="comment">//·Next,·we·move·to·the·second·element·of·the·slice:
60 </span>iter.next();60 </span>iter.next();
61 <span·class="comment">//·Now·`as_slice`·returns·"[2,·3]":61 <span·class="comment">//·Now·`as_slice`·returns·"[2,·3]":
62 </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"·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">Run</a></div>62 </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"·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">Run</a></div>
63 </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#344">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>63 </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.78.0/src/core/slice/iter.rs.html#344">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.78.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>
64 <p>To·avoid·creating·<code>&amp;mut·[T]</code>·references·that·alias,·the·returned·slice64 <p>To·avoid·creating·<code>&amp;mut·[T]</code>·references·that·alias,·the·returned·slice
65 borrows·its·lifetime·from·the·iterator·the·method·is·applied·on.</p>65 borrows·its·lifetime·from·the·iterator·the·method·is·applied·on.</p>
66 <h5·id="examples-3"><a·class="doc-anchor"·href="#examples-3">§</a>Examples</h5>66 <h5·id="examples-3"><a·class="doc-anchor"·href="#examples-3">§</a>Examples</h5>
67 <p>Basic·usage:</p>67 <p>Basic·usage:</p>
  
68 <div·class="example-wrap"><pre·class="rust·rust-example-rendered"><code><span·class="attr">#![feature(slice_iter_mut_as_mut_slice)]68 <div·class="example-wrap"><pre·class="rust·rust-example-rendered"><code><span·class="attr">#![feature(slice_iter_mut_as_mut_slice)]
  
Offset 83, 222 lines modifiedOffset 83, 222 lines modified
83 mut_slice[<span·class="number">2</span>]·=·<span·class="number">5</span>;83 mut_slice[<span·class="number">2</span>]·=·<span·class="number">5</span>;
  
84 <span·class="comment">//·Next,·we·can·move·to·the·second·element·of·the·slice,·checking·that84 <span·class="comment">//·Next,·we·can·move·to·the·second·element·of·the·slice,·checking·that
85 //·it·yields·the·value·we·just·wrote:85 //·it·yields·the·value·we·just·wrote:
86 </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><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>));
87 <span·class="comment">//·Now·`as_mut_slice`·returns·"[2,·5]":87 <span·class="comment">//·Now·`as_mut_slice`·returns·"[2,·5]":
88 </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"·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">Run</a></div>88 </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"·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">Run</a></div>
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-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#353">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:·92de26aecb711e7c88aceedcbb69556d3ce1dd719a52ead257876572c7496677·...·]/src/core/slice/iter.rs.html#199">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">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-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.78.0/src/core/slice/iter.rs.html#353">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.78.0/c[·...·truncated·by·diffoscope;·len:·1278,·SHA:·e42e8b965f61632a198da50822f2422d54571f3eb1199830aeac88215d952d4a·...·]/src/core/slice/iter.rs.html#199">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
90 ····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#200">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:·716cae5d3331ae5cf5a91b37d3a06c2f194d5e47a178885960b68e0c8c783b42·...·]/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 ····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.78.0/src/core/slice/iter.rs.html#200">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:·3ae4fd32468bb0a470679ed7a9fe38589be6c76a367d48e4a788a4b7d30bece5·...·]/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>
  
91 <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 <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();
92 <span·class="macro">assert_eq!</span>(iter.len(),·<span·class="number">0</span>);</code></pre><a·class="test-arrow"·target="_blank"·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">Run</a></div>92 <span·class="macro">assert_eq!</span>(iter.len(),·<span·class="number">0</span>);</code></pre><a·class="test-arrow"·target="_blank"·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">Run</a></div>
93 </div></details></div></details><details·class="toggle·implementors-toggle"·open><summary><section·id="impl-DoubleEndedIterator-for-IterMut%3C'a,+T%3E"·class="impl"><a·class="src·rightside"·href="../../src/core/slice/iter.rs.html#367">source</a><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.h[·...·truncated·by·diffoscope;·len:·3748,·SHA:·30772006b01827fa36fea262f234149118d06f29007a4a48da63b100d6df6e89·...·]/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">where93 </div></details></div></details><details·class="toggle·implementors-toggle"·open><summary><section·id="impl-DoubleEndedIterator-for-IterMut%3C'a,+T%3E"·class="impl"><a·class="src·rightside"·href="https://doc.rust-lang.org/1.78.0/src/core/slice/iter.rs.html#367">source</a><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.78.0/cor[·...·truncated·by·diffoscope;·len:·4369,·SHA:·c8a6a4cfc7044cb029c1256e1f4f815db6802d6a9c8cf6bed8ee2f441f9078af·...·]/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
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.78.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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(B,·Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.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'>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·takes96 ····R:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.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.7[·...·truncated·by·diffoscope;·len:·3,·SHA:·7b1bd53949b752d143d871408483b5382371b5bc48d195d0c040ec93cfa2748b·...·]/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
97 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:·74b709f2c818a4eda5d85ea863eb2d8af72c87564dbab2746e67feafb0cbb9a3·...·]/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">where97 elements·starting·from·the·back·of·the·iterator.·<a·href="https://doc.rust-lang.org/1.78.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:·d66ed7e195a53e9945339ef1976aed455dcf80228d8e5b7b0c69a64c3983fea1·...·]/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
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.78.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'>An·iterator·method·that·reduces·the·iterator’s·elements·to·a·single,99 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(B,·Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/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,
100 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:·f8bdf1e28866c7668477ab391452c7cfa7fd52cc69b633e782a157931421b39b·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;<div·class="where">where100 final·value,·starting·from·the·back.·<a·href="https://doc.rust-lang.org/1.78.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:·c264047794019a6dcf05728ba6a6ee1f8f07c7209958b3366ba94546b527ecdc·...·]/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.78.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:·9150,·SHA:·c14419a830357c332d71af8e9a02b07303be69772197eda56839ccbe611e23f3·...·]/core/iter/traits/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 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·10608,·SHA:·b4156e50a79962edbce11253e781478039265c07ae4eec10e17778c9c6d2205c·...·]/core/iter/traits/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 ····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,103 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.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:·43ec08c9abc6552f632e0cc5631d4f8614403dd1cd8308c9366e8a1a4f6622b6·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::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.for_each"·class="method·trait-impl"><a·class="src·rightside"·href="../../src/core/slice/it[·...·truncated·by·diffoscope;·len:·114,·SHA:·686ae4d752f4fbbc99cdba067d06a623066af3e44865d27f9aec70abf632a263·...·]/core/iter/traits/iterator/trait.Iterator.html#method.for_each"·class="fn">for_each</a>&lt;F&gt;(self,·f:·F)<div·class="where">where104 returning·the·final·result.·<a·href="https://doc.rust-lang.org/1.78.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:·0cc65477d83f111a8a021d2fed4342a64081eb1bbe537952579a06d4b855ea46·...·]/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
105 ····<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>,105 ····<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.78.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>(&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:·b4ead7e02b334382e8d1dd968adbe8dfa6cecad092310d132ec4c1196c0f0b39·...·]/core/primitive.bool.html">bool</a><div·class="where">where106 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.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:·34e769c6b082b3aec99827b8070886cc912ef8561edc474ce1c3c2dc077d2042·...·]/core/primitive.bool.html">bool</a><div·class="where">where
107 ····<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>,107 ····<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.78.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>(&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:·380ed725e925a35fad24afeb842f6aae31eb406332a90d0dca19687d10d9414a·...·]/core/primitive.bool.html">bool</a><div·class="where">where108 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.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:·4ca00366e5b22823c9c0a199c555c6a162e62f1cbb57d1ba635af94c0409d165·...·]/core/primitive.bool.html">bool</a><div·class="where">where
109 ····<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>,109 ····<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.78.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>(&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:·8b662888a004b497efafa8b9f8cdd7f043ecc53857739732fc78c7ba7d25c8af·...·]/core/iter/traits/iterator/trait.Iterator.html#method.find"·class="fn">find</a>&lt;P&gt;(110 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.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:·a4353fc6580d61ad3f4105971775c79e5d5bd01f7e79c8e720970ec139cf5e3e·...·]/core/iter/traits/iterator/trait.Iterator.html#method.find"·class="fn">find</a>&lt;P&gt;(
111 ····&amp;mut·self,111 ····&amp;mut·self,
112 ····predicate:·P112 ····predicate:·P
113 )·-&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">where113 )·-&gt;·<a·class="enum"·href="https://doc.rust-lang.org/1.78.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:·b187d8447fc51bd1bed2ea1c4857f8ddedb0c40d4626b2e8f50243909bf7a6d4·...·]/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 ····<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>,114 ····<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.78.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;&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:·f5f739f899f3e19585e89fcec7b973fb42a12f0dbc343aab6676ec3825dda22b·...·]/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.78.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:·264d6b187b5ec288f50b138d81a254c02618ecf53ebb8bc3a29fd49ba2c30c51·...·]/core/option/enum.Option.html"·title="enum·core::option::Option">Option</a>&lt;B&gt;<div·class="where">where
116 ····<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>,116 ····<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.78.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>(&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·returns117 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.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:·3787e7c5954a62be283b01b98b959ad5a37d8d59b890449c419ceaea767626d6·...·]/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.position"·class="method·trait-impl"><a·class="src·rightside"·href="../../src/core/slic[·...·truncated·by·diffoscope;·len:·388,·SHA:·0e78d896ccb8dc95aa6e5dc786a4da10bd71e5e3e8da31206868d67011db24cb·...·]/core/primitive.usize.html">usize</a>&gt;<div·class="where">where118 the·first·non-none·result.·<a·href="https://doc.rust-lang.org/1.78.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:·f11f1d550981ff8b7046242e772ec09e37cdbfe2a7aadd0bf8f7228ecf1e5127·...·]/core/primitive.usize.html">usize</a>&gt;<div·class="where">where
119 ····<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>,119 ····<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.78.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>(&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:·91e14d9508bb7430ffcab137227fd39effd7be8e8f4ceacc2783afad08aa71fc·...·]/core/primitive.usize.html">usize</a>&gt;<div·class="where">where120 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.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:·6fe798a6d5f2f361d0c2cbc85bcfa8b45c3c962ce6942b6bf51ecac3e3136582·...·]/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>(&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>,121 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.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:·eb660d459c9950a9a1090719614b876b6972bb02b6c3abcb66e02328c79ad572·...·]/core/primitive.bool.html">bool</a>,
122 ····<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·its122 ····<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.78.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>·+·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/exact_size/trait.ExactSizeIterator.html"·title="trait·core::iter::traits::[·...·truncated·by·diffoscope;·len:·110,·SHA:·a8846fff2831d0de2de7dbb91c4e50f6f60fac276813cbaa471bf32fb45120d4·...·]/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.next_chunk"·class="method·trait-impl"><a·class="src·rightside"·href="../../src/core/i[·...·truncated·by·diffoscope;·len:·273,·SHA:·f55cf001be6747df355962568fb2caddc3b8888ec384cd3ca001da9156b00581·...·]/core/primitive.usize.html">usize</a>&gt;(123 index.·<a·href="https://doc.rust-lang.org/1.78.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:·55e7dca583f740d7f50813f0feb103ec7f1c67aff5cd360d4bf10bb3d552d96b·...·]/core/primitive.usize.html">usize</a>&gt;(
124 ····&amp;mut·self124 ····&amp;mut·self
125 )·-&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">where125 )·-&gt;·<a·class="enum"·href="https://doc.rust-lang.org/1.78.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.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title=[·...·truncated·by·diffoscope;·len:·381,·SHA:·88c48923c9b7ea5cc47c1087c60e09656e81d4671c58071ba2bef826335388bc·...·]/core/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
126 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></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:·3d7c7f8b86c4a97963bb29656bd79f46cdeff3d182a9a25218b02a96ac573bdb·...·]/core/iter/adapters/step_by/struct.StepBy.html"·title="struct·core::iter::adapters::step_by::StepBy">StepBy</a>&lt;Self&gt;<div·class="where">where126 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></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:·fe78489556017bc5032a8e5aee741cef0ae6f055dd6dc0ad64dee12e53c468a3·...·]/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
127 ····Self:·<a·class="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·by127 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.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
128 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"><a·class="src·rightside"·href="../../src/core/iter/tra[·...·truncated·by·diffoscope;·len:·584,·SHA:·fd3e570373eb5121d35d7e22cdd5dd5fbf7183ee80147135a591fd1285174e82·...·]/core/iter/traits/collect/trait.IntoIterator.html#associatedtype.IntoIter"·title="type·core::iter::traits::collect::IntoIterator::IntoIter">IntoIter</a>&gt;<div·class="where">where128 the·given·amount·at·each·iteration.·<a·href="https://doc.rust-lang.org/1.78.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"><a·class="src·rightside"·hr[·...·truncated·by·diffoscope;·len:·746,·SHA:·f1f70d650c102c8658e13890c7dbfc87418f07e7b522246fb579ec434ef64f7c·...·]/core/iter/traits/collect/trait.IntoIterator.html#associatedtype.IntoIter"·title="type·core::iter::traits::collect::IntoIterator::IntoIter">IntoIter</a>&gt;<div·class="where">where
129 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,129 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
130 ····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:·1017,·SHA:·c0f5f8cfd297e1678ac0ee2fd847fb6f0577665ac326e8e2e9d6414a710c8f98·...·]/core/iter/traits/collect/trait.IntoIterator.html#associatedtype.IntoIter"·title="type·core::iter::traits::collect::IntoIterator::IntoIter">IntoIter</a>&gt;<div·class="where">where130 ····U:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.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.78.0/core/iter/traits/it[·...·truncated·by·diffoscope;·len:·1233,·SHA:·f677df2d893dfe0dc1a9d31ebb0ba71a346d265781813e0d664d3f18369b6163·...·]/core/iter/traits/collect/trait.IntoIterator.html#associatedtype.IntoIter"·title="type·core::iter::traits::collect::IntoIterator::IntoIter">IntoIter</a>&gt;<div·class="where">where
131 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,131 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
132 ····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:·c1b5e692e89c9c809075ee8ee72fb15a9ec46c075b08450e1f707d672a224750·...·]/core/iter/adapters/intersperse/struct.IntersperseWith.html"·title="struct·core::iter::adapters::intersperse::IntersperseWith">IntersperseWith</a>&lt;Self,·G&gt;<div·class="where">where132 ····U:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.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:·98627729f77dcf1c9d258f343354ba600b7134c6b3929080f231e8de7155b70b·...·]/core/iter/adapters/intersperse/struct.IntersperseWith.html"·title="struct·core::iter::adapters::intersperse::IntersperseWith">IntersperseWith</a>&lt;Self,·G&gt;<div·class="where">where
133 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,133 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
134 ····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>134 ····G:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.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.78.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>
135 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"><a·class="src·rightside"·href="../../src/core/i[·...·truncated·by·diffoscope;·len:·267,·SHA:·1764c9d6d2e39e1367ae2111c28ab846e66ecf12617fbff35e0132e82e5c8b13·...·]/core/iter/adapters/map/struct.Map.html"·title="struct·core::iter::adapters::map::Map">Map</a>&lt;Self,·F&gt;<div·class="where">where135 between·adjacent·items·of·the·original·iterator.·<a·href="https://doc.rust-lang.org/1.78.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"><a·class="src·rights[·...·truncated·by·diffoscope;·len:·375,·SHA:·58419346f92e1709dadb70cc3cf356e3cd27972451bdc6b4fc4267e6f7e8bdae·...·]/core/iter/adapters/map/struct.Map.html"·title="struct·core::iter::adapters::map::Map">Map</a>&lt;Self,·F&gt;<div·class="where">where
136 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,136 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
137 ····F:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·B,</div></h4></section></summary><div·class='docblock'>Takes·a·closure·and·creates·an·iterator·which·calls·that·closure·on·each137 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::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
138 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"><a·class="src·rightside"·href="../../src/core/iter/traits[·...·truncated·by·diffoscope;·len:·271,·SHA:·f6dc777da924f2a9a708bc1e422a049937f51dbcadf28398920dfdc146be6417·...·]/core/iter/adapters/filter/struct.Filter.html"·title="struct·core::iter::adapters::filter::Filter">Filter</a>&lt;Self,·P&gt;<div·class="where">where138 element.·<a·href="https://doc.rust-lang.org/1.78.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"><a·class="src·rightside"·href=[·...·truncated·by·diffoscope;·len:·379,·SHA:·604c5fe4f73d61a5842d2e61ca263d3090116fd50b44269db9ed11cd6e015528·...·]/core/iter/adapters/filter/struct.Filter.html"·title="struct·core::iter::adapters::filter::Filter">Filter</a>&lt;Self,·P&gt;<div·class="where">where
139 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,139 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
140 ····P:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<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·element140 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·140,·SHA:·752f473b57e7444ebfddf5ea7fd40a332e83ec55524a6c31b5ee0f82a5dea819·...·]/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
141 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"><a·class="src·rightside"·href="../../src/core/iter[·...·truncated·by·diffoscope;·len:·285,·SHA:·738ce0440ff568829f40d141e38e2c0da2fd05d2b73d1a574be0ed9baa32e827·...·]/core/iter/adapters/filter_map/struct.FilterMap.html"·title="struct·core::iter::adapters::filter_map::FilterMap">FilterMap</a>&lt;Self,·F&gt;<div·class="where">where141 should·be·yielded.·<a·href="https://doc.rust-lang.org/1.78.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"><a·class="src·rightside[·...·truncated·by·diffoscope;·len:·393,·SHA:·2e2aa7c9c9c087e7b346da376749064ab8c1894795a2f0a0f646cdc8c7bea997·...·]/core/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
142 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,142 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
143 ····F:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::[·...·truncated·by·diffoscope;·len:·767,·SHA:·da0fc5bc95a3398627e0c5836423b719ccea45d351e21ddaa96f793f67f9c6de·...·]/core/iter/adapters/enumerate/struct.Enumerate.html"·title="struct·core::iter::adapters::enumerate::Enumerate">Enumerate</a>&lt;Self&gt;<div·class="where">where143 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·956,·SHA:·faba0521e870dbbd26d466fadba3522e7d29013a9b86376fffafffac11a57e0e·...·]/core/iter/adapters/enumerate/struct.Enumerate.html"·title="struct·core::iter::adapters::enumerate::Enumerate">Enumerate</a>&lt;Self&gt;<div·class="where">where
144 ····Self:·<a·class="trait"·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·as144 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.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
145 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"><a·class="src·rightside"·href="../../src/core/ite[·...·truncated·by·diffoscope;·len:·264,·SHA:·e3fa7ab43c6353bc2216a22d7010c41a8ab50d273a128d15d0eff050c058993a·...·]/core/iter/adapters/peekable/struct.Peekable.html"·title="struct·core::iter::adapters::peekable::Peekable">Peekable</a>&lt;Self&gt;<div·class="where">where145 the·next·value.·<a·href="https://doc.rust-lang.org/1.78.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"><a·class="src·rightsid[·...·truncated·by·diffoscope;·len:·372,·SHA:·03eea0861575eb80d3f7a87a3ba747adb1a33fe7e9ce72aa2172e7a287c63a94·...·]/core/iter/adapters/peekable/struct.Peekable.html"·title="struct·core::iter::adapters::peekable::Peekable">Peekable</a>&lt;Self&gt;<div·class="where">where
146 ····Self:·<a·class="trait"·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>·methods146 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.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.78.0/core/iter/adapte[·...·truncated·by·diffoscope;·len:·175,·SHA:·16fe7225bf05b478e2828b347c3d23ded9a22f89d8887a2c65d9f7b3faf1b0e7·...·]/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
147 to·look·at·the·next·element·of·the·iterator·without·consuming·it.·See147 to·look·at·the·next·element·of·the·iterator·without·consuming·it.·See
148 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"><a·class="src·rightside"·href="../../src/core/it[·...·truncated·by·diffoscope;·len:·294,·SHA:·c0aee2077af6a4f81ed47e37c84a75b5f9b941875509fbe0b3d352866f825f45·...·]/core/iter/adapters/skip_while/struct.SkipWhile.html"·title="struct·core::iter::adapters::skip_while::SkipWhile">SkipWhile</a>&lt;Self,·P&gt;<div·class="where">where148 their·documentation·for·more·information.·<a·href="https://doc.rust-lang.org/1.78.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"><a·class="src·rightsi[·...·truncated·by·diffoscope;·len:·402,·SHA:·7689a974f800fd069d1b4453ef62d6d6ad1b654462d624d36e3672051d502030·...·]/core/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
Max diff block lines reached; 155947/322722 bytes (48.32%) of diff not shown.
310 KB
./usr/share/doc/rust-web-doc/html/alloc/slice/struct.RChunks.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·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.write(`<link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/SourceSerif4-Regular-46f98efaafac5295.ttf.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/FiraSans-Regular-018c141bf0843ffd.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/FiraSans-Medium-8f9a781e4970d388.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/SourceCodePro-Regular-562dcc5011b6de7d.ttf.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/SourceCodePro-Semibold-d899c5a5c4aeb14a.ttf.woff2">`)</script><link·rel="stylesheet"·href="../../static.files/normalize-76eba96aa4d2e634.css"><link·rel="stylesheet"·href="../../static.files/rustdoc-35f9e32502181f1e.css"><meta·name="rustdoc-vars"·data-root-path="../../"·data-static-root-path="../../static.files/"·data-current-crate="alloc"·data-themes=""·data-resource-suffix="1.78.0"·data-rustdoc-version="1.78.0"·data-channel="1.78.0"·data-search-js="search-42d8da7a6b9792c2.js"·data-settings-js="settings-4313503d2e1961c2.js"·><script·src="../../static.files/storage-4c98445ec4002617.js"></script><script·defer·src="sidebar-items1.78.0.js"></script><script·defer·src="../../static.files/main-12cf3b4f4f9dc36d.js"></script><noscript><link·rel="stylesheet"·href="../../static.files/noscript-04d5337699b92874.css"></noscript><link·rel="alternate·icon"·type="image/png"·href="../../static.files/favicon-16x16-8b506e7a72182f1c.png"><link·rel="alternate·icon"·type="image/png"·href="../../static.files/favicon-32x32-422f7d1d52889060.png"><link·rel="icon"·type="image/svg+xml"·href="../../static.files/favicon-2c020d218678b618.svg"></head><body·class="rustdoc·struct"><!--[if·lte·IE·11]><div·class="warning">This·old·browser·is·unsupported·and·will·most·likely·display·funky·things.</div><![endif]--><nav·class="mobile-topbar"><button·class="sidebar-menu-toggle"·title="show·sidebar"></button><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-151179464ae7ed46.svg"·alt=""></a></nav><nav·class="sidebar"><div·class="sidebar-crate"><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-151179464ae7ed46.svg"·alt="logo"></a><h2><a·href="../../alloc/index.html">alloc</a><span·class="version">1.78.0</span></h2></div><h2·class="location"><a·href="#">RChunks</a></h2><div·class="sidebar-elems"><section><h3><a·href="#trait-implementations">Trait·Implementations</a></h3><ul·class="block·trait-implementation"><li><a·href="#impl-Clone-for-RChunks%3C'_,+T%3E">Clone</a></li><li><a·href="#impl-Debug-for-RChunks%3C'a,+T%3E">Debug</a></li><li><a·href="#impl-DoubleEndedIterator-for-RChunks%3C'a,+T%3E">DoubleEndedIterator</a></li><li><a·href="#impl-ExactSizeIterator-for-RChunks%3C'_,+T%3E">ExactSizeIterator</a></li><li><a·href="#impl-FusedIterator-for-RChunks%3C'_,+T%3E">FusedIterator</a></li><li><a·href="#impl-Iterator-for-RChunks%3C'a,+T%3E">Iterator</a></li><li><a·href="#impl-TrustedLen-for-RChunks%3C'_,+T%3E">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">Freeze</a></li><li><a·href="#impl-RefUnwindSafe-for-RChunks%3C'a,+T%3E">RefUnwindSafe</a></li><li><a·href="#impl-Send-for-RChunks%3C'a,+T%3E">Send</a></li><li><a·href="#impl-Sync-for-RChunks%3C'a,+T%3E">Sync</a></li><li><a·href="#impl-Unpin-for-RChunks%3C'a,+T%3E">Unpin</a></li><li><a·href="#impl-UnwindSafe-for-RChunks%3C'a,+T%3E">UnwindSafe</a></li></ul><h3><a·href="#blanket-implementations">Blanket·Implementations</a></h3><ul·class="block·blanket-implementation"><li><a·href="#impl-Any-for-T">Any</a></li><li><a·href="#impl-Borrow%3CT%3E-for-T">Borrow&lt;T&gt;</a></li><li><a·href="#impl-BorrowMut%3CT%3E-for-T">BorrowMut&lt;T&gt;</a></li><li><a·href="#impl-From%3CT%3E-for-T">From&lt;T&gt;</a></li><li><a·href="#impl-Into%3CU%3E-for-T">Into&lt;U&gt;</a></li><li><a·href="#impl-IntoIterator-for-I">IntoIterator</a></li><li><a·href="#impl-ToOwned-for-T">ToOwned</a></li><li><a·href="#impl-TryFrom%3CU%3E-for-T">TryFrom&lt;U&gt;</a></li><li><a·href="#impl-TryInto%3CU%3E-for-T">TryInto&lt;U&gt;</a></li></ul></section><h2><a·href="index.html">In·alloc::slice</a></h2></div></nav><div·class="sidebar-resizer"></div>1 <!DOCTYPE·html><html·lang="en"><head><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.write(`<link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/SourceSerif4-Regular-46f98efaafac5295.ttf.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/FiraSans-Regular-018c141bf0843ffd.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/FiraSans-Medium-8f9a781e4970d388.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/SourceCodePro-Regular-562dcc5011b6de7d.ttf.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/SourceCodePro-Semibold-d899c5a5c4aeb14a.ttf.woff2">`)</script><link·rel="stylesheet"·href="../../static.files/normalize-76eba96aa4d2e634.css"><link·rel="stylesheet"·href="../../static.files/rustdoc-35f9e32502181f1e.css"><meta·name="rustdoc-vars"·data-root-path="../../"·data-static-root-path="../../static.files/"·data-current-crate="alloc"·data-themes=""·data-resource-suffix="1.78.0"·data-rustdoc-version="1.78.0"·data-channel="1.78.0"·data-search-js="search-42d8da7a6b9792c2.js"·data-settings-js="settings-4313503d2e1961c2.js"·><script·src="../../static.files/storage-4c98445ec4002617.js"></script><script·defer·src="sidebar-items1.78.0.js"></script><script·defer·src="../../static.files/main-12cf3b4f4f9dc36d.js"></script><noscript><link·rel="stylesheet"·href="../../static.files/noscript-04d5337699b92874.css"></noscript><link·rel="alternate·icon"·type="image/png"·href="../../static.files/favicon-16x16-8b506e7a72182f1c.png"><link·rel="alternate·icon"·type="image/png"·href="../../static.files/favicon-32x32-422f7d1d52889060.png"><link·rel="icon"·type="image/svg+xml"·href="../../static.files/favicon-2c020d218678b618.svg"></head><body·class="rustdoc·struct"><!--[if·lte·IE·11]><div·class="warning">This·old·browser·is·unsupported·and·will·most·likely·display·funky·things.</div><![endif]--><nav·class="mobile-topbar"><button·class="sidebar-menu-toggle"·title="show·sidebar"></button><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-151179464ae7ed46.svg"·alt=""></a></nav><nav·class="sidebar"><div·class="sidebar-crate"><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-151179464ae7ed46.svg"·alt="logo"></a><h2><a·href="../../alloc/index.html">alloc</a><span·class="version">1.78.0</span></h2></div><h2·class="location"><a·href="#">RChunks</a></h2><div·class="sidebar-elems"><section><h3><a·href="#trait-implementations">Trait·Implementations</a></h3><ul·class="block·trait-implementation"><li><a·href="#impl-Clone-for-RChunks%3C'_,+T%3E">Clone</a></li><li><a·href="#impl-Debug-for-RChunks%3C'a,+T%3E">Debug</a></li><li><a·href="#impl-DoubleEndedIterator-for-RChunks%3C'a,+T%3E">DoubleEndedIterator</a></li><li><a·href="#impl-ExactSizeIterator-for-RChunks%3C'_,+T%3E">ExactSizeIterator</a></li><li><a·href="#impl-FusedIterator-for-RChunks%3C'_,+T%3E">FusedIterator</a></li><li><a·href="#impl-Iterator-for-RChunks%3C'a,+T%3E">Iterator</a></li><li><a·href="#impl-TrustedLen-for-RChunks%3C'_,+T%3E">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">Freeze</a></li><li><a·href="#impl-RefUnwindSafe-for-RChunks%3C'a,+T%3E">RefUnwindSafe</a></li><li><a·href="#impl-Send-for-RChunks%3C'a,+T%3E">Send</a></li><li><a·href="#impl-Sync-for-RChunks%3C'a,+T%3E">Sync</a></li><li><a·href="#impl-Unpin-for-RChunks%3C'a,+T%3E">Unpin</a></li><li><a·href="#impl-UnwindSafe-for-RChunks%3C'a,+T%3E">UnwindSafe</a></li></ul><h3><a·href="#blanket-implementations">Blanket·Implementations</a></h3><ul·class="block·blanket-implementation"><li><a·href="#impl-Any-for-T">Any</a></li><li><a·href="#impl-Borrow%3CT%3E-for-T">Borrow&lt;T&gt;</a></li><li><a·href="#impl-BorrowMut%3CT%3E-for-T">BorrowMut&lt;T&gt;</a></li><li><a·href="#impl-From%3CT%3E-for-T">From&lt;T&gt;</a></li><li><a·href="#impl-Into%3CU%3E-for-T">Into&lt;U&gt;</a></li><li><a·href="#impl-IntoIterator-for-I">IntoIterator</a></li><li><a·href="#impl-ToOwned-for-T">ToOwned</a></li><li><a·href="#impl-TryFrom%3CU%3E-for-T">TryFrom&lt;U&gt;</a></li><li><a·href="#impl-TryInto%3CU%3E-for-T">TryInto&lt;U&gt;</a></li></ul></section><h2><a·href="index.html">In·alloc::slice</a></h2></div></nav><div·class="sidebar-resizer"></div>
2 ····<main><div·class="width-limiter"><nav·class="sub"><form·class="search-form"><span></span><div·id="sidebar-button"·tabindex="-1"><a·href="../../alloc/all.html"·title="show·sidebar"></a></div><input·class="search-input"·name="search"·aria-label="Run·search·in·the·documentation"·autocomplete="off"·spellcheck="false"·placeholder="Click·or·press·‘S’·to·search,·‘?’·for·more·options…"·type="search"><div·id="help-button"·tabindex="-1"><a·href="../../help.html"·title="help">?</a></div><div·id="settings-menu"·tabindex="-1"><a·href="../../settings.html"·title="settings"><img·width="22"·height="22"·alt="Change·settings"·src="../../static.files/wheel-7b819b6101059cd0.svg"></a></div></form></nav><section·id="main-content"·class="content"><div·class="main-heading"><h1>Struct·<a·href="../index.html">alloc</a>::<wbr><a·href="index.html">slice</a>::<wbr><a·class="struct"·href="#">RChunks</a><button·id="copy-path"·title="Copy·item·path·to·clipboard"><img·src="../../static.files/clipboard-7571035ce49a181d.svg"·width="19"·height="18"·alt="Copy·item·path"></button></h1><span·class="out-of-band"><span·class="since"·title="Stable·since·Rust·version·1.31.0">1.31.0</span>···<a·class="src"·href="../../src/core/slice/iter.rs.html#2534">source</a>···<button·id="toggle-all-docs"·title="collapse·all·docs">[<span>&#x2212;</span>]</button></span></div><pre·class="rust·item-decl"><code>pub·struct·RChunks&lt;'a,·T&gt;<div·class="where">where2 ····<main><div·class="width-limiter"><nav·class="sub"><form·class="search-form"><span></span><div·id="sidebar-button"·tabindex="-1"><a·href="../../alloc/all.html"·title="show·sidebar"></a></div><input·class="search-input"·name="search"·aria-label="Run·search·in·the·documentation"·autocomplete="off"·spellcheck="false"·placeholder="Click·or·press·‘S’·to·search,·‘?’·for·more·options…"·type="search"><div·id="help-button"·tabindex="-1"><a·href="../../help.html"·title="help">?</a></div><div·id="settings-menu"·tabindex="-1"><a·href="../../settings.html"·title="settings"><img·width="22"·height="22"·alt="Change·settings"·src="../../static.files/wheel-7b819b6101059cd0.svg"></a></div></form></nav><section·id="main-content"·class="content"><div·class="main-heading"><h1>Struct·<a·href="../index.html">alloc</a>::<wbr><a·href="index.html">slice</a>::<wbr><a·class="struct"·href="#">RChunks</a><button·id="copy-path"·title="Copy·item·path·to·clipboard"><img·src="../../static.files/clipboard-7571035ce49a181d.svg"·width="19"·height="18"·alt="Copy·item·path"></button></h1><span·class="out-of-band"><span·class="since"·title="Stable·since·Rust·version·1.31.0">1.31.0</span>···<a·class="src"·href="https://doc.rust-lang.org/1.78.0/src/core/slice/iter.rs.html#2534">source</a>···<button·id="toggle-all-docs"·title="collapse·all·docs">[<span>&#x2212;</span>]</button></span></div><pre·class="rust·item-decl"><code>pub·struct·RChunks&lt;'a,·T&gt;<div·class="where">where
3 ····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·a3 ····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
4 time),·starting·at·the·end·of·the·slice.</p>4 time),·starting·at·the·end·of·the·slice.</p>
5 <p>When·the·slice·len·is·not·evenly·divided·by·the·chunk·size,·the·last·slice5 <p>When·the·slice·len·is·not·evenly·divided·by·the·chunk·size,·the·last·slice
6 of·the·iteration·will·be·the·remainder.</p>6 of·the·iteration·will·be·the·remainder.</p>
7 <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>7 <p>This·struct·is·created·by·the·<a·href="https://doc.rust-lang.org/1.78.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.78.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>iter·=·slice.rchunks(<span·class="number">2</span>);</code></pre><a·class="test-arrow"·target="_blank"·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+iter+=+slice.rchunks(2);%0A%7D&amp;edition=2021">Run</a></div>10 <span·class="kw">let·</span>iter·=·slice.rchunks(<span·class="number">2</span>);</code></pre><a·class="test-arrow"·target="_blank"·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+iter+=+slice.rchunks(2);%0A%7D&amp;edition=2021">Run</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-RChunks%3C'_,+T%3E"·class="impl"><a·class="src·rightside"·href="../../src/core/slice/iter.rs.html#2548">source</a><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</a>·fo[·...·truncated·by·diffoscope;·len:·1764,·SHA:·4c4299869880fac32b0653bfcff025f09289a0848e317a58638702177724362e·...·]/src/core/slice/iter.rs.html#2531">source</a><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">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-RChunks%3C'_,+T%3E"·class="impl"><a·class="src·rightside"·href="https://doc.rust-lang.org/1.78.0/src/core/slice/iter.rs.html#2548">source</a><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.78.0/core/clone/trait.Clo[·...·truncated·by·diffoscope;·len:·2034,·SHA:·7904841df030cfd8d6add971b1b986e31133333d24f5c07719328366b3b3a65c·...·]/src/core/slice/iter.rs.html#2531">source</a><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
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#2531">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:·5057,·SHA:·6ddc74d63fc65ce48cb269777c60bc86b4b1313db59a3f0482e70601cd8a3c17·...·]/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.78.0/src/core/slice/iter.rs.html#2531">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:·5786,·SHA:·6df5043d3bfd9e73ffdbb53ec7b8e4b414593efff7d1d58a5e6cae66efd7c5cf·...·]/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.78.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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(B,·Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.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.78.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.7[·...·truncated·by·diffoscope;·len:·3,·SHA:·7b1bd53949b752d143d871408483b5382371b5bc48d195d0c040ec93cfa2748b·...·]/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:·74b709f2c818a4eda5d85ea863eb2d8af72c87564dbab2746e67feafb0cbb9a3·...·]/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.78.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:·d66ed7e195a53e9945339ef1976aed455dcf80228d8e5b7b0c69a64c3983fea1·...·]/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.78.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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(B,·Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/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:·f8bdf1e28866c7668477ab391452c7cfa7fd52cc69b633e782a157931421b39b·...·]/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.78.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:·c264047794019a6dcf05728ba6a6ee1f8f07c7209958b3366ba94546b527ecdc·...·]/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.78.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:·8831,·SHA:·36b7b518d634e4c7195138f181e6a444b0b502e4c1daf7964e763e25b1f70459·...·]/core/primitive.usize.html">usize</a>&gt;(21 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·10154,·SHA:·c0d67356cb154008ea1338f0cd17c04d67d3b801b5c2a4c528d86e2a3543901f·...·]/core/primitive.usize.html">usize</a>&gt;(
22 ····&amp;mut·self22 ····&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.78.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.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title=[·...·truncated·by·diffoscope;·len:·381,·SHA:·88c48923c9b7ea5cc47c1087c60e09656e81d4671c58071ba2bef826335388bc·...·]/core/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:·35097ac20cb94a94d329a7511e21173c3e63fd8ce0a6d69b63b12136ae10fe6d·...·]/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.78.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></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:·3b082a2bc331439bfa16e12f26774fc7db23f44625156e2161c751eb349fb5c0·...·]/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.78.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:·5667b9b6c9778ff3b9d23ed0a110e7ab9d3fccc786fdcaca8c17edf996236439·...·]/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.78.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:·e83c903581753673e083ce8dd809879a2fc81ab3050eb6db267d7fa26b15e035·...·]/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.78.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:·1c6bb9803ee8832ebd4c28a08a952178165595b6870cf35d3c89454b9da828b2·...·]/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.78.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.78.0/core/iter/traits/it[·...·truncated·by·diffoscope;·len:·1329,·SHA:·d9299c8edc606ed82f24d61ce441bec451141d684c2a9a75074f5b19c57f196c·...·]/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.78.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:·c1b5e692e89c9c809075ee8ee72fb15a9ec46c075b08450e1f707d672a224750·...·]/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.78.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:·98627729f77dcf1c9d258f343354ba600b7134c6b3929080f231e8de7155b70b·...·]/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.78.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.78.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.78.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:·d6282409add0999f2130eb6bbe6d0473ce96bf2544799e8bc22156f3c2d2e0dd·...·]/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.78.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:·7301b6beba7b6885849be90a625df68ef739a5374af456c51fe2e81d91a25363·...·]/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.78.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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::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:·fb4c9589a16c7b6d697c109d1193d2f1e763e5dd967101c2fd92b32416972229·...·]/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.78.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:·98f6effefa44d759c249143d83623f0055d937382bfc398b7e1f5e92cd413657·...·]/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.78.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:·7abbad666ec88a1053b8aca2a481d629a3ef3596eddb570c381205fa2d859a52·...·]/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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·916,·SHA:·30d0b2a76513c5a880e9aee43e92b18805845cfcfe5783f62dc090167a439e63·...·]/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.78.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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·140,·SHA:·752f473b57e7444ebfddf5ea7fd40a332e83ec55524a6c31b5ee0f82a5dea819·...·]/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:·7da07154834a15b8ae55b4fd41479da070ccbd27e071909f81698570c306a081·...·]/core/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.78.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:·76aa2ad154f88085ee3f8a22721a7e6812680bac785d19059532407f50da1801·...·]/core/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.78.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:·c89169e5bf1c4724c7b411e568b6dad6475896f2606f557b3d708359ef71f5cc·...·]/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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·1052,·SHA:·110b47c7083083d565fcfc89337fddc8e5c87e81b2f720f3f7b0ded55e8500fb·...·]/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.78.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:·53634008856676c70c32b501f7ec498c1f86d123cc9b5b898256a69895ff31fc·...·]/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.78.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:·8464264e074dde5d84f0414ab3b5b2d8da83f3c9e3ca04c45458241580a8c80d·...·]/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.78.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.78.0/core/iter/adapte[·...·truncated·by·diffoscope;·len:·175,·SHA:·16fe7225bf05b478e2828b347c3d23ded9a22f89d8887a2c65d9f7b3faf1b0e7·...·]/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:·77dd41e041d66c618d306e900a9159cf1b00478b8f37e5692be62119a1d4fcda·...·]/core/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.78.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:·00ccbb673c11ed48d8c6aa2a3f8984fb298202e7bccfa42f1ac21290fcc0fb06·...·]/core/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.78.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:·c18326af66652e52fa627bfd0312af7fa2ad0ddc162b12a46e61047a031b0264·...·]/core/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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·1234,·SHA:·3b805567411cdcebed740f9e8d400dbe7fb487504f40e284544a140155090fdf·...·]/core/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.78.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:·39eeddf219b211245393e51a591d5064c740fa9be49d88883d8a6474679741ad·...·]/core/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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·1058,·SHA:·b390dbdda8d7e93604b5ecd906a93efd03fe19bdaf41cf12893fd361bf974307·...·]/core/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.78.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:·9369fa85b74ff841f7401949cadba6dfbbbeead2a99568f20dcfd5aab20d61ab·...·]/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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·1163,·SHA:·5772149166d344bf8fa5ebbd9db8693a8f2e5f031c50338e8f1523ef72f814d6·...·]/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:·a25e81a74cc82c1837477e2b0cea682fff9f43550640901b8010ac501ca69e3d·...·]/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.78.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:·6216516fe581c401abda3c95818192e8f030e2008c9bbdbaafebba16f33ea9bd·...·]/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.78.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:·de8f1023275132502c1569b0ef9a557dc98eaf60aae97cdb916e52f9f55100aa·...·]/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.78.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:·485843399c56e24bdf020ff0610d0ce1f62fbac5530d9880a1a7417105e3d70f·...·]/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.78.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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(<a·class="primitive"·href="https://doc.rust-lang.org/1.78.0/core/primitive.reference.html">&amp;mut·St</a>,·Self::<a·class="associatedty[·...·truncated·by·diffoscope;·len:·449,·SHA:·f12c268a8a8111b9e7126ad78bf5523a63733caa63d187c4fe792309ea41acdf·...·]/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:·8b31595e3cee3022819032aac82e3df712188a2a6dcc20da6939262e5e528591·...·]/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.78.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.78.0/core/iter/trai[·...·truncated·by·diffoscope;·len:·690,·SHA:·371190e5c1bf9b7dde6e84447965a69946212b977b9eb6d89048fbe34c5dda1c·...·]/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.78.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.78.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:·9b6a337a3ad68c2a987b52450c153f87a04a8ed9e83603d26077fe6e70d61edf·...·]/core/iter/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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·976,·SHA:·2a9182f6fe88e0b8a9b1ae1f46cace940cc0b8736033c354c0f0ccbf1c196e7a·...·]/core/iter/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.78.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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;[Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtyp[·...·truncated·by·diffoscope;·len:·135,·SHA:·0b06a6094d42ccbc8bce5b01c4383961fe7f1967f05e4c9f1ff33e71e425fb26·...·]/core/primitive.array.html">N</a>])·-&gt;·R,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iter_map_windows</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/87155">#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.78.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:·238f6b49b3e28d725c57040edaa60bfbb34f140155e6af1d30eab52da1c7274f·...·]/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.78.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:·0d33056cee8a4f9b70b573c0adecc2f3599a2f8d9fa9f2c2044e9118ab134f73·...·]/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:·cfd3edf89fe5aca24b994f83b0d7da765620394e35140e694d98233d4d92481b·...·]/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.78.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.78.0/core/op[·...·truncated·by·diffoscope;·len:·841,·SHA:·9cba1b175fb3726d7f1f01da9be7c1a56568a68e4ce7915a468b730902daf8d3·...·]/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.78.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:·772,·SHA:·31d2052382378512fa905c6d5297d384eac7b7f126141ce561719c0e27cc9d39·...·]/core/primitive.reference.html">&amp;mut·Self</a><div·class="where">where70 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·934,·SHA:·ea20d2e0fe9388580ea08100baa9120b5e9b6cb48f43fc846f15db8b9649e7f6·...·]/core/primitive.reference.html">&amp;mut·Self</a><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:·98760b16b1ed91f9558e6e2637724a4608316181d5f6f4d236e896a83eca9af9·...·]/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.78.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.78.0/core/it[·...·truncated·by·diffoscope;·len:·523,·SHA:·97064c705f6f4bdf74469c54fabcf580d21893127d1b4cd9a9c1018a717ef153·...·]/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.78.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.78.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:·e5d524e874326d0b9b733f5ee809c6595cde869afab0cc3d4ba8454093f420da·...·]/core/primitive.reference.html">&amp;mut·E</a><div·class="where">where73 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.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.78.0/core/iter/tr[·...·truncated·by·diffoscope;·len:·728,·SHA:·01937c2dc314c259495665570ae249c94b4a5b0719718f5f1188e6fc64ecf487·...·]/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.78.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.78.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:·b0297783e056393a542c4058b42c18523a86c961c1b6ce3bc94342c1a2c10c58·...·]/core/primitive.tuple.html">(B,·B)</a><div·class="where">where75 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></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:·00bd47017b1bdd1bbe2c3fc932d955a8aa2f7f5eff8c00e3001ae28a982a5883·...·]/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.78.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.78.0/core/default/trait.Default.html"·title="trait·core::default::Default">Default</a>·+·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/collect/trait.Extend.html"·title="trait·core::iter::traits::collec[·...·truncated·by·diffoscope;·len:·95,·SHA:·8b3be1d0042cae0550f865faf5849221240bdf04eb1b2107605b72d48c3ad29c·...·]/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:·5a1bcc1ddfc5fccf50d61bf2b8879dae247aa12c0b23ba2f437fd2a345cabac7·...·]/core/primitive.usize.html">usize</a><div·class="where">where78 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·995,·SHA:·bec3765fdab56713186e2454cd84738b5b28e3280a2f3d5a25cefdbc3089b520·...·]/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.78.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>·+·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/double_ended/trait.DoubleEndedIterator.html"·title="trait·core::iter::trai[·...·truncated·by·diffoscope;·len:·132,·SHA:·e5b2cf5f56946ede1e190ed09879c5821e2de04cf8e5d145142eeb40c6340982·...·]/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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(<a·class="primitive"·href="https://doc.rust-lang.org/1.78.0/core/primitive.reference.html">&amp;T</a>)·-&gt;·<a·class="primitive"·href="[·...·truncated·by·diffoscope;·len:·32,·SHA:·63d052a8ced32bf927ffadd7e884c08caf4970e85dfdf6be0e568d49b174da96·...·]/core/primitive.bool.html">bool</a>,</div></h4></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:·97056c44eac6a0f986fb2c8edec37302cc06edf44a6c6f7153a5d8623d8d6c0d·...·]/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.78.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:·0c224636c18baa273f69de21f90083317f2ea0b7367a3f0d0f1c0ace55a36f79·...·]/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.78.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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·135,·SHA:·51ff5f5c7ebd8440623ea71b125c5a5837e809e308fe1a13fbe19cddb941dbd9·...·]/core/primitive.bool.html">bool</a>,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iter_is_partitioned</code>&nbsp;<a·href="https://github.com/rust-lang/rust/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:·6f406a351b93047f56fa70265a6bf28ec6874f75cd6cc5a39d51c7af462f2992·...·]/core/iter/traits/iterator/trait.Iterator.html#method.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.78.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:·2c74873f4e5ba70004a1c7edd1cc3f9e2d91271295dd1591e2d26848df4c02ba·...·]/core/iter/traits/iterator/trait.Iterator.html#method.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.78.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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(B,·Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.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.78.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:·eecdce021399d206eb3ef5af12ee7663b4eb0dca55b0f411c7fa66f605b6b2e2·...·]/core/iter/traits/iterator/trait.Iterator.html#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.78.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:·52912e82c4b0a760d06f77eb4ee3a59ba70dd76cb532954900c73ae94c652674·...·]/core/iter/traits/iterator/trait.Iterator.html#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.78.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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.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.78.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.78.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:·ffdacd6b524bc823efebbf23dc0f77317a07fe9c8b691f2ea18db7aa0c08b146·...·]/core/iter/traits/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.78.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:·1d6c4809cea8748e901d3f94777f450d430f3161f6ac05ed1c178d9327f966a3·...·]/core/iter/traits/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.78.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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(B,·Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::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:·dbe3a08fe63abd47570741e71208c31aaf51152feac5917db07665a1f56bb3e3·...·]/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.78.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:·b60215068a6d9721be05f81098c51167d7138c4042f140cad42f77c4df43f597·...·]/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.78.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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·352,·SHA:·e7c3c296abe2c0a183967153e4ae7fd50bafa2ae7088e3e78b3b48fee253adc6·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::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:·a9dce8bb557b5a11426bf2ffcbd5eea7c6c870833e3ee5bb072dcaaa11687b0c·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_reduce"·class="fn">try_reduce</a>&lt;F,·R&gt;(100 operation.·<a·href="https://doc.rust-lang.org/1.78.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:·7a18fdd041b1a001b4a8feb289ee127fd9240232239269eb35dc3b8f74783ec9·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_reduce"·class="fn">try_reduce</a>&lt;F,·R&gt;(
101 ····&amp;mut·self,101 ····&amp;mut·self,
102 ····f:·F102 ····f:·F
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.78.0/core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&gt;::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/ops/try_trait/trait.Try.html#associatedtype.Residual"·title="type[·...·truncated·by·diffoscope;·len:·754,·SHA:·6fb4dfdb6b4da68921c1e7f8b75d99cf293d58318d684a840254ce9576957bea·...·]/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.78.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:·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:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·140,·SHA:·c27972e6fa3464c9476eaa185e8657edb6bb294f148403f3d079285294a9f909·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·R,
106 ····R:·<a·class="trait"·href="../../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;,106 ····R:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.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.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;,
107 ····&lt;R·as·<a·class="trait"·href="../../core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&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·the107 ····&lt;R·as·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&gt;::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/ops/try_trait/trait.Try.html#associatedtype.Residual"·title="type[·...·truncated·by·diffoscope;·len:·412,·SHA:·22b8cbb007e5cce82b9d13a65bfa56aa8d83c32541fac25f4d9b3857b0540908·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;&gt;,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iterator_try_reduce</code>&nbsp;<a·href="https://github.com/rust-lang/rust/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
108 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:·65b80c848af6e465c8c5aef4ec8d3faaa399d30c8427c9507fda7b3bd1d3ea93·...·]/core/primitive.bool.html">bool</a><div·class="where">where108 closure·returns·a·failure,·the·failure·is·propagated·back·to·the·caller·immediately.·<a·href="https://doc.rust-lang.org/1.78.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:·bc0d658d56e348823de15386e1cd4ab49109f3a7a055a4573a19391b47071193·...·]/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.78.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:·829,·SHA:·95a840b532d3d621bde4032d63854eb0a481248e2b4bbb3ef058dbffb4dae4fa·...·]/core/primitive.bool.html">bool</a><div·class="where">where110 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·1018,·SHA:·e61cd6bdd36729cc38e57fcaea2ccb91a23a5acbda3c8986071f19bf1ecfc52a·...·]/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.78.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:·956,·SHA:·f828c62edd4fe85e217286f359b56c116e14ed18bb292ba1cc13d3ed7146909e·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;<div·class="where">where112 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·1172,·SHA:·e64ab74d116d286191ad43d9d9e10411fc011c23724aa806e9a8f9b0be0757e3·...·]/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.78.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;Self::<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:·21d7086b3ce0092e3f7a6a41174339bbd8724e7d186158db4db3385a73d94e8e·...·]/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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·1051,·SHA:·ecc0b8fccd861464760f9ae047ff6ab98c91a1db010cb5fa59a8c2ab883db7c4·...·]/core/option/enum.Option.html"·title="enum·core::option::Option">Option</a>&lt;B&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.78.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:·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·returns116 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·130,·SHA:·130a13019dc175d02304b4f550157e2f13ac15c2f25a979c74161d10b146ab89·...·]/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.try_find"·class="method·trait-impl"><a·class="src·rightside"·href="../../src/core/iter[·...·truncated·by·diffoscope;·len:·134,·SHA:·ac4da3337aac1ec10038e246be9cb719eeb5af1acc709f5a6a25b91900c56f53·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_find"·class="fn">try_find</a>&lt;F,·R&gt;(117 the·first·non-none·result.·<a·href="https://doc.rust-lang.org/1.78.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:·8ced1b10e78750774c5c8ed995ed83dcd13983aa75d329acf8069da106ab9f4a·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_find"·class="fn">try_find</a>&lt;F,·R&gt;(
118 ····&amp;mut·self,118 ····&amp;mut·self,
119 ····f:·F119 ····f:·F
120 )·-&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">where120 )·-&gt;·&lt;&lt;R·as·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&gt;::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/ops/try_trait/trait.Try.html#associatedtype.Residual"·title="type[·...·truncated·by·diffoscope;·len:·626,·SHA:·95f9831257b68862cbcbf54f0ad2ff4e597a4c9f763112d1da8a0897dadcf872·...·]/core/ops/try_trait/trait.Residual.html#associatedtype.TryType"·title="type·core::ops::try_trait::Residual::TryType">TryType</a><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.78.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;·R,122 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·R,
123 ····R:·<a·class="trait"·href="../../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.78.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.78.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.78.0/core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&gt;::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/ops/try_trait/trait.Try.html#associatedtype.Residual"·title="type[·...·truncated·by·diffoscope;·len:·412,·SHA:·22b8cbb007e5cce82b9d13a65bfa56aa8d83c32541fac25f4d9b3857b0540908·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;&gt;,</div></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.78.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:·fa9d94b216f6e4ce6035b4762e3bf17cb86a0272db0a55a056f05c68bcaeb0da·...·]/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.78.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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·1189,·SHA:·5d7c1922225f55c116c958103921a86cb5416f658d19ceb4428fb21528622af5·...·]/core/primitive.usize.html">usize</a>&gt;<div·class="where">where
Max diff block lines reached; 85309/317474 bytes (26.87%) of diff not shown.
316 KB
./usr/share/doc/rust-web-doc/html/alloc/slice/struct.RChunksExact.html
    
Offset 1, 239 lines modifiedOffset 1, 239 lines modified
1 <!DOCTYPE·html><html·lang="en"><head><meta·charset="utf-8"><meta·name="viewport"·content="width=device-width,·initial-scale=1.0"><meta·name="generator"·content="rustdoc"><meta·name="description"·content="An·iterator·over·a·slice·in·(non-overlapping)·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.write(`<link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/SourceSerif4-Regular-46f98efaafac5295.ttf.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/FiraSans-Regular-018c141bf0843ffd.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/FiraSans-Medium-8f9a781e4970d388.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/SourceCodePro-Regular-562dcc5011b6de7d.ttf.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/SourceCodePro-Semibold-d899c5a5c4aeb14a.ttf.woff2">`)</script><link·rel="stylesheet"·href="../../static.files/normalize-76eba96aa4d2e634.css"><link·rel="stylesheet"·href="../../static.files/rustdoc-35f9e32502181f1e.css"><meta·name="rustdoc-vars"·data-root-path="../../"·data-static-root-path="../../static.files/"·data-current-crate="alloc"·data-themes=""·data-resource-suffix="1.78.0"·data-rustdoc-version="1.78.0"·data-channel="1.78.0"·data-search-js="search-42d8da7a6b9792c2.js"·data-settings-js="settings-4313503d2e1961c2.js"·><script·src="../../static.files/storage-4c98445ec4002617.js"></script><script·defer·src="sidebar-items1.78.0.js"></script><script·defer·src="../../static.files/main-12cf3b4f4f9dc36d.js"></script><noscript><link·rel="stylesheet"·href="../../static.files/noscript-04d5337699b92874.css"></noscript><link·rel="alternate·icon"·type="image/png"·href="../../static.files/favicon-16x16-8b506e7a72182f1c.png"><link·rel="alternate·icon"·type="image/png"·href="../../static.files/favicon-32x32-422f7d1d52889060.png"><link·rel="icon"·type="image/svg+xml"·href="../../static.files/favicon-2c020d218678b618.svg"></head><body·class="rustdoc·struct"><!--[if·lte·IE·11]><div·class="warning">This·old·browser·is·unsupported·and·will·most·likely·display·funky·things.</div><![endif]--><nav·class="mobile-topbar"><button·class="sidebar-menu-toggle"·title="show·sidebar"></button><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-151179464ae7ed46.svg"·alt=""></a></nav><nav·class="sidebar"><div·class="sidebar-crate"><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-151179464ae7ed46.svg"·alt="logo"></a><h2><a·href="../../alloc/index.html">alloc</a><span·class="version">1.78.0</span></h2></div><h2·class="location"><a·href="#">RChunksExact</a></h2><div·class="sidebar-elems"><section><h3><a·href="#implementations">Methods</a></h3><ul·class="block·method"><li><a·href="#method.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">Clone</a></li><li><a·href="#impl-Debug-for-RChunksExact%3C'a,+T%3E">Debug</a></li><li><a·href="#impl-DoubleEndedIterator-for-RChunksExact%3C'a,+T%3E">DoubleEndedIterator</a></li><li><a·href="#impl-ExactSizeIterator-for-RChunksExact%3C'a,+T%3E">ExactSizeIterator</a></li><li><a·href="#impl-FusedIterator-for-RChunksExact%3C'_,+T%3E">FusedIterator</a></li><li><a·href="#impl-Iterator-for-RChunksExact%3C'a,+T%3E">Iterator</a></li><li><a·href="#impl-TrustedLen-for-RChunksExact%3C'_,+T%3E">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">Freeze</a></li><li><a·href="#impl-RefUnwindSafe-for-RChunksExact%3C'a,+T%3E">RefUnwindSafe</a></li><li><a·href="#impl-Send-for-RChunksExact%3C'a,+T%3E">Send</a></li><li><a·href="#impl-Sync-for-RChunksExact%3C'a,+T%3E">Sync</a></li><li><a·href="#impl-Unpin-for-RChunksExact%3C'a,+T%3E">Unpin</a></li><li><a·href="#impl-UnwindSafe-for-RChunksExact%3C'a,+T%3E">UnwindSafe</a></li></ul><h3><a·href="#blanket-implementations">Blanket·Implementations</a></h3><ul·class="block·blanket-implementation"><li><a·href="#impl-Any-for-T">Any</a></li><li><a·href="#impl-Borrow%3CT%3E-for-T">Borrow&lt;T&gt;</a></li><li><a·href="#impl-BorrowMut%3CT%3E-for-T">BorrowMut&lt;T&gt;</a></li><li><a·href="#impl-From%3CT%3E-for-T">From&lt;T&gt;</a></li><li><a·href="#impl-Into%3CU%3E-for-T">Into&lt;U&gt;</a></li><li><a·href="#impl-IntoIterator-for-I">IntoIterator</a></li><li><a·href="#impl-ToOwned-for-T">ToOwned</a></li><li><a·href="#impl-TryFrom%3CU%3E-for-T">TryFrom&lt;U&gt;</a></li><li><a·href="#impl-TryInto%3CU%3E-for-T">TryInto&lt;U&gt;</a></li></ul></section><h2><a·href="index.html">In·alloc::slice</a></h2></div></nav><div·class="sidebar-resizer"></div>1 <!DOCTYPE·html><html·lang="en"><head><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.write(`<link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/SourceSerif4-Regular-46f98efaafac5295.ttf.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/FiraSans-Regular-018c141bf0843ffd.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/FiraSans-Medium-8f9a781e4970d388.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/SourceCodePro-Regular-562dcc5011b6de7d.ttf.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/SourceCodePro-Semibold-d899c5a5c4aeb14a.ttf.woff2">`)</script><link·rel="stylesheet"·href="../../static.files/normalize-76eba96aa4d2e634.css"><link·rel="stylesheet"·href="../../static.files/rustdoc-35f9e32502181f1e.css"><meta·name="rustdoc-vars"·data-root-path="../../"·data-static-root-path="../../static.files/"·data-current-crate="alloc"·data-themes=""·data-resource-suffix="1.78.0"·data-rustdoc-version="1.78.0"·data-channel="1.78.0"·data-search-js="search-42d8da7a6b9792c2.js"·data-settings-js="settings-4313503d2e1961c2.js"·><script·src="../../static.files/storage-4c98445ec4002617.js"></script><script·defer·src="sidebar-items1.78.0.js"></script><script·defer·src="../../static.files/main-12cf3b4f4f9dc36d.js"></script><noscript><link·rel="stylesheet"·href="../../static.files/noscript-04d5337699b92874.css"></noscript><link·rel="alternate·icon"·type="image/png"·href="../../static.files/favicon-16x16-8b506e7a72182f1c.png"><link·rel="alternate·icon"·type="image/png"·href="../../static.files/favicon-32x32-422f7d1d52889060.png"><link·rel="icon"·type="image/svg+xml"·href="../../static.files/favicon-2c020d218678b618.svg"></head><body·class="rustdoc·struct"><!--[if·lte·IE·11]><div·class="warning">This·old·browser·is·unsupported·and·will·most·likely·display·funky·things.</div><![endif]--><nav·class="mobile-topbar"><button·class="sidebar-menu-toggle"·title="show·sidebar"></button><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-151179464ae7ed46.svg"·alt=""></a></nav><nav·class="sidebar"><div·class="sidebar-crate"><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-151179464ae7ed46.svg"·alt="logo"></a><h2><a·href="../../alloc/index.html">alloc</a><span·class="version">1.78.0</span></h2></div><h2·class="location"><a·href="#">RChunksExact</a></h2><div·class="sidebar-elems"><section><h3><a·href="#implementations">Methods</a></h3><ul·class="block·method"><li><a·href="#method.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">Clone</a></li><li><a·href="#impl-Debug-for-RChunksExact%3C'a,+T%3E">Debug</a></li><li><a·href="#impl-DoubleEndedIterator-for-RChunksExact%3C'a,+T%3E">DoubleEndedIterator</a></li><li><a·href="#impl-ExactSizeIterator-for-RChunksExact%3C'a,+T%3E">ExactSizeIterator</a></li><li><a·href="#impl-FusedIterator-for-RChunksExact%3C'_,+T%3E">FusedIterator</a></li><li><a·href="#impl-Iterator-for-RChunksExact%3C'a,+T%3E">Iterator</a></li><li><a·href="#impl-TrustedLen-for-RChunksExact%3C'_,+T%3E">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">Freeze</a></li><li><a·href="#impl-RefUnwindSafe-for-RChunksExact%3C'a,+T%3E">RefUnwindSafe</a></li><li><a·href="#impl-Send-for-RChunksExact%3C'a,+T%3E">Send</a></li><li><a·href="#impl-Sync-for-RChunksExact%3C'a,+T%3E">Sync</a></li><li><a·href="#impl-Unpin-for-RChunksExact%3C'a,+T%3E">Unpin</a></li><li><a·href="#impl-UnwindSafe-for-RChunksExact%3C'a,+T%3E">UnwindSafe</a></li></ul><h3><a·href="#blanket-implementations">Blanket·Implementations</a></h3><ul·class="block·blanket-implementation"><li><a·href="#impl-Any-for-T">Any</a></li><li><a·href="#impl-Borrow%3CT%3E-for-T">Borrow&lt;T&gt;</a></li><li><a·href="#impl-BorrowMut%3CT%3E-for-T">BorrowMut&lt;T&gt;</a></li><li><a·href="#impl-From%3CT%3E-for-T">From&lt;T&gt;</a></li><li><a·href="#impl-Into%3CU%3E-for-T">Into&lt;U&gt;</a></li><li><a·href="#impl-IntoIterator-for-I">IntoIterator</a></li><li><a·href="#impl-ToOwned-for-T">ToOwned</a></li><li><a·href="#impl-TryFrom%3CU%3E-for-T">TryFrom&lt;U&gt;</a></li><li><a·href="#impl-TryInto%3CU%3E-for-T">TryInto&lt;U&gt;</a></li></ul></section><h2><a·href="index.html">In·alloc::slice</a></h2></div></nav><div·class="sidebar-resizer"></div>
2 ····<main><div·class="width-limiter"><nav·class="sub"><form·class="search-form"><span></span><div·id="sidebar-button"·tabindex="-1"><a·href="../../alloc/all.html"·title="show·sidebar"></a></div><input·class="search-input"·name="search"·aria-label="Run·search·in·the·documentation"·autocomplete="off"·spellcheck="false"·placeholder="Click·or·press·‘S’·to·search,·‘?’·for·more·options…"·type="search"><div·id="help-button"·tabindex="-1"><a·href="../../help.html"·title="help">?</a></div><div·id="settings-menu"·tabindex="-1"><a·href="../../settings.html"·title="settings"><img·width="22"·height="22"·alt="Change·settings"·src="../../static.files/wheel-7b819b6101059cd0.svg"></a></div></form></nav><section·id="main-content"·class="content"><div·class="main-heading"><h1>Struct·<a·href="../index.html">alloc</a>::<wbr><a·href="index.html">slice</a>::<wbr><a·class="struct"·href="#">RChunksExact</a><button·id="copy-path"·title="Copy·item·path·to·clipboard"><img·src="../../static.files/clipboard-7571035ce49a181d.svg"·width="19"·height="18"·alt="Copy·item·path"></button></h1><span·class="out-of-band"><span·class="since"·title="Stable·since·Rust·version·1.31.0">1.31.0</span>···<a·class="src"·href="../../src/core/slice/iter.rs.html#2901">source</a>···<button·id="toggle-all-docs"·title="collapse·all·docs">[<span>&#x2212;</span>]</button></span></div><pre·class="rust·item-decl"><code>pub·struct·RChunksExact&lt;'a,·T&gt;<div·class="where">where2 ····<main><div·class="width-limiter"><nav·class="sub"><form·class="search-form"><span></span><div·id="sidebar-button"·tabindex="-1"><a·href="../../alloc/all.html"·title="show·sidebar"></a></div><input·class="search-input"·name="search"·aria-label="Run·search·in·the·documentation"·autocomplete="off"·spellcheck="false"·placeholder="Click·or·press·‘S’·to·search,·‘?’·for·more·options…"·type="search"><div·id="help-button"·tabindex="-1"><a·href="../../help.html"·title="help">?</a></div><div·id="settings-menu"·tabindex="-1"><a·href="../../settings.html"·title="settings"><img·width="22"·height="22"·alt="Change·settings"·src="../../static.files/wheel-7b819b6101059cd0.svg"></a></div></form></nav><section·id="main-content"·class="content"><div·class="main-heading"><h1>Struct·<a·href="../index.html">alloc</a>::<wbr><a·href="index.html">slice</a>::<wbr><a·class="struct"·href="#">RChunksExact</a><button·id="copy-path"·title="Copy·item·path·to·clipboard"><img·src="../../static.files/clipboard-7571035ce49a181d.svg"·width="19"·height="18"·alt="Copy·item·path"></button></h1><span·class="out-of-band"><span·class="since"·title="Stable·since·Rust·version·1.31.0">1.31.0</span>···<a·class="src"·href="https://doc.rust-lang.org/1.78.0/src/core/slice/iter.rs.html#2901">source</a>···<button·id="toggle-all-docs"·title="collapse·all·docs">[<span>&#x2212;</span>]</button></span></div><pre·class="rust·item-decl"><code>pub·struct·RChunksExact&lt;'a,·T&gt;<div·class="where">where
3 ····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·a3 ····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
4 time),·starting·at·the·end·of·the·slice.</p>4 time),·starting·at·the·end·of·the·slice.</p>
5 <p>When·the·slice·len·is·not·evenly·divided·by·the·chunk·size,·the·last5 <p>When·the·slice·len·is·not·evenly·divided·by·the·chunk·size,·the·last
6 up·to·<code>chunk_size-1</code>·elements·will·be·omitted·but·can·be·retrieved·from6 up·to·<code>chunk_size-1</code>·elements·will·be·omitted·but·can·be·retrieved·from
7 the·<a·href="struct.RChunksExact.html#method.remainder"·title="method·alloc::slice::RChunksExact::remainder"><code>remainder</code></a>·function·from·the·iterator.</p>7 the·<a·href="struct.RChunksExact.html#method.remainder"·title="method·alloc::slice::RChunksExact::remainder"><code>remainder</code></a>·function·from·the·iterator.</p>
8 <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>8 <p>This·struct·is·created·by·the·<a·href="https://doc.rust-lang.org/1.78.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.78.0/core/primitive.slice.html"·title="primitive·slice">slices</a>.</p>
9 <h2·id="example"><a·class="doc-anchor"·href="#example">§</a>Example</h2>9 <h2·id="example"><a·class="doc-anchor"·href="#example">§</a>Example</h2>
10 <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 <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>];
11 <span·class="kw">let·</span>iter·=·slice.rchunks_exact(<span·class="number">2</span>);</code></pre><a·class="test-arrow"·target="_blank"·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+iter+=+slice.rchunks_exact(2);%0A%7D&amp;edition=2021">Run</a></div>11 <span·class="kw">let·</span>iter·=·slice.rchunks_exact(<span·class="number">2</span>);</code></pre><a·class="test-arrow"·target="_blank"·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+iter+=+slice.rchunks_exact(2);%0A%7D&amp;edition=2021">Run</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-RChunksExact%3C'a,+T%3E"·class="impl"><a·class="src·rightside"·href="../../src/core/slice/iter.rs.html#2907">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:·386,·SHA:·749e0523863c7d337bce082f094ac84125bf3e2a0e5b6312dd3f793057609008·...·]/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·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-RChunksExact%3C'a,+T%3E"·class="impl"><a·class="src·rightside"·href="https://doc.rust-lang.org/1.78.0/src/core/slice/iter.rs.html#2907">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:·467,·SHA:·50ec4f6d1062c4073c56cbb139a286e0288060ea6bbc1c6fba64b9152c84a67f·...·]/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
13 returned·by·the·iterator.·The·returned·slice·has·at·most·<code>chunk_size-1</code>13 returned·by·the·iterator.·The·returned·slice·has·at·most·<code>chunk_size-1</code>
14 elements.</p>14 elements.</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="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>];16 <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>];
17 <span·class="kw">let·</span><span·class="kw-2">mut·</span>iter·=·slice.rchunks_exact(<span·class="number">2</span>);17 <span·class="kw">let·</span><span·class="kw-2">mut·</span>iter·=·slice.rchunks_exact(<span·class="number">2</span>);
18 <span·class="macro">assert_eq!</span>(iter.remainder(),·<span·class="kw-2">&amp;</span>[<span·class="string">'l'</span>][..]);18 <span·class="macro">assert_eq!</span>(iter.remainder(),·<span·class="kw-2">&amp;</span>[<span·class="string">'l'</span>][..]);
19 <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>][..]));19 <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>][..]));
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">'o'</span>,·<span·class="string">'r'</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">'o'</span>,·<span·class="string">'r'</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">None</span>);23 <span·class="macro">assert_eq!</span>(iter.next(),·<span·class="prelude-val">None</span>);
24 <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"·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">Run</a></div>24 <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"·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">Run</a></div>
25 </div></details></div></details></div><h2·id="trait-implementations"·class="section-header">Trait·Implementations<a·href="#trait-implementations"·class="anchor">§</a></h2><div·id="trait-implementations-list"><details·class="toggle·implementors-toggle"·open><summary><section·id="impl-Clone-for-RChunksExact%3C'a,+T%3E"·class="impl"><a·class="src·rightside"·href="../../src/core/slice/iter.rs.html#2942">source</a><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::Clone">Clo[·...·truncated·by·diffoscope;·len:·1813,·SHA:·bfcc1f3bd994c5940f625a02ae5cbfc09ae85ce92fae65d3c59a2c058f6d51f1·...·]/src/core/slice/iter.rs.html#2898">source</a><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">where25 </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"><a·class="src·rightside"·href="https://doc.rust-lang.org/1.78.0/src/core/slice/iter.rs.html#2942">source</a><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.78.0/core/clone/[·...·truncated·by·diffoscope;·len:·2083,·SHA:·9d2f127f28456af0dc209782480a2990e4aedb2be2bbf88aea63f3cfe1a0ea5e·...·]/src/core/slice/iter.rs.html#2898">source</a><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
26 ····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#2898">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:·2331,·SHA:·1e5d589cdba344d78a6f9ea72dc10900bb49f6b82369b1777874e3c5fb26399a·...·]/core/iter/traits/double_ended/trait.DoubleEndedIterator.html#method.nth_back"·class="fn">nth_back</a>(26 ····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.78.0/src/core/slice/iter.rs.html#2898">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:·2655,·SHA:·0954e1348ecd7218d2915b863839859646ce083218cc44e28b1ca2f61da721c0·...·]/core/iter/traits/double_ended/trait.DoubleEndedIterator.html#method.nth_back"·class="fn">nth_back</a>(
27 ····&amp;mut·self,27 ····&amp;mut·self,
28 ····n:·<a·class="primitive"·href="../../core/primitive.usize.html">usize</a>28 ····n:·<a·class="primitive"·href="https://doc.rust-lang.org/1.78.0/core/primitive.usize.html">usize</a>
29 )·-&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:·ea8ac97472e15723a77579b751d1150fae5b1e8c47cc409bd18399626bba40b4·...·]/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 )·-&gt;·<a·class="enum"·href="https://doc.rust-lang.org/1.78.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:·c4344ebf53a7d80a17f09c5062a4a58c82e114e3f027e5b86fdf85e1c5f4b8ce·...·]/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.78.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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(B,·Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.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.78.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.7[·...·truncated·by·diffoscope;·len:·3,·SHA:·7b1bd53949b752d143d871408483b5382371b5bc48d195d0c040ec93cfa2748b·...·]/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:·74b709f2c818a4eda5d85ea863eb2d8af72c87564dbab2746e67feafb0cbb9a3·...·]/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.78.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:·d66ed7e195a53e9945339ef1976aed455dcf80228d8e5b7b0c69a64c3983fea1·...·]/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.78.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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(B,·Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/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:·f8bdf1e28866c7668477ab391452c7cfa7fd52cc69b633e782a157931421b39b·...·]/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.78.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:·c264047794019a6dcf05728ba6a6ee1f8f07c7209958b3366ba94546b527ecdc·...·]/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.78.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:·8904,·SHA:·d78536d17903250fa9364843935abb96594de6e25f5005a5bdeb9baf17f6a71b·...·]/core/primitive.usize.html">usize</a>&gt;(38 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·10227,·SHA:·c11dcf02086323420513902ba5f7e873c22f1cc7f006148c1c16cfbfd6452031·...·]/core/primitive.usize.html">usize</a>&gt;(
39 ····&amp;mut·self39 ····&amp;mut·self
40 )·-&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">where40 )·-&gt;·<a·class="enum"·href="https://doc.rust-lang.org/1.78.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.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title=[·...·truncated·by·diffoscope;·len:·381,·SHA:·88c48923c9b7ea5cc47c1087c60e09656e81d4671c58071ba2bef826335388bc·...·]/core/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
41 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></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:·35097ac20cb94a94d329a7511e21173c3e63fd8ce0a6d69b63b12136ae10fe6d·...·]/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.78.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></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:·3b082a2bc331439bfa16e12f26774fc7db23f44625156e2161c751eb349fb5c0·...·]/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.78.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:·5667b9b6c9778ff3b9d23ed0a110e7ab9d3fccc786fdcaca8c17edf996236439·...·]/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.78.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:·e83c903581753673e083ce8dd809879a2fc81ab3050eb6db267d7fa26b15e035·...·]/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.78.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:·1c6bb9803ee8832ebd4c28a08a952178165595b6870cf35d3c89454b9da828b2·...·]/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.78.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.78.0/core/iter/traits/it[·...·truncated·by·diffoscope;·len:·1329,·SHA:·d9299c8edc606ed82f24d61ce441bec451141d684c2a9a75074f5b19c57f196c·...·]/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.78.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:·c1b5e692e89c9c809075ee8ee72fb15a9ec46c075b08450e1f707d672a224750·...·]/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.78.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:·98627729f77dcf1c9d258f343354ba600b7134c6b3929080f231e8de7155b70b·...·]/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.78.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.78.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.78.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:·d6282409add0999f2130eb6bbe6d0473ce96bf2544799e8bc22156f3c2d2e0dd·...·]/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.78.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:·7301b6beba7b6885849be90a625df68ef739a5374af456c51fe2e81d91a25363·...·]/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.78.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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::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:·fb4c9589a16c7b6d697c109d1193d2f1e763e5dd967101c2fd92b32416972229·...·]/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.78.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:·98f6effefa44d759c249143d83623f0055d937382bfc398b7e1f5e92cd413657·...·]/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.78.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:·7abbad666ec88a1053b8aca2a481d629a3ef3596eddb570c381205fa2d859a52·...·]/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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·916,·SHA:·30d0b2a76513c5a880e9aee43e92b18805845cfcfe5783f62dc090167a439e63·...·]/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.78.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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·140,·SHA:·752f473b57e7444ebfddf5ea7fd40a332e83ec55524a6c31b5ee0f82a5dea819·...·]/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:·7da07154834a15b8ae55b4fd41479da070ccbd27e071909f81698570c306a081·...·]/core/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.78.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:·76aa2ad154f88085ee3f8a22721a7e6812680bac785d19059532407f50da1801·...·]/core/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.78.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:·c89169e5bf1c4724c7b411e568b6dad6475896f2606f557b3d708359ef71f5cc·...·]/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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·1052,·SHA:·110b47c7083083d565fcfc89337fddc8e5c87e81b2f720f3f7b0ded55e8500fb·...·]/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.78.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:·53634008856676c70c32b501f7ec498c1f86d123cc9b5b898256a69895ff31fc·...·]/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.78.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:·8464264e074dde5d84f0414ab3b5b2d8da83f3c9e3ca04c45458241580a8c80d·...·]/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.78.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.78.0/core/iter/adapte[·...·truncated·by·diffoscope;·len:·175,·SHA:·16fe7225bf05b478e2828b347c3d23ded9a22f89d8887a2c65d9f7b3faf1b0e7·...·]/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:·77dd41e041d66c618d306e900a9159cf1b00478b8f37e5692be62119a1d4fcda·...·]/core/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.78.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:·00ccbb673c11ed48d8c6aa2a3f8984fb298202e7bccfa42f1ac21290fcc0fb06·...·]/core/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.78.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:·c18326af66652e52fa627bfd0312af7fa2ad0ddc162b12a46e61047a031b0264·...·]/core/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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·1234,·SHA:·3b805567411cdcebed740f9e8d400dbe7fb487504f40e284544a140155090fdf·...·]/core/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.78.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:·39eeddf219b211245393e51a591d5064c740fa9be49d88883d8a6474679741ad·...·]/core/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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·1058,·SHA:·b390dbdda8d7e93604b5ecd906a93efd03fe19bdaf41cf12893fd361bf974307·...·]/core/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.78.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:·9369fa85b74ff841f7401949cadba6dfbbbeead2a99568f20dcfd5aab20d61ab·...·]/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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·1163,·SHA:·5772149166d344bf8fa5ebbd9db8693a8f2e5f031c50338e8f1523ef72f814d6·...·]/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:·a25e81a74cc82c1837477e2b0cea682fff9f43550640901b8010ac501ca69e3d·...·]/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.78.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:·6216516fe581c401abda3c95818192e8f030e2008c9bbdbaafebba16f33ea9bd·...·]/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.78.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:·de8f1023275132502c1569b0ef9a557dc98eaf60aae97cdb916e52f9f55100aa·...·]/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.78.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:·485843399c56e24bdf020ff0610d0ce1f62fbac5530d9880a1a7417105e3d70f·...·]/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.78.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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(<a·class="primitive"·href="https://doc.rust-lang.org/1.78.0/core/primitive.reference.html">&amp;mut·St</a>,·Self::<a·class="associatedty[·...·truncated·by·diffoscope;·len:·449,·SHA:·f12c268a8a8111b9e7126ad78bf5523a63733caa63d187c4fe792309ea41acdf·...·]/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:·8b31595e3cee3022819032aac82e3df712188a2a6dcc20da6939262e5e528591·...·]/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.78.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.78.0/core/iter/trai[·...·truncated·by·diffoscope;·len:·690,·SHA:·371190e5c1bf9b7dde6e84447965a69946212b977b9eb6d89048fbe34c5dda1c·...·]/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.78.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.78.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:·9b6a337a3ad68c2a987b52450c153f87a04a8ed9e83603d26077fe6e70d61edf·...·]/core/iter/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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·976,·SHA:·2a9182f6fe88e0b8a9b1ae1f46cace940cc0b8736033c354c0f0ccbf1c196e7a·...·]/core/iter/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.78.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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;[Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtyp[·...·truncated·by·diffoscope;·len:·135,·SHA:·0b06a6094d42ccbc8bce5b01c4383961fe7f1967f05e4c9f1ff33e71e425fb26·...·]/core/primitive.array.html">N</a>])·-&gt;·R,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iter_map_windows</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/87155">#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.78.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:·238f6b49b3e28d725c57040edaa60bfbb34f140155e6af1d30eab52da1c7274f·...·]/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.78.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:·0d33056cee8a4f9b70b573c0adecc2f3599a2f8d9fa9f2c2044e9118ab134f73·...·]/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:·cfd3edf89fe5aca24b994f83b0d7da765620394e35140e694d98233d4d92481b·...·]/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.78.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.78.0/core/op[·...·truncated·by·diffoscope;·len:·841,·SHA:·9cba1b175fb3726d7f1f01da9be7c1a56568a68e4ce7915a468b730902daf8d3·...·]/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.78.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:·772,·SHA:·31d2052382378512fa905c6d5297d384eac7b7f126141ce561719c0e27cc9d39·...·]/core/primitive.reference.html">&amp;mut·Self</a><div·class="where">where87 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·934,·SHA:·ea20d2e0fe9388580ea08100baa9120b5e9b6cb48f43fc846f15db8b9649e7f6·...·]/core/primitive.reference.html">&amp;mut·Self</a><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:·98760b16b1ed91f9558e6e2637724a4608316181d5f6f4d236e896a83eca9af9·...·]/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.78.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.78.0/core/it[·...·truncated·by·diffoscope;·len:·523,·SHA:·97064c705f6f4bdf74469c54fabcf580d21893127d1b4cd9a9c1018a717ef153·...·]/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.78.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.78.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:·e5d524e874326d0b9b733f5ee809c6595cde869afab0cc3d4ba8454093f420da·...·]/core/primitive.reference.html">&amp;mut·E</a><div·class="where">where90 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.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.78.0/core/iter/tr[·...·truncated·by·diffoscope;·len:·728,·SHA:·01937c2dc314c259495665570ae249c94b4a5b0719718f5f1188e6fc64ecf487·...·]/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.78.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.78.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:·b0297783e056393a542c4058b42c18523a86c961c1b6ce3bc94342c1a2c10c58·...·]/core/primitive.tuple.html">(B,·B)</a><div·class="where">where92 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></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:·00bd47017b1bdd1bbe2c3fc932d955a8aa2f7f5eff8c00e3001ae28a982a5883·...·]/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.78.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.78.0/core/default/trait.Default.html"·title="trait·core::default::Default">Default</a>·+·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/collect/trait.Extend.html"·title="trait·core::iter::traits::collec[·...·truncated·by·diffoscope;·len:·95,·SHA:·8b3be1d0042cae0550f865faf5849221240bdf04eb1b2107605b72d48c3ad29c·...·]/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:·806,·SHA:·5a1bcc1ddfc5fccf50d61bf2b8879dae247aa12c0b23ba2f437fd2a345cabac7·...·]/core/primitive.usize.html">usize</a><div·class="where">where95 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·995,·SHA:·bec3765fdab56713186e2454cd84738b5b28e3280a2f3d5a25cefdbc3089b520·...·]/core/primitive.usize.html">usize</a><div·class="where">where
96 ····T:·'a,96 ····T:·'a,
97 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>·+·<a·class="trait"·href="../../core/iter/traits/double_ended/trait.DoubleEndedIterator.html"·title="trait·core::iter::traits::double_ended::DoubleEndedIterator">DoubleEndedIter[·...·truncated·by·diffoscope;·len:·51,·SHA:·c9be73bbed9d11ecac2a179f480a640f51d6255f26712667ffdabc72c1fc7fb0·...·]/core/primitive.reference.html">&amp;'a·mut·T</a>&gt;,97 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>·+·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/double_ended/trait.DoubleEndedIterator.html"·title="trait·core::iter::trai[·...·truncated·by·diffoscope;·len:·132,·SHA:·e5b2cf5f56946ede1e190ed09879c5821e2de04cf8e5d145142eeb40c6340982·...·]/core/primitive.reference.html">&amp;'a·mut·T</a>&gt;,
98 ····P:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(<a·class="primitive"·href="../../core/primitive.reference.html">&amp;T</a>)·-&gt;·<a·class="primitive"·href="../../core/primitive.bool.html">bool</a>,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iter_partition_in_place</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/62543">#62543</a>)</span></div></span><div·class='docblock'>Reorders·the·elements·of·this·iterator·<em>in-place</em>·according·to·the·given·predicate,98 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(<a·class="primitive"·href="https://doc.rust-lang.org/1.78.0/core/primitive.reference.html">&amp;T</a>)·-&gt;·<a·class="primitive"·href="[·...·truncated·by·diffoscope;·len:·32,·SHA:·63d052a8ced32bf927ffadd7e884c08caf4970e85dfdf6be0e568d49b174da96·...·]/core/primitive.bool.html">bool</a>,</div></h4></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 such·that·all·those·that·return·<code>true</code>·precede·all·those·that·return·<code>false</code>.99 such·that·all·those·that·return·<code>true</code>·precede·all·those·that·return·<code>false</code>.
100 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:·97056c44eac6a0f986fb2c8edec37302cc06edf44a6c6f7153a5d8623d8d6c0d·...·]/core/primitive.bool.html">bool</a><div·class="where">where100 Returns·the·number·of·<code>true</code>·elements·found.·<a·href="https://doc.rust-lang.org/1.78.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:·0c224636c18baa273f69de21f90083317f2ea0b7367a3f0d0f1c0ace55a36f79·...·]/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.78.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:·54,·SHA:·d5ac304cc26edf57442227b641dd21c427d0f9cb322b79986f5b15fc49f867b0·...·]/core/primitive.bool.html">bool</a>,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iter_is_partitioned</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/62544">#62544</a>)</span></div></span><div·class='docblock'>Checks·if·the·elements·of·this·iterator·are·partitioned·according·to·the·given·predicate,102 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·135,·SHA:·51ff5f5c7ebd8440623ea71b125c5a5837e809e308fe1a13fbe19cddb941dbd9·...·]/core/primitive.bool.html">bool</a>,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iter_is_partitioned</code>&nbsp;<a·href="https://github.com/rust-lang/rust/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 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:·6f406a351b93047f56fa70265a6bf28ec6874f75cd6cc5a39d51c7af462f2992·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_fold"·class="fn">try_fold</a>&lt;B,·F,·R&gt;(&amp;mut·self,·init:·B,·f:·F)·-&gt;·R<div·class="where">where103 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.78.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:·2c74873f4e5ba70004a1c7edd1cc3f9e2d91271295dd1591e2d26848df4c02ba·...·]/core/iter/traits/iterator/trait.Iterator.html#method.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
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.78.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>(B,·Self::<a·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:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(B,·Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·R,
106 ····R:·<a·class="trait"·href="../../core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&lt;Output·=·B&gt;,</div></h4></section></summary><div·class='docblock'>An·iterator·method·that·applies·a·function·as·long·as·it·returns106 ····R:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.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
107 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:·eecdce021399d206eb3ef5af12ee7663b4eb0dca55b0f411c7fa66f605b6b2e2·...·]/core/iter/traits/iterator/trait.Iterator.html#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 successfully,·producing·a·single,·final·value.·<a·href="https://doc.rust-lang.org/1.78.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:·52912e82c4b0a760d06f77eb4ee3a59ba70dd76cb532954900c73ae94c652674·...·]/core/iter/traits/iterator/trait.Iterator.html#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.78.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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.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.78.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.78.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.fold"·class="method·trait-impl"><span·class="rightside"><span·class="since"·title=[·...·truncated·by·diffoscope;·len:·226,·SHA:·ffdacd6b524bc823efebbf23dc0f77317a07fe9c8b691f2ea18db7aa0c08b146·...·]/core/iter/traits/iterator/trait.Iterator.html#method.fold"·class="fn">fold</a>&lt;B,·F&gt;(self,·init:·B,·f:·F)·-&gt;·B<div·class="where">where111 iterator,·stopping·at·the·first·error·and·returning·that·error.·<a·href="https://doc.rust-lang.org/1.78.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:·1d6c4809cea8748e901d3f94777f450d430f3161f6ac05ed1c178d9327f966a3·...·]/core/iter/traits/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
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.78.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>(B,·Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::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 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(B,·Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::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 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:·dbe3a08fe63abd47570741e71208c31aaf51152feac5917db07665a1f56bb3e3·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;<div·class="where">where114 returning·the·final·result.·<a·href="https://doc.rust-lang.org/1.78.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:·b60215068a6d9721be05f81098c51167d7138c4042f140cad42f77c4df43f597·...·]/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.78.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:·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·reducing116 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·352,·SHA:·e7c3c296abe2c0a183967153e4ae7fd50bafa2ae7088e3e78b3b48fee253adc6·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::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
117 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:·a9dce8bb557b5a11426bf2ffcbd5eea7c6c870833e3ee5bb072dcaaa11687b0c·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_reduce"·class="fn">try_reduce</a>&lt;F,·R&gt;(117 operation.·<a·href="https://doc.rust-lang.org/1.78.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:·7a18fdd041b1a001b4a8feb289ee127fd9240232239269eb35dc3b8f74783ec9·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_reduce"·class="fn">try_reduce</a>&lt;F,·R&gt;(
118 ····&amp;mut·self,118 ····&amp;mut·self,
119 ····f:·F119 ····f:·F
120 )·-&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">where120 )·-&gt;·&lt;&lt;R·as·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&gt;::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/ops/try_trait/trait.Try.html#associatedtype.Residual"·title="type[·...·truncated·by·diffoscope;·len:·754,·SHA:·6fb4dfdb6b4da68921c1e7f8b75d99cf293d58318d684a840254ce9576957bea·...·]/core/ops/try_trait/trait.Residual.html#associatedtype.TryType"·title="type·core::ops::try_trait::Residual::TryType">TryType</a><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.78.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:·59,·SHA:·3d53eece7c48858eda31192ab2620ae144896b35400c945bbf3eb5dc06bf8d12·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·R,122 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·140,·SHA:·c27972e6fa3464c9476eaa185e8657edb6bb294f148403f3d079285294a9f909·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·R,
123 ····R:·<a·class="trait"·href="../../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.78.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.78.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.78.0/core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&gt;::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/ops/try_trait/trait.Try.html#associatedtype.Residual"·title="type[·...·truncated·by·diffoscope;·len:·412,·SHA:·22b8cbb007e5cce82b9d13a65bfa56aa8d83c32541fac25f4d9b3857b0540908·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;&gt;,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iterator_try_reduce</code>&nbsp;<a·href="https://github.com/rust-lang/rust/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:·65b80c848af6e465c8c5aef4ec8d3faaa399d30c8427c9507fda7b3bd1d3ea93·...·]/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.78.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:·bc0d658d56e348823de15386e1cd4ab49109f3a7a055a4573a19391b47071193·...·]/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.78.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:·95a840b532d3d621bde4032d63854eb0a481248e2b4bbb3ef058dbffb4dae4fa·...·]/core/primitive.bool.html">bool</a><div·class="where">where127 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·1018,·SHA:·e61cd6bdd36729cc38e57fcaea2ccb91a23a5acbda3c8986071f19bf1ecfc52a·...·]/core/primitive.bool.html">bool</a><div·class="where">where
Max diff block lines reached; 145412/323350 bytes (44.97%) of diff not shown.
301 KB
./usr/share/doc/rust-web-doc/html/alloc/slice/struct.RChunksExactMut.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·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.write(`<link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/SourceSerif4-Regular-46f98efaafac5295.ttf.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/FiraSans-Regular-018c141bf0843ffd.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/FiraSans-Medium-8f9a781e4970d388.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/SourceCodePro-Regular-562dcc5011b6de7d.ttf.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/SourceCodePro-Semibold-d899c5a5c4aeb14a.ttf.woff2">`)</script><link·rel="stylesheet"·href="../../static.files/normalize-76eba96aa4d2e634.css"><link·rel="stylesheet"·href="../../static.files/rustdoc-35f9e32502181f1e.css"><meta·name="rustdoc-vars"·data-root-path="../../"·data-static-root-path="../../static.files/"·data-current-crate="alloc"·data-themes=""·data-resource-suffix="1.78.0"·data-rustdoc-version="1.78.0"·data-channel="1.78.0"·data-search-js="search-42d8da7a6b9792c2.js"·data-settings-js="settings-4313503d2e1961c2.js"·><script·src="../../static.files/storage-4c98445ec4002617.js"></script><script·defer·src="sidebar-items1.78.0.js"></script><script·defer·src="../../static.files/main-12cf3b4f4f9dc36d.js"></script><noscript><link·rel="stylesheet"·href="../../static.files/noscript-04d5337699b92874.css"></noscript><link·rel="alternate·icon"·type="image/png"·href="../../static.files/favicon-16x16-8b506e7a72182f1c.png"><link·rel="alternate·icon"·type="image/png"·href="../../static.files/favicon-32x32-422f7d1d52889060.png"><link·rel="icon"·type="image/svg+xml"·href="../../static.files/favicon-2c020d218678b618.svg"></head><body·class="rustdoc·struct"><!--[if·lte·IE·11]><div·class="warning">This·old·browser·is·unsupported·and·will·most·likely·display·funky·things.</div><![endif]--><nav·class="mobile-topbar"><button·class="sidebar-menu-toggle"·title="show·sidebar"></button><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-151179464ae7ed46.svg"·alt=""></a></nav><nav·class="sidebar"><div·class="sidebar-crate"><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-151179464ae7ed46.svg"·alt="logo"></a><h2><a·href="../../alloc/index.html">alloc</a><span·class="version">1.78.0</span></h2></div><h2·class="location"><a·href="#">RChunksExactMut</a></h2><div·class="sidebar-elems"><section><h3><a·href="#implementations">Methods</a></h3><ul·class="block·method"><li><a·href="#method.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">Debug</a></li><li><a·href="#impl-DoubleEndedIterator-for-RChunksExactMut%3C'a,+T%3E">DoubleEndedIterator</a></li><li><a·href="#impl-ExactSizeIterator-for-RChunksExactMut%3C'_,+T%3E">ExactSizeIterator</a></li><li><a·href="#impl-FusedIterator-for-RChunksExactMut%3C'_,+T%3E">FusedIterator</a></li><li><a·href="#impl-Iterator-for-RChunksExactMut%3C'a,+T%3E">Iterator</a></li><li><a·href="#impl-Send-for-RChunksExactMut%3C'_,+T%3E">Send</a></li><li><a·href="#impl-Sync-for-RChunksExactMut%3C'_,+T%3E">Sync</a></li><li><a·href="#impl-TrustedLen-for-RChunksExactMut%3C'_,+T%3E">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">!UnwindSafe</a></li><li><a·href="#impl-Freeze-for-RChunksExactMut%3C'a,+T%3E">Freeze</a></li><li><a·href="#impl-RefUnwindSafe-for-RChunksExactMut%3C'a,+T%3E">RefUnwindSafe</a></li><li><a·href="#impl-Unpin-for-RChunksExactMut%3C'a,+T%3E">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">Any</a></li><li><a·href="#impl-Borrow%3CT%3E-for-T">Borrow&lt;T&gt;</a></li><li><a·href="#impl-BorrowMut%3CT%3E-for-T">BorrowMut&lt;T&gt;</a></li><li><a·href="#impl-From%3CT%3E-for-T">From&lt;T&gt;</a></li><li><a·href="#impl-Into%3CU%3E-for-T">Into&lt;U&gt;</a></li><li><a·href="#impl-IntoIterator-for-I">IntoIterator</a></li><li><a·href="#impl-TryFrom%3CU%3E-for-T">TryFrom&lt;U&gt;</a></li><li><a·href="#impl-TryInto%3CU%3E-for-T">TryInto&lt;U&gt;</a></li></ul></section><h2><a·href="index.html">In·alloc::slice</a></h2></div></nav><div·class="sidebar-resizer"></div>1 <!DOCTYPE·html><html·lang="en"><head><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.write(`<link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/SourceSerif4-Regular-46f98efaafac5295.ttf.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/FiraSans-Regular-018c141bf0843ffd.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/FiraSans-Medium-8f9a781e4970d388.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/SourceCodePro-Regular-562dcc5011b6de7d.ttf.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/SourceCodePro-Semibold-d899c5a5c4aeb14a.ttf.woff2">`)</script><link·rel="stylesheet"·href="../../static.files/normalize-76eba96aa4d2e634.css"><link·rel="stylesheet"·href="../../static.files/rustdoc-35f9e32502181f1e.css"><meta·name="rustdoc-vars"·data-root-path="../../"·data-static-root-path="../../static.files/"·data-current-crate="alloc"·data-themes=""·data-resource-suffix="1.78.0"·data-rustdoc-version="1.78.0"·data-channel="1.78.0"·data-search-js="search-42d8da7a6b9792c2.js"·data-settings-js="settings-4313503d2e1961c2.js"·><script·src="../../static.files/storage-4c98445ec4002617.js"></script><script·defer·src="sidebar-items1.78.0.js"></script><script·defer·src="../../static.files/main-12cf3b4f4f9dc36d.js"></script><noscript><link·rel="stylesheet"·href="../../static.files/noscript-04d5337699b92874.css"></noscript><link·rel="alternate·icon"·type="image/png"·href="../../static.files/favicon-16x16-8b506e7a72182f1c.png"><link·rel="alternate·icon"·type="image/png"·href="../../static.files/favicon-32x32-422f7d1d52889060.png"><link·rel="icon"·type="image/svg+xml"·href="../../static.files/favicon-2c020d218678b618.svg"></head><body·class="rustdoc·struct"><!--[if·lte·IE·11]><div·class="warning">This·old·browser·is·unsupported·and·will·most·likely·display·funky·things.</div><![endif]--><nav·class="mobile-topbar"><button·class="sidebar-menu-toggle"·title="show·sidebar"></button><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-151179464ae7ed46.svg"·alt=""></a></nav><nav·class="sidebar"><div·class="sidebar-crate"><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-151179464ae7ed46.svg"·alt="logo"></a><h2><a·href="../../alloc/index.html">alloc</a><span·class="version">1.78.0</span></h2></div><h2·class="location"><a·href="#">RChunksExactMut</a></h2><div·class="sidebar-elems"><section><h3><a·href="#implementations">Methods</a></h3><ul·class="block·method"><li><a·href="#method.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">Debug</a></li><li><a·href="#impl-DoubleEndedIterator-for-RChunksExactMut%3C'a,+T%3E">DoubleEndedIterator</a></li><li><a·href="#impl-ExactSizeIterator-for-RChunksExactMut%3C'_,+T%3E">ExactSizeIterator</a></li><li><a·href="#impl-FusedIterator-for-RChunksExactMut%3C'_,+T%3E">FusedIterator</a></li><li><a·href="#impl-Iterator-for-RChunksExactMut%3C'a,+T%3E">Iterator</a></li><li><a·href="#impl-Send-for-RChunksExactMut%3C'_,+T%3E">Send</a></li><li><a·href="#impl-Sync-for-RChunksExactMut%3C'_,+T%3E">Sync</a></li><li><a·href="#impl-TrustedLen-for-RChunksExactMut%3C'_,+T%3E">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">!UnwindSafe</a></li><li><a·href="#impl-Freeze-for-RChunksExactMut%3C'a,+T%3E">Freeze</a></li><li><a·href="#impl-RefUnwindSafe-for-RChunksExactMut%3C'a,+T%3E">RefUnwindSafe</a></li><li><a·href="#impl-Unpin-for-RChunksExactMut%3C'a,+T%3E">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">Any</a></li><li><a·href="#impl-Borrow%3CT%3E-for-T">Borrow&lt;T&gt;</a></li><li><a·href="#impl-BorrowMut%3CT%3E-for-T">BorrowMut&lt;T&gt;</a></li><li><a·href="#impl-From%3CT%3E-for-T">From&lt;T&gt;</a></li><li><a·href="#impl-Into%3CU%3E-for-T">Into&lt;U&gt;</a></li><li><a·href="#impl-IntoIterator-for-I">IntoIterator</a></li><li><a·href="#impl-TryFrom%3CU%3E-for-T">TryFrom&lt;U&gt;</a></li><li><a·href="#impl-TryInto%3CU%3E-for-T">TryInto&lt;U&gt;</a></li></ul></section><h2><a·href="index.html">In·alloc::slice</a></h2></div></nav><div·class="sidebar-resizer"></div>
2 ····<main><div·class="width-limiter"><nav·class="sub"><form·class="search-form"><span></span><div·id="sidebar-button"·tabindex="-1"><a·href="../../alloc/all.html"·title="show·sidebar"></a></div><input·class="search-input"·name="search"·aria-label="Run·search·in·the·documentation"·autocomplete="off"·spellcheck="false"·placeholder="Click·or·press·‘S’·to·search,·‘?’·for·more·options…"·type="search"><div·id="help-button"·tabindex="-1"><a·href="../../help.html"·title="help">?</a></div><div·id="settings-menu"·tabindex="-1"><a·href="../../settings.html"·title="settings"><img·width="22"·height="22"·alt="Change·settings"·src="../../static.files/wheel-7b819b6101059cd0.svg"></a></div></form></nav><section·id="main-content"·class="content"><div·class="main-heading"><h1>Struct·<a·href="../index.html">alloc</a>::<wbr><a·href="index.html">slice</a>::<wbr><a·class="struct"·href="#">RChunksExactMut</a><button·id="copy-path"·title="Copy·item·path·to·clipboard"><img·src="../../static.files/clipboard-7571035ce49a181d.svg"·width="19"·height="18"·alt="Copy·item·path"></button></h1><span·class="out-of-band"><span·class="since"·title="Stable·since·Rust·version·1.31.0">1.31.0</span>···<a·class="src"·href="../../src/core/slice/iter.rs.html#3077">source</a>···<button·id="toggle-all-docs"·title="collapse·all·docs">[<span>&#x2212;</span>]</button></span></div><pre·class="rust·item-decl"><code>pub·struct·RChunksExactMut&lt;'a,·T&gt;<div·class="where">where2 ····<main><div·class="width-limiter"><nav·class="sub"><form·class="search-form"><span></span><div·id="sidebar-button"·tabindex="-1"><a·href="../../alloc/all.html"·title="show·sidebar"></a></div><input·class="search-input"·name="search"·aria-label="Run·search·in·the·documentation"·autocomplete="off"·spellcheck="false"·placeholder="Click·or·press·‘S’·to·search,·‘?’·for·more·options…"·type="search"><div·id="help-button"·tabindex="-1"><a·href="../../help.html"·title="help">?</a></div><div·id="settings-menu"·tabindex="-1"><a·href="../../settings.html"·title="settings"><img·width="22"·height="22"·alt="Change·settings"·src="../../static.files/wheel-7b819b6101059cd0.svg"></a></div></form></nav><section·id="main-content"·class="content"><div·class="main-heading"><h1>Struct·<a·href="../index.html">alloc</a>::<wbr><a·href="index.html">slice</a>::<wbr><a·class="struct"·href="#">RChunksExactMut</a><button·id="copy-path"·title="Copy·item·path·to·clipboard"><img·src="../../static.files/clipboard-7571035ce49a181d.svg"·width="19"·height="18"·alt="Copy·item·path"></button></h1><span·class="out-of-band"><span·class="since"·title="Stable·since·Rust·version·1.31.0">1.31.0</span>···<a·class="src"·href="https://doc.rust-lang.org/1.78.0/src/core/slice/iter.rs.html#3077">source</a>···<button·id="toggle-all-docs"·title="collapse·all·docs">[<span>&#x2212;</span>]</button></span></div><pre·class="rust·item-decl"><code>pub·struct·RChunksExactMut&lt;'a,·T&gt;<div·class="where">where
3 ····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 ····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>
4 elements·at·a·time),·starting·at·the·end·of·the·slice.</p>4 elements·at·a·time),·starting·at·the·end·of·the·slice.</p>
5 <p>When·the·slice·len·is·not·evenly·divided·by·the·chunk·size,·the·last·up·to5 <p>When·the·slice·len·is·not·evenly·divided·by·the·chunk·size,·the·last·up·to
6 <code>chunk_size-1</code>·elements·will·be·omitted·but·can·be·retrieved·from·the6 <code>chunk_size-1</code>·elements·will·be·omitted·but·can·be·retrieved·from·the
7 <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 <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>
8 <p>This·struct·is·created·by·the·<a·href="../../core/primitive.slice.html#method.rchunks_exact_mut"·title="method·slice::rchunks_exact_mut"><code>rchunks_exact_mut</code></a>·method·on·<a·href="../../core/primitive.slice.html"·title="primitive·slice">slices</a>.</p>8 <p>This·struct·is·created·by·the·<a·href="https://doc.rust-lang.org/1.78.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.78.0/core/primitive.slice.html"·title="primitive·slice">slices</a>.</p>
9 <h2·id="example"><a·class="doc-anchor"·href="#example">§</a>Example</h2>9 <h2·id="example"><a·class="doc-anchor"·href="#example">§</a>Example</h2>
10 <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 <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>];
11 <span·class="kw">let·</span>iter·=·slice.rchunks_exact_mut(<span·class="number">2</span>);</code></pre><a·class="test-arrow"·target="_blank"·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">Run</a></div>11 <span·class="kw">let·</span>iter·=·slice.rchunks_exact_mut(<span·class="number">2</span>);</code></pre><a·class="test-arrow"·target="_blank"·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">Run</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-RChunksExactMut%3C'a,+T%3E"·class="impl"><a·class="src·rightside"·href="../../src/core/slice/iter.rs.html#3089">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:·412,·SHA:·d620504cda2245e6196ad5313beb1ed478eac6fcbca22be4c7d64dc9ff593a1b·...·]/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·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-RChunksExactMut%3C'a,+T%3E"·class="impl"><a·class="src·rightside"·href="https://doc.rust-lang.org/1.78.0/src/core/slice/iter.rs.html#3089">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:·493,·SHA:·1d29af1a481d98fbbebdc7cea1d59fe6c99d330a054b2baa72d7a85952df556c·...·]/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
13 returned·by·the·iterator.·The·returned·slice·has·at·most·<code>chunk_size-1</code>13 returned·by·the·iterator.·The·returned·slice·has·at·most·<code>chunk_size-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-RChunksExactMut%3C'a,+T%3E"·class="impl"><a·class="src·rightside"·href="../../src/core/slice/iter.rs.html#3074">source</a><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">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-RChunksExactMut%3C'a,+T%3E"·class="impl"><a·class="src·rightside"·href="https://doc.rust-lang.org/1.78.0/src/core/slice/iter.rs.html#3074">source</a><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
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#3074">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:·2350,·SHA:·6f120513f84dd6f64eb9f33bfd14f3a8253747efdac5d5f86460dcf758b71b91·...·]/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.78.0/src/core/slice/iter.rs.html#3074">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:·2674,·SHA:·081e75f6c6f28dfe6d2ac4a881e7e915e15d320f62e7a2c92b01b14241db02e0·...·]/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.78.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.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:·b2a84c8d28fa1a40110beb0fd6941dfc9eac6d8008ad91220e386838b54479ee·...·]/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.78.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:·7d3297bf50b5a857f7e037a9978374abc82c4d5206733cc5e820bddd5508503f·...·]/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.78.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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(B,·Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.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.78.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.7[·...·truncated·by·diffoscope;·len:·3,·SHA:·7b1bd53949b752d143d871408483b5382371b5bc48d195d0c040ec93cfa2748b·...·]/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:·74b709f2c818a4eda5d85ea863eb2d8af72c87564dbab2746e67feafb0cbb9a3·...·]/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.78.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:·d66ed7e195a53e9945339ef1976aed455dcf80228d8e5b7b0c69a64c3983fea1·...·]/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.78.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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(B,·Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/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:·f8bdf1e28866c7668477ab391452c7cfa7fd52cc69b633e782a157931421b39b·...·]/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.78.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:·c264047794019a6dcf05728ba6a6ee1f8f07c7209958b3366ba94546b527ecdc·...·]/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.78.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:·8579,·SHA:·60fcbf5f97547e5b6954717779248f84929e45ded63daebb9e2053d1c3d53a88·...·]/core/primitive.usize.html">usize</a>&gt;(28 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·9875,·SHA:·49f0ec78441a0a9c72cbe9d627facb9e82e61caab477dbd97a24c69fa595396f·...·]/core/primitive.usize.html">usize</a>&gt;(
29 ····&amp;mut·self29 ····&amp;mut·self
30 )·-&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">where30 )·-&gt;·<a·class="enum"·href="https://doc.rust-lang.org/1.78.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.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title=[·...·truncated·by·diffoscope;·len:·381,·SHA:·88c48923c9b7ea5cc47c1087c60e09656e81d4671c58071ba2bef826335388bc·...·]/core/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
31 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></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:·35097ac20cb94a94d329a7511e21173c3e63fd8ce0a6d69b63b12136ae10fe6d·...·]/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.78.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></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:·3b082a2bc331439bfa16e12f26774fc7db23f44625156e2161c751eb349fb5c0·...·]/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.78.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:·5667b9b6c9778ff3b9d23ed0a110e7ab9d3fccc786fdcaca8c17edf996236439·...·]/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.78.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:·e83c903581753673e083ce8dd809879a2fc81ab3050eb6db267d7fa26b15e035·...·]/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.78.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:·1c6bb9803ee8832ebd4c28a08a952178165595b6870cf35d3c89454b9da828b2·...·]/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.78.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.78.0/core/iter/traits/it[·...·truncated·by·diffoscope;·len:·1329,·SHA:·d9299c8edc606ed82f24d61ce441bec451141d684c2a9a75074f5b19c57f196c·...·]/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.78.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:·c1b5e692e89c9c809075ee8ee72fb15a9ec46c075b08450e1f707d672a224750·...·]/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.78.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:·98627729f77dcf1c9d258f343354ba600b7134c6b3929080f231e8de7155b70b·...·]/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.78.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.78.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.78.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:·d6282409add0999f2130eb6bbe6d0473ce96bf2544799e8bc22156f3c2d2e0dd·...·]/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.78.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:·7301b6beba7b6885849be90a625df68ef739a5374af456c51fe2e81d91a25363·...·]/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.78.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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::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:·fb4c9589a16c7b6d697c109d1193d2f1e763e5dd967101c2fd92b32416972229·...·]/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.78.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:·98f6effefa44d759c249143d83623f0055d937382bfc398b7e1f5e92cd413657·...·]/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.78.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:·7abbad666ec88a1053b8aca2a481d629a3ef3596eddb570c381205fa2d859a52·...·]/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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·916,·SHA:·30d0b2a76513c5a880e9aee43e92b18805845cfcfe5783f62dc090167a439e63·...·]/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.78.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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·140,·SHA:·752f473b57e7444ebfddf5ea7fd40a332e83ec55524a6c31b5ee0f82a5dea819·...·]/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:·7da07154834a15b8ae55b4fd41479da070ccbd27e071909f81698570c306a081·...·]/core/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.78.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:·76aa2ad154f88085ee3f8a22721a7e6812680bac785d19059532407f50da1801·...·]/core/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.78.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:·c89169e5bf1c4724c7b411e568b6dad6475896f2606f557b3d708359ef71f5cc·...·]/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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·1052,·SHA:·110b47c7083083d565fcfc89337fddc8e5c87e81b2f720f3f7b0ded55e8500fb·...·]/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.78.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:·53634008856676c70c32b501f7ec498c1f86d123cc9b5b898256a69895ff31fc·...·]/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.78.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:·8464264e074dde5d84f0414ab3b5b2d8da83f3c9e3ca04c45458241580a8c80d·...·]/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.78.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.78.0/core/iter/adapte[·...·truncated·by·diffoscope;·len:·175,·SHA:·16fe7225bf05b478e2828b347c3d23ded9a22f89d8887a2c65d9f7b3faf1b0e7·...·]/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:·77dd41e041d66c618d306e900a9159cf1b00478b8f37e5692be62119a1d4fcda·...·]/core/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.78.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:·00ccbb673c11ed48d8c6aa2a3f8984fb298202e7bccfa42f1ac21290fcc0fb06·...·]/core/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.78.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:·c18326af66652e52fa627bfd0312af7fa2ad0ddc162b12a46e61047a031b0264·...·]/core/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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·1234,·SHA:·3b805567411cdcebed740f9e8d400dbe7fb487504f40e284544a140155090fdf·...·]/core/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.78.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:·39eeddf219b211245393e51a591d5064c740fa9be49d88883d8a6474679741ad·...·]/core/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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·1058,·SHA:·b390dbdda8d7e93604b5ecd906a93efd03fe19bdaf41cf12893fd361bf974307·...·]/core/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.78.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:·9369fa85b74ff841f7401949cadba6dfbbbeead2a99568f20dcfd5aab20d61ab·...·]/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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·1163,·SHA:·5772149166d344bf8fa5ebbd9db8693a8f2e5f031c50338e8f1523ef72f814d6·...·]/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:·a25e81a74cc82c1837477e2b0cea682fff9f43550640901b8010ac501ca69e3d·...·]/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.78.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:·6216516fe581c401abda3c95818192e8f030e2008c9bbdbaafebba16f33ea9bd·...·]/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.78.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:·de8f1023275132502c1569b0ef9a557dc98eaf60aae97cdb916e52f9f55100aa·...·]/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.78.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:·485843399c56e24bdf020ff0610d0ce1f62fbac5530d9880a1a7417105e3d70f·...·]/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.78.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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(<a·class="primitive"·href="https://doc.rust-lang.org/1.78.0/core/primitive.reference.html">&amp;mut·St</a>,·Self::<a·class="associatedty[·...·truncated·by·diffoscope;·len:·449,·SHA:·f12c268a8a8111b9e7126ad78bf5523a63733caa63d187c4fe792309ea41acdf·...·]/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:·8b31595e3cee3022819032aac82e3df712188a2a6dcc20da6939262e5e528591·...·]/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.78.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.78.0/core/iter/trai[·...·truncated·by·diffoscope;·len:·690,·SHA:·371190e5c1bf9b7dde6e84447965a69946212b977b9eb6d89048fbe34c5dda1c·...·]/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.78.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.78.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:·9b6a337a3ad68c2a987b52450c153f87a04a8ed9e83603d26077fe6e70d61edf·...·]/core/iter/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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·976,·SHA:·2a9182f6fe88e0b8a9b1ae1f46cace940cc0b8736033c354c0f0ccbf1c196e7a·...·]/core/iter/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.78.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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;[Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtyp[·...·truncated·by·diffoscope;·len:·135,·SHA:·0b06a6094d42ccbc8bce5b01c4383961fe7f1967f05e4c9f1ff33e71e425fb26·...·]/core/primitive.array.html">N</a>])·-&gt;·R,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iter_map_windows</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/87155">#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.78.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:·238f6b49b3e28d725c57040edaa60bfbb34f140155e6af1d30eab52da1c7274f·...·]/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.78.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:·0d33056cee8a4f9b70b573c0adecc2f3599a2f8d9fa9f2c2044e9118ab134f73·...·]/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:·cfd3edf89fe5aca24b994f83b0d7da765620394e35140e694d98233d4d92481b·...·]/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.78.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.78.0/core/op[·...·truncated·by·diffoscope;·len:·841,·SHA:·9cba1b175fb3726d7f1f01da9be7c1a56568a68e4ce7915a468b730902daf8d3·...·]/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.78.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:·772,·SHA:·31d2052382378512fa905c6d5297d384eac7b7f126141ce561719c0e27cc9d39·...·]/core/primitive.reference.html">&amp;mut·Self</a><div·class="where">where77 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·934,·SHA:·ea20d2e0fe9388580ea08100baa9120b5e9b6cb48f43fc846f15db8b9649e7f6·...·]/core/primitive.reference.html">&amp;mut·Self</a><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:·98760b16b1ed91f9558e6e2637724a4608316181d5f6f4d236e896a83eca9af9·...·]/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.78.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.78.0/core/it[·...·truncated·by·diffoscope;·len:·523,·SHA:·97064c705f6f4bdf74469c54fabcf580d21893127d1b4cd9a9c1018a717ef153·...·]/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.78.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.78.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:·e5d524e874326d0b9b733f5ee809c6595cde869afab0cc3d4ba8454093f420da·...·]/core/primitive.reference.html">&amp;mut·E</a><div·class="where">where80 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.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.78.0/core/iter/tr[·...·truncated·by·diffoscope;·len:·728,·SHA:·01937c2dc314c259495665570ae249c94b4a5b0719718f5f1188e6fc64ecf487·...·]/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.78.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.78.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:·b0297783e056393a542c4058b42c18523a86c961c1b6ce3bc94342c1a2c10c58·...·]/core/primitive.tuple.html">(B,·B)</a><div·class="where">where82 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></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:·00bd47017b1bdd1bbe2c3fc932d955a8aa2f7f5eff8c00e3001ae28a982a5883·...·]/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.78.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.78.0/core/default/trait.Default.html"·title="trait·core::default::Default">Default</a>·+·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/collect/trait.Extend.html"·title="trait·core::iter::traits::collec[·...·truncated·by·diffoscope;·len:·95,·SHA:·8b3be1d0042cae0550f865faf5849221240bdf04eb1b2107605b72d48c3ad29c·...·]/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:·5a1bcc1ddfc5fccf50d61bf2b8879dae247aa12c0b23ba2f437fd2a345cabac7·...·]/core/primitive.usize.html">usize</a><div·class="where">where85 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·995,·SHA:·bec3765fdab56713186e2454cd84738b5b28e3280a2f3d5a25cefdbc3089b520·...·]/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.78.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>·+·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/double_ended/trait.DoubleEndedIterator.html"·title="trait·core::iter::trai[·...·truncated·by·diffoscope;·len:·132,·SHA:·e5b2cf5f56946ede1e190ed09879c5821e2de04cf8e5d145142eeb40c6340982·...·]/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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(<a·class="primitive"·href="https://doc.rust-lang.org/1.78.0/core/primitive.reference.html">&amp;T</a>)·-&gt;·<a·class="primitive"·href="[·...·truncated·by·diffoscope;·len:·32,·SHA:·63d052a8ced32bf927ffadd7e884c08caf4970e85dfdf6be0e568d49b174da96·...·]/core/primitive.bool.html">bool</a>,</div></h4></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:·97056c44eac6a0f986fb2c8edec37302cc06edf44a6c6f7153a5d8623d8d6c0d·...·]/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.78.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:·0c224636c18baa273f69de21f90083317f2ea0b7367a3f0d0f1c0ace55a36f79·...·]/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.78.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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·135,·SHA:·51ff5f5c7ebd8440623ea71b125c5a5837e809e308fe1a13fbe19cddb941dbd9·...·]/core/primitive.bool.html">bool</a>,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iter_is_partitioned</code>&nbsp;<a·href="https://github.com/rust-lang/rust/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:·6f406a351b93047f56fa70265a6bf28ec6874f75cd6cc5a39d51c7af462f2992·...·]/core/iter/traits/iterator/trait.Iterator.html#method.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.78.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:·2c74873f4e5ba70004a1c7edd1cc3f9e2d91271295dd1591e2d26848df4c02ba·...·]/core/iter/traits/iterator/trait.Iterator.html#method.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.78.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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(B,·Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.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.78.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:·eecdce021399d206eb3ef5af12ee7663b4eb0dca55b0f411c7fa66f605b6b2e2·...·]/core/iter/traits/iterator/trait.Iterator.html#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.78.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:·52912e82c4b0a760d06f77eb4ee3a59ba70dd76cb532954900c73ae94c652674·...·]/core/iter/traits/iterator/trait.Iterator.html#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.78.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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.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.78.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.78.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:·ffdacd6b524bc823efebbf23dc0f77317a07fe9c8b691f2ea18db7aa0c08b146·...·]/core/iter/traits/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.78.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:·1d6c4809cea8748e901d3f94777f450d430f3161f6ac05ed1c178d9327f966a3·...·]/core/iter/traits/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.78.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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(B,·Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::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:·dbe3a08fe63abd47570741e71208c31aaf51152feac5917db07665a1f56bb3e3·...·]/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.78.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:·b60215068a6d9721be05f81098c51167d7138c4042f140cad42f77c4df43f597·...·]/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.78.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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·352,·SHA:·e7c3c296abe2c0a183967153e4ae7fd50bafa2ae7088e3e78b3b48fee253adc6·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::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:·a9dce8bb557b5a11426bf2ffcbd5eea7c6c870833e3ee5bb072dcaaa11687b0c·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_reduce"·class="fn">try_reduce</a>&lt;F,·R&gt;(107 operation.·<a·href="https://doc.rust-lang.org/1.78.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:·7a18fdd041b1a001b4a8feb289ee127fd9240232239269eb35dc3b8f74783ec9·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_reduce"·class="fn">try_reduce</a>&lt;F,·R&gt;(
108 ····&amp;mut·self,108 ····&amp;mut·self,
109 ····f:·F109 ····f:·F
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.78.0/core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&gt;::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/ops/try_trait/trait.Try.html#associatedtype.Residual"·title="type[·...·truncated·by·diffoscope;·len:·754,·SHA:·6fb4dfdb6b4da68921c1e7f8b75d99cf293d58318d684a840254ce9576957bea·...·]/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.78.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:·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:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·140,·SHA:·c27972e6fa3464c9476eaa185e8657edb6bb294f148403f3d079285294a9f909·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·R,
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.78.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.78.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.78.0/core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&gt;::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/ops/try_trait/trait.Try.html#associatedtype.Residual"·title="type[·...·truncated·by·diffoscope;·len:·412,·SHA:·22b8cbb007e5cce82b9d13a65bfa56aa8d83c32541fac25f4d9b3857b0540908·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;&gt;,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iterator_try_reduce</code>&nbsp;<a·href="https://github.com/rust-lang/rust/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:·65b80c848af6e465c8c5aef4ec8d3faaa399d30c8427c9507fda7b3bd1d3ea93·...·]/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.78.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:·bc0d658d56e348823de15386e1cd4ab49109f3a7a055a4573a19391b47071193·...·]/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.78.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:·95a840b532d3d621bde4032d63854eb0a481248e2b4bbb3ef058dbffb4dae4fa·...·]/core/primitive.bool.html">bool</a><div·class="where">where117 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·1018,·SHA:·e61cd6bdd36729cc38e57fcaea2ccb91a23a5acbda3c8986071f19bf1ecfc52a·...·]/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.78.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:·f828c62edd4fe85e217286f359b56c116e14ed18bb292ba1cc13d3ed7146909e·...·]/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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·1172,·SHA:·e64ab74d116d286191ad43d9d9e10411fc011c23724aa806e9a8f9b0be0757e3·...·]/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.78.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:·21d7086b3ce0092e3f7a6a41174339bbd8724e7d186158db4db3385a73d94e8e·...·]/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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·1051,·SHA:·ecc0b8fccd861464760f9ae047ff6ab98c91a1db010cb5fa59a8c2ab883db7c4·...·]/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.78.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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·130,·SHA:·130a13019dc175d02304b4f550157e2f13ac15c2f25a979c74161d10b146ab89·...·]/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:·ac4da3337aac1ec10038e246be9cb719eeb5af1acc709f5a6a25b91900c56f53·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_find"·class="fn">try_find</a>&lt;F,·R&gt;(124 the·first·non-none·result.·<a·href="https://doc.rust-lang.org/1.78.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:·8ced1b10e78750774c5c8ed995ed83dcd13983aa75d329acf8069da106ab9f4a·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_find"·class="fn">try_find</a>&lt;F,·R&gt;(
125 ····&amp;mut·self,125 ····&amp;mut·self,
126 ····f:·F126 ····f:·F
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.78.0/core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&gt;::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/ops/try_trait/trait.Try.html#associatedtype.Residual"·title="type[·...·truncated·by·diffoscope;·len:·626,·SHA:·95f9831257b68862cbcbf54f0ad2ff4e597a4c9f763112d1da8a0897dadcf872·...·]/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; 79869/308198 bytes (25.91%) of diff not shown.
298 KB
./usr/share/doc/rust-web-doc/html/alloc/slice/struct.RChunksMut.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·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.write(`<link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/SourceSerif4-Regular-46f98efaafac5295.ttf.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/FiraSans-Regular-018c141bf0843ffd.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/FiraSans-Medium-8f9a781e4970d388.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/SourceCodePro-Regular-562dcc5011b6de7d.ttf.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/SourceCodePro-Semibold-d899c5a5c4aeb14a.ttf.woff2">`)</script><link·rel="stylesheet"·href="../../static.files/normalize-76eba96aa4d2e634.css"><link·rel="stylesheet"·href="../../static.files/rustdoc-35f9e32502181f1e.css"><meta·name="rustdoc-vars"·data-root-path="../../"·data-static-root-path="../../static.files/"·data-current-crate="alloc"·data-themes=""·data-resource-suffix="1.78.0"·data-rustdoc-version="1.78.0"·data-channel="1.78.0"·data-search-js="search-42d8da7a6b9792c2.js"·data-settings-js="settings-4313503d2e1961c2.js"·><script·src="../../static.files/storage-4c98445ec4002617.js"></script><script·defer·src="sidebar-items1.78.0.js"></script><script·defer·src="../../static.files/main-12cf3b4f4f9dc36d.js"></script><noscript><link·rel="stylesheet"·href="../../static.files/noscript-04d5337699b92874.css"></noscript><link·rel="alternate·icon"·type="image/png"·href="../../static.files/favicon-16x16-8b506e7a72182f1c.png"><link·rel="alternate·icon"·type="image/png"·href="../../static.files/favicon-32x32-422f7d1d52889060.png"><link·rel="icon"·type="image/svg+xml"·href="../../static.files/favicon-2c020d218678b618.svg"></head><body·class="rustdoc·struct"><!--[if·lte·IE·11]><div·class="warning">This·old·browser·is·unsupported·and·will·most·likely·display·funky·things.</div><![endif]--><nav·class="mobile-topbar"><button·class="sidebar-menu-toggle"·title="show·sidebar"></button><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-151179464ae7ed46.svg"·alt=""></a></nav><nav·class="sidebar"><div·class="sidebar-crate"><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-151179464ae7ed46.svg"·alt="logo"></a><h2><a·href="../../alloc/index.html">alloc</a><span·class="version">1.78.0</span></h2></div><h2·class="location"><a·href="#">RChunksMut</a></h2><div·class="sidebar-elems"><section><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">Debug</a></li><li><a·href="#impl-DoubleEndedIterator-for-RChunksMut%3C'a,+T%3E">DoubleEndedIterator</a></li><li><a·href="#impl-ExactSizeIterator-for-RChunksMut%3C'_,+T%3E">ExactSizeIterator</a></li><li><a·href="#impl-FusedIterator-for-RChunksMut%3C'_,+T%3E">FusedIterator</a></li><li><a·href="#impl-Iterator-for-RChunksMut%3C'a,+T%3E">Iterator</a></li><li><a·href="#impl-Send-for-RChunksMut%3C'_,+T%3E">Send</a></li><li><a·href="#impl-Sync-for-RChunksMut%3C'_,+T%3E">Sync</a></li><li><a·href="#impl-TrustedLen-for-RChunksMut%3C'_,+T%3E">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">!UnwindSafe</a></li><li><a·href="#impl-Freeze-for-RChunksMut%3C'a,+T%3E">Freeze</a></li><li><a·href="#impl-RefUnwindSafe-for-RChunksMut%3C'a,+T%3E">RefUnwindSafe</a></li><li><a·href="#impl-Unpin-for-RChunksMut%3C'a,+T%3E">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">Any</a></li><li><a·href="#impl-Borrow%3CT%3E-for-T">Borrow&lt;T&gt;</a></li><li><a·href="#impl-BorrowMut%3CT%3E-for-T">BorrowMut&lt;T&gt;</a></li><li><a·href="#impl-From%3CT%3E-for-T">From&lt;T&gt;</a></li><li><a·href="#impl-Into%3CU%3E-for-T">Into&lt;U&gt;</a></li><li><a·href="#impl-IntoIterator-for-I">IntoIterator</a></li><li><a·href="#impl-TryFrom%3CU%3E-for-T">TryFrom&lt;U&gt;</a></li><li><a·href="#impl-TryInto%3CU%3E-for-T">TryInto&lt;U&gt;</a></li></ul></section><h2><a·href="index.html">In·alloc::slice</a></h2></div></nav><div·class="sidebar-resizer"></div>1 <!DOCTYPE·html><html·lang="en"><head><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.write(`<link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/SourceSerif4-Regular-46f98efaafac5295.ttf.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/FiraSans-Regular-018c141bf0843ffd.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/FiraSans-Medium-8f9a781e4970d388.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/SourceCodePro-Regular-562dcc5011b6de7d.ttf.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/SourceCodePro-Semibold-d899c5a5c4aeb14a.ttf.woff2">`)</script><link·rel="stylesheet"·href="../../static.files/normalize-76eba96aa4d2e634.css"><link·rel="stylesheet"·href="../../static.files/rustdoc-35f9e32502181f1e.css"><meta·name="rustdoc-vars"·data-root-path="../../"·data-static-root-path="../../static.files/"·data-current-crate="alloc"·data-themes=""·data-resource-suffix="1.78.0"·data-rustdoc-version="1.78.0"·data-channel="1.78.0"·data-search-js="search-42d8da7a6b9792c2.js"·data-settings-js="settings-4313503d2e1961c2.js"·><script·src="../../static.files/storage-4c98445ec4002617.js"></script><script·defer·src="sidebar-items1.78.0.js"></script><script·defer·src="../../static.files/main-12cf3b4f4f9dc36d.js"></script><noscript><link·rel="stylesheet"·href="../../static.files/noscript-04d5337699b92874.css"></noscript><link·rel="alternate·icon"·type="image/png"·href="../../static.files/favicon-16x16-8b506e7a72182f1c.png"><link·rel="alternate·icon"·type="image/png"·href="../../static.files/favicon-32x32-422f7d1d52889060.png"><link·rel="icon"·type="image/svg+xml"·href="../../static.files/favicon-2c020d218678b618.svg"></head><body·class="rustdoc·struct"><!--[if·lte·IE·11]><div·class="warning">This·old·browser·is·unsupported·and·will·most·likely·display·funky·things.</div><![endif]--><nav·class="mobile-topbar"><button·class="sidebar-menu-toggle"·title="show·sidebar"></button><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-151179464ae7ed46.svg"·alt=""></a></nav><nav·class="sidebar"><div·class="sidebar-crate"><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-151179464ae7ed46.svg"·alt="logo"></a><h2><a·href="../../alloc/index.html">alloc</a><span·class="version">1.78.0</span></h2></div><h2·class="location"><a·href="#">RChunksMut</a></h2><div·class="sidebar-elems"><section><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">Debug</a></li><li><a·href="#impl-DoubleEndedIterator-for-RChunksMut%3C'a,+T%3E">DoubleEndedIterator</a></li><li><a·href="#impl-ExactSizeIterator-for-RChunksMut%3C'_,+T%3E">ExactSizeIterator</a></li><li><a·href="#impl-FusedIterator-for-RChunksMut%3C'_,+T%3E">FusedIterator</a></li><li><a·href="#impl-Iterator-for-RChunksMut%3C'a,+T%3E">Iterator</a></li><li><a·href="#impl-Send-for-RChunksMut%3C'_,+T%3E">Send</a></li><li><a·href="#impl-Sync-for-RChunksMut%3C'_,+T%3E">Sync</a></li><li><a·href="#impl-TrustedLen-for-RChunksMut%3C'_,+T%3E">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">!UnwindSafe</a></li><li><a·href="#impl-Freeze-for-RChunksMut%3C'a,+T%3E">Freeze</a></li><li><a·href="#impl-RefUnwindSafe-for-RChunksMut%3C'a,+T%3E">RefUnwindSafe</a></li><li><a·href="#impl-Unpin-for-RChunksMut%3C'a,+T%3E">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">Any</a></li><li><a·href="#impl-Borrow%3CT%3E-for-T">Borrow&lt;T&gt;</a></li><li><a·href="#impl-BorrowMut%3CT%3E-for-T">BorrowMut&lt;T&gt;</a></li><li><a·href="#impl-From%3CT%3E-for-T">From&lt;T&gt;</a></li><li><a·href="#impl-Into%3CU%3E-for-T">Into&lt;U&gt;</a></li><li><a·href="#impl-IntoIterator-for-I">IntoIterator</a></li><li><a·href="#impl-TryFrom%3CU%3E-for-T">TryFrom&lt;U&gt;</a></li><li><a·href="#impl-TryInto%3CU%3E-for-T">TryInto&lt;U&gt;</a></li></ul></section><h2><a·href="index.html">In·alloc::slice</a></h2></div></nav><div·class="sidebar-resizer"></div>
2 ····<main><div·class="width-limiter"><nav·class="sub"><form·class="search-form"><span></span><div·id="sidebar-button"·tabindex="-1"><a·href="../../alloc/all.html"·title="show·sidebar"></a></div><input·class="search-input"·name="search"·aria-label="Run·search·in·the·documentation"·autocomplete="off"·spellcheck="false"·placeholder="Click·or·press·‘S’·to·search,·‘?’·for·more·options…"·type="search"><div·id="help-button"·tabindex="-1"><a·href="../../help.html"·title="help">?</a></div><div·id="settings-menu"·tabindex="-1"><a·href="../../settings.html"·title="settings"><img·width="22"·height="22"·alt="Change·settings"·src="../../static.files/wheel-7b819b6101059cd0.svg"></a></div></form></nav><section·id="main-content"·class="content"><div·class="main-heading"><h1>Struct·<a·href="../index.html">alloc</a>::<wbr><a·href="index.html">slice</a>::<wbr><a·class="struct"·href="#">RChunksMut</a><button·id="copy-path"·title="Copy·item·path·to·clipboard"><img·src="../../static.files/clipboard-7571035ce49a181d.svg"·width="19"·height="18"·alt="Copy·item·path"></button></h1><span·class="out-of-band"><span·class="since"·title="Stable·since·Rust·version·1.31.0">1.31.0</span>···<a·class="src"·href="../../src/core/slice/iter.rs.html#2707">source</a>···<button·id="toggle-all-docs"·title="collapse·all·docs">[<span>&#x2212;</span>]</button></span></div><pre·class="rust·item-decl"><code>pub·struct·RChunksMut&lt;'a,·T&gt;<div·class="where">where2 ····<main><div·class="width-limiter"><nav·class="sub"><form·class="search-form"><span></span><div·id="sidebar-button"·tabindex="-1"><a·href="../../alloc/all.html"·title="show·sidebar"></a></div><input·class="search-input"·name="search"·aria-label="Run·search·in·the·documentation"·autocomplete="off"·spellcheck="false"·placeholder="Click·or·press·‘S’·to·search,·‘?’·for·more·options…"·type="search"><div·id="help-button"·tabindex="-1"><a·href="../../help.html"·title="help">?</a></div><div·id="settings-menu"·tabindex="-1"><a·href="../../settings.html"·title="settings"><img·width="22"·height="22"·alt="Change·settings"·src="../../static.files/wheel-7b819b6101059cd0.svg"></a></div></form></nav><section·id="main-content"·class="content"><div·class="main-heading"><h1>Struct·<a·href="../index.html">alloc</a>::<wbr><a·href="index.html">slice</a>::<wbr><a·class="struct"·href="#">RChunksMut</a><button·id="copy-path"·title="Copy·item·path·to·clipboard"><img·src="../../static.files/clipboard-7571035ce49a181d.svg"·width="19"·height="18"·alt="Copy·item·path"></button></h1><span·class="out-of-band"><span·class="since"·title="Stable·since·Rust·version·1.31.0">1.31.0</span>···<a·class="src"·href="https://doc.rust-lang.org/1.78.0/src/core/slice/iter.rs.html#2707">source</a>···<button·id="toggle-all-docs"·title="collapse·all·docs">[<span>&#x2212;</span>]</button></span></div><pre·class="rust·item-decl"><code>pub·struct·RChunksMut&lt;'a,·T&gt;<div·class="where">where
3 ····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 ····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>
4 elements·at·a·time),·starting·at·the·end·of·the·slice.</p>4 elements·at·a·time),·starting·at·the·end·of·the·slice.</p>
5 <p>When·the·slice·len·is·not·evenly·divided·by·the·chunk·size,·the·last·slice5 <p>When·the·slice·len·is·not·evenly·divided·by·the·chunk·size,·the·last·slice
6 of·the·iteration·will·be·the·remainder.</p>6 of·the·iteration·will·be·the·remainder.</p>
7 <p>This·struct·is·created·by·the·<a·href="../../core/primitive.slice.html#method.rchunks_mut"·title="method·slice::rchunks_mut"><code>rchunks_mut</code></a>·method·on·<a·href="../../core/primitive.slice.html"·title="primitive·slice">slices</a>.</p>7 <p>This·struct·is·created·by·the·<a·href="https://doc.rust-lang.org/1.78.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.78.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_mut(<span·class="number">2</span>);</code></pre><a·class="test-arrow"·target="_blank"·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">Run</a></div>10 <span·class="kw">let·</span>iter·=·slice.rchunks_mut(<span·class="number">2</span>);</code></pre><a·class="test-arrow"·target="_blank"·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">Run</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-Debug-for-RChunksMut%3C'a,+T%3E"·class="impl"><a·class="src·rightside"·href="../../src/core/slice/iter.rs.html#2704">source</a><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">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-Debug-for-RChunksMut%3C'a,+T%3E"·class="impl"><a·class="src·rightside"·href="https://doc.rust-lang.org/1.78.0/src/core/slice/iter.rs.html#2704">source</a><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
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#2704">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:·2325,·SHA:·e02b77146098ab409af269ddec3b3ba7611de63b2c46e769b03954c707d5013e·...·]/core/iter/traits/double_ended/trait.DoubleEndedIterator.html#method.nth_back"·class="fn">nth_back</a>(12 ····T:·<a·class="trait"·href="../fmt/trait.Debug.html"·title="trait·alloc::fmt::Debug">Debug</a>·+·'a,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.fmt"·class="method·trait-impl"><a·class="src·rightside"·href="https://doc.rust-lang.org/1.78.0/src/core/slice/iter.rs.html#2704">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:·2649,·SHA:·7630acf7a0cd4c59c7b4602713648e5967fe5d41900fce19600ac30176ce016b·...·]/core/iter/traits/double_ended/trait.DoubleEndedIterator.html#method.nth_back"·class="fn">nth_back</a>(
13 ····&amp;mut·self,13 ····&amp;mut·self,
14 ····n:·<a·class="primitive"·href="../../core/primitive.usize.html">usize</a>14 ····n:·<a·class="primitive"·href="https://doc.rust-lang.org/1.78.0/core/primitive.usize.html">usize</a>
15 )·-&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:·7cd75bf03cdfae32a29ee1e14f6483365ee82af090d659cd98361e9886838310·...·]/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 )·-&gt;·<a·class="enum"·href="https://doc.rust-lang.org/1.78.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:·4a2fd0a3e8cdf23ccfc81eb5e3d364e7065c03956978c7f0938568ea12fabd3e·...·]/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.78.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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(B,·Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.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.78.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.7[·...·truncated·by·diffoscope;·len:·3,·SHA:·7b1bd53949b752d143d871408483b5382371b5bc48d195d0c040ec93cfa2748b·...·]/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:·74b709f2c818a4eda5d85ea863eb2d8af72c87564dbab2746e67feafb0cbb9a3·...·]/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.78.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:·d66ed7e195a53e9945339ef1976aed455dcf80228d8e5b7b0c69a64c3983fea1·...·]/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.78.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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(B,·Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/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:·f8bdf1e28866c7668477ab391452c7cfa7fd52cc69b633e782a157931421b39b·...·]/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.78.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:·c264047794019a6dcf05728ba6a6ee1f8f07c7209958b3366ba94546b527ecdc·...·]/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.78.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:·8525,·SHA:·220e72f0438fbc568571def4e47173a2b6d4b5b3dbdad4cb9b6cdae5abd73814·...·]/core/primitive.usize.html">usize</a>&gt;(24 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·9821,·SHA:·ac8e40a6fbd9908841efa4cc7f1ef5be35aa2832613c6ddad7b21dc31a12b4ae·...·]/core/primitive.usize.html">usize</a>&gt;(
25 ····&amp;mut·self25 ····&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.78.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.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title=[·...·truncated·by·diffoscope;·len:·381,·SHA:·88c48923c9b7ea5cc47c1087c60e09656e81d4671c58071ba2bef826335388bc·...·]/core/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:·35097ac20cb94a94d329a7511e21173c3e63fd8ce0a6d69b63b12136ae10fe6d·...·]/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.78.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></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:·3b082a2bc331439bfa16e12f26774fc7db23f44625156e2161c751eb349fb5c0·...·]/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.78.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:·5667b9b6c9778ff3b9d23ed0a110e7ab9d3fccc786fdcaca8c17edf996236439·...·]/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.78.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:·e83c903581753673e083ce8dd809879a2fc81ab3050eb6db267d7fa26b15e035·...·]/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.78.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:·1c6bb9803ee8832ebd4c28a08a952178165595b6870cf35d3c89454b9da828b2·...·]/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.78.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.78.0/core/iter/traits/it[·...·truncated·by·diffoscope;·len:·1329,·SHA:·d9299c8edc606ed82f24d61ce441bec451141d684c2a9a75074f5b19c57f196c·...·]/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.78.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:·c1b5e692e89c9c809075ee8ee72fb15a9ec46c075b08450e1f707d672a224750·...·]/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.78.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:·98627729f77dcf1c9d258f343354ba600b7134c6b3929080f231e8de7155b70b·...·]/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.78.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.78.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.78.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:·d6282409add0999f2130eb6bbe6d0473ce96bf2544799e8bc22156f3c2d2e0dd·...·]/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.78.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:·7301b6beba7b6885849be90a625df68ef739a5374af456c51fe2e81d91a25363·...·]/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.78.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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::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:·fb4c9589a16c7b6d697c109d1193d2f1e763e5dd967101c2fd92b32416972229·...·]/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.78.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:·98f6effefa44d759c249143d83623f0055d937382bfc398b7e1f5e92cd413657·...·]/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.78.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:·7abbad666ec88a1053b8aca2a481d629a3ef3596eddb570c381205fa2d859a52·...·]/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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·916,·SHA:·30d0b2a76513c5a880e9aee43e92b18805845cfcfe5783f62dc090167a439e63·...·]/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.78.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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·140,·SHA:·752f473b57e7444ebfddf5ea7fd40a332e83ec55524a6c31b5ee0f82a5dea819·...·]/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:·7da07154834a15b8ae55b4fd41479da070ccbd27e071909f81698570c306a081·...·]/core/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.78.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:·76aa2ad154f88085ee3f8a22721a7e6812680bac785d19059532407f50da1801·...·]/core/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.78.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:·c89169e5bf1c4724c7b411e568b6dad6475896f2606f557b3d708359ef71f5cc·...·]/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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·1052,·SHA:·110b47c7083083d565fcfc89337fddc8e5c87e81b2f720f3f7b0ded55e8500fb·...·]/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.78.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:·53634008856676c70c32b501f7ec498c1f86d123cc9b5b898256a69895ff31fc·...·]/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.78.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:·8464264e074dde5d84f0414ab3b5b2d8da83f3c9e3ca04c45458241580a8c80d·...·]/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.78.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.78.0/core/iter/adapte[·...·truncated·by·diffoscope;·len:·175,·SHA:·16fe7225bf05b478e2828b347c3d23ded9a22f89d8887a2c65d9f7b3faf1b0e7·...·]/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:·77dd41e041d66c618d306e900a9159cf1b00478b8f37e5692be62119a1d4fcda·...·]/core/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.78.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:·00ccbb673c11ed48d8c6aa2a3f8984fb298202e7bccfa42f1ac21290fcc0fb06·...·]/core/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.78.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:·c18326af66652e52fa627bfd0312af7fa2ad0ddc162b12a46e61047a031b0264·...·]/core/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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·1234,·SHA:·3b805567411cdcebed740f9e8d400dbe7fb487504f40e284544a140155090fdf·...·]/core/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.78.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:·39eeddf219b211245393e51a591d5064c740fa9be49d88883d8a6474679741ad·...·]/core/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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·1058,·SHA:·b390dbdda8d7e93604b5ecd906a93efd03fe19bdaf41cf12893fd361bf974307·...·]/core/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.78.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:·9369fa85b74ff841f7401949cadba6dfbbbeead2a99568f20dcfd5aab20d61ab·...·]/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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·1163,·SHA:·5772149166d344bf8fa5ebbd9db8693a8f2e5f031c50338e8f1523ef72f814d6·...·]/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:·a25e81a74cc82c1837477e2b0cea682fff9f43550640901b8010ac501ca69e3d·...·]/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.78.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:·6216516fe581c401abda3c95818192e8f030e2008c9bbdbaafebba16f33ea9bd·...·]/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.78.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:·de8f1023275132502c1569b0ef9a557dc98eaf60aae97cdb916e52f9f55100aa·...·]/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.78.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:·485843399c56e24bdf020ff0610d0ce1f62fbac5530d9880a1a7417105e3d70f·...·]/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.78.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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(<a·class="primitive"·href="https://doc.rust-lang.org/1.78.0/core/primitive.reference.html">&amp;mut·St</a>,·Self::<a·class="associatedty[·...·truncated·by·diffoscope;·len:·449,·SHA:·f12c268a8a8111b9e7126ad78bf5523a63733caa63d187c4fe792309ea41acdf·...·]/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:·8b31595e3cee3022819032aac82e3df712188a2a6dcc20da6939262e5e528591·...·]/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.78.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.78.0/core/iter/trai[·...·truncated·by·diffoscope;·len:·690,·SHA:·371190e5c1bf9b7dde6e84447965a69946212b977b9eb6d89048fbe34c5dda1c·...·]/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.78.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.78.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:·9b6a337a3ad68c2a987b52450c153f87a04a8ed9e83603d26077fe6e70d61edf·...·]/core/iter/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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·976,·SHA:·2a9182f6fe88e0b8a9b1ae1f46cace940cc0b8736033c354c0f0ccbf1c196e7a·...·]/core/iter/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.78.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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;[Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtyp[·...·truncated·by·diffoscope;·len:·135,·SHA:·0b06a6094d42ccbc8bce5b01c4383961fe7f1967f05e4c9f1ff33e71e425fb26·...·]/core/primitive.array.html">N</a>])·-&gt;·R,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iter_map_windows</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/87155">#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.78.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:·238f6b49b3e28d725c57040edaa60bfbb34f140155e6af1d30eab52da1c7274f·...·]/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.78.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:·0d33056cee8a4f9b70b573c0adecc2f3599a2f8d9fa9f2c2044e9118ab134f73·...·]/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:·cfd3edf89fe5aca24b994f83b0d7da765620394e35140e694d98233d4d92481b·...·]/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.78.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.78.0/core/op[·...·truncated·by·diffoscope;·len:·841,·SHA:·9cba1b175fb3726d7f1f01da9be7c1a56568a68e4ce7915a468b730902daf8d3·...·]/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.78.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:·772,·SHA:·31d2052382378512fa905c6d5297d384eac7b7f126141ce561719c0e27cc9d39·...·]/core/primitive.reference.html">&amp;mut·Self</a><div·class="where">where73 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·934,·SHA:·ea20d2e0fe9388580ea08100baa9120b5e9b6cb48f43fc846f15db8b9649e7f6·...·]/core/primitive.reference.html">&amp;mut·Self</a><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:·98760b16b1ed91f9558e6e2637724a4608316181d5f6f4d236e896a83eca9af9·...·]/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.78.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.78.0/core/it[·...·truncated·by·diffoscope;·len:·523,·SHA:·97064c705f6f4bdf74469c54fabcf580d21893127d1b4cd9a9c1018a717ef153·...·]/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.78.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.78.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:·e5d524e874326d0b9b733f5ee809c6595cde869afab0cc3d4ba8454093f420da·...·]/core/primitive.reference.html">&amp;mut·E</a><div·class="where">where76 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.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.78.0/core/iter/tr[·...·truncated·by·diffoscope;·len:·728,·SHA:·01937c2dc314c259495665570ae249c94b4a5b0719718f5f1188e6fc64ecf487·...·]/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.78.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.78.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:·b0297783e056393a542c4058b42c18523a86c961c1b6ce3bc94342c1a2c10c58·...·]/core/primitive.tuple.html">(B,·B)</a><div·class="where">where78 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></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:·00bd47017b1bdd1bbe2c3fc932d955a8aa2f7f5eff8c00e3001ae28a982a5883·...·]/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.78.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.78.0/core/default/trait.Default.html"·title="trait·core::default::Default">Default</a>·+·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/collect/trait.Extend.html"·title="trait·core::iter::traits::collec[·...·truncated·by·diffoscope;·len:·95,·SHA:·8b3be1d0042cae0550f865faf5849221240bdf04eb1b2107605b72d48c3ad29c·...·]/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:·5a1bcc1ddfc5fccf50d61bf2b8879dae247aa12c0b23ba2f437fd2a345cabac7·...·]/core/primitive.usize.html">usize</a><div·class="where">where81 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·995,·SHA:·bec3765fdab56713186e2454cd84738b5b28e3280a2f3d5a25cefdbc3089b520·...·]/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.78.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>·+·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/double_ended/trait.DoubleEndedIterator.html"·title="trait·core::iter::trai[·...·truncated·by·diffoscope;·len:·132,·SHA:·e5b2cf5f56946ede1e190ed09879c5821e2de04cf8e5d145142eeb40c6340982·...·]/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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(<a·class="primitive"·href="https://doc.rust-lang.org/1.78.0/core/primitive.reference.html">&amp;T</a>)·-&gt;·<a·class="primitive"·href="[·...·truncated·by·diffoscope;·len:·32,·SHA:·63d052a8ced32bf927ffadd7e884c08caf4970e85dfdf6be0e568d49b174da96·...·]/core/primitive.bool.html">bool</a>,</div></h4></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:·97056c44eac6a0f986fb2c8edec37302cc06edf44a6c6f7153a5d8623d8d6c0d·...·]/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.78.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:·0c224636c18baa273f69de21f90083317f2ea0b7367a3f0d0f1c0ace55a36f79·...·]/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.78.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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·135,·SHA:·51ff5f5c7ebd8440623ea71b125c5a5837e809e308fe1a13fbe19cddb941dbd9·...·]/core/primitive.bool.html">bool</a>,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iter_is_partitioned</code>&nbsp;<a·href="https://github.com/rust-lang/rust/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:·6f406a351b93047f56fa70265a6bf28ec6874f75cd6cc5a39d51c7af462f2992·...·]/core/iter/traits/iterator/trait.Iterator.html#method.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.78.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:·2c74873f4e5ba70004a1c7edd1cc3f9e2d91271295dd1591e2d26848df4c02ba·...·]/core/iter/traits/iterator/trait.Iterator.html#method.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.78.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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(B,·Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.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.78.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:·eecdce021399d206eb3ef5af12ee7663b4eb0dca55b0f411c7fa66f605b6b2e2·...·]/core/iter/traits/iterator/trait.Iterator.html#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.78.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:·52912e82c4b0a760d06f77eb4ee3a59ba70dd76cb532954900c73ae94c652674·...·]/core/iter/traits/iterator/trait.Iterator.html#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.78.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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.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.78.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.78.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:·ffdacd6b524bc823efebbf23dc0f77317a07fe9c8b691f2ea18db7aa0c08b146·...·]/core/iter/traits/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.78.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:·1d6c4809cea8748e901d3f94777f450d430f3161f6ac05ed1c178d9327f966a3·...·]/core/iter/traits/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.78.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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(B,·Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::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:·dbe3a08fe63abd47570741e71208c31aaf51152feac5917db07665a1f56bb3e3·...·]/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.78.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:·b60215068a6d9721be05f81098c51167d7138c4042f140cad42f77c4df43f597·...·]/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.78.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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·352,·SHA:·e7c3c296abe2c0a183967153e4ae7fd50bafa2ae7088e3e78b3b48fee253adc6·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::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:·a9dce8bb557b5a11426bf2ffcbd5eea7c6c870833e3ee5bb072dcaaa11687b0c·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_reduce"·class="fn">try_reduce</a>&lt;F,·R&gt;(103 operation.·<a·href="https://doc.rust-lang.org/1.78.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:·7a18fdd041b1a001b4a8feb289ee127fd9240232239269eb35dc3b8f74783ec9·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_reduce"·class="fn">try_reduce</a>&lt;F,·R&gt;(
104 ····&amp;mut·self,104 ····&amp;mut·self,
105 ····f:·F105 ····f:·F
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.78.0/core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&gt;::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/ops/try_trait/trait.Try.html#associatedtype.Residual"·title="type[·...·truncated·by·diffoscope;·len:·754,·SHA:·6fb4dfdb6b4da68921c1e7f8b75d99cf293d58318d684a840254ce9576957bea·...·]/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.78.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:·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:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·140,·SHA:·c27972e6fa3464c9476eaa185e8657edb6bb294f148403f3d079285294a9f909·...·]/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·=·Self::<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.78.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.78.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.78.0/core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&gt;::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/ops/try_trait/trait.Try.html#associatedtype.Residual"·title="type[·...·truncated·by·diffoscope;·len:·412,·SHA:·22b8cbb007e5cce82b9d13a65bfa56aa8d83c32541fac25f4d9b3857b0540908·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;&gt;,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iterator_try_reduce</code>&nbsp;<a·href="https://github.com/rust-lang/rust/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:·65b80c848af6e465c8c5aef4ec8d3faaa399d30c8427c9507fda7b3bd1d3ea93·...·]/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.78.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:·bc0d658d56e348823de15386e1cd4ab49109f3a7a055a4573a19391b47071193·...·]/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.78.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:·95a840b532d3d621bde4032d63854eb0a481248e2b4bbb3ef058dbffb4dae4fa·...·]/core/primitive.bool.html">bool</a><div·class="where">where113 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·1018,·SHA:·e61cd6bdd36729cc38e57fcaea2ccb91a23a5acbda3c8986071f19bf1ecfc52a·...·]/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.78.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:·f828c62edd4fe85e217286f359b56c116e14ed18bb292ba1cc13d3ed7146909e·...·]/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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·1172,·SHA:·e64ab74d116d286191ad43d9d9e10411fc011c23724aa806e9a8f9b0be0757e3·...·]/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.78.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:·21d7086b3ce0092e3f7a6a41174339bbd8724e7d186158db4db3385a73d94e8e·...·]/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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·1051,·SHA:·ecc0b8fccd861464760f9ae047ff6ab98c91a1db010cb5fa59a8c2ab883db7c4·...·]/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.78.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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·130,·SHA:·130a13019dc175d02304b4f550157e2f13ac15c2f25a979c74161d10b146ab89·...·]/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:·ac4da3337aac1ec10038e246be9cb719eeb5af1acc709f5a6a25b91900c56f53·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_find"·class="fn">try_find</a>&lt;F,·R&gt;(120 the·first·non-none·result.·<a·href="https://doc.rust-lang.org/1.78.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:·8ced1b10e78750774c5c8ed995ed83dcd13983aa75d329acf8069da106ab9f4a·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_find"·class="fn">try_find</a>&lt;F,·R&gt;(
121 ····&amp;mut·self,121 ····&amp;mut·self,
122 ····f:·F122 ····f:·F
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.78.0/core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&gt;::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/ops/try_trait/trait.Try.html#associatedtype.Residual"·title="type[·...·truncated·by·diffoscope;·len:·626,·SHA:·95f9831257b68862cbcbf54f0ad2ff4e597a4c9f763112d1da8a0897dadcf872·...·]/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.78.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;·R,125 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·R,
126 ····R:·<a·class="trait"·href="../../core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&lt;Output·=·<a·class="primitive"·href="../../core/primitive.bool.html">bool</a>&gt;,126 ····R:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.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.78.0/core/primitive.bool.html">bool</a>&gt;,
127 ····&lt;R·as·<a·class="trait"·href="../../core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&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·returns127 ····&lt;R·as·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&gt;::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/ops/try_trait/trait.Try.html#associatedtype.Residual"·title="type[·...·truncated·by·diffoscope;·len:·412,·SHA:·22b8cbb007e5cce82b9d13a65bfa56aa8d83c32541fac25f4d9b3857b0540908·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;&gt;,</div></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; 79469/304574 bytes (26.09%) of diff not shown.
304 KB
./usr/share/doc/rust-web-doc/html/alloc/slice/struct.RSplit.html
    
Offset 1, 230 lines modifiedOffset 1, 230 lines modified
1 <!DOCTYPE·html><html·lang="en"><head><meta·charset="utf-8"><meta·name="viewport"·content="width=device-width,·initial-scale=1.0"><meta·name="generator"·content="rustdoc"><meta·name="description"·content="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.write(`<link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/SourceSerif4-Regular-46f98efaafac5295.ttf.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/FiraSans-Regular-018c141bf0843ffd.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/FiraSans-Medium-8f9a781e4970d388.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/SourceCodePro-Regular-562dcc5011b6de7d.ttf.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/SourceCodePro-Semibold-d899c5a5c4aeb14a.ttf.woff2">`)</script><link·rel="stylesheet"·href="../../static.files/normalize-76eba96aa4d2e634.css"><link·rel="stylesheet"·href="../../static.files/rustdoc-35f9e32502181f1e.css"><meta·name="rustdoc-vars"·data-root-path="../../"·data-static-root-path="../../static.files/"·data-current-crate="alloc"·data-themes=""·data-resource-suffix="1.78.0"·data-rustdoc-version="1.78.0"·data-channel="1.78.0"·data-search-js="search-42d8da7a6b9792c2.js"·data-settings-js="settings-4313503d2e1961c2.js"·><script·src="../../static.files/storage-4c98445ec4002617.js"></script><script·defer·src="sidebar-items1.78.0.js"></script><script·defer·src="../../static.files/main-12cf3b4f4f9dc36d.js"></script><noscript><link·rel="stylesheet"·href="../../static.files/noscript-04d5337699b92874.css"></noscript><link·rel="alternate·icon"·type="image/png"·href="../../static.files/favicon-16x16-8b506e7a72182f1c.png"><link·rel="alternate·icon"·type="image/png"·href="../../static.files/favicon-32x32-422f7d1d52889060.png"><link·rel="icon"·type="image/svg+xml"·href="../../static.files/favicon-2c020d218678b618.svg"></head><body·class="rustdoc·struct"><!--[if·lte·IE·11]><div·class="warning">This·old·browser·is·unsupported·and·will·most·likely·display·funky·things.</div><![endif]--><nav·class="mobile-topbar"><button·class="sidebar-menu-toggle"·title="show·sidebar"></button><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-151179464ae7ed46.svg"·alt=""></a></nav><nav·class="sidebar"><div·class="sidebar-crate"><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-151179464ae7ed46.svg"·alt="logo"></a><h2><a·href="../../alloc/index.html">alloc</a><span·class="version">1.78.0</span></h2></div><h2·class="location"><a·href="#">RSplit</a></h2><div·class="sidebar-elems"><section><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">Clone</a></li><li><a·href="#impl-Debug-for-RSplit%3C'_,+T,+P%3E">Debug</a></li><li><a·href="#impl-DoubleEndedIterator-for-RSplit%3C'a,+T,+P%3E">DoubleEndedIterator</a></li><li><a·href="#impl-FusedIterator-for-RSplit%3C'_,+T,+P%3E">FusedIterator</a></li><li><a·href="#impl-Iterator-for-RSplit%3C'a,+T,+P%3E">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">Freeze</a></li><li><a·href="#impl-RefUnwindSafe-for-RSplit%3C'a,+T,+P%3E">RefUnwindSafe</a></li><li><a·href="#impl-Send-for-RSplit%3C'a,+T,+P%3E">Send</a></li><li><a·href="#impl-Sync-for-RSplit%3C'a,+T,+P%3E">Sync</a></li><li><a·href="#impl-Unpin-for-RSplit%3C'a,+T,+P%3E">Unpin</a></li><li><a·href="#impl-UnwindSafe-for-RSplit%3C'a,+T,+P%3E">UnwindSafe</a></li></ul><h3><a·href="#blanket-implementations">Blanket·Implementations</a></h3><ul·class="block·blanket-implementation"><li><a·href="#impl-Any-for-T">Any</a></li><li><a·href="#impl-Borrow%3CT%3E-for-T">Borrow&lt;T&gt;</a></li><li><a·href="#impl-BorrowMut%3CT%3E-for-T">BorrowMut&lt;T&gt;</a></li><li><a·href="#impl-From%3CT%3E-for-T">From&lt;T&gt;</a></li><li><a·href="#impl-Into%3CU%3E-for-T">Into&lt;U&gt;</a></li><li><a·href="#impl-IntoIterator-for-I">IntoIterator</a></li><li><a·href="#impl-ToOwned-for-T">ToOwned</a></li><li><a·href="#impl-TryFrom%3CU%3E-for-T">TryFrom&lt;U&gt;</a></li><li><a·href="#impl-TryInto%3CU%3E-for-T">TryInto&lt;U&gt;</a></li></ul></section><h2><a·href="index.html">In·alloc::slice</a></h2></div></nav><div·class="sidebar-resizer"></div>1 <!DOCTYPE·html><html·lang="en"><head><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.write(`<link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/SourceSerif4-Regular-46f98efaafac5295.ttf.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/FiraSans-Regular-018c141bf0843ffd.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/FiraSans-Medium-8f9a781e4970d388.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/SourceCodePro-Regular-562dcc5011b6de7d.ttf.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/SourceCodePro-Semibold-d899c5a5c4aeb14a.ttf.woff2">`)</script><link·rel="stylesheet"·href="../../static.files/normalize-76eba96aa4d2e634.css"><link·rel="stylesheet"·href="../../static.files/rustdoc-35f9e32502181f1e.css"><meta·name="rustdoc-vars"·data-root-path="../../"·data-static-root-path="../../static.files/"·data-current-crate="alloc"·data-themes=""·data-resource-suffix="1.78.0"·data-rustdoc-version="1.78.0"·data-channel="1.78.0"·data-search-js="search-42d8da7a6b9792c2.js"·data-settings-js="settings-4313503d2e1961c2.js"·><script·src="../../static.files/storage-4c98445ec4002617.js"></script><script·defer·src="sidebar-items1.78.0.js"></script><script·defer·src="../../static.files/main-12cf3b4f4f9dc36d.js"></script><noscript><link·rel="stylesheet"·href="../../static.files/noscript-04d5337699b92874.css"></noscript><link·rel="alternate·icon"·type="image/png"·href="../../static.files/favicon-16x16-8b506e7a72182f1c.png"><link·rel="alternate·icon"·type="image/png"·href="../../static.files/favicon-32x32-422f7d1d52889060.png"><link·rel="icon"·type="image/svg+xml"·href="../../static.files/favicon-2c020d218678b618.svg"></head><body·class="rustdoc·struct"><!--[if·lte·IE·11]><div·class="warning">This·old·browser·is·unsupported·and·will·most·likely·display·funky·things.</div><![endif]--><nav·class="mobile-topbar"><button·class="sidebar-menu-toggle"·title="show·sidebar"></button><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-151179464ae7ed46.svg"·alt=""></a></nav><nav·class="sidebar"><div·class="sidebar-crate"><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-151179464ae7ed46.svg"·alt="logo"></a><h2><a·href="../../alloc/index.html">alloc</a><span·class="version">1.78.0</span></h2></div><h2·class="location"><a·href="#">RSplit</a></h2><div·class="sidebar-elems"><section><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">Clone</a></li><li><a·href="#impl-Debug-for-RSplit%3C'_,+T,+P%3E">Debug</a></li><li><a·href="#impl-DoubleEndedIterator-for-RSplit%3C'a,+T,+P%3E">DoubleEndedIterator</a></li><li><a·href="#impl-FusedIterator-for-RSplit%3C'_,+T,+P%3E">FusedIterator</a></li><li><a·href="#impl-Iterator-for-RSplit%3C'a,+T,+P%3E">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">Freeze</a></li><li><a·href="#impl-RefUnwindSafe-for-RSplit%3C'a,+T,+P%3E">RefUnwindSafe</a></li><li><a·href="#impl-Send-for-RSplit%3C'a,+T,+P%3E">Send</a></li><li><a·href="#impl-Sync-for-RSplit%3C'a,+T,+P%3E">Sync</a></li><li><a·href="#impl-Unpin-for-RSplit%3C'a,+T,+P%3E">Unpin</a></li><li><a·href="#impl-UnwindSafe-for-RSplit%3C'a,+T,+P%3E">UnwindSafe</a></li></ul><h3><a·href="#blanket-implementations">Blanket·Implementations</a></h3><ul·class="block·blanket-implementation"><li><a·href="#impl-Any-for-T">Any</a></li><li><a·href="#impl-Borrow%3CT%3E-for-T">Borrow&lt;T&gt;</a></li><li><a·href="#impl-BorrowMut%3CT%3E-for-T">BorrowMut&lt;T&gt;</a></li><li><a·href="#impl-From%3CT%3E-for-T">From&lt;T&gt;</a></li><li><a·href="#impl-Into%3CU%3E-for-T">Into&lt;U&gt;</a></li><li><a·href="#impl-IntoIterator-for-I">IntoIterator</a></li><li><a·href="#impl-ToOwned-for-T">ToOwned</a></li><li><a·href="#impl-TryFrom%3CU%3E-for-T">TryFrom&lt;U&gt;</a></li><li><a·href="#impl-TryInto%3CU%3E-for-T">TryInto&lt;U&gt;</a></li></ul></section><h2><a·href="index.html">In·alloc::slice</a></h2></div></nav><div·class="sidebar-resizer"></div>
2 ····<main><div·class="width-limiter"><nav·class="sub"><form·class="search-form"><span></span><div·id="sidebar-button"·tabindex="-1"><a·href="../../alloc/all.html"·title="show·sidebar"></a></div><input·class="search-input"·name="search"·aria-label="Run·search·in·the·documentation"·autocomplete="off"·spellcheck="false"·placeholder="Click·or·press·‘S’·to·search,·‘?’·for·more·options…"·type="search"><div·id="help-button"·tabindex="-1"><a·href="../../help.html"·title="help">?</a></div><div·id="settings-menu"·tabindex="-1"><a·href="../../settings.html"·title="settings"><img·width="22"·height="22"·alt="Change·settings"·src="../../static.files/wheel-7b819b6101059cd0.svg"></a></div></form></nav><section·id="main-content"·class="content"><div·class="main-heading"><h1>Struct·<a·href="../index.html">alloc</a>::<wbr><a·href="index.html">slice</a>::<wbr><a·class="struct"·href="#">RSplit</a><button·id="copy-path"·title="Copy·item·path·to·clipboard"><img·src="../../static.files/clipboard-7571035ce49a181d.svg"·width="19"·height="18"·alt="Copy·item·path"></button></h1><span·class="out-of-band"><span·class="since"·title="Stable·since·Rust·version·1.27.0">1.27.0</span>···<a·class="src"·href="../../src/core/slice/iter.rs.html#921">source</a>···<button·id="toggle-all-docs"·title="collapse·all·docs">[<span>&#x2212;</span>]</button></span></div><pre·class="rust·item-decl"><code>pub·struct·RSplit&lt;'a,·T,·P&gt;<div·class="where">where2 ····<main><div·class="width-limiter"><nav·class="sub"><form·class="search-form"><span></span><div·id="sidebar-button"·tabindex="-1"><a·href="../../alloc/all.html"·title="show·sidebar"></a></div><input·class="search-input"·name="search"·aria-label="Run·search·in·the·documentation"·autocomplete="off"·spellcheck="false"·placeholder="Click·or·press·‘S’·to·search,·‘?’·for·more·options…"·type="search"><div·id="help-button"·tabindex="-1"><a·href="../../help.html"·title="help">?</a></div><div·id="settings-menu"·tabindex="-1"><a·href="../../settings.html"·title="settings"><img·width="22"·height="22"·alt="Change·settings"·src="../../static.files/wheel-7b819b6101059cd0.svg"></a></div></form></nav><section·id="main-content"·class="content"><div·class="main-heading"><h1>Struct·<a·href="../index.html">alloc</a>::<wbr><a·href="index.html">slice</a>::<wbr><a·class="struct"·href="#">RSplit</a><button·id="copy-path"·title="Copy·item·path·to·clipboard"><img·src="../../static.files/clipboard-7571035ce49a181d.svg"·width="19"·height="18"·alt="Copy·item·path"></button></h1><span·class="out-of-band"><span·class="since"·title="Stable·since·Rust·version·1.27.0">1.27.0</span>···<a·class="src"·href="https://doc.rust-lang.org/1.78.0/src/core/slice/iter.rs.html#921">source</a>···<button·id="toggle-all-docs"·title="collapse·all·docs">[<span>&#x2212;</span>]</button></span></div><pre·class="rust·item-decl"><code>pub·struct·RSplit&lt;'a,·T,·P&gt;<div·class="where">where
3 ····T:·'a,3 ····T:·'a,
4 ····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·predicate4 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(<a·class="primitive"·href="https://doc.rust-lang.org/1.78.0/core/primitive.reference.html">&amp;T</a>)·-&gt;·<a·class="primitive"·href="[·...·truncated·by·diffoscope;·len:·32,·SHA:·63d052a8ced32bf927ffadd7e884c08caf4970e85dfdf6be0e568d49b174da96·...·]/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
5 function,·starting·from·the·end·of·the·slice.</p>5 function,·starting·from·the·end·of·the·slice.</p>
6 <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>6 <p>This·struct·is·created·by·the·<a·href="https://doc.rust-lang.org/1.78.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.78.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">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 <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>];
9 <span·class="kw">let·</span>iter·=·slice.rsplit(|num|·<span·class="kw-2">*</span>num·==·<span·class="number">0</span>);</code></pre><a·class="test-arrow"·target="_blank"·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+iter+=+slice.rsplit(%7Cnum%7C+*num+==+0);%0A%7D&amp;edition=2021">Run</a></div>9 <span·class="kw">let·</span>iter·=·slice.rsplit(|num|·<span·class="kw-2">*</span>num·==·<span·class="number">0</span>);</code></pre><a·class="test-arrow"·target="_blank"·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+iter+=+slice.rsplit(%7Cnum%7C+*num+==+0);%0A%7D&amp;edition=2021">Run</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-Clone-for-RSplit%3C'_,+T,+P%3E"·class="impl"><a·class="src·rightside"·href="../../src/core/slice/iter.rs.html#950-952">source</a><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">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-Clone-for-RSplit%3C'_,+T,+P%3E"·class="impl"><a·class="src·rightside"·href="https://doc.rust-lang.org/1.78.0/src/core/slice/iter.rs.html#950-952">source</a><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.78.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
11 ····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:·1755,·SHA:·8569456c3911550d16592f1d4d12871c001a49af6af4a1868ea669756fe97bf8·...·]/src/core/slice/iter.rs.html#936-938">source</a><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">where11 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/clone/trait.Clone.html"·title="trait·core::clone::Clone">Clone</a>·+·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(<a·cla[·...·truncated·by·diffoscope;·len:·2079,·SHA:·00eb655f7b5e223328546533742ce654d80adc4eb137cb6055f7244fc14a8f30·...·]/src/core/slice/iter.rs.html#936-938">source</a><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
12 ····T:·<a·class="trait"·href="../fmt/trait.Debug.html"·title="trait·alloc::fmt::Debug">Debug</a>,12 ····T:·<a·class="trait"·href="../fmt/trait.Debug.html"·title="trait·alloc::fmt::Debug">Debug</a>,
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:·1331,·SHA:·50540a0aa80805de4ae5cf4eaf0b8694257ba6e6ca4a0c9e213d15076089e8f1·...·]/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">where13 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(<a·class="primitive"·href="https://doc.rust-lang.org/1.78.0/core/primitive.reference.html">&amp;T</a>)·-&gt;·<a·class="primitive"·href="[·...·truncated·by·diffoscope;·len:·1547,·SHA:·73cb7a4be76b4eb2809cd219c432bb5a3d5dd8e36273a24b03726a53081eb0a3·...·]/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
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:·3652,·SHA:·0e279112f2831fe2b136f97c4199a82d5a821283940cd038c7dde1fe633341b3·...·]/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 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(<a·class="primitive"·href="https://doc.rust-lang.org/1.78.0/core/primitive.reference.html">&amp;T</a>)·-&gt;·<a·class="primitive"·href="[·...·truncated·by·diffoscope;·len:·4300,·SHA:·8af2a241edae374c22d43bb46d39e35736112dd3c8716ec1f93654993fa007ca·...·]/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.78.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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(B,·Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.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.78.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.7[·...·truncated·by·diffoscope;·len:·3,·SHA:·7b1bd53949b752d143d871408483b5382371b5bc48d195d0c040ec93cfa2748b·...·]/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"><a·class="src·rightside"·href="../../[·...·truncated·by·diffoscope;·len:·146,·SHA:·4cfb0b70f57b5a7c997c96dbb42df86deced5b28cc1314cdca3dd5951999652a·...·]/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.78.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:·227,·SHA:·d9a631ba10ac3bff250776d1b88fafd1dc2600a85efaeb230d74b370554921f1·...·]/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.78.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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(B,·Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/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"><a·class="src·rightside"·href="../../src/[·...·truncated·by·diffoscope;·len:·432,·SHA:·67f81690781110ba57e856c6472f64ae564c6111bf1517ca079341144fad6926·...·]/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.78.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"><a·class="src·[·...·truncated·by·diffoscope;·len:·567,·SHA:·93df7e37274a54330e79f0c46a536e2924412d10828995aec7ca5e0a43cbe82e·...·]/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.78.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:·715,·SHA:·e29cc1ba9d7735685f6ed8110af06321ac6e6149b7b214ed8566579de2d5e221·...·]/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">where23 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·877,·SHA:·d2c3cbe7a089e1e927ee401b6a1bdfb9ee3444d9652f04fdaa7b746da416dcb1·...·]/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
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:·2567,·SHA:·6218bcec65c37321551664b3a020f460e81f41e9cc58b8d019b06d9bac3daca3·...·]/core/primitive.usize.html">usize</a>&gt;(24 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(<a·class="primitive"·href="https://doc.rust-lang.org/1.78.0/core/primitive.reference.html">&amp;T</a>)·-&gt;·<a·class="primitive"·href="[·...·truncated·by·diffoscope;·len:·3080,·SHA:·49d5768eb4c3a3c48cf3d6de5ccb5f8aa284a8e664f3ce98cf127e44b713598e·...·]/core/primitive.usize.html">usize</a>&gt;(
25 ····&amp;mut·self25 ····&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.78.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.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title=[·...·truncated·by·diffoscope;·len:·381,·SHA:·88c48923c9b7ea5cc47c1087c60e09656e81d4671c58071ba2bef826335388bc·...·]/core/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:·602d17b58d1cf716882ddc867fc66cfda4f899bef17b038a48553e9133f60097·...·]/core/primitive.usize.html">usize</a><div·class="where">where27 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></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:·89791450da70cbd536c3cf8fbf2dd9891668362f9a252d3ee098222d19960bae·...·]/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:·675,·SHA:·5b5aaec46c04cf77d2fa06e88cd6f0a2bd8d201412bc325302bd2f8f21b39207·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;<div·class="where">where28 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.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:·84ae0beb16240102bae2355bb8c543b17f3f107e3c06b320839aa401eebb1945·...·]/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>,</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:·6b808f54a13578d2e276864bb3eb79ae7b452b8959e79f7ea7ab1180574b77fc·...·]/core/iter/adapters/step_by/struct.StepBy.html"·title="struct·core::iter::adapters::step_by::StepBy">StepBy</a>&lt;Self&gt;<div·class="where">where29 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.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.78.0/cor[·...·truncated·by·diffoscope;·len:·3504,·SHA:·6d21b6d637e0b2e9953a37a26fd19e00da089147d4acaf696c94d448de4ce419·...·]/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
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·starting·at·the·same·point,·but·stepping·by30 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.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
31 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:·5667b9b6c9778ff3b9d23ed0a110e7ab9d3fccc786fdcaca8c17edf996236439·...·]/core/iter/traits/collect/trait.IntoIterator.html#associatedtype.IntoIter"·title="type·core::iter::traits::collect::IntoIterator::IntoIter">IntoIter</a>&gt;<div·class="where">where31 the·given·amount·at·each·iteration.·<a·href="https://doc.rust-lang.org/1.78.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:·e83c903581753673e083ce8dd809879a2fc81ab3050eb6db267d7fa26b15e035·...·]/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.78.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>&lt;Item·=·Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title=[·...·truncated·by·diffoscope;·len:·1113,·SHA:·1c6bb9803ee8832ebd4c28a08a952178165595b6870cf35d3c89454b9da828b2·...·]/core/iter/traits/collect/trait.IntoIterator.html#associatedtype.IntoIter"·title="type·core::iter::traits::collect::IntoIterator::IntoIter">IntoIter</a>&gt;<div·class="where">where33 ····U:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.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.78.0/core/iter/traits/it[·...·truncated·by·diffoscope;·len:·1329,·SHA:·d9299c8edc606ed82f24d61ce441bec451141d684c2a9a75074f5b19c57f196c·...·]/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.78.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>,</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:·c1b5e692e89c9c809075ee8ee72fb15a9ec46c075b08450e1f707d672a224750·...·]/core/iter/adapters/intersperse/struct.IntersperseWith.html"·title="struct·core::iter::adapters::intersperse::IntersperseWith">IntersperseWith</a>&lt;Self,·G&gt;<div·class="where">where35 ····U:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.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:·98627729f77dcf1c9d258f343354ba600b7134c6b3929080f231e8de7155b70b·...·]/core/iter/adapters/intersperse/struct.IntersperseWith.html"·title="struct·core::iter::adapters::intersperse::IntersperseWith">IntersperseWith</a>&lt;Self,·G&gt;<div·class="where">where
36 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,36 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
37 ····G:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>()·-&gt;·Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iter_intersperse</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/79524">#79524</a>)</span></div></span><div·class='docblock'>Creates·a·new·iterator·which·places·an·item·generated·by·<code>separator</code>37 ····G:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.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.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iter_intersperse</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/79524">#79524</a>)</span></div></span><div·class='docblock'>Creates·a·new·iterator·which·places·an·item·generated·by·<code>separator</code>
38 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:·d6282409add0999f2130eb6bbe6d0473ce96bf2544799e8bc22156f3c2d2e0dd·...·]/core/iter/adapters/map/struct.Map.html"·title="struct·core::iter::adapters::map::Map">Map</a>&lt;Self,·F&gt;<div·class="where">where38 between·adjacent·items·of·the·original·iterator.·<a·href="https://doc.rust-lang.org/1.78.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:·7301b6beba7b6885849be90a625df68ef739a5374af456c51fe2e81d91a25363·...·]/core/iter/adapters/map/struct.Map.html"·title="struct·core::iter::adapters::map::Map">Map</a>&lt;Self,·F&gt;<div·class="where">where
39 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,39 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.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::Item">Item</a>)·-&gt;·B,</div></h4></section></summary><div·class='docblock'>Takes·a·closure·and·creates·an·iterator·which·calls·that·closure·on·each40 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·B,</div></h4></section></summary><div·class='docblock'>Takes·a·closure·and·creates·an·iterator·which·calls·that·closure·on·each
41 element.·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.map">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:·fb4c9589a16c7b6d697c109d1193d2f1e763e5dd967101c2fd92b32416972229·...·]/core/iter/traits/iterator/trait.Iterator.html#method.for_each"·class="fn">for_each</a>&lt;F&gt;(self,·f:·F)<div·class="where">where41 element.·<a·href="https://doc.rust-lang.org/1.78.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:·98f6effefa44d759c249143d83623f0055d937382bfc398b7e1f5e92cd413657·...·]/core/iter/traits/iterator/trait.Iterator.html#method.for_each"·class="fn">for_each</a>&lt;F&gt;(self,·f:·F)<div·class="where">where
42 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,42 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.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:·754,·SHA:·7abbad666ec88a1053b8aca2a481d629a3ef3596eddb570c381205fa2d859a52·...·]/core/iter/adapters/filter/struct.Filter.html"·title="struct·core::iter::adapters::filter::Filter">Filter</a>&lt;Self,·P&gt;<div·class="where">where43 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·916,·SHA:·30d0b2a76513c5a880e9aee43e92b18805845cfcfe5783f62dc090167a439e63·...·]/core/iter/adapters/filter/struct.Filter.html"·title="struct·core::iter::adapters::filter::Filter">Filter</a>&lt;Self,·P&gt;<div·class="where">where
44 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,44 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.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:·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·element45 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·140,·SHA:·752f473b57e7444ebfddf5ea7fd40a332e83ec55524a6c31b5ee0f82a5dea819·...·]/core/primitive.bool.html">bool</a>,</div></h4></section></summary><div·class='docblock'>Creates·an·iterator·which·uses·a·closure·to·determine·if·an·element
46 should·be·yielded.·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.filter">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:·7da07154834a15b8ae55b4fd41479da070ccbd27e071909f81698570c306a081·...·]/core/iter/adapters/filter_map/struct.FilterMap.html"·title="struct·core::iter::adapters::filter_map::FilterMap">FilterMap</a>&lt;Self,·F&gt;<div·class="where">where46 should·be·yielded.·<a·href="https://doc.rust-lang.org/1.78.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:·76aa2ad154f88085ee3f8a22721a7e6812680bac785d19059532407f50da1801·...·]/core/iter/adapters/filter_map/struct.FilterMap.html"·title="struct·core::iter::adapters::filter_map::FilterMap">FilterMap</a>&lt;Self,·F&gt;<div·class="where">where
47 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,47 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.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:·863,·SHA:·c89169e5bf1c4724c7b411e568b6dad6475896f2606f557b3d708359ef71f5cc·...·]/core/iter/adapters/enumerate/struct.Enumerate.html"·title="struct·core::iter::adapters::enumerate::Enumerate">Enumerate</a>&lt;Self&gt;<div·class="where">where48 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·1052,·SHA:·110b47c7083083d565fcfc89337fddc8e5c87e81b2f720f3f7b0ded55e8500fb·...·]/core/iter/adapters/enumerate/struct.Enumerate.html"·title="struct·core::iter::adapters::enumerate::Enumerate">Enumerate</a>&lt;Self&gt;<div·class="where">where
49 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Creates·an·iterator·which·gives·the·current·iteration·count·as·well·as49 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.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
50 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:·53634008856676c70c32b501f7ec498c1f86d123cc9b5b898256a69895ff31fc·...·]/core/iter/adapters/peekable/struct.Peekable.html"·title="struct·core::iter::adapters::peekable::Peekable">Peekable</a>&lt;Self&gt;<div·class="where">where50 the·next·value.·<a·href="https://doc.rust-lang.org/1.78.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:·8464264e074dde5d84f0414ab3b5b2d8da83f3c9e3ca04c45458241580a8c80d·...·]/core/iter/adapters/peekable/struct.Peekable.html"·title="struct·core::iter::adapters::peekable::Peekable">Peekable</a>&lt;Self&gt;<div·class="where">where
51 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.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>·methods51 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.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.78.0/core/iter/adapte[·...·truncated·by·diffoscope;·len:·175,·SHA:·16fe7225bf05b478e2828b347c3d23ded9a22f89d8887a2c65d9f7b3faf1b0e7·...·]/core/iter/adapters/peekable/struct.Peekable.html#method.peek_mut"·title="method·core::iter::adapters::peekable::Peekable::peek_mut"><code>peek_mut</code></a>·methods
52 to·look·at·the·next·element·of·the·iterator·without·consuming·it.·See52 to·look·at·the·next·element·of·the·iterator·without·consuming·it.·See
53 their·documentation·for·more·information.·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.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:·77dd41e041d66c618d306e900a9159cf1b00478b8f37e5692be62119a1d4fcda·...·]/core/iter/adapters/skip_while/struct.SkipWhile.html"·title="struct·core::iter::adapters::skip_while::SkipWhile">SkipWhile</a>&lt;Self,·P&gt;<div·class="where">where53 their·documentation·for·more·information.·<a·href="https://doc.rust-lang.org/1.78.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:·00ccbb673c11ed48d8c6aa2a3f8984fb298202e7bccfa42f1ac21290fcc0fb06·...·]/core/iter/adapters/skip_while/struct.SkipWhile.html"·title="struct·core::iter::adapters::skip_while::SkipWhile">SkipWhile</a>&lt;Self,·P&gt;<div·class="where">where
54 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,54 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.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:·1018,·SHA:·c18326af66652e52fa627bfd0312af7fa2ad0ddc162b12a46e61047a031b0264·...·]/core/iter/adapters/take_while/struct.TakeWhile.html"·title="struct·core::iter::adapters::take_while::TakeWhile">TakeWhile</a>&lt;Self,·P&gt;<div·class="where">where55 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·1234,·SHA:·3b805567411cdcebed740f9e8d400dbe7fb487504f40e284544a140155090fdf·...·]/core/iter/adapters/take_while/struct.TakeWhile.html"·title="struct·core::iter::adapters::take_while::TakeWhile">TakeWhile</a>&lt;Self,·P&gt;<div·class="where">where
56 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,56 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.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:·869,·SHA:·39eeddf219b211245393e51a591d5064c740fa9be49d88883d8a6474679741ad·...·]/core/iter/adapters/map_while/struct.MapWhile.html"·title="struct·core::iter::adapters::map_while::MapWhile">MapWhile</a>&lt;Self,·P&gt;<div·class="where">where57 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·1058,·SHA:·b390dbdda8d7e93604b5ecd906a93efd03fe19bdaf41cf12893fd361bf974307·...·]/core/iter/adapters/map_while/struct.MapWhile.html"·title="struct·core::iter::adapters::map_while::MapWhile">MapWhile</a>&lt;Self,·P&gt;<div·class="where">where
58 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,58 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.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>(Self::<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:·9369fa85b74ff841f7401949cadba6dfbbbeead2a99568f20dcfd5aab20d61ab·...·]/core/iter/adapters/skip/struct.Skip.html"·title="struct·core::iter::adapters::skip::Skip">Skip</a>&lt;Self&gt;<div·class="where">where59 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·1163,·SHA:·5772149166d344bf8fa5ebbd9db8693a8f2e5f031c50338e8f1523ef72f814d6·...·]/core/iter/adapters/skip/struct.Skip.html"·title="struct·core::iter::adapters::skip::Skip">Skip</a>&lt;Self&gt;<div·class="where">where
60 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::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:·a25e81a74cc82c1837477e2b0cea682fff9f43550640901b8010ac501ca69e3d·...·]/core/iter/adapters/take/struct.Take.html"·title="struct·core::iter::adapters::take::Take">Take</a>&lt;Self&gt;<div·class="where">where60 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.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:·6216516fe581c401abda3c95818192e8f030e2008c9bbdbaafebba16f33ea9bd·...·]/core/iter/adapters/take/struct.Take.html"·title="struct·core::iter::adapters::take::Take">Take</a>&lt;Self&gt;<div·class="where">where
61 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Creates·an·iterator·that·yields·the·first·<code>n</code>·elements,·or·fewer61 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.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
62 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:·de8f1023275132502c1569b0ef9a557dc98eaf60aae97cdb916e52f9f55100aa·...·]/core/iter/adapters/scan/struct.Scan.html"·title="struct·core::iter::adapters::scan::Scan">Scan</a>&lt;Self,·St,·F&gt;<div·class="where">where62 if·the·underlying·iterator·ends·sooner.·<a·href="https://doc.rust-lang.org/1.78.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:·485843399c56e24bdf020ff0610d0ce1f62fbac5530d9880a1a7417105e3d70f·...·]/core/iter/adapters/scan/struct.Scan.html"·title="struct·core::iter::adapters::scan::Scan">Scan</a>&lt;Self,·St,·F&gt;<div·class="where">where
63 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,63 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.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>(<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,·but64 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(<a·class="primitive"·href="https://doc.rust-lang.org/1.78.0/core/primitive.reference.html">&amp;mut·St</a>,·Self::<a·class="associatedty[·...·truncated·by·diffoscope;·len:·449,·SHA:·f12c268a8a8111b9e7126ad78bf5523a63733caa63d187c4fe792309ea41acdf·...·]/core/iter/traits/iterator/trait.Iterator.html#method.fold"·title="method·core::iter::traits::iterator::Iterator::fold"><code>fold</code></a>,·holds·internal·state,·but
65 unlike·<a·href="../../core/iter/traits/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:·8b31595e3cee3022819032aac82e3df712188a2a6dcc20da6939262e5e528591·...·]/core/iter/adapters/flatten/struct.FlatMap.html"·title="struct·core::iter::adapters::flatten::FlatMap">FlatMap</a>&lt;Self,·U,·F&gt;<div·class="where">where65 unlike·<a·href="https://doc.rust-lang.org/1.78.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.78.0/core/iter/trai[·...·truncated·by·diffoscope;·len:·690,·SHA:·371190e5c1bf9b7dde6e84447965a69946212b977b9eb6d89048fbe34c5dda1c·...·]/core/iter/adapters/flatten/struct.FlatMap.html"·title="struct·core::iter::adapters::flatten::FlatMap">FlatMap</a>&lt;Self,·U,·F&gt;<div·class="where">where
66 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,66 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
67 ····U:·<a·class="trait"·href="../../core/iter/traits/collect/trait.IntoIterator.html"·title="trait·core::iter::traits::collect::IntoIterator">IntoIterator</a>,67 ····U:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/collect/trait.IntoIterator.html"·title="trait·core::iter::traits::collect::IntoIterator">IntoIterator</a>,
68 ····F:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<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:·9b6a337a3ad68c2a987b52450c153f87a04a8ed9e83603d26077fe6e70d61edf·...·]/core/iter/adapters/map_windows/struct.MapWindows.html"·title="struct·core::iter::adapters::map_windows::MapWindows">MapWindows</a>&lt;Self,·F,·N&gt;<div·class="where">where68 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·976,·SHA:·2a9182f6fe88e0b8a9b1ae1f46cace940cc0b8736033c354c0f0ccbf1c196e7a·...·]/core/iter/adapters/map_windows/struct.MapWindows.html"·title="struct·core::iter::adapters::map_windows::MapWindows">MapWindows</a>&lt;Self,·F,·N&gt;<div·class="where">where
69 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,69 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.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::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>·over70 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;[Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtyp[·...·truncated·by·diffoscope;·len:·135,·SHA:·0b06a6094d42ccbc8bce5b01c4383961fe7f1967f05e4c9f1ff33e71e425fb26·...·]/core/primitive.array.html">N</a>])·-&gt;·R,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iter_map_windows</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/87155">#87155</a>)</span></div></span><div·class='docblock'>Calls·the·given·function·<code>f</code>·for·each·contiguous·window·of·size·<code>N</code>·over
71 <code>self</code>·and·returns·an·iterator·over·the·outputs·of·<code>f</code>.·Like·<a·href="../../core/primitive.slice.html#method.windows"·title="method·slice::windows"><code>slice::windows()</code></a>,71 <code>self</code>·and·returns·an·iterator·over·the·outputs·of·<code>f</code>.·Like·<a·href="https://doc.rust-lang.org/1.78.0/core/primitive.slice.html#method.windows"·title="method·slice::windows"><code>slice::windows()</code></a>,
72 the·windows·during·mapping·overlap·as·well.·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.map_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:·238f6b49b3e28d725c57040edaa60bfbb34f140155e6af1d30eab52da1c7274f·...·]/core/iter/adapters/fuse/struct.Fuse.html"·title="struct·core::iter::adapters::fuse::Fuse">Fuse</a>&lt;Self&gt;<div·class="where">where72 the·windows·during·mapping·overlap·as·well.·<a·href="https://doc.rust-lang.org/1.78.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:·0d33056cee8a4f9b70b573c0adecc2f3599a2f8d9fa9f2c2044e9118ab134f73·...·]/core/iter/adapters/fuse/struct.Fuse.html"·title="struct·core::iter::adapters::fuse::Fuse">Fuse</a>&lt;Self&gt;<div·class="where">where
73 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·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:·cfd3edf89fe5aca24b994f83b0d7da765620394e35140e694d98233d4d92481b·...·]/core/iter/adapters/inspect/struct.Inspect.html"·title="struct·core::iter::adapters::inspect::Inspect">Inspect</a>&lt;Self,·F&gt;<div·class="where">where73 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.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.78.0/core/op[·...·truncated·by·diffoscope;·len:·841,·SHA:·9cba1b175fb3726d7f1f01da9be7c1a56568a68e4ce7915a468b730902daf8d3·...·]/core/iter/adapters/inspect/struct.Inspect.html"·title="struct·core::iter::adapters::inspect::Inspect">Inspect</a>&lt;Self,·F&gt;<div·class="where">where
74 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,74 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.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::Itera[·...·truncated·by·diffoscope;·len:·772,·SHA:·31d2052382378512fa905c6d5297d384eac7b7f126141ce561719c0e27cc9d39·...·]/core/primitive.reference.html">&amp;mut·Self</a><div·class="where">where75 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·934,·SHA:·ea20d2e0fe9388580ea08100baa9120b5e9b6cb48f43fc846f15db8b9649e7f6·...·]/core/primitive.reference.html">&amp;mut·Self</a><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'>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:·98760b16b1ed91f9558e6e2637724a4608316181d5f6f4d236e896a83eca9af9·...·]/core/iter/traits/iterator/trait.Iterator.html#method.collect"·class="fn">collect</a>&lt;B&gt;(self)·-&gt;·B<div·class="where">where76 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.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.78.0/core/it[·...·truncated·by·diffoscope;·len:·523,·SHA:·97064c705f6f4bdf74469c54fabcf580d21893127d1b4cd9a9c1018a717ef153·...·]/core/iter/traits/iterator/trait.Iterator.html#method.collect"·class="fn">collect</a>&lt;B&gt;(self)·-&gt;·B<div·class="where">where
77 ····B:·<a·class="trait"·href="../../core/iter/traits/collect/trait.FromIterator.html"·title="trait·core::iter::traits::collect::FromIterator">FromIterator</a>&lt;Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;,77 ····B:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.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.78.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><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:·e5d524e874326d0b9b733f5ee809c6595cde869afab0cc3d4ba8454093f420da·...·]/core/primitive.reference.html">&amp;mut·E</a><div·class="where">where78 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.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.78.0/core/iter/tr[·...·truncated·by·diffoscope;·len:·728,·SHA:·01937c2dc314c259495665570ae249c94b4a5b0719718f5f1188e6fc64ecf487·...·]/core/primitive.reference.html">&amp;mut·E</a><div·class="where">where
79 ····E:·<a·class="trait"·href="../../core/iter/traits/collect/trait.Extend.html"·title="trait·core::iter::traits::collect::Extend">Extend</a>&lt;Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;,79 ····E:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.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.78.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><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:·b0297783e056393a542c4058b42c18523a86c961c1b6ce3bc94342c1a2c10c58·...·]/core/primitive.tuple.html">(B,·B)</a><div·class="where">where80 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></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:·00bd47017b1bdd1bbe2c3fc932d955a8aa2f7f5eff8c00e3001ae28a982a5883·...·]/core/primitive.tuple.html">(B,·B)</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.78.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
82 ····B:·<a·class="trait"·href="../../core/default/trait.Default.html"·title="trait·core::default::Default">Default</a>·+·<a·class="trait"·href="../../core/iter/traits/collect/trait.Extend.html"·title="trait·core::iter::traits::collect::Extend">Extend</a>&lt;Self::<a·class="associatedtyp[·...·truncated·by·diffoscope;·len:·14,·SHA:·4105980ca4887a52797067761af25a11e3de6069cd8d7c8ce82cd885bb798fe8·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;,82 ····B:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/default/trait.Default.html"·title="trait·core::default::Default">Default</a>·+·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/collect/trait.Extend.html"·title="trait·core::iter::traits::collec[·...·truncated·by·diffoscope;·len:·95,·SHA:·8b3be1d0042cae0550f865faf5849221240bdf04eb1b2107605b72d48c3ad29c·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;,
83 ····F:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<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:·5a1bcc1ddfc5fccf50d61bf2b8879dae247aa12c0b23ba2f437fd2a345cabac7·...·]/core/primitive.usize.html">usize</a><div·class="where">where83 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·995,·SHA:·bec3765fdab56713186e2454cd84738b5b28e3280a2f3d5a25cefdbc3089b520·...·]/core/primitive.usize.html">usize</a><div·class="where">where
84 ····T:·'a,84 ····T:·'a,
85 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>·+·<a·class="trait"·href="../../core/iter/traits/double_ended/trait.DoubleEndedIterator.html"·title="trait·core::iter::traits::double_ended::DoubleEndedIterator">DoubleEndedIter[·...·truncated·by·diffoscope;·len:·51,·SHA:·c9be73bbed9d11ecac2a179f480a640f51d6255f26712667ffdabc72c1fc7fb0·...·]/core/primitive.reference.html">&amp;'a·mut·T</a>&gt;,85 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>·+·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/double_ended/trait.DoubleEndedIterator.html"·title="trait·core::iter::trai[·...·truncated·by·diffoscope;·len:·132,·SHA:·e5b2cf5f56946ede1e190ed09879c5821e2de04cf8e5d145142eeb40c6340982·...·]/core/primitive.reference.html">&amp;'a·mut·T</a>&gt;,
86 ····P:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(<a·class="primitive"·href="../../core/primitive.reference.html">&amp;T</a>)·-&gt;·<a·class="primitive"·href="../../core/primitive.bool.html">bool</a>,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iter_partition_in_place</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/62543">#62543</a>)</span></div></span><div·class='docblock'>Reorders·the·elements·of·this·iterator·<em>in-place</em>·according·to·the·given·predicate,86 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(<a·class="primitive"·href="https://doc.rust-lang.org/1.78.0/core/primitive.reference.html">&amp;T</a>)·-&gt;·<a·class="primitive"·href="[·...·truncated·by·diffoscope;·len:·32,·SHA:·63d052a8ced32bf927ffadd7e884c08caf4970e85dfdf6be0e568d49b174da96·...·]/core/primitive.bool.html">bool</a>,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iter_partition_in_place</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/62543">#62543</a>)</span></div></span><div·class='docblock'>Reorders·the·elements·of·this·iterator·<em>in-place</em>·according·to·the·given·predicate,
87 such·that·all·those·that·return·<code>true</code>·precede·all·those·that·return·<code>false</code>.87 such·that·all·those·that·return·<code>true</code>·precede·all·those·that·return·<code>false</code>.
88 Returns·the·number·of·<code>true</code>·elements·found.·<a·href="../../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:·97056c44eac6a0f986fb2c8edec37302cc06edf44a6c6f7153a5d8623d8d6c0d·...·]/core/primitive.bool.html">bool</a><div·class="where">where88 Returns·the·number·of·<code>true</code>·elements·found.·<a·href="https://doc.rust-lang.org/1.78.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:·0c224636c18baa273f69de21f90083317f2ea0b7367a3f0d0f1c0ace55a36f79·...·]/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.78.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>(Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::[·...·truncated·by·diffoscope;·len:·54,·SHA:·d5ac304cc26edf57442227b641dd21c427d0f9cb322b79986f5b15fc49f867b0·...·]/core/primitive.bool.html">bool</a>,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iter_is_partitioned</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/62544">#62544</a>)</span></div></span><div·class='docblock'>Checks·if·the·elements·of·this·iterator·are·partitioned·according·to·the·given·predicate,90 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·135,·SHA:·51ff5f5c7ebd8440623ea71b125c5a5837e809e308fe1a13fbe19cddb941dbd9·...·]/core/primitive.bool.html">bool</a>,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iter_is_partitioned</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/62544">#62544</a>)</span></div></span><div·class='docblock'>Checks·if·the·elements·of·this·iterator·are·partitioned·according·to·the·given·predicate,
91 such·that·all·those·that·return·<code>true</code>·precede·all·those·that·return·<code>false</code>.·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.is_partitioned">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/cor[·...·truncated·by·diffoscope;·len:·140,·SHA:·4843a1d7a5de83a5fbdf1f89abd6d3c20aee8e7e07a3554d239b0eb23fb16b31·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_fold"·class="fn">try_fold</a>&lt;B,·F,·R&gt;(&amp;mut·self,·init:·B,·f:·F)·-&gt;·R<div·class="where">where91 such·that·all·those·that·return·<code>true</code>·precede·all·those·that·return·<code>false</code>.·<a·href="https://doc.rust-lang.org/1.78.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"><a·class="src·rig[·...·truncated·by·diffoscope;·len:·221,·SHA:·1da026b8c793fdfa2ad34e6e66ddc5cc9f595049b7faef87aeeb5d4199eca3dc·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_fold"·class="fn">try_fold</a>&lt;B,·F,·R&gt;(&amp;mut·self,·init:·B,·f:·F)·-&gt;·R<div·class="where">where
92 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,92 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.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;·R,93 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(B,·Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·R,
94 ····R:·<a·class="trait"·href="../../core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&lt;Output·=·B&gt;,</div></h4></section></summary><div·class='docblock'>An·iterator·method·that·applies·a·function·as·long·as·it·returns94 ····R:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.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
95 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"><a·class="src·rightside"·href="../../src/core/[·...·truncated·by·diffoscope;·len:·142,·SHA:·dd809c0a308d45e7417660f2623ec5e4d1679ef3e0bfb4c279337b8ab11998b9·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_for_each"·class="fn">try_for_each</a>&lt;F,·R&gt;(&amp;mut·self,·f:·F)·-&gt;·R<div·class="where">where95 successfully,·producing·a·single,·final·value.·<a·href="https://doc.rust-lang.org/1.78.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"><a·class="src·right[·...·truncated·by·diffoscope;·len:·223,·SHA:·c607fa75af60bfc8cf8535b574eac3c3dfd292303342f42389073e83d81acda1·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_for_each"·class="fn">try_for_each</a>&lt;F,·R&gt;(&amp;mut·self,·f:·F)·-&gt;·R<div·class="where">where
96 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,96 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.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::Item">Item</a>)·-&gt;·R,97 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·R,
98 ····R:·<a·class="trait"·href="../../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·the98 ····R:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.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.78.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
99 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:·ffdacd6b524bc823efebbf23dc0f77317a07fe9c8b691f2ea18db7aa0c08b146·...·]/core/iter/traits/iterator/trait.Iterator.html#method.fold"·class="fn">fold</a>&lt;B,·F&gt;(self,·init:·B,·f:·F)·-&gt;·B<div·class="where">where99 iterator,·stopping·at·the·first·error·and·returning·that·error.·<a·href="https://doc.rust-lang.org/1.78.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:·1d6c4809cea8748e901d3f94777f450d430f3161f6ac05ed1c178d9327f966a3·...·]/core/iter/traits/iterator/trait.Iterator.html#method.fold"·class="fn">fold</a>&lt;B,·F&gt;(self,·init:·B,·f:·F)·-&gt;·B<div·class="where">where
100 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,100 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.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>(B,·Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·B,</div></h4></section></summary><div·class='docblock'>Folds·every·element·into·an·accumulator·by·applying·an·operation,101 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(B,·Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·B,</div></h4></section></summary><div·class='docblock'>Folds·every·element·into·an·accumulator·by·applying·an·operation,
102 returning·the·final·result.·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.fold">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:·dbe3a08fe63abd47570741e71208c31aaf51152feac5917db07665a1f56bb3e3·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;<div·class="where">where102 returning·the·final·result.·<a·href="https://doc.rust-lang.org/1.78.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:·b60215068a6d9721be05f81098c51167d7138c4042f140cad42f77c4df43f597·...·]/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.78.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:·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·reducing104 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·352,·SHA:·e7c3c296abe2c0a183967153e4ae7fd50bafa2ae7088e3e78b3b48fee253adc6·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>,</div></h4></section></summary><div·class='docblock'>Reduces·the·elements·to·a·single·one,·by·repeatedly·applying·a·reducing
105 operation.·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.reduce">Read·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:·a9dce8bb557b5a11426bf2ffcbd5eea7c6c870833e3ee5bb072dcaaa11687b0c·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_reduce"·class="fn">try_reduce</a>&lt;F,·R&gt;(105 operation.·<a·href="https://doc.rust-lang.org/1.78.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:·7a18fdd041b1a001b4a8feb289ee127fd9240232239269eb35dc3b8f74783ec9·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_reduce"·class="fn">try_reduce</a>&lt;F,·R&gt;(
106 ····&amp;mut·self,106 ····&amp;mut·self,
107 ····f:·F107 ····f:·F
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:·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">where108 )·-&gt;·&lt;&lt;R·as·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&gt;::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/ops/try_trait/trait.Try.html#associatedtype.Residual"·title="type[·...·truncated·by·diffoscope;·len:·754,·SHA:·6fb4dfdb6b4da68921c1e7f8b75d99cf293d58318d684a840254ce9576957bea·...·]/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.78.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:·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:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·140,·SHA:·c27972e6fa3464c9476eaa185e8657edb6bb294f148403f3d079285294a9f909·...·]/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·=·Self::<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.78.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.78.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.78.0/core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&gt;::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/ops/try_trait/trait.Try.html#associatedtype.Residual"·title="type[·...·truncated·by·diffoscope;·len:·412,·SHA:·22b8cbb007e5cce82b9d13a65bfa56aa8d83c32541fac25f4d9b3857b0540908·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;&gt;,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iterator_try_reduce</code>&nbsp;<a·href="https://github.com/rust-lang/rust/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:·65b80c848af6e465c8c5aef4ec8d3faaa399d30c8427c9507fda7b3bd1d3ea93·...·]/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.78.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:·bc0d658d56e348823de15386e1cd4ab49109f3a7a055a4573a19391b47071193·...·]/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.78.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:·95a840b532d3d621bde4032d63854eb0a481248e2b4bbb3ef058dbffb4dae4fa·...·]/core/primitive.bool.html">bool</a><div·class="where">where115 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·1018,·SHA:·e61cd6bdd36729cc38e57fcaea2ccb91a23a5acbda3c8986071f19bf1ecfc52a·...·]/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.78.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:·f828c62edd4fe85e217286f359b56c116e14ed18bb292ba1cc13d3ed7146909e·...·]/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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·1172,·SHA:·e64ab74d116d286191ad43d9d9e10411fc011c23724aa806e9a8f9b0be0757e3·...·]/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.78.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:·21d7086b3ce0092e3f7a6a41174339bbd8724e7d186158db4db3385a73d94e8e·...·]/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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·1051,·SHA:·ecc0b8fccd861464760f9ae047ff6ab98c91a1db010cb5fa59a8c2ab883db7c4·...·]/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.78.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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·130,·SHA:·130a13019dc175d02304b4f550157e2f13ac15c2f25a979c74161d10b146ab89·...·]/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:·ac4da3337aac1ec10038e246be9cb719eeb5af1acc709f5a6a25b91900c56f53·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_find"·class="fn">try_find</a>&lt;F,·R&gt;(122 the·first·non-none·result.·<a·href="https://doc.rust-lang.org/1.78.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:·8ced1b10e78750774c5c8ed995ed83dcd13983aa75d329acf8069da106ab9f4a·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_find"·class="fn">try_find</a>&lt;F,·R&gt;(
123 ····&amp;mut·self,123 ····&amp;mut·self,
124 ····f:·F124 ····f:·F
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.78.0/core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&gt;::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/ops/try_trait/trait.Try.html#associatedtype.Residual"·title="type[·...·truncated·by·diffoscope;·len:·626,·SHA:·95f9831257b68862cbcbf54f0ad2ff4e597a4c9f763112d1da8a0897dadcf872·...·]/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.78.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;·R,127 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·R,
Max diff block lines reached; 87519/310960 bytes (28.14%) of diff not shown.
292 KB
./usr/share/doc/rust-web-doc/html/alloc/slice/struct.RSplitMut.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·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.write(`<link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/SourceSerif4-Regular-46f98efaafac5295.ttf.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/FiraSans-Regular-018c141bf0843ffd.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/FiraSans-Medium-8f9a781e4970d388.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/SourceCodePro-Regular-562dcc5011b6de7d.ttf.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/SourceCodePro-Semibold-d899c5a5c4aeb14a.ttf.woff2">`)</script><link·rel="stylesheet"·href="../../static.files/normalize-76eba96aa4d2e634.css"><link·rel="stylesheet"·href="../../static.files/rustdoc-35f9e32502181f1e.css"><meta·name="rustdoc-vars"·data-root-path="../../"·data-static-root-path="../../static.files/"·data-current-crate="alloc"·data-themes=""·data-resource-suffix="1.78.0"·data-rustdoc-version="1.78.0"·data-channel="1.78.0"·data-search-js="search-42d8da7a6b9792c2.js"·data-settings-js="settings-4313503d2e1961c2.js"·><script·src="../../static.files/storage-4c98445ec4002617.js"></script><script·defer·src="sidebar-items1.78.0.js"></script><script·defer·src="../../static.files/main-12cf3b4f4f9dc36d.js"></script><noscript><link·rel="stylesheet"·href="../../static.files/noscript-04d5337699b92874.css"></noscript><link·rel="alternate·icon"·type="image/png"·href="../../static.files/favicon-16x16-8b506e7a72182f1c.png"><link·rel="alternate·icon"·type="image/png"·href="../../static.files/favicon-32x32-422f7d1d52889060.png"><link·rel="icon"·type="image/svg+xml"·href="../../static.files/favicon-2c020d218678b618.svg"></head><body·class="rustdoc·struct"><!--[if·lte·IE·11]><div·class="warning">This·old·browser·is·unsupported·and·will·most·likely·display·funky·things.</div><![endif]--><nav·class="mobile-topbar"><button·class="sidebar-menu-toggle"·title="show·sidebar"></button><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-151179464ae7ed46.svg"·alt=""></a></nav><nav·class="sidebar"><div·class="sidebar-crate"><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-151179464ae7ed46.svg"·alt="logo"></a><h2><a·href="../../alloc/index.html">alloc</a><span·class="version">1.78.0</span></h2></div><h2·class="location"><a·href="#">RSplitMut</a></h2><div·class="sidebar-elems"><section><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">Debug</a></li><li><a·href="#impl-DoubleEndedIterator-for-RSplitMut%3C'a,+T,+P%3E">DoubleEndedIterator</a></li><li><a·href="#impl-FusedIterator-for-RSplitMut%3C'_,+T,+P%3E">FusedIterator</a></li><li><a·href="#impl-Iterator-for-RSplitMut%3C'a,+T,+P%3E">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">!UnwindSafe</a></li><li><a·href="#impl-Freeze-for-RSplitMut%3C'a,+T,+P%3E">Freeze</a></li><li><a·href="#impl-RefUnwindSafe-for-RSplitMut%3C'a,+T,+P%3E">RefUnwindSafe</a></li><li><a·href="#impl-Send-for-RSplitMut%3C'a,+T,+P%3E">Send</a></li><li><a·href="#impl-Sync-for-RSplitMut%3C'a,+T,+P%3E">Sync</a></li><li><a·href="#impl-Unpin-for-RSplitMut%3C'a,+T,+P%3E">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">Any</a></li><li><a·href="#impl-Borrow%3CT%3E-for-T">Borrow&lt;T&gt;</a></li><li><a·href="#impl-BorrowMut%3CT%3E-for-T">BorrowMut&lt;T&gt;</a></li><li><a·href="#impl-From%3CT%3E-for-T">From&lt;T&gt;</a></li><li><a·href="#impl-Into%3CU%3E-for-T">Into&lt;U&gt;</a></li><li><a·href="#impl-IntoIterator-for-I">IntoIterator</a></li><li><a·href="#impl-TryFrom%3CU%3E-for-T">TryFrom&lt;U&gt;</a></li><li><a·href="#impl-TryInto%3CU%3E-for-T">TryInto&lt;U&gt;</a></li></ul></section><h2><a·href="index.html">In·alloc::slice</a></h2></div></nav><div·class="sidebar-resizer"></div>1 <!DOCTYPE·html><html·lang="en"><head><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.write(`<link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/SourceSerif4-Regular-46f98efaafac5295.ttf.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/FiraSans-Regular-018c141bf0843ffd.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/FiraSans-Medium-8f9a781e4970d388.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/SourceCodePro-Regular-562dcc5011b6de7d.ttf.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/SourceCodePro-Semibold-d899c5a5c4aeb14a.ttf.woff2">`)</script><link·rel="stylesheet"·href="../../static.files/normalize-76eba96aa4d2e634.css"><link·rel="stylesheet"·href="../../static.files/rustdoc-35f9e32502181f1e.css"><meta·name="rustdoc-vars"·data-root-path="../../"·data-static-root-path="../../static.files/"·data-current-crate="alloc"·data-themes=""·data-resource-suffix="1.78.0"·data-rustdoc-version="1.78.0"·data-channel="1.78.0"·data-search-js="search-42d8da7a6b9792c2.js"·data-settings-js="settings-4313503d2e1961c2.js"·><script·src="../../static.files/storage-4c98445ec4002617.js"></script><script·defer·src="sidebar-items1.78.0.js"></script><script·defer·src="../../static.files/main-12cf3b4f4f9dc36d.js"></script><noscript><link·rel="stylesheet"·href="../../static.files/noscript-04d5337699b92874.css"></noscript><link·rel="alternate·icon"·type="image/png"·href="../../static.files/favicon-16x16-8b506e7a72182f1c.png"><link·rel="alternate·icon"·type="image/png"·href="../../static.files/favicon-32x32-422f7d1d52889060.png"><link·rel="icon"·type="image/svg+xml"·href="../../static.files/favicon-2c020d218678b618.svg"></head><body·class="rustdoc·struct"><!--[if·lte·IE·11]><div·class="warning">This·old·browser·is·unsupported·and·will·most·likely·display·funky·things.</div><![endif]--><nav·class="mobile-topbar"><button·class="sidebar-menu-toggle"·title="show·sidebar"></button><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-151179464ae7ed46.svg"·alt=""></a></nav><nav·class="sidebar"><div·class="sidebar-crate"><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-151179464ae7ed46.svg"·alt="logo"></a><h2><a·href="../../alloc/index.html">alloc</a><span·class="version">1.78.0</span></h2></div><h2·class="location"><a·href="#">RSplitMut</a></h2><div·class="sidebar-elems"><section><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">Debug</a></li><li><a·href="#impl-DoubleEndedIterator-for-RSplitMut%3C'a,+T,+P%3E">DoubleEndedIterator</a></li><li><a·href="#impl-FusedIterator-for-RSplitMut%3C'_,+T,+P%3E">FusedIterator</a></li><li><a·href="#impl-Iterator-for-RSplitMut%3C'a,+T,+P%3E">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">!UnwindSafe</a></li><li><a·href="#impl-Freeze-for-RSplitMut%3C'a,+T,+P%3E">Freeze</a></li><li><a·href="#impl-RefUnwindSafe-for-RSplitMut%3C'a,+T,+P%3E">RefUnwindSafe</a></li><li><a·href="#impl-Send-for-RSplitMut%3C'a,+T,+P%3E">Send</a></li><li><a·href="#impl-Sync-for-RSplitMut%3C'a,+T,+P%3E">Sync</a></li><li><a·href="#impl-Unpin-for-RSplitMut%3C'a,+T,+P%3E">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">Any</a></li><li><a·href="#impl-Borrow%3CT%3E-for-T">Borrow&lt;T&gt;</a></li><li><a·href="#impl-BorrowMut%3CT%3E-for-T">BorrowMut&lt;T&gt;</a></li><li><a·href="#impl-From%3CT%3E-for-T">From&lt;T&gt;</a></li><li><a·href="#impl-Into%3CU%3E-for-T">Into&lt;U&gt;</a></li><li><a·href="#impl-IntoIterator-for-I">IntoIterator</a></li><li><a·href="#impl-TryFrom%3CU%3E-for-T">TryFrom&lt;U&gt;</a></li><li><a·href="#impl-TryInto%3CU%3E-for-T">TryInto&lt;U&gt;</a></li></ul></section><h2><a·href="index.html">In·alloc::slice</a></h2></div></nav><div·class="sidebar-resizer"></div>
2 ····<main><div·class="width-limiter"><nav·class="sub"><form·class="search-form"><span></span><div·id="sidebar-button"·tabindex="-1"><a·href="../../alloc/all.html"·title="show·sidebar"></a></div><input·class="search-input"·name="search"·aria-label="Run·search·in·the·documentation"·autocomplete="off"·spellcheck="false"·placeholder="Click·or·press·‘S’·to·search,·‘?’·for·more·options…"·type="search"><div·id="help-button"·tabindex="-1"><a·href="../../help.html"·title="help">?</a></div><div·id="settings-menu"·tabindex="-1"><a·href="../../settings.html"·title="settings"><img·width="22"·height="22"·alt="Change·settings"·src="../../static.files/wheel-7b819b6101059cd0.svg"></a></div></form></nav><section·id="main-content"·class="content"><div·class="main-heading"><h1>Struct·<a·href="../index.html">alloc</a>::<wbr><a·href="index.html">slice</a>::<wbr><a·class="struct"·href="#">RSplitMut</a><button·id="copy-path"·title="Copy·item·path·to·clipboard"><img·src="../../static.files/clipboard-7571035ce49a181d.svg"·width="19"·height="18"·alt="Copy·item·path"></button></h1><span·class="out-of-band"><span·class="since"·title="Stable·since·Rust·version·1.27.0">1.27.0</span>···<a·class="src"·href="../../src/core/slice/iter.rs.html#1018">source</a>···<button·id="toggle-all-docs"·title="collapse·all·docs">[<span>&#x2212;</span>]</button></span></div><pre·class="rust·item-decl"><code>pub·struct·RSplitMut&lt;'a,·T,·P&gt;<div·class="where">where2 ····<main><div·class="width-limiter"><nav·class="sub"><form·class="search-form"><span></span><div·id="sidebar-button"·tabindex="-1"><a·href="../../alloc/all.html"·title="show·sidebar"></a></div><input·class="search-input"·name="search"·aria-label="Run·search·in·the·documentation"·autocomplete="off"·spellcheck="false"·placeholder="Click·or·press·‘S’·to·search,·‘?’·for·more·options…"·type="search"><div·id="help-button"·tabindex="-1"><a·href="../../help.html"·title="help">?</a></div><div·id="settings-menu"·tabindex="-1"><a·href="../../settings.html"·title="settings"><img·width="22"·height="22"·alt="Change·settings"·src="../../static.files/wheel-7b819b6101059cd0.svg"></a></div></form></nav><section·id="main-content"·class="content"><div·class="main-heading"><h1>Struct·<a·href="../index.html">alloc</a>::<wbr><a·href="index.html">slice</a>::<wbr><a·class="struct"·href="#">RSplitMut</a><button·id="copy-path"·title="Copy·item·path·to·clipboard"><img·src="../../static.files/clipboard-7571035ce49a181d.svg"·width="19"·height="18"·alt="Copy·item·path"></button></h1><span·class="out-of-band"><span·class="since"·title="Stable·since·Rust·version·1.27.0">1.27.0</span>···<a·class="src"·href="https://doc.rust-lang.org/1.78.0/src/core/slice/iter.rs.html#1018">source</a>···<button·id="toggle-all-docs"·title="collapse·all·docs">[<span>&#x2212;</span>]</button></span></div><pre·class="rust·item-decl"><code>pub·struct·RSplitMut&lt;'a,·T,·P&gt;<div·class="where">where
3 ····T:·'a,3 ····T:·'a,
4 ····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·separated4 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(<a·class="primitive"·href="https://doc.rust-lang.org/1.78.0/core/primitive.reference.html">&amp;T</a>)·-&gt;·<a·class="primitive"·href="[·...·truncated·by·diffoscope;·len:·32,·SHA:·63d052a8ced32bf927ffadd7e884c08caf4970e85dfdf6be0e568d49b174da96·...·]/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
5 by·elements·that·match·<code>pred</code>,·starting·from·the·end·of·the·slice.</p>5 by·elements·that·match·<code>pred</code>,·starting·from·the·end·of·the·slice.</p>
6 <p>This·struct·is·created·by·the·<a·href="../../core/primitive.slice.html#method.rsplit_mut"·title="method·slice::rsplit_mut"><code>rsplit_mut</code></a>·method·on·<a·href="../../core/primitive.slice.html"·title="primitive·slice">slices</a>.</p>6 <p>This·struct·is·created·by·the·<a·href="https://doc.rust-lang.org/1.78.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.78.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">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 <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>];
9 <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"·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">Run</a></div>9 <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"·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">Run</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-RSplitMut%3C'_,+T,+P%3E"·class="impl"><a·class="src·rightside"·href="../../src/core/slice/iter.rs.html#1033-1035">source</a><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">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-RSplitMut%3C'_,+T,+P%3E"·class="impl"><a·class="src·rightside"·href="https://doc.rust-lang.org/1.78.0/src/core/slice/iter.rs.html#1033-1035">source</a><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
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:·1340,·SHA:·5bd70e02e8c6951eedb6a6671cd3ddc68a87c8f6de21ed9a177541ae0ab434f8·...·]/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">where12 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(<a·class="primitive"·href="https://doc.rust-lang.org/1.78.0/core/primitive.reference.html">&amp;T</a>)·-&gt;·<a·class="primitive"·href="[·...·truncated·by·diffoscope;·len:·1556,·SHA:·8f02854cf9d78d6f5aac95d5e786ec1fef6f4f576e651baed9e52433f3db9833·...·]/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
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:·3657,·SHA:·e96f4ad2de01468a57969b9b67ab7a143f5504fd4044c2ffe765470ded3d3656·...·]/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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(<a·class="primitive"·href="https://doc.rust-lang.org/1.78.0/core/primitive.reference.html">&amp;T</a>)·-&gt;·<a·class="primitive"·href="[·...·truncated·by·diffoscope;·len:·4305,·SHA:·6f03b3cfd798b29a4bc2bf1906accb6957f0ebecbc12b9be7c0c7b9187ebe772·...·]/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.78.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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(B,·Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.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.78.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.7[·...·truncated·by·diffoscope;·len:·3,·SHA:·7b1bd53949b752d143d871408483b5382371b5bc48d195d0c040ec93cfa2748b·...·]/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"><a·class="src·rightside"·href="../../[·...·truncated·by·diffoscope;·len:·146,·SHA:·4cfb0b70f57b5a7c997c96dbb42df86deced5b28cc1314cdca3dd5951999652a·...·]/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.78.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:·227,·SHA:·d9a631ba10ac3bff250776d1b88fafd1dc2600a85efaeb230d74b370554921f1·...·]/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.78.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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(B,·Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/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"><a·class="src·rightside"·href="../../src/[·...·truncated·by·diffoscope;·len:·432,·SHA:·67f81690781110ba57e856c6472f64ae564c6111bf1517ca079341144fad6926·...·]/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.78.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"><a·class="src·[·...·truncated·by·diffoscope;·len:·567,·SHA:·93df7e37274a54330e79f0c46a536e2924412d10828995aec7ca5e0a43cbe82e·...·]/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.78.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:·723,·SHA:·65903bbeea37008ca5311290044222d4dc450aa3e85dad36e620b232a02fe55c·...·]/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">where22 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·885,·SHA:·ec92b61dab007f9b76685eda5931cae54dada67ab896337f58daf47946541c92·...·]/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
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:·2577,·SHA:·afc7ebb5fde332d378f63d834bb57117a173f22356bb9aa6e17ef533ccd44a97·...·]/core/primitive.usize.html">usize</a>&gt;(23 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(<a·class="primitive"·href="https://doc.rust-lang.org/1.78.0/core/primitive.reference.html">&amp;T</a>)·-&gt;·<a·class="primitive"·href="[·...·truncated·by·diffoscope;·len:·3090,·SHA:·cb8801045c16bc46a5ca88e54faa2adb5c3fb6bddeb81bf9eea6f5985c23a00a·...·]/core/primitive.usize.html">usize</a>&gt;(
24 ····&amp;mut·self24 ····&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.78.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.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title=[·...·truncated·by·diffoscope;·len:·381,·SHA:·88c48923c9b7ea5cc47c1087c60e09656e81d4671c58071ba2bef826335388bc·...·]/core/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:·602d17b58d1cf716882ddc867fc66cfda4f899bef17b038a48553e9133f60097·...·]/core/primitive.usize.html">usize</a><div·class="where">where26 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></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:·89791450da70cbd536c3cf8fbf2dd9891668362f9a252d3ee098222d19960bae·...·]/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:·5b5aaec46c04cf77d2fa06e88cd6f0a2bd8d201412bc325302bd2f8f21b39207·...·]/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.78.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:·84ae0beb16240102bae2355bb8c543b17f3f107e3c06b320839aa401eebb1945·...·]/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:·6b808f54a13578d2e276864bb3eb79ae7b452b8959e79f7ea7ab1180574b77fc·...·]/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.78.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.78.0/cor[·...·truncated·by·diffoscope;·len:·3504,·SHA:·6d21b6d637e0b2e9953a37a26fd19e00da089147d4acaf696c94d448de4ce419·...·]/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.78.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:·5667b9b6c9778ff3b9d23ed0a110e7ab9d3fccc786fdcaca8c17edf996236439·...·]/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.78.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:·e83c903581753673e083ce8dd809879a2fc81ab3050eb6db267d7fa26b15e035·...·]/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.78.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:·1c6bb9803ee8832ebd4c28a08a952178165595b6870cf35d3c89454b9da828b2·...·]/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.78.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.78.0/core/iter/traits/it[·...·truncated·by·diffoscope;·len:·1329,·SHA:·d9299c8edc606ed82f24d61ce441bec451141d684c2a9a75074f5b19c57f196c·...·]/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.78.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:·c1b5e692e89c9c809075ee8ee72fb15a9ec46c075b08450e1f707d672a224750·...·]/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.78.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:·98627729f77dcf1c9d258f343354ba600b7134c6b3929080f231e8de7155b70b·...·]/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.78.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.78.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.78.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:·d6282409add0999f2130eb6bbe6d0473ce96bf2544799e8bc22156f3c2d2e0dd·...·]/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.78.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:·7301b6beba7b6885849be90a625df68ef739a5374af456c51fe2e81d91a25363·...·]/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.78.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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::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:·fb4c9589a16c7b6d697c109d1193d2f1e763e5dd967101c2fd92b32416972229·...·]/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.78.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:·98f6effefa44d759c249143d83623f0055d937382bfc398b7e1f5e92cd413657·...·]/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.78.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:·7abbad666ec88a1053b8aca2a481d629a3ef3596eddb570c381205fa2d859a52·...·]/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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·916,·SHA:·30d0b2a76513c5a880e9aee43e92b18805845cfcfe5783f62dc090167a439e63·...·]/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.78.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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·140,·SHA:·752f473b57e7444ebfddf5ea7fd40a332e83ec55524a6c31b5ee0f82a5dea819·...·]/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:·7da07154834a15b8ae55b4fd41479da070ccbd27e071909f81698570c306a081·...·]/core/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.78.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:·76aa2ad154f88085ee3f8a22721a7e6812680bac785d19059532407f50da1801·...·]/core/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.78.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:·c89169e5bf1c4724c7b411e568b6dad6475896f2606f557b3d708359ef71f5cc·...·]/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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·1052,·SHA:·110b47c7083083d565fcfc89337fddc8e5c87e81b2f720f3f7b0ded55e8500fb·...·]/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.78.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:·53634008856676c70c32b501f7ec498c1f86d123cc9b5b898256a69895ff31fc·...·]/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.78.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:·8464264e074dde5d84f0414ab3b5b2d8da83f3c9e3ca04c45458241580a8c80d·...·]/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.78.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.78.0/core/iter/adapte[·...·truncated·by·diffoscope;·len:·175,·SHA:·16fe7225bf05b478e2828b347c3d23ded9a22f89d8887a2c65d9f7b3faf1b0e7·...·]/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:·77dd41e041d66c618d306e900a9159cf1b00478b8f37e5692be62119a1d4fcda·...·]/core/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.78.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:·00ccbb673c11ed48d8c6aa2a3f8984fb298202e7bccfa42f1ac21290fcc0fb06·...·]/core/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.78.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:·c18326af66652e52fa627bfd0312af7fa2ad0ddc162b12a46e61047a031b0264·...·]/core/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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·1234,·SHA:·3b805567411cdcebed740f9e8d400dbe7fb487504f40e284544a140155090fdf·...·]/core/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.78.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:·39eeddf219b211245393e51a591d5064c740fa9be49d88883d8a6474679741ad·...·]/core/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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·1058,·SHA:·b390dbdda8d7e93604b5ecd906a93efd03fe19bdaf41cf12893fd361bf974307·...·]/core/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.78.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:·9369fa85b74ff841f7401949cadba6dfbbbeead2a99568f20dcfd5aab20d61ab·...·]/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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·1163,·SHA:·5772149166d344bf8fa5ebbd9db8693a8f2e5f031c50338e8f1523ef72f814d6·...·]/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:·a25e81a74cc82c1837477e2b0cea682fff9f43550640901b8010ac501ca69e3d·...·]/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.78.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:·6216516fe581c401abda3c95818192e8f030e2008c9bbdbaafebba16f33ea9bd·...·]/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.78.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:·de8f1023275132502c1569b0ef9a557dc98eaf60aae97cdb916e52f9f55100aa·...·]/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.78.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:·485843399c56e24bdf020ff0610d0ce1f62fbac5530d9880a1a7417105e3d70f·...·]/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.78.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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(<a·class="primitive"·href="https://doc.rust-lang.org/1.78.0/core/primitive.reference.html">&amp;mut·St</a>,·Self::<a·class="associatedty[·...·truncated·by·diffoscope;·len:·449,·SHA:·f12c268a8a8111b9e7126ad78bf5523a63733caa63d187c4fe792309ea41acdf·...·]/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:·8b31595e3cee3022819032aac82e3df712188a2a6dcc20da6939262e5e528591·...·]/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.78.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.78.0/core/iter/trai[·...·truncated·by·diffoscope;·len:·690,·SHA:·371190e5c1bf9b7dde6e84447965a69946212b977b9eb6d89048fbe34c5dda1c·...·]/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.78.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.78.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:·9b6a337a3ad68c2a987b52450c153f87a04a8ed9e83603d26077fe6e70d61edf·...·]/core/iter/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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·976,·SHA:·2a9182f6fe88e0b8a9b1ae1f46cace940cc0b8736033c354c0f0ccbf1c196e7a·...·]/core/iter/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.78.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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;[Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtyp[·...·truncated·by·diffoscope;·len:·135,·SHA:·0b06a6094d42ccbc8bce5b01c4383961fe7f1967f05e4c9f1ff33e71e425fb26·...·]/core/primitive.array.html">N</a>])·-&gt;·R,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iter_map_windows</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/87155">#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.78.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:·238f6b49b3e28d725c57040edaa60bfbb34f140155e6af1d30eab52da1c7274f·...·]/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.78.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:·0d33056cee8a4f9b70b573c0adecc2f3599a2f8d9fa9f2c2044e9118ab134f73·...·]/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:·cfd3edf89fe5aca24b994f83b0d7da765620394e35140e694d98233d4d92481b·...·]/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.78.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.78.0/core/op[·...·truncated·by·diffoscope;·len:·841,·SHA:·9cba1b175fb3726d7f1f01da9be7c1a56568a68e4ce7915a468b730902daf8d3·...·]/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.78.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:·772,·SHA:·31d2052382378512fa905c6d5297d384eac7b7f126141ce561719c0e27cc9d39·...·]/core/primitive.reference.html">&amp;mut·Self</a><div·class="where">where74 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·934,·SHA:·ea20d2e0fe9388580ea08100baa9120b5e9b6cb48f43fc846f15db8b9649e7f6·...·]/core/primitive.reference.html">&amp;mut·Self</a><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:·98760b16b1ed91f9558e6e2637724a4608316181d5f6f4d236e896a83eca9af9·...·]/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.78.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.78.0/core/it[·...·truncated·by·diffoscope;·len:·523,·SHA:·97064c705f6f4bdf74469c54fabcf580d21893127d1b4cd9a9c1018a717ef153·...·]/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.78.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.78.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:·e5d524e874326d0b9b733f5ee809c6595cde869afab0cc3d4ba8454093f420da·...·]/core/primitive.reference.html">&amp;mut·E</a><div·class="where">where77 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.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.78.0/core/iter/tr[·...·truncated·by·diffoscope;·len:·728,·SHA:·01937c2dc314c259495665570ae249c94b4a5b0719718f5f1188e6fc64ecf487·...·]/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.78.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.78.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:·b0297783e056393a542c4058b42c18523a86c961c1b6ce3bc94342c1a2c10c58·...·]/core/primitive.tuple.html">(B,·B)</a><div·class="where">where79 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></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:·00bd47017b1bdd1bbe2c3fc932d955a8aa2f7f5eff8c00e3001ae28a982a5883·...·]/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.78.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.78.0/core/default/trait.Default.html"·title="trait·core::default::Default">Default</a>·+·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/collect/trait.Extend.html"·title="trait·core::iter::traits::collec[·...·truncated·by·diffoscope;·len:·95,·SHA:·8b3be1d0042cae0550f865faf5849221240bdf04eb1b2107605b72d48c3ad29c·...·]/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:·5a1bcc1ddfc5fccf50d61bf2b8879dae247aa12c0b23ba2f437fd2a345cabac7·...·]/core/primitive.usize.html">usize</a><div·class="where">where82 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·995,·SHA:·bec3765fdab56713186e2454cd84738b5b28e3280a2f3d5a25cefdbc3089b520·...·]/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.78.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>·+·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/double_ended/trait.DoubleEndedIterator.html"·title="trait·core::iter::trai[·...·truncated·by·diffoscope;·len:·132,·SHA:·e5b2cf5f56946ede1e190ed09879c5821e2de04cf8e5d145142eeb40c6340982·...·]/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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(<a·class="primitive"·href="https://doc.rust-lang.org/1.78.0/core/primitive.reference.html">&amp;T</a>)·-&gt;·<a·class="primitive"·href="[·...·truncated·by·diffoscope;·len:·32,·SHA:·63d052a8ced32bf927ffadd7e884c08caf4970e85dfdf6be0e568d49b174da96·...·]/core/primitive.bool.html">bool</a>,</div></h4></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:·97056c44eac6a0f986fb2c8edec37302cc06edf44a6c6f7153a5d8623d8d6c0d·...·]/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.78.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:·0c224636c18baa273f69de21f90083317f2ea0b7367a3f0d0f1c0ace55a36f79·...·]/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.78.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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·135,·SHA:·51ff5f5c7ebd8440623ea71b125c5a5837e809e308fe1a13fbe19cddb941dbd9·...·]/core/primitive.bool.html">bool</a>,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iter_is_partitioned</code>&nbsp;<a·href="https://github.com/rust-lang/rust/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"><a·class="src·rightside"·href="../../src/cor[·...·truncated·by·diffoscope;·len:·140,·SHA:·4843a1d7a5de83a5fbdf1f89abd6d3c20aee8e7e07a3554d239b0eb23fb16b31·...·]/core/iter/traits/iterator/trait.Iterator.html#method.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.78.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"><a·class="src·rig[·...·truncated·by·diffoscope;·len:·221,·SHA:·1da026b8c793fdfa2ad34e6e66ddc5cc9f595049b7faef87aeeb5d4199eca3dc·...·]/core/iter/traits/iterator/trait.Iterator.html#method.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.78.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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(B,·Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.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.78.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"><a·class="src·rightside"·href="../../src/core/[·...·truncated·by·diffoscope;·len:·142,·SHA:·dd809c0a308d45e7417660f2623ec5e4d1679ef3e0bfb4c279337b8ab11998b9·...·]/core/iter/traits/iterator/trait.Iterator.html#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.78.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"><a·class="src·right[·...·truncated·by·diffoscope;·len:·223,·SHA:·c607fa75af60bfc8cf8535b574eac3c3dfd292303342f42389073e83d81acda1·...·]/core/iter/traits/iterator/trait.Iterator.html#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.78.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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.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.78.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.78.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:·ffdacd6b524bc823efebbf23dc0f77317a07fe9c8b691f2ea18db7aa0c08b146·...·]/core/iter/traits/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.78.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:·1d6c4809cea8748e901d3f94777f450d430f3161f6ac05ed1c178d9327f966a3·...·]/core/iter/traits/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.78.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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(B,·Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::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:·dbe3a08fe63abd47570741e71208c31aaf51152feac5917db07665a1f56bb3e3·...·]/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.78.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:·b60215068a6d9721be05f81098c51167d7138c4042f140cad42f77c4df43f597·...·]/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.78.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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·352,·SHA:·e7c3c296abe2c0a183967153e4ae7fd50bafa2ae7088e3e78b3b48fee253adc6·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::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:·a9dce8bb557b5a11426bf2ffcbd5eea7c6c870833e3ee5bb072dcaaa11687b0c·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_reduce"·class="fn">try_reduce</a>&lt;F,·R&gt;(104 operation.·<a·href="https://doc.rust-lang.org/1.78.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:·7a18fdd041b1a001b4a8feb289ee127fd9240232239269eb35dc3b8f74783ec9·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_reduce"·class="fn">try_reduce</a>&lt;F,·R&gt;(
105 ····&amp;mut·self,105 ····&amp;mut·self,
106 ····f:·F106 ····f:·F
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.78.0/core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&gt;::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/ops/try_trait/trait.Try.html#associatedtype.Residual"·title="type[·...·truncated·by·diffoscope;·len:·754,·SHA:·6fb4dfdb6b4da68921c1e7f8b75d99cf293d58318d684a840254ce9576957bea·...·]/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.78.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:·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:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·140,·SHA:·c27972e6fa3464c9476eaa185e8657edb6bb294f148403f3d079285294a9f909·...·]/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·=·Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;,110 ····R:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.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.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;,
111 ····&lt;R·as·<a·class="trait"·href="../../core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&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·the111 ····&lt;R·as·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&gt;::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/ops/try_trait/trait.Try.html#associatedtype.Residual"·title="type[·...·truncated·by·diffoscope;·len:·412,·SHA:·22b8cbb007e5cce82b9d13a65bfa56aa8d83c32541fac25f4d9b3857b0540908·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;&gt;,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iterator_try_reduce</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/87053">#87053</a>)</span></div></span><div·class='docblock'>Reduces·the·elements·to·a·single·one·by·repeatedly·applying·a·reducing·operation.·If·the
112 closure·returns·a·failure,·the·failure·is·propagated·back·to·the·caller·immediately.·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.try_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:·65b80c848af6e465c8c5aef4ec8d3faaa399d30c8427c9507fda7b3bd1d3ea93·...·]/core/primitive.bool.html">bool</a><div·class="where">where112 closure·returns·a·failure,·the·failure·is·propagated·back·to·the·caller·immediately.·<a·href="https://doc.rust-lang.org/1.78.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:·bc0d658d56e348823de15386e1cd4ab49109f3a7a055a4573a19391b47071193·...·]/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.78.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:·829,·SHA:·95a840b532d3d621bde4032d63854eb0a481248e2b4bbb3ef058dbffb4dae4fa·...·]/core/primitive.bool.html">bool</a><div·class="where">where114 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·1018,·SHA:·e61cd6bdd36729cc38e57fcaea2ccb91a23a5acbda3c8986071f19bf1ecfc52a·...·]/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.78.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:·956,·SHA:·f828c62edd4fe85e217286f359b56c116e14ed18bb292ba1cc13d3ed7146909e·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;<div·class="where">where116 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·1172,·SHA:·e64ab74d116d286191ad43d9d9e10411fc011c23724aa806e9a8f9b0be0757e3·...·]/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.78.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>(&amp;Self::<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:·21d7086b3ce0092e3f7a6a41174339bbd8724e7d186158db4db3385a73d94e8e·...·]/core/option/enum.Option.html"·title="enum·core::option::Option">Option</a>&lt;B&gt;<div·class="where">where118 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·1051,·SHA:·ecc0b8fccd861464760f9ae047ff6ab98c91a1db010cb5fa59a8c2ab883db7c4·...·]/core/option/enum.Option.html"·title="enum·core::option::Option">Option</a>&lt;B&gt;<div·class="where">where
119 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,119 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.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>(Self::<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·returns120 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·130,·SHA:·130a13019dc175d02304b4f550157e2f13ac15c2f25a979c74161d10b146ab89·...·]/core/option/enum.Option.html"·title="enum·core::option::Option">Option</a>&lt;B&gt;,</div></h4></section></summary><div·class='docblock'>Applies·function·to·the·elements·of·iterator·and·returns
121 the·first·non-none·result.·<a·href="../../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:·ac4da3337aac1ec10038e246be9cb719eeb5af1acc709f5a6a25b91900c56f53·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_find"·class="fn">try_find</a>&lt;F,·R&gt;(121 the·first·non-none·result.·<a·href="https://doc.rust-lang.org/1.78.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:·8ced1b10e78750774c5c8ed995ed83dcd13983aa75d329acf8069da106ab9f4a·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_find"·class="fn">try_find</a>&lt;F,·R&gt;(
122 ····&amp;mut·self,122 ····&amp;mut·self,
123 ····f:·F123 ····f:·F
124 )·-&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">where124 )·-&gt;·&lt;&lt;R·as·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&gt;::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/ops/try_trait/trait.Try.html#associatedtype.Residual"·title="type[·...·truncated·by·diffoscope;·len:·626,·SHA:·95f9831257b68862cbcbf54f0ad2ff4e597a4c9f763112d1da8a0897dadcf872·...·]/core/ops/try_trait/trait.Residual.html#associatedtype.TryType"·title="type·core::ops::try_trait::Residual::TryType">TryType</a><div·class="where">where
125 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,125 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.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;·R,126 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·R,
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.78.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.78.0/core/primitive.bool.html">bool</a>&gt;,
Max diff block lines reached; 80227/298617 bytes (26.87%) of diff not shown.
264 KB
./usr/share/doc/rust-web-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.write(`<link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/SourceSerif4-Regular-46f98efaafac5295.ttf.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/FiraSans-Regular-018c141bf0843ffd.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/FiraSans-Medium-8f9a781e4970d388.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/SourceCodePro-Regular-562dcc5011b6de7d.ttf.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/SourceCodePro-Semibold-d899c5a5c4aeb14a.ttf.woff2">`)</script><link·rel="stylesheet"·href="../../static.files/normalize-76eba96aa4d2e634.css"><link·rel="stylesheet"·href="../../static.files/rustdoc-35f9e32502181f1e.css"><meta·name="rustdoc-vars"·data-root-path="../../"·data-static-root-path="../../static.files/"·data-current-crate="alloc"·data-themes=""·data-resource-suffix="1.78.0"·data-rustdoc-version="1.78.0"·data-channel="1.78.0"·data-search-js="search-42d8da7a6b9792c2.js"·data-settings-js="settings-4313503d2e1961c2.js"·><script·src="../../static.files/storage-4c98445ec4002617.js"></script><script·defer·src="sidebar-items1.78.0.js"></script><script·defer·src="../../static.files/main-12cf3b4f4f9dc36d.js"></script><noscript><link·rel="stylesheet"·href="../../static.files/noscript-04d5337699b92874.css"></noscript><link·rel="alternate·icon"·type="image/png"·href="../../static.files/favicon-16x16-8b506e7a72182f1c.png"><link·rel="alternate·icon"·type="image/png"·href="../../static.files/favicon-32x32-422f7d1d52889060.png"><link·rel="icon"·type="image/svg+xml"·href="../../static.files/favicon-2c020d218678b618.svg"></head><body·class="rustdoc·struct"><!--[if·lte·IE·11]><div·class="warning">This·old·browser·is·unsupported·and·will·most·likely·display·funky·things.</div><![endif]--><nav·class="mobile-topbar"><button·class="sidebar-menu-toggle"·title="show·sidebar"></button><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-151179464ae7ed46.svg"·alt=""></a></nav><nav·class="sidebar"><div·class="sidebar-crate"><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-151179464ae7ed46.svg"·alt="logo"></a><h2><a·href="../../alloc/index.html">alloc</a><span·class="version">1.78.0</span></h2></div><h2·class="location"><a·href="#">RSplitN</a></h2><div·class="sidebar-elems"><section><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">Debug</a></li><li><a·href="#impl-FusedIterator-for-RSplitN%3C'a,+T,+P%3E">FusedIterator</a></li><li><a·href="#impl-Iterator-for-RSplitN%3C'a,+T,+P%3E">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">Freeze</a></li><li><a·href="#impl-RefUnwindSafe-for-RSplitN%3C'a,+T,+P%3E">RefUnwindSafe</a></li><li><a·href="#impl-Send-for-RSplitN%3C'a,+T,+P%3E">Send</a></li><li><a·href="#impl-Sync-for-RSplitN%3C'a,+T,+P%3E">Sync</a></li><li><a·href="#impl-Unpin-for-RSplitN%3C'a,+T,+P%3E">Unpin</a></li><li><a·href="#impl-UnwindSafe-for-RSplitN%3C'a,+T,+P%3E">UnwindSafe</a></li></ul><h3><a·href="#blanket-implementations">Blanket·Implementations</a></h3><ul·class="block·blanket-implementation"><li><a·href="#impl-Any-for-T">Any</a></li><li><a·href="#impl-Borrow%3CT%3E-for-T">Borrow&lt;T&gt;</a></li><li><a·href="#impl-BorrowMut%3CT%3E-for-T">BorrowMut&lt;T&gt;</a></li><li><a·href="#impl-From%3CT%3E-for-T">From&lt;T&gt;</a></li><li><a·href="#impl-Into%3CU%3E-for-T">Into&lt;U&gt;</a></li><li><a·href="#impl-IntoIterator-for-I">IntoIterator</a></li><li><a·href="#impl-TryFrom%3CU%3E-for-T">TryFrom&lt;U&gt;</a></li><li><a·href="#impl-TryInto%3CU%3E-for-T">TryInto&lt;U&gt;</a></li></ul></section><h2><a·href="index.html">In·alloc::slice</a></h2></div></nav><div·class="sidebar-resizer"></div>1 <!DOCTYPE·html><html·lang="en"><head><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.write(`<link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/SourceSerif4-Regular-46f98efaafac5295.ttf.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/FiraSans-Regular-018c141bf0843ffd.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/FiraSans-Medium-8f9a781e4970d388.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/SourceCodePro-Regular-562dcc5011b6de7d.ttf.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/SourceCodePro-Semibold-d899c5a5c4aeb14a.ttf.woff2">`)</script><link·rel="stylesheet"·href="../../static.files/normalize-76eba96aa4d2e634.css"><link·rel="stylesheet"·href="../../static.files/rustdoc-35f9e32502181f1e.css"><meta·name="rustdoc-vars"·data-root-path="../../"·data-static-root-path="../../static.files/"·data-current-crate="alloc"·data-themes=""·data-resource-suffix="1.78.0"·data-rustdoc-version="1.78.0"·data-channel="1.78.0"·data-search-js="search-42d8da7a6b9792c2.js"·data-settings-js="settings-4313503d2e1961c2.js"·><script·src="../../static.files/storage-4c98445ec4002617.js"></script><script·defer·src="sidebar-items1.78.0.js"></script><script·defer·src="../../static.files/main-12cf3b4f4f9dc36d.js"></script><noscript><link·rel="stylesheet"·href="../../static.files/noscript-04d5337699b92874.css"></noscript><link·rel="alternate·icon"·type="image/png"·href="../../static.files/favicon-16x16-8b506e7a72182f1c.png"><link·rel="alternate·icon"·type="image/png"·href="../../static.files/favicon-32x32-422f7d1d52889060.png"><link·rel="icon"·type="image/svg+xml"·href="../../static.files/favicon-2c020d218678b618.svg"></head><body·class="rustdoc·struct"><!--[if·lte·IE·11]><div·class="warning">This·old·browser·is·unsupported·and·will·most·likely·display·funky·things.</div><![endif]--><nav·class="mobile-topbar"><button·class="sidebar-menu-toggle"·title="show·sidebar"></button><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-151179464ae7ed46.svg"·alt=""></a></nav><nav·class="sidebar"><div·class="sidebar-crate"><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-151179464ae7ed46.svg"·alt="logo"></a><h2><a·href="../../alloc/index.html">alloc</a><span·class="version">1.78.0</span></h2></div><h2·class="location"><a·href="#">RSplitN</a></h2><div·class="sidebar-elems"><section><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">Debug</a></li><li><a·href="#impl-FusedIterator-for-RSplitN%3C'a,+T,+P%3E">FusedIterator</a></li><li><a·href="#impl-Iterator-for-RSplitN%3C'a,+T,+P%3E">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">Freeze</a></li><li><a·href="#impl-RefUnwindSafe-for-RSplitN%3C'a,+T,+P%3E">RefUnwindSafe</a></li><li><a·href="#impl-Send-for-RSplitN%3C'a,+T,+P%3E">Send</a></li><li><a·href="#impl-Sync-for-RSplitN%3C'a,+T,+P%3E">Sync</a></li><li><a·href="#impl-Unpin-for-RSplitN%3C'a,+T,+P%3E">Unpin</a></li><li><a·href="#impl-UnwindSafe-for-RSplitN%3C'a,+T,+P%3E">UnwindSafe</a></li></ul><h3><a·href="#blanket-implementations">Blanket·Implementations</a></h3><ul·class="block·blanket-implementation"><li><a·href="#impl-Any-for-T">Any</a></li><li><a·href="#impl-Borrow%3CT%3E-for-T">Borrow&lt;T&gt;</a></li><li><a·href="#impl-BorrowMut%3CT%3E-for-T">BorrowMut&lt;T&gt;</a></li><li><a·href="#impl-From%3CT%3E-for-T">From&lt;T&gt;</a></li><li><a·href="#impl-Into%3CU%3E-for-T">Into&lt;U&gt;</a></li><li><a·href="#impl-IntoIterator-for-I">IntoIterator</a></li><li><a·href="#impl-TryFrom%3CU%3E-for-T">TryFrom&lt;U&gt;</a></li><li><a·href="#impl-TryInto%3CU%3E-for-T">TryInto&lt;U&gt;</a></li></ul></section><h2><a·href="index.html">In·alloc::slice</a></h2></div></nav><div·class="sidebar-resizer"></div>
2 ····<main><div·class="width-limiter"><nav·class="sub"><form·class="search-form"><span></span><div·id="sidebar-button"·tabindex="-1"><a·href="../../alloc/all.html"·title="show·sidebar"></a></div><input·class="search-input"·name="search"·aria-label="Run·search·in·the·documentation"·autocomplete="off"·spellcheck="false"·placeholder="Click·or·press·‘S’·to·search,·‘?’·for·more·options…"·type="search"><div·id="help-button"·tabindex="-1"><a·href="../../help.html"·title="help">?</a></div><div·id="settings-menu"·tabindex="-1"><a·href="../../settings.html"·title="settings"><img·width="22"·height="22"·alt="Change·settings"·src="../../static.files/wheel-7b819b6101059cd0.svg"></a></div></form></nav><section·id="main-content"·class="content"><div·class="main-heading"><h1>Struct·<a·href="../index.html">alloc</a>::<wbr><a·href="index.html">slice</a>::<wbr><a·class="struct"·href="#">RSplitN</a><button·id="copy-path"·title="Copy·item·path·to·clipboard"><img·src="../../static.files/clipboard-7571035ce49a181d.svg"·width="19"·height="18"·alt="Copy·item·path"></button></h1><span·class="out-of-band"><span·class="since"·title="Stable·since·Rust·version·1.0.0">1.0.0</span>···<a·class="src"·href="../../src/core/slice/iter.rs.html#1182">source</a>···<button·id="toggle-all-docs"·title="collapse·all·docs">[<span>&#x2212;</span>]</button></span></div><pre·class="rust·item-decl"><code>pub·struct·RSplitN&lt;'a,·T,·P&gt;<div·class="where">where2 ····<main><div·class="width-limiter"><nav·class="sub"><form·class="search-form"><span></span><div·id="sidebar-button"·tabindex="-1"><a·href="../../alloc/all.html"·title="show·sidebar"></a></div><input·class="search-input"·name="search"·aria-label="Run·search·in·the·documentation"·autocomplete="off"·spellcheck="false"·placeholder="Click·or·press·‘S’·to·search,·‘?’·for·more·options…"·type="search"><div·id="help-button"·tabindex="-1"><a·href="../../help.html"·title="help">?</a></div><div·id="settings-menu"·tabindex="-1"><a·href="../../settings.html"·title="settings"><img·width="22"·height="22"·alt="Change·settings"·src="../../static.files/wheel-7b819b6101059cd0.svg"></a></div></form></nav><section·id="main-content"·class="content"><div·class="main-heading"><h1>Struct·<a·href="../index.html">alloc</a>::<wbr><a·href="index.html">slice</a>::<wbr><a·class="struct"·href="#">RSplitN</a><button·id="copy-path"·title="Copy·item·path·to·clipboard"><img·src="../../static.files/clipboard-7571035ce49a181d.svg"·width="19"·height="18"·alt="Copy·item·path"></button></h1><span·class="out-of-band"><span·class="since"·title="Stable·since·Rust·version·1.0.0">1.0.0</span>···<a·class="src"·href="https://doc.rust-lang.org/1.78.0/src/core/slice/iter.rs.html#1182">source</a>···<button·id="toggle-all-docs"·title="collapse·all·docs">[<span>&#x2212;</span>]</button></span></div><pre·class="rust·item-decl"><code>pub·struct·RSplitN&lt;'a,·T,·P&gt;<div·class="where">where
3 ····T:·'a,3 ····T:·'a,
4 ····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·a4 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(<a·class="primitive"·href="https://doc.rust-lang.org/1.78.0/core/primitive.reference.html">&amp;T</a>)·-&gt;·<a·class="primitive"·href="[·...·truncated·by·diffoscope;·len:·32,·SHA:·63d052a8ced32bf927ffadd7e884c08caf4970e85dfdf6be0e568d49b174da96·...·]/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
5 predicate·function,·limited·to·a·given·number·of·splits,·starting5 predicate·function,·limited·to·a·given·number·of·splits,·starting
6 from·the·end·of·the·slice.</p>6 from·the·end·of·the·slice.</p>
7 <p>This·struct·is·created·by·the·<a·href="../../core/primitive.slice.html#method.rsplitn"·title="method·slice::rsplitn"><code>rsplitn</code></a>·method·on·<a·href="../../core/primitive.slice.html"·title="primitive·slice">slices</a>.</p>7 <p>This·struct·is·created·by·the·<a·href="https://doc.rust-lang.org/1.78.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.78.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="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 <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>];
10 <span·class="kw">let·</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>);</code></pre><a·class="test-arrow"·target="_blank"·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+iter+=+slice.rsplitn(2,+%7Cnum%7C+*num+%25+3+==+0);%0A%7D&amp;edition=2021">Run</a></div>10 <span·class="kw">let·</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>);</code></pre><a·class="test-arrow"·target="_blank"·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+iter+=+slice.rsplitn(2,+%7Cnum%7C+*num+%25+3+==+0);%0A%7D&amp;edition=2021">Run</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-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#1197-1199">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">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-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.78.0/src/core/slice/iter.rs.html#1197-1199">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
12 ····T:·<a·class="trait"·href="../fmt/trait.Debug.html"·title="trait·alloc::fmt::Debug">Debug</a>,12 ····T:·<a·class="trait"·href="../fmt/trait.Debug.html"·title="trait·alloc::fmt::Debug">Debug</a>,
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:·1309,·SHA:·74a65e9ac4c9f13e98ad8e859edc5c3c682386c9c4d60366d612794248603f46·...·]/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">where13 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(<a·class="primitive"·href="https://doc.rust-lang.org/1.78.0/core/primitive.reference.html">&amp;T</a>)·-&gt;·<a·class="primitive"·href="[·...·truncated·by·diffoscope;·len:·1525,·SHA:·abc2d6ca1a49f2d91f9b1f735fb7f97db06aabb318f797530d3abcc497e6d919·...·]/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
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:·2569,·SHA:·00e6768f3e76cf789f82aaa156b7f214dc2862264fbb9654b1258517a38145e6·...·]/core/primitive.usize.html">usize</a>&gt;(14 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(<a·class="primitive"·href="https://doc.rust-lang.org/1.78.0/core/primitive.reference.html">&amp;T</a>)·-&gt;·<a·class="primitive"·href="[·...·truncated·by·diffoscope;·len:·3082,·SHA:·f4ba0cd0c44959a3e47b737e9431ca294a0435deb38ee2528f4bf900ae8702e4·...·]/core/primitive.usize.html">usize</a>&gt;(
15 ····&amp;mut·self15 ····&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.78.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.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title=[·...·truncated·by·diffoscope;·len:·381,·SHA:·88c48923c9b7ea5cc47c1087c60e09656e81d4671c58071ba2bef826335388bc·...·]/core/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:·731,·SHA:·1d80a8ea5861d05518e01eeb903c537b78b04ad4159c3e5cf1597907c264b93e·...·]/core/primitive.usize.html">usize</a><div·class="where">where17 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experiment[·...·truncated·by·diffoscope;·len:·866,·SHA:·945d2d86f0c4c5ca3e3ee3b181d18b2bbea57ee1a5a7efe16c0c915a5bf2c3ad·...·]/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:·579,·SHA:·97df9cdc3f1cc1461e704ebdf0c047ac7c0165f9aec8e9afdc069209b7a15a36·...·]/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.78.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:·741,·SHA:·f3078cc3fddd62af2c1a8814c5854bb49f40b79e4fbc9b3addf5862a72370f82·...·]/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:·2868,·SHA:·9ec21b8470b914406f4216b9bac831bf85cccf58579bd476408d6168be7cd43e·...·]/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.78.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.78.0/cor[·...·truncated·by·diffoscope;·len:·3408,·SHA:·b62c6ed65b31a8b555c142d9d15f3ce30e5c76ad2630a0e5a9b13cfd478c6eee·...·]/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.78.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"><a·class="src·rightside"·href="../../src/core/iter/tra[·...·truncated·by·diffoscope;·len:·584,·SHA:·fd3e570373eb5121d35d7e22cdd5dd5fbf7183ee80147135a591fd1285174e82·...·]/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.78.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"><a·class="src·rightside"·hr[·...·truncated·by·diffoscope;·len:·746,·SHA:·f1f70d650c102c8658e13890c7dbfc87418f07e7b522246fb579ec434ef64f7c·...·]/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.78.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:·1017,·SHA:·c0f5f8cfd297e1678ac0ee2fd847fb6f0577665ac326e8e2e9d6414a710c8f98·...·]/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.78.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.78.0/core/iter/traits/it[·...·truncated·by·diffoscope;·len:·1233,·SHA:·f677df2d893dfe0dc1a9d31ebb0ba71a346d265781813e0d664d3f18369b6163·...·]/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.78.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:·c1b5e692e89c9c809075ee8ee72fb15a9ec46c075b08450e1f707d672a224750·...·]/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.78.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:·98627729f77dcf1c9d258f343354ba600b7134c6b3929080f231e8de7155b70b·...·]/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.78.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.78.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.78.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"><a·class="src·rightside"·href="../../src/core/i[·...·truncated·by·diffoscope;·len:·267,·SHA:·1764c9d6d2e39e1367ae2111c28ab846e66ecf12617fbff35e0132e82e5c8b13·...·]/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.78.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"><a·class="src·rights[·...·truncated·by·diffoscope;·len:·375,·SHA:·58419346f92e1709dadb70cc3cf356e3cd27972451bdc6b4fc4267e6f7e8bdae·...·]/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.78.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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::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:·fb4c9589a16c7b6d697c109d1193d2f1e763e5dd967101c2fd92b32416972229·...·]/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.78.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:·98f6effefa44d759c249143d83623f0055d937382bfc398b7e1f5e92cd413657·...·]/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.78.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:·658,·SHA:·e4449b6c00d036dd30444817045eddaf2697443d65789bb5c0b585ed1bc77702·...·]/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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·820,·SHA:·a664bbcbc0891663662e4eb7b4394d0fcd72e568136fc4d34097fea242cc32e7·...·]/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.78.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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·140,·SHA:·752f473b57e7444ebfddf5ea7fd40a332e83ec55524a6c31b5ee0f82a5dea819·...·]/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"><a·class="src·rightside"·href="../../src/core/iter[·...·truncated·by·diffoscope;·len:·285,·SHA:·738ce0440ff568829f40d141e38e2c0da2fd05d2b73d1a574be0ed9baa32e827·...·]/core/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.78.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"><a·class="src·rightside[·...·truncated·by·diffoscope;·len:·393,·SHA:·2e2aa7c9c9c087e7b346da376749064ab8c1894795a2f0a0f646cdc8c7bea997·...·]/core/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.78.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:·767,·SHA:·da0fc5bc95a3398627e0c5836423b719ccea45d351e21ddaa96f793f67f9c6de·...·]/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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·956,·SHA:·faba0521e870dbbd26d466fadba3522e7d29013a9b86376fffafffac11a57e0e·...·]/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.78.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"><a·class="src·rightside"·href="../../src/core/ite[·...·truncated·by·diffoscope;·len:·264,·SHA:·e3fa7ab43c6353bc2216a22d7010c41a8ab50d273a128d15d0eff050c058993a·...·]/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.78.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"><a·class="src·rightsid[·...·truncated·by·diffoscope;·len:·372,·SHA:·03eea0861575eb80d3f7a87a3ba747adb1a33fe7e9ce72aa2172e7a287c63a94·...·]/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.78.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.78.0/core/iter/adapte[·...·truncated·by·diffoscope;·len:·175,·SHA:·16fe7225bf05b478e2828b347c3d23ded9a22f89d8887a2c65d9f7b3faf1b0e7·...·]/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"><a·class="src·rightside"·href="../../src/core/it[·...·truncated·by·diffoscope;·len:·294,·SHA:·c0aee2077af6a4f81ed47e37c84a75b5f9b941875509fbe0b3d352866f825f45·...·]/core/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.78.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"><a·class="src·rightsi[·...·truncated·by·diffoscope;·len:·402,·SHA:·7689a974f800fd069d1b4453ef62d6d6ad1b654462d624d36e3672051d502030·...·]/core/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.78.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:·922,·SHA:·5220bbb4db3c3cd3d7ca7c27520f44f04fe367ee2f0f407fb1d50c0a327a2f99·...·]/core/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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·1138,·SHA:·f6ae06b7de8e94df014341c5cf589a5e4a1298367b2ef7a968ec499c5170a70e·...·]/core/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.78.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:·39eeddf219b211245393e51a591d5064c740fa9be49d88883d8a6474679741ad·...·]/core/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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·1058,·SHA:·b390dbdda8d7e93604b5ecd906a93efd03fe19bdaf41cf12893fd361bf974307·...·]/core/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.78.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:·851,·SHA:·ad2e090d21a034b7c3836ed38a686f4c483f9a929132fef846d48271f749a79c·...·]/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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·1067,·SHA:·415d32e1211c35d3bb405de1d6e51c2102c14cadc3333894f063148dbe0b1f69·...·]/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:·525,·SHA:·6471f48fecadc56edf21fc04794b884b96ce06d339c715e410f5a906e028bc28·...·]/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.78.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:·687,·SHA:·7f5256104c35c5948a2cb42b55f3048c9d2887e48a4a8226537a284f959c562a·...·]/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.78.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"><a·class="src·rightside"·href="../../src/core/iter/traits/[·...·truncated·by·diffoscope;·len:·284,·SHA:·aee83f38f8c40848e159b12a8faa43b9dadf589fe974632a1f15ce2a15834071·...·]/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.78.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"><a·class="src·rightside"·href="[·...·truncated·by·diffoscope;·len:·392,·SHA:·4e7da68f7be2622ef173653eca78d58e1f202b544a2e6abd14d8335c298c93a7·...·]/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.78.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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(<a·class="primitive"·href="https://doc.rust-lang.org/1.78.0/core/primitive.reference.html">&amp;mut·St</a>,·Self::<a·class="associatedty[·...·truncated·by·diffoscope;·len:·449,·SHA:·f12c268a8a8111b9e7126ad78bf5523a63733caa63d187c4fe792309ea41acdf·...·]/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:·459,·SHA:·b825570d9672670eacd8828b3abec12cd1c35433286857de28f5ea8d5e300e03·...·]/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.78.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.78.0/core/iter/trai[·...·truncated·by·diffoscope;·len:·594,·SHA:·02960742fa7892efaa08f289ce85865fc5efb6a4cd138c22e3566ca6fc727d78·...·]/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.78.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.78.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:·9b6a337a3ad68c2a987b52450c153f87a04a8ed9e83603d26077fe6e70d61edf·...·]/core/iter/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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·976,·SHA:·2a9182f6fe88e0b8a9b1ae1f46cace940cc0b8736033c354c0f0ccbf1c196e7a·...·]/core/iter/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.78.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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;[Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtyp[·...·truncated·by·diffoscope;·len:·135,·SHA:·0b06a6094d42ccbc8bce5b01c4383961fe7f1967f05e4c9f1ff33e71e425fb26·...·]/core/primitive.array.html">N</a>])·-&gt;·R,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iter_map_windows</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/87155">#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.78.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"><a·class="src·rightside"·href="../../src/core/iter/[·...·truncated·by·diffoscope;·len:·250,·SHA:·e355ddd0f04b2470ee915aec3ad97857be56b95e6a1f3d733d6c477453f4cf0d·...·]/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.78.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"><a·class="src·rightside"[·...·truncated·by·diffoscope;·len:·358,·SHA:·d91b2ab18e0ce069e262cf523c6ef961f56eecad042ea1e9bcefe33cff28fc8f·...·]/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:·583,·SHA:·b7d7d6125e8980756a2636a6b6e01600057c98a027dcf7d267b1f61538a7b6b0·...·]/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.78.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.78.0/core/op[·...·truncated·by·diffoscope;·len:·745,·SHA:·424783f22102f4446d3ad4d362b1aafdb7531fa777213f97ee138aa878f67bd1·...·]/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.78.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:·676,·SHA:·ae75f35cafbae1e0e695226baca09b0bec6e4a0ed5656a83c3357b29fb00442d·...·]/core/primitive.reference.html">&amp;mut·Self</a><div·class="where">where65 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·838,·SHA:·9b4fd8df7f41e9a76fd4cfca0a233b74b9bd27c3fe8228248abc3f940425a3e3·...·]/core/primitive.reference.html">&amp;mut·Self</a><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:·319,·SHA:·bbb653fcb1f5ad46e04905bf78a76b9dd63ea5d49a2d8cd5b7b36efbb0f7e105·...·]/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.78.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.78.0/core/it[·...·truncated·by·diffoscope;·len:·427,·SHA:·ecfaaac5d1d10c1bc4fcee9a050af0a268bee0b528c2d8ea4e9774440bd8a279·...·]/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.78.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.78.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:·e5d524e874326d0b9b733f5ee809c6595cde869afab0cc3d4ba8454093f420da·...·]/core/primitive.reference.html">&amp;mut·E</a><div·class="where">where68 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.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.78.0/core/iter/tr[·...·truncated·by·diffoscope;·len:·728,·SHA:·01937c2dc314c259495665570ae249c94b4a5b0719718f5f1188e6fc64ecf487·...·]/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.78.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.78.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:·744,·SHA:·a7446142ab67c3f20d866315fbe6cb9c57cd4af012812d6dd19d5061aee6e97b·...·]/core/primitive.tuple.html">(B,·B)</a><div·class="where">where70 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experiment[·...·truncated·by·diffoscope;·len:·879,·SHA:·e773b2222c92d001e295030cb47a780ab0c1132d7fc8e9e3a98de4f532e6c520·...·]/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.78.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.78.0/core/default/trait.Default.html"·title="trait·core::default::Default">Default</a>·+·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/collect/trait.Extend.html"·title="trait·core::iter::traits::collec[·...·truncated·by·diffoscope;·len:·95,·SHA:·8b3be1d0042cae0550f865faf5849221240bdf04eb1b2107605b72d48c3ad29c·...·]/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:·f8b50287f3e106633ed79a84072d3ddd9d98672efd685d2433c61b5549ce051e·...·]/core/primitive.bool.html">bool</a><div·class="where">where73 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·972,·SHA:·6de765542031617a9c28ac98fe6df619e58e62d9c65ec5b1c185a7152b8944e5·...·]/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.78.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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·135,·SHA:·51ff5f5c7ebd8440623ea71b125c5a5837e809e308fe1a13fbe19cddb941dbd9·...·]/core/primitive.bool.html">bool</a>,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iter_is_partitioned</code>&nbsp;<a·href="https://github.com/rust-lang/rust/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:·6f406a351b93047f56fa70265a6bf28ec6874f75cd6cc5a39d51c7af462f2992·...·]/core/iter/traits/iterator/trait.Iterator.html#method.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.78.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:·2c74873f4e5ba70004a1c7edd1cc3f9e2d91271295dd1591e2d26848df4c02ba·...·]/core/iter/traits/iterator/trait.Iterator.html#method.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.78.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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(B,·Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.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.78.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:·eecdce021399d206eb3ef5af12ee7663b4eb0dca55b0f411c7fa66f605b6b2e2·...·]/core/iter/traits/iterator/trait.Iterator.html#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.78.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:·52912e82c4b0a760d06f77eb4ee3a59ba70dd76cb532954900c73ae94c652674·...·]/core/iter/traits/iterator/trait.Iterator.html#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.78.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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.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.78.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.78.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"><a·class="src·rightside"·href="../../src/core/iter[·...·truncated·by·diffoscope;·len:·130,·SHA:·75c0150024fe6cdc702d7337508ab57600248490dd062768204ddb064c9a1b8b·...·]/core/iter/traits/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.78.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"><a·class="src·rightside[·...·truncated·by·diffoscope;·len:·211,·SHA:·924e062acd8127e8d6158162219ee5d57a941854e14063d21d7768edae549431·...·]/core/iter/traits/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.78.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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(B,·Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::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:·dbe3a08fe63abd47570741e71208c31aaf51152feac5917db07665a1f56bb3e3·...·]/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.78.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:·b60215068a6d9721be05f81098c51167d7138c4042f140cad42f77c4df43f597·...·]/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.78.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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·352,·SHA:·e7c3c296abe2c0a183967153e4ae7fd50bafa2ae7088e3e78b3b48fee253adc6·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::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:·a9dce8bb557b5a11426bf2ffcbd5eea7c6c870833e3ee5bb072dcaaa11687b0c·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_reduce"·class="fn">try_reduce</a>&lt;F,·R&gt;(90 operation.·<a·href="https://doc.rust-lang.org/1.78.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:·7a18fdd041b1a001b4a8feb289ee127fd9240232239269eb35dc3b8f74783ec9·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_reduce"·class="fn">try_reduce</a>&lt;F,·R&gt;(
91 ····&amp;mut·self,91 ····&amp;mut·self,
92 ····f:·F92 ····f:·F
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.78.0/core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&gt;::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/ops/try_trait/trait.Try.html#associatedtype.Residual"·title="type[·...·truncated·by·diffoscope;·len:·754,·SHA:·6fb4dfdb6b4da68921c1e7f8b75d99cf293d58318d684a840254ce9576957bea·...·]/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.78.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:·59,·SHA:·3d53eece7c48858eda31192ab2620ae144896b35400c945bbf3eb5dc06bf8d12·...·]/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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·140,·SHA:·c27972e6fa3464c9476eaa185e8657edb6bb294f148403f3d079285294a9f909·...·]/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·=·Self::<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.78.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.78.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.78.0/core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&gt;::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/ops/try_trait/trait.Try.html#associatedtype.Residual"·title="type[·...·truncated·by·diffoscope;·len:·412,·SHA:·22b8cbb007e5cce82b9d13a65bfa56aa8d83c32541fac25f4d9b3857b0540908·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;&gt;,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iterator_try_reduce</code>&nbsp;<a·href="https://github.com/rust-lang/rust/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"><a·class="src·rightside"·href="../../src/core/iter/tr[·...·truncated·by·diffoscope;·len:·272,·SHA:·97959736d897a01242f49f2e45854ab874bf0c9bbe30acad9a49eb73169e457c·...·]/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.78.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"><a·class="src·rightside"·h[·...·truncated·by·diffoscope;·len:·380,·SHA:·29c4004d4d8b0c8c9dfe9023f8b2c5ef801d9dc4688893035d182c1ae774c453·...·]/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.78.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:·733,·SHA:·9bb9f0199d90f78ad65c59dbe67a1c751cd5a681130a03bef3b1e8ed907a3bba·...·]/core/primitive.bool.html">bool</a><div·class="where">where100 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·922,·SHA:·f4fd532c280e18f28bd6dda6c2a129e2e92114b67f27235bb5fd39f725be9c43·...·]/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.78.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:·860,·SHA:·6a94ae33b82eb12a91660811a8ab9d243468d885c07ac766a2507d25a4e7ee62·...·]/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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·1076,·SHA:·2dd9de8adaee4a5ee96501d9a58bfac2fea00ba8d78b834bfca29949b3afe18b·...·]/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.78.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:·21d7086b3ce0092e3f7a6a41174339bbd8724e7d186158db4db3385a73d94e8e·...·]/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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·1051,·SHA:·ecc0b8fccd861464760f9ae047ff6ab98c91a1db010cb5fa59a8c2ab883db7c4·...·]/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.78.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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·130,·SHA:·130a13019dc175d02304b4f550157e2f13ac15c2f25a979c74161d10b146ab89·...·]/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:·ac4da3337aac1ec10038e246be9cb719eeb5af1acc709f5a6a25b91900c56f53·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_find"·class="fn">try_find</a>&lt;F,·R&gt;(107 the·first·non-none·result.·<a·href="https://doc.rust-lang.org/1.78.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:·8ced1b10e78750774c5c8ed995ed83dcd13983aa75d329acf8069da106ab9f4a·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_find"·class="fn">try_find</a>&lt;F,·R&gt;(
108 ····&amp;mut·self,108 ····&amp;mut·self,
109 ····f:·F109 ····f:·F
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.78.0/core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&gt;::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/ops/try_trait/trait.Try.html#associatedtype.Residual"·title="type[·...·truncated·by·diffoscope;·len:·626,·SHA:·95f9831257b68862cbcbf54f0ad2ff4e597a4c9f763112d1da8a0897dadcf872·...·]/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.78.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;·R,112 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·R,
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.78.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.78.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.78.0/core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&gt;::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/ops/try_trait/trait.Try.html#associatedtype.Residual"·title="type[·...·truncated·by·diffoscope;·len:·412,·SHA:·22b8cbb007e5cce82b9d13a65bfa56aa8d83c32541fac25f4d9b3857b0540908·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;&gt;,</div></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"><a·class="src·rightside"·href="../../src/core/iter[·...·truncated·by·diffoscope;·len:·404,·SHA:·f45e13f24791f759991b5b3c0f29ce7cc9019b87d7ca444f65464e8a939e287c·...·]/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.78.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"><a·class="src·rightside[·...·truncated·by·diffoscope;·len:·539,·SHA:·04e329705f11ed9ec269a68b0b75ac4ab26c78e4316a571ee9336c28bbca6359·...·]/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.78.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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·1190,·SHA:·882e9e9a037f916d0ed4aa6d749399e6e01ca81811eacfc54a484818cb5d5029·...·]/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.78.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.78.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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/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.78.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:·0367b1bacc0a7d8e05f1c5181f8c4ea428f3f11edbae0e76811f3ef1d4925e41·...·]/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.78.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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·346,·SHA:·7113e4c2d65a123253bb18971efdc2d49241cfc2dd4c2b18e4cfa4e4d7d4140f·...·]/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.78.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:·db89d4cca0becf2a4ab904adac2870de6fd83cfad5131f5a1431a67766274f81·...·]/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.78.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.78.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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/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; 81021/269851 bytes (30.02%) of diff not shown.
263 KB
./usr/share/doc/rust-web-doc/html/alloc/slice/struct.RSplitNMut.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="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.write(`<link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/SourceSerif4-Regular-46f98efaafac5295.ttf.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/FiraSans-Regular-018c141bf0843ffd.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/FiraSans-Medium-8f9a781e4970d388.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/SourceCodePro-Regular-562dcc5011b6de7d.ttf.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/SourceCodePro-Semibold-d899c5a5c4aeb14a.ttf.woff2">`)</script><link·rel="stylesheet"·href="../../static.files/normalize-76eba96aa4d2e634.css"><link·rel="stylesheet"·href="../../static.files/rustdoc-35f9e32502181f1e.css"><meta·name="rustdoc-vars"·data-root-path="../../"·data-static-root-path="../../static.files/"·data-current-crate="alloc"·data-themes=""·data-resource-suffix="1.78.0"·data-rustdoc-version="1.78.0"·data-channel="1.78.0"·data-search-js="search-42d8da7a6b9792c2.js"·data-settings-js="settings-4313503d2e1961c2.js"·><script·src="../../static.files/storage-4c98445ec4002617.js"></script><script·defer·src="sidebar-items1.78.0.js"></script><script·defer·src="../../static.files/main-12cf3b4f4f9dc36d.js"></script><noscript><link·rel="stylesheet"·href="../../static.files/noscript-04d5337699b92874.css"></noscript><link·rel="alternate·icon"·type="image/png"·href="../../static.files/favicon-16x16-8b506e7a72182f1c.png"><link·rel="alternate·icon"·type="image/png"·href="../../static.files/favicon-32x32-422f7d1d52889060.png"><link·rel="icon"·type="image/svg+xml"·href="../../static.files/favicon-2c020d218678b618.svg"></head><body·class="rustdoc·struct"><!--[if·lte·IE·11]><div·class="warning">This·old·browser·is·unsupported·and·will·most·likely·display·funky·things.</div><![endif]--><nav·class="mobile-topbar"><button·class="sidebar-menu-toggle"·title="show·sidebar"></button><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-151179464ae7ed46.svg"·alt=""></a></nav><nav·class="sidebar"><div·class="sidebar-crate"><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-151179464ae7ed46.svg"·alt="logo"></a><h2><a·href="../../alloc/index.html">alloc</a><span·class="version">1.78.0</span></h2></div><h2·class="location"><a·href="#">RSplitNMut</a></h2><div·class="sidebar-elems"><section><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">Debug</a></li><li><a·href="#impl-FusedIterator-for-RSplitNMut%3C'a,+T,+P%3E">FusedIterator</a></li><li><a·href="#impl-Iterator-for-RSplitNMut%3C'a,+T,+P%3E">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">!UnwindSafe</a></li><li><a·href="#impl-Freeze-for-RSplitNMut%3C'a,+T,+P%3E">Freeze</a></li><li><a·href="#impl-RefUnwindSafe-for-RSplitNMut%3C'a,+T,+P%3E">RefUnwindSafe</a></li><li><a·href="#impl-Send-for-RSplitNMut%3C'a,+T,+P%3E">Send</a></li><li><a·href="#impl-Sync-for-RSplitNMut%3C'a,+T,+P%3E">Sync</a></li><li><a·href="#impl-Unpin-for-RSplitNMut%3C'a,+T,+P%3E">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">Any</a></li><li><a·href="#impl-Borrow%3CT%3E-for-T">Borrow&lt;T&gt;</a></li><li><a·href="#impl-BorrowMut%3CT%3E-for-T">BorrowMut&lt;T&gt;</a></li><li><a·href="#impl-From%3CT%3E-for-T">From&lt;T&gt;</a></li><li><a·href="#impl-Into%3CU%3E-for-T">Into&lt;U&gt;</a></li><li><a·href="#impl-IntoIterator-for-I">IntoIterator</a></li><li><a·href="#impl-TryFrom%3CU%3E-for-T">TryFrom&lt;U&gt;</a></li><li><a·href="#impl-TryInto%3CU%3E-for-T">TryInto&lt;U&gt;</a></li></ul></section><h2><a·href="index.html">In·alloc::slice</a></h2></div></nav><div·class="sidebar-resizer"></div>1 <!DOCTYPE·html><html·lang="en"><head><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.write(`<link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/SourceSerif4-Regular-46f98efaafac5295.ttf.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/FiraSans-Regular-018c141bf0843ffd.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/FiraSans-Medium-8f9a781e4970d388.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/SourceCodePro-Regular-562dcc5011b6de7d.ttf.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/SourceCodePro-Semibold-d899c5a5c4aeb14a.ttf.woff2">`)</script><link·rel="stylesheet"·href="../../static.files/normalize-76eba96aa4d2e634.css"><link·rel="stylesheet"·href="../../static.files/rustdoc-35f9e32502181f1e.css"><meta·name="rustdoc-vars"·data-root-path="../../"·data-static-root-path="../../static.files/"·data-current-crate="alloc"·data-themes=""·data-resource-suffix="1.78.0"·data-rustdoc-version="1.78.0"·data-channel="1.78.0"·data-search-js="search-42d8da7a6b9792c2.js"·data-settings-js="settings-4313503d2e1961c2.js"·><script·src="../../static.files/storage-4c98445ec4002617.js"></script><script·defer·src="sidebar-items1.78.0.js"></script><script·defer·src="../../static.files/main-12cf3b4f4f9dc36d.js"></script><noscript><link·rel="stylesheet"·href="../../static.files/noscript-04d5337699b92874.css"></noscript><link·rel="alternate·icon"·type="image/png"·href="../../static.files/favicon-16x16-8b506e7a72182f1c.png"><link·rel="alternate·icon"·type="image/png"·href="../../static.files/favicon-32x32-422f7d1d52889060.png"><link·rel="icon"·type="image/svg+xml"·href="../../static.files/favicon-2c020d218678b618.svg"></head><body·class="rustdoc·struct"><!--[if·lte·IE·11]><div·class="warning">This·old·browser·is·unsupported·and·will·most·likely·display·funky·things.</div><![endif]--><nav·class="mobile-topbar"><button·class="sidebar-menu-toggle"·title="show·sidebar"></button><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-151179464ae7ed46.svg"·alt=""></a></nav><nav·class="sidebar"><div·class="sidebar-crate"><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-151179464ae7ed46.svg"·alt="logo"></a><h2><a·href="../../alloc/index.html">alloc</a><span·class="version">1.78.0</span></h2></div><h2·class="location"><a·href="#">RSplitNMut</a></h2><div·class="sidebar-elems"><section><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">Debug</a></li><li><a·href="#impl-FusedIterator-for-RSplitNMut%3C'a,+T,+P%3E">FusedIterator</a></li><li><a·href="#impl-Iterator-for-RSplitNMut%3C'a,+T,+P%3E">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">!UnwindSafe</a></li><li><a·href="#impl-Freeze-for-RSplitNMut%3C'a,+T,+P%3E">Freeze</a></li><li><a·href="#impl-RefUnwindSafe-for-RSplitNMut%3C'a,+T,+P%3E">RefUnwindSafe</a></li><li><a·href="#impl-Send-for-RSplitNMut%3C'a,+T,+P%3E">Send</a></li><li><a·href="#impl-Sync-for-RSplitNMut%3C'a,+T,+P%3E">Sync</a></li><li><a·href="#impl-Unpin-for-RSplitNMut%3C'a,+T,+P%3E">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">Any</a></li><li><a·href="#impl-Borrow%3CT%3E-for-T">Borrow&lt;T&gt;</a></li><li><a·href="#impl-BorrowMut%3CT%3E-for-T">BorrowMut&lt;T&gt;</a></li><li><a·href="#impl-From%3CT%3E-for-T">From&lt;T&gt;</a></li><li><a·href="#impl-Into%3CU%3E-for-T">Into&lt;U&gt;</a></li><li><a·href="#impl-IntoIterator-for-I">IntoIterator</a></li><li><a·href="#impl-TryFrom%3CU%3E-for-T">TryFrom&lt;U&gt;</a></li><li><a·href="#impl-TryInto%3CU%3E-for-T">TryInto&lt;U&gt;</a></li></ul></section><h2><a·href="index.html">In·alloc::slice</a></h2></div></nav><div·class="sidebar-resizer"></div>
2 ····<main><div·class="width-limiter"><nav·class="sub"><form·class="search-form"><span></span><div·id="sidebar-button"·tabindex="-1"><a·href="../../alloc/all.html"·title="show·sidebar"></a></div><input·class="search-input"·name="search"·aria-label="Run·search·in·the·documentation"·autocomplete="off"·spellcheck="false"·placeholder="Click·or·press·‘S’·to·search,·‘?’·for·more·options…"·type="search"><div·id="help-button"·tabindex="-1"><a·href="../../help.html"·title="help">?</a></div><div·id="settings-menu"·tabindex="-1"><a·href="../../settings.html"·title="settings"><img·width="22"·height="22"·alt="Change·settings"·src="../../static.files/wheel-7b819b6101059cd0.svg"></a></div></form></nav><section·id="main-content"·class="content"><div·class="main-heading"><h1>Struct·<a·href="../index.html">alloc</a>::<wbr><a·href="index.html">slice</a>::<wbr><a·class="struct"·href="#">RSplitNMut</a><button·id="copy-path"·title="Copy·item·path·to·clipboard"><img·src="../../static.files/clipboard-7571035ce49a181d.svg"·width="19"·height="18"·alt="Copy·item·path"></button></h1><span·class="out-of-band"><span·class="since"·title="Stable·since·Rust·version·1.0.0">1.0.0</span>···<a·class="src"·href="../../src/core/slice/iter.rs.html#1263">source</a>···<button·id="toggle-all-docs"·title="collapse·all·docs">[<span>&#x2212;</span>]</button></span></div><pre·class="rust·item-decl"><code>pub·struct·RSplitNMut&lt;'a,·T,·P&gt;<div·class="where">where2 ····<main><div·class="width-limiter"><nav·class="sub"><form·class="search-form"><span></span><div·id="sidebar-button"·tabindex="-1"><a·href="../../alloc/all.html"·title="show·sidebar"></a></div><input·class="search-input"·name="search"·aria-label="Run·search·in·the·documentation"·autocomplete="off"·spellcheck="false"·placeholder="Click·or·press·‘S’·to·search,·‘?’·for·more·options…"·type="search"><div·id="help-button"·tabindex="-1"><a·href="../../help.html"·title="help">?</a></div><div·id="settings-menu"·tabindex="-1"><a·href="../../settings.html"·title="settings"><img·width="22"·height="22"·alt="Change·settings"·src="../../static.files/wheel-7b819b6101059cd0.svg"></a></div></form></nav><section·id="main-content"·class="content"><div·class="main-heading"><h1>Struct·<a·href="../index.html">alloc</a>::<wbr><a·href="index.html">slice</a>::<wbr><a·class="struct"·href="#">RSplitNMut</a><button·id="copy-path"·title="Copy·item·path·to·clipboard"><img·src="../../static.files/clipboard-7571035ce49a181d.svg"·width="19"·height="18"·alt="Copy·item·path"></button></h1><span·class="out-of-band"><span·class="since"·title="Stable·since·Rust·version·1.0.0">1.0.0</span>···<a·class="src"·href="https://doc.rust-lang.org/1.78.0/src/core/slice/iter.rs.html#1263">source</a>···<button·id="toggle-all-docs"·title="collapse·all·docs">[<span>&#x2212;</span>]</button></span></div><pre·class="rust·item-decl"><code>pub·struct·RSplitNMut&lt;'a,·T,·P&gt;<div·class="where">where
3 ····T:·'a,3 ····T:·'a,
4 ····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·a4 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(<a·class="primitive"·href="https://doc.rust-lang.org/1.78.0/core/primitive.reference.html">&amp;T</a>)·-&gt;·<a·class="primitive"·href="[·...·truncated·by·diffoscope;·len:·32,·SHA:·63d052a8ced32bf927ffadd7e884c08caf4970e85dfdf6be0e568d49b174da96·...·]/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
5 predicate·function,·limited·to·a·given·number·of·splits,·starting5 predicate·function,·limited·to·a·given·number·of·splits,·starting
6 from·the·end·of·the·slice.</p>6 from·the·end·of·the·slice.</p>
7 <p>This·struct·is·created·by·the·<a·href="../../core/primitive.slice.html#method.rsplitn_mut"·title="method·slice::rsplitn_mut"><code>rsplitn_mut</code></a>·method·on·<a·href="../../core/primitive.slice.html"·title="primitive·slice">slices</a>.</p>7 <p>This·struct·is·created·by·the·<a·href="https://doc.rust-lang.org/1.78.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.78.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="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 <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>];
10 <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"·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">Run</a></div>10 <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"·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">Run</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-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#1278-1280">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">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-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.78.0/src/core/slice/iter.rs.html#1278-1280">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
12 ····T:·<a·class="trait"·href="../fmt/trait.Debug.html"·title="trait·alloc::fmt::Debug">Debug</a>,12 ····T:·<a·class="trait"·href="../fmt/trait.Debug.html"·title="trait·alloc::fmt::Debug">Debug</a>,
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:·1315,·SHA:·821b456d4c32e04994c54ac26d960985c791170aa678606cda1776d848b6ccb9·...·]/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">where13 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(<a·class="primitive"·href="https://doc.rust-lang.org/1.78.0/core/primitive.reference.html">&amp;T</a>)·-&gt;·<a·class="primitive"·href="[·...·truncated·by·diffoscope;·len:·1531,·SHA:·a17c599343fea43493b288fecddd240c51b566373496b56135dfe94b098c1fca·...·]/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
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:·2577,·SHA:·cb544f07587f715143675f88f9f09549445ae8630bfb731d98f8977a5f050549·...·]/core/primitive.usize.html">usize</a>&gt;(14 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(<a·class="primitive"·href="https://doc.rust-lang.org/1.78.0/core/primitive.reference.html">&amp;T</a>)·-&gt;·<a·class="primitive"·href="[·...·truncated·by·diffoscope;·len:·3090,·SHA:·5eaefd9bd665a9303c77386fe37418a7b780d89f379e1e4d16563fe488206f01·...·]/core/primitive.usize.html">usize</a>&gt;(
15 ····&amp;mut·self15 ····&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.78.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.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title=[·...·truncated·by·diffoscope;·len:·381,·SHA:·88c48923c9b7ea5cc47c1087c60e09656e81d4671c58071ba2bef826335388bc·...·]/core/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:·731,·SHA:·1d80a8ea5861d05518e01eeb903c537b78b04ad4159c3e5cf1597907c264b93e·...·]/core/primitive.usize.html">usize</a><div·class="where">where17 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experiment[·...·truncated·by·diffoscope;·len:·866,·SHA:·945d2d86f0c4c5ca3e3ee3b181d18b2bbea57ee1a5a7efe16c0c915a5bf2c3ad·...·]/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:·579,·SHA:·97df9cdc3f1cc1461e704ebdf0c047ac7c0165f9aec8e9afdc069209b7a15a36·...·]/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.78.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:·741,·SHA:·f3078cc3fddd62af2c1a8814c5854bb49f40b79e4fbc9b3addf5862a72370f82·...·]/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:·2868,·SHA:·9ec21b8470b914406f4216b9bac831bf85cccf58579bd476408d6168be7cd43e·...·]/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.78.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.78.0/cor[·...·truncated·by·diffoscope;·len:·3408,·SHA:·b62c6ed65b31a8b555c142d9d15f3ce30e5c76ad2630a0e5a9b13cfd478c6eee·...·]/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.78.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"><a·class="src·rightside"·href="../../src/core/iter/tra[·...·truncated·by·diffoscope;·len:·584,·SHA:·fd3e570373eb5121d35d7e22cdd5dd5fbf7183ee80147135a591fd1285174e82·...·]/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.78.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"><a·class="src·rightside"·hr[·...·truncated·by·diffoscope;·len:·746,·SHA:·f1f70d650c102c8658e13890c7dbfc87418f07e7b522246fb579ec434ef64f7c·...·]/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.78.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:·1017,·SHA:·c0f5f8cfd297e1678ac0ee2fd847fb6f0577665ac326e8e2e9d6414a710c8f98·...·]/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.78.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.78.0/core/iter/traits/it[·...·truncated·by·diffoscope;·len:·1233,·SHA:·f677df2d893dfe0dc1a9d31ebb0ba71a346d265781813e0d664d3f18369b6163·...·]/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.78.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:·c1b5e692e89c9c809075ee8ee72fb15a9ec46c075b08450e1f707d672a224750·...·]/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.78.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:·98627729f77dcf1c9d258f343354ba600b7134c6b3929080f231e8de7155b70b·...·]/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.78.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.78.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.78.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"><a·class="src·rightside"·href="../../src/core/i[·...·truncated·by·diffoscope;·len:·267,·SHA:·1764c9d6d2e39e1367ae2111c28ab846e66ecf12617fbff35e0132e82e5c8b13·...·]/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.78.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"><a·class="src·rights[·...·truncated·by·diffoscope;·len:·375,·SHA:·58419346f92e1709dadb70cc3cf356e3cd27972451bdc6b4fc4267e6f7e8bdae·...·]/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.78.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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::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:·fb4c9589a16c7b6d697c109d1193d2f1e763e5dd967101c2fd92b32416972229·...·]/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.78.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:·98f6effefa44d759c249143d83623f0055d937382bfc398b7e1f5e92cd413657·...·]/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.78.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:·658,·SHA:·e4449b6c00d036dd30444817045eddaf2697443d65789bb5c0b585ed1bc77702·...·]/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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·820,·SHA:·a664bbcbc0891663662e4eb7b4394d0fcd72e568136fc4d34097fea242cc32e7·...·]/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.78.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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·140,·SHA:·752f473b57e7444ebfddf5ea7fd40a332e83ec55524a6c31b5ee0f82a5dea819·...·]/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"><a·class="src·rightside"·href="../../src/core/iter[·...·truncated·by·diffoscope;·len:·285,·SHA:·738ce0440ff568829f40d141e38e2c0da2fd05d2b73d1a574be0ed9baa32e827·...·]/core/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.78.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"><a·class="src·rightside[·...·truncated·by·diffoscope;·len:·393,·SHA:·2e2aa7c9c9c087e7b346da376749064ab8c1894795a2f0a0f646cdc8c7bea997·...·]/core/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.78.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:·767,·SHA:·da0fc5bc95a3398627e0c5836423b719ccea45d351e21ddaa96f793f67f9c6de·...·]/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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·956,·SHA:·faba0521e870dbbd26d466fadba3522e7d29013a9b86376fffafffac11a57e0e·...·]/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.78.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"><a·class="src·rightside"·href="../../src/core/ite[·...·truncated·by·diffoscope;·len:·264,·SHA:·e3fa7ab43c6353bc2216a22d7010c41a8ab50d273a128d15d0eff050c058993a·...·]/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.78.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"><a·class="src·rightsid[·...·truncated·by·diffoscope;·len:·372,·SHA:·03eea0861575eb80d3f7a87a3ba747adb1a33fe7e9ce72aa2172e7a287c63a94·...·]/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.78.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.78.0/core/iter/adapte[·...·truncated·by·diffoscope;·len:·175,·SHA:·16fe7225bf05b478e2828b347c3d23ded9a22f89d8887a2c65d9f7b3faf1b0e7·...·]/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"><a·class="src·rightside"·href="../../src/core/it[·...·truncated·by·diffoscope;·len:·294,·SHA:·c0aee2077af6a4f81ed47e37c84a75b5f9b941875509fbe0b3d352866f825f45·...·]/core/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.78.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"><a·class="src·rightsi[·...·truncated·by·diffoscope;·len:·402,·SHA:·7689a974f800fd069d1b4453ef62d6d6ad1b654462d624d36e3672051d502030·...·]/core/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.78.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:·922,·SHA:·5220bbb4db3c3cd3d7ca7c27520f44f04fe367ee2f0f407fb1d50c0a327a2f99·...·]/core/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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·1138,·SHA:·f6ae06b7de8e94df014341c5cf589a5e4a1298367b2ef7a968ec499c5170a70e·...·]/core/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.78.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:·39eeddf219b211245393e51a591d5064c740fa9be49d88883d8a6474679741ad·...·]/core/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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·1058,·SHA:·b390dbdda8d7e93604b5ecd906a93efd03fe19bdaf41cf12893fd361bf974307·...·]/core/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.78.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:·851,·SHA:·ad2e090d21a034b7c3836ed38a686f4c483f9a929132fef846d48271f749a79c·...·]/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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·1067,·SHA:·415d32e1211c35d3bb405de1d6e51c2102c14cadc3333894f063148dbe0b1f69·...·]/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:·525,·SHA:·6471f48fecadc56edf21fc04794b884b96ce06d339c715e410f5a906e028bc28·...·]/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.78.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:·687,·SHA:·7f5256104c35c5948a2cb42b55f3048c9d2887e48a4a8226537a284f959c562a·...·]/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.78.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"><a·class="src·rightside"·href="../../src/core/iter/traits/[·...·truncated·by·diffoscope;·len:·284,·SHA:·aee83f38f8c40848e159b12a8faa43b9dadf589fe974632a1f15ce2a15834071·...·]/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.78.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"><a·class="src·rightside"·href="[·...·truncated·by·diffoscope;·len:·392,·SHA:·4e7da68f7be2622ef173653eca78d58e1f202b544a2e6abd14d8335c298c93a7·...·]/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.78.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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(<a·class="primitive"·href="https://doc.rust-lang.org/1.78.0/core/primitive.reference.html">&amp;mut·St</a>,·Self::<a·class="associatedty[·...·truncated·by·diffoscope;·len:·449,·SHA:·f12c268a8a8111b9e7126ad78bf5523a63733caa63d187c4fe792309ea41acdf·...·]/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:·459,·SHA:·b825570d9672670eacd8828b3abec12cd1c35433286857de28f5ea8d5e300e03·...·]/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.78.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.78.0/core/iter/trai[·...·truncated·by·diffoscope;·len:·594,·SHA:·02960742fa7892efaa08f289ce85865fc5efb6a4cd138c22e3566ca6fc727d78·...·]/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.78.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.78.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:·9b6a337a3ad68c2a987b52450c153f87a04a8ed9e83603d26077fe6e70d61edf·...·]/core/iter/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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·976,·SHA:·2a9182f6fe88e0b8a9b1ae1f46cace940cc0b8736033c354c0f0ccbf1c196e7a·...·]/core/iter/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.78.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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;[Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtyp[·...·truncated·by·diffoscope;·len:·135,·SHA:·0b06a6094d42ccbc8bce5b01c4383961fe7f1967f05e4c9f1ff33e71e425fb26·...·]/core/primitive.array.html">N</a>])·-&gt;·R,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iter_map_windows</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/87155">#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.78.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"><a·class="src·rightside"·href="../../src/core/iter/[·...·truncated·by·diffoscope;·len:·250,·SHA:·e355ddd0f04b2470ee915aec3ad97857be56b95e6a1f3d733d6c477453f4cf0d·...·]/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.78.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"><a·class="src·rightside"[·...·truncated·by·diffoscope;·len:·358,·SHA:·d91b2ab18e0ce069e262cf523c6ef961f56eecad042ea1e9bcefe33cff28fc8f·...·]/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:·583,·SHA:·b7d7d6125e8980756a2636a6b6e01600057c98a027dcf7d267b1f61538a7b6b0·...·]/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.78.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.78.0/core/op[·...·truncated·by·diffoscope;·len:·745,·SHA:·424783f22102f4446d3ad4d362b1aafdb7531fa777213f97ee138aa878f67bd1·...·]/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.78.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:·676,·SHA:·ae75f35cafbae1e0e695226baca09b0bec6e4a0ed5656a83c3357b29fb00442d·...·]/core/primitive.reference.html">&amp;mut·Self</a><div·class="where">where65 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·838,·SHA:·9b4fd8df7f41e9a76fd4cfca0a233b74b9bd27c3fe8228248abc3f940425a3e3·...·]/core/primitive.reference.html">&amp;mut·Self</a><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:·319,·SHA:·bbb653fcb1f5ad46e04905bf78a76b9dd63ea5d49a2d8cd5b7b36efbb0f7e105·...·]/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.78.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.78.0/core/it[·...·truncated·by·diffoscope;·len:·427,·SHA:·ecfaaac5d1d10c1bc4fcee9a050af0a268bee0b528c2d8ea4e9774440bd8a279·...·]/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.78.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.78.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:·e5d524e874326d0b9b733f5ee809c6595cde869afab0cc3d4ba8454093f420da·...·]/core/primitive.reference.html">&amp;mut·E</a><div·class="where">where68 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.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.78.0/core/iter/tr[·...·truncated·by·diffoscope;·len:·728,·SHA:·01937c2dc314c259495665570ae249c94b4a5b0719718f5f1188e6fc64ecf487·...·]/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.78.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.78.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:·744,·SHA:·a7446142ab67c3f20d866315fbe6cb9c57cd4af012812d6dd19d5061aee6e97b·...·]/core/primitive.tuple.html">(B,·B)</a><div·class="where">where70 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experiment[·...·truncated·by·diffoscope;·len:·879,·SHA:·e773b2222c92d001e295030cb47a780ab0c1132d7fc8e9e3a98de4f532e6c520·...·]/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.78.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.78.0/core/default/trait.Default.html"·title="trait·core::default::Default">Default</a>·+·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/collect/trait.Extend.html"·title="trait·core::iter::traits::collec[·...·truncated·by·diffoscope;·len:·95,·SHA:·8b3be1d0042cae0550f865faf5849221240bdf04eb1b2107605b72d48c3ad29c·...·]/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:·f8b50287f3e106633ed79a84072d3ddd9d98672efd685d2433c61b5549ce051e·...·]/core/primitive.bool.html">bool</a><div·class="where">where73 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·972,·SHA:·6de765542031617a9c28ac98fe6df619e58e62d9c65ec5b1c185a7152b8944e5·...·]/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.78.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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·135,·SHA:·51ff5f5c7ebd8440623ea71b125c5a5837e809e308fe1a13fbe19cddb941dbd9·...·]/core/primitive.bool.html">bool</a>,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iter_is_partitioned</code>&nbsp;<a·href="https://github.com/rust-lang/rust/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:·6f406a351b93047f56fa70265a6bf28ec6874f75cd6cc5a39d51c7af462f2992·...·]/core/iter/traits/iterator/trait.Iterator.html#method.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.78.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:·2c74873f4e5ba70004a1c7edd1cc3f9e2d91271295dd1591e2d26848df4c02ba·...·]/core/iter/traits/iterator/trait.Iterator.html#method.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.78.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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(B,·Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.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.78.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:·eecdce021399d206eb3ef5af12ee7663b4eb0dca55b0f411c7fa66f605b6b2e2·...·]/core/iter/traits/iterator/trait.Iterator.html#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.78.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:·52912e82c4b0a760d06f77eb4ee3a59ba70dd76cb532954900c73ae94c652674·...·]/core/iter/traits/iterator/trait.Iterator.html#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.78.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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.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.78.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.78.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"><a·class="src·rightside"·href="../../src/core/iter[·...·truncated·by·diffoscope;·len:·130,·SHA:·75c0150024fe6cdc702d7337508ab57600248490dd062768204ddb064c9a1b8b·...·]/core/iter/traits/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.78.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"><a·class="src·rightside[·...·truncated·by·diffoscope;·len:·211,·SHA:·924e062acd8127e8d6158162219ee5d57a941854e14063d21d7768edae549431·...·]/core/iter/traits/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.78.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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(B,·Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::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:·dbe3a08fe63abd47570741e71208c31aaf51152feac5917db07665a1f56bb3e3·...·]/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.78.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:·b60215068a6d9721be05f81098c51167d7138c4042f140cad42f77c4df43f597·...·]/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.78.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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·352,·SHA:·e7c3c296abe2c0a183967153e4ae7fd50bafa2ae7088e3e78b3b48fee253adc6·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::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:·a9dce8bb557b5a11426bf2ffcbd5eea7c6c870833e3ee5bb072dcaaa11687b0c·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_reduce"·class="fn">try_reduce</a>&lt;F,·R&gt;(90 operation.·<a·href="https://doc.rust-lang.org/1.78.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:·7a18fdd041b1a001b4a8feb289ee127fd9240232239269eb35dc3b8f74783ec9·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_reduce"·class="fn">try_reduce</a>&lt;F,·R&gt;(
91 ····&amp;mut·self,91 ····&amp;mut·self,
92 ····f:·F92 ····f:·F
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.78.0/core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&gt;::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/ops/try_trait/trait.Try.html#associatedtype.Residual"·title="type[·...·truncated·by·diffoscope;·len:·754,·SHA:·6fb4dfdb6b4da68921c1e7f8b75d99cf293d58318d684a840254ce9576957bea·...·]/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.78.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:·59,·SHA:·3d53eece7c48858eda31192ab2620ae144896b35400c945bbf3eb5dc06bf8d12·...·]/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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·140,·SHA:·c27972e6fa3464c9476eaa185e8657edb6bb294f148403f3d079285294a9f909·...·]/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·=·Self::<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.78.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.78.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.78.0/core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&gt;::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/ops/try_trait/trait.Try.html#associatedtype.Residual"·title="type[·...·truncated·by·diffoscope;·len:·412,·SHA:·22b8cbb007e5cce82b9d13a65bfa56aa8d83c32541fac25f4d9b3857b0540908·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;&gt;,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iterator_try_reduce</code>&nbsp;<a·href="https://github.com/rust-lang/rust/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"><a·class="src·rightside"·href="../../src/core/iter/tr[·...·truncated·by·diffoscope;·len:·272,·SHA:·97959736d897a01242f49f2e45854ab874bf0c9bbe30acad9a49eb73169e457c·...·]/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.78.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"><a·class="src·rightside"·h[·...·truncated·by·diffoscope;·len:·380,·SHA:·29c4004d4d8b0c8c9dfe9023f8b2c5ef801d9dc4688893035d182c1ae774c453·...·]/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.78.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:·733,·SHA:·9bb9f0199d90f78ad65c59dbe67a1c751cd5a681130a03bef3b1e8ed907a3bba·...·]/core/primitive.bool.html">bool</a><div·class="where">where100 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·922,·SHA:·f4fd532c280e18f28bd6dda6c2a129e2e92114b67f27235bb5fd39f725be9c43·...·]/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.78.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:·860,·SHA:·6a94ae33b82eb12a91660811a8ab9d243468d885c07ac766a2507d25a4e7ee62·...·]/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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·1076,·SHA:·2dd9de8adaee4a5ee96501d9a58bfac2fea00ba8d78b834bfca29949b3afe18b·...·]/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.78.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:·21d7086b3ce0092e3f7a6a41174339bbd8724e7d186158db4db3385a73d94e8e·...·]/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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·1051,·SHA:·ecc0b8fccd861464760f9ae047ff6ab98c91a1db010cb5fa59a8c2ab883db7c4·...·]/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.78.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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·130,·SHA:·130a13019dc175d02304b4f550157e2f13ac15c2f25a979c74161d10b146ab89·...·]/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:·ac4da3337aac1ec10038e246be9cb719eeb5af1acc709f5a6a25b91900c56f53·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_find"·class="fn">try_find</a>&lt;F,·R&gt;(107 the·first·non-none·result.·<a·href="https://doc.rust-lang.org/1.78.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:·8ced1b10e78750774c5c8ed995ed83dcd13983aa75d329acf8069da106ab9f4a·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_find"·class="fn">try_find</a>&lt;F,·R&gt;(
108 ····&amp;mut·self,108 ····&amp;mut·self,
109 ····f:·F109 ····f:·F
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.78.0/core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&gt;::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/ops/try_trait/trait.Try.html#associatedtype.Residual"·title="type[·...·truncated·by·diffoscope;·len:·626,·SHA:·95f9831257b68862cbcbf54f0ad2ff4e597a4c9f763112d1da8a0897dadcf872·...·]/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.78.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;·R,112 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·R,
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.78.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.78.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.78.0/core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&gt;::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/ops/try_trait/trait.Try.html#associatedtype.Residual"·title="type[·...·truncated·by·diffoscope;·len:·412,·SHA:·22b8cbb007e5cce82b9d13a65bfa56aa8d83c32541fac25f4d9b3857b0540908·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;&gt;,</div></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"><a·class="src·rightside"·href="../../src/core/iter[·...·truncated·by·diffoscope;·len:·404,·SHA:·f45e13f24791f759991b5b3c0f29ce7cc9019b87d7ca444f65464e8a939e287c·...·]/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.78.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"><a·class="src·rightside[·...·truncated·by·diffoscope;·len:·539,·SHA:·04e329705f11ed9ec269a68b0b75ac4ab26c78e4316a571ee9336c28bbca6359·...·]/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.78.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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·1190,·SHA:·882e9e9a037f916d0ed4aa6d749399e6e01ca81811eacfc54a484818cb5d5029·...·]/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.78.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.78.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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/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.78.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:·0367b1bacc0a7d8e05f1c5181f8c4ea428f3f11edbae0e76811f3ef1d4925e41·...·]/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.78.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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·346,·SHA:·7113e4c2d65a123253bb18971efdc2d49241cfc2dd4c2b18e4cfa4e4d7d4140f·...·]/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.78.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:·db89d4cca0becf2a4ab904adac2870de6fd83cfad5131f5a1431a67766274f81·...·]/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.78.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.78.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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/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; 80501/269519 bytes (29.87%) of diff not shown.
304 KB
./usr/share/doc/rust-web-doc/html/alloc/slice/struct.Split.html
    
Offset 1, 239 lines modifiedOffset 1, 239 lines modified
1 <!DOCTYPE·html><html·lang="en"><head><meta·charset="utf-8"><meta·name="viewport"·content="width=device-width,·initial-scale=1.0"><meta·name="generator"·content="rustdoc"><meta·name="description"·content="An·iterator·over·subslices·separated·by·elements·that·match·a·predicate·function."><title>Split·in·alloc::slice·-·Rust</title><script>·if·(window.location.protocol·!==·"file:")·document.write(`<link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/SourceSerif4-Regular-46f98efaafac5295.ttf.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/FiraSans-Regular-018c141bf0843ffd.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/FiraSans-Medium-8f9a781e4970d388.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/SourceCodePro-Regular-562dcc5011b6de7d.ttf.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/SourceCodePro-Semibold-d899c5a5c4aeb14a.ttf.woff2">`)</script><link·rel="stylesheet"·href="../../static.files/normalize-76eba96aa4d2e634.css"><link·rel="stylesheet"·href="../../static.files/rustdoc-35f9e32502181f1e.css"><meta·name="rustdoc-vars"·data-root-path="../../"·data-static-root-path="../../static.files/"·data-current-crate="alloc"·data-themes=""·data-resource-suffix="1.78.0"·data-rustdoc-version="1.78.0"·data-channel="1.78.0"·data-search-js="search-42d8da7a6b9792c2.js"·data-settings-js="settings-4313503d2e1961c2.js"·><script·src="../../static.files/storage-4c98445ec4002617.js"></script><script·defer·src="sidebar-items1.78.0.js"></script><script·defer·src="../../static.files/main-12cf3b4f4f9dc36d.js"></script><noscript><link·rel="stylesheet"·href="../../static.files/noscript-04d5337699b92874.css"></noscript><link·rel="alternate·icon"·type="image/png"·href="../../static.files/favicon-16x16-8b506e7a72182f1c.png"><link·rel="alternate·icon"·type="image/png"·href="../../static.files/favicon-32x32-422f7d1d52889060.png"><link·rel="icon"·type="image/svg+xml"·href="../../static.files/favicon-2c020d218678b618.svg"></head><body·class="rustdoc·struct"><!--[if·lte·IE·11]><div·class="warning">This·old·browser·is·unsupported·and·will·most·likely·display·funky·things.</div><![endif]--><nav·class="mobile-topbar"><button·class="sidebar-menu-toggle"·title="show·sidebar"></button><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-151179464ae7ed46.svg"·alt=""></a></nav><nav·class="sidebar"><div·class="sidebar-crate"><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-151179464ae7ed46.svg"·alt="logo"></a><h2><a·href="../../alloc/index.html">alloc</a><span·class="version">1.78.0</span></h2></div><h2·class="location"><a·href="#">Split</a></h2><div·class="sidebar-elems"><section><h3><a·href="#implementations">Methods</a></h3><ul·class="block·method"><li><a·href="#method.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">Clone</a></li><li><a·href="#impl-Debug-for-Split%3C'_,+T,+P%3E">Debug</a></li><li><a·href="#impl-DoubleEndedIterator-for-Split%3C'a,+T,+P%3E">DoubleEndedIterator</a></li><li><a·href="#impl-FusedIterator-for-Split%3C'_,+T,+P%3E">FusedIterator</a></li><li><a·href="#impl-Iterator-for-Split%3C'a,+T,+P%3E">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">Freeze</a></li><li><a·href="#impl-RefUnwindSafe-for-Split%3C'a,+T,+P%3E">RefUnwindSafe</a></li><li><a·href="#impl-Send-for-Split%3C'a,+T,+P%3E">Send</a></li><li><a·href="#impl-Sync-for-Split%3C'a,+T,+P%3E">Sync</a></li><li><a·href="#impl-Unpin-for-Split%3C'a,+T,+P%3E">Unpin</a></li><li><a·href="#impl-UnwindSafe-for-Split%3C'a,+T,+P%3E">UnwindSafe</a></li></ul><h3><a·href="#blanket-implementations">Blanket·Implementations</a></h3><ul·class="block·blanket-implementation"><li><a·href="#impl-Any-for-T">Any</a></li><li><a·href="#impl-Borrow%3CT%3E-for-T">Borrow&lt;T&gt;</a></li><li><a·href="#impl-BorrowMut%3CT%3E-for-T">BorrowMut&lt;T&gt;</a></li><li><a·href="#impl-From%3CT%3E-for-T">From&lt;T&gt;</a></li><li><a·href="#impl-Into%3CU%3E-for-T">Into&lt;U&gt;</a></li><li><a·href="#impl-IntoIterator-for-I">IntoIterator</a></li><li><a·href="#impl-ToOwned-for-T">ToOwned</a></li><li><a·href="#impl-TryFrom%3CU%3E-for-T">TryFrom&lt;U&gt;</a></li><li><a·href="#impl-TryInto%3CU%3E-for-T">TryInto&lt;U&gt;</a></li></ul></section><h2><a·href="index.html">In·alloc::slice</a></h2></div></nav><div·class="sidebar-resizer"></div>1 <!DOCTYPE·html><html·lang="en"><head><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.write(`<link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/SourceSerif4-Regular-46f98efaafac5295.ttf.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/FiraSans-Regular-018c141bf0843ffd.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/FiraSans-Medium-8f9a781e4970d388.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/SourceCodePro-Regular-562dcc5011b6de7d.ttf.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/SourceCodePro-Semibold-d899c5a5c4aeb14a.ttf.woff2">`)</script><link·rel="stylesheet"·href="../../static.files/normalize-76eba96aa4d2e634.css"><link·rel="stylesheet"·href="../../static.files/rustdoc-35f9e32502181f1e.css"><meta·name="rustdoc-vars"·data-root-path="../../"·data-static-root-path="../../static.files/"·data-current-crate="alloc"·data-themes=""·data-resource-suffix="1.78.0"·data-rustdoc-version="1.78.0"·data-channel="1.78.0"·data-search-js="search-42d8da7a6b9792c2.js"·data-settings-js="settings-4313503d2e1961c2.js"·><script·src="../../static.files/storage-4c98445ec4002617.js"></script><script·defer·src="sidebar-items1.78.0.js"></script><script·defer·src="../../static.files/main-12cf3b4f4f9dc36d.js"></script><noscript><link·rel="stylesheet"·href="../../static.files/noscript-04d5337699b92874.css"></noscript><link·rel="alternate·icon"·type="image/png"·href="../../static.files/favicon-16x16-8b506e7a72182f1c.png"><link·rel="alternate·icon"·type="image/png"·href="../../static.files/favicon-32x32-422f7d1d52889060.png"><link·rel="icon"·type="image/svg+xml"·href="../../static.files/favicon-2c020d218678b618.svg"></head><body·class="rustdoc·struct"><!--[if·lte·IE·11]><div·class="warning">This·old·browser·is·unsupported·and·will·most·likely·display·funky·things.</div><![endif]--><nav·class="mobile-topbar"><button·class="sidebar-menu-toggle"·title="show·sidebar"></button><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-151179464ae7ed46.svg"·alt=""></a></nav><nav·class="sidebar"><div·class="sidebar-crate"><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-151179464ae7ed46.svg"·alt="logo"></a><h2><a·href="../../alloc/index.html">alloc</a><span·class="version">1.78.0</span></h2></div><h2·class="location"><a·href="#">Split</a></h2><div·class="sidebar-elems"><section><h3><a·href="#implementations">Methods</a></h3><ul·class="block·method"><li><a·href="#method.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">Clone</a></li><li><a·href="#impl-Debug-for-Split%3C'_,+T,+P%3E">Debug</a></li><li><a·href="#impl-DoubleEndedIterator-for-Split%3C'a,+T,+P%3E">DoubleEndedIterator</a></li><li><a·href="#impl-FusedIterator-for-Split%3C'_,+T,+P%3E">FusedIterator</a></li><li><a·href="#impl-Iterator-for-Split%3C'a,+T,+P%3E">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">Freeze</a></li><li><a·href="#impl-RefUnwindSafe-for-Split%3C'a,+T,+P%3E">RefUnwindSafe</a></li><li><a·href="#impl-Send-for-Split%3C'a,+T,+P%3E">Send</a></li><li><a·href="#impl-Sync-for-Split%3C'a,+T,+P%3E">Sync</a></li><li><a·href="#impl-Unpin-for-Split%3C'a,+T,+P%3E">Unpin</a></li><li><a·href="#impl-UnwindSafe-for-Split%3C'a,+T,+P%3E">UnwindSafe</a></li></ul><h3><a·href="#blanket-implementations">Blanket·Implementations</a></h3><ul·class="block·blanket-implementation"><li><a·href="#impl-Any-for-T">Any</a></li><li><a·href="#impl-Borrow%3CT%3E-for-T">Borrow&lt;T&gt;</a></li><li><a·href="#impl-BorrowMut%3CT%3E-for-T">BorrowMut&lt;T&gt;</a></li><li><a·href="#impl-From%3CT%3E-for-T">From&lt;T&gt;</a></li><li><a·href="#impl-Into%3CU%3E-for-T">Into&lt;U&gt;</a></li><li><a·href="#impl-IntoIterator-for-I">IntoIterator</a></li><li><a·href="#impl-ToOwned-for-T">ToOwned</a></li><li><a·href="#impl-TryFrom%3CU%3E-for-T">TryFrom&lt;U&gt;</a></li><li><a·href="#impl-TryInto%3CU%3E-for-T">TryInto&lt;U&gt;</a></li></ul></section><h2><a·href="index.html">In·alloc::slice</a></h2></div></nav><div·class="sidebar-resizer"></div>
2 ····<main><div·class="width-limiter"><nav·class="sub"><form·class="search-form"><span></span><div·id="sidebar-button"·tabindex="-1"><a·href="../../alloc/all.html"·title="show·sidebar"></a></div><input·class="search-input"·name="search"·aria-label="Run·search·in·the·documentation"·autocomplete="off"·spellcheck="false"·placeholder="Click·or·press·‘S’·to·search,·‘?’·for·more·options…"·type="search"><div·id="help-button"·tabindex="-1"><a·href="../../help.html"·title="help">?</a></div><div·id="settings-menu"·tabindex="-1"><a·href="../../settings.html"·title="settings"><img·width="22"·height="22"·alt="Change·settings"·src="../../static.files/wheel-7b819b6101059cd0.svg"></a></div></form></nav><section·id="main-content"·class="content"><div·class="main-heading"><h1>Struct·<a·href="../index.html">alloc</a>::<wbr><a·href="index.html">slice</a>::<wbr><a·class="struct"·href="#">Split</a><button·id="copy-path"·title="Copy·item·path·to·clipboard"><img·src="../../static.files/clipboard-7571035ce49a181d.svg"·width="19"·height="18"·alt="Copy·item·path"></button></h1><span·class="out-of-band"><span·class="since"·title="Stable·since·Rust·version·1.0.0">1.0.0</span>···<a·class="src"·href="../../src/core/slice/iter.rs.html#394">source</a>···<button·id="toggle-all-docs"·title="collapse·all·docs">[<span>&#x2212;</span>]</button></span></div><pre·class="rust·item-decl"><code>pub·struct·Split&lt;'a,·T,·P&gt;<div·class="where">where2 ····<main><div·class="width-limiter"><nav·class="sub"><form·class="search-form"><span></span><div·id="sidebar-button"·tabindex="-1"><a·href="../../alloc/all.html"·title="show·sidebar"></a></div><input·class="search-input"·name="search"·aria-label="Run·search·in·the·documentation"·autocomplete="off"·spellcheck="false"·placeholder="Click·or·press·‘S’·to·search,·‘?’·for·more·options…"·type="search"><div·id="help-button"·tabindex="-1"><a·href="../../help.html"·title="help">?</a></div><div·id="settings-menu"·tabindex="-1"><a·href="../../settings.html"·title="settings"><img·width="22"·height="22"·alt="Change·settings"·src="../../static.files/wheel-7b819b6101059cd0.svg"></a></div></form></nav><section·id="main-content"·class="content"><div·class="main-heading"><h1>Struct·<a·href="../index.html">alloc</a>::<wbr><a·href="index.html">slice</a>::<wbr><a·class="struct"·href="#">Split</a><button·id="copy-path"·title="Copy·item·path·to·clipboard"><img·src="../../static.files/clipboard-7571035ce49a181d.svg"·width="19"·height="18"·alt="Copy·item·path"></button></h1><span·class="out-of-band"><span·class="since"·title="Stable·since·Rust·version·1.0.0">1.0.0</span>···<a·class="src"·href="https://doc.rust-lang.org/1.78.0/src/core/slice/iter.rs.html#394">source</a>···<button·id="toggle-all-docs"·title="collapse·all·docs">[<span>&#x2212;</span>]</button></span></div><pre·class="rust·item-decl"><code>pub·struct·Split&lt;'a,·T,·P&gt;<div·class="where">where
3 ····T:·'a,3 ····T:·'a,
4 ····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·predicate4 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(<a·class="primitive"·href="https://doc.rust-lang.org/1.78.0/core/primitive.reference.html">&amp;T</a>)·-&gt;·<a·class="primitive"·href="[·...·truncated·by·diffoscope;·len:·32,·SHA:·63d052a8ced32bf927ffadd7e884c08caf4970e85dfdf6be0e568d49b174da96·...·]/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
5 function.</p>5 function.</p>
6 <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>6 <p>This·struct·is·created·by·the·<a·href="https://doc.rust-lang.org/1.78.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.78.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(|num|·num·%·<span·class="number">3·</span>==·<span·class="number">0</span>);</code></pre><a·class="test-arrow"·target="_blank"·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%7D&amp;edition=2021">Run</a></div>9 <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>);</code></pre><a·class="test-arrow"·target="_blank"·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%7D&amp;edition=2021">Run</a></div>
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-Split%3C'a,+T,+P%3E"·class="impl"><a·class="src·rightside"·href="../../src/core/slice/iter.rs.html#405">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">where10 </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.78.0/src/core/slice/iter.rs.html#405">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
11 ····T:·'a,11 ····T:·'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:·358,·SHA:·09e51cfb9adc298f8f09b75122cdc673043cce927a52815e54c3b92490b1aa55·...·]/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>12 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(<a·class="primitive"·href="https://doc.rust-lang.org/1.78.0/core/primitive.reference.html">&amp;T</a>)·-&gt;·<a·class="primitive"·href="[·...·truncated·by·diffoscope;·len:·493,·SHA:·e7b96fe56d00fa12854b864ee427b4820b98d01376baf5699780bca6efdf1e1e·...·]/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>
13 <h5·id="example-1"><a·class="doc-anchor"·href="#example-1">§</a>Example</h5>13 <h5·id="example-1"><a·class="doc-anchor"·href="#example-1">§</a>Example</h5>
14 <div·class="example-wrap"><pre·class="rust·rust-example-rendered"><code><span·class="attr">#![feature(split_as_slice)]14 <div·class="example-wrap"><pre·class="rust·rust-example-rendered"><code><span·class="attr">#![feature(split_as_slice)]
15 </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>];15 </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>];
16 <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>);16 <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>);
17 <span·class="macro">assert!</span>(split.next().is_some());17 <span·class="macro">assert!</span>(split.next().is_some());
18 <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"·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">Run</a></div>18 <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"·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">Run</a></div>
19 </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"><a·class="src·rightside"·href="../../src/core/slice/iter.rs.html#438-440">source</a><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">where19 </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"><a·class="src·rightside"·href="https://doc.rust-lang.org/1.78.0/src/core/slice/iter.rs.html#438-440">source</a><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.78.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
20 ····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:·1743,·SHA:·5670cc3a279f73a32511312ea522aaeafa76b6297efdd0d2a4a83b0eece9f23c·...·]/src/core/slice/iter.rs.html#427-429">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">where20 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/clone/trait.Clone.html"·title="trait·core::clone::Clone">Clone</a>·+·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(<a·cla[·...·truncated·by·diffoscope;·len:·2067,·SHA:·5ff112811aceaccb10ea066378a0ac26a1d37b5d11628e7434de477ce741ed17·...·]/src/core/slice/iter.rs.html#427-429">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
21 ····T:·<a·class="trait"·href="../fmt/trait.Debug.html"·title="trait·alloc::fmt::Debug">Debug</a>,21 ····T:·<a·class="trait"·href="../fmt/trait.Debug.html"·title="trait·alloc::fmt::Debug">Debug</a>,
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:·1329,·SHA:·fa0db7d5e80f4754b36f42be02cc5b3a523a135bc0ea81d6f15d48b2521cfe44·...·]/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">where22 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(<a·class="primitive"·href="https://doc.rust-lang.org/1.78.0/core/primitive.reference.html">&amp;T</a>)·-&gt;·<a·class="primitive"·href="[·...·truncated·by·diffoscope;·len:·1545,·SHA:·837f687572f6946d2bfa124121e957d69c30fc69bf366fcb9c55ff6ddbd3c8ed·...·]/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
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:·3750,·SHA:·a8f711b23bab45098e803072010d130f8fe03df06fce82d1b674e90cb215e4b5·...·]/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">where23 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(<a·class="primitive"·href="https://doc.rust-lang.org/1.78.0/core/primitive.reference.html">&amp;T</a>)·-&gt;·<a·class="primitive"·href="[·...·truncated·by·diffoscope;·len:·4398,·SHA:·07f594721e0dcc4ba72994b6aafecd6a0ada1863e388ad18b43277c21410c8f5·...·]/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
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.78.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;·R,25 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(B,·Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·R,
26 ····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·takes26 ····R:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.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.7[·...·truncated·by·diffoscope;·len:·3,·SHA:·7b1bd53949b752d143d871408483b5382371b5bc48d195d0c040ec93cfa2748b·...·]/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
27 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:·74b709f2c818a4eda5d85ea863eb2d8af72c87564dbab2746e67feafb0cbb9a3·...·]/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">where27 elements·starting·from·the·back·of·the·iterator.·<a·href="https://doc.rust-lang.org/1.78.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:·d66ed7e195a53e9945339ef1976aed455dcf80228d8e5b7b0c69a64c3983fea1·...·]/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
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.78.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>(B,·Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/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 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(B,·Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/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,
30 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:·f8bdf1e28866c7668477ab391452c7cfa7fd52cc69b633e782a157931421b39b·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;<div·class="where">where30 final·value,·starting·from·the·back.·<a·href="https://doc.rust-lang.org/1.78.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:·c264047794019a6dcf05728ba6a6ee1f8f07c7209958b3366ba94546b527ecdc·...·]/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>,31 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.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:·713,·SHA:·015430814378500eee1facc0437e5db70f87d5ac7afa77c34be4d0ecca46cc66·...·]/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">where32 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·875,·SHA:·1aef5a24225c3fb8142dcaab7c5ba037acc4e97f3899baffcc56df8a44afe28a·...·]/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
33 ····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:·2567,·SHA:·0e4a1b2d1a83776bd03ff55a25ed3ae7f2a07dd65b01ab4b152ceefdd51241de·...·]/core/primitive.usize.html">usize</a>&gt;(33 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(<a·class="primitive"·href="https://doc.rust-lang.org/1.78.0/core/primitive.reference.html">&amp;T</a>)·-&gt;·<a·class="primitive"·href="[·...·truncated·by·diffoscope;·len:·3080,·SHA:·c149a4b0271321ad5597a280a0c4c33745c4256a08e998786d54967b9cf988ba·...·]/core/primitive.usize.html">usize</a>&gt;(
34 ····&amp;mut·self34 ····&amp;mut·self
35 )·-&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">where35 )·-&gt;·<a·class="enum"·href="https://doc.rust-lang.org/1.78.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.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title=[·...·truncated·by·diffoscope;·len:·381,·SHA:·88c48923c9b7ea5cc47c1087c60e09656e81d4671c58071ba2bef826335388bc·...·]/core/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
36 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></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:·731,·SHA:·1d80a8ea5861d05518e01eeb903c537b78b04ad4159c3e5cf1597907c264b93e·...·]/core/primitive.usize.html">usize</a><div·class="where">where36 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experiment[·...·truncated·by·diffoscope;·len:·866,·SHA:·945d2d86f0c4c5ca3e3ee3b181d18b2bbea57ee1a5a7efe16c0c915a5bf2c3ad·...·]/core/primitive.usize.html">usize</a><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,·counting·the·number·of·iterations·and·returning·it.·<a·href="../../core/iter/traits/iterator/trait.I[·...·truncated·by·diffoscope;·len:·579,·SHA:·97df9cdc3f1cc1461e704ebdf0c047ac7c0165f9aec8e9afdc069209b7a15a36·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;<div·class="where">where37 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.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:·741,·SHA:·f3078cc3fddd62af2c1a8814c5854bb49f40b79e4fbc9b3addf5862a72370f82·...·]/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>,</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:·2868,·SHA:·9ec21b8470b914406f4216b9bac831bf85cccf58579bd476408d6168be7cd43e·...·]/core/iter/adapters/step_by/struct.StepBy.html"·title="struct·core::iter::adapters::step_by::StepBy">StepBy</a>&lt;Self&gt;<div·class="where">where38 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.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.78.0/cor[·...·truncated·by·diffoscope;·len:·3408,·SHA:·b62c6ed65b31a8b555c142d9d15f3ce30e5c76ad2630a0e5a9b13cfd478c6eee·...·]/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
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·starting·at·the·same·point,·but·stepping·by39 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.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
40 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"><a·class="src·rightside"·href="../../src/core/iter/tra[·...·truncated·by·diffoscope;·len:·584,·SHA:·fd3e570373eb5121d35d7e22cdd5dd5fbf7183ee80147135a591fd1285174e82·...·]/core/iter/traits/collect/trait.IntoIterator.html#associatedtype.IntoIter"·title="type·core::iter::traits::collect::IntoIterator::IntoIter">IntoIter</a>&gt;<div·class="where">where40 the·given·amount·at·each·iteration.·<a·href="https://doc.rust-lang.org/1.78.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"><a·class="src·rightside"·hr[·...·truncated·by·diffoscope;·len:·746,·SHA:·f1f70d650c102c8658e13890c7dbfc87418f07e7b522246fb579ec434ef64f7c·...·]/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.78.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>&lt;Item·=·Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title=[·...·truncated·by·diffoscope;·len:·1017,·SHA:·c0f5f8cfd297e1678ac0ee2fd847fb6f0577665ac326e8e2e9d6414a710c8f98·...·]/core/iter/traits/collect/trait.IntoIterator.html#associatedtype.IntoIter"·title="type·core::iter::traits::collect::IntoIterator::IntoIter">IntoIter</a>&gt;<div·class="where">where42 ····U:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.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.78.0/core/iter/traits/it[·...·truncated·by·diffoscope;·len:·1233,·SHA:·f677df2d893dfe0dc1a9d31ebb0ba71a346d265781813e0d664d3f18369b6163·...·]/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.78.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>,</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:·c1b5e692e89c9c809075ee8ee72fb15a9ec46c075b08450e1f707d672a224750·...·]/core/iter/adapters/intersperse/struct.IntersperseWith.html"·title="struct·core::iter::adapters::intersperse::IntersperseWith">IntersperseWith</a>&lt;Self,·G&gt;<div·class="where">where44 ····U:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.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:·98627729f77dcf1c9d258f343354ba600b7134c6b3929080f231e8de7155b70b·...·]/core/iter/adapters/intersperse/struct.IntersperseWith.html"·title="struct·core::iter::adapters::intersperse::IntersperseWith">IntersperseWith</a>&lt;Self,·G&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.78.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
46 ····G:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>()·-&gt;·Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iter_intersperse</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/79524">#79524</a>)</span></div></span><div·class='docblock'>Creates·a·new·iterator·which·places·an·item·generated·by·<code>separator</code>46 ····G:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.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.78.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>
47 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"><a·class="src·rightside"·href="../../src/core/i[·...·truncated·by·diffoscope;·len:·267,·SHA:·1764c9d6d2e39e1367ae2111c28ab846e66ecf12617fbff35e0132e82e5c8b13·...·]/core/iter/adapters/map/struct.Map.html"·title="struct·core::iter::adapters::map::Map">Map</a>&lt;Self,·F&gt;<div·class="where">where47 between·adjacent·items·of·the·original·iterator.·<a·href="https://doc.rust-lang.org/1.78.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"><a·class="src·rights[·...·truncated·by·diffoscope;·len:·375,·SHA:·58419346f92e1709dadb70cc3cf356e3cd27972451bdc6b4fc4267e6f7e8bdae·...·]/core/iter/adapters/map/struct.Map.html"·title="struct·core::iter::adapters::map::Map">Map</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.78.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::Item">Item</a>)·-&gt;·B,</div></h4></section></summary><div·class='docblock'>Takes·a·closure·and·creates·an·iterator·which·calls·that·closure·on·each49 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::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
50 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:·fb4c9589a16c7b6d697c109d1193d2f1e763e5dd967101c2fd92b32416972229·...·]/core/iter/traits/iterator/trait.Iterator.html#method.for_each"·class="fn">for_each</a>&lt;F&gt;(self,·f:·F)<div·class="where">where50 element.·<a·href="https://doc.rust-lang.org/1.78.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:·98f6effefa44d759c249143d83623f0055d937382bfc398b7e1f5e92cd413657·...·]/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
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.78.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::[·...·truncated·by·diffoscope;·len:·658,·SHA:·e4449b6c00d036dd30444817045eddaf2697443d65789bb5c0b585ed1bc77702·...·]/core/iter/adapters/filter/struct.Filter.html"·title="struct·core::iter::adapters::filter::Filter">Filter</a>&lt;Self,·P&gt;<div·class="where">where52 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·820,·SHA:·a664bbcbc0891663662e4eb7b4394d0fcd72e568136fc4d34097fea242cc32e7·...·]/core/iter/adapters/filter/struct.Filter.html"·title="struct·core::iter::adapters::filter::Filter">Filter</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.78.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:·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·element54 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·140,·SHA:·752f473b57e7444ebfddf5ea7fd40a332e83ec55524a6c31b5ee0f82a5dea819·...·]/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
55 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"><a·class="src·rightside"·href="../../src/core/iter[·...·truncated·by·diffoscope;·len:·285,·SHA:·738ce0440ff568829f40d141e38e2c0da2fd05d2b73d1a574be0ed9baa32e827·...·]/core/iter/adapters/filter_map/struct.FilterMap.html"·title="struct·core::iter::adapters::filter_map::FilterMap">FilterMap</a>&lt;Self,·F&gt;<div·class="where">where55 should·be·yielded.·<a·href="https://doc.rust-lang.org/1.78.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"><a·class="src·rightside[·...·truncated·by·diffoscope;·len:·393,·SHA:·2e2aa7c9c9c087e7b346da376749064ab8c1894795a2f0a0f646cdc8c7bea997·...·]/core/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
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.78.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:·767,·SHA:·da0fc5bc95a3398627e0c5836423b719ccea45d351e21ddaa96f793f67f9c6de·...·]/core/iter/adapters/enumerate/struct.Enumerate.html"·title="struct·core::iter::adapters::enumerate::Enumerate">Enumerate</a>&lt;Self&gt;<div·class="where">where57 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·956,·SHA:·faba0521e870dbbd26d466fadba3522e7d29013a9b86376fffafffac11a57e0e·...·]/core/iter/adapters/enumerate/struct.Enumerate.html"·title="struct·core::iter::adapters::enumerate::Enumerate">Enumerate</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·gives·the·current·iteration·count·as·well·as58 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.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
59 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"><a·class="src·rightside"·href="../../src/core/ite[·...·truncated·by·diffoscope;·len:·264,·SHA:·e3fa7ab43c6353bc2216a22d7010c41a8ab50d273a128d15d0eff050c058993a·...·]/core/iter/adapters/peekable/struct.Peekable.html"·title="struct·core::iter::adapters::peekable::Peekable">Peekable</a>&lt;Self&gt;<div·class="where">where59 the·next·value.·<a·href="https://doc.rust-lang.org/1.78.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"><a·class="src·rightsid[·...·truncated·by·diffoscope;·len:·372,·SHA:·03eea0861575eb80d3f7a87a3ba747adb1a33fe7e9ce72aa2172e7a287c63a94·...·]/core/iter/adapters/peekable/struct.Peekable.html"·title="struct·core::iter::adapters::peekable::Peekable">Peekable</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·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>·methods60 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.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.78.0/core/iter/adapte[·...·truncated·by·diffoscope;·len:·175,·SHA:·16fe7225bf05b478e2828b347c3d23ded9a22f89d8887a2c65d9f7b3faf1b0e7·...·]/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
61 to·look·at·the·next·element·of·the·iterator·without·consuming·it.·See61 to·look·at·the·next·element·of·the·iterator·without·consuming·it.·See
62 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"><a·class="src·rightside"·href="../../src/core/it[·...·truncated·by·diffoscope;·len:·294,·SHA:·c0aee2077af6a4f81ed47e37c84a75b5f9b941875509fbe0b3d352866f825f45·...·]/core/iter/adapters/skip_while/struct.SkipWhile.html"·title="struct·core::iter::adapters::skip_while::SkipWhile">SkipWhile</a>&lt;Self,·P&gt;<div·class="where">where62 their·documentation·for·more·information.·<a·href="https://doc.rust-lang.org/1.78.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"><a·class="src·rightsi[·...·truncated·by·diffoscope;·len:·402,·SHA:·7689a974f800fd069d1b4453ef62d6d6ad1b654462d624d36e3672051d502030·...·]/core/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
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.78.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:·922,·SHA:·5220bbb4db3c3cd3d7ca7c27520f44f04fe367ee2f0f407fb1d50c0a327a2f99·...·]/core/iter/adapters/take_while/struct.TakeWhile.html"·title="struct·core::iter::adapters::take_while::TakeWhile">TakeWhile</a>&lt;Self,·P&gt;<div·class="where">where64 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·1138,·SHA:·f6ae06b7de8e94df014341c5cf589a5e4a1298367b2ef7a968ec499c5170a70e·...·]/core/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
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.78.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:·869,·SHA:·39eeddf219b211245393e51a591d5064c740fa9be49d88883d8a6474679741ad·...·]/core/iter/adapters/map_while/struct.MapWhile.html"·title="struct·core::iter::adapters::map_while::MapWhile">MapWhile</a>&lt;Self,·P&gt;<div·class="where">where66 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·1058,·SHA:·b390dbdda8d7e93604b5ecd906a93efd03fe19bdaf41cf12893fd361bf974307·...·]/core/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
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.78.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::Iterator::[·...·truncated·by·diffoscope;·len:·851,·SHA:·ad2e090d21a034b7c3836ed38a686f4c483f9a929132fef846d48271f749a79c·...·]/core/iter/adapters/skip/struct.Skip.html"·title="struct·core::iter::adapters::skip::Skip">Skip</a>&lt;Self&gt;<div·class="where">where68 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·1067,·SHA:·415d32e1211c35d3bb405de1d6e51c2102c14cadc3333894f063148dbe0b1f69·...·]/core/iter/adapters/skip/struct.Skip.html"·title="struct·core::iter::adapters::skip::Skip">Skip</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·skips·the·first·<code>n</code>·elements.·<a·href="../../core/iter/traits/iterator/trait.Iterator.h[·...·truncated·by·diffoscope;·len:·525,·SHA:·6471f48fecadc56edf21fc04794b884b96ce06d339c715e410f5a906e028bc28·...·]/core/iter/adapters/take/struct.Take.html"·title="struct·core::iter::adapters::take::Take">Take</a>&lt;Self&gt;<div·class="where">where69 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.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:·687,·SHA:·7f5256104c35c5948a2cb42b55f3048c9d2887e48a4a8226537a284f959c562a·...·]/core/iter/adapters/take/struct.Take.html"·title="struct·core::iter::adapters::take::Take">Take</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·that·yields·the·first·<code>n</code>·elements,·or·fewer70 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.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
71 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"><a·class="src·rightside"·href="../../src/core/iter/traits/[·...·truncated·by·diffoscope;·len:·284,·SHA:·aee83f38f8c40848e159b12a8faa43b9dadf589fe974632a1f15ce2a15834071·...·]/core/iter/adapters/scan/struct.Scan.html"·title="struct·core::iter::adapters::scan::Scan">Scan</a>&lt;Self,·St,·F&gt;<div·class="where">where71 if·the·underlying·iterator·ends·sooner.·<a·href="https://doc.rust-lang.org/1.78.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"><a·class="src·rightside"·href="[·...·truncated·by·diffoscope;·len:·392,·SHA:·4e7da68f7be2622ef173653eca78d58e1f202b544a2e6abd14d8335c298c93a7·...·]/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
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.78.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>(<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,·but73 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(<a·class="primitive"·href="https://doc.rust-lang.org/1.78.0/core/primitive.reference.html">&amp;mut·St</a>,·Self::<a·class="associatedty[·...·truncated·by·diffoscope;·len:·449,·SHA:·f12c268a8a8111b9e7126ad78bf5523a63733caa63d187c4fe792309ea41acdf·...·]/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
74 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:·459,·SHA:·b825570d9672670eacd8828b3abec12cd1c35433286857de28f5ea8d5e300e03·...·]/core/iter/adapters/flatten/struct.FlatMap.html"·title="struct·core::iter::adapters::flatten::FlatMap">FlatMap</a>&lt;Self,·U,·F&gt;<div·class="where">where74 unlike·<a·href="https://doc.rust-lang.org/1.78.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.78.0/core/iter/trai[·...·truncated·by·diffoscope;·len:·594,·SHA:·02960742fa7892efaa08f289ce85865fc5efb6a4cd138c22e3566ca6fc727d78·...·]/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
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.78.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
76 ····U:·<a·class="trait"·href="../../core/iter/traits/collect/trait.IntoIterator.html"·title="trait·core::iter::traits::collect::IntoIterator">IntoIterator</a>,76 ····U:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/collect/trait.IntoIterator.html"·title="trait·core::iter::traits::collect::IntoIterator">IntoIterator</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::Iterator::[·...·truncated·by·diffoscope;·len:·787,·SHA:·9b6a337a3ad68c2a987b52450c153f87a04a8ed9e83603d26077fe6e70d61edf·...·]/core/iter/adapters/map_windows/struct.MapWindows.html"·title="struct·core::iter::adapters::map_windows::MapWindows">MapWindows</a>&lt;Self,·F,·N&gt;<div·class="where">where77 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·976,·SHA:·2a9182f6fe88e0b8a9b1ae1f46cace940cc0b8736033c354c0f0ccbf1c196e7a·...·]/core/iter/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
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.78.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>(&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>·over79 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;[Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtyp[·...·truncated·by·diffoscope;·len:·135,·SHA:·0b06a6094d42ccbc8bce5b01c4383961fe7f1967f05e4c9f1ff33e71e425fb26·...·]/core/primitive.array.html">N</a>])·-&gt;·R,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iter_map_windows</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/87155">#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
80 <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>,80 <code>self</code>·and·returns·an·iterator·over·the·outputs·of·<code>f</code>.·Like·<a·href="https://doc.rust-lang.org/1.78.0/core/primitive.slice.html#method.windows"·title="method·slice::windows"><code>slice::windows()</code></a>,
81 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"><a·class="src·rightside"·href="../../src/core/iter/[·...·truncated·by·diffoscope;·len:·250,·SHA:·e355ddd0f04b2470ee915aec3ad97857be56b95e6a1f3d733d6c477453f4cf0d·...·]/core/iter/adapters/fuse/struct.Fuse.html"·title="struct·core::iter::adapters::fuse::Fuse">Fuse</a>&lt;Self&gt;<div·class="where">where81 the·windows·during·mapping·overlap·as·well.·<a·href="https://doc.rust-lang.org/1.78.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"><a·class="src·rightside"[·...·truncated·by·diffoscope;·len:·358,·SHA:·d91b2ab18e0ce069e262cf523c6ef961f56eecad042ea1e9bcefe33cff28fc8f·...·]/core/iter/adapters/fuse/struct.Fuse.html"·title="struct·core::iter::adapters::fuse::Fuse">Fuse</a>&lt;Self&gt;<div·class="where">where
82 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Creates·an·iterator·which·ends·after·the·first·<a·href="../../core/option/enum.Option.html#variant.None"·title="variant·cor[·...·truncated·by·diffoscope;·len:·583,·SHA:·b7d7d6125e8980756a2636a6b6e01600057c98a027dcf7d267b1f61538a7b6b0·...·]/core/iter/adapters/inspect/struct.Inspect.html"·title="struct·core::iter::adapters::inspect::Inspect">Inspect</a>&lt;Self,·F&gt;<div·class="where">where82 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.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.78.0/core/op[·...·truncated·by·diffoscope;·len:·745,·SHA:·424783f22102f4446d3ad4d362b1aafdb7531fa777213f97ee138aa878f67bd1·...·]/core/iter/adapters/inspect/struct.Inspect.html"·title="struct·core::iter::adapters::inspect::Inspect">Inspect</a>&lt;Self,·F&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.78.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::Itera[·...·truncated·by·diffoscope;·len:·676,·SHA:·ae75f35cafbae1e0e695226baca09b0bec6e4a0ed5656a83c3357b29fb00442d·...·]/core/primitive.reference.html">&amp;mut·Self</a><div·class="where">where84 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·838,·SHA:·9b4fd8df7f41e9a76fd4cfca0a233b74b9bd27c3fe8228248abc3f940425a3e3·...·]/core/primitive.reference.html">&amp;mut·Self</a><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'>Borrows·an·iterator,·rather·than·consuming·it.·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.by_ref">[·...·truncated·by·diffoscope;·len:·319,·SHA:·bbb653fcb1f5ad46e04905bf78a76b9dd63ea5d49a2d8cd5b7b36efbb0f7e105·...·]/core/iter/traits/iterator/trait.Iterator.html#method.collect"·class="fn">collect</a>&lt;B&gt;(self)·-&gt;·B<div·class="where">where85 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.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.78.0/core/it[·...·truncated·by·diffoscope;·len:·427,·SHA:·ecfaaac5d1d10c1bc4fcee9a050af0a268bee0b528c2d8ea4e9774440bd8a279·...·]/core/iter/traits/iterator/trait.Iterator.html#method.collect"·class="fn">collect</a>&lt;B&gt;(self)·-&gt;·B<div·class="where">where
86 ····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;,86 ····B:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.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.78.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><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:·e5d524e874326d0b9b733f5ee809c6595cde869afab0cc3d4ba8454093f420da·...·]/core/primitive.reference.html">&amp;mut·E</a><div·class="where">where87 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.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.78.0/core/iter/tr[·...·truncated·by·diffoscope;·len:·728,·SHA:·01937c2dc314c259495665570ae249c94b4a5b0719718f5f1188e6fc64ecf487·...·]/core/primitive.reference.html">&amp;mut·E</a><div·class="where">where
88 ····E:·<a·class="trait"·href="../../core/iter/traits/collect/trait.Extend.html"·title="trait·core::iter::traits::collect::Extend">Extend</a>&lt;Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;,88 ····E:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.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.78.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><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:·744,·SHA:·a7446142ab67c3f20d866315fbe6cb9c57cd4af012812d6dd19d5061aee6e97b·...·]/core/primitive.tuple.html">(B,·B)</a><div·class="where">where89 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experiment[·...·truncated·by·diffoscope;·len:·879,·SHA:·e773b2222c92d001e295030cb47a780ab0c1132d7fc8e9e3a98de4f532e6c520·...·]/core/primitive.tuple.html">(B,·B)</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.78.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
91 ····B:·<a·class="trait"·href="../../core/default/trait.Default.html"·title="trait·core::default::Default">Default</a>·+·<a·class="trait"·href="../../core/iter/traits/collect/trait.Extend.html"·title="trait·core::iter::traits::collect::Extend">Extend</a>&lt;Self::<a·class="associatedtyp[·...·truncated·by·diffoscope;·len:·14,·SHA:·4105980ca4887a52797067761af25a11e3de6069cd8d7c8ce82cd885bb798fe8·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;,91 ····B:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/default/trait.Default.html"·title="trait·core::default::Default">Default</a>·+·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/collect/trait.Extend.html"·title="trait·core::iter::traits::collec[·...·truncated·by·diffoscope;·len:·95,·SHA:·8b3be1d0042cae0550f865faf5849221240bdf04eb1b2107605b72d48c3ad29c·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;,
92 ····F:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<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:·5a1bcc1ddfc5fccf50d61bf2b8879dae247aa12c0b23ba2f437fd2a345cabac7·...·]/core/primitive.usize.html">usize</a><div·class="where">where92 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·995,·SHA:·bec3765fdab56713186e2454cd84738b5b28e3280a2f3d5a25cefdbc3089b520·...·]/core/primitive.usize.html">usize</a><div·class="where">where
93 ····T:·'a,93 ····T:·'a,
94 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>·+·<a·class="trait"·href="../../core/iter/traits/double_ended/trait.DoubleEndedIterator.html"·title="trait·core::iter::traits::double_ended::DoubleEndedIterator">DoubleEndedIter[·...·truncated·by·diffoscope;·len:·51,·SHA:·c9be73bbed9d11ecac2a179f480a640f51d6255f26712667ffdabc72c1fc7fb0·...·]/core/primitive.reference.html">&amp;'a·mut·T</a>&gt;,94 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>·+·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/double_ended/trait.DoubleEndedIterator.html"·title="trait·core::iter::trai[·...·truncated·by·diffoscope;·len:·132,·SHA:·e5b2cf5f56946ede1e190ed09879c5821e2de04cf8e5d145142eeb40c6340982·...·]/core/primitive.reference.html">&amp;'a·mut·T</a>&gt;,
95 ····P:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(<a·class="primitive"·href="../../core/primitive.reference.html">&amp;T</a>)·-&gt;·<a·class="primitive"·href="../../core/primitive.bool.html">bool</a>,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iter_partition_in_place</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/62543">#62543</a>)</span></div></span><div·class='docblock'>Reorders·the·elements·of·this·iterator·<em>in-place</em>·according·to·the·given·predicate,95 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(<a·class="primitive"·href="https://doc.rust-lang.org/1.78.0/core/primitive.reference.html">&amp;T</a>)·-&gt;·<a·class="primitive"·href="[·...·truncated·by·diffoscope;·len:·32,·SHA:·63d052a8ced32bf927ffadd7e884c08caf4970e85dfdf6be0e568d49b174da96·...·]/core/primitive.bool.html">bool</a>,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iter_partition_in_place</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/62543">#62543</a>)</span></div></span><div·class='docblock'>Reorders·the·elements·of·this·iterator·<em>in-place</em>·according·to·the·given·predicate,
96 such·that·all·those·that·return·<code>true</code>·precede·all·those·that·return·<code>false</code>.96 such·that·all·those·that·return·<code>true</code>·precede·all·those·that·return·<code>false</code>.
97 Returns·the·number·of·<code>true</code>·elements·found.·<a·href="../../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:·97056c44eac6a0f986fb2c8edec37302cc06edf44a6c6f7153a5d8623d8d6c0d·...·]/core/primitive.bool.html">bool</a><div·class="where">where97 Returns·the·number·of·<code>true</code>·elements·found.·<a·href="https://doc.rust-lang.org/1.78.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:·0c224636c18baa273f69de21f90083317f2ea0b7367a3f0d0f1c0ace55a36f79·...·]/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.78.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
99 ····P:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::[·...·truncated·by·diffoscope;·len:·54,·SHA:·d5ac304cc26edf57442227b641dd21c427d0f9cb322b79986f5b15fc49f867b0·...·]/core/primitive.bool.html">bool</a>,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iter_is_partitioned</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/62544">#62544</a>)</span></div></span><div·class='docblock'>Checks·if·the·elements·of·this·iterator·are·partitioned·according·to·the·given·predicate,99 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·135,·SHA:·51ff5f5c7ebd8440623ea71b125c5a5837e809e308fe1a13fbe19cddb941dbd9·...·]/core/primitive.bool.html">bool</a>,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iter_is_partitioned</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/62544">#62544</a>)</span></div></span><div·class='docblock'>Checks·if·the·elements·of·this·iterator·are·partitioned·according·to·the·given·predicate,
100 such·that·all·those·that·return·<code>true</code>·precede·all·those·that·return·<code>false</code>.·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.is_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:·6f406a351b93047f56fa70265a6bf28ec6874f75cd6cc5a39d51c7af462f2992·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_fold"·class="fn">try_fold</a>&lt;B,·F,·R&gt;(&amp;mut·self,·init:·B,·f:·F)·-&gt;·R<div·class="where">where100 such·that·all·those·that·return·<code>true</code>·precede·all·those·that·return·<code>false</code>.·<a·href="https://doc.rust-lang.org/1.78.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:·2c74873f4e5ba70004a1c7edd1cc3f9e2d91271295dd1591e2d26848df4c02ba·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_fold"·class="fn">try_fold</a>&lt;B,·F,·R&gt;(&amp;mut·self,·init:·B,·f:·F)·-&gt;·R<div·class="where">where
101 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,101 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.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;·R,102 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(B,·Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.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·=·B&gt;,</div></h4></section></summary><div·class='docblock'>An·iterator·method·that·applies·a·function·as·long·as·it·returns103 ····R:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.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
104 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:·eecdce021399d206eb3ef5af12ee7663b4eb0dca55b0f411c7fa66f605b6b2e2·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_for_each"·class="fn">try_for_each</a>&lt;F,·R&gt;(&amp;mut·self,·f:·F)·-&gt;·R<div·class="where">where104 successfully,·producing·a·single,·final·value.·<a·href="https://doc.rust-lang.org/1.78.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:·52912e82c4b0a760d06f77eb4ee3a59ba70dd76cb532954900c73ae94c652674·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_for_each"·class="fn">try_for_each</a>&lt;F,·R&gt;(&amp;mut·self,·f:·F)·-&gt;·R<div·class="where">where
105 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,105 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.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::Item">Item</a>)·-&gt;·R,106 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.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·=·<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·the107 ····R:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.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.78.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
108 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"><a·class="src·rightside"·href="../../src/core/iter[·...·truncated·by·diffoscope;·len:·130,·SHA:·75c0150024fe6cdc702d7337508ab57600248490dd062768204ddb064c9a1b8b·...·]/core/iter/traits/iterator/trait.Iterator.html#method.fold"·class="fn">fold</a>&lt;B,·F&gt;(self,·init:·B,·f:·F)·-&gt;·B<div·class="where">where108 iterator,·stopping·at·the·first·error·and·returning·that·error.·<a·href="https://doc.rust-lang.org/1.78.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"><a·class="src·rightside[·...·truncated·by·diffoscope;·len:·211,·SHA:·924e062acd8127e8d6158162219ee5d57a941854e14063d21d7768edae549431·...·]/core/iter/traits/iterator/trait.Iterator.html#method.fold"·class="fn">fold</a>&lt;B,·F&gt;(self,·init:·B,·f:·F)·-&gt;·B<div·class="where">where
109 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,109 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.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>(B,·Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·B,</div></h4></section></summary><div·class='docblock'>Folds·every·element·into·an·accumulator·by·applying·an·operation,110 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(B,·Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·B,</div></h4></section></summary><div·class='docblock'>Folds·every·element·into·an·accumulator·by·applying·an·operation,
111 returning·the·final·result.·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.fold">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:·dbe3a08fe63abd47570741e71208c31aaf51152feac5917db07665a1f56bb3e3·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;<div·class="where">where111 returning·the·final·result.·<a·href="https://doc.rust-lang.org/1.78.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:·b60215068a6d9721be05f81098c51167d7138c4042f140cad42f77c4df43f597·...·]/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.78.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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·352,·SHA:·e7c3c296abe2c0a183967153e4ae7fd50bafa2ae7088e3e78b3b48fee253adc6·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::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:·a9dce8bb557b5a11426bf2ffcbd5eea7c6c870833e3ee5bb072dcaaa11687b0c·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_reduce"·class="fn">try_reduce</a>&lt;F,·R&gt;(114 operation.·<a·href="https://doc.rust-lang.org/1.78.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:·7a18fdd041b1a001b4a8feb289ee127fd9240232239269eb35dc3b8f74783ec9·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_reduce"·class="fn">try_reduce</a>&lt;F,·R&gt;(
115 ····&amp;mut·self,115 ····&amp;mut·self,
116 ····f:·F116 ····f:·F
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.78.0/core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&gt;::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/ops/try_trait/trait.Try.html#associatedtype.Residual"·title="type[·...·truncated·by·diffoscope;·len:·754,·SHA:·6fb4dfdb6b4da68921c1e7f8b75d99cf293d58318d684a840254ce9576957bea·...·]/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.78.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:·59,·SHA:·3d53eece7c48858eda31192ab2620ae144896b35400c945bbf3eb5dc06bf8d12·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·R,119 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·140,·SHA:·c27972e6fa3464c9476eaa185e8657edb6bb294f148403f3d079285294a9f909·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·R,
120 ····R:·<a·class="trait"·href="../../core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&lt;Output·=·Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;,120 ····R:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.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.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;,
121 ····&lt;R·as·<a·class="trait"·href="../../core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&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·the121 ····&lt;R·as·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&gt;::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/ops/try_trait/trait.Try.html#associatedtype.Residual"·title="type[·...·truncated·by·diffoscope;·len:·412,·SHA:·22b8cbb007e5cce82b9d13a65bfa56aa8d83c32541fac25f4d9b3857b0540908·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;&gt;,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iterator_try_reduce</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/87053">#87053</a>)</span></div></span><div·class='docblock'>Reduces·the·elements·to·a·single·one·by·repeatedly·applying·a·reducing·operation.·If·the
122 closure·returns·a·failure,·the·failure·is·propagated·back·to·the·caller·immediately.·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.try_reduce">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.all"·class="method·trait-impl"><a·class="src·rightside"·href="../../src/core/iter/tr[·...·truncated·by·diffoscope;·len:·272,·SHA:·97959736d897a01242f49f2e45854ab874bf0c9bbe30acad9a49eb73169e457c·...·]/core/primitive.bool.html">bool</a><div·class="where">where122 closure·returns·a·failure,·the·failure·is·propagated·back·to·the·caller·immediately.·<a·href="https://doc.rust-lang.org/1.78.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"><a·class="src·rightside"·h[·...·truncated·by·diffoscope;·len:·380,·SHA:·29c4004d4d8b0c8c9dfe9023f8b2c5ef801d9dc4688893035d182c1ae774c453·...·]/core/primitive.bool.html">bool</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.78.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>(Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::[·...·truncated·by·diffoscope;·len:·733,·SHA:·9bb9f0199d90f78ad65c59dbe67a1c751cd5a681130a03bef3b1e8ed907a3bba·...·]/core/primitive.bool.html">bool</a><div·class="where">where124 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·922,·SHA:·f4fd532c280e18f28bd6dda6c2a129e2e92114b67f27235bb5fd39f725be9c43·...·]/core/primitive.bool.html">bool</a><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.78.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>(Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::[·...·truncated·by·diffoscope;·len:·860,·SHA:·6a94ae33b82eb12a91660811a8ab9d243468d885c07ac766a2507d25a4e7ee62·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;<div·class="where">where126 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·1076,·SHA:·2dd9de8adaee4a5ee96501d9a58bfac2fea00ba8d78b834bfca29949b3afe18b·...·]/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.78.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
Max diff block lines reached; 140297/311100 bytes (45.10%) of diff not shown.
306 KB
./usr/share/doc/rust-web-doc/html/alloc/slice/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·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.write(`<link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/SourceSerif4-Regular-46f98efaafac5295.ttf.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/FiraSans-Regular-018c141bf0843ffd.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/FiraSans-Medium-8f9a781e4970d388.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/SourceCodePro-Regular-562dcc5011b6de7d.ttf.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/SourceCodePro-Semibold-d899c5a5c4aeb14a.ttf.woff2">`)</script><link·rel="stylesheet"·href="../../static.files/normalize-76eba96aa4d2e634.css"><link·rel="stylesheet"·href="../../static.files/rustdoc-35f9e32502181f1e.css"><meta·name="rustdoc-vars"·data-root-path="../../"·data-static-root-path="../../static.files/"·data-current-crate="alloc"·data-themes=""·data-resource-suffix="1.78.0"·data-rustdoc-version="1.78.0"·data-channel="1.78.0"·data-search-js="search-42d8da7a6b9792c2.js"·data-settings-js="settings-4313503d2e1961c2.js"·><script·src="../../static.files/storage-4c98445ec4002617.js"></script><script·defer·src="sidebar-items1.78.0.js"></script><script·defer·src="../../static.files/main-12cf3b4f4f9dc36d.js"></script><noscript><link·rel="stylesheet"·href="../../static.files/noscript-04d5337699b92874.css"></noscript><link·rel="alternate·icon"·type="image/png"·href="../../static.files/favicon-16x16-8b506e7a72182f1c.png"><link·rel="alternate·icon"·type="image/png"·href="../../static.files/favicon-32x32-422f7d1d52889060.png"><link·rel="icon"·type="image/svg+xml"·href="../../static.files/favicon-2c020d218678b618.svg"></head><body·class="rustdoc·struct"><!--[if·lte·IE·11]><div·class="warning">This·old·browser·is·unsupported·and·will·most·likely·display·funky·things.</div><![endif]--><nav·class="mobile-topbar"><button·class="sidebar-menu-toggle"·title="show·sidebar"></button><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-151179464ae7ed46.svg"·alt=""></a></nav><nav·class="sidebar"><div·class="sidebar-crate"><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-151179464ae7ed46.svg"·alt="logo"></a><h2><a·href="../../alloc/index.html">alloc</a><span·class="version">1.78.0</span></h2></div><h2·class="location"><a·href="#">SplitInclusive</a></h2><div·class="sidebar-elems"><section><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">Clone</a></li><li><a·href="#impl-Debug-for-SplitInclusive%3C'_,+T,+P%3E">Debug</a></li><li><a·href="#impl-DoubleEndedIterator-for-SplitInclusive%3C'a,+T,+P%3E">DoubleEndedIterator</a></li><li><a·href="#impl-FusedIterator-for-SplitInclusive%3C'_,+T,+P%3E">FusedIterator</a></li><li><a·href="#impl-Iterator-for-SplitInclusive%3C'a,+T,+P%3E">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">Freeze</a></li><li><a·href="#impl-RefUnwindSafe-for-SplitInclusive%3C'a,+T,+P%3E">RefUnwindSafe</a></li><li><a·href="#impl-Send-for-SplitInclusive%3C'a,+T,+P%3E">Send</a></li><li><a·href="#impl-Sync-for-SplitInclusive%3C'a,+T,+P%3E">Sync</a></li><li><a·href="#impl-Unpin-for-SplitInclusive%3C'a,+T,+P%3E">Unpin</a></li><li><a·href="#impl-UnwindSafe-for-SplitInclusive%3C'a,+T,+P%3E">UnwindSafe</a></li></ul><h3><a·href="#blanket-implementations">Blanket·Implementations</a></h3><ul·class="block·blanket-implementation"><li><a·href="#impl-Any-for-T">Any</a></li><li><a·href="#impl-Borrow%3CT%3E-for-T">Borrow&lt;T&gt;</a></li><li><a·href="#impl-BorrowMut%3CT%3E-for-T">BorrowMut&lt;T&gt;</a></li><li><a·href="#impl-From%3CT%3E-for-T">From&lt;T&gt;</a></li><li><a·href="#impl-Into%3CU%3E-for-T">Into&lt;U&gt;</a></li><li><a·href="#impl-IntoIterator-for-I">IntoIterator</a></li><li><a·href="#impl-ToOwned-for-T">ToOwned</a></li><li><a·href="#impl-TryFrom%3CU%3E-for-T">TryFrom&lt;U&gt;</a></li><li><a·href="#impl-TryInto%3CU%3E-for-T">TryInto&lt;U&gt;</a></li></ul></section><h2><a·href="index.html">In·alloc::slice</a></h2></div></nav><div·class="sidebar-resizer"></div>1 <!DOCTYPE·html><html·lang="en"><head><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.write(`<link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/SourceSerif4-Regular-46f98efaafac5295.ttf.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/FiraSans-Regular-018c141bf0843ffd.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/FiraSans-Medium-8f9a781e4970d388.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/SourceCodePro-Regular-562dcc5011b6de7d.ttf.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/SourceCodePro-Semibold-d899c5a5c4aeb14a.ttf.woff2">`)</script><link·rel="stylesheet"·href="../../static.files/normalize-76eba96aa4d2e634.css"><link·rel="stylesheet"·href="../../static.files/rustdoc-35f9e32502181f1e.css"><meta·name="rustdoc-vars"·data-root-path="../../"·data-static-root-path="../../static.files/"·data-current-crate="alloc"·data-themes=""·data-resource-suffix="1.78.0"·data-rustdoc-version="1.78.0"·data-channel="1.78.0"·data-search-js="search-42d8da7a6b9792c2.js"·data-settings-js="settings-4313503d2e1961c2.js"·><script·src="../../static.files/storage-4c98445ec4002617.js"></script><script·defer·src="sidebar-items1.78.0.js"></script><script·defer·src="../../static.files/main-12cf3b4f4f9dc36d.js"></script><noscript><link·rel="stylesheet"·href="../../static.files/noscript-04d5337699b92874.css"></noscript><link·rel="alternate·icon"·type="image/png"·href="../../static.files/favicon-16x16-8b506e7a72182f1c.png"><link·rel="alternate·icon"·type="image/png"·href="../../static.files/favicon-32x32-422f7d1d52889060.png"><link·rel="icon"·type="image/svg+xml"·href="../../static.files/favicon-2c020d218678b618.svg"></head><body·class="rustdoc·struct"><!--[if·lte·IE·11]><div·class="warning">This·old·browser·is·unsupported·and·will·most·likely·display·funky·things.</div><![endif]--><nav·class="mobile-topbar"><button·class="sidebar-menu-toggle"·title="show·sidebar"></button><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-151179464ae7ed46.svg"·alt=""></a></nav><nav·class="sidebar"><div·class="sidebar-crate"><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-151179464ae7ed46.svg"·alt="logo"></a><h2><a·href="../../alloc/index.html">alloc</a><span·class="version">1.78.0</span></h2></div><h2·class="location"><a·href="#">SplitInclusive</a></h2><div·class="sidebar-elems"><section><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">Clone</a></li><li><a·href="#impl-Debug-for-SplitInclusive%3C'_,+T,+P%3E">Debug</a></li><li><a·href="#impl-DoubleEndedIterator-for-SplitInclusive%3C'a,+T,+P%3E">DoubleEndedIterator</a></li><li><a·href="#impl-FusedIterator-for-SplitInclusive%3C'_,+T,+P%3E">FusedIterator</a></li><li><a·href="#impl-Iterator-for-SplitInclusive%3C'a,+T,+P%3E">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">Freeze</a></li><li><a·href="#impl-RefUnwindSafe-for-SplitInclusive%3C'a,+T,+P%3E">RefUnwindSafe</a></li><li><a·href="#impl-Send-for-SplitInclusive%3C'a,+T,+P%3E">Send</a></li><li><a·href="#impl-Sync-for-SplitInclusive%3C'a,+T,+P%3E">Sync</a></li><li><a·href="#impl-Unpin-for-SplitInclusive%3C'a,+T,+P%3E">Unpin</a></li><li><a·href="#impl-UnwindSafe-for-SplitInclusive%3C'a,+T,+P%3E">UnwindSafe</a></li></ul><h3><a·href="#blanket-implementations">Blanket·Implementations</a></h3><ul·class="block·blanket-implementation"><li><a·href="#impl-Any-for-T">Any</a></li><li><a·href="#impl-Borrow%3CT%3E-for-T">Borrow&lt;T&gt;</a></li><li><a·href="#impl-BorrowMut%3CT%3E-for-T">BorrowMut&lt;T&gt;</a></li><li><a·href="#impl-From%3CT%3E-for-T">From&lt;T&gt;</a></li><li><a·href="#impl-Into%3CU%3E-for-T">Into&lt;U&gt;</a></li><li><a·href="#impl-IntoIterator-for-I">IntoIterator</a></li><li><a·href="#impl-ToOwned-for-T">ToOwned</a></li><li><a·href="#impl-TryFrom%3CU%3E-for-T">TryFrom&lt;U&gt;</a></li><li><a·href="#impl-TryInto%3CU%3E-for-T">TryInto&lt;U&gt;</a></li></ul></section><h2><a·href="index.html">In·alloc::slice</a></h2></div></nav><div·class="sidebar-resizer"></div>
2 ····<main><div·class="width-limiter"><nav·class="sub"><form·class="search-form"><span></span><div·id="sidebar-button"·tabindex="-1"><a·href="../../alloc/all.html"·title="show·sidebar"></a></div><input·class="search-input"·name="search"·aria-label="Run·search·in·the·documentation"·autocomplete="off"·spellcheck="false"·placeholder="Click·or·press·‘S’·to·search,·‘?’·for·more·options…"·type="search"><div·id="help-button"·tabindex="-1"><a·href="../../help.html"·title="help">?</a></div><div·id="settings-menu"·tabindex="-1"><a·href="../../settings.html"·title="settings"><img·width="22"·height="22"·alt="Change·settings"·src="../../static.files/wheel-7b819b6101059cd0.svg"></a></div></form></nav><section·id="main-content"·class="content"><div·class="main-heading"><h1>Struct·<a·href="../index.html">alloc</a>::<wbr><a·href="index.html">slice</a>::<wbr><a·class="struct"·href="#">SplitInclusive</a><button·id="copy-path"·title="Copy·item·path·to·clipboard"><img·src="../../static.files/clipboard-7571035ce49a181d.svg"·width="19"·height="18"·alt="Copy·item·path"></button></h1><span·class="out-of-band"><span·class="since"·title="Stable·since·Rust·version·1.51.0">1.51.0</span>···<a·class="src"·href="../../src/core/slice/iter.rs.html#547">source</a>···<button·id="toggle-all-docs"·title="collapse·all·docs">[<span>&#x2212;</span>]</button></span></div><pre·class="rust·item-decl"><code>pub·struct·SplitInclusive&lt;'a,·T,·P&gt;<div·class="where">where2 ····<main><div·class="width-limiter"><nav·class="sub"><form·class="search-form"><span></span><div·id="sidebar-button"·tabindex="-1"><a·href="../../alloc/all.html"·title="show·sidebar"></a></div><input·class="search-input"·name="search"·aria-label="Run·search·in·the·documentation"·autocomplete="off"·spellcheck="false"·placeholder="Click·or·press·‘S’·to·search,·‘?’·for·more·options…"·type="search"><div·id="help-button"·tabindex="-1"><a·href="../../help.html"·title="help">?</a></div><div·id="settings-menu"·tabindex="-1"><a·href="../../settings.html"·title="settings"><img·width="22"·height="22"·alt="Change·settings"·src="../../static.files/wheel-7b819b6101059cd0.svg"></a></div></form></nav><section·id="main-content"·class="content"><div·class="main-heading"><h1>Struct·<a·href="../index.html">alloc</a>::<wbr><a·href="index.html">slice</a>::<wbr><a·class="struct"·href="#">SplitInclusive</a><button·id="copy-path"·title="Copy·item·path·to·clipboard"><img·src="../../static.files/clipboard-7571035ce49a181d.svg"·width="19"·height="18"·alt="Copy·item·path"></button></h1><span·class="out-of-band"><span·class="since"·title="Stable·since·Rust·version·1.51.0">1.51.0</span>···<a·class="src"·href="https://doc.rust-lang.org/1.78.0/src/core/slice/iter.rs.html#547">source</a>···<button·id="toggle-all-docs"·title="collapse·all·docs">[<span>&#x2212;</span>]</button></span></div><pre·class="rust·item-decl"><code>pub·struct·SplitInclusive&lt;'a,·T,·P&gt;<div·class="where">where
3 ····T:·'a,3 ····T:·'a,
4 ····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·predicate4 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(<a·class="primitive"·href="https://doc.rust-lang.org/1.78.0/core/primitive.reference.html">&amp;T</a>)·-&gt;·<a·class="primitive"·href="[·...·truncated·by·diffoscope;·len:·32,·SHA:·63d052a8ced32bf927ffadd7e884c08caf4970e85dfdf6be0e568d49b174da96·...·]/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
5 function.·Unlike·<code>Split</code>,·it·contains·the·matched·part·as·a·terminator5 function.·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.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>7 <p>This·struct·is·created·by·the·<a·href="https://doc.rust-lang.org/1.78.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.78.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="number">10</span>,·<span·class="number">40</span>,·<span·class="number">33</span>,·<span·class="number">20</span>];9 <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>];
10 <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>);</code></pre><a·class="test-arrow"·target="_blank"·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%7D&amp;edition=2021">Run</a></div>10 <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>);</code></pre><a·class="test-arrow"·target="_blank"·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%7D&amp;edition=2021">Run</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-SplitInclusive%3C'_,+T,+P%3E"·class="impl"><a·class="src·rightside"·href="../../src/core/slice/iter.rs.html#579-581">source</a><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">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-SplitInclusive%3C'_,+T,+P%3E"·class="impl"><a·class="src·rightside"·href="https://doc.rust-lang.org/1.78.0/src/core/slice/iter.rs.html#579-581">source</a><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.78.0/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
12 ····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:·1795,·SHA:·babf2d07d44d3ca0ee98a29a7b2d1b32623a2dac0e3af83feff41e2fe66e5043·...·]/src/core/slice/iter.rs.html#565-567">source</a><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">where12 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/clone/trait.Clone.html"·title="trait·core::clone::Clone">Clone</a>·+·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(<a·cla[·...·truncated·by·diffoscope;·len:·2119,·SHA:·a82e0dd4b96d97a9b359d3d8e8aceab53a591020c94ddfc1b90e629cbd4dbccf·...·]/src/core/slice/iter.rs.html#565-567">source</a><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
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:·1347,·SHA:·71b3335f9a8b04bee396492dc38d12b02bd0d868960493fc9b313f5c2f1159fe·...·]/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">where14 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(<a·class="primitive"·href="https://doc.rust-lang.org/1.78.0/core/primitive.reference.html">&amp;T</a>)·-&gt;·<a·class="primitive"·href="[·...·truncated·by·diffoscope;·len:·1563,·SHA:·0168f69165e362345259b9322ead8025aa493bc4d31281f2d7e939045eeb6976·...·]/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
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:·3750,·SHA:·8b2d310c18497681796d5d66bf348ac4f8dec1ca45d4307b7d8e6ba61a42f1cf·...·]/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 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(<a·class="primitive"·href="https://doc.rust-lang.org/1.78.0/core/primitive.reference.html">&amp;T</a>)·-&gt;·<a·class="primitive"·href="[·...·truncated·by·diffoscope;·len:·4398,·SHA:·98036bb90a4de659c8742f2b9d7679736ad97125452ec16b859daf8d1304682a·...·]/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.78.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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(B,·Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.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.78.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.7[·...·truncated·by·diffoscope;·len:·3,·SHA:·7b1bd53949b752d143d871408483b5382371b5bc48d195d0c040ec93cfa2748b·...·]/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:·74b709f2c818a4eda5d85ea863eb2d8af72c87564dbab2746e67feafb0cbb9a3·...·]/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.78.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:·d66ed7e195a53e9945339ef1976aed455dcf80228d8e5b7b0c69a64c3983fea1·...·]/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.78.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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(B,·Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/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:·f8bdf1e28866c7668477ab391452c7cfa7fd52cc69b633e782a157931421b39b·...·]/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.78.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:·c264047794019a6dcf05728ba6a6ee1f8f07c7209958b3366ba94546b527ecdc·...·]/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.78.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:·731,·SHA:·d2b29bc33c38946e9d309c6fabe46d0186cc2e51f671a20a556b79a11c0ba0ab·...·]/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">where24 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·893,·SHA:·b5264064014bc49bdf07d4cba746466580fcfeb97a0e1203eea8cfdb9d3f6758·...·]/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
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:·2567,·SHA:·3233a2c9f7ece1f9b1b9191fc4e4d9f0879a1d9dc0a660b11dda0bea5dc6f28b·...·]/core/primitive.usize.html">usize</a>&gt;(25 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(<a·class="primitive"·href="https://doc.rust-lang.org/1.78.0/core/primitive.reference.html">&amp;T</a>)·-&gt;·<a·class="primitive"·href="[·...·truncated·by·diffoscope;·len:·3080,·SHA:·73824a8367ffca3c9a40b50ace6a85ebcae8363e5e3c943a4cb5d13238695bde·...·]/core/primitive.usize.html">usize</a>&gt;(
26 ····&amp;mut·self26 ····&amp;mut·self
27 )·-&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">where27 )·-&gt;·<a·class="enum"·href="https://doc.rust-lang.org/1.78.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.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title=[·...·truncated·by·diffoscope;·len:·381,·SHA:·88c48923c9b7ea5cc47c1087c60e09656e81d4671c58071ba2bef826335388bc·...·]/core/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
28 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></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:·602d17b58d1cf716882ddc867fc66cfda4f899bef17b038a48553e9133f60097·...·]/core/primitive.usize.html">usize</a><div·class="where">where28 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></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:·89791450da70cbd536c3cf8fbf2dd9891668362f9a252d3ee098222d19960bae·...·]/core/primitive.usize.html">usize</a><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'>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:·5b5aaec46c04cf77d2fa06e88cd6f0a2bd8d201412bc325302bd2f8f21b39207·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;<div·class="where">where29 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.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:·84ae0beb16240102bae2355bb8c543b17f3f107e3c06b320839aa401eebb1945·...·]/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>,</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:·6b808f54a13578d2e276864bb3eb79ae7b452b8959e79f7ea7ab1180574b77fc·...·]/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.78.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.78.0/cor[·...·truncated·by·diffoscope;·len:·3504,·SHA:·6d21b6d637e0b2e9953a37a26fd19e00da089147d4acaf696c94d448de4ce419·...·]/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.78.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:·5667b9b6c9778ff3b9d23ed0a110e7ab9d3fccc786fdcaca8c17edf996236439·...·]/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.78.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:·e83c903581753673e083ce8dd809879a2fc81ab3050eb6db267d7fa26b15e035·...·]/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.78.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:·1c6bb9803ee8832ebd4c28a08a952178165595b6870cf35d3c89454b9da828b2·...·]/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.78.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.78.0/core/iter/traits/it[·...·truncated·by·diffoscope;·len:·1329,·SHA:·d9299c8edc606ed82f24d61ce441bec451141d684c2a9a75074f5b19c57f196c·...·]/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.78.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:·c1b5e692e89c9c809075ee8ee72fb15a9ec46c075b08450e1f707d672a224750·...·]/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.78.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:·98627729f77dcf1c9d258f343354ba600b7134c6b3929080f231e8de7155b70b·...·]/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.78.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.78.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.78.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:·d6282409add0999f2130eb6bbe6d0473ce96bf2544799e8bc22156f3c2d2e0dd·...·]/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.78.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:·7301b6beba7b6885849be90a625df68ef739a5374af456c51fe2e81d91a25363·...·]/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.78.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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::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:·fb4c9589a16c7b6d697c109d1193d2f1e763e5dd967101c2fd92b32416972229·...·]/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.78.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:·98f6effefa44d759c249143d83623f0055d937382bfc398b7e1f5e92cd413657·...·]/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.78.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:·7abbad666ec88a1053b8aca2a481d629a3ef3596eddb570c381205fa2d859a52·...·]/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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·916,·SHA:·30d0b2a76513c5a880e9aee43e92b18805845cfcfe5783f62dc090167a439e63·...·]/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.78.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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·140,·SHA:·752f473b57e7444ebfddf5ea7fd40a332e83ec55524a6c31b5ee0f82a5dea819·...·]/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:·7da07154834a15b8ae55b4fd41479da070ccbd27e071909f81698570c306a081·...·]/core/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.78.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:·76aa2ad154f88085ee3f8a22721a7e6812680bac785d19059532407f50da1801·...·]/core/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.78.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:·c89169e5bf1c4724c7b411e568b6dad6475896f2606f557b3d708359ef71f5cc·...·]/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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·1052,·SHA:·110b47c7083083d565fcfc89337fddc8e5c87e81b2f720f3f7b0ded55e8500fb·...·]/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.78.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:·53634008856676c70c32b501f7ec498c1f86d123cc9b5b898256a69895ff31fc·...·]/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.78.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:·8464264e074dde5d84f0414ab3b5b2d8da83f3c9e3ca04c45458241580a8c80d·...·]/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.78.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.78.0/core/iter/adapte[·...·truncated·by·diffoscope;·len:·175,·SHA:·16fe7225bf05b478e2828b347c3d23ded9a22f89d8887a2c65d9f7b3faf1b0e7·...·]/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:·77dd41e041d66c618d306e900a9159cf1b00478b8f37e5692be62119a1d4fcda·...·]/core/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.78.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:·00ccbb673c11ed48d8c6aa2a3f8984fb298202e7bccfa42f1ac21290fcc0fb06·...·]/core/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.78.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:·c18326af66652e52fa627bfd0312af7fa2ad0ddc162b12a46e61047a031b0264·...·]/core/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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·1234,·SHA:·3b805567411cdcebed740f9e8d400dbe7fb487504f40e284544a140155090fdf·...·]/core/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.78.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:·39eeddf219b211245393e51a591d5064c740fa9be49d88883d8a6474679741ad·...·]/core/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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·1058,·SHA:·b390dbdda8d7e93604b5ecd906a93efd03fe19bdaf41cf12893fd361bf974307·...·]/core/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.78.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:·9369fa85b74ff841f7401949cadba6dfbbbeead2a99568f20dcfd5aab20d61ab·...·]/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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·1163,·SHA:·5772149166d344bf8fa5ebbd9db8693a8f2e5f031c50338e8f1523ef72f814d6·...·]/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:·a25e81a74cc82c1837477e2b0cea682fff9f43550640901b8010ac501ca69e3d·...·]/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.78.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:·6216516fe581c401abda3c95818192e8f030e2008c9bbdbaafebba16f33ea9bd·...·]/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.78.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:·de8f1023275132502c1569b0ef9a557dc98eaf60aae97cdb916e52f9f55100aa·...·]/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.78.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:·485843399c56e24bdf020ff0610d0ce1f62fbac5530d9880a1a7417105e3d70f·...·]/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.78.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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(<a·class="primitive"·href="https://doc.rust-lang.org/1.78.0/core/primitive.reference.html">&amp;mut·St</a>,·Self::<a·class="associatedty[·...·truncated·by·diffoscope;·len:·449,·SHA:·f12c268a8a8111b9e7126ad78bf5523a63733caa63d187c4fe792309ea41acdf·...·]/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:·8b31595e3cee3022819032aac82e3df712188a2a6dcc20da6939262e5e528591·...·]/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.78.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.78.0/core/iter/trai[·...·truncated·by·diffoscope;·len:·690,·SHA:·371190e5c1bf9b7dde6e84447965a69946212b977b9eb6d89048fbe34c5dda1c·...·]/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.78.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.78.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:·9b6a337a3ad68c2a987b52450c153f87a04a8ed9e83603d26077fe6e70d61edf·...·]/core/iter/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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·976,·SHA:·2a9182f6fe88e0b8a9b1ae1f46cace940cc0b8736033c354c0f0ccbf1c196e7a·...·]/core/iter/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.78.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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;[Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtyp[·...·truncated·by·diffoscope;·len:·135,·SHA:·0b06a6094d42ccbc8bce5b01c4383961fe7f1967f05e4c9f1ff33e71e425fb26·...·]/core/primitive.array.html">N</a>])·-&gt;·R,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iter_map_windows</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/87155">#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.78.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:·238f6b49b3e28d725c57040edaa60bfbb34f140155e6af1d30eab52da1c7274f·...·]/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.78.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:·0d33056cee8a4f9b70b573c0adecc2f3599a2f8d9fa9f2c2044e9118ab134f73·...·]/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:·cfd3edf89fe5aca24b994f83b0d7da765620394e35140e694d98233d4d92481b·...·]/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.78.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.78.0/core/op[·...·truncated·by·diffoscope;·len:·841,·SHA:·9cba1b175fb3726d7f1f01da9be7c1a56568a68e4ce7915a468b730902daf8d3·...·]/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.78.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:·772,·SHA:·31d2052382378512fa905c6d5297d384eac7b7f126141ce561719c0e27cc9d39·...·]/core/primitive.reference.html">&amp;mut·Self</a><div·class="where">where76 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·934,·SHA:·ea20d2e0fe9388580ea08100baa9120b5e9b6cb48f43fc846f15db8b9649e7f6·...·]/core/primitive.reference.html">&amp;mut·Self</a><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:·98760b16b1ed91f9558e6e2637724a4608316181d5f6f4d236e896a83eca9af9·...·]/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.78.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.78.0/core/it[·...·truncated·by·diffoscope;·len:·523,·SHA:·97064c705f6f4bdf74469c54fabcf580d21893127d1b4cd9a9c1018a717ef153·...·]/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.78.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.78.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:·e5d524e874326d0b9b733f5ee809c6595cde869afab0cc3d4ba8454093f420da·...·]/core/primitive.reference.html">&amp;mut·E</a><div·class="where">where79 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.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.78.0/core/iter/tr[·...·truncated·by·diffoscope;·len:·728,·SHA:·01937c2dc314c259495665570ae249c94b4a5b0719718f5f1188e6fc64ecf487·...·]/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.78.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.78.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:·b0297783e056393a542c4058b42c18523a86c961c1b6ce3bc94342c1a2c10c58·...·]/core/primitive.tuple.html">(B,·B)</a><div·class="where">where81 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></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:·00bd47017b1bdd1bbe2c3fc932d955a8aa2f7f5eff8c00e3001ae28a982a5883·...·]/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.78.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.78.0/core/default/trait.Default.html"·title="trait·core::default::Default">Default</a>·+·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/collect/trait.Extend.html"·title="trait·core::iter::traits::collec[·...·truncated·by·diffoscope;·len:·95,·SHA:·8b3be1d0042cae0550f865faf5849221240bdf04eb1b2107605b72d48c3ad29c·...·]/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:·5a1bcc1ddfc5fccf50d61bf2b8879dae247aa12c0b23ba2f437fd2a345cabac7·...·]/core/primitive.usize.html">usize</a><div·class="where">where84 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·995,·SHA:·bec3765fdab56713186e2454cd84738b5b28e3280a2f3d5a25cefdbc3089b520·...·]/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.78.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>·+·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/double_ended/trait.DoubleEndedIterator.html"·title="trait·core::iter::trai[·...·truncated·by·diffoscope;·len:·132,·SHA:·e5b2cf5f56946ede1e190ed09879c5821e2de04cf8e5d145142eeb40c6340982·...·]/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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(<a·class="primitive"·href="https://doc.rust-lang.org/1.78.0/core/primitive.reference.html">&amp;T</a>)·-&gt;·<a·class="primitive"·href="[·...·truncated·by·diffoscope;·len:·32,·SHA:·63d052a8ced32bf927ffadd7e884c08caf4970e85dfdf6be0e568d49b174da96·...·]/core/primitive.bool.html">bool</a>,</div></h4></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:·97056c44eac6a0f986fb2c8edec37302cc06edf44a6c6f7153a5d8623d8d6c0d·...·]/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.78.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:·0c224636c18baa273f69de21f90083317f2ea0b7367a3f0d0f1c0ace55a36f79·...·]/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.78.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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·135,·SHA:·51ff5f5c7ebd8440623ea71b125c5a5837e809e308fe1a13fbe19cddb941dbd9·...·]/core/primitive.bool.html">bool</a>,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iter_is_partitioned</code>&nbsp;<a·href="https://github.com/rust-lang/rust/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:·6f406a351b93047f56fa70265a6bf28ec6874f75cd6cc5a39d51c7af462f2992·...·]/core/iter/traits/iterator/trait.Iterator.html#method.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.78.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:·2c74873f4e5ba70004a1c7edd1cc3f9e2d91271295dd1591e2d26848df4c02ba·...·]/core/iter/traits/iterator/trait.Iterator.html#method.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.78.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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(B,·Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.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.78.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:·eecdce021399d206eb3ef5af12ee7663b4eb0dca55b0f411c7fa66f605b6b2e2·...·]/core/iter/traits/iterator/trait.Iterator.html#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.78.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:·52912e82c4b0a760d06f77eb4ee3a59ba70dd76cb532954900c73ae94c652674·...·]/core/iter/traits/iterator/trait.Iterator.html#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.78.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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.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.78.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.78.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:·ffdacd6b524bc823efebbf23dc0f77317a07fe9c8b691f2ea18db7aa0c08b146·...·]/core/iter/traits/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.78.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:·1d6c4809cea8748e901d3f94777f450d430f3161f6ac05ed1c178d9327f966a3·...·]/core/iter/traits/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.78.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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(B,·Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::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"><a·class="src·rightside"·href="../../src/core/iter/trait[·...·truncated·by·diffoscope;·len:·386,·SHA:·810f9139cdcd3d4f700c99b5f53be62aa7fdf60caeee4e9c913e260800114d7e·...·]/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.78.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"><a·class="src·rightside"·href[·...·truncated·by·diffoscope;·len:·521,·SHA:·6f59bffc98a694c5ac5b474ae46226046b0a79a9e465f8d981b677b39a8a9f33·...·]/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.78.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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·352,·SHA:·e7c3c296abe2c0a183967153e4ae7fd50bafa2ae7088e3e78b3b48fee253adc6·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::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:·a9dce8bb557b5a11426bf2ffcbd5eea7c6c870833e3ee5bb072dcaaa11687b0c·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_reduce"·class="fn">try_reduce</a>&lt;F,·R&gt;(106 operation.·<a·href="https://doc.rust-lang.org/1.78.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:·7a18fdd041b1a001b4a8feb289ee127fd9240232239269eb35dc3b8f74783ec9·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_reduce"·class="fn">try_reduce</a>&lt;F,·R&gt;(
107 ····&amp;mut·self,107 ····&amp;mut·self,
108 ····f:·F108 ····f:·F
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.78.0/core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&gt;::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/ops/try_trait/trait.Try.html#associatedtype.Residual"·title="type[·...·truncated·by·diffoscope;·len:·754,·SHA:·6fb4dfdb6b4da68921c1e7f8b75d99cf293d58318d684a840254ce9576957bea·...·]/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.78.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:·59,·SHA:·3d53eece7c48858eda31192ab2620ae144896b35400c945bbf3eb5dc06bf8d12·...·]/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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·140,·SHA:·c27972e6fa3464c9476eaa185e8657edb6bb294f148403f3d079285294a9f909·...·]/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·=·Self::<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.78.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.78.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.78.0/core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&gt;::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/ops/try_trait/trait.Try.html#associatedtype.Residual"·title="type[·...·truncated·by·diffoscope;·len:·412,·SHA:·22b8cbb007e5cce82b9d13a65bfa56aa8d83c32541fac25f4d9b3857b0540908·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;&gt;,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iterator_try_reduce</code>&nbsp;<a·href="https://github.com/rust-lang/rust/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:·65b80c848af6e465c8c5aef4ec8d3faaa399d30c8427c9507fda7b3bd1d3ea93·...·]/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.78.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:·bc0d658d56e348823de15386e1cd4ab49109f3a7a055a4573a19391b47071193·...·]/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.78.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:·95a840b532d3d621bde4032d63854eb0a481248e2b4bbb3ef058dbffb4dae4fa·...·]/core/primitive.bool.html">bool</a><div·class="where">where116 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·1018,·SHA:·e61cd6bdd36729cc38e57fcaea2ccb91a23a5acbda3c8986071f19bf1ecfc52a·...·]/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.78.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:·f828c62edd4fe85e217286f359b56c116e14ed18bb292ba1cc13d3ed7146909e·...·]/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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·1172,·SHA:·e64ab74d116d286191ad43d9d9e10411fc011c23724aa806e9a8f9b0be0757e3·...·]/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.78.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:·21d7086b3ce0092e3f7a6a41174339bbd8724e7d186158db4db3385a73d94e8e·...·]/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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·1051,·SHA:·ecc0b8fccd861464760f9ae047ff6ab98c91a1db010cb5fa59a8c2ab883db7c4·...·]/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.78.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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·130,·SHA:·130a13019dc175d02304b4f550157e2f13ac15c2f25a979c74161d10b146ab89·...·]/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:·ac4da3337aac1ec10038e246be9cb719eeb5af1acc709f5a6a25b91900c56f53·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_find"·class="fn">try_find</a>&lt;F,·R&gt;(123 the·first·non-none·result.·<a·href="https://doc.rust-lang.org/1.78.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:·8ced1b10e78750774c5c8ed995ed83dcd13983aa75d329acf8069da106ab9f4a·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_find"·class="fn">try_find</a>&lt;F,·R&gt;(
124 ····&amp;mut·self,124 ····&amp;mut·self,
125 ····f:·F125 ····f:·F
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.78.0/core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&gt;::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/ops/try_trait/trait.Try.html#associatedtype.Residual"·title="type[·...·truncated·by·diffoscope;·len:·626,·SHA:·95f9831257b68862cbcbf54f0ad2ff4e597a4c9f763112d1da8a0897dadcf872·...·]/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.78.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
Max diff block lines reached; 88189/313076 bytes (28.17%) of diff not shown.
294 KB
./usr/share/doc/rust-web-doc/html/alloc/slice/struct.SplitInclusiveMut.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·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.write(`<link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/SourceSerif4-Regular-46f98efaafac5295.ttf.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/FiraSans-Regular-018c141bf0843ffd.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/FiraSans-Medium-8f9a781e4970d388.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/SourceCodePro-Regular-562dcc5011b6de7d.ttf.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/SourceCodePro-Semibold-d899c5a5c4aeb14a.ttf.woff2">`)</script><link·rel="stylesheet"·href="../../static.files/normalize-76eba96aa4d2e634.css"><link·rel="stylesheet"·href="../../static.files/rustdoc-35f9e32502181f1e.css"><meta·name="rustdoc-vars"·data-root-path="../../"·data-static-root-path="../../static.files/"·data-current-crate="alloc"·data-themes=""·data-resource-suffix="1.78.0"·data-rustdoc-version="1.78.0"·data-channel="1.78.0"·data-search-js="search-42d8da7a6b9792c2.js"·data-settings-js="settings-4313503d2e1961c2.js"·><script·src="../../static.files/storage-4c98445ec4002617.js"></script><script·defer·src="sidebar-items1.78.0.js"></script><script·defer·src="../../static.files/main-12cf3b4f4f9dc36d.js"></script><noscript><link·rel="stylesheet"·href="../../static.files/noscript-04d5337699b92874.css"></noscript><link·rel="alternate·icon"·type="image/png"·href="../../static.files/favicon-16x16-8b506e7a72182f1c.png"><link·rel="alternate·icon"·type="image/png"·href="../../static.files/favicon-32x32-422f7d1d52889060.png"><link·rel="icon"·type="image/svg+xml"·href="../../static.files/favicon-2c020d218678b618.svg"></head><body·class="rustdoc·struct"><!--[if·lte·IE·11]><div·class="warning">This·old·browser·is·unsupported·and·will·most·likely·display·funky·things.</div><![endif]--><nav·class="mobile-topbar"><button·class="sidebar-menu-toggle"·title="show·sidebar"></button><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-151179464ae7ed46.svg"·alt=""></a></nav><nav·class="sidebar"><div·class="sidebar-crate"><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-151179464ae7ed46.svg"·alt="logo"></a><h2><a·href="../../alloc/index.html">alloc</a><span·class="version">1.78.0</span></h2></div><h2·class="location"><a·href="#">SplitInclusiveMut</a></h2><div·class="sidebar-elems"><section><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">Debug</a></li><li><a·href="#impl-DoubleEndedIterator-for-SplitInclusiveMut%3C'a,+T,+P%3E">DoubleEndedIterator</a></li><li><a·href="#impl-FusedIterator-for-SplitInclusiveMut%3C'_,+T,+P%3E">FusedIterator</a></li><li><a·href="#impl-Iterator-for-SplitInclusiveMut%3C'a,+T,+P%3E">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">!UnwindSafe</a></li><li><a·href="#impl-Freeze-for-SplitInclusiveMut%3C'a,+T,+P%3E">Freeze</a></li><li><a·href="#impl-RefUnwindSafe-for-SplitInclusiveMut%3C'a,+T,+P%3E">RefUnwindSafe</a></li><li><a·href="#impl-Send-for-SplitInclusiveMut%3C'a,+T,+P%3E">Send</a></li><li><a·href="#impl-Sync-for-SplitInclusiveMut%3C'a,+T,+P%3E">Sync</a></li><li><a·href="#impl-Unpin-for-SplitInclusiveMut%3C'a,+T,+P%3E">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">Any</a></li><li><a·href="#impl-Borrow%3CT%3E-for-T">Borrow&lt;T&gt;</a></li><li><a·href="#impl-BorrowMut%3CT%3E-for-T">BorrowMut&lt;T&gt;</a></li><li><a·href="#impl-From%3CT%3E-for-T">From&lt;T&gt;</a></li><li><a·href="#impl-Into%3CU%3E-for-T">Into&lt;U&gt;</a></li><li><a·href="#impl-IntoIterator-for-I">IntoIterator</a></li><li><a·href="#impl-TryFrom%3CU%3E-for-T">TryFrom&lt;U&gt;</a></li><li><a·href="#impl-TryInto%3CU%3E-for-T">TryInto&lt;U&gt;</a></li></ul></section><h2><a·href="index.html">In·alloc::slice</a></h2></div></nav><div·class="sidebar-resizer"></div>1 <!DOCTYPE·html><html·lang="en"><head><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.write(`<link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/SourceSerif4-Regular-46f98efaafac5295.ttf.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/FiraSans-Regular-018c141bf0843ffd.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/FiraSans-Medium-8f9a781e4970d388.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/SourceCodePro-Regular-562dcc5011b6de7d.ttf.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/SourceCodePro-Semibold-d899c5a5c4aeb14a.ttf.woff2">`)</script><link·rel="stylesheet"·href="../../static.files/normalize-76eba96aa4d2e634.css"><link·rel="stylesheet"·href="../../static.files/rustdoc-35f9e32502181f1e.css"><meta·name="rustdoc-vars"·data-root-path="../../"·data-static-root-path="../../static.files/"·data-current-crate="alloc"·data-themes=""·data-resource-suffix="1.78.0"·data-rustdoc-version="1.78.0"·data-channel="1.78.0"·data-search-js="search-42d8da7a6b9792c2.js"·data-settings-js="settings-4313503d2e1961c2.js"·><script·src="../../static.files/storage-4c98445ec4002617.js"></script><script·defer·src="sidebar-items1.78.0.js"></script><script·defer·src="../../static.files/main-12cf3b4f4f9dc36d.js"></script><noscript><link·rel="stylesheet"·href="../../static.files/noscript-04d5337699b92874.css"></noscript><link·rel="alternate·icon"·type="image/png"·href="../../static.files/favicon-16x16-8b506e7a72182f1c.png"><link·rel="alternate·icon"·type="image/png"·href="../../static.files/favicon-32x32-422f7d1d52889060.png"><link·rel="icon"·type="image/svg+xml"·href="../../static.files/favicon-2c020d218678b618.svg"></head><body·class="rustdoc·struct"><!--[if·lte·IE·11]><div·class="warning">This·old·browser·is·unsupported·and·will·most·likely·display·funky·things.</div><![endif]--><nav·class="mobile-topbar"><button·class="sidebar-menu-toggle"·title="show·sidebar"></button><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-151179464ae7ed46.svg"·alt=""></a></nav><nav·class="sidebar"><div·class="sidebar-crate"><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-151179464ae7ed46.svg"·alt="logo"></a><h2><a·href="../../alloc/index.html">alloc</a><span·class="version">1.78.0</span></h2></div><h2·class="location"><a·href="#">SplitInclusiveMut</a></h2><div·class="sidebar-elems"><section><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">Debug</a></li><li><a·href="#impl-DoubleEndedIterator-for-SplitInclusiveMut%3C'a,+T,+P%3E">DoubleEndedIterator</a></li><li><a·href="#impl-FusedIterator-for-SplitInclusiveMut%3C'_,+T,+P%3E">FusedIterator</a></li><li><a·href="#impl-Iterator-for-SplitInclusiveMut%3C'a,+T,+P%3E">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">!UnwindSafe</a></li><li><a·href="#impl-Freeze-for-SplitInclusiveMut%3C'a,+T,+P%3E">Freeze</a></li><li><a·href="#impl-RefUnwindSafe-for-SplitInclusiveMut%3C'a,+T,+P%3E">RefUnwindSafe</a></li><li><a·href="#impl-Send-for-SplitInclusiveMut%3C'a,+T,+P%3E">Send</a></li><li><a·href="#impl-Sync-for-SplitInclusiveMut%3C'a,+T,+P%3E">Sync</a></li><li><a·href="#impl-Unpin-for-SplitInclusiveMut%3C'a,+T,+P%3E">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">Any</a></li><li><a·href="#impl-Borrow%3CT%3E-for-T">Borrow&lt;T&gt;</a></li><li><a·href="#impl-BorrowMut%3CT%3E-for-T">BorrowMut&lt;T&gt;</a></li><li><a·href="#impl-From%3CT%3E-for-T">From&lt;T&gt;</a></li><li><a·href="#impl-Into%3CU%3E-for-T">Into&lt;U&gt;</a></li><li><a·href="#impl-IntoIterator-for-I">IntoIterator</a></li><li><a·href="#impl-TryFrom%3CU%3E-for-T">TryFrom&lt;U&gt;</a></li><li><a·href="#impl-TryInto%3CU%3E-for-T">TryInto&lt;U&gt;</a></li></ul></section><h2><a·href="index.html">In·alloc::slice</a></h2></div></nav><div·class="sidebar-resizer"></div>
2 ····<main><div·class="width-limiter"><nav·class="sub"><form·class="search-form"><span></span><div·id="sidebar-button"·tabindex="-1"><a·href="../../alloc/all.html"·title="show·sidebar"></a></div><input·class="search-input"·name="search"·aria-label="Run·search·in·the·documentation"·autocomplete="off"·spellcheck="false"·placeholder="Click·or·press·‘S’·to·search,·‘?’·for·more·options…"·type="search"><div·id="help-button"·tabindex="-1"><a·href="../../help.html"·title="help">?</a></div><div·id="settings-menu"·tabindex="-1"><a·href="../../settings.html"·title="settings"><img·width="22"·height="22"·alt="Change·settings"·src="../../static.files/wheel-7b819b6101059cd0.svg"></a></div></form></nav><section·id="main-content"·class="content"><div·class="main-heading"><h1>Struct·<a·href="../index.html">alloc</a>::<wbr><a·href="index.html">slice</a>::<wbr><a·class="struct"·href="#">SplitInclusiveMut</a><button·id="copy-path"·title="Copy·item·path·to·clipboard"><img·src="../../static.files/clipboard-7571035ce49a181d.svg"·width="19"·height="18"·alt="Copy·item·path"></button></h1><span·class="out-of-band"><span·class="since"·title="Stable·since·Rust·version·1.51.0">1.51.0</span>···<a·class="src"·href="../../src/core/slice/iter.rs.html#797">source</a>···<button·id="toggle-all-docs"·title="collapse·all·docs">[<span>&#x2212;</span>]</button></span></div><pre·class="rust·item-decl"><code>pub·struct·SplitInclusiveMut&lt;'a,·T,·P&gt;<div·class="where">where2 ····<main><div·class="width-limiter"><nav·class="sub"><form·class="search-form"><span></span><div·id="sidebar-button"·tabindex="-1"><a·href="../../alloc/all.html"·title="show·sidebar"></a></div><input·class="search-input"·name="search"·aria-label="Run·search·in·the·documentation"·autocomplete="off"·spellcheck="false"·placeholder="Click·or·press·‘S’·to·search,·‘?’·for·more·options…"·type="search"><div·id="help-button"·tabindex="-1"><a·href="../../help.html"·title="help">?</a></div><div·id="settings-menu"·tabindex="-1"><a·href="../../settings.html"·title="settings"><img·width="22"·height="22"·alt="Change·settings"·src="../../static.files/wheel-7b819b6101059cd0.svg"></a></div></form></nav><section·id="main-content"·class="content"><div·class="main-heading"><h1>Struct·<a·href="../index.html">alloc</a>::<wbr><a·href="index.html">slice</a>::<wbr><a·class="struct"·href="#">SplitInclusiveMut</a><button·id="copy-path"·title="Copy·item·path·to·clipboard"><img·src="../../static.files/clipboard-7571035ce49a181d.svg"·width="19"·height="18"·alt="Copy·item·path"></button></h1><span·class="out-of-band"><span·class="since"·title="Stable·since·Rust·version·1.51.0">1.51.0</span>···<a·class="src"·href="https://doc.rust-lang.org/1.78.0/src/core/slice/iter.rs.html#797">source</a>···<button·id="toggle-all-docs"·title="collapse·all·docs">[<span>&#x2212;</span>]</button></span></div><pre·class="rust·item-decl"><code>pub·struct·SplitInclusiveMut&lt;'a,·T,·P&gt;<div·class="where">where
3 ····T:·'a,3 ····T:·'a,
4 ····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·separated4 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(<a·class="primitive"·href="https://doc.rust-lang.org/1.78.0/core/primitive.reference.html">&amp;T</a>)·-&gt;·<a·class="primitive"·href="[·...·truncated·by·diffoscope;·len:·32,·SHA:·63d052a8ced32bf927ffadd7e884c08caf4970e85dfdf6be0e568d49b174da96·...·]/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
5 by·elements·that·match·<code>pred</code>.·Unlike·<code>SplitMut</code>,·it·contains·the·matched5 by·elements·that·match·<code>pred</code>.·Unlike·<code>SplitMut</code>,·it·contains·the·matched
6 parts·in·the·ends·of·the·subslices.</p>6 parts·in·the·ends·of·the·subslices.</p>
7 <p>This·struct·is·created·by·the·<a·href="../../core/primitive.slice.html#method.split_inclusive_mut"·title="method·slice::split_inclusive_mut"><code>split_inclusive_mut</code></a>·method·on·<a·href="../../core/primitive.slice.html"·title="primitive·slice">slices</a>.</p>7 <p>This·struct·is·created·by·the·<a·href="https://doc.rust-lang.org/1.78.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.78.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>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 <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>];
10 <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"·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">Run</a></div>10 <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"·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">Run</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-Debug-for-SplitInclusiveMut%3C'_,+T,+P%3E"·class="impl"><a·class="src·rightside"·href="../../src/core/slice/iter.rs.html#815-817">source</a><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">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-Debug-for-SplitInclusiveMut%3C'_,+T,+P%3E"·class="impl"><a·class="src·rightside"·href="https://doc.rust-lang.org/1.78.0/src/core/slice/iter.rs.html#815-817">source</a><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
12 ····T:·<a·class="trait"·href="../fmt/trait.Debug.html"·title="trait·alloc::fmt::Debug">Debug</a>,12 ····T:·<a·class="trait"·href="../fmt/trait.Debug.html"·title="trait·alloc::fmt::Debug">Debug</a>,
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:·1353,·SHA:·b633fc4c4bf2d3e7900e3da255b85b69b74145fdcd3a237bb8279a055f971fbd·...·]/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">where13 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(<a·class="primitive"·href="https://doc.rust-lang.org/1.78.0/core/primitive.reference.html">&amp;T</a>)·-&gt;·<a·class="primitive"·href="[·...·truncated·by·diffoscope;·len:·1569,·SHA:·a0d7afecf22614a07df81103f38186122744707817b09977aa28e1b8fd85fe80·...·]/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
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:·3754,·SHA:·d8f2b2772b7c1b1dea54a64066af7912589384c424dfbba9e7c3ddc8e2d80703·...·]/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 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(<a·class="primitive"·href="https://doc.rust-lang.org/1.78.0/core/primitive.reference.html">&amp;T</a>)·-&gt;·<a·class="primitive"·href="[·...·truncated·by·diffoscope;·len:·4402,·SHA:·d2cc8b7a54eb124204b062a5295d6bbe4bc098532006e2c0e3c827c3c8406852·...·]/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.78.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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(B,·Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.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.78.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.7[·...·truncated·by·diffoscope;·len:·3,·SHA:·7b1bd53949b752d143d871408483b5382371b5bc48d195d0c040ec93cfa2748b·...·]/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:·74b709f2c818a4eda5d85ea863eb2d8af72c87564dbab2746e67feafb0cbb9a3·...·]/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.78.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:·d66ed7e195a53e9945339ef1976aed455dcf80228d8e5b7b0c69a64c3983fea1·...·]/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.78.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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(B,·Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/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:·f8bdf1e28866c7668477ab391452c7cfa7fd52cc69b633e782a157931421b39b·...·]/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.78.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:·c264047794019a6dcf05728ba6a6ee1f8f07c7209958b3366ba94546b527ecdc·...·]/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.78.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:·737,·SHA:·f2c487505b9547827edb2942c65a5e5e1b9fa4fb14bd0ea421fbd193616776d6·...·]/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">where23 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·899,·SHA:·b858c4b486990cc3ab4cb6383dcc3716d58c337c71dc08c99d3178d19f12c185·...·]/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
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:·2575,·SHA:·c45309329b5637f423f5700487994beb407f654fd89f58876b92f3d428869858·...·]/core/primitive.usize.html">usize</a>&gt;(24 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(<a·class="primitive"·href="https://doc.rust-lang.org/1.78.0/core/primitive.reference.html">&amp;T</a>)·-&gt;·<a·class="primitive"·href="[·...·truncated·by·diffoscope;·len:·3088,·SHA:·da3e76d6bf49ad26775375c13f62588ca4725b2ee4100d2831dae3c19a621c24·...·]/core/primitive.usize.html">usize</a>&gt;(
25 ····&amp;mut·self25 ····&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.78.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.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title=[·...·truncated·by·diffoscope;·len:·381,·SHA:·88c48923c9b7ea5cc47c1087c60e09656e81d4671c58071ba2bef826335388bc·...·]/core/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:·602d17b58d1cf716882ddc867fc66cfda4f899bef17b038a48553e9133f60097·...·]/core/primitive.usize.html">usize</a><div·class="where">where27 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></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:·89791450da70cbd536c3cf8fbf2dd9891668362f9a252d3ee098222d19960bae·...·]/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:·675,·SHA:·5b5aaec46c04cf77d2fa06e88cd6f0a2bd8d201412bc325302bd2f8f21b39207·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;<div·class="where">where28 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.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:·84ae0beb16240102bae2355bb8c543b17f3f107e3c06b320839aa401eebb1945·...·]/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>,</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:·6b808f54a13578d2e276864bb3eb79ae7b452b8959e79f7ea7ab1180574b77fc·...·]/core/iter/adapters/step_by/struct.StepBy.html"·title="struct·core::iter::adapters::step_by::StepBy">StepBy</a>&lt;Self&gt;<div·class="where">where29 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.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.78.0/cor[·...·truncated·by·diffoscope;·len:·3504,·SHA:·6d21b6d637e0b2e9953a37a26fd19e00da089147d4acaf696c94d448de4ce419·...·]/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
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·starting·at·the·same·point,·but·stepping·by30 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.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
31 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:·5667b9b6c9778ff3b9d23ed0a110e7ab9d3fccc786fdcaca8c17edf996236439·...·]/core/iter/traits/collect/trait.IntoIterator.html#associatedtype.IntoIter"·title="type·core::iter::traits::collect::IntoIterator::IntoIter">IntoIter</a>&gt;<div·class="where">where31 the·given·amount·at·each·iteration.·<a·href="https://doc.rust-lang.org/1.78.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:·e83c903581753673e083ce8dd809879a2fc81ab3050eb6db267d7fa26b15e035·...·]/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.78.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>&lt;Item·=·Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title=[·...·truncated·by·diffoscope;·len:·1113,·SHA:·1c6bb9803ee8832ebd4c28a08a952178165595b6870cf35d3c89454b9da828b2·...·]/core/iter/traits/collect/trait.IntoIterator.html#associatedtype.IntoIter"·title="type·core::iter::traits::collect::IntoIterator::IntoIter">IntoIter</a>&gt;<div·class="where">where33 ····U:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.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.78.0/core/iter/traits/it[·...·truncated·by·diffoscope;·len:·1329,·SHA:·d9299c8edc606ed82f24d61ce441bec451141d684c2a9a75074f5b19c57f196c·...·]/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.78.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>,</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:·c1b5e692e89c9c809075ee8ee72fb15a9ec46c075b08450e1f707d672a224750·...·]/core/iter/adapters/intersperse/struct.IntersperseWith.html"·title="struct·core::iter::adapters::intersperse::IntersperseWith">IntersperseWith</a>&lt;Self,·G&gt;<div·class="where">where35 ····U:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.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:·98627729f77dcf1c9d258f343354ba600b7134c6b3929080f231e8de7155b70b·...·]/core/iter/adapters/intersperse/struct.IntersperseWith.html"·title="struct·core::iter::adapters::intersperse::IntersperseWith">IntersperseWith</a>&lt;Self,·G&gt;<div·class="where">where
36 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,36 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
37 ····G:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>()·-&gt;·Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iter_intersperse</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/79524">#79524</a>)</span></div></span><div·class='docblock'>Creates·a·new·iterator·which·places·an·item·generated·by·<code>separator</code>37 ····G:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.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.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iter_intersperse</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/79524">#79524</a>)</span></div></span><div·class='docblock'>Creates·a·new·iterator·which·places·an·item·generated·by·<code>separator</code>
38 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:·d6282409add0999f2130eb6bbe6d0473ce96bf2544799e8bc22156f3c2d2e0dd·...·]/core/iter/adapters/map/struct.Map.html"·title="struct·core::iter::adapters::map::Map">Map</a>&lt;Self,·F&gt;<div·class="where">where38 between·adjacent·items·of·the·original·iterator.·<a·href="https://doc.rust-lang.org/1.78.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:·7301b6beba7b6885849be90a625df68ef739a5374af456c51fe2e81d91a25363·...·]/core/iter/adapters/map/struct.Map.html"·title="struct·core::iter::adapters::map::Map">Map</a>&lt;Self,·F&gt;<div·class="where">where
39 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,39 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.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::Item">Item</a>)·-&gt;·B,</div></h4></section></summary><div·class='docblock'>Takes·a·closure·and·creates·an·iterator·which·calls·that·closure·on·each40 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·B,</div></h4></section></summary><div·class='docblock'>Takes·a·closure·and·creates·an·iterator·which·calls·that·closure·on·each
41 element.·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.map">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:·fb4c9589a16c7b6d697c109d1193d2f1e763e5dd967101c2fd92b32416972229·...·]/core/iter/traits/iterator/trait.Iterator.html#method.for_each"·class="fn">for_each</a>&lt;F&gt;(self,·f:·F)<div·class="where">where41 element.·<a·href="https://doc.rust-lang.org/1.78.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:·98f6effefa44d759c249143d83623f0055d937382bfc398b7e1f5e92cd413657·...·]/core/iter/traits/iterator/trait.Iterator.html#method.for_each"·class="fn">for_each</a>&lt;F&gt;(self,·f:·F)<div·class="where">where
42 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,42 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.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:·754,·SHA:·7abbad666ec88a1053b8aca2a481d629a3ef3596eddb570c381205fa2d859a52·...·]/core/iter/adapters/filter/struct.Filter.html"·title="struct·core::iter::adapters::filter::Filter">Filter</a>&lt;Self,·P&gt;<div·class="where">where43 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·916,·SHA:·30d0b2a76513c5a880e9aee43e92b18805845cfcfe5783f62dc090167a439e63·...·]/core/iter/adapters/filter/struct.Filter.html"·title="struct·core::iter::adapters::filter::Filter">Filter</a>&lt;Self,·P&gt;<div·class="where">where
44 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,44 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.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:·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·element45 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·140,·SHA:·752f473b57e7444ebfddf5ea7fd40a332e83ec55524a6c31b5ee0f82a5dea819·...·]/core/primitive.bool.html">bool</a>,</div></h4></section></summary><div·class='docblock'>Creates·an·iterator·which·uses·a·closure·to·determine·if·an·element
46 should·be·yielded.·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.filter">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:·7da07154834a15b8ae55b4fd41479da070ccbd27e071909f81698570c306a081·...·]/core/iter/adapters/filter_map/struct.FilterMap.html"·title="struct·core::iter::adapters::filter_map::FilterMap">FilterMap</a>&lt;Self,·F&gt;<div·class="where">where46 should·be·yielded.·<a·href="https://doc.rust-lang.org/1.78.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:·76aa2ad154f88085ee3f8a22721a7e6812680bac785d19059532407f50da1801·...·]/core/iter/adapters/filter_map/struct.FilterMap.html"·title="struct·core::iter::adapters::filter_map::FilterMap">FilterMap</a>&lt;Self,·F&gt;<div·class="where">where
47 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,47 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.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:·863,·SHA:·c89169e5bf1c4724c7b411e568b6dad6475896f2606f557b3d708359ef71f5cc·...·]/core/iter/adapters/enumerate/struct.Enumerate.html"·title="struct·core::iter::adapters::enumerate::Enumerate">Enumerate</a>&lt;Self&gt;<div·class="where">where48 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·1052,·SHA:·110b47c7083083d565fcfc89337fddc8e5c87e81b2f720f3f7b0ded55e8500fb·...·]/core/iter/adapters/enumerate/struct.Enumerate.html"·title="struct·core::iter::adapters::enumerate::Enumerate">Enumerate</a>&lt;Self&gt;<div·class="where">where
49 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Creates·an·iterator·which·gives·the·current·iteration·count·as·well·as49 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.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
50 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:·53634008856676c70c32b501f7ec498c1f86d123cc9b5b898256a69895ff31fc·...·]/core/iter/adapters/peekable/struct.Peekable.html"·title="struct·core::iter::adapters::peekable::Peekable">Peekable</a>&lt;Self&gt;<div·class="where">where50 the·next·value.·<a·href="https://doc.rust-lang.org/1.78.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:·8464264e074dde5d84f0414ab3b5b2d8da83f3c9e3ca04c45458241580a8c80d·...·]/core/iter/adapters/peekable/struct.Peekable.html"·title="struct·core::iter::adapters::peekable::Peekable">Peekable</a>&lt;Self&gt;<div·class="where">where
51 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.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>·methods51 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.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.78.0/core/iter/adapte[·...·truncated·by·diffoscope;·len:·175,·SHA:·16fe7225bf05b478e2828b347c3d23ded9a22f89d8887a2c65d9f7b3faf1b0e7·...·]/core/iter/adapters/peekable/struct.Peekable.html#method.peek_mut"·title="method·core::iter::adapters::peekable::Peekable::peek_mut"><code>peek_mut</code></a>·methods
52 to·look·at·the·next·element·of·the·iterator·without·consuming·it.·See52 to·look·at·the·next·element·of·the·iterator·without·consuming·it.·See
53 their·documentation·for·more·information.·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.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:·77dd41e041d66c618d306e900a9159cf1b00478b8f37e5692be62119a1d4fcda·...·]/core/iter/adapters/skip_while/struct.SkipWhile.html"·title="struct·core::iter::adapters::skip_while::SkipWhile">SkipWhile</a>&lt;Self,·P&gt;<div·class="where">where53 their·documentation·for·more·information.·<a·href="https://doc.rust-lang.org/1.78.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:·00ccbb673c11ed48d8c6aa2a3f8984fb298202e7bccfa42f1ac21290fcc0fb06·...·]/core/iter/adapters/skip_while/struct.SkipWhile.html"·title="struct·core::iter::adapters::skip_while::SkipWhile">SkipWhile</a>&lt;Self,·P&gt;<div·class="where">where
54 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,54 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.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:·1018,·SHA:·c18326af66652e52fa627bfd0312af7fa2ad0ddc162b12a46e61047a031b0264·...·]/core/iter/adapters/take_while/struct.TakeWhile.html"·title="struct·core::iter::adapters::take_while::TakeWhile">TakeWhile</a>&lt;Self,·P&gt;<div·class="where">where55 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·1234,·SHA:·3b805567411cdcebed740f9e8d400dbe7fb487504f40e284544a140155090fdf·...·]/core/iter/adapters/take_while/struct.TakeWhile.html"·title="struct·core::iter::adapters::take_while::TakeWhile">TakeWhile</a>&lt;Self,·P&gt;<div·class="where">where
56 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,56 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.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:·869,·SHA:·39eeddf219b211245393e51a591d5064c740fa9be49d88883d8a6474679741ad·...·]/core/iter/adapters/map_while/struct.MapWhile.html"·title="struct·core::iter::adapters::map_while::MapWhile">MapWhile</a>&lt;Self,·P&gt;<div·class="where">where57 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·1058,·SHA:·b390dbdda8d7e93604b5ecd906a93efd03fe19bdaf41cf12893fd361bf974307·...·]/core/iter/adapters/map_while/struct.MapWhile.html"·title="struct·core::iter::adapters::map_while::MapWhile">MapWhile</a>&lt;Self,·P&gt;<div·class="where">where
58 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,58 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.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>(Self::<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:·9369fa85b74ff841f7401949cadba6dfbbbeead2a99568f20dcfd5aab20d61ab·...·]/core/iter/adapters/skip/struct.Skip.html"·title="struct·core::iter::adapters::skip::Skip">Skip</a>&lt;Self&gt;<div·class="where">where59 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·1163,·SHA:·5772149166d344bf8fa5ebbd9db8693a8f2e5f031c50338e8f1523ef72f814d6·...·]/core/iter/adapters/skip/struct.Skip.html"·title="struct·core::iter::adapters::skip::Skip">Skip</a>&lt;Self&gt;<div·class="where">where
60 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::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:·a25e81a74cc82c1837477e2b0cea682fff9f43550640901b8010ac501ca69e3d·...·]/core/iter/adapters/take/struct.Take.html"·title="struct·core::iter::adapters::take::Take">Take</a>&lt;Self&gt;<div·class="where">where60 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.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:·6216516fe581c401abda3c95818192e8f030e2008c9bbdbaafebba16f33ea9bd·...·]/core/iter/adapters/take/struct.Take.html"·title="struct·core::iter::adapters::take::Take">Take</a>&lt;Self&gt;<div·class="where">where
61 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Creates·an·iterator·that·yields·the·first·<code>n</code>·elements,·or·fewer61 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.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
62 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:·de8f1023275132502c1569b0ef9a557dc98eaf60aae97cdb916e52f9f55100aa·...·]/core/iter/adapters/scan/struct.Scan.html"·title="struct·core::iter::adapters::scan::Scan">Scan</a>&lt;Self,·St,·F&gt;<div·class="where">where62 if·the·underlying·iterator·ends·sooner.·<a·href="https://doc.rust-lang.org/1.78.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:·485843399c56e24bdf020ff0610d0ce1f62fbac5530d9880a1a7417105e3d70f·...·]/core/iter/adapters/scan/struct.Scan.html"·title="struct·core::iter::adapters::scan::Scan">Scan</a>&lt;Self,·St,·F&gt;<div·class="where">where
63 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,63 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.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>(<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,·but64 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(<a·class="primitive"·href="https://doc.rust-lang.org/1.78.0/core/primitive.reference.html">&amp;mut·St</a>,·Self::<a·class="associatedty[·...·truncated·by·diffoscope;·len:·449,·SHA:·f12c268a8a8111b9e7126ad78bf5523a63733caa63d187c4fe792309ea41acdf·...·]/core/iter/traits/iterator/trait.Iterator.html#method.fold"·title="method·core::iter::traits::iterator::Iterator::fold"><code>fold</code></a>,·holds·internal·state,·but
65 unlike·<a·href="../../core/iter/traits/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:·8b31595e3cee3022819032aac82e3df712188a2a6dcc20da6939262e5e528591·...·]/core/iter/adapters/flatten/struct.FlatMap.html"·title="struct·core::iter::adapters::flatten::FlatMap">FlatMap</a>&lt;Self,·U,·F&gt;<div·class="where">where65 unlike·<a·href="https://doc.rust-lang.org/1.78.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.78.0/core/iter/trai[·...·truncated·by·diffoscope;·len:·690,·SHA:·371190e5c1bf9b7dde6e84447965a69946212b977b9eb6d89048fbe34c5dda1c·...·]/core/iter/adapters/flatten/struct.FlatMap.html"·title="struct·core::iter::adapters::flatten::FlatMap">FlatMap</a>&lt;Self,·U,·F&gt;<div·class="where">where
66 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,66 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
67 ····U:·<a·class="trait"·href="../../core/iter/traits/collect/trait.IntoIterator.html"·title="trait·core::iter::traits::collect::IntoIterator">IntoIterator</a>,67 ····U:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/collect/trait.IntoIterator.html"·title="trait·core::iter::traits::collect::IntoIterator">IntoIterator</a>,
68 ····F:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<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:·9b6a337a3ad68c2a987b52450c153f87a04a8ed9e83603d26077fe6e70d61edf·...·]/core/iter/adapters/map_windows/struct.MapWindows.html"·title="struct·core::iter::adapters::map_windows::MapWindows">MapWindows</a>&lt;Self,·F,·N&gt;<div·class="where">where68 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·976,·SHA:·2a9182f6fe88e0b8a9b1ae1f46cace940cc0b8736033c354c0f0ccbf1c196e7a·...·]/core/iter/adapters/map_windows/struct.MapWindows.html"·title="struct·core::iter::adapters::map_windows::MapWindows">MapWindows</a>&lt;Self,·F,·N&gt;<div·class="where">where
69 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,69 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.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::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>·over70 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;[Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtyp[·...·truncated·by·diffoscope;·len:·135,·SHA:·0b06a6094d42ccbc8bce5b01c4383961fe7f1967f05e4c9f1ff33e71e425fb26·...·]/core/primitive.array.html">N</a>])·-&gt;·R,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iter_map_windows</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/87155">#87155</a>)</span></div></span><div·class='docblock'>Calls·the·given·function·<code>f</code>·for·each·contiguous·window·of·size·<code>N</code>·over
71 <code>self</code>·and·returns·an·iterator·over·the·outputs·of·<code>f</code>.·Like·<a·href="../../core/primitive.slice.html#method.windows"·title="method·slice::windows"><code>slice::windows()</code></a>,71 <code>self</code>·and·returns·an·iterator·over·the·outputs·of·<code>f</code>.·Like·<a·href="https://doc.rust-lang.org/1.78.0/core/primitive.slice.html#method.windows"·title="method·slice::windows"><code>slice::windows()</code></a>,
72 the·windows·during·mapping·overlap·as·well.·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.map_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:·238f6b49b3e28d725c57040edaa60bfbb34f140155e6af1d30eab52da1c7274f·...·]/core/iter/adapters/fuse/struct.Fuse.html"·title="struct·core::iter::adapters::fuse::Fuse">Fuse</a>&lt;Self&gt;<div·class="where">where72 the·windows·during·mapping·overlap·as·well.·<a·href="https://doc.rust-lang.org/1.78.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:·0d33056cee8a4f9b70b573c0adecc2f3599a2f8d9fa9f2c2044e9118ab134f73·...·]/core/iter/adapters/fuse/struct.Fuse.html"·title="struct·core::iter::adapters::fuse::Fuse">Fuse</a>&lt;Self&gt;<div·class="where">where
73 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·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:·cfd3edf89fe5aca24b994f83b0d7da765620394e35140e694d98233d4d92481b·...·]/core/iter/adapters/inspect/struct.Inspect.html"·title="struct·core::iter::adapters::inspect::Inspect">Inspect</a>&lt;Self,·F&gt;<div·class="where">where73 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.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.78.0/core/op[·...·truncated·by·diffoscope;·len:·841,·SHA:·9cba1b175fb3726d7f1f01da9be7c1a56568a68e4ce7915a468b730902daf8d3·...·]/core/iter/adapters/inspect/struct.Inspect.html"·title="struct·core::iter::adapters::inspect::Inspect">Inspect</a>&lt;Self,·F&gt;<div·class="where">where
74 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,74 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.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::Itera[·...·truncated·by·diffoscope;·len:·772,·SHA:·31d2052382378512fa905c6d5297d384eac7b7f126141ce561719c0e27cc9d39·...·]/core/primitive.reference.html">&amp;mut·Self</a><div·class="where">where75 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·934,·SHA:·ea20d2e0fe9388580ea08100baa9120b5e9b6cb48f43fc846f15db8b9649e7f6·...·]/core/primitive.reference.html">&amp;mut·Self</a><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'>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:·98760b16b1ed91f9558e6e2637724a4608316181d5f6f4d236e896a83eca9af9·...·]/core/iter/traits/iterator/trait.Iterator.html#method.collect"·class="fn">collect</a>&lt;B&gt;(self)·-&gt;·B<div·class="where">where76 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.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.78.0/core/it[·...·truncated·by·diffoscope;·len:·523,·SHA:·97064c705f6f4bdf74469c54fabcf580d21893127d1b4cd9a9c1018a717ef153·...·]/core/iter/traits/iterator/trait.Iterator.html#method.collect"·class="fn">collect</a>&lt;B&gt;(self)·-&gt;·B<div·class="where">where
77 ····B:·<a·class="trait"·href="../../core/iter/traits/collect/trait.FromIterator.html"·title="trait·core::iter::traits::collect::FromIterator">FromIterator</a>&lt;Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;,77 ····B:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.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.78.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><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:·e5d524e874326d0b9b733f5ee809c6595cde869afab0cc3d4ba8454093f420da·...·]/core/primitive.reference.html">&amp;mut·E</a><div·class="where">where78 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.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.78.0/core/iter/tr[·...·truncated·by·diffoscope;·len:·728,·SHA:·01937c2dc314c259495665570ae249c94b4a5b0719718f5f1188e6fc64ecf487·...·]/core/primitive.reference.html">&amp;mut·E</a><div·class="where">where
79 ····E:·<a·class="trait"·href="../../core/iter/traits/collect/trait.Extend.html"·title="trait·core::iter::traits::collect::Extend">Extend</a>&lt;Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;,79 ····E:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.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.78.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><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:·b0297783e056393a542c4058b42c18523a86c961c1b6ce3bc94342c1a2c10c58·...·]/core/primitive.tuple.html">(B,·B)</a><div·class="where">where80 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></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:·00bd47017b1bdd1bbe2c3fc932d955a8aa2f7f5eff8c00e3001ae28a982a5883·...·]/core/primitive.tuple.html">(B,·B)</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.78.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
82 ····B:·<a·class="trait"·href="../../core/default/trait.Default.html"·title="trait·core::default::Default">Default</a>·+·<a·class="trait"·href="../../core/iter/traits/collect/trait.Extend.html"·title="trait·core::iter::traits::collect::Extend">Extend</a>&lt;Self::<a·class="associatedtyp[·...·truncated·by·diffoscope;·len:·14,·SHA:·4105980ca4887a52797067761af25a11e3de6069cd8d7c8ce82cd885bb798fe8·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;,82 ····B:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/default/trait.Default.html"·title="trait·core::default::Default">Default</a>·+·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/collect/trait.Extend.html"·title="trait·core::iter::traits::collec[·...·truncated·by·diffoscope;·len:·95,·SHA:·8b3be1d0042cae0550f865faf5849221240bdf04eb1b2107605b72d48c3ad29c·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;,
83 ····F:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<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:·5a1bcc1ddfc5fccf50d61bf2b8879dae247aa12c0b23ba2f437fd2a345cabac7·...·]/core/primitive.usize.html">usize</a><div·class="where">where83 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·995,·SHA:·bec3765fdab56713186e2454cd84738b5b28e3280a2f3d5a25cefdbc3089b520·...·]/core/primitive.usize.html">usize</a><div·class="where">where
84 ····T:·'a,84 ····T:·'a,
85 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>·+·<a·class="trait"·href="../../core/iter/traits/double_ended/trait.DoubleEndedIterator.html"·title="trait·core::iter::traits::double_ended::DoubleEndedIterator">DoubleEndedIter[·...·truncated·by·diffoscope;·len:·51,·SHA:·c9be73bbed9d11ecac2a179f480a640f51d6255f26712667ffdabc72c1fc7fb0·...·]/core/primitive.reference.html">&amp;'a·mut·T</a>&gt;,85 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>·+·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/double_ended/trait.DoubleEndedIterator.html"·title="trait·core::iter::trai[·...·truncated·by·diffoscope;·len:·132,·SHA:·e5b2cf5f56946ede1e190ed09879c5821e2de04cf8e5d145142eeb40c6340982·...·]/core/primitive.reference.html">&amp;'a·mut·T</a>&gt;,
86 ····P:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(<a·class="primitive"·href="../../core/primitive.reference.html">&amp;T</a>)·-&gt;·<a·class="primitive"·href="../../core/primitive.bool.html">bool</a>,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iter_partition_in_place</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/62543">#62543</a>)</span></div></span><div·class='docblock'>Reorders·the·elements·of·this·iterator·<em>in-place</em>·according·to·the·given·predicate,86 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(<a·class="primitive"·href="https://doc.rust-lang.org/1.78.0/core/primitive.reference.html">&amp;T</a>)·-&gt;·<a·class="primitive"·href="[·...·truncated·by·diffoscope;·len:·32,·SHA:·63d052a8ced32bf927ffadd7e884c08caf4970e85dfdf6be0e568d49b174da96·...·]/core/primitive.bool.html">bool</a>,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iter_partition_in_place</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/62543">#62543</a>)</span></div></span><div·class='docblock'>Reorders·the·elements·of·this·iterator·<em>in-place</em>·according·to·the·given·predicate,
87 such·that·all·those·that·return·<code>true</code>·precede·all·those·that·return·<code>false</code>.87 such·that·all·those·that·return·<code>true</code>·precede·all·those·that·return·<code>false</code>.
88 Returns·the·number·of·<code>true</code>·elements·found.·<a·href="../../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:·97056c44eac6a0f986fb2c8edec37302cc06edf44a6c6f7153a5d8623d8d6c0d·...·]/core/primitive.bool.html">bool</a><div·class="where">where88 Returns·the·number·of·<code>true</code>·elements·found.·<a·href="https://doc.rust-lang.org/1.78.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:·0c224636c18baa273f69de21f90083317f2ea0b7367a3f0d0f1c0ace55a36f79·...·]/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.78.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>(Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::[·...·truncated·by·diffoscope;·len:·54,·SHA:·d5ac304cc26edf57442227b641dd21c427d0f9cb322b79986f5b15fc49f867b0·...·]/core/primitive.bool.html">bool</a>,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iter_is_partitioned</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/62544">#62544</a>)</span></div></span><div·class='docblock'>Checks·if·the·elements·of·this·iterator·are·partitioned·according·to·the·given·predicate,90 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·135,·SHA:·51ff5f5c7ebd8440623ea71b125c5a5837e809e308fe1a13fbe19cddb941dbd9·...·]/core/primitive.bool.html">bool</a>,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iter_is_partitioned</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/62544">#62544</a>)</span></div></span><div·class='docblock'>Checks·if·the·elements·of·this·iterator·are·partitioned·according·to·the·given·predicate,
91 such·that·all·those·that·return·<code>true</code>·precede·all·those·that·return·<code>false</code>.·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.is_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:·6f406a351b93047f56fa70265a6bf28ec6874f75cd6cc5a39d51c7af462f2992·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_fold"·class="fn">try_fold</a>&lt;B,·F,·R&gt;(&amp;mut·self,·init:·B,·f:·F)·-&gt;·R<div·class="where">where91 such·that·all·those·that·return·<code>true</code>·precede·all·those·that·return·<code>false</code>.·<a·href="https://doc.rust-lang.org/1.78.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:·2c74873f4e5ba70004a1c7edd1cc3f9e2d91271295dd1591e2d26848df4c02ba·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_fold"·class="fn">try_fold</a>&lt;B,·F,·R&gt;(&amp;mut·self,·init:·B,·f:·F)·-&gt;·R<div·class="where">where
92 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,92 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.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;·R,93 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(B,·Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·R,
94 ····R:·<a·class="trait"·href="../../core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&lt;Output·=·B&gt;,</div></h4></section></summary><div·class='docblock'>An·iterator·method·that·applies·a·function·as·long·as·it·returns94 ····R:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.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
95 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:·eecdce021399d206eb3ef5af12ee7663b4eb0dca55b0f411c7fa66f605b6b2e2·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_for_each"·class="fn">try_for_each</a>&lt;F,·R&gt;(&amp;mut·self,·f:·F)·-&gt;·R<div·class="where">where95 successfully,·producing·a·single,·final·value.·<a·href="https://doc.rust-lang.org/1.78.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:·52912e82c4b0a760d06f77eb4ee3a59ba70dd76cb532954900c73ae94c652674·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_for_each"·class="fn">try_for_each</a>&lt;F,·R&gt;(&amp;mut·self,·f:·F)·-&gt;·R<div·class="where">where
96 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,96 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.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::Item">Item</a>)·-&gt;·R,97 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·R,
98 ····R:·<a·class="trait"·href="../../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·the98 ····R:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.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.78.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
99 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:·ffdacd6b524bc823efebbf23dc0f77317a07fe9c8b691f2ea18db7aa0c08b146·...·]/core/iter/traits/iterator/trait.Iterator.html#method.fold"·class="fn">fold</a>&lt;B,·F&gt;(self,·init:·B,·f:·F)·-&gt;·B<div·class="where">where99 iterator,·stopping·at·the·first·error·and·returning·that·error.·<a·href="https://doc.rust-lang.org/1.78.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:·1d6c4809cea8748e901d3f94777f450d430f3161f6ac05ed1c178d9327f966a3·...·]/core/iter/traits/iterator/trait.Iterator.html#method.fold"·class="fn">fold</a>&lt;B,·F&gt;(self,·init:·B,·f:·F)·-&gt;·B<div·class="where">where
100 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,100 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.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>(B,·Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·B,</div></h4></section></summary><div·class='docblock'>Folds·every·element·into·an·accumulator·by·applying·an·operation,101 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(B,·Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·B,</div></h4></section></summary><div·class='docblock'>Folds·every·element·into·an·accumulator·by·applying·an·operation,
102 returning·the·final·result.·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.fold">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.reduce"·class="method·trait-impl"><a·class="src·rightside"·href="../../src/core/iter/trait[·...·truncated·by·diffoscope;·len:·386,·SHA:·810f9139cdcd3d4f700c99b5f53be62aa7fdf60caeee4e9c913e260800114d7e·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;<div·class="where">where102 returning·the·final·result.·<a·href="https://doc.rust-lang.org/1.78.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"><a·class="src·rightside"·href[·...·truncated·by·diffoscope;·len:·521,·SHA:·6f59bffc98a694c5ac5b474ae46226046b0a79a9e465f8d981b677b39a8a9f33·...·]/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.78.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:·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·reducing104 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·352,·SHA:·e7c3c296abe2c0a183967153e4ae7fd50bafa2ae7088e3e78b3b48fee253adc6·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>,</div></h4></section></summary><div·class='docblock'>Reduces·the·elements·to·a·single·one,·by·repeatedly·applying·a·reducing
105 operation.·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.reduce">Read·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:·a9dce8bb557b5a11426bf2ffcbd5eea7c6c870833e3ee5bb072dcaaa11687b0c·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_reduce"·class="fn">try_reduce</a>&lt;F,·R&gt;(105 operation.·<a·href="https://doc.rust-lang.org/1.78.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:·7a18fdd041b1a001b4a8feb289ee127fd9240232239269eb35dc3b8f74783ec9·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_reduce"·class="fn">try_reduce</a>&lt;F,·R&gt;(
106 ····&amp;mut·self,106 ····&amp;mut·self,
107 ····f:·F107 ····f:·F
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:·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">where108 )·-&gt;·&lt;&lt;R·as·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&gt;::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/ops/try_trait/trait.Try.html#associatedtype.Residual"·title="type[·...·truncated·by·diffoscope;·len:·754,·SHA:·6fb4dfdb6b4da68921c1e7f8b75d99cf293d58318d684a840254ce9576957bea·...·]/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.78.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:·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:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·140,·SHA:·c27972e6fa3464c9476eaa185e8657edb6bb294f148403f3d079285294a9f909·...·]/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·=·Self::<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.78.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.78.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.78.0/core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&gt;::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/ops/try_trait/trait.Try.html#associatedtype.Residual"·title="type[·...·truncated·by·diffoscope;·len:·412,·SHA:·22b8cbb007e5cce82b9d13a65bfa56aa8d83c32541fac25f4d9b3857b0540908·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;&gt;,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iterator_try_reduce</code>&nbsp;<a·href="https://github.com/rust-lang/rust/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:·65b80c848af6e465c8c5aef4ec8d3faaa399d30c8427c9507fda7b3bd1d3ea93·...·]/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.78.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:·bc0d658d56e348823de15386e1cd4ab49109f3a7a055a4573a19391b47071193·...·]/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.78.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:·95a840b532d3d621bde4032d63854eb0a481248e2b4bbb3ef058dbffb4dae4fa·...·]/core/primitive.bool.html">bool</a><div·class="where">where115 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·1018,·SHA:·e61cd6bdd36729cc38e57fcaea2ccb91a23a5acbda3c8986071f19bf1ecfc52a·...·]/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.78.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:·f828c62edd4fe85e217286f359b56c116e14ed18bb292ba1cc13d3ed7146909e·...·]/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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·1172,·SHA:·e64ab74d116d286191ad43d9d9e10411fc011c23724aa806e9a8f9b0be0757e3·...·]/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.78.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:·21d7086b3ce0092e3f7a6a41174339bbd8724e7d186158db4db3385a73d94e8e·...·]/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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·1051,·SHA:·ecc0b8fccd861464760f9ae047ff6ab98c91a1db010cb5fa59a8c2ab883db7c4·...·]/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.78.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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·130,·SHA:·130a13019dc175d02304b4f550157e2f13ac15c2f25a979c74161d10b146ab89·...·]/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:·ac4da3337aac1ec10038e246be9cb719eeb5af1acc709f5a6a25b91900c56f53·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_find"·class="fn">try_find</a>&lt;F,·R&gt;(122 the·first·non-none·result.·<a·href="https://doc.rust-lang.org/1.78.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:·8ced1b10e78750774c5c8ed995ed83dcd13983aa75d329acf8069da106ab9f4a·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_find"·class="fn">try_find</a>&lt;F,·R&gt;(
123 ····&amp;mut·self,123 ····&amp;mut·self,
124 ····f:·F124 ····f:·F
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.78.0/core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&gt;::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/ops/try_trait/trait.Try.html#associatedtype.Residual"·title="type[·...·truncated·by·diffoscope;·len:·626,·SHA:·95f9831257b68862cbcbf54f0ad2ff4e597a4c9f763112d1da8a0897dadcf872·...·]/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.78.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;·R,127 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·R,
Max diff block lines reached; 80785/300523 bytes (26.88%) of diff not shown.
287 KB
./usr/share/doc/rust-web-doc/html/alloc/slice/struct.SplitMut.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·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.write(`<link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/SourceSerif4-Regular-46f98efaafac5295.ttf.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/FiraSans-Regular-018c141bf0843ffd.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/FiraSans-Medium-8f9a781e4970d388.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/SourceCodePro-Regular-562dcc5011b6de7d.ttf.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/SourceCodePro-Semibold-d899c5a5c4aeb14a.ttf.woff2">`)</script><link·rel="stylesheet"·href="../../static.files/normalize-76eba96aa4d2e634.css"><link·rel="stylesheet"·href="../../static.files/rustdoc-35f9e32502181f1e.css"><meta·name="rustdoc-vars"·data-root-path="../../"·data-static-root-path="../../static.files/"·data-current-crate="alloc"·data-themes=""·data-resource-suffix="1.78.0"·data-rustdoc-version="1.78.0"·data-channel="1.78.0"·data-search-js="search-42d8da7a6b9792c2.js"·data-settings-js="settings-4313503d2e1961c2.js"·><script·src="../../static.files/storage-4c98445ec4002617.js"></script><script·defer·src="sidebar-items1.78.0.js"></script><script·defer·src="../../static.files/main-12cf3b4f4f9dc36d.js"></script><noscript><link·rel="stylesheet"·href="../../static.files/noscript-04d5337699b92874.css"></noscript><link·rel="alternate·icon"·type="image/png"·href="../../static.files/favicon-16x16-8b506e7a72182f1c.png"><link·rel="alternate·icon"·type="image/png"·href="../../static.files/favicon-32x32-422f7d1d52889060.png"><link·rel="icon"·type="image/svg+xml"·href="../../static.files/favicon-2c020d218678b618.svg"></head><body·class="rustdoc·struct"><!--[if·lte·IE·11]><div·class="warning">This·old·browser·is·unsupported·and·will·most·likely·display·funky·things.</div><![endif]--><nav·class="mobile-topbar"><button·class="sidebar-menu-toggle"·title="show·sidebar"></button><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-151179464ae7ed46.svg"·alt=""></a></nav><nav·class="sidebar"><div·class="sidebar-crate"><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-151179464ae7ed46.svg"·alt="logo"></a><h2><a·href="../../alloc/index.html">alloc</a><span·class="version">1.78.0</span></h2></div><h2·class="location"><a·href="#">SplitMut</a></h2><div·class="sidebar-elems"><section><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">Debug</a></li><li><a·href="#impl-DoubleEndedIterator-for-SplitMut%3C'a,+T,+P%3E">DoubleEndedIterator</a></li><li><a·href="#impl-FusedIterator-for-SplitMut%3C'_,+T,+P%3E">FusedIterator</a></li><li><a·href="#impl-Iterator-for-SplitMut%3C'a,+T,+P%3E">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">!UnwindSafe</a></li><li><a·href="#impl-Freeze-for-SplitMut%3C'a,+T,+P%3E">Freeze</a></li><li><a·href="#impl-RefUnwindSafe-for-SplitMut%3C'a,+T,+P%3E">RefUnwindSafe</a></li><li><a·href="#impl-Send-for-SplitMut%3C'a,+T,+P%3E">Send</a></li><li><a·href="#impl-Sync-for-SplitMut%3C'a,+T,+P%3E">Sync</a></li><li><a·href="#impl-Unpin-for-SplitMut%3C'a,+T,+P%3E">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">Any</a></li><li><a·href="#impl-Borrow%3CT%3E-for-T">Borrow&lt;T&gt;</a></li><li><a·href="#impl-BorrowMut%3CT%3E-for-T">BorrowMut&lt;T&gt;</a></li><li><a·href="#impl-From%3CT%3E-for-T">From&lt;T&gt;</a></li><li><a·href="#impl-Into%3CU%3E-for-T">Into&lt;U&gt;</a></li><li><a·href="#impl-IntoIterator-for-I">IntoIterator</a></li><li><a·href="#impl-TryFrom%3CU%3E-for-T">TryFrom&lt;U&gt;</a></li><li><a·href="#impl-TryInto%3CU%3E-for-T">TryInto&lt;U&gt;</a></li></ul></section><h2><a·href="index.html">In·alloc::slice</a></h2></div></nav><div·class="sidebar-resizer"></div>1 <!DOCTYPE·html><html·lang="en"><head><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.write(`<link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/SourceSerif4-Regular-46f98efaafac5295.ttf.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/FiraSans-Regular-018c141bf0843ffd.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/FiraSans-Medium-8f9a781e4970d388.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/SourceCodePro-Regular-562dcc5011b6de7d.ttf.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/SourceCodePro-Semibold-d899c5a5c4aeb14a.ttf.woff2">`)</script><link·rel="stylesheet"·href="../../static.files/normalize-76eba96aa4d2e634.css"><link·rel="stylesheet"·href="../../static.files/rustdoc-35f9e32502181f1e.css"><meta·name="rustdoc-vars"·data-root-path="../../"·data-static-root-path="../../static.files/"·data-current-crate="alloc"·data-themes=""·data-resource-suffix="1.78.0"·data-rustdoc-version="1.78.0"·data-channel="1.78.0"·data-search-js="search-42d8da7a6b9792c2.js"·data-settings-js="settings-4313503d2e1961c2.js"·><script·src="../../static.files/storage-4c98445ec4002617.js"></script><script·defer·src="sidebar-items1.78.0.js"></script><script·defer·src="../../static.files/main-12cf3b4f4f9dc36d.js"></script><noscript><link·rel="stylesheet"·href="../../static.files/noscript-04d5337699b92874.css"></noscript><link·rel="alternate·icon"·type="image/png"·href="../../static.files/favicon-16x16-8b506e7a72182f1c.png"><link·rel="alternate·icon"·type="image/png"·href="../../static.files/favicon-32x32-422f7d1d52889060.png"><link·rel="icon"·type="image/svg+xml"·href="../../static.files/favicon-2c020d218678b618.svg"></head><body·class="rustdoc·struct"><!--[if·lte·IE·11]><div·class="warning">This·old·browser·is·unsupported·and·will·most·likely·display·funky·things.</div><![endif]--><nav·class="mobile-topbar"><button·class="sidebar-menu-toggle"·title="show·sidebar"></button><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-151179464ae7ed46.svg"·alt=""></a></nav><nav·class="sidebar"><div·class="sidebar-crate"><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-151179464ae7ed46.svg"·alt="logo"></a><h2><a·href="../../alloc/index.html">alloc</a><span·class="version">1.78.0</span></h2></div><h2·class="location"><a·href="#">SplitMut</a></h2><div·class="sidebar-elems"><section><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">Debug</a></li><li><a·href="#impl-DoubleEndedIterator-for-SplitMut%3C'a,+T,+P%3E">DoubleEndedIterator</a></li><li><a·href="#impl-FusedIterator-for-SplitMut%3C'_,+T,+P%3E">FusedIterator</a></li><li><a·href="#impl-Iterator-for-SplitMut%3C'a,+T,+P%3E">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">!UnwindSafe</a></li><li><a·href="#impl-Freeze-for-SplitMut%3C'a,+T,+P%3E">Freeze</a></li><li><a·href="#impl-RefUnwindSafe-for-SplitMut%3C'a,+T,+P%3E">RefUnwindSafe</a></li><li><a·href="#impl-Send-for-SplitMut%3C'a,+T,+P%3E">Send</a></li><li><a·href="#impl-Sync-for-SplitMut%3C'a,+T,+P%3E">Sync</a></li><li><a·href="#impl-Unpin-for-SplitMut%3C'a,+T,+P%3E">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">Any</a></li><li><a·href="#impl-Borrow%3CT%3E-for-T">Borrow&lt;T&gt;</a></li><li><a·href="#impl-BorrowMut%3CT%3E-for-T">BorrowMut&lt;T&gt;</a></li><li><a·href="#impl-From%3CT%3E-for-T">From&lt;T&gt;</a></li><li><a·href="#impl-Into%3CU%3E-for-T">Into&lt;U&gt;</a></li><li><a·href="#impl-IntoIterator-for-I">IntoIterator</a></li><li><a·href="#impl-TryFrom%3CU%3E-for-T">TryFrom&lt;U&gt;</a></li><li><a·href="#impl-TryInto%3CU%3E-for-T">TryInto&lt;U&gt;</a></li></ul></section><h2><a·href="index.html">In·alloc::slice</a></h2></div></nav><div·class="sidebar-resizer"></div>
2 ····<main><div·class="width-limiter"><nav·class="sub"><form·class="search-form"><span></span><div·id="sidebar-button"·tabindex="-1"><a·href="../../alloc/all.html"·title="show·sidebar"></a></div><input·class="search-input"·name="search"·aria-label="Run·search·in·the·documentation"·autocomplete="off"·spellcheck="false"·placeholder="Click·or·press·‘S’·to·search,·‘?’·for·more·options…"·type="search"><div·id="help-button"·tabindex="-1"><a·href="../../help.html"·title="help">?</a></div><div·id="settings-menu"·tabindex="-1"><a·href="../../settings.html"·title="settings"><img·width="22"·height="22"·alt="Change·settings"·src="../../static.files/wheel-7b819b6101059cd0.svg"></a></div></form></nav><section·id="main-content"·class="content"><div·class="main-heading"><h1>Struct·<a·href="../index.html">alloc</a>::<wbr><a·href="index.html">slice</a>::<wbr><a·class="struct"·href="#">SplitMut</a><button·id="copy-path"·title="Copy·item·path·to·clipboard"><img·src="../../static.files/clipboard-7571035ce49a181d.svg"·width="19"·height="18"·alt="Copy·item·path"></button></h1><span·class="out-of-band"><span·class="since"·title="Stable·since·Rust·version·1.0.0">1.0.0</span>···<a·class="src"·href="../../src/core/slice/iter.rs.html#668">source</a>···<button·id="toggle-all-docs"·title="collapse·all·docs">[<span>&#x2212;</span>]</button></span></div><pre·class="rust·item-decl"><code>pub·struct·SplitMut&lt;'a,·T,·P&gt;<div·class="where">where2 ····<main><div·class="width-limiter"><nav·class="sub"><form·class="search-form"><span></span><div·id="sidebar-button"·tabindex="-1"><a·href="../../alloc/all.html"·title="show·sidebar"></a></div><input·class="search-input"·name="search"·aria-label="Run·search·in·the·documentation"·autocomplete="off"·spellcheck="false"·placeholder="Click·or·press·‘S’·to·search,·‘?’·for·more·options…"·type="search"><div·id="help-button"·tabindex="-1"><a·href="../../help.html"·title="help">?</a></div><div·id="settings-menu"·tabindex="-1"><a·href="../../settings.html"·title="settings"><img·width="22"·height="22"·alt="Change·settings"·src="../../static.files/wheel-7b819b6101059cd0.svg"></a></div></form></nav><section·id="main-content"·class="content"><div·class="main-heading"><h1>Struct·<a·href="../index.html">alloc</a>::<wbr><a·href="index.html">slice</a>::<wbr><a·class="struct"·href="#">SplitMut</a><button·id="copy-path"·title="Copy·item·path·to·clipboard"><img·src="../../static.files/clipboard-7571035ce49a181d.svg"·width="19"·height="18"·alt="Copy·item·path"></button></h1><span·class="out-of-band"><span·class="since"·title="Stable·since·Rust·version·1.0.0">1.0.0</span>···<a·class="src"·href="https://doc.rust-lang.org/1.78.0/src/core/slice/iter.rs.html#668">source</a>···<button·id="toggle-all-docs"·title="collapse·all·docs">[<span>&#x2212;</span>]</button></span></div><pre·class="rust·item-decl"><code>pub·struct·SplitMut&lt;'a,·T,·P&gt;<div·class="where">where
3 ····T:·'a,3 ····T:·'a,
4 ····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·separated4 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(<a·class="primitive"·href="https://doc.rust-lang.org/1.78.0/core/primitive.reference.html">&amp;T</a>)·-&gt;·<a·class="primitive"·href="[·...·truncated·by·diffoscope;·len:·32,·SHA:·63d052a8ced32bf927ffadd7e884c08caf4970e85dfdf6be0e568d49b174da96·...·]/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
5 by·elements·that·match·<code>pred</code>.</p>5 by·elements·that·match·<code>pred</code>.</p>
6 <p>This·struct·is·created·by·the·<a·href="../../core/primitive.slice.html#method.split_mut"·title="method·slice::split_mut"><code>split_mut</code></a>·method·on·<a·href="../../core/primitive.slice.html"·title="primitive·slice">slices</a>.</p>6 <p>This·struct·is·created·by·the·<a·href="https://doc.rust-lang.org/1.78.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.78.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_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"·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">Run</a></div>9 <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"·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">Run</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-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#685-687">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">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-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.78.0/src/core/slice/iter.rs.html#685-687">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
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:·1335,·SHA:·830aaf1241178ec6c5d224a0315745c842b8210ecca96ba675e9608a890e8fd7·...·]/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">where12 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(<a·class="primitive"·href="https://doc.rust-lang.org/1.78.0/core/primitive.reference.html">&amp;T</a>)·-&gt;·<a·class="primitive"·href="[·...·truncated·by·diffoscope;·len:·1551,·SHA:·6b8453715b2e1fc1de2e9209dc3aaa7596b5ce9145528115e8c921ff222990bf·...·]/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
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:·97996a1dbe1daf016f4b5f621a69949576fdf00be3b2bd9331d621f97293ed95·...·]/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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(<a·class="primitive"·href="https://doc.rust-lang.org/1.78.0/core/primitive.reference.html">&amp;T</a>)·-&gt;·<a·class="primitive"·href="[·...·truncated·by·diffoscope;·len:·4402,·SHA:·6345880853a335ba1f3b0d20add9795e279dfe9d6bfa35ed5e2bc074c72059e4·...·]/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.78.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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(B,·Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.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.78.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.7[·...·truncated·by·diffoscope;·len:·3,·SHA:·7b1bd53949b752d143d871408483b5382371b5bc48d195d0c040ec93cfa2748b·...·]/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:·74b709f2c818a4eda5d85ea863eb2d8af72c87564dbab2746e67feafb0cbb9a3·...·]/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.78.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:·d66ed7e195a53e9945339ef1976aed455dcf80228d8e5b7b0c69a64c3983fea1·...·]/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.78.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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(B,·Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/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:·f8bdf1e28866c7668477ab391452c7cfa7fd52cc69b633e782a157931421b39b·...·]/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.78.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:·c264047794019a6dcf05728ba6a6ee1f8f07c7209958b3366ba94546b527ecdc·...·]/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.78.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:·719,·SHA:·49e9c35b6695542f80cf7ab9ab3aebfecf0ae9154c418a036762ba71a0d803c7·...·]/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">where22 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·881,·SHA:·62a09e58325c2dea3c13cb2aef1bbd81e09cea6c62819d4b11b13f92bd3dbfc0·...·]/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
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:·2575,·SHA:·6ba46601ff1c3db9d222766a042ba167d86b6d47a3c3533fde8c8d63dc29f96a·...·]/core/primitive.usize.html">usize</a>&gt;(23 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(<a·class="primitive"·href="https://doc.rust-lang.org/1.78.0/core/primitive.reference.html">&amp;T</a>)·-&gt;·<a·class="primitive"·href="[·...·truncated·by·diffoscope;·len:·3088,·SHA:·57c5a0b8d639b7226f6fa3aec27ded036ac6961be99c127caa96a33e916e55d6·...·]/core/primitive.usize.html">usize</a>&gt;(
24 ····&amp;mut·self24 ····&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.78.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.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title=[·...·truncated·by·diffoscope;·len:·381,·SHA:·88c48923c9b7ea5cc47c1087c60e09656e81d4671c58071ba2bef826335388bc·...·]/core/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:·731,·SHA:·1d80a8ea5861d05518e01eeb903c537b78b04ad4159c3e5cf1597907c264b93e·...·]/core/primitive.usize.html">usize</a><div·class="where">where26 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experiment[·...·truncated·by·diffoscope;·len:·866,·SHA:·945d2d86f0c4c5ca3e3ee3b181d18b2bbea57ee1a5a7efe16c0c915a5bf2c3ad·...·]/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:·579,·SHA:·97df9cdc3f1cc1461e704ebdf0c047ac7c0165f9aec8e9afdc069209b7a15a36·...·]/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.78.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:·741,·SHA:·f3078cc3fddd62af2c1a8814c5854bb49f40b79e4fbc9b3addf5862a72370f82·...·]/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:·2868,·SHA:·9ec21b8470b914406f4216b9bac831bf85cccf58579bd476408d6168be7cd43e·...·]/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.78.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.78.0/cor[·...·truncated·by·diffoscope;·len:·3408,·SHA:·b62c6ed65b31a8b555c142d9d15f3ce30e5c76ad2630a0e5a9b13cfd478c6eee·...·]/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.78.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"><a·class="src·rightside"·href="../../src/core/iter/tra[·...·truncated·by·diffoscope;·len:·584,·SHA:·fd3e570373eb5121d35d7e22cdd5dd5fbf7183ee80147135a591fd1285174e82·...·]/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.78.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"><a·class="src·rightside"·hr[·...·truncated·by·diffoscope;·len:·746,·SHA:·f1f70d650c102c8658e13890c7dbfc87418f07e7b522246fb579ec434ef64f7c·...·]/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.78.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:·1017,·SHA:·c0f5f8cfd297e1678ac0ee2fd847fb6f0577665ac326e8e2e9d6414a710c8f98·...·]/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.78.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.78.0/core/iter/traits/it[·...·truncated·by·diffoscope;·len:·1233,·SHA:·f677df2d893dfe0dc1a9d31ebb0ba71a346d265781813e0d664d3f18369b6163·...·]/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.78.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:·c1b5e692e89c9c809075ee8ee72fb15a9ec46c075b08450e1f707d672a224750·...·]/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.78.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:·98627729f77dcf1c9d258f343354ba600b7134c6b3929080f231e8de7155b70b·...·]/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.78.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.78.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.78.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"><a·class="src·rightside"·href="../../src/core/i[·...·truncated·by·diffoscope;·len:·267,·SHA:·1764c9d6d2e39e1367ae2111c28ab846e66ecf12617fbff35e0132e82e5c8b13·...·]/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.78.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"><a·class="src·rights[·...·truncated·by·diffoscope;·len:·375,·SHA:·58419346f92e1709dadb70cc3cf356e3cd27972451bdc6b4fc4267e6f7e8bdae·...·]/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.78.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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::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:·fb4c9589a16c7b6d697c109d1193d2f1e763e5dd967101c2fd92b32416972229·...·]/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.78.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:·98f6effefa44d759c249143d83623f0055d937382bfc398b7e1f5e92cd413657·...·]/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.78.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:·658,·SHA:·e4449b6c00d036dd30444817045eddaf2697443d65789bb5c0b585ed1bc77702·...·]/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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·820,·SHA:·a664bbcbc0891663662e4eb7b4394d0fcd72e568136fc4d34097fea242cc32e7·...·]/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.78.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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·140,·SHA:·752f473b57e7444ebfddf5ea7fd40a332e83ec55524a6c31b5ee0f82a5dea819·...·]/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"><a·class="src·rightside"·href="../../src/core/iter[·...·truncated·by·diffoscope;·len:·285,·SHA:·738ce0440ff568829f40d141e38e2c0da2fd05d2b73d1a574be0ed9baa32e827·...·]/core/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.78.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"><a·class="src·rightside[·...·truncated·by·diffoscope;·len:·393,·SHA:·2e2aa7c9c9c087e7b346da376749064ab8c1894795a2f0a0f646cdc8c7bea997·...·]/core/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.78.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:·767,·SHA:·da0fc5bc95a3398627e0c5836423b719ccea45d351e21ddaa96f793f67f9c6de·...·]/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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·956,·SHA:·faba0521e870dbbd26d466fadba3522e7d29013a9b86376fffafffac11a57e0e·...·]/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.78.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"><a·class="src·rightside"·href="../../src/core/ite[·...·truncated·by·diffoscope;·len:·264,·SHA:·e3fa7ab43c6353bc2216a22d7010c41a8ab50d273a128d15d0eff050c058993a·...·]/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.78.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"><a·class="src·rightsid[·...·truncated·by·diffoscope;·len:·372,·SHA:·03eea0861575eb80d3f7a87a3ba747adb1a33fe7e9ce72aa2172e7a287c63a94·...·]/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.78.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.78.0/core/iter/adapte[·...·truncated·by·diffoscope;·len:·175,·SHA:·16fe7225bf05b478e2828b347c3d23ded9a22f89d8887a2c65d9f7b3faf1b0e7·...·]/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"><a·class="src·rightside"·href="../../src/core/it[·...·truncated·by·diffoscope;·len:·294,·SHA:·c0aee2077af6a4f81ed47e37c84a75b5f9b941875509fbe0b3d352866f825f45·...·]/core/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.78.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"><a·class="src·rightsi[·...·truncated·by·diffoscope;·len:·402,·SHA:·7689a974f800fd069d1b4453ef62d6d6ad1b654462d624d36e3672051d502030·...·]/core/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.78.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:·922,·SHA:·5220bbb4db3c3cd3d7ca7c27520f44f04fe367ee2f0f407fb1d50c0a327a2f99·...·]/core/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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·1138,·SHA:·f6ae06b7de8e94df014341c5cf589a5e4a1298367b2ef7a968ec499c5170a70e·...·]/core/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.78.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:·39eeddf219b211245393e51a591d5064c740fa9be49d88883d8a6474679741ad·...·]/core/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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·1058,·SHA:·b390dbdda8d7e93604b5ecd906a93efd03fe19bdaf41cf12893fd361bf974307·...·]/core/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.78.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:·851,·SHA:·ad2e090d21a034b7c3836ed38a686f4c483f9a929132fef846d48271f749a79c·...·]/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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·1067,·SHA:·415d32e1211c35d3bb405de1d6e51c2102c14cadc3333894f063148dbe0b1f69·...·]/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:·525,·SHA:·6471f48fecadc56edf21fc04794b884b96ce06d339c715e410f5a906e028bc28·...·]/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.78.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:·687,·SHA:·7f5256104c35c5948a2cb42b55f3048c9d2887e48a4a8226537a284f959c562a·...·]/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.78.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"><a·class="src·rightside"·href="../../src/core/iter/traits/[·...·truncated·by·diffoscope;·len:·284,·SHA:·aee83f38f8c40848e159b12a8faa43b9dadf589fe974632a1f15ce2a15834071·...·]/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.78.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"><a·class="src·rightside"·href="[·...·truncated·by·diffoscope;·len:·392,·SHA:·4e7da68f7be2622ef173653eca78d58e1f202b544a2e6abd14d8335c298c93a7·...·]/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.78.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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(<a·class="primitive"·href="https://doc.rust-lang.org/1.78.0/core/primitive.reference.html">&amp;mut·St</a>,·Self::<a·class="associatedty[·...·truncated·by·diffoscope;·len:·449,·SHA:·f12c268a8a8111b9e7126ad78bf5523a63733caa63d187c4fe792309ea41acdf·...·]/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:·459,·SHA:·b825570d9672670eacd8828b3abec12cd1c35433286857de28f5ea8d5e300e03·...·]/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.78.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.78.0/core/iter/trai[·...·truncated·by·diffoscope;·len:·594,·SHA:·02960742fa7892efaa08f289ce85865fc5efb6a4cd138c22e3566ca6fc727d78·...·]/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.78.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.78.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:·9b6a337a3ad68c2a987b52450c153f87a04a8ed9e83603d26077fe6e70d61edf·...·]/core/iter/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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·976,·SHA:·2a9182f6fe88e0b8a9b1ae1f46cace940cc0b8736033c354c0f0ccbf1c196e7a·...·]/core/iter/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.78.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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;[Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtyp[·...·truncated·by·diffoscope;·len:·135,·SHA:·0b06a6094d42ccbc8bce5b01c4383961fe7f1967f05e4c9f1ff33e71e425fb26·...·]/core/primitive.array.html">N</a>])·-&gt;·R,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iter_map_windows</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/87155">#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.78.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"><a·class="src·rightside"·href="../../src/core/iter/[·...·truncated·by·diffoscope;·len:·250,·SHA:·e355ddd0f04b2470ee915aec3ad97857be56b95e6a1f3d733d6c477453f4cf0d·...·]/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.78.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"><a·class="src·rightside"[·...·truncated·by·diffoscope;·len:·358,·SHA:·d91b2ab18e0ce069e262cf523c6ef961f56eecad042ea1e9bcefe33cff28fc8f·...·]/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:·583,·SHA:·b7d7d6125e8980756a2636a6b6e01600057c98a027dcf7d267b1f61538a7b6b0·...·]/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.78.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.78.0/core/op[·...·truncated·by·diffoscope;·len:·745,·SHA:·424783f22102f4446d3ad4d362b1aafdb7531fa777213f97ee138aa878f67bd1·...·]/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.78.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:·676,·SHA:·ae75f35cafbae1e0e695226baca09b0bec6e4a0ed5656a83c3357b29fb00442d·...·]/core/primitive.reference.html">&amp;mut·Self</a><div·class="where">where74 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·838,·SHA:·9b4fd8df7f41e9a76fd4cfca0a233b74b9bd27c3fe8228248abc3f940425a3e3·...·]/core/primitive.reference.html">&amp;mut·Self</a><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:·319,·SHA:·bbb653fcb1f5ad46e04905bf78a76b9dd63ea5d49a2d8cd5b7b36efbb0f7e105·...·]/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.78.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.78.0/core/it[·...·truncated·by·diffoscope;·len:·427,·SHA:·ecfaaac5d1d10c1bc4fcee9a050af0a268bee0b528c2d8ea4e9774440bd8a279·...·]/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.78.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.78.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:·e5d524e874326d0b9b733f5ee809c6595cde869afab0cc3d4ba8454093f420da·...·]/core/primitive.reference.html">&amp;mut·E</a><div·class="where">where77 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.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.78.0/core/iter/tr[·...·truncated·by·diffoscope;·len:·728,·SHA:·01937c2dc314c259495665570ae249c94b4a5b0719718f5f1188e6fc64ecf487·...·]/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.78.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.78.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:·744,·SHA:·a7446142ab67c3f20d866315fbe6cb9c57cd4af012812d6dd19d5061aee6e97b·...·]/core/primitive.tuple.html">(B,·B)</a><div·class="where">where79 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experiment[·...·truncated·by·diffoscope;·len:·879,·SHA:·e773b2222c92d001e295030cb47a780ab0c1132d7fc8e9e3a98de4f532e6c520·...·]/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.78.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.78.0/core/default/trait.Default.html"·title="trait·core::default::Default">Default</a>·+·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/collect/trait.Extend.html"·title="trait·core::iter::traits::collec[·...·truncated·by·diffoscope;·len:·95,·SHA:·8b3be1d0042cae0550f865faf5849221240bdf04eb1b2107605b72d48c3ad29c·...·]/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:·5a1bcc1ddfc5fccf50d61bf2b8879dae247aa12c0b23ba2f437fd2a345cabac7·...·]/core/primitive.usize.html">usize</a><div·class="where">where82 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·995,·SHA:·bec3765fdab56713186e2454cd84738b5b28e3280a2f3d5a25cefdbc3089b520·...·]/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.78.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>·+·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/double_ended/trait.DoubleEndedIterator.html"·title="trait·core::iter::trai[·...·truncated·by·diffoscope;·len:·132,·SHA:·e5b2cf5f56946ede1e190ed09879c5821e2de04cf8e5d145142eeb40c6340982·...·]/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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(<a·class="primitive"·href="https://doc.rust-lang.org/1.78.0/core/primitive.reference.html">&amp;T</a>)·-&gt;·<a·class="primitive"·href="[·...·truncated·by·diffoscope;·len:·32,·SHA:·63d052a8ced32bf927ffadd7e884c08caf4970e85dfdf6be0e568d49b174da96·...·]/core/primitive.bool.html">bool</a>,</div></h4></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:·97056c44eac6a0f986fb2c8edec37302cc06edf44a6c6f7153a5d8623d8d6c0d·...·]/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.78.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:·0c224636c18baa273f69de21f90083317f2ea0b7367a3f0d0f1c0ace55a36f79·...·]/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.78.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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·135,·SHA:·51ff5f5c7ebd8440623ea71b125c5a5837e809e308fe1a13fbe19cddb941dbd9·...·]/core/primitive.bool.html">bool</a>,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iter_is_partitioned</code>&nbsp;<a·href="https://github.com/rust-lang/rust/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:·6f406a351b93047f56fa70265a6bf28ec6874f75cd6cc5a39d51c7af462f2992·...·]/core/iter/traits/iterator/trait.Iterator.html#method.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.78.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:·2c74873f4e5ba70004a1c7edd1cc3f9e2d91271295dd1591e2d26848df4c02ba·...·]/core/iter/traits/iterator/trait.Iterator.html#method.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.78.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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(B,·Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.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.78.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:·eecdce021399d206eb3ef5af12ee7663b4eb0dca55b0f411c7fa66f605b6b2e2·...·]/core/iter/traits/iterator/trait.Iterator.html#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.78.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:·52912e82c4b0a760d06f77eb4ee3a59ba70dd76cb532954900c73ae94c652674·...·]/core/iter/traits/iterator/trait.Iterator.html#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.78.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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.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.78.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.78.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"><a·class="src·rightside"·href="../../src/core/iter[·...·truncated·by·diffoscope;·len:·130,·SHA:·75c0150024fe6cdc702d7337508ab57600248490dd062768204ddb064c9a1b8b·...·]/core/iter/traits/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.78.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"><a·class="src·rightside[·...·truncated·by·diffoscope;·len:·211,·SHA:·924e062acd8127e8d6158162219ee5d57a941854e14063d21d7768edae549431·...·]/core/iter/traits/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.78.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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(B,·Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::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:·dbe3a08fe63abd47570741e71208c31aaf51152feac5917db07665a1f56bb3e3·...·]/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.78.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:·b60215068a6d9721be05f81098c51167d7138c4042f140cad42f77c4df43f597·...·]/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.78.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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·352,·SHA:·e7c3c296abe2c0a183967153e4ae7fd50bafa2ae7088e3e78b3b48fee253adc6·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::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:·a9dce8bb557b5a11426bf2ffcbd5eea7c6c870833e3ee5bb072dcaaa11687b0c·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_reduce"·class="fn">try_reduce</a>&lt;F,·R&gt;(104 operation.·<a·href="https://doc.rust-lang.org/1.78.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:·7a18fdd041b1a001b4a8feb289ee127fd9240232239269eb35dc3b8f74783ec9·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_reduce"·class="fn">try_reduce</a>&lt;F,·R&gt;(
105 ····&amp;mut·self,105 ····&amp;mut·self,
106 ····f:·F106 ····f:·F
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.78.0/core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&gt;::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/ops/try_trait/trait.Try.html#associatedtype.Residual"·title="type[·...·truncated·by·diffoscope;·len:·754,·SHA:·6fb4dfdb6b4da68921c1e7f8b75d99cf293d58318d684a840254ce9576957bea·...·]/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.78.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:·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:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·140,·SHA:·c27972e6fa3464c9476eaa185e8657edb6bb294f148403f3d079285294a9f909·...·]/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·=·Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;,110 ····R:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.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.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;,
111 ····&lt;R·as·<a·class="trait"·href="../../core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&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·the111 ····&lt;R·as·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&gt;::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/ops/try_trait/trait.Try.html#associatedtype.Residual"·title="type[·...·truncated·by·diffoscope;·len:·412,·SHA:·22b8cbb007e5cce82b9d13a65bfa56aa8d83c32541fac25f4d9b3857b0540908·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;&gt;,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iterator_try_reduce</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/87053">#87053</a>)</span></div></span><div·class='docblock'>Reduces·the·elements·to·a·single·one·by·repeatedly·applying·a·reducing·operation.·If·the
112 closure·returns·a·failure,·the·failure·is·propagated·back·to·the·caller·immediately.·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.try_reduce">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.all"·class="method·trait-impl"><a·class="src·rightside"·href="../../src/core/iter/tr[·...·truncated·by·diffoscope;·len:·272,·SHA:·97959736d897a01242f49f2e45854ab874bf0c9bbe30acad9a49eb73169e457c·...·]/core/primitive.bool.html">bool</a><div·class="where">where112 closure·returns·a·failure,·the·failure·is·propagated·back·to·the·caller·immediately.·<a·href="https://doc.rust-lang.org/1.78.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"><a·class="src·rightside"·h[·...·truncated·by·diffoscope;·len:·380,·SHA:·29c4004d4d8b0c8c9dfe9023f8b2c5ef801d9dc4688893035d182c1ae774c453·...·]/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.78.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:·733,·SHA:·9bb9f0199d90f78ad65c59dbe67a1c751cd5a681130a03bef3b1e8ed907a3bba·...·]/core/primitive.bool.html">bool</a><div·class="where">where114 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·922,·SHA:·f4fd532c280e18f28bd6dda6c2a129e2e92114b67f27235bb5fd39f725be9c43·...·]/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.78.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:·860,·SHA:·6a94ae33b82eb12a91660811a8ab9d243468d885c07ac766a2507d25a4e7ee62·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;<div·class="where">where116 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·1076,·SHA:·2dd9de8adaee4a5ee96501d9a58bfac2fea00ba8d78b834bfca29949b3afe18b·...·]/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.78.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>(&amp;Self::<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:·21d7086b3ce0092e3f7a6a41174339bbd8724e7d186158db4db3385a73d94e8e·...·]/core/option/enum.Option.html"·title="enum·core::option::Option">Option</a>&lt;B&gt;<div·class="where">where118 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·1051,·SHA:·ecc0b8fccd861464760f9ae047ff6ab98c91a1db010cb5fa59a8c2ab883db7c4·...·]/core/option/enum.Option.html"·title="enum·core::option::Option">Option</a>&lt;B&gt;<div·class="where">where
119 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,119 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.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>(Self::<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·returns120 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·130,·SHA:·130a13019dc175d02304b4f550157e2f13ac15c2f25a979c74161d10b146ab89·...·]/core/option/enum.Option.html"·title="enum·core::option::Option">Option</a>&lt;B&gt;,</div></h4></section></summary><div·class='docblock'>Applies·function·to·the·elements·of·iterator·and·returns
121 the·first·non-none·result.·<a·href="../../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:·ac4da3337aac1ec10038e246be9cb719eeb5af1acc709f5a6a25b91900c56f53·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_find"·class="fn">try_find</a>&lt;F,·R&gt;(121 the·first·non-none·result.·<a·href="https://doc.rust-lang.org/1.78.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:·8ced1b10e78750774c5c8ed995ed83dcd13983aa75d329acf8069da106ab9f4a·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_find"·class="fn">try_find</a>&lt;F,·R&gt;(
122 ····&amp;mut·self,122 ····&amp;mut·self,
123 ····f:·F123 ····f:·F
124 )·-&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">where124 )·-&gt;·&lt;&lt;R·as·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&gt;::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/ops/try_trait/trait.Try.html#associatedtype.Residual"·title="type[·...·truncated·by·diffoscope;·len:·626,·SHA:·95f9831257b68862cbcbf54f0ad2ff4e597a4c9f763112d1da8a0897dadcf872·...·]/core/ops/try_trait/trait.Residual.html#associatedtype.TryType"·title="type·core::ops::try_trait::Residual::TryType">TryType</a><div·class="where">where
125 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,125 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.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;·R,126 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·R,
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.78.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.78.0/core/primitive.bool.html">bool</a>&gt;,
Max diff block lines reached; 80351/294241 bytes (27.31%) of diff not shown.
263 KB
./usr/share/doc/rust-web-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.write(`<link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/SourceSerif4-Regular-46f98efaafac5295.ttf.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/FiraSans-Regular-018c141bf0843ffd.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/FiraSans-Medium-8f9a781e4970d388.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/SourceCodePro-Regular-562dcc5011b6de7d.ttf.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/SourceCodePro-Semibold-d899c5a5c4aeb14a.ttf.woff2">`)</script><link·rel="stylesheet"·href="../../static.files/normalize-76eba96aa4d2e634.css"><link·rel="stylesheet"·href="../../static.files/rustdoc-35f9e32502181f1e.css"><meta·name="rustdoc-vars"·data-root-path="../../"·data-static-root-path="../../static.files/"·data-current-crate="alloc"·data-themes=""·data-resource-suffix="1.78.0"·data-rustdoc-version="1.78.0"·data-channel="1.78.0"·data-search-js="search-42d8da7a6b9792c2.js"·data-settings-js="settings-4313503d2e1961c2.js"·><script·src="../../static.files/storage-4c98445ec4002617.js"></script><script·defer·src="sidebar-items1.78.0.js"></script><script·defer·src="../../static.files/main-12cf3b4f4f9dc36d.js"></script><noscript><link·rel="stylesheet"·href="../../static.files/noscript-04d5337699b92874.css"></noscript><link·rel="alternate·icon"·type="image/png"·href="../../static.files/favicon-16x16-8b506e7a72182f1c.png"><link·rel="alternate·icon"·type="image/png"·href="../../static.files/favicon-32x32-422f7d1d52889060.png"><link·rel="icon"·type="image/svg+xml"·href="../../static.files/favicon-2c020d218678b618.svg"></head><body·class="rustdoc·struct"><!--[if·lte·IE·11]><div·class="warning">This·old·browser·is·unsupported·and·will·most·likely·display·funky·things.</div><![endif]--><nav·class="mobile-topbar"><button·class="sidebar-menu-toggle"·title="show·sidebar"></button><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-151179464ae7ed46.svg"·alt=""></a></nav><nav·class="sidebar"><div·class="sidebar-crate"><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-151179464ae7ed46.svg"·alt="logo"></a><h2><a·href="../../alloc/index.html">alloc</a><span·class="version">1.78.0</span></h2></div><h2·class="location"><a·href="#">SplitN</a></h2><div·class="sidebar-elems"><section><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">Debug</a></li><li><a·href="#impl-FusedIterator-for-SplitN%3C'a,+T,+P%3E">FusedIterator</a></li><li><a·href="#impl-Iterator-for-SplitN%3C'a,+T,+P%3E">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">Freeze</a></li><li><a·href="#impl-RefUnwindSafe-for-SplitN%3C'a,+T,+P%3E">RefUnwindSafe</a></li><li><a·href="#impl-Send-for-SplitN%3C'a,+T,+P%3E">Send</a></li><li><a·href="#impl-Sync-for-SplitN%3C'a,+T,+P%3E">Sync</a></li><li><a·href="#impl-Unpin-for-SplitN%3C'a,+T,+P%3E">Unpin</a></li><li><a·href="#impl-UnwindSafe-for-SplitN%3C'a,+T,+P%3E">UnwindSafe</a></li></ul><h3><a·href="#blanket-implementations">Blanket·Implementations</a></h3><ul·class="block·blanket-implementation"><li><a·href="#impl-Any-for-T">Any</a></li><li><a·href="#impl-Borrow%3CT%3E-for-T">Borrow&lt;T&gt;</a></li><li><a·href="#impl-BorrowMut%3CT%3E-for-T">BorrowMut&lt;T&gt;</a></li><li><a·href="#impl-From%3CT%3E-for-T">From&lt;T&gt;</a></li><li><a·href="#impl-Into%3CU%3E-for-T">Into&lt;U&gt;</a></li><li><a·href="#impl-IntoIterator-for-I">IntoIterator</a></li><li><a·href="#impl-TryFrom%3CU%3E-for-T">TryFrom&lt;U&gt;</a></li><li><a·href="#impl-TryInto%3CU%3E-for-T">TryInto&lt;U&gt;</a></li></ul></section><h2><a·href="index.html">In·alloc::slice</a></h2></div></nav><div·class="sidebar-resizer"></div>1 <!DOCTYPE·html><html·lang="en"><head><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.write(`<link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/SourceSerif4-Regular-46f98efaafac5295.ttf.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/FiraSans-Regular-018c141bf0843ffd.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/FiraSans-Medium-8f9a781e4970d388.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/SourceCodePro-Regular-562dcc5011b6de7d.ttf.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/SourceCodePro-Semibold-d899c5a5c4aeb14a.ttf.woff2">`)</script><link·rel="stylesheet"·href="../../static.files/normalize-76eba96aa4d2e634.css"><link·rel="stylesheet"·href="../../static.files/rustdoc-35f9e32502181f1e.css"><meta·name="rustdoc-vars"·data-root-path="../../"·data-static-root-path="../../static.files/"·data-current-crate="alloc"·data-themes=""·data-resource-suffix="1.78.0"·data-rustdoc-version="1.78.0"·data-channel="1.78.0"·data-search-js="search-42d8da7a6b9792c2.js"·data-settings-js="settings-4313503d2e1961c2.js"·><script·src="../../static.files/storage-4c98445ec4002617.js"></script><script·defer·src="sidebar-items1.78.0.js"></script><script·defer·src="../../static.files/main-12cf3b4f4f9dc36d.js"></script><noscript><link·rel="stylesheet"·href="../../static.files/noscript-04d5337699b92874.css"></noscript><link·rel="alternate·icon"·type="image/png"·href="../../static.files/favicon-16x16-8b506e7a72182f1c.png"><link·rel="alternate·icon"·type="image/png"·href="../../static.files/favicon-32x32-422f7d1d52889060.png"><link·rel="icon"·type="image/svg+xml"·href="../../static.files/favicon-2c020d218678b618.svg"></head><body·class="rustdoc·struct"><!--[if·lte·IE·11]><div·class="warning">This·old·browser·is·unsupported·and·will·most·likely·display·funky·things.</div><![endif]--><nav·class="mobile-topbar"><button·class="sidebar-menu-toggle"·title="show·sidebar"></button><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-151179464ae7ed46.svg"·alt=""></a></nav><nav·class="sidebar"><div·class="sidebar-crate"><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-151179464ae7ed46.svg"·alt="logo"></a><h2><a·href="../../alloc/index.html">alloc</a><span·class="version">1.78.0</span></h2></div><h2·class="location"><a·href="#">SplitN</a></h2><div·class="sidebar-elems"><section><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">Debug</a></li><li><a·href="#impl-FusedIterator-for-SplitN%3C'a,+T,+P%3E">FusedIterator</a></li><li><a·href="#impl-Iterator-for-SplitN%3C'a,+T,+P%3E">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">Freeze</a></li><li><a·href="#impl-RefUnwindSafe-for-SplitN%3C'a,+T,+P%3E">RefUnwindSafe</a></li><li><a·href="#impl-Send-for-SplitN%3C'a,+T,+P%3E">Send</a></li><li><a·href="#impl-Sync-for-SplitN%3C'a,+T,+P%3E">Sync</a></li><li><a·href="#impl-Unpin-for-SplitN%3C'a,+T,+P%3E">Unpin</a></li><li><a·href="#impl-UnwindSafe-for-SplitN%3C'a,+T,+P%3E">UnwindSafe</a></li></ul><h3><a·href="#blanket-implementations">Blanket·Implementations</a></h3><ul·class="block·blanket-implementation"><li><a·href="#impl-Any-for-T">Any</a></li><li><a·href="#impl-Borrow%3CT%3E-for-T">Borrow&lt;T&gt;</a></li><li><a·href="#impl-BorrowMut%3CT%3E-for-T">BorrowMut&lt;T&gt;</a></li><li><a·href="#impl-From%3CT%3E-for-T">From&lt;T&gt;</a></li><li><a·href="#impl-Into%3CU%3E-for-T">Into&lt;U&gt;</a></li><li><a·href="#impl-IntoIterator-for-I">IntoIterator</a></li><li><a·href="#impl-TryFrom%3CU%3E-for-T">TryFrom&lt;U&gt;</a></li><li><a·href="#impl-TryInto%3CU%3E-for-T">TryInto&lt;U&gt;</a></li></ul></section><h2><a·href="index.html">In·alloc::slice</a></h2></div></nav><div·class="sidebar-resizer"></div>
2 ····<main><div·class="width-limiter"><nav·class="sub"><form·class="search-form"><span></span><div·id="sidebar-button"·tabindex="-1"><a·href="../../alloc/all.html"·title="show·sidebar"></a></div><input·class="search-input"·name="search"·aria-label="Run·search·in·the·documentation"·autocomplete="off"·spellcheck="false"·placeholder="Click·or·press·‘S’·to·search,·‘?’·for·more·options…"·type="search"><div·id="help-button"·tabindex="-1"><a·href="../../help.html"·title="help">?</a></div><div·id="settings-menu"·tabindex="-1"><a·href="../../settings.html"·title="settings"><img·width="22"·height="22"·alt="Change·settings"·src="../../static.files/wheel-7b819b6101059cd0.svg"></a></div></form></nav><section·id="main-content"·class="content"><div·class="main-heading"><h1>Struct·<a·href="../index.html">alloc</a>::<wbr><a·href="index.html">slice</a>::<wbr><a·class="struct"·href="#">SplitN</a><button·id="copy-path"·title="Copy·item·path·to·clipboard"><img·src="../../static.files/clipboard-7571035ce49a181d.svg"·width="19"·height="18"·alt="Copy·item·path"></button></h1><span·class="out-of-band"><span·class="since"·title="Stable·since·Rust·version·1.0.0">1.0.0</span>···<a·class="src"·href="../../src/core/slice/iter.rs.html#1141">source</a>···<button·id="toggle-all-docs"·title="collapse·all·docs">[<span>&#x2212;</span>]</button></span></div><pre·class="rust·item-decl"><code>pub·struct·SplitN&lt;'a,·T,·P&gt;<div·class="where">where2 ····<main><div·class="width-limiter"><nav·class="sub"><form·class="search-form"><span></span><div·id="sidebar-button"·tabindex="-1"><a·href="../../alloc/all.html"·title="show·sidebar"></a></div><input·class="search-input"·name="search"·aria-label="Run·search·in·the·documentation"·autocomplete="off"·spellcheck="false"·placeholder="Click·or·press·‘S’·to·search,·‘?’·for·more·options…"·type="search"><div·id="help-button"·tabindex="-1"><a·href="../../help.html"·title="help">?</a></div><div·id="settings-menu"·tabindex="-1"><a·href="../../settings.html"·title="settings"><img·width="22"·height="22"·alt="Change·settings"·src="../../static.files/wheel-7b819b6101059cd0.svg"></a></div></form></nav><section·id="main-content"·class="content"><div·class="main-heading"><h1>Struct·<a·href="../index.html">alloc</a>::<wbr><a·href="index.html">slice</a>::<wbr><a·class="struct"·href="#">SplitN</a><button·id="copy-path"·title="Copy·item·path·to·clipboard"><img·src="../../static.files/clipboard-7571035ce49a181d.svg"·width="19"·height="18"·alt="Copy·item·path"></button></h1><span·class="out-of-band"><span·class="since"·title="Stable·since·Rust·version·1.0.0">1.0.0</span>···<a·class="src"·href="https://doc.rust-lang.org/1.78.0/src/core/slice/iter.rs.html#1141">source</a>···<button·id="toggle-all-docs"·title="collapse·all·docs">[<span>&#x2212;</span>]</button></span></div><pre·class="rust·item-decl"><code>pub·struct·SplitN&lt;'a,·T,·P&gt;<div·class="where">where
3 ····T:·'a,3 ····T:·'a,
4 ····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·predicate4 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(<a·class="primitive"·href="https://doc.rust-lang.org/1.78.0/core/primitive.reference.html">&amp;T</a>)·-&gt;·<a·class="primitive"·href="[·...·truncated·by·diffoscope;·len:·32,·SHA:·63d052a8ced32bf927ffadd7e884c08caf4970e85dfdf6be0e568d49b174da96·...·]/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
5 function,·limited·to·a·given·number·of·splits.</p>5 function,·limited·to·a·given·number·of·splits.</p>
6 <p>This·struct·is·created·by·the·<a·href="../../core/primitive.slice.html#method.splitn"·title="method·slice::splitn"><code>splitn</code></a>·method·on·<a·href="../../core/primitive.slice.html"·title="primitive·slice">slices</a>.</p>6 <p>This·struct·is·created·by·the·<a·href="https://doc.rust-lang.org/1.78.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.78.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>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>);</code></pre><a·class="test-arrow"·target="_blank"·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+iter+=+slice.splitn(2,+%7Cnum%7C+*num+%25+3+==+0);%0A%7D&amp;edition=2021">Run</a></div>9 <span·class="kw">let·</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>);</code></pre><a·class="test-arrow"·target="_blank"·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+iter+=+slice.splitn(2,+%7Cnum%7C+*num+%25+3+==+0);%0A%7D&amp;edition=2021">Run</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-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#1156-1158">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">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-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.78.0/src/core/slice/iter.rs.html#1156-1158">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
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:·1307,·SHA:·475ec1e9521127d8f2d2b45fd65dea095cf49f6cf4793d81dbfbada4aea6b938·...·]/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">where12 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(<a·class="primitive"·href="https://doc.rust-lang.org/1.78.0/core/primitive.reference.html">&amp;T</a>)·-&gt;·<a·class="primitive"·href="[·...·truncated·by·diffoscope;·len:·1523,·SHA:·c415f9bb2cc7fdc6a626f6aac15fcc332faf07684cf3c89ad46bd9203d611f98·...·]/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
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:·2569,·SHA:·682449ea009718d9c2a7c4d7eec2ff6bc8f200b092003543356e2d04dcd3c161·...·]/core/primitive.usize.html">usize</a>&gt;(13 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(<a·class="primitive"·href="https://doc.rust-lang.org/1.78.0/core/primitive.reference.html">&amp;T</a>)·-&gt;·<a·class="primitive"·href="[·...·truncated·by·diffoscope;·len:·3082,·SHA:·a1c1bcd9b7c41538d9d3f158e5261648ce12706e93412c589b5935051fc1c09c·...·]/core/primitive.usize.html">usize</a>&gt;(
14 ····&amp;mut·self14 ····&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.78.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.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title=[·...·truncated·by·diffoscope;·len:·381,·SHA:·88c48923c9b7ea5cc47c1087c60e09656e81d4671c58071ba2bef826335388bc·...·]/core/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:·731,·SHA:·1d80a8ea5861d05518e01eeb903c537b78b04ad4159c3e5cf1597907c264b93e·...·]/core/primitive.usize.html">usize</a><div·class="where">where16 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experiment[·...·truncated·by·diffoscope;·len:·866,·SHA:·945d2d86f0c4c5ca3e3ee3b181d18b2bbea57ee1a5a7efe16c0c915a5bf2c3ad·...·]/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:·579,·SHA:·97df9cdc3f1cc1461e704ebdf0c047ac7c0165f9aec8e9afdc069209b7a15a36·...·]/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.78.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:·741,·SHA:·f3078cc3fddd62af2c1a8814c5854bb49f40b79e4fbc9b3addf5862a72370f82·...·]/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:·2868,·SHA:·9ec21b8470b914406f4216b9bac831bf85cccf58579bd476408d6168be7cd43e·...·]/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.78.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.78.0/cor[·...·truncated·by·diffoscope;·len:·3408,·SHA:·b62c6ed65b31a8b555c142d9d15f3ce30e5c76ad2630a0e5a9b13cfd478c6eee·...·]/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.78.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"><a·class="src·rightside"·href="../../src/core/iter/tra[·...·truncated·by·diffoscope;·len:·584,·SHA:·fd3e570373eb5121d35d7e22cdd5dd5fbf7183ee80147135a591fd1285174e82·...·]/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.78.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"><a·class="src·rightside"·hr[·...·truncated·by·diffoscope;·len:·746,·SHA:·f1f70d650c102c8658e13890c7dbfc87418f07e7b522246fb579ec434ef64f7c·...·]/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.78.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:·1017,·SHA:·c0f5f8cfd297e1678ac0ee2fd847fb6f0577665ac326e8e2e9d6414a710c8f98·...·]/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.78.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.78.0/core/iter/traits/it[·...·truncated·by·diffoscope;·len:·1233,·SHA:·f677df2d893dfe0dc1a9d31ebb0ba71a346d265781813e0d664d3f18369b6163·...·]/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.78.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:·c1b5e692e89c9c809075ee8ee72fb15a9ec46c075b08450e1f707d672a224750·...·]/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.78.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:·98627729f77dcf1c9d258f343354ba600b7134c6b3929080f231e8de7155b70b·...·]/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.78.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.78.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.78.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"><a·class="src·rightside"·href="../../src/core/i[·...·truncated·by·diffoscope;·len:·267,·SHA:·1764c9d6d2e39e1367ae2111c28ab846e66ecf12617fbff35e0132e82e5c8b13·...·]/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.78.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"><a·class="src·rights[·...·truncated·by·diffoscope;·len:·375,·SHA:·58419346f92e1709dadb70cc3cf356e3cd27972451bdc6b4fc4267e6f7e8bdae·...·]/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.78.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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::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:·fb4c9589a16c7b6d697c109d1193d2f1e763e5dd967101c2fd92b32416972229·...·]/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.78.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:·98f6effefa44d759c249143d83623f0055d937382bfc398b7e1f5e92cd413657·...·]/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.78.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:·658,·SHA:·e4449b6c00d036dd30444817045eddaf2697443d65789bb5c0b585ed1bc77702·...·]/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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·820,·SHA:·a664bbcbc0891663662e4eb7b4394d0fcd72e568136fc4d34097fea242cc32e7·...·]/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.78.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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·140,·SHA:·752f473b57e7444ebfddf5ea7fd40a332e83ec55524a6c31b5ee0f82a5dea819·...·]/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"><a·class="src·rightside"·href="../../src/core/iter[·...·truncated·by·diffoscope;·len:·285,·SHA:·738ce0440ff568829f40d141e38e2c0da2fd05d2b73d1a574be0ed9baa32e827·...·]/core/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.78.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"><a·class="src·rightside[·...·truncated·by·diffoscope;·len:·393,·SHA:·2e2aa7c9c9c087e7b346da376749064ab8c1894795a2f0a0f646cdc8c7bea997·...·]/core/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.78.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:·767,·SHA:·da0fc5bc95a3398627e0c5836423b719ccea45d351e21ddaa96f793f67f9c6de·...·]/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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·956,·SHA:·faba0521e870dbbd26d466fadba3522e7d29013a9b86376fffafffac11a57e0e·...·]/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.78.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"><a·class="src·rightside"·href="../../src/core/ite[·...·truncated·by·diffoscope;·len:·264,·SHA:·e3fa7ab43c6353bc2216a22d7010c41a8ab50d273a128d15d0eff050c058993a·...·]/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.78.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"><a·class="src·rightsid[·...·truncated·by·diffoscope;·len:·372,·SHA:·03eea0861575eb80d3f7a87a3ba747adb1a33fe7e9ce72aa2172e7a287c63a94·...·]/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.78.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.78.0/core/iter/adapte[·...·truncated·by·diffoscope;·len:·175,·SHA:·16fe7225bf05b478e2828b347c3d23ded9a22f89d8887a2c65d9f7b3faf1b0e7·...·]/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"><a·class="src·rightside"·href="../../src/core/it[·...·truncated·by·diffoscope;·len:·294,·SHA:·c0aee2077af6a4f81ed47e37c84a75b5f9b941875509fbe0b3d352866f825f45·...·]/core/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.78.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"><a·class="src·rightsi[·...·truncated·by·diffoscope;·len:·402,·SHA:·7689a974f800fd069d1b4453ef62d6d6ad1b654462d624d36e3672051d502030·...·]/core/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.78.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:·922,·SHA:·5220bbb4db3c3cd3d7ca7c27520f44f04fe367ee2f0f407fb1d50c0a327a2f99·...·]/core/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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·1138,·SHA:·f6ae06b7de8e94df014341c5cf589a5e4a1298367b2ef7a968ec499c5170a70e·...·]/core/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.78.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:·39eeddf219b211245393e51a591d5064c740fa9be49d88883d8a6474679741ad·...·]/core/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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·1058,·SHA:·b390dbdda8d7e93604b5ecd906a93efd03fe19bdaf41cf12893fd361bf974307·...·]/core/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.78.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:·851,·SHA:·ad2e090d21a034b7c3836ed38a686f4c483f9a929132fef846d48271f749a79c·...·]/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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·1067,·SHA:·415d32e1211c35d3bb405de1d6e51c2102c14cadc3333894f063148dbe0b1f69·...·]/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:·525,·SHA:·6471f48fecadc56edf21fc04794b884b96ce06d339c715e410f5a906e028bc28·...·]/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.78.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:·687,·SHA:·7f5256104c35c5948a2cb42b55f3048c9d2887e48a4a8226537a284f959c562a·...·]/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.78.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"><a·class="src·rightside"·href="../../src/core/iter/traits/[·...·truncated·by·diffoscope;·len:·284,·SHA:·aee83f38f8c40848e159b12a8faa43b9dadf589fe974632a1f15ce2a15834071·...·]/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.78.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"><a·class="src·rightside"·href="[·...·truncated·by·diffoscope;·len:·392,·SHA:·4e7da68f7be2622ef173653eca78d58e1f202b544a2e6abd14d8335c298c93a7·...·]/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.78.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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(<a·class="primitive"·href="https://doc.rust-lang.org/1.78.0/core/primitive.reference.html">&amp;mut·St</a>,·Self::<a·class="associatedty[·...·truncated·by·diffoscope;·len:·449,·SHA:·f12c268a8a8111b9e7126ad78bf5523a63733caa63d187c4fe792309ea41acdf·...·]/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:·459,·SHA:·b825570d9672670eacd8828b3abec12cd1c35433286857de28f5ea8d5e300e03·...·]/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.78.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.78.0/core/iter/trai[·...·truncated·by·diffoscope;·len:·594,·SHA:·02960742fa7892efaa08f289ce85865fc5efb6a4cd138c22e3566ca6fc727d78·...·]/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.78.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.78.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:·9b6a337a3ad68c2a987b52450c153f87a04a8ed9e83603d26077fe6e70d61edf·...·]/core/iter/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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·976,·SHA:·2a9182f6fe88e0b8a9b1ae1f46cace940cc0b8736033c354c0f0ccbf1c196e7a·...·]/core/iter/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.78.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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;[Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtyp[·...·truncated·by·diffoscope;·len:·135,·SHA:·0b06a6094d42ccbc8bce5b01c4383961fe7f1967f05e4c9f1ff33e71e425fb26·...·]/core/primitive.array.html">N</a>])·-&gt;·R,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iter_map_windows</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/87155">#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.78.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"><a·class="src·rightside"·href="../../src/core/iter/[·...·truncated·by·diffoscope;·len:·250,·SHA:·e355ddd0f04b2470ee915aec3ad97857be56b95e6a1f3d733d6c477453f4cf0d·...·]/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.78.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"><a·class="src·rightside"[·...·truncated·by·diffoscope;·len:·358,·SHA:·d91b2ab18e0ce069e262cf523c6ef961f56eecad042ea1e9bcefe33cff28fc8f·...·]/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:·583,·SHA:·b7d7d6125e8980756a2636a6b6e01600057c98a027dcf7d267b1f61538a7b6b0·...·]/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.78.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.78.0/core/op[·...·truncated·by·diffoscope;·len:·745,·SHA:·424783f22102f4446d3ad4d362b1aafdb7531fa777213f97ee138aa878f67bd1·...·]/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.78.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:·676,·SHA:·ae75f35cafbae1e0e695226baca09b0bec6e4a0ed5656a83c3357b29fb00442d·...·]/core/primitive.reference.html">&amp;mut·Self</a><div·class="where">where64 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·838,·SHA:·9b4fd8df7f41e9a76fd4cfca0a233b74b9bd27c3fe8228248abc3f940425a3e3·...·]/core/primitive.reference.html">&amp;mut·Self</a><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:·319,·SHA:·bbb653fcb1f5ad46e04905bf78a76b9dd63ea5d49a2d8cd5b7b36efbb0f7e105·...·]/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.78.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.78.0/core/it[·...·truncated·by·diffoscope;·len:·427,·SHA:·ecfaaac5d1d10c1bc4fcee9a050af0a268bee0b528c2d8ea4e9774440bd8a279·...·]/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.78.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.78.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:·e5d524e874326d0b9b733f5ee809c6595cde869afab0cc3d4ba8454093f420da·...·]/core/primitive.reference.html">&amp;mut·E</a><div·class="where">where67 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.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.78.0/core/iter/tr[·...·truncated·by·diffoscope;·len:·728,·SHA:·01937c2dc314c259495665570ae249c94b4a5b0719718f5f1188e6fc64ecf487·...·]/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.78.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.78.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:·744,·SHA:·a7446142ab67c3f20d866315fbe6cb9c57cd4af012812d6dd19d5061aee6e97b·...·]/core/primitive.tuple.html">(B,·B)</a><div·class="where">where69 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experiment[·...·truncated·by·diffoscope;·len:·879,·SHA:·e773b2222c92d001e295030cb47a780ab0c1132d7fc8e9e3a98de4f532e6c520·...·]/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.78.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.78.0/core/default/trait.Default.html"·title="trait·core::default::Default">Default</a>·+·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/collect/trait.Extend.html"·title="trait·core::iter::traits::collec[·...·truncated·by·diffoscope;·len:·95,·SHA:·8b3be1d0042cae0550f865faf5849221240bdf04eb1b2107605b72d48c3ad29c·...·]/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:·f8b50287f3e106633ed79a84072d3ddd9d98672efd685d2433c61b5549ce051e·...·]/core/primitive.bool.html">bool</a><div·class="where">where72 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·972,·SHA:·6de765542031617a9c28ac98fe6df619e58e62d9c65ec5b1c185a7152b8944e5·...·]/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.78.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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·135,·SHA:·51ff5f5c7ebd8440623ea71b125c5a5837e809e308fe1a13fbe19cddb941dbd9·...·]/core/primitive.bool.html">bool</a>,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iter_is_partitioned</code>&nbsp;<a·href="https://github.com/rust-lang/rust/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:·6f406a351b93047f56fa70265a6bf28ec6874f75cd6cc5a39d51c7af462f2992·...·]/core/iter/traits/iterator/trait.Iterator.html#method.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.78.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:·2c74873f4e5ba70004a1c7edd1cc3f9e2d91271295dd1591e2d26848df4c02ba·...·]/core/iter/traits/iterator/trait.Iterator.html#method.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.78.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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(B,·Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.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.78.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:·eecdce021399d206eb3ef5af12ee7663b4eb0dca55b0f411c7fa66f605b6b2e2·...·]/core/iter/traits/iterator/trait.Iterator.html#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.78.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:·52912e82c4b0a760d06f77eb4ee3a59ba70dd76cb532954900c73ae94c652674·...·]/core/iter/traits/iterator/trait.Iterator.html#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.78.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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.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.78.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.78.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"><a·class="src·rightside"·href="../../src/core/iter[·...·truncated·by·diffoscope;·len:·130,·SHA:·75c0150024fe6cdc702d7337508ab57600248490dd062768204ddb064c9a1b8b·...·]/core/iter/traits/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.78.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"><a·class="src·rightside[·...·truncated·by·diffoscope;·len:·211,·SHA:·924e062acd8127e8d6158162219ee5d57a941854e14063d21d7768edae549431·...·]/core/iter/traits/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.78.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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(B,·Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::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:·dbe3a08fe63abd47570741e71208c31aaf51152feac5917db07665a1f56bb3e3·...·]/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.78.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:·b60215068a6d9721be05f81098c51167d7138c4042f140cad42f77c4df43f597·...·]/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.78.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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·352,·SHA:·e7c3c296abe2c0a183967153e4ae7fd50bafa2ae7088e3e78b3b48fee253adc6·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::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:·a9dce8bb557b5a11426bf2ffcbd5eea7c6c870833e3ee5bb072dcaaa11687b0c·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_reduce"·class="fn">try_reduce</a>&lt;F,·R&gt;(89 operation.·<a·href="https://doc.rust-lang.org/1.78.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:·7a18fdd041b1a001b4a8feb289ee127fd9240232239269eb35dc3b8f74783ec9·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_reduce"·class="fn">try_reduce</a>&lt;F,·R&gt;(
90 ····&amp;mut·self,90 ····&amp;mut·self,
91 ····f:·F91 ····f:·F
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.78.0/core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&gt;::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/ops/try_trait/trait.Try.html#associatedtype.Residual"·title="type[·...·truncated·by·diffoscope;·len:·754,·SHA:·6fb4dfdb6b4da68921c1e7f8b75d99cf293d58318d684a840254ce9576957bea·...·]/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.78.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::[·...·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:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·140,·SHA:·c27972e6fa3464c9476eaa185e8657edb6bb294f148403f3d079285294a9f909·...·]/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·=·Self::<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.78.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.78.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.78.0/core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&gt;::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/ops/try_trait/trait.Try.html#associatedtype.Residual"·title="type[·...·truncated·by·diffoscope;·len:·412,·SHA:·22b8cbb007e5cce82b9d13a65bfa56aa8d83c32541fac25f4d9b3857b0540908·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;&gt;,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iterator_try_reduce</code>&nbsp;<a·href="https://github.com/rust-lang/rust/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"><a·class="src·rightside"·href="../../src/core/iter/tr[·...·truncated·by·diffoscope;·len:·272,·SHA:·97959736d897a01242f49f2e45854ab874bf0c9bbe30acad9a49eb73169e457c·...·]/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.78.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"><a·class="src·rightside"·h[·...·truncated·by·diffoscope;·len:·380,·SHA:·29c4004d4d8b0c8c9dfe9023f8b2c5ef801d9dc4688893035d182c1ae774c453·...·]/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.78.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:·733,·SHA:·9bb9f0199d90f78ad65c59dbe67a1c751cd5a681130a03bef3b1e8ed907a3bba·...·]/core/primitive.bool.html">bool</a><div·class="where">where99 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·922,·SHA:·f4fd532c280e18f28bd6dda6c2a129e2e92114b67f27235bb5fd39f725be9c43·...·]/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.78.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:·860,·SHA:·6a94ae33b82eb12a91660811a8ab9d243468d885c07ac766a2507d25a4e7ee62·...·]/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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·1076,·SHA:·2dd9de8adaee4a5ee96501d9a58bfac2fea00ba8d78b834bfca29949b3afe18b·...·]/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.78.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:·21d7086b3ce0092e3f7a6a41174339bbd8724e7d186158db4db3385a73d94e8e·...·]/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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·1051,·SHA:·ecc0b8fccd861464760f9ae047ff6ab98c91a1db010cb5fa59a8c2ab883db7c4·...·]/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.78.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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·130,·SHA:·130a13019dc175d02304b4f550157e2f13ac15c2f25a979c74161d10b146ab89·...·]/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:·ac4da3337aac1ec10038e246be9cb719eeb5af1acc709f5a6a25b91900c56f53·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_find"·class="fn">try_find</a>&lt;F,·R&gt;(106 the·first·non-none·result.·<a·href="https://doc.rust-lang.org/1.78.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:·8ced1b10e78750774c5c8ed995ed83dcd13983aa75d329acf8069da106ab9f4a·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_find"·class="fn">try_find</a>&lt;F,·R&gt;(
107 ····&amp;mut·self,107 ····&amp;mut·self,
108 ····f:·F108 ····f:·F
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.78.0/core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&gt;::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/ops/try_trait/trait.Try.html#associatedtype.Residual"·title="type[·...·truncated·by·diffoscope;·len:·626,·SHA:·95f9831257b68862cbcbf54f0ad2ff4e597a4c9f763112d1da8a0897dadcf872·...·]/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.78.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;·R,111 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.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.bool.html">bool</a>&gt;,112 ····R:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.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.78.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.78.0/core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&gt;::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/ops/try_trait/trait.Try.html#associatedtype.Residual"·title="type[·...·truncated·by·diffoscope;·len:·412,·SHA:·22b8cbb007e5cce82b9d13a65bfa56aa8d83c32541fac25f4d9b3857b0540908·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;&gt;,</div></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"><a·class="src·rightside"·href="../../src/core/iter[·...·truncated·by·diffoscope;·len:·404,·SHA:·f45e13f24791f759991b5b3c0f29ce7cc9019b87d7ca444f65464e8a939e287c·...·]/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.78.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"><a·class="src·rightside[·...·truncated·by·diffoscope;·len:·539,·SHA:·04e329705f11ed9ec269a68b0b75ac4ab26c78e4316a571ee9336c28bbca6359·...·]/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.78.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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·1190,·SHA:·882e9e9a037f916d0ed4aa6d749399e6e01ca81811eacfc54a484818cb5d5029·...·]/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.78.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.78.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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/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.78.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:·0367b1bacc0a7d8e05f1c5181f8c4ea428f3f11edbae0e76811f3ef1d4925e41·...·]/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.78.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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·346,·SHA:·7113e4c2d65a123253bb18971efdc2d49241cfc2dd4c2b18e4cfa4e4d7d4140f·...·]/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.78.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:·db89d4cca0becf2a4ab904adac2870de6fd83cfad5131f5a1431a67766274f81·...·]/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.78.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.78.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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/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.78.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:·39ce6bc28062c0df48bff6a8faa3e4f2266988879092cf2970d2e9ee092742b0·...·]/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; 80951/269675 bytes (30.02%) of diff not shown.
263 KB
./usr/share/doc/rust-web-doc/html/alloc/slice/struct.SplitNMut.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·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.write(`<link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/SourceSerif4-Regular-46f98efaafac5295.ttf.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/FiraSans-Regular-018c141bf0843ffd.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/FiraSans-Medium-8f9a781e4970d388.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/SourceCodePro-Regular-562dcc5011b6de7d.ttf.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/SourceCodePro-Semibold-d899c5a5c4aeb14a.ttf.woff2">`)</script><link·rel="stylesheet"·href="../../static.files/normalize-76eba96aa4d2e634.css"><link·rel="stylesheet"·href="../../static.files/rustdoc-35f9e32502181f1e.css"><meta·name="rustdoc-vars"·data-root-path="../../"·data-static-root-path="../../static.files/"·data-current-crate="alloc"·data-themes=""·data-resource-suffix="1.78.0"·data-rustdoc-version="1.78.0"·data-channel="1.78.0"·data-search-js="search-42d8da7a6b9792c2.js"·data-settings-js="settings-4313503d2e1961c2.js"·><script·src="../../static.files/storage-4c98445ec4002617.js"></script><script·defer·src="sidebar-items1.78.0.js"></script><script·defer·src="../../static.files/main-12cf3b4f4f9dc36d.js"></script><noscript><link·rel="stylesheet"·href="../../static.files/noscript-04d5337699b92874.css"></noscript><link·rel="alternate·icon"·type="image/png"·href="../../static.files/favicon-16x16-8b506e7a72182f1c.png"><link·rel="alternate·icon"·type="image/png"·href="../../static.files/favicon-32x32-422f7d1d52889060.png"><link·rel="icon"·type="image/svg+xml"·href="../../static.files/favicon-2c020d218678b618.svg"></head><body·class="rustdoc·struct"><!--[if·lte·IE·11]><div·class="warning">This·old·browser·is·unsupported·and·will·most·likely·display·funky·things.</div><![endif]--><nav·class="mobile-topbar"><button·class="sidebar-menu-toggle"·title="show·sidebar"></button><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-151179464ae7ed46.svg"·alt=""></a></nav><nav·class="sidebar"><div·class="sidebar-crate"><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-151179464ae7ed46.svg"·alt="logo"></a><h2><a·href="../../alloc/index.html">alloc</a><span·class="version">1.78.0</span></h2></div><h2·class="location"><a·href="#">SplitNMut</a></h2><div·class="sidebar-elems"><section><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">Debug</a></li><li><a·href="#impl-FusedIterator-for-SplitNMut%3C'a,+T,+P%3E">FusedIterator</a></li><li><a·href="#impl-Iterator-for-SplitNMut%3C'a,+T,+P%3E">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">!UnwindSafe</a></li><li><a·href="#impl-Freeze-for-SplitNMut%3C'a,+T,+P%3E">Freeze</a></li><li><a·href="#impl-RefUnwindSafe-for-SplitNMut%3C'a,+T,+P%3E">RefUnwindSafe</a></li><li><a·href="#impl-Send-for-SplitNMut%3C'a,+T,+P%3E">Send</a></li><li><a·href="#impl-Sync-for-SplitNMut%3C'a,+T,+P%3E">Sync</a></li><li><a·href="#impl-Unpin-for-SplitNMut%3C'a,+T,+P%3E">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">Any</a></li><li><a·href="#impl-Borrow%3CT%3E-for-T">Borrow&lt;T&gt;</a></li><li><a·href="#impl-BorrowMut%3CT%3E-for-T">BorrowMut&lt;T&gt;</a></li><li><a·href="#impl-From%3CT%3E-for-T">From&lt;T&gt;</a></li><li><a·href="#impl-Into%3CU%3E-for-T">Into&lt;U&gt;</a></li><li><a·href="#impl-IntoIterator-for-I">IntoIterator</a></li><li><a·href="#impl-TryFrom%3CU%3E-for-T">TryFrom&lt;U&gt;</a></li><li><a·href="#impl-TryInto%3CU%3E-for-T">TryInto&lt;U&gt;</a></li></ul></section><h2><a·href="index.html">In·alloc::slice</a></h2></div></nav><div·class="sidebar-resizer"></div>1 <!DOCTYPE·html><html·lang="en"><head><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.write(`<link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/SourceSerif4-Regular-46f98efaafac5295.ttf.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/FiraSans-Regular-018c141bf0843ffd.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/FiraSans-Medium-8f9a781e4970d388.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/SourceCodePro-Regular-562dcc5011b6de7d.ttf.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/SourceCodePro-Semibold-d899c5a5c4aeb14a.ttf.woff2">`)</script><link·rel="stylesheet"·href="../../static.files/normalize-76eba96aa4d2e634.css"><link·rel="stylesheet"·href="../../static.files/rustdoc-35f9e32502181f1e.css"><meta·name="rustdoc-vars"·data-root-path="../../"·data-static-root-path="../../static.files/"·data-current-crate="alloc"·data-themes=""·data-resource-suffix="1.78.0"·data-rustdoc-version="1.78.0"·data-channel="1.78.0"·data-search-js="search-42d8da7a6b9792c2.js"·data-settings-js="settings-4313503d2e1961c2.js"·><script·src="../../static.files/storage-4c98445ec4002617.js"></script><script·defer·src="sidebar-items1.78.0.js"></script><script·defer·src="../../static.files/main-12cf3b4f4f9dc36d.js"></script><noscript><link·rel="stylesheet"·href="../../static.files/noscript-04d5337699b92874.css"></noscript><link·rel="alternate·icon"·type="image/png"·href="../../static.files/favicon-16x16-8b506e7a72182f1c.png"><link·rel="alternate·icon"·type="image/png"·href="../../static.files/favicon-32x32-422f7d1d52889060.png"><link·rel="icon"·type="image/svg+xml"·href="../../static.files/favicon-2c020d218678b618.svg"></head><body·class="rustdoc·struct"><!--[if·lte·IE·11]><div·class="warning">This·old·browser·is·unsupported·and·will·most·likely·display·funky·things.</div><![endif]--><nav·class="mobile-topbar"><button·class="sidebar-menu-toggle"·title="show·sidebar"></button><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-151179464ae7ed46.svg"·alt=""></a></nav><nav·class="sidebar"><div·class="sidebar-crate"><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-151179464ae7ed46.svg"·alt="logo"></a><h2><a·href="../../alloc/index.html">alloc</a><span·class="version">1.78.0</span></h2></div><h2·class="location"><a·href="#">SplitNMut</a></h2><div·class="sidebar-elems"><section><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">Debug</a></li><li><a·href="#impl-FusedIterator-for-SplitNMut%3C'a,+T,+P%3E">FusedIterator</a></li><li><a·href="#impl-Iterator-for-SplitNMut%3C'a,+T,+P%3E">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">!UnwindSafe</a></li><li><a·href="#impl-Freeze-for-SplitNMut%3C'a,+T,+P%3E">Freeze</a></li><li><a·href="#impl-RefUnwindSafe-for-SplitNMut%3C'a,+T,+P%3E">RefUnwindSafe</a></li><li><a·href="#impl-Send-for-SplitNMut%3C'a,+T,+P%3E">Send</a></li><li><a·href="#impl-Sync-for-SplitNMut%3C'a,+T,+P%3E">Sync</a></li><li><a·href="#impl-Unpin-for-SplitNMut%3C'a,+T,+P%3E">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">Any</a></li><li><a·href="#impl-Borrow%3CT%3E-for-T">Borrow&lt;T&gt;</a></li><li><a·href="#impl-BorrowMut%3CT%3E-for-T">BorrowMut&lt;T&gt;</a></li><li><a·href="#impl-From%3CT%3E-for-T">From&lt;T&gt;</a></li><li><a·href="#impl-Into%3CU%3E-for-T">Into&lt;U&gt;</a></li><li><a·href="#impl-IntoIterator-for-I">IntoIterator</a></li><li><a·href="#impl-TryFrom%3CU%3E-for-T">TryFrom&lt;U&gt;</a></li><li><a·href="#impl-TryInto%3CU%3E-for-T">TryInto&lt;U&gt;</a></li></ul></section><h2><a·href="index.html">In·alloc::slice</a></h2></div></nav><div·class="sidebar-resizer"></div>
2 ····<main><div·class="width-limiter"><nav·class="sub"><form·class="search-form"><span></span><div·id="sidebar-button"·tabindex="-1"><a·href="../../alloc/all.html"·title="show·sidebar"></a></div><input·class="search-input"·name="search"·aria-label="Run·search·in·the·documentation"·autocomplete="off"·spellcheck="false"·placeholder="Click·or·press·‘S’·to·search,·‘?’·for·more·options…"·type="search"><div·id="help-button"·tabindex="-1"><a·href="../../help.html"·title="help">?</a></div><div·id="settings-menu"·tabindex="-1"><a·href="../../settings.html"·title="settings"><img·width="22"·height="22"·alt="Change·settings"·src="../../static.files/wheel-7b819b6101059cd0.svg"></a></div></form></nav><section·id="main-content"·class="content"><div·class="main-heading"><h1>Struct·<a·href="../index.html">alloc</a>::<wbr><a·href="index.html">slice</a>::<wbr><a·class="struct"·href="#">SplitNMut</a><button·id="copy-path"·title="Copy·item·path·to·clipboard"><img·src="../../static.files/clipboard-7571035ce49a181d.svg"·width="19"·height="18"·alt="Copy·item·path"></button></h1><span·class="out-of-band"><span·class="since"·title="Stable·since·Rust·version·1.0.0">1.0.0</span>···<a·class="src"·href="../../src/core/slice/iter.rs.html#1222">source</a>···<button·id="toggle-all-docs"·title="collapse·all·docs">[<span>&#x2212;</span>]</button></span></div><pre·class="rust·item-decl"><code>pub·struct·SplitNMut&lt;'a,·T,·P&gt;<div·class="where">where2 ····<main><div·class="width-limiter"><nav·class="sub"><form·class="search-form"><span></span><div·id="sidebar-button"·tabindex="-1"><a·href="../../alloc/all.html"·title="show·sidebar"></a></div><input·class="search-input"·name="search"·aria-label="Run·search·in·the·documentation"·autocomplete="off"·spellcheck="false"·placeholder="Click·or·press·‘S’·to·search,·‘?’·for·more·options…"·type="search"><div·id="help-button"·tabindex="-1"><a·href="../../help.html"·title="help">?</a></div><div·id="settings-menu"·tabindex="-1"><a·href="../../settings.html"·title="settings"><img·width="22"·height="22"·alt="Change·settings"·src="../../static.files/wheel-7b819b6101059cd0.svg"></a></div></form></nav><section·id="main-content"·class="content"><div·class="main-heading"><h1>Struct·<a·href="../index.html">alloc</a>::<wbr><a·href="index.html">slice</a>::<wbr><a·class="struct"·href="#">SplitNMut</a><button·id="copy-path"·title="Copy·item·path·to·clipboard"><img·src="../../static.files/clipboard-7571035ce49a181d.svg"·width="19"·height="18"·alt="Copy·item·path"></button></h1><span·class="out-of-band"><span·class="since"·title="Stable·since·Rust·version·1.0.0">1.0.0</span>···<a·class="src"·href="https://doc.rust-lang.org/1.78.0/src/core/slice/iter.rs.html#1222">source</a>···<button·id="toggle-all-docs"·title="collapse·all·docs">[<span>&#x2212;</span>]</button></span></div><pre·class="rust·item-decl"><code>pub·struct·SplitNMut&lt;'a,·T,·P&gt;<div·class="where">where
3 ····T:·'a,3 ····T:·'a,
4 ····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·predicate4 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(<a·class="primitive"·href="https://doc.rust-lang.org/1.78.0/core/primitive.reference.html">&amp;T</a>)·-&gt;·<a·class="primitive"·href="[·...·truncated·by·diffoscope;·len:·32,·SHA:·63d052a8ced32bf927ffadd7e884c08caf4970e85dfdf6be0e568d49b174da96·...·]/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
5 function,·limited·to·a·given·number·of·splits.</p>5 function,·limited·to·a·given·number·of·splits.</p>
6 <p>This·struct·is·created·by·the·<a·href="../../core/primitive.slice.html#method.splitn_mut"·title="method·slice::splitn_mut"><code>splitn_mut</code></a>·method·on·<a·href="../../core/primitive.slice.html"·title="primitive·slice">slices</a>.</p>6 <p>This·struct·is·created·by·the·<a·href="https://doc.rust-lang.org/1.78.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.78.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.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"·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">Run</a></div>9 <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"·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">Run</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-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#1237-1239">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">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-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.78.0/src/core/slice/iter.rs.html#1237-1239">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
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:·1313,·SHA:·57e8df5fe17c66545aa9c12a5061183e213228fa2677d84d989f2ef146148183·...·]/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">where12 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(<a·class="primitive"·href="https://doc.rust-lang.org/1.78.0/core/primitive.reference.html">&amp;T</a>)·-&gt;·<a·class="primitive"·href="[·...·truncated·by·diffoscope;·len:·1529,·SHA:·e6a49b556b5a8b824b91b6fb0bc93f023e160340e273bfdc8aaad503b7c2a894·...·]/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
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:·2577,·SHA:·a3219aa70f5d66732ac6e7107bf11ab7f626fd40b8273cc14957936d16c5343a·...·]/core/primitive.usize.html">usize</a>&gt;(13 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(<a·class="primitive"·href="https://doc.rust-lang.org/1.78.0/core/primitive.reference.html">&amp;T</a>)·-&gt;·<a·class="primitive"·href="[·...·truncated·by·diffoscope;·len:·3090,·SHA:·2ec9064e41b4869072b581ce8cca422dffca5d32da098adbb697308be7e6e254·...·]/core/primitive.usize.html">usize</a>&gt;(
14 ····&amp;mut·self14 ····&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.78.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.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title=[·...·truncated·by·diffoscope;·len:·381,·SHA:·88c48923c9b7ea5cc47c1087c60e09656e81d4671c58071ba2bef826335388bc·...·]/core/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:·731,·SHA:·1d80a8ea5861d05518e01eeb903c537b78b04ad4159c3e5cf1597907c264b93e·...·]/core/primitive.usize.html">usize</a><div·class="where">where16 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experiment[·...·truncated·by·diffoscope;·len:·866,·SHA:·945d2d86f0c4c5ca3e3ee3b181d18b2bbea57ee1a5a7efe16c0c915a5bf2c3ad·...·]/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:·579,·SHA:·97df9cdc3f1cc1461e704ebdf0c047ac7c0165f9aec8e9afdc069209b7a15a36·...·]/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.78.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:·741,·SHA:·f3078cc3fddd62af2c1a8814c5854bb49f40b79e4fbc9b3addf5862a72370f82·...·]/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:·2868,·SHA:·9ec21b8470b914406f4216b9bac831bf85cccf58579bd476408d6168be7cd43e·...·]/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.78.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.78.0/cor[·...·truncated·by·diffoscope;·len:·3408,·SHA:·b62c6ed65b31a8b555c142d9d15f3ce30e5c76ad2630a0e5a9b13cfd478c6eee·...·]/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.78.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"><a·class="src·rightside"·href="../../src/core/iter/tra[·...·truncated·by·diffoscope;·len:·584,·SHA:·fd3e570373eb5121d35d7e22cdd5dd5fbf7183ee80147135a591fd1285174e82·...·]/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.78.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"><a·class="src·rightside"·hr[·...·truncated·by·diffoscope;·len:·746,·SHA:·f1f70d650c102c8658e13890c7dbfc87418f07e7b522246fb579ec434ef64f7c·...·]/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.78.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:·1017,·SHA:·c0f5f8cfd297e1678ac0ee2fd847fb6f0577665ac326e8e2e9d6414a710c8f98·...·]/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.78.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.78.0/core/iter/traits/it[·...·truncated·by·diffoscope;·len:·1233,·SHA:·f677df2d893dfe0dc1a9d31ebb0ba71a346d265781813e0d664d3f18369b6163·...·]/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.78.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:·c1b5e692e89c9c809075ee8ee72fb15a9ec46c075b08450e1f707d672a224750·...·]/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.78.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:·98627729f77dcf1c9d258f343354ba600b7134c6b3929080f231e8de7155b70b·...·]/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.78.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.78.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.78.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"><a·class="src·rightside"·href="../../src/core/i[·...·truncated·by·diffoscope;·len:·267,·SHA:·1764c9d6d2e39e1367ae2111c28ab846e66ecf12617fbff35e0132e82e5c8b13·...·]/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.78.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"><a·class="src·rights[·...·truncated·by·diffoscope;·len:·375,·SHA:·58419346f92e1709dadb70cc3cf356e3cd27972451bdc6b4fc4267e6f7e8bdae·...·]/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.78.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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::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:·fb4c9589a16c7b6d697c109d1193d2f1e763e5dd967101c2fd92b32416972229·...·]/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.78.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:·98f6effefa44d759c249143d83623f0055d937382bfc398b7e1f5e92cd413657·...·]/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.78.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:·658,·SHA:·e4449b6c00d036dd30444817045eddaf2697443d65789bb5c0b585ed1bc77702·...·]/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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·820,·SHA:·a664bbcbc0891663662e4eb7b4394d0fcd72e568136fc4d34097fea242cc32e7·...·]/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.78.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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·140,·SHA:·752f473b57e7444ebfddf5ea7fd40a332e83ec55524a6c31b5ee0f82a5dea819·...·]/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"><a·class="src·rightside"·href="../../src/core/iter[·...·truncated·by·diffoscope;·len:·285,·SHA:·738ce0440ff568829f40d141e38e2c0da2fd05d2b73d1a574be0ed9baa32e827·...·]/core/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.78.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"><a·class="src·rightside[·...·truncated·by·diffoscope;·len:·393,·SHA:·2e2aa7c9c9c087e7b346da376749064ab8c1894795a2f0a0f646cdc8c7bea997·...·]/core/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.78.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:·767,·SHA:·da0fc5bc95a3398627e0c5836423b719ccea45d351e21ddaa96f793f67f9c6de·...·]/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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·956,·SHA:·faba0521e870dbbd26d466fadba3522e7d29013a9b86376fffafffac11a57e0e·...·]/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.78.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"><a·class="src·rightside"·href="../../src/core/ite[·...·truncated·by·diffoscope;·len:·264,·SHA:·e3fa7ab43c6353bc2216a22d7010c41a8ab50d273a128d15d0eff050c058993a·...·]/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.78.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"><a·class="src·rightsid[·...·truncated·by·diffoscope;·len:·372,·SHA:·03eea0861575eb80d3f7a87a3ba747adb1a33fe7e9ce72aa2172e7a287c63a94·...·]/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.78.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.78.0/core/iter/adapte[·...·truncated·by·diffoscope;·len:·175,·SHA:·16fe7225bf05b478e2828b347c3d23ded9a22f89d8887a2c65d9f7b3faf1b0e7·...·]/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"><a·class="src·rightside"·href="../../src/core/it[·...·truncated·by·diffoscope;·len:·294,·SHA:·c0aee2077af6a4f81ed47e37c84a75b5f9b941875509fbe0b3d352866f825f45·...·]/core/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.78.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"><a·class="src·rightsi[·...·truncated·by·diffoscope;·len:·402,·SHA:·7689a974f800fd069d1b4453ef62d6d6ad1b654462d624d36e3672051d502030·...·]/core/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.78.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:·922,·SHA:·5220bbb4db3c3cd3d7ca7c27520f44f04fe367ee2f0f407fb1d50c0a327a2f99·...·]/core/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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·1138,·SHA:·f6ae06b7de8e94df014341c5cf589a5e4a1298367b2ef7a968ec499c5170a70e·...·]/core/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.78.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:·39eeddf219b211245393e51a591d5064c740fa9be49d88883d8a6474679741ad·...·]/core/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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·1058,·SHA:·b390dbdda8d7e93604b5ecd906a93efd03fe19bdaf41cf12893fd361bf974307·...·]/core/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.78.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:·851,·SHA:·ad2e090d21a034b7c3836ed38a686f4c483f9a929132fef846d48271f749a79c·...·]/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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·1067,·SHA:·415d32e1211c35d3bb405de1d6e51c2102c14cadc3333894f063148dbe0b1f69·...·]/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:·525,·SHA:·6471f48fecadc56edf21fc04794b884b96ce06d339c715e410f5a906e028bc28·...·]/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.78.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:·687,·SHA:·7f5256104c35c5948a2cb42b55f3048c9d2887e48a4a8226537a284f959c562a·...·]/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.78.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"><a·class="src·rightside"·href="../../src/core/iter/traits/[·...·truncated·by·diffoscope;·len:·284,·SHA:·aee83f38f8c40848e159b12a8faa43b9dadf589fe974632a1f15ce2a15834071·...·]/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.78.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"><a·class="src·rightside"·href="[·...·truncated·by·diffoscope;·len:·392,·SHA:·4e7da68f7be2622ef173653eca78d58e1f202b544a2e6abd14d8335c298c93a7·...·]/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.78.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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(<a·class="primitive"·href="https://doc.rust-lang.org/1.78.0/core/primitive.reference.html">&amp;mut·St</a>,·Self::<a·class="associatedty[·...·truncated·by·diffoscope;·len:·449,·SHA:·f12c268a8a8111b9e7126ad78bf5523a63733caa63d187c4fe792309ea41acdf·...·]/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:·459,·SHA:·b825570d9672670eacd8828b3abec12cd1c35433286857de28f5ea8d5e300e03·...·]/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.78.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.78.0/core/iter/trai[·...·truncated·by·diffoscope;·len:·594,·SHA:·02960742fa7892efaa08f289ce85865fc5efb6a4cd138c22e3566ca6fc727d78·...·]/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.78.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.78.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:·9b6a337a3ad68c2a987b52450c153f87a04a8ed9e83603d26077fe6e70d61edf·...·]/core/iter/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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·976,·SHA:·2a9182f6fe88e0b8a9b1ae1f46cace940cc0b8736033c354c0f0ccbf1c196e7a·...·]/core/iter/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.78.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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;[Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtyp[·...·truncated·by·diffoscope;·len:·135,·SHA:·0b06a6094d42ccbc8bce5b01c4383961fe7f1967f05e4c9f1ff33e71e425fb26·...·]/core/primitive.array.html">N</a>])·-&gt;·R,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iter_map_windows</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/87155">#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.78.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"><a·class="src·rightside"·href="../../src/core/iter/[·...·truncated·by·diffoscope;·len:·250,·SHA:·e355ddd0f04b2470ee915aec3ad97857be56b95e6a1f3d733d6c477453f4cf0d·...·]/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.78.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"><a·class="src·rightside"[·...·truncated·by·diffoscope;·len:·358,·SHA:·d91b2ab18e0ce069e262cf523c6ef961f56eecad042ea1e9bcefe33cff28fc8f·...·]/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:·583,·SHA:·b7d7d6125e8980756a2636a6b6e01600057c98a027dcf7d267b1f61538a7b6b0·...·]/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.78.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.78.0/core/op[·...·truncated·by·diffoscope;·len:·745,·SHA:·424783f22102f4446d3ad4d362b1aafdb7531fa777213f97ee138aa878f67bd1·...·]/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.78.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:·676,·SHA:·ae75f35cafbae1e0e695226baca09b0bec6e4a0ed5656a83c3357b29fb00442d·...·]/core/primitive.reference.html">&amp;mut·Self</a><div·class="where">where64 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·838,·SHA:·9b4fd8df7f41e9a76fd4cfca0a233b74b9bd27c3fe8228248abc3f940425a3e3·...·]/core/primitive.reference.html">&amp;mut·Self</a><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:·319,·SHA:·bbb653fcb1f5ad46e04905bf78a76b9dd63ea5d49a2d8cd5b7b36efbb0f7e105·...·]/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.78.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.78.0/core/it[·...·truncated·by·diffoscope;·len:·427,·SHA:·ecfaaac5d1d10c1bc4fcee9a050af0a268bee0b528c2d8ea4e9774440bd8a279·...·]/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.78.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.78.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:·e5d524e874326d0b9b733f5ee809c6595cde869afab0cc3d4ba8454093f420da·...·]/core/primitive.reference.html">&amp;mut·E</a><div·class="where">where67 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.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.78.0/core/iter/tr[·...·truncated·by·diffoscope;·len:·728,·SHA:·01937c2dc314c259495665570ae249c94b4a5b0719718f5f1188e6fc64ecf487·...·]/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.78.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.78.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:·744,·SHA:·a7446142ab67c3f20d866315fbe6cb9c57cd4af012812d6dd19d5061aee6e97b·...·]/core/primitive.tuple.html">(B,·B)</a><div·class="where">where69 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experiment[·...·truncated·by·diffoscope;·len:·879,·SHA:·e773b2222c92d001e295030cb47a780ab0c1132d7fc8e9e3a98de4f532e6c520·...·]/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.78.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.78.0/core/default/trait.Default.html"·title="trait·core::default::Default">Default</a>·+·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/collect/trait.Extend.html"·title="trait·core::iter::traits::collec[·...·truncated·by·diffoscope;·len:·95,·SHA:·8b3be1d0042cae0550f865faf5849221240bdf04eb1b2107605b72d48c3ad29c·...·]/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:·f8b50287f3e106633ed79a84072d3ddd9d98672efd685d2433c61b5549ce051e·...·]/core/primitive.bool.html">bool</a><div·class="where">where72 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·972,·SHA:·6de765542031617a9c28ac98fe6df619e58e62d9c65ec5b1c185a7152b8944e5·...·]/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.78.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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·135,·SHA:·51ff5f5c7ebd8440623ea71b125c5a5837e809e308fe1a13fbe19cddb941dbd9·...·]/core/primitive.bool.html">bool</a>,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iter_is_partitioned</code>&nbsp;<a·href="https://github.com/rust-lang/rust/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:·6f406a351b93047f56fa70265a6bf28ec6874f75cd6cc5a39d51c7af462f2992·...·]/core/iter/traits/iterator/trait.Iterator.html#method.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.78.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:·2c74873f4e5ba70004a1c7edd1cc3f9e2d91271295dd1591e2d26848df4c02ba·...·]/core/iter/traits/iterator/trait.Iterator.html#method.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.78.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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(B,·Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.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.78.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:·eecdce021399d206eb3ef5af12ee7663b4eb0dca55b0f411c7fa66f605b6b2e2·...·]/core/iter/traits/iterator/trait.Iterator.html#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.78.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:·52912e82c4b0a760d06f77eb4ee3a59ba70dd76cb532954900c73ae94c652674·...·]/core/iter/traits/iterator/trait.Iterator.html#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.78.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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.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.78.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.78.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"><a·class="src·rightside"·href="../../src/core/iter[·...·truncated·by·diffoscope;·len:·130,·SHA:·75c0150024fe6cdc702d7337508ab57600248490dd062768204ddb064c9a1b8b·...·]/core/iter/traits/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.78.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"><a·class="src·rightside[·...·truncated·by·diffoscope;·len:·211,·SHA:·924e062acd8127e8d6158162219ee5d57a941854e14063d21d7768edae549431·...·]/core/iter/traits/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.78.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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(B,·Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::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:·dbe3a08fe63abd47570741e71208c31aaf51152feac5917db07665a1f56bb3e3·...·]/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.78.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:·b60215068a6d9721be05f81098c51167d7138c4042f140cad42f77c4df43f597·...·]/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.78.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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·352,·SHA:·e7c3c296abe2c0a183967153e4ae7fd50bafa2ae7088e3e78b3b48fee253adc6·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::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:·a9dce8bb557b5a11426bf2ffcbd5eea7c6c870833e3ee5bb072dcaaa11687b0c·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_reduce"·class="fn">try_reduce</a>&lt;F,·R&gt;(89 operation.·<a·href="https://doc.rust-lang.org/1.78.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:·7a18fdd041b1a001b4a8feb289ee127fd9240232239269eb35dc3b8f74783ec9·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_reduce"·class="fn">try_reduce</a>&lt;F,·R&gt;(
90 ····&amp;mut·self,90 ····&amp;mut·self,
91 ····f:·F91 ····f:·F
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.78.0/core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&gt;::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/ops/try_trait/trait.Try.html#associatedtype.Residual"·title="type[·...·truncated·by·diffoscope;·len:·754,·SHA:·6fb4dfdb6b4da68921c1e7f8b75d99cf293d58318d684a840254ce9576957bea·...·]/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.78.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::[·...·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:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·140,·SHA:·c27972e6fa3464c9476eaa185e8657edb6bb294f148403f3d079285294a9f909·...·]/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·=·Self::<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.78.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.78.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.78.0/core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&gt;::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/ops/try_trait/trait.Try.html#associatedtype.Residual"·title="type[·...·truncated·by·diffoscope;·len:·412,·SHA:·22b8cbb007e5cce82b9d13a65bfa56aa8d83c32541fac25f4d9b3857b0540908·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;&gt;,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iterator_try_reduce</code>&nbsp;<a·href="https://github.com/rust-lang/rust/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"><a·class="src·rightside"·href="../../src/core/iter/tr[·...·truncated·by·diffoscope;·len:·272,·SHA:·97959736d897a01242f49f2e45854ab874bf0c9bbe30acad9a49eb73169e457c·...·]/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.78.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"><a·class="src·rightside"·h[·...·truncated·by·diffoscope;·len:·380,·SHA:·29c4004d4d8b0c8c9dfe9023f8b2c5ef801d9dc4688893035d182c1ae774c453·...·]/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.78.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:·733,·SHA:·9bb9f0199d90f78ad65c59dbe67a1c751cd5a681130a03bef3b1e8ed907a3bba·...·]/core/primitive.bool.html">bool</a><div·class="where">where99 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·922,·SHA:·f4fd532c280e18f28bd6dda6c2a129e2e92114b67f27235bb5fd39f725be9c43·...·]/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.78.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:·860,·SHA:·6a94ae33b82eb12a91660811a8ab9d243468d885c07ac766a2507d25a4e7ee62·...·]/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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·1076,·SHA:·2dd9de8adaee4a5ee96501d9a58bfac2fea00ba8d78b834bfca29949b3afe18b·...·]/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.78.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:·21d7086b3ce0092e3f7a6a41174339bbd8724e7d186158db4db3385a73d94e8e·...·]/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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·1051,·SHA:·ecc0b8fccd861464760f9ae047ff6ab98c91a1db010cb5fa59a8c2ab883db7c4·...·]/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.78.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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·130,·SHA:·130a13019dc175d02304b4f550157e2f13ac15c2f25a979c74161d10b146ab89·...·]/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:·ac4da3337aac1ec10038e246be9cb719eeb5af1acc709f5a6a25b91900c56f53·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_find"·class="fn">try_find</a>&lt;F,·R&gt;(106 the·first·non-none·result.·<a·href="https://doc.rust-lang.org/1.78.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:·8ced1b10e78750774c5c8ed995ed83dcd13983aa75d329acf8069da106ab9f4a·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_find"·class="fn">try_find</a>&lt;F,·R&gt;(
107 ····&amp;mut·self,107 ····&amp;mut·self,
108 ····f:·F108 ····f:·F
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.78.0/core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&gt;::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/ops/try_trait/trait.Try.html#associatedtype.Residual"·title="type[·...·truncated·by·diffoscope;·len:·626,·SHA:·95f9831257b68862cbcbf54f0ad2ff4e597a4c9f763112d1da8a0897dadcf872·...·]/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.78.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;·R,111 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.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.bool.html">bool</a>&gt;,112 ····R:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.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.78.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.78.0/core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&gt;::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/ops/try_trait/trait.Try.html#associatedtype.Residual"·title="type[·...·truncated·by·diffoscope;·len:·412,·SHA:·22b8cbb007e5cce82b9d13a65bfa56aa8d83c32541fac25f4d9b3857b0540908·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;&gt;,</div></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"><a·class="src·rightside"·href="../../src/core/iter[·...·truncated·by·diffoscope;·len:·404,·SHA:·f45e13f24791f759991b5b3c0f29ce7cc9019b87d7ca444f65464e8a939e287c·...·]/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.78.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"><a·class="src·rightside[·...·truncated·by·diffoscope;·len:·539,·SHA:·04e329705f11ed9ec269a68b0b75ac4ab26c78e4316a571ee9336c28bbca6359·...·]/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.78.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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·1190,·SHA:·882e9e9a037f916d0ed4aa6d749399e6e01ca81811eacfc54a484818cb5d5029·...·]/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.78.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.78.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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/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.78.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:·0367b1bacc0a7d8e05f1c5181f8c4ea428f3f11edbae0e76811f3ef1d4925e41·...·]/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.78.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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·346,·SHA:·7113e4c2d65a123253bb18971efdc2d49241cfc2dd4c2b18e4cfa4e4d7d4140f·...·]/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.78.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:·db89d4cca0becf2a4ab904adac2870de6fd83cfad5131f5a1431a67766274f81·...·]/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.78.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.78.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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/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.78.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:·39ce6bc28062c0df48bff6a8faa3e4f2266988879092cf2970d2e9ee092742b0·...·]/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; 80431/269343 bytes (29.86%) of diff not shown.
304 KB
./usr/share/doc/rust-web-doc/html/alloc/slice/struct.Windows.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·overlapping·subslices·of·length·`size`."><title>Windows·in·alloc::slice·-·Rust</title><script>·if·(window.location.protocol·!==·"file:")·document.write(`<link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/SourceSerif4-Regular-46f98efaafac5295.ttf.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/FiraSans-Regular-018c141bf0843ffd.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/FiraSans-Medium-8f9a781e4970d388.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/SourceCodePro-Regular-562dcc5011b6de7d.ttf.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/SourceCodePro-Semibold-d899c5a5c4aeb14a.ttf.woff2">`)</script><link·rel="stylesheet"·href="../../static.files/normalize-76eba96aa4d2e634.css"><link·rel="stylesheet"·href="../../static.files/rustdoc-35f9e32502181f1e.css"><meta·name="rustdoc-vars"·data-root-path="../../"·data-static-root-path="../../static.files/"·data-current-crate="alloc"·data-themes=""·data-resource-suffix="1.78.0"·data-rustdoc-version="1.78.0"·data-channel="1.78.0"·data-search-js="search-42d8da7a6b9792c2.js"·data-settings-js="settings-4313503d2e1961c2.js"·><script·src="../../static.files/storage-4c98445ec4002617.js"></script><script·defer·src="sidebar-items1.78.0.js"></script><script·defer·src="../../static.files/main-12cf3b4f4f9dc36d.js"></script><noscript><link·rel="stylesheet"·href="../../static.files/noscript-04d5337699b92874.css"></noscript><link·rel="alternate·icon"·type="image/png"·href="../../static.files/favicon-16x16-8b506e7a72182f1c.png"><link·rel="alternate·icon"·type="image/png"·href="../../static.files/favicon-32x32-422f7d1d52889060.png"><link·rel="icon"·type="image/svg+xml"·href="../../static.files/favicon-2c020d218678b618.svg"></head><body·class="rustdoc·struct"><!--[if·lte·IE·11]><div·class="warning">This·old·browser·is·unsupported·and·will·most·likely·display·funky·things.</div><![endif]--><nav·class="mobile-topbar"><button·class="sidebar-menu-toggle"·title="show·sidebar"></button><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-151179464ae7ed46.svg"·alt=""></a></nav><nav·class="sidebar"><div·class="sidebar-crate"><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-151179464ae7ed46.svg"·alt="logo"></a><h2><a·href="../../alloc/index.html">alloc</a><span·class="version">1.78.0</span></h2></div><h2·class="location"><a·href="#">Windows</a></h2><div·class="sidebar-elems"><section><h3><a·href="#trait-implementations">Trait·Implementations</a></h3><ul·class="block·trait-implementation"><li><a·href="#impl-Clone-for-Windows%3C'_,+T%3E">Clone</a></li><li><a·href="#impl-Debug-for-Windows%3C'a,+T%3E">Debug</a></li><li><a·href="#impl-DoubleEndedIterator-for-Windows%3C'a,+T%3E">DoubleEndedIterator</a></li><li><a·href="#impl-ExactSizeIterator-for-Windows%3C'_,+T%3E">ExactSizeIterator</a></li><li><a·href="#impl-FusedIterator-for-Windows%3C'_,+T%3E">FusedIterator</a></li><li><a·href="#impl-Iterator-for-Windows%3C'a,+T%3E">Iterator</a></li><li><a·href="#impl-TrustedLen-for-Windows%3C'_,+T%3E">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">Freeze</a></li><li><a·href="#impl-RefUnwindSafe-for-Windows%3C'a,+T%3E">RefUnwindSafe</a></li><li><a·href="#impl-Send-for-Windows%3C'a,+T%3E">Send</a></li><li><a·href="#impl-Sync-for-Windows%3C'a,+T%3E">Sync</a></li><li><a·href="#impl-Unpin-for-Windows%3C'a,+T%3E">Unpin</a></li><li><a·href="#impl-UnwindSafe-for-Windows%3C'a,+T%3E">UnwindSafe</a></li></ul><h3><a·href="#blanket-implementations">Blanket·Implementations</a></h3><ul·class="block·blanket-implementation"><li><a·href="#impl-Any-for-T">Any</a></li><li><a·href="#impl-Borrow%3CT%3E-for-T">Borrow&lt;T&gt;</a></li><li><a·href="#impl-BorrowMut%3CT%3E-for-T">BorrowMut&lt;T&gt;</a></li><li><a·href="#impl-From%3CT%3E-for-T">From&lt;T&gt;</a></li><li><a·href="#impl-Into%3CU%3E-for-T">Into&lt;U&gt;</a></li><li><a·href="#impl-IntoIterator-for-I">IntoIterator</a></li><li><a·href="#impl-ToOwned-for-T">ToOwned</a></li><li><a·href="#impl-TryFrom%3CU%3E-for-T">TryFrom&lt;U&gt;</a></li><li><a·href="#impl-TryInto%3CU%3E-for-T">TryInto&lt;U&gt;</a></li></ul></section><h2><a·href="index.html">In·alloc::slice</a></h2></div></nav><div·class="sidebar-resizer"></div>1 <!DOCTYPE·html><html·lang="en"><head><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.write(`<link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/SourceSerif4-Regular-46f98efaafac5295.ttf.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/FiraSans-Regular-018c141bf0843ffd.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/FiraSans-Medium-8f9a781e4970d388.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/SourceCodePro-Regular-562dcc5011b6de7d.ttf.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/SourceCodePro-Semibold-d899c5a5c4aeb14a.ttf.woff2">`)</script><link·rel="stylesheet"·href="../../static.files/normalize-76eba96aa4d2e634.css"><link·rel="stylesheet"·href="../../static.files/rustdoc-35f9e32502181f1e.css"><meta·name="rustdoc-vars"·data-root-path="../../"·data-static-root-path="../../static.files/"·data-current-crate="alloc"·data-themes=""·data-resource-suffix="1.78.0"·data-rustdoc-version="1.78.0"·data-channel="1.78.0"·data-search-js="search-42d8da7a6b9792c2.js"·data-settings-js="settings-4313503d2e1961c2.js"·><script·src="../../static.files/storage-4c98445ec4002617.js"></script><script·defer·src="sidebar-items1.78.0.js"></script><script·defer·src="../../static.files/main-12cf3b4f4f9dc36d.js"></script><noscript><link·rel="stylesheet"·href="../../static.files/noscript-04d5337699b92874.css"></noscript><link·rel="alternate·icon"·type="image/png"·href="../../static.files/favicon-16x16-8b506e7a72182f1c.png"><link·rel="alternate·icon"·type="image/png"·href="../../static.files/favicon-32x32-422f7d1d52889060.png"><link·rel="icon"·type="image/svg+xml"·href="../../static.files/favicon-2c020d218678b618.svg"></head><body·class="rustdoc·struct"><!--[if·lte·IE·11]><div·class="warning">This·old·browser·is·unsupported·and·will·most·likely·display·funky·things.</div><![endif]--><nav·class="mobile-topbar"><button·class="sidebar-menu-toggle"·title="show·sidebar"></button><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-151179464ae7ed46.svg"·alt=""></a></nav><nav·class="sidebar"><div·class="sidebar-crate"><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-151179464ae7ed46.svg"·alt="logo"></a><h2><a·href="../../alloc/index.html">alloc</a><span·class="version">1.78.0</span></h2></div><h2·class="location"><a·href="#">Windows</a></h2><div·class="sidebar-elems"><section><h3><a·href="#trait-implementations">Trait·Implementations</a></h3><ul·class="block·trait-implementation"><li><a·href="#impl-Clone-for-Windows%3C'_,+T%3E">Clone</a></li><li><a·href="#impl-Debug-for-Windows%3C'a,+T%3E">Debug</a></li><li><a·href="#impl-DoubleEndedIterator-for-Windows%3C'a,+T%3E">DoubleEndedIterator</a></li><li><a·href="#impl-ExactSizeIterator-for-Windows%3C'_,+T%3E">ExactSizeIterator</a></li><li><a·href="#impl-FusedIterator-for-Windows%3C'_,+T%3E">FusedIterator</a></li><li><a·href="#impl-Iterator-for-Windows%3C'a,+T%3E">Iterator</a></li><li><a·href="#impl-TrustedLen-for-Windows%3C'_,+T%3E">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">Freeze</a></li><li><a·href="#impl-RefUnwindSafe-for-Windows%3C'a,+T%3E">RefUnwindSafe</a></li><li><a·href="#impl-Send-for-Windows%3C'a,+T%3E">Send</a></li><li><a·href="#impl-Sync-for-Windows%3C'a,+T%3E">Sync</a></li><li><a·href="#impl-Unpin-for-Windows%3C'a,+T%3E">Unpin</a></li><li><a·href="#impl-UnwindSafe-for-Windows%3C'a,+T%3E">UnwindSafe</a></li></ul><h3><a·href="#blanket-implementations">Blanket·Implementations</a></h3><ul·class="block·blanket-implementation"><li><a·href="#impl-Any-for-T">Any</a></li><li><a·href="#impl-Borrow%3CT%3E-for-T">Borrow&lt;T&gt;</a></li><li><a·href="#impl-BorrowMut%3CT%3E-for-T">BorrowMut&lt;T&gt;</a></li><li><a·href="#impl-From%3CT%3E-for-T">From&lt;T&gt;</a></li><li><a·href="#impl-Into%3CU%3E-for-T">Into&lt;U&gt;</a></li><li><a·href="#impl-IntoIterator-for-I">IntoIterator</a></li><li><a·href="#impl-ToOwned-for-T">ToOwned</a></li><li><a·href="#impl-TryFrom%3CU%3E-for-T">TryFrom&lt;U&gt;</a></li><li><a·href="#impl-TryInto%3CU%3E-for-T">TryInto&lt;U&gt;</a></li></ul></section><h2><a·href="index.html">In·alloc::slice</a></h2></div></nav><div·class="sidebar-resizer"></div>
2 ····<main><div·class="width-limiter"><nav·class="sub"><form·class="search-form"><span></span><div·id="sidebar-button"·tabindex="-1"><a·href="../../alloc/all.html"·title="show·sidebar"></a></div><input·class="search-input"·name="search"·aria-label="Run·search·in·the·documentation"·autocomplete="off"·spellcheck="false"·placeholder="Click·or·press·‘S’·to·search,·‘?’·for·more·options…"·type="search"><div·id="help-button"·tabindex="-1"><a·href="../../help.html"·title="help">?</a></div><div·id="settings-menu"·tabindex="-1"><a·href="../../settings.html"·title="settings"><img·width="22"·height="22"·alt="Change·settings"·src="../../static.files/wheel-7b819b6101059cd0.svg"></a></div></form></nav><section·id="main-content"·class="content"><div·class="main-heading"><h1>Struct·<a·href="../index.html">alloc</a>::<wbr><a·href="index.html">slice</a>::<wbr><a·class="struct"·href="#">Windows</a><button·id="copy-path"·title="Copy·item·path·to·clipboard"><img·src="../../static.files/clipboard-7571035ce49a181d.svg"·width="19"·height="18"·alt="Copy·item·path"></button></h1><span·class="out-of-band"><span·class="since"·title="Stable·since·Rust·version·1.0.0">1.0.0</span>···<a·class="src"·href="../../src/core/slice/iter.rs.html#1308">source</a>···<button·id="toggle-all-docs"·title="collapse·all·docs">[<span>&#x2212;</span>]</button></span></div><pre·class="rust·item-decl"><code>pub·struct·Windows&lt;'a,·T&gt;<div·class="where">where2 ····<main><div·class="width-limiter"><nav·class="sub"><form·class="search-form"><span></span><div·id="sidebar-button"·tabindex="-1"><a·href="../../alloc/all.html"·title="show·sidebar"></a></div><input·class="search-input"·name="search"·aria-label="Run·search·in·the·documentation"·autocomplete="off"·spellcheck="false"·placeholder="Click·or·press·‘S’·to·search,·‘?’·for·more·options…"·type="search"><div·id="help-button"·tabindex="-1"><a·href="../../help.html"·title="help">?</a></div><div·id="settings-menu"·tabindex="-1"><a·href="../../settings.html"·title="settings"><img·width="22"·height="22"·alt="Change·settings"·src="../../static.files/wheel-7b819b6101059cd0.svg"></a></div></form></nav><section·id="main-content"·class="content"><div·class="main-heading"><h1>Struct·<a·href="../index.html">alloc</a>::<wbr><a·href="index.html">slice</a>::<wbr><a·class="struct"·href="#">Windows</a><button·id="copy-path"·title="Copy·item·path·to·clipboard"><img·src="../../static.files/clipboard-7571035ce49a181d.svg"·width="19"·height="18"·alt="Copy·item·path"></button></h1><span·class="out-of-band"><span·class="since"·title="Stable·since·Rust·version·1.0.0">1.0.0</span>···<a·class="src"·href="https://doc.rust-lang.org/1.78.0/src/core/slice/iter.rs.html#1308">source</a>···<button·id="toggle-all-docs"·title="collapse·all·docs">[<span>&#x2212;</span>]</button></span></div><pre·class="rust·item-decl"><code>pub·struct·Windows&lt;'a,·T&gt;<div·class="where">where
3 ····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 ····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>
4 <p>This·struct·is·created·by·the·<a·href="../../core/primitive.slice.html#method.windows"·title="method·slice::windows"><code>windows</code></a>·method·on·<a·href="../../core/primitive.slice.html"·title="primitive·slice">slices</a>.</p>4 <p>This·struct·is·created·by·the·<a·href="https://doc.rust-lang.org/1.78.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.78.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="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 <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>];
7 <span·class="kw">let·</span>iter·=·slice.windows(<span·class="number">2</span>);</code></pre><a·class="test-arrow"·target="_blank"·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+iter+=+slice.windows(2);%0A%7D&amp;edition=2021">Run</a></div>7 <span·class="kw">let·</span>iter·=·slice.windows(<span·class="number">2</span>);</code></pre><a·class="test-arrow"·target="_blank"·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+iter+=+slice.windows(2);%0A%7D&amp;edition=2021">Run</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-Clone-for-Windows%3C'_,+T%3E"·class="impl"><a·class="src·rightside"·href="../../src/core/slice/iter.rs.html#1322">source</a><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</a>·fo[·...·truncated·by·diffoscope;·len:·1668,·SHA:·2b72bc3ca4a017d7bbd983305417c9f72ec46d6ad16edb708e3f78b45d66dd85·...·]/src/core/slice/iter.rs.html#1305">source</a><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">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-Clone-for-Windows%3C'_,+T%3E"·class="impl"><a·class="src·rightside"·href="https://doc.rust-lang.org/1.78.0/src/core/slice/iter.rs.html#1322">source</a><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.78.0/core/clone/trait.Clo[·...·truncated·by·diffoscope;·len:·1938,·SHA:·a3db02e0e49e6789d8ac088afbf33e0d2c9bc817990887d170c4220da4634877·...·]/src/core/slice/iter.rs.html#1305">source</a><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
9 ····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#1305">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:·5057,·SHA:·8da442adb744f92f92d5ac61ee0488496d4bd26ac665ab1705a80791d50bff21·...·]/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 ····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.78.0/src/core/slice/iter.rs.html#1305">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:·5786,·SHA:·1ca5a67ad6f29da4698a2438a5c653cdb4ccaa0825b39d35c04fd2e74d62760c·...·]/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.78.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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(B,·Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.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.78.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.7[·...·truncated·by·diffoscope;·len:·3,·SHA:·7b1bd53949b752d143d871408483b5382371b5bc48d195d0c040ec93cfa2748b·...·]/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:·74b709f2c818a4eda5d85ea863eb2d8af72c87564dbab2746e67feafb0cbb9a3·...·]/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.78.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:·d66ed7e195a53e9945339ef1976aed455dcf80228d8e5b7b0c69a64c3983fea1·...·]/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.78.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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(B,·Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/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:·f8bdf1e28866c7668477ab391452c7cfa7fd52cc69b633e782a157931421b39b·...·]/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.78.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:·c264047794019a6dcf05728ba6a6ee1f8f07c7209958b3366ba94546b527ecdc·...·]/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.78.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:·8735,·SHA:·79f7ff4f4ec8b5dd7bf419db152be370ffc81d9c683421bf8276e5158621b156·...·]/core/primitive.usize.html">usize</a>&gt;(18 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·10058,·SHA:·2cec8e1fbb6b7b6fd4abefef1a0f075fd43879e54b8a6744ac4c8fdcd37cfd10·...·]/core/primitive.usize.html">usize</a>&gt;(
19 ····&amp;mut·self19 ····&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.78.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.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title=[·...·truncated·by·diffoscope;·len:·381,·SHA:·88c48923c9b7ea5cc47c1087c60e09656e81d4671c58071ba2bef826335388bc·...·]/core/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:·35097ac20cb94a94d329a7511e21173c3e63fd8ce0a6d69b63b12136ae10fe6d·...·]/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.78.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></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:·3b082a2bc331439bfa16e12f26774fc7db23f44625156e2161c751eb349fb5c0·...·]/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.78.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"><a·class="src·rightside"·href="../../src/core/iter/tra[·...·truncated·by·diffoscope;·len:·584,·SHA:·fd3e570373eb5121d35d7e22cdd5dd5fbf7183ee80147135a591fd1285174e82·...·]/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.78.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"><a·class="src·rightside"·hr[·...·truncated·by·diffoscope;·len:·746,·SHA:·f1f70d650c102c8658e13890c7dbfc87418f07e7b522246fb579ec434ef64f7c·...·]/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.78.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:·1017,·SHA:·c0f5f8cfd297e1678ac0ee2fd847fb6f0577665ac326e8e2e9d6414a710c8f98·...·]/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.78.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.78.0/core/iter/traits/it[·...·truncated·by·diffoscope;·len:·1233,·SHA:·f677df2d893dfe0dc1a9d31ebb0ba71a346d265781813e0d664d3f18369b6163·...·]/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.78.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:·c1b5e692e89c9c809075ee8ee72fb15a9ec46c075b08450e1f707d672a224750·...·]/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.78.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:·98627729f77dcf1c9d258f343354ba600b7134c6b3929080f231e8de7155b70b·...·]/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.78.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.78.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.78.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"><a·class="src·rightside"·href="../../src/core/i[·...·truncated·by·diffoscope;·len:·267,·SHA:·1764c9d6d2e39e1367ae2111c28ab846e66ecf12617fbff35e0132e82e5c8b13·...·]/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.78.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"><a·class="src·rights[·...·truncated·by·diffoscope;·len:·375,·SHA:·58419346f92e1709dadb70cc3cf356e3cd27972451bdc6b4fc4267e6f7e8bdae·...·]/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.78.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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::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:·fb4c9589a16c7b6d697c109d1193d2f1e763e5dd967101c2fd92b32416972229·...·]/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.78.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:·98f6effefa44d759c249143d83623f0055d937382bfc398b7e1f5e92cd413657·...·]/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.78.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:·658,·SHA:·e4449b6c00d036dd30444817045eddaf2697443d65789bb5c0b585ed1bc77702·...·]/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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·820,·SHA:·a664bbcbc0891663662e4eb7b4394d0fcd72e568136fc4d34097fea242cc32e7·...·]/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.78.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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·140,·SHA:·752f473b57e7444ebfddf5ea7fd40a332e83ec55524a6c31b5ee0f82a5dea819·...·]/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"><a·class="src·rightside"·href="../../src/core/iter[·...·truncated·by·diffoscope;·len:·285,·SHA:·738ce0440ff568829f40d141e38e2c0da2fd05d2b73d1a574be0ed9baa32e827·...·]/core/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.78.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"><a·class="src·rightside[·...·truncated·by·diffoscope;·len:·393,·SHA:·2e2aa7c9c9c087e7b346da376749064ab8c1894795a2f0a0f646cdc8c7bea997·...·]/core/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.78.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:·767,·SHA:·da0fc5bc95a3398627e0c5836423b719ccea45d351e21ddaa96f793f67f9c6de·...·]/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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·956,·SHA:·faba0521e870dbbd26d466fadba3522e7d29013a9b86376fffafffac11a57e0e·...·]/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.78.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"><a·class="src·rightside"·href="../../src/core/ite[·...·truncated·by·diffoscope;·len:·264,·SHA:·e3fa7ab43c6353bc2216a22d7010c41a8ab50d273a128d15d0eff050c058993a·...·]/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.78.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"><a·class="src·rightsid[·...·truncated·by·diffoscope;·len:·372,·SHA:·03eea0861575eb80d3f7a87a3ba747adb1a33fe7e9ce72aa2172e7a287c63a94·...·]/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.78.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.78.0/core/iter/adapte[·...·truncated·by·diffoscope;·len:·175,·SHA:·16fe7225bf05b478e2828b347c3d23ded9a22f89d8887a2c65d9f7b3faf1b0e7·...·]/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"><a·class="src·rightside"·href="../../src/core/it[·...·truncated·by·diffoscope;·len:·294,·SHA:·c0aee2077af6a4f81ed47e37c84a75b5f9b941875509fbe0b3d352866f825f45·...·]/core/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.78.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"><a·class="src·rightsi[·...·truncated·by·diffoscope;·len:·402,·SHA:·7689a974f800fd069d1b4453ef62d6d6ad1b654462d624d36e3672051d502030·...·]/core/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.78.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:·922,·SHA:·5220bbb4db3c3cd3d7ca7c27520f44f04fe367ee2f0f407fb1d50c0a327a2f99·...·]/core/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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·1138,·SHA:·f6ae06b7de8e94df014341c5cf589a5e4a1298367b2ef7a968ec499c5170a70e·...·]/core/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.78.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:·39eeddf219b211245393e51a591d5064c740fa9be49d88883d8a6474679741ad·...·]/core/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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·1058,·SHA:·b390dbdda8d7e93604b5ecd906a93efd03fe19bdaf41cf12893fd361bf974307·...·]/core/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.78.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:·851,·SHA:·ad2e090d21a034b7c3836ed38a686f4c483f9a929132fef846d48271f749a79c·...·]/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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·1067,·SHA:·415d32e1211c35d3bb405de1d6e51c2102c14cadc3333894f063148dbe0b1f69·...·]/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:·525,·SHA:·6471f48fecadc56edf21fc04794b884b96ce06d339c715e410f5a906e028bc28·...·]/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.78.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:·687,·SHA:·7f5256104c35c5948a2cb42b55f3048c9d2887e48a4a8226537a284f959c562a·...·]/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.78.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"><a·class="src·rightside"·href="../../src/core/iter/traits/[·...·truncated·by·diffoscope;·len:·284,·SHA:·aee83f38f8c40848e159b12a8faa43b9dadf589fe974632a1f15ce2a15834071·...·]/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.78.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"><a·class="src·rightside"·href="[·...·truncated·by·diffoscope;·len:·392,·SHA:·4e7da68f7be2622ef173653eca78d58e1f202b544a2e6abd14d8335c298c93a7·...·]/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.78.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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(<a·class="primitive"·href="https://doc.rust-lang.org/1.78.0/core/primitive.reference.html">&amp;mut·St</a>,·Self::<a·class="associatedty[·...·truncated·by·diffoscope;·len:·449,·SHA:·f12c268a8a8111b9e7126ad78bf5523a63733caa63d187c4fe792309ea41acdf·...·]/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:·459,·SHA:·b825570d9672670eacd8828b3abec12cd1c35433286857de28f5ea8d5e300e03·...·]/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.78.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.78.0/core/iter/trai[·...·truncated·by·diffoscope;·len:·594,·SHA:·02960742fa7892efaa08f289ce85865fc5efb6a4cd138c22e3566ca6fc727d78·...·]/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.78.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.78.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:·9b6a337a3ad68c2a987b52450c153f87a04a8ed9e83603d26077fe6e70d61edf·...·]/core/iter/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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·976,·SHA:·2a9182f6fe88e0b8a9b1ae1f46cace940cc0b8736033c354c0f0ccbf1c196e7a·...·]/core/iter/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.78.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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;[Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtyp[·...·truncated·by·diffoscope;·len:·135,·SHA:·0b06a6094d42ccbc8bce5b01c4383961fe7f1967f05e4c9f1ff33e71e425fb26·...·]/core/primitive.array.html">N</a>])·-&gt;·R,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iter_map_windows</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/87155">#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.78.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"><a·class="src·rightside"·href="../../src/core/iter/[·...·truncated·by·diffoscope;·len:·250,·SHA:·e355ddd0f04b2470ee915aec3ad97857be56b95e6a1f3d733d6c477453f4cf0d·...·]/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.78.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"><a·class="src·rightside"[·...·truncated·by·diffoscope;·len:·358,·SHA:·d91b2ab18e0ce069e262cf523c6ef961f56eecad042ea1e9bcefe33cff28fc8f·...·]/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:·583,·SHA:·b7d7d6125e8980756a2636a6b6e01600057c98a027dcf7d267b1f61538a7b6b0·...·]/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.78.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.78.0/core/op[·...·truncated·by·diffoscope;·len:·745,·SHA:·424783f22102f4446d3ad4d362b1aafdb7531fa777213f97ee138aa878f67bd1·...·]/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.78.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:·676,·SHA:·ae75f35cafbae1e0e695226baca09b0bec6e4a0ed5656a83c3357b29fb00442d·...·]/core/primitive.reference.html">&amp;mut·Self</a><div·class="where">where67 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·838,·SHA:·9b4fd8df7f41e9a76fd4cfca0a233b74b9bd27c3fe8228248abc3f940425a3e3·...·]/core/primitive.reference.html">&amp;mut·Self</a><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:·319,·SHA:·bbb653fcb1f5ad46e04905bf78a76b9dd63ea5d49a2d8cd5b7b36efbb0f7e105·...·]/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.78.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.78.0/core/it[·...·truncated·by·diffoscope;·len:·427,·SHA:·ecfaaac5d1d10c1bc4fcee9a050af0a268bee0b528c2d8ea4e9774440bd8a279·...·]/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.78.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.78.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:·e5d524e874326d0b9b733f5ee809c6595cde869afab0cc3d4ba8454093f420da·...·]/core/primitive.reference.html">&amp;mut·E</a><div·class="where">where70 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.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.78.0/core/iter/tr[·...·truncated·by·diffoscope;·len:·728,·SHA:·01937c2dc314c259495665570ae249c94b4a5b0719718f5f1188e6fc64ecf487·...·]/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.78.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.78.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:·744,·SHA:·a7446142ab67c3f20d866315fbe6cb9c57cd4af012812d6dd19d5061aee6e97b·...·]/core/primitive.tuple.html">(B,·B)</a><div·class="where">where72 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experiment[·...·truncated·by·diffoscope;·len:·879,·SHA:·e773b2222c92d001e295030cb47a780ab0c1132d7fc8e9e3a98de4f532e6c520·...·]/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.78.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.78.0/core/default/trait.Default.html"·title="trait·core::default::Default">Default</a>·+·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/collect/trait.Extend.html"·title="trait·core::iter::traits::collec[·...·truncated·by·diffoscope;·len:·95,·SHA:·8b3be1d0042cae0550f865faf5849221240bdf04eb1b2107605b72d48c3ad29c·...·]/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:·5a1bcc1ddfc5fccf50d61bf2b8879dae247aa12c0b23ba2f437fd2a345cabac7·...·]/core/primitive.usize.html">usize</a><div·class="where">where75 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·995,·SHA:·bec3765fdab56713186e2454cd84738b5b28e3280a2f3d5a25cefdbc3089b520·...·]/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.78.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>·+·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/double_ended/trait.DoubleEndedIterator.html"·title="trait·core::iter::trai[·...·truncated·by·diffoscope;·len:·132,·SHA:·e5b2cf5f56946ede1e190ed09879c5821e2de04cf8e5d145142eeb40c6340982·...·]/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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(<a·class="primitive"·href="https://doc.rust-lang.org/1.78.0/core/primitive.reference.html">&amp;T</a>)·-&gt;·<a·class="primitive"·href="[·...·truncated·by·diffoscope;·len:·32,·SHA:·63d052a8ced32bf927ffadd7e884c08caf4970e85dfdf6be0e568d49b174da96·...·]/core/primitive.bool.html">bool</a>,</div></h4></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:·97056c44eac6a0f986fb2c8edec37302cc06edf44a6c6f7153a5d8623d8d6c0d·...·]/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.78.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:·0c224636c18baa273f69de21f90083317f2ea0b7367a3f0d0f1c0ace55a36f79·...·]/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.78.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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·135,·SHA:·51ff5f5c7ebd8440623ea71b125c5a5837e809e308fe1a13fbe19cddb941dbd9·...·]/core/primitive.bool.html">bool</a>,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iter_is_partitioned</code>&nbsp;<a·href="https://github.com/rust-lang/rust/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:·6f406a351b93047f56fa70265a6bf28ec6874f75cd6cc5a39d51c7af462f2992·...·]/core/iter/traits/iterator/trait.Iterator.html#method.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.78.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:·2c74873f4e5ba70004a1c7edd1cc3f9e2d91271295dd1591e2d26848df4c02ba·...·]/core/iter/traits/iterator/trait.Iterator.html#method.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.78.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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(B,·Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.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.78.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:·eecdce021399d206eb3ef5af12ee7663b4eb0dca55b0f411c7fa66f605b6b2e2·...·]/core/iter/traits/iterator/trait.Iterator.html#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.78.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:·52912e82c4b0a760d06f77eb4ee3a59ba70dd76cb532954900c73ae94c652674·...·]/core/iter/traits/iterator/trait.Iterator.html#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.78.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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.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.78.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.78.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"><a·class="src·rightside"·href="../../src/core/iter[·...·truncated·by·diffoscope;·len:·130,·SHA:·75c0150024fe6cdc702d7337508ab57600248490dd062768204ddb064c9a1b8b·...·]/core/iter/traits/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.78.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"><a·class="src·rightside[·...·truncated·by·diffoscope;·len:·211,·SHA:·924e062acd8127e8d6158162219ee5d57a941854e14063d21d7768edae549431·...·]/core/iter/traits/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.78.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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(B,·Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::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:·dbe3a08fe63abd47570741e71208c31aaf51152feac5917db07665a1f56bb3e3·...·]/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.78.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:·b60215068a6d9721be05f81098c51167d7138c4042f140cad42f77c4df43f597·...·]/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.78.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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·352,·SHA:·e7c3c296abe2c0a183967153e4ae7fd50bafa2ae7088e3e78b3b48fee253adc6·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::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:·a9dce8bb557b5a11426bf2ffcbd5eea7c6c870833e3ee5bb072dcaaa11687b0c·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_reduce"·class="fn">try_reduce</a>&lt;F,·R&gt;(97 operation.·<a·href="https://doc.rust-lang.org/1.78.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:·7a18fdd041b1a001b4a8feb289ee127fd9240232239269eb35dc3b8f74783ec9·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_reduce"·class="fn">try_reduce</a>&lt;F,·R&gt;(
98 ····&amp;mut·self,98 ····&amp;mut·self,
99 ····f:·F99 ····f:·F
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.78.0/core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&gt;::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/ops/try_trait/trait.Try.html#associatedtype.Residual"·title="type[·...·truncated·by·diffoscope;·len:·754,·SHA:·6fb4dfdb6b4da68921c1e7f8b75d99cf293d58318d684a840254ce9576957bea·...·]/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.78.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:·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:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·140,·SHA:·c27972e6fa3464c9476eaa185e8657edb6bb294f148403f3d079285294a9f909·...·]/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·=·Self::<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.78.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.78.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.78.0/core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&gt;::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/ops/try_trait/trait.Try.html#associatedtype.Residual"·title="type[·...·truncated·by·diffoscope;·len:·412,·SHA:·22b8cbb007e5cce82b9d13a65bfa56aa8d83c32541fac25f4d9b3857b0540908·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;&gt;,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iterator_try_reduce</code>&nbsp;<a·href="https://github.com/rust-lang/rust/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"><a·class="src·rightside"·href="../../src/core/iter/tr[·...·truncated·by·diffoscope;·len:·272,·SHA:·97959736d897a01242f49f2e45854ab874bf0c9bbe30acad9a49eb73169e457c·...·]/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.78.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"><a·class="src·rightside"·h[·...·truncated·by·diffoscope;·len:·380,·SHA:·29c4004d4d8b0c8c9dfe9023f8b2c5ef801d9dc4688893035d182c1ae774c453·...·]/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.78.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:·733,·SHA:·9bb9f0199d90f78ad65c59dbe67a1c751cd5a681130a03bef3b1e8ed907a3bba·...·]/core/primitive.bool.html">bool</a><div·class="where">where107 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·922,·SHA:·f4fd532c280e18f28bd6dda6c2a129e2e92114b67f27235bb5fd39f725be9c43·...·]/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.78.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:·860,·SHA:·6a94ae33b82eb12a91660811a8ab9d243468d885c07ac766a2507d25a4e7ee62·...·]/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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·1076,·SHA:·2dd9de8adaee4a5ee96501d9a58bfac2fea00ba8d78b834bfca29949b3afe18b·...·]/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.78.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:·21d7086b3ce0092e3f7a6a41174339bbd8724e7d186158db4db3385a73d94e8e·...·]/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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·1051,·SHA:·ecc0b8fccd861464760f9ae047ff6ab98c91a1db010cb5fa59a8c2ab883db7c4·...·]/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.78.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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·130,·SHA:·130a13019dc175d02304b4f550157e2f13ac15c2f25a979c74161d10b146ab89·...·]/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:·ac4da3337aac1ec10038e246be9cb719eeb5af1acc709f5a6a25b91900c56f53·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_find"·class="fn">try_find</a>&lt;F,·R&gt;(114 the·first·non-none·result.·<a·href="https://doc.rust-lang.org/1.78.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:·8ced1b10e78750774c5c8ed995ed83dcd13983aa75d329acf8069da106ab9f4a·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_find"·class="fn">try_find</a>&lt;F,·R&gt;(
115 ····&amp;mut·self,115 ····&amp;mut·self,
116 ····f:·F116 ····f:·F
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.78.0/core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&gt;::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/ops/try_trait/trait.Try.html#associatedtype.Residual"·title="type[·...·truncated·by·diffoscope;·len:·626,·SHA:·95f9831257b68862cbcbf54f0ad2ff4e597a4c9f763112d1da8a0897dadcf872·...·]/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.78.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;·R,119 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·R,
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.78.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.78.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.78.0/core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&gt;::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/ops/try_trait/trait.Try.html#associatedtype.Residual"·title="type[·...·truncated·by·diffoscope;·len:·412,·SHA:·22b8cbb007e5cce82b9d13a65bfa56aa8d83c32541fac25f4d9b3857b0540908·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;&gt;,</div></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"><a·class="src·rightside"·href="../../src/core/iter[·...·truncated·by·diffoscope;·len:·404,·SHA:·f45e13f24791f759991b5b3c0f29ce7cc9019b87d7ca444f65464e8a939e287c·...·]/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.78.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"><a·class="src·rightside[·...·truncated·by·diffoscope;·len:·539,·SHA:·04e329705f11ed9ec269a68b0b75ac4ab26c78e4316a571ee9336c28bbca6359·...·]/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.78.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:·877,·SHA:·075b700e51707b888367963648dd2aecf8d17daa7cc803f00bfcc74c2a659f56·...·]/core/primitive.usize.html">usize</a>&gt;<div·class="where">where124 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·1093,·SHA:·623dbacabfe45799103c799fb60a4d212ceb8759ff853a11209a07793257c9cd·...·]/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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·135,·SHA:·51ff5f5c7ebd8440623ea71b125c5a5837e809e308fe1a13fbe19cddb941dbd9·...·]/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.78.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>·+·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/exact_size/trait.ExactSizeIterator.html"·title="trait·core::iter::traits::[·...·truncated·by·diffoscope;·len:·110,·SHA:·a8846fff2831d0de2de7dbb91c4e50f6f60fac276813cbaa471bf32fb45120d4·...·]/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.78.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:·c876e8603f9248b122c6d4a7db3091b70f098f834ba7b3112a8b68d5e7ade3ed·...·]/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; 85505/311613 bytes (27.44%) of diff not shown.
18.4 KB
./usr/share/doc/rust-web-doc/html/alloc/slice/trait.Concat.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="Helper·trait·for·`[T]::concat`."><title>Concat·in·alloc::slice·-·Rust</title><script>·if·(window.location.protocol·!==·"file:")·document.write(`<link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/SourceSerif4-Regular-46f98efaafac5295.ttf.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/FiraSans-Regular-018c141bf0843ffd.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/FiraSans-Medium-8f9a781e4970d388.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/SourceCodePro-Regular-562dcc5011b6de7d.ttf.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/SourceCodePro-Semibold-d899c5a5c4aeb14a.ttf.woff2">`)</script><link·rel="stylesheet"·href="../../static.files/normalize-76eba96aa4d2e634.css"><link·rel="stylesheet"·href="../../static.files/rustdoc-35f9e32502181f1e.css"><meta·name="rustdoc-vars"·data-root-path="../../"·data-static-root-path="../../static.files/"·data-current-crate="alloc"·data-themes=""·data-resource-suffix="1.78.0"·data-rustdoc-version="1.78.0"·data-channel="1.78.0"·data-search-js="search-42d8da7a6b9792c2.js"·data-settings-js="settings-4313503d2e1961c2.js"·><script·src="../../static.files/storage-4c98445ec4002617.js"></script><script·defer·src="sidebar-items1.78.0.js"></script><script·defer·src="../../static.files/main-12cf3b4f4f9dc36d.js"></script><noscript><link·rel="stylesheet"·href="../../static.files/noscript-04d5337699b92874.css"></noscript><link·rel="alternate·icon"·type="image/png"·href="../../static.files/favicon-16x16-8b506e7a72182f1c.png"><link·rel="alternate·icon"·type="image/png"·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.78.0</span></h2></div><h2·class="location"><a·href="#">Concat</a></h2><div·class="sidebar-elems"><section><h3><a·href="#required-associated-types">Required·Associated·Types</a></h3><ul·class="block"><li><a·href="#associatedtype.Output">Output</a></li></ul><h3><a·href="#required-methods">Required·Methods</a></h3><ul·class="block"><li><a·href="#tymethod.concat">concat</a></li></ul><h3><a·href="#object-safety">Object·Safety</a></h3><h3><a·href="#implementors">Implementors</a></h3></section><h2><a·href="index.html">In·alloc::slice</a></h2></div></nav><div·class="sidebar-resizer"></div>1 <!DOCTYPE·html><html·lang="en"><head><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.write(`<link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/SourceSerif4-Regular-46f98efaafac5295.ttf.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/FiraSans-Regular-018c141bf0843ffd.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/FiraSans-Medium-8f9a781e4970d388.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/SourceCodePro-Regular-562dcc5011b6de7d.ttf.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/SourceCodePro-Semibold-d899c5a5c4aeb14a.ttf.woff2">`)</script><link·rel="stylesheet"·href="../../static.files/normalize-76eba96aa4d2e634.css"><link·rel="stylesheet"·href="../../static.files/rustdoc-35f9e32502181f1e.css"><meta·name="rustdoc-vars"·data-root-path="../../"·data-static-root-path="../../static.files/"·data-current-crate="alloc"·data-themes=""·data-resource-suffix="1.78.0"·data-rustdoc-version="1.78.0"·data-channel="1.78.0"·data-search-js="search-42d8da7a6b9792c2.js"·data-settings-js="settings-4313503d2e1961c2.js"·><script·src="../../static.files/storage-4c98445ec4002617.js"></script><script·defer·src="sidebar-items1.78.0.js"></script><script·defer·src="../../static.files/main-12cf3b4f4f9dc36d.js"></script><noscript><link·rel="stylesheet"·href="../../static.files/noscript-04d5337699b92874.css"></noscript><link·rel="alternate·icon"·type="image/png"·href="../../static.files/favicon-16x16-8b506e7a72182f1c.png"><link·rel="alternate·icon"·type="image/png"·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.78.0</span></h2></div><h2·class="location"><a·href="#">Concat</a></h2><div·class="sidebar-elems"><section><h3><a·href="#required-associated-types">Required·Associated·Types</a></h3><ul·class="block"><li><a·href="#associatedtype.Output">Output</a></li></ul><h3><a·href="#required-methods">Required·Methods</a></h3><ul·class="block"><li><a·href="#tymethod.concat">concat</a></li></ul><h3><a·href="#object-safety">Object·Safety</a></h3><h3><a·href="#implementors">Implementors</a></h3></section><h2><a·href="index.html">In·alloc::slice</a></h2></div></nav><div·class="sidebar-resizer"></div>
2 ····<main><div·class="width-limiter"><nav·class="sub"><form·class="search-form"><span></span><div·id="sidebar-button"·tabindex="-1"><a·href="../../alloc/all.html"·title="show·sidebar"></a></div><input·class="search-input"·name="search"·aria-label="Run·search·in·the·documentation"·autocomplete="off"·spellcheck="false"·placeholder="Click·or·press·‘S’·to·search,·‘?’·for·more·options…"·type="search"><div·id="help-button"·tabindex="-1"><a·href="../../help.html"·title="help">?</a></div><div·id="settings-menu"·tabindex="-1"><a·href="../../settings.html"·title="settings"><img·width="22"·height="22"·alt="Change·settings"·src="../../static.files/wheel-7b819b6101059cd0.svg"></a></div></form></nav><section·id="main-content"·class="content"><div·class="main-heading"><h1>Trait·<a·href="../index.html">alloc</a>::<wbr><a·href="index.html">slice</a>::<wbr><a·class="trait"·href="#">Concat</a><button·id="copy-path"·title="Copy·item·path·to·clipboard"><img·src="../../static.files/clipboard-7571035ce49a181d.svg"·width="19"·height="18"·alt="Copy·item·path"></button></h1><span·class="out-of-band"><a·class="src"·href="../../src/alloc/slice.rs.html#683-691">source</a>···<button·id="toggle-all-docs"·title="collapse·all·docs">[<span>&#x2212;</span>]</button></span></div><pre·class="rust·item-decl"><code>pub·trait·Concat&lt;Item:·?<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>&gt;·{2 ····<main><div·class="width-limiter"><nav·class="sub"><form·class="search-form"><span></span><div·id="sidebar-button"·tabindex="-1"><a·href="../../alloc/all.html"·title="show·sidebar"></a></div><input·class="search-input"·name="search"·aria-label="Run·search·in·the·documentation"·autocomplete="off"·spellcheck="false"·placeholder="Click·or·press·‘S’·to·search,·‘?’·for·more·options…"·type="search"><div·id="help-button"·tabindex="-1"><a·href="../../help.html"·title="help">?</a></div><div·id="settings-menu"·tabindex="-1"><a·href="../../settings.html"·title="settings"><img·width="22"·height="22"·alt="Change·settings"·src="../../static.files/wheel-7b819b6101059cd0.svg"></a></div></form></nav><section·id="main-content"·class="content"><div·class="main-heading"><h1>Trait·<a·href="../index.html">alloc</a>::<wbr><a·href="index.html">slice</a>::<wbr><a·class="trait"·href="#">Concat</a><button·id="copy-path"·title="Copy·item·path·to·clipboard"><img·src="../../static.files/clipboard-7571035ce49a181d.svg"·width="19"·height="18"·alt="Copy·item·path"></button></h1><span·class="out-of-band"><a·class="src"·href="../../src/alloc/slice.rs.html#683-691">source</a>···<button·id="toggle-all-docs"·title="collapse·all·docs">[<span>&#x2212;</span>]</button></span></div><pre·class="rust·item-decl"><code>pub·trait·Concat&lt;Item:·?<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>&gt;·{
3 ····type·<a·href="#associatedtype.Output"·class="associatedtype">Output</a>;3 ····type·<a·href="#associatedtype.Output"·class="associatedtype">Output</a>;
  
4 ····//·Required·method4 ····//·Required·method
5 ····fn·<a·href="#tymethod.concat"·class="fn">concat</a>(slice:·<a·class="primitive"·href="../../core/primitive.reference.html">&amp;Self</a>)·-&gt;·Self::<a·class="associatedtype"·href="trait.Concat.html#associatedtype.Output"·title="type·alloc::slice::Concat::Output">Output</a>;5 ····fn·<a·href="#tymethod.concat"·class="fn">concat</a>(slice:·<a·class="primitive"·href="https://doc.rust-lang.org/1.78.0/core/primitive.reference.html">&amp;Self</a>)·-&gt;·Self::<a·class="associatedtype"·href="trait.Concat.html#associatedtype.Output"·title="type·alloc::slice::Concat::Output">Output</a>;
6 }</code></pre><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>slice_concat_trait</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/27747">#27747</a>)</span></div></span><details·class="toggle·top-doc"·open><summary·class="hideme"><span>Expand·description</span></summary><div·class="docblock"><p>Helper·trait·for·<a·href="../../core/primitive.slice.html#method.concat"·title="method·slice::concat"><code>[T]::concat</code></a>.</p>6 }</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.78.0/core/primitive.slice.html#method.concat"·title="method·slice::concat"><code>[T]::concat</code></a>.</p>
7 <p>Note:·the·<code>Item</code>·type·parameter·is·not·used·in·this·trait,7 <p>Note:·the·<code>Item</code>·type·parameter·is·not·used·in·this·trait,
8 but·it·allows·impls·to·be·more·generic.8 but·it·allows·impls·to·be·more·generic.
9 Without·it,·we·get·this·error:</p>9 Without·it,·we·get·this·error:</p>
10 <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·predica10 <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
11 ···--&gt;·library/alloc/src/slice.rs:608:611 ···--&gt;·library/alloc/src/slice.rs:608:6
12 ····|12 ····|
13 608·|·impl&lt;T:·Clone,·V:·Borrow&lt;[T]&gt;&gt;·Concat·for·[V]·{13 608·|·impl&lt;T:·Clone,·V:·Borrow&lt;[T]&gt;&gt;·Concat·for·[V]·{
Offset 23, 11 lines modifiedOffset 23, 11 lines modified
23 ····<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>}23 ····<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>}
24 }24 }
  
25 <span·class="kw">impl·</span>std::borrow::Borrow&lt;[String]&gt;·<span·class="kw">for·</span>Foo·{25 <span·class="kw">impl·</span>std::borrow::Borrow&lt;[String]&gt;·<span·class="kw">for·</span>Foo·{
26 ····<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>}26 ····<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>}
27 }</code></pre><a·class="test-arrow"·target="_blank"·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">Run</a></div>27 }</code></pre><a·class="test-arrow"·target="_blank"·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">Run</a></div>
28 </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#686">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>28 </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#686">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>
29 </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#690">source</a><h4·class="code-header">fn·<a·href="#tymethod.concat"·class="fn">concat</a>(slice:·<a·class="primitive"·href="../../core/primitive.reference.html">&amp;Self</a>)·-&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"><[·...·truncated·by·diffoscope;·len:·267,·SHA:·0ce8787d340ffbe929d8a8bc8c78e97f78f5374c88308696266b29dd3157a011·...·]/core/primitive.slice.html#method.concat"·title="method·slice::concat"><code>[T]::concat</code></a></p>29 </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#690">source</a><h4·class="code-header">fn·<a·href="#tymethod.concat"·class="fn">concat</a>(slice:·<a·class="primitive"·href="https://doc.rust-lang.org/1.78.0/core/primitive.reference.html">&amp;Self</a>)·-&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"><[·...·truncated·by·diffoscope;·len:·321,·SHA:·b6909ce6dffc4dbb969f106e9d7423e3de45882fd52e33ec017c4e53321f2193·...·]/core/primitive.slice.html#method.concat"·title="method·slice::concat"><code>[T]::concat</code></a></p>
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.78.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#63-69">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.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.78.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#63-69">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.78.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.78.0/core/primitive.str.html">str</a[·...·truncated·by·diffoscope;·len:·69,·SHA:·3518369197ed6992da70da063ac64f9343028ac1db4ccc04a92b20544d68b798·...·]/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.
31 This·type·parameter·of·the·trait·only·exists·to·enable·another·impl.</p>31 This·type·parameter·of·the·trait·only·exists·to·enable·another·impl.</p>
32 </div><div·class="impl-items"><section·id="associatedtype.Output-1"·class="associatedtype·trait-impl"><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#707-718">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·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>32 </div><div·class="impl-items"><section·id="associatedtype.Output-1"·class="associatedtype·trait-impl"><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#707-718">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.78.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:·8ea8ad80ea13c823ae11b3fd5ea117308a9083325cbe20eadcb6afbf9f136c44·...·]/core/primitive.slice.html">[V]</a></h3></section></summary><div·class="impl-items"><section·id="associatedtype.Output-2"·class="associatedtype·trait-impl"><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>
17.7 KB
./usr/share/doc/rust-web-doc/html/alloc/slice/trait.Join.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="Helper·trait·for·`[T]::join`"><title>Join·in·alloc::slice·-·Rust</title><script>·if·(window.location.protocol·!==·"file:")·document.write(`<link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/SourceSerif4-Regular-46f98efaafac5295.ttf.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/FiraSans-Regular-018c141bf0843ffd.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/FiraSans-Medium-8f9a781e4970d388.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/SourceCodePro-Regular-562dcc5011b6de7d.ttf.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/SourceCodePro-Semibold-d899c5a5c4aeb14a.ttf.woff2">`)</script><link·rel="stylesheet"·href="../../static.files/normalize-76eba96aa4d2e634.css"><link·rel="stylesheet"·href="../../static.files/rustdoc-35f9e32502181f1e.css"><meta·name="rustdoc-vars"·data-root-path="../../"·data-static-root-path="../../static.files/"·data-current-crate="alloc"·data-themes=""·data-resource-suffix="1.78.0"·data-rustdoc-version="1.78.0"·data-channel="1.78.0"·data-search-js="search-42d8da7a6b9792c2.js"·data-settings-js="settings-4313503d2e1961c2.js"·><script·src="../../static.files/storage-4c98445ec4002617.js"></script><script·defer·src="sidebar-items1.78.0.js"></script><script·defer·src="../../static.files/main-12cf3b4f4f9dc36d.js"></script><noscript><link·rel="stylesheet"·href="../../static.files/noscript-04d5337699b92874.css"></noscript><link·rel="alternate·icon"·type="image/png"·href="../../static.files/favicon-16x16-8b506e7a72182f1c.png"><link·rel="alternate·icon"·type="image/png"·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.78.0</span></h2></div><h2·class="location"><a·href="#">Join</a></h2><div·class="sidebar-elems"><section><h3><a·href="#required-associated-types">Required·Associated·Types</a></h3><ul·class="block"><li><a·href="#associatedtype.Output">Output</a></li></ul><h3><a·href="#required-methods">Required·Methods</a></h3><ul·class="block"><li><a·href="#tymethod.join">join</a></li></ul><h3><a·href="#object-safety">Object·Safety</a></h3><h3><a·href="#implementors">Implementors</a></h3></section><h2><a·href="index.html">In·alloc::slice</a></h2></div></nav><div·class="sidebar-resizer"></div>1 <!DOCTYPE·html><html·lang="en"><head><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.write(`<link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/SourceSerif4-Regular-46f98efaafac5295.ttf.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/FiraSans-Regular-018c141bf0843ffd.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/FiraSans-Medium-8f9a781e4970d388.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/SourceCodePro-Regular-562dcc5011b6de7d.ttf.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/SourceCodePro-Semibold-d899c5a5c4aeb14a.ttf.woff2">`)</script><link·rel="stylesheet"·href="../../static.files/normalize-76eba96aa4d2e634.css"><link·rel="stylesheet"·href="../../static.files/rustdoc-35f9e32502181f1e.css"><meta·name="rustdoc-vars"·data-root-path="../../"·data-static-root-path="../../static.files/"·data-current-crate="alloc"·data-themes=""·data-resource-suffix="1.78.0"·data-rustdoc-version="1.78.0"·data-channel="1.78.0"·data-search-js="search-42d8da7a6b9792c2.js"·data-settings-js="settings-4313503d2e1961c2.js"·><script·src="../../static.files/storage-4c98445ec4002617.js"></script><script·defer·src="sidebar-items1.78.0.js"></script><script·defer·src="../../static.files/main-12cf3b4f4f9dc36d.js"></script><noscript><link·rel="stylesheet"·href="../../static.files/noscript-04d5337699b92874.css"></noscript><link·rel="alternate·icon"·type="image/png"·href="../../static.files/favicon-16x16-8b506e7a72182f1c.png"><link·rel="alternate·icon"·type="image/png"·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.78.0</span></h2></div><h2·class="location"><a·href="#">Join</a></h2><div·class="sidebar-elems"><section><h3><a·href="#required-associated-types">Required·Associated·Types</a></h3><ul·class="block"><li><a·href="#associatedtype.Output">Output</a></li></ul><h3><a·href="#required-methods">Required·Methods</a></h3><ul·class="block"><li><a·href="#tymethod.join">join</a></li></ul><h3><a·href="#object-safety">Object·Safety</a></h3><h3><a·href="#implementors">Implementors</a></h3></section><h2><a·href="index.html">In·alloc::slice</a></h2></div></nav><div·class="sidebar-resizer"></div>
2 ····<main><div·class="width-limiter"><nav·class="sub"><form·class="search-form"><span></span><div·id="sidebar-button"·tabindex="-1"><a·href="../../alloc/all.html"·title="show·sidebar"></a></div><input·class="search-input"·name="search"·aria-label="Run·search·in·the·documentation"·autocomplete="off"·spellcheck="false"·placeholder="Click·or·press·‘S’·to·search,·‘?’·for·more·options…"·type="search"><div·id="help-button"·tabindex="-1"><a·href="../../help.html"·title="help">?</a></div><div·id="settings-menu"·tabindex="-1"><a·href="../../settings.html"·title="settings"><img·width="22"·height="22"·alt="Change·settings"·src="../../static.files/wheel-7b819b6101059cd0.svg"></a></div></form></nav><section·id="main-content"·class="content"><div·class="main-heading"><h1>Trait·<a·href="../index.html">alloc</a>::<wbr><a·href="index.html">slice</a>::<wbr><a·class="trait"·href="#">Join</a><button·id="copy-path"·title="Copy·item·path·to·clipboard"><img·src="../../static.files/clipboard-7571035ce49a181d.svg"·width="19"·height="18"·alt="Copy·item·path"></button></h1><span·class="out-of-band"><a·class="src"·href="../../src/alloc/slice.rs.html#695-703">source</a>···<button·id="toggle-all-docs"·title="collapse·all·docs">[<span>&#x2212;</span>]</button></span></div><pre·class="rust·item-decl"><code>pub·trait·Join&lt;Separator&gt;·{2 ····<main><div·class="width-limiter"><nav·class="sub"><form·class="search-form"><span></span><div·id="sidebar-button"·tabindex="-1"><a·href="../../alloc/all.html"·title="show·sidebar"></a></div><input·class="search-input"·name="search"·aria-label="Run·search·in·the·documentation"·autocomplete="off"·spellcheck="false"·placeholder="Click·or·press·‘S’·to·search,·‘?’·for·more·options…"·type="search"><div·id="help-button"·tabindex="-1"><a·href="../../help.html"·title="help">?</a></div><div·id="settings-menu"·tabindex="-1"><a·href="../../settings.html"·title="settings"><img·width="22"·height="22"·alt="Change·settings"·src="../../static.files/wheel-7b819b6101059cd0.svg"></a></div></form></nav><section·id="main-content"·class="content"><div·class="main-heading"><h1>Trait·<a·href="../index.html">alloc</a>::<wbr><a·href="index.html">slice</a>::<wbr><a·class="trait"·href="#">Join</a><button·id="copy-path"·title="Copy·item·path·to·clipboard"><img·src="../../static.files/clipboard-7571035ce49a181d.svg"·width="19"·height="18"·alt="Copy·item·path"></button></h1><span·class="out-of-band"><a·class="src"·href="../../src/alloc/slice.rs.html#695-703">source</a>···<button·id="toggle-all-docs"·title="collapse·all·docs">[<span>&#x2212;</span>]</button></span></div><pre·class="rust·item-decl"><code>pub·trait·Join&lt;Separator&gt;·{
3 ····type·<a·href="#associatedtype.Output"·class="associatedtype">Output</a>;3 ····type·<a·href="#associatedtype.Output"·class="associatedtype">Output</a>;
  
4 ····//·Required·method4 ····//·Required·method
5 ····fn·<a·href="#tymethod.join"·class="fn">join</a>(slice:·<a·class="primitive"·href="../../core/primitive.reference.html">&amp;Self</a>,·sep:·Separator)·-&gt;·Self::<a·class="associatedtype"·href="trait.Join.html#associatedtype.Output"·title="type·alloc::slice::Join::Output">Output</a>;5 ····fn·<a·href="#tymethod.join"·class="fn">join</a>(slice:·<a·class="primitive"·href="https://doc.rust-lang.org/1.78.0/core/primitive.reference.html">&amp;Self</a>,·sep:·Separator)·-&gt;·Self::<a·class="associatedtype"·href="trait.Join.html#associatedtype.Output"·title="type·alloc::slice::Join::Output">Output</a>;
6 }</code></pre><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>slice_concat_trait</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/27747">#27747</a>)</span></div></span><details·class="toggle·top-doc"·open><summary·class="hideme"><span>Expand·description</span></summary><div·class="docblock"><p>Helper·trait·for·<a·href="../../core/primitive.slice.html#method.join"·title="method·slice::join"><code>[T]::join</code></a></p>6 }</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.78.0/core/primitive.slice.html#method.join"·title="method·slice::join"><code>[T]::join</code></a></p>
7 </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#698">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><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#698">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>
8 </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#702">source</a><h4·class="code-header">fn·<a·href="#tymethod.join"·class="fn">join</a>(slice:·<a·class="primitive"·href="../../core/primitive.reference.html">&amp;Self</a>,·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[·...·truncated·by·diffoscope;·len:·279,·SHA:·a7879873a9332fa27cb5aaf0561b0fc49a9c48450d088c82583530efee3fd1bb·...·]/core/primitive.slice.html#method.join"·title="method·slice::join"><code>[T]::join</code></a></p>8 </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#702">source</a><h4·class="code-header">fn·<a·href="#tymethod.join"·class="fn">join</a>(slice:·<a·class="primitive"·href="https://doc.rust-lang.org/1.78.0/core/primitive.reference.html">&amp;Self</a>,·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="[·...·truncated·by·diffoscope;·len:·333,·SHA:·24b614ae5b8d2e45a8eb40124ad574328ca1def9e1f82fdd0b29dfb9d4ce94bd·...·]/core/primitive.slice.html#method.join"·title="method·slice::join"><code>[T]::join</code></a></p>
9 </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.78.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#73-79">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:·2419,·SHA:·0551f840ee4309d32dcdf9d49cfbe8915cee72da36a86591fa513035a9fb55c7·...·]/core/primitive.slice.html">[V]</a></h3></section></summary><div·class="impl-items"><section·id="associatedtype.Output-3"·class="associatedtype·trait-impl"><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>9 </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.78.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#73-79">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.78.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.78.0/core/primitive.str.html">str</a>[·...·truncated·by·diffoscope;·len:·2716,·SHA:·4b09de13d4536ebb7fb0a94ce3bfa6271f04b37f734b0e412016338585b7054c·...·]/core/primitive.slice.html">[V]</a></h3></section></summary><div·class="impl-items"><section·id="associatedtype.Output-3"·class="associatedtype·trait-impl"><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>
70.1 KB
./usr/share/doc/rust-web-doc/html/alloc/slice/trait.SliceIndex.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·helper·trait·used·for·indexing·operations."><title>SliceIndex·in·alloc::slice·-·Rust</title><script>·if·(window.location.protocol·!==·"file:")·document.write(`<link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/SourceSerif4-Regular-46f98efaafac5295.ttf.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/FiraSans-Regular-018c141bf0843ffd.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/FiraSans-Medium-8f9a781e4970d388.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/SourceCodePro-Regular-562dcc5011b6de7d.ttf.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/SourceCodePro-Semibold-d899c5a5c4aeb14a.ttf.woff2">`)</script><link·rel="stylesheet"·href="../../static.files/normalize-76eba96aa4d2e634.css"><link·rel="stylesheet"·href="../../static.files/rustdoc-35f9e32502181f1e.css"><meta·name="rustdoc-vars"·data-root-path="../../"·data-static-root-path="../../static.files/"·data-current-crate="alloc"·data-themes=""·data-resource-suffix="1.78.0"·data-rustdoc-version="1.78.0"·data-channel="1.78.0"·data-search-js="search-42d8da7a6b9792c2.js"·data-settings-js="settings-4313503d2e1961c2.js"·><script·src="../../static.files/storage-4c98445ec4002617.js"></script><script·defer·src="sidebar-items1.78.0.js"></script><script·defer·src="../../static.files/main-12cf3b4f4f9dc36d.js"></script><noscript><link·rel="stylesheet"·href="../../static.files/noscript-04d5337699b92874.css"></noscript><link·rel="alternate·icon"·type="image/png"·href="../../static.files/favicon-16x16-8b506e7a72182f1c.png"><link·rel="alternate·icon"·type="image/png"·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.78.0</span></h2></div><h2·class="location"><a·href="#">SliceIndex</a></h2><div·class="sidebar-elems"><section><h3><a·href="#required-associated-types">Required·Associated·Types</a></h3><ul·class="block"><li><a·href="#associatedtype.Output">Output</a></li></ul><h3><a·href="#required-methods">Required·Methods</a></h3><ul·class="block"><li><a·href="#tymethod.get">get</a></li><li><a·href="#tymethod.get_mut">get_mut</a></li><li><a·href="#tymethod.get_unchecked">get_unchecked</a></li><li><a·href="#tymethod.get_unchecked_mut">get_unchecked_mut</a></li><li><a·href="#tymethod.index">index</a></li><li><a·href="#tymethod.index_mut">index_mut</a></li></ul><h3><a·href="#implementors">Implementors</a></h3></section><h2><a·href="index.html">In·alloc::slice</a></h2></div></nav><div·class="sidebar-resizer"></div>1 <!DOCTYPE·html><html·lang="en"><head><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.write(`<link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/SourceSerif4-Regular-46f98efaafac5295.ttf.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/FiraSans-Regular-018c141bf0843ffd.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/FiraSans-Medium-8f9a781e4970d388.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/SourceCodePro-Regular-562dcc5011b6de7d.ttf.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/SourceCodePro-Semibold-d899c5a5c4aeb14a.ttf.woff2">`)</script><link·rel="stylesheet"·href="../../static.files/normalize-76eba96aa4d2e634.css"><link·rel="stylesheet"·href="../../static.files/rustdoc-35f9e32502181f1e.css"><meta·name="rustdoc-vars"·data-root-path="../../"·data-static-root-path="../../static.files/"·data-current-crate="alloc"·data-themes=""·data-resource-suffix="1.78.0"·data-rustdoc-version="1.78.0"·data-channel="1.78.0"·data-search-js="search-42d8da7a6b9792c2.js"·data-settings-js="settings-4313503d2e1961c2.js"·><script·src="../../static.files/storage-4c98445ec4002617.js"></script><script·defer·src="sidebar-items1.78.0.js"></script><script·defer·src="../../static.files/main-12cf3b4f4f9dc36d.js"></script><noscript><link·rel="stylesheet"·href="../../static.files/noscript-04d5337699b92874.css"></noscript><link·rel="alternate·icon"·type="image/png"·href="../../static.files/favicon-16x16-8b506e7a72182f1c.png"><link·rel="alternate·icon"·type="image/png"·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.78.0</span></h2></div><h2·class="location"><a·href="#">SliceIndex</a></h2><div·class="sidebar-elems"><section><h3><a·href="#required-associated-types">Required·Associated·Types</a></h3><ul·class="block"><li><a·href="#associatedtype.Output">Output</a></li></ul><h3><a·href="#required-methods">Required·Methods</a></h3><ul·class="block"><li><a·href="#tymethod.get">get</a></li><li><a·href="#tymethod.get_mut">get_mut</a></li><li><a·href="#tymethod.get_unchecked">get_unchecked</a></li><li><a·href="#tymethod.get_unchecked_mut">get_unchecked_mut</a></li><li><a·href="#tymethod.index">index</a></li><li><a·href="#tymethod.index_mut">index_mut</a></li></ul><h3><a·href="#implementors">Implementors</a></h3></section><h2><a·href="index.html">In·alloc::slice</a></h2></div></nav><div·class="sidebar-resizer"></div>
2 ····<main><div·class="width-limiter"><nav·class="sub"><form·class="search-form"><span></span><div·id="sidebar-button"·tabindex="-1"><a·href="../../alloc/all.html"·title="show·sidebar"></a></div><input·class="search-input"·name="search"·aria-label="Run·search·in·the·documentation"·autocomplete="off"·spellcheck="false"·placeholder="Click·or·press·‘S’·to·search,·‘?’·for·more·options…"·type="search"><div·id="help-button"·tabindex="-1"><a·href="../../help.html"·title="help">?</a></div><div·id="settings-menu"·tabindex="-1"><a·href="../../settings.html"·title="settings"><img·width="22"·height="22"·alt="Change·settings"·src="../../static.files/wheel-7b819b6101059cd0.svg"></a></div></form></nav><section·id="main-content"·class="content"><div·class="main-heading"><h1>Trait·<a·href="../index.html">alloc</a>::<wbr><a·href="index.html">slice</a>::<wbr><a·class="trait"·href="#">SliceIndex</a><button·id="copy-path"·title="Copy·item·path·to·clipboard"><img·src="../../static.files/clipboard-7571035ce49a181d.svg"·width="19"·height="18"·alt="Copy·item·path"></button></h1><span·class="out-of-band"><span·class="since"·title="Stable·since·Rust·version·1.28.0">1.28.0</span>···<a·class="src"·href="../../src/core/slice/index.rs.html#168">source</a>···<button·id="toggle-all-docs"·title="collapse·all·docs">[<span>&#x2212;</span>]</button></span></div><pre·class="rust·item-decl"><code>pub·unsafe·trait·SliceIndex&lt;T&gt;:·Sealed<div·class="where">where2 ····<main><div·class="width-limiter"><nav·class="sub"><form·class="search-form"><span></span><div·id="sidebar-button"·tabindex="-1"><a·href="../../alloc/all.html"·title="show·sidebar"></a></div><input·class="search-input"·name="search"·aria-label="Run·search·in·the·documentation"·autocomplete="off"·spellcheck="false"·placeholder="Click·or·press·‘S’·to·search,·‘?’·for·more·options…"·type="search"><div·id="help-button"·tabindex="-1"><a·href="../../help.html"·title="help">?</a></div><div·id="settings-menu"·tabindex="-1"><a·href="../../settings.html"·title="settings"><img·width="22"·height="22"·alt="Change·settings"·src="../../static.files/wheel-7b819b6101059cd0.svg"></a></div></form></nav><section·id="main-content"·class="content"><div·class="main-heading"><h1>Trait·<a·href="../index.html">alloc</a>::<wbr><a·href="index.html">slice</a>::<wbr><a·class="trait"·href="#">SliceIndex</a><button·id="copy-path"·title="Copy·item·path·to·clipboard"><img·src="../../static.files/clipboard-7571035ce49a181d.svg"·width="19"·height="18"·alt="Copy·item·path"></button></h1><span·class="out-of-band"><span·class="since"·title="Stable·since·Rust·version·1.28.0">1.28.0</span>···<a·class="src"·href="https://doc.rust-lang.org/1.78.0/src/core/slice/index.rs.html#168">source</a>···<button·id="toggle-all-docs"·title="collapse·all·docs">[<span>&#x2212;</span>]</button></span></div><pre·class="rust·item-decl"><code>pub·unsafe·trait·SliceIndex&lt;T&gt;:·Sealed<div·class="where">where
3 ····T:·?<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div>{3 ····T:·?<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div>{
4 ····type·<a·href="#associatedtype.Output"·class="associatedtype">Output</a>:·?<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>;4 ····type·<a·href="#associatedtype.Output"·class="associatedtype">Output</a>:·?<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>;
  
5 ····//·Required·methods5 ····//·Required·methods
6 ····fn·<a·href="#tymethod.get"·class="fn">get</a>(self,·slice:·<a·class="primitive"·href="../../core/primitive.reference.html">&amp;T</a>)·-&gt;·<a·class="enum"·href="../../core/option/enum.Option.html"·title="enum·core::option::Option">Option</a>&lt;&amp;Self::<a·class="associatedtype"·href="trait.SliceIndex.html#associatedtype.Output"·title="type·alloc::slice::SliceIndex::Output">Output</a>&gt;;6 ····fn·<a·href="#tymethod.get"·class="fn">get</a>(self,·slice:·<a·class="primitive"·href="https://doc.rust-lang.org/1.78.0/core/primitive.reference.html">&amp;T</a>)·-&gt;·<a·class="enum"·href="https://doc.rust-lang.org/1.78.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;;
7 <span·class="item-spacer"></span>····fn·<a·href="#tymethod.get_mut"·class="fn">get_mut</a>(self,·slice:·<a·class="primitive"·href="../../core/primitive.reference.html">&amp;mut·T</a>)·-&gt;·<a·class="enum"·href="../../core/option/enum.Option.html"·title="enum·core::option::Option">Option</a>&lt;&amp;mut·Self::<a·class="associatedtype"·href="trait.SliceIndex.html#associatedtype.Output"·title="type·alloc::slice::SliceIndex::Output">Output</a>&gt;;7 <span·class="item-spacer"></span>····fn·<a·href="#tymethod.get_mut"·class="fn">get_mut</a>(self,·slice:·<a·class="primitive"·href="https://doc.rust-lang.org/1.78.0/core/primitive.reference.html">&amp;mut·T</a>)·-&gt;·<a·class="enum"·href="https://doc.rust-lang.org/1.78.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;;
8 <span·class="item-spacer"></span>····unsafe·fn·<a·href="#tymethod.get_unchecked"·class="fn">get_unchecked</a>(self,·slice:·<a·class="primitive"·href="../../core/primitive.pointer.html">*const·T</a>)·-&gt;·<a·class="primitive"·href="../../core/primitive.pointer.html">*const·</a>Self::<a·class="associatedtype"·href="trait.SliceIndex.html#associatedtype.Output"·title="type·alloc::slice::SliceIndex::Output">Output</a>;8 <span·class="item-spacer"></span>····unsafe·fn·<a·href="#tymethod.get_unchecked"·class="fn">get_unchecked</a>(self,·slice:·<a·class="primitive"·href="https://doc.rust-lang.org/1.78.0/core/primitive.pointer.html">*const·T</a>)·-&gt;·<a·class="primitive"·href="https://doc.rust-lang.org/1.78.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>;
9 <span·class="item-spacer"></span>····unsafe·fn·<a·href="#tymethod.get_unchecked_mut"·class="fn">get_unchecked_mut</a>(self,·slice:·<a·class="primitive"·href="../../core/primitive.pointer.html">*mut·T</a>)·-&gt;·<a·class="primitive"·href="../../core/primitive.pointer.html">*mut·</a>Self::<a·class="associatedtype"·href="trait.SliceIndex.html#associatedtype.Output"·title="type·alloc::slice::SliceIndex::Output">Output</a>;9 <span·class="item-spacer"></span>····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.78.0/core/primitive.pointer.html">*mut·T</a>)·-&gt;·<a·class="primitive"·href="https://doc.rust-lang.org/1.78.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>;
10 <span·class="item-spacer"></span>····fn·<a·href="#tymethod.index"·class="fn">index</a>(self,·slice:·<a·class="primitive"·href="../../core/primitive.reference.html">&amp;T</a>)·-&gt;·&amp;Self::<a·class="associatedtype"·href="trait.SliceIndex.html#associatedtype.Output"·title="type·alloc::slice::SliceIndex::Output">Output</a>;10 <span·class="item-spacer"></span>····fn·<a·href="#tymethod.index"·class="fn">index</a>(self,·slice:·<a·class="primitive"·href="https://doc.rust-lang.org/1.78.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>;
11 <span·class="item-spacer"></span>····fn·<a·href="#tymethod.index_mut"·class="fn">index_mut</a>(self,·slice:·<a·class="primitive"·href="../../core/primitive.reference.html">&amp;mut·T</a>)·-&gt;·&amp;mut·Self::<a·class="associatedtype"·href="trait.SliceIndex.html#associatedtype.Output"·title="type·alloc::slice::SliceIndex::Output">Output</a>;11 <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.78.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>;
12 }</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 }</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>
13 <p>Implementations·of·this·trait·have·to·promise·that·if·the·argument13 <p>Implementations·of·this·trait·have·to·promise·that·if·the·argument
14 to·<code>get_unchecked(_mut)</code>·is·a·safe·reference,·then·so·is·the·result.</p>14 to·<code>get_unchecked(_mut)</code>·is·a·safe·reference,·then·so·is·the·result.</p>
15 </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/core/slice/index.rs.html#171">source</a><h4·class="code-header">type·<a·href="#associatedtype.Output"·class="associatedtype">Output</a>:·?<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a></h4></section></summary><div·class="docblock"><p>The·output·type·returned·by·methods.</p>15 </div></details><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="https://doc.rust-lang.org/1.78.0/src/core/slice/index.rs.html#171">source</a><h4·class="code-header">type·<a·href="#associatedtype.Output"·class="associatedtype">Output</a>:·?<a·class="trait"·href="https://doc.rust-lang.org/1.78.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>
16 </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#176">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·in16 </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.78.0/src/core/slice/index.rs.html#176">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.78.0/core/primitive.reference.html">&amp;[·...·truncated·by·diffoscope;·len:·67,·SHA:·41d95e4e6c7a1eef8dc1c1fe0b4b2fe62eef223494f381929b9304ff674fc456·...·]/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
17 bounds.</p>17 bounds.</p>
18 </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#181">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·in18 </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.78.0/src/core/slice/index.rs.html#181">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.78.0/core/primitive.reference.htm[·...·truncated·by·diffoscope;·len:·79,·SHA:·9318dde239fdccb1fa34025bb829e613ef2e4765e79ba1da8f642c43efce29d2·...·]/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
19 bounds.</p>19 bounds.</p>
20 </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#190">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,·without20 </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.78.0/src/core/slice/index.rs.html#190">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.78.0/core/prim[·...·truncated·by·diffoscope;·len:·99,·SHA:·5036031c0e94607ec9dc8ce5ac6d9deb2b5b14c7d55bcc211eb8a9ff57e6fa1c·...·]/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
21 performing·any·bounds·checking.21 performing·any·bounds·checking.
22 Calling·this·method·with·an·out-of-bounds·index·or·a·dangling·<code>slice</code>·pointer22 Calling·this·method·with·an·out-of-bounds·index·or·a·dangling·<code>slice</code>·pointer
23 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 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>
24 </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#199">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,·without24 </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.78.0/src/core/slice/index.rs.html#199">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.78.0/c[·...·truncated·by·diffoscope;·len:·105,·SHA:·0509aad3590e0867b638033a82824b0fd1d4c0c6da72ced3031dbf1953b8ff6c·...·]/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
25 performing·any·bounds·checking.25 performing·any·bounds·checking.
26 Calling·this·method·with·an·out-of-bounds·index·or·a·dangling·<code>slice</code>·pointer26 Calling·this·method·with·an·out-of-bounds·index·or·a·dangling·<code>slice</code>·pointer
27 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 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>
28 </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#205">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,·panicking28 </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.78.0/src/core/slice/index.rs.html#205">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.78.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
29 if·out·of·bounds.</p>29 if·out·of·bounds.</p>
30 </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#211">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,·panicking30 </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.78.0/src/core/slice/index.rs.html#211">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.78.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
31 if·out·of·bounds.</p>31 if·out·of·bounds.</p>
32 </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#275">source</a></span><a·href="#impl-SliceIndex%3Cstr%3E-for-(Bound%3Cusize%3E,+Bound%3Cusize%3E)"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="trait.SliceIndex.html"·title="trait·alloc::slice::S[·...·truncated·by·diffoscope;·len:·431,·SHA:·b869681e3732332b4fe34edfdfad6757840f656a1e3459d9b3c772855fca5b7a·...·]/core/primitive.usize.html">usize</a>&gt;)</h3></section></summary><div·class="docblock"><p>Implements·substring·slicing·for·arbitrary·bounds.</p>32 </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.78.0/src/core/str/traits.rs.html#275">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:·67ac84b930775e77bec4c8ef3955dbaf057f97af2b59cd46e75ab1f7cc37697a·...·]/core/primitive.usize.html">usize</a>&gt;)</h3></section></summary><div·class="docblock"><p>Implements·substring·slicing·for·arbitrary·bounds.</p>
33 <p>Returns·a·slice·of·the·given·string·bounded·by·the·byte·indices33 <p>Returns·a·slice·of·the·given·string·bounded·by·the·byte·indices
34 provided·by·each·bound.</p>34 provided·by·each·bound.</p>
35 <p>This·operation·is·<em>O</em>(1).</p>35 <p>This·operation·is·<em>O</em>(1).</p>
36 <h4·id="panics"><a·class="doc-anchor"·href="#panics">§</a>Panics</h4>36 <h4·id="panics"><a·class="doc-anchor"·href="#panics">§</a>Panics</h4>
37 <p>Panics·if·<code>begin</code>·or·<code>end</code>·(if·it·exists·and·once·adjusted·for37 <p>Panics·if·<code>begin</code>·or·<code>end</code>·(if·it·exists·and·once·adjusted·for
38 inclusion/exclusion)·does·not·point·to·the·starting·byte·offset·of38 inclusion/exclusion)·does·not·point·to·the·starting·byte·offset·of
39 a·character·(as·defined·by·<code>is_char_boundary</code>),·if·<code>begin·&gt;·end</code>,·or·if39 a·character·(as·defined·by·<code>is_char_boundary</code>),·if·<code>begin·&gt;·end</code>,·or·if
40 <code>end·&gt;·len</code>.</p>40 <code>end·&gt;·len</code>.</p>
41 </div><div·class="impl-items"><section·id="associatedtype.Output-1"·class="associatedtype·trait-impl"><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.html">str</a></h4></section></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-SliceIndex%3Cstr%3E-for-Range%3Cusize%3E"·class="impl"><span·class="rightside"><span·class="since"·title="Stable·sin[·...·truncated·by·diffoscope;·len:·582,·SHA:·c0a53006a3d34719e1fef1663a035ed4b8d7b3a9b65871304c70554df2cbd215·...·]/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 </div><div·class="impl-items"><section·id="associatedtype.Output-1"·class="associatedtype·trait-impl"><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="https://doc.rust-lang.org/1.78.0/core/primitive.str.html">str</a></h4></section></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-SliceIndex%3Cstr%3E-for-Range%3Cusize%3E"·class="impl"><span·class="rightside"><span·clas[·...·truncated·by·diffoscope;·len:·717,·SHA:·0f88c2d029e3341598382cb30bcbb68cd75491cb7591ade3fdb98ad11c74c365·...·]/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>
42 <p>Returns·a·slice·of·the·given·string·from·the·byte·range42 <p>Returns·a·slice·of·the·given·string·from·the·byte·range
43 [<code>begin</code>,·<code>end</code>).</p>43 [<code>begin</code>,·<code>end</code>).</p>
44 <p>This·operation·is·<em>O</em>(1).</p>44 <p>This·operation·is·<em>O</em>(1).</p>
45 <p>Prior·to·1.20.0,·these·indexing·operations·were·still·supported·by45 <p>Prior·to·1.20.0,·these·indexing·operations·were·still·supported·by
46 direct·implementation·of·<code>Index</code>·and·<code>IndexMut</code>.</p>46 direct·implementation·of·<code>Index</code>·and·<code>IndexMut</code>.</p>
47 <h4·id="panics-1"><a·class="doc-anchor"·href="#panics-1">§</a>Panics</h4>47 <h4·id="panics-1"><a·class="doc-anchor"·href="#panics-1">§</a>Panics</h4>
48 <p>Panics·if·<code>begin</code>·or·<code>end</code>·does·not·point·to·the·starting·byte·offset·of48 <p>Panics·if·<code>begin</code>·or·<code>end</code>·does·not·point·to·the·starting·byte·offset·of
Offset 60, 52 lines modifiedOffset 60, 52 lines modified
60 //·&amp;s[2·..3];60 //·&amp;s[2·..3];
  
61 //·byte·8·lies·within·`老`61 //·byte·8·lies·within·`老`
62 //·&amp;s[1·..·8];62 //·&amp;s[1·..·8];
  
63 //·byte·100·is·outside·the·string63 //·byte·100·is·outside·the·string
64 //·&amp;s[3·..·100];</span></code></pre><a·class="test-arrow"·target="_blank"·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">Run</a></div>64 //·&amp;s[3·..·100];</span></code></pre><a·class="test-arrow"·target="_blank"·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">Run</a></div>
65 </div><div·class="impl-items"><section·id="associatedtype.Output-2"·class="associatedtype·trait-impl"><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.html">str</a></h4></section></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-SliceIndex%3Cstr%3E-for-RangeFrom%3Cusize%3E"·class="impl"><span·class="rightside"><span·class="since"·title="Stable[·...·truncated·by·diffoscope;·len:·602,·SHA:·a1ff5f759e2c4a8a5726b21e146d7a6ba756a5e854634eadcd801e27e7cdcc93·...·]/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 </div><div·class="impl-items"><section·id="associatedtype.Output-2"·class="associatedtype·trait-impl"><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="https://doc.rust-lang.org/1.78.0/core/primitive.str.html">str</a></h4></section></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-SliceIndex%3Cstr%3E-for-RangeFrom%3Cusize%3E"·class="impl"><span·class="rightside"><span·[·...·truncated·by·diffoscope;·len:·737,·SHA:·440edf8b9f218e87574b1240991033978936f5ce154125392565d2d916ec3369·...·]/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>
66 <p>Returns·a·slice·of·the·given·string·from·the·byte·range·[<code>begin</code>,·<code>len</code>).66 <p>Returns·a·slice·of·the·given·string·from·the·byte·range·[<code>begin</code>,·<code>len</code>).
67 Equivalent·to·<code>&amp;self[begin·..·len]</code>·or·<code>&amp;mut·self[begin·..·len]</code>.</p>67 Equivalent·to·<code>&amp;self[begin·..·len]</code>·or·<code>&amp;mut·self[begin·..·len]</code>.</p>
68 <p>This·operation·is·<em>O</em>(1).</p>68 <p>This·operation·is·<em>O</em>(1).</p>
69 <p>Prior·to·1.20.0,·these·indexing·operations·were·still·supported·by69 <p>Prior·to·1.20.0,·these·indexing·operations·were·still·supported·by
70 direct·implementation·of·<code>Index</code>·and·<code>IndexMut</code>.</p>70 direct·implementation·of·<code>Index</code>·and·<code>IndexMut</code>.</p>
71 <h4·id="panics-2"><a·class="doc-anchor"·href="#panics-2">§</a>Panics</h4>71 <h4·id="panics-2"><a·class="doc-anchor"·href="#panics-2">§</a>Panics</h4>
72 <p>Panics·if·<code>begin</code>·does·not·point·to·the·starting·byte·offset·of72 <p>Panics·if·<code>begin</code>·does·not·point·to·the·starting·byte·offset·of
73 a·character·(as·defined·by·<code>is_char_boundary</code>),·or·if·<code>begin·&gt;·len</code>.</p>73 a·character·(as·defined·by·<code>is_char_boundary</code>),·or·if·<code>begin·&gt;·len</code>.</p>
74 </div><div·class="impl-items"><section·id="associatedtype.Output-3"·class="associatedtype·trait-impl"><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.html">str</a></h4></section></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-SliceIndex%3Cstr%3E-for-RangeFull"·class="impl"><span·class="rightside"><span·class="since"·title="Stable·since·Rust[·...·truncated·by·diffoscope;·len:·448,·SHA:·50fc7d746dd6267ef767c1b884288f124b89b45a6cca02a84edc8c20f2cd20d1·...·]/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 </div><div·class="impl-items"><section·id="associatedtype.Output-3"·class="associatedtype·trait-impl"><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="https://doc.rust-lang.org/1.78.0/core/primitive.str.html">str</a></h4></section></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-SliceIndex%3Cstr%3E-for-RangeFull"·class="impl"><span·class="rightside"><span·class="sinc[·...·truncated·by·diffoscope;·len:·556,·SHA:·11867127bf8a83f8fbc9347f79677edfa401cffabd9f6627566f8cd8a06469b3·...·]/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>
75 <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>.·Unlike75 <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
76 other·indexing·operations,·this·can·never·panic.</p>76 other·indexing·operations,·this·can·never·panic.</p>
77 <p>This·operation·is·<em>O</em>(1).</p>77 <p>This·operation·is·<em>O</em>(1).</p>
78 <p>Prior·to·1.20.0,·these·indexing·operations·were·still·supported·by78 <p>Prior·to·1.20.0,·these·indexing·operations·were·still·supported·by
79 direct·implementation·of·<code>Index</code>·and·<code>IndexMut</code>.</p>79 direct·implementation·of·<code>Index</code>·and·<code>IndexMut</code>.</p>
80 <p>Equivalent·to·<code>&amp;self[0·..·len]</code>·or·<code>&amp;mut·self[0·..·len]</code>.</p>80 <p>Equivalent·to·<code>&amp;self[0·..·len]</code>·or·<code>&amp;mut·self[0·..·len]</code>.</p>
81 </div><div·class="impl-items"><section·id="associatedtype.Output-4"·class="associatedtype·trait-impl"><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.html">str</a></h4></section></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-SliceIndex%3Cstr%3E-for-RangeInclusive%3Cusize%3E"·class="impl"><span·class="rightside"><span·class="since"·title="S[·...·truncated·by·diffoscope;·len:·627,·SHA:·7d0ba60b2916bd25fd67ea1c56aced77aac627ff1c9415647b01267c69e3da49·...·]/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 </div><div·class="impl-items"><section·id="associatedtype.Output-4"·class="associatedtype·trait-impl"><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="https://doc.rust-lang.org/1.78.0/core/primitive.str.html">str</a></h4></section></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-SliceIndex%3Cstr%3E-for-RangeInclusive%3Cusize%3E"·class="impl"><span·class="rightside"><[·...·truncated·by·diffoscope;·len:·762,·SHA:·60c4157c579be13759a30900f2a276441e29a782b0965c8b941da09479df01a6·...·]/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>
82 <p>Returns·a·slice·of·the·given·string·from·the·byte·range82 <p>Returns·a·slice·of·the·given·string·from·the·byte·range
83 [<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·for83 [<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
84 <code>usize</code>.</p>84 <code>usize</code>.</p>
85 <p>This·operation·is·<em>O</em>(1).</p>85 <p>This·operation·is·<em>O</em>(1).</p>
86 <h4·id="panics-3"><a·class="doc-anchor"·href="#panics-3">§</a>Panics</h4>86 <h4·id="panics-3"><a·class="doc-anchor"·href="#panics-3">§</a>Panics</h4>
87 <p>Panics·if·<code>begin</code>·does·not·point·to·the·starting·byte·offset·of87 <p>Panics·if·<code>begin</code>·does·not·point·to·the·starting·byte·offset·of
88 a·character·(as·defined·by·<code>is_char_boundary</code>),·if·<code>end</code>·does·not·point88 a·character·(as·defined·by·<code>is_char_boundary</code>),·if·<code>end</code>·does·not·point
89 to·the·ending·byte·offset·of·a·character·(<code>end·+·1</code>·is·either·a·starting89 to·the·ending·byte·offset·of·a·character·(<code>end·+·1</code>·is·either·a·starting
90 byte·offset·or·equal·to·<code>len</code>),·if·<code>begin·&gt;·end</code>,·or·if·<code>end·&gt;=·len</code>.</p>90 byte·offset·or·equal·to·<code>len</code>),·if·<code>begin·&gt;·end</code>,·or·if·<code>end·&gt;=·len</code>.</p>
91 </div><div·class="impl-items"><section·id="associatedtype.Output-5"·class="associatedtype·trait-impl"><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.html">str</a></h4></section></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-SliceIndex%3Cstr%3E-for-RangeTo%3Cusize%3E"·class="impl"><span·class="rightside"><span·class="since"·title="Stable·s[·...·truncated·by·diffoscope;·len:·592,·SHA:·9fec18f3f4029169cad0db9dc1c164cc14efca0f63d770979a1702230f04a63b·...·]/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 </div><div·class="impl-items"><section·id="associatedtype.Output-5"·class="associatedtype·trait-impl"><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="https://doc.rust-lang.org/1.78.0/core/primitive.str.html">str</a></h4></section></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-SliceIndex%3Cstr%3E-for-RangeTo%3Cusize%3E"·class="impl"><span·class="rightside"><span·cl[·...·truncated·by·diffoscope;·len:·727,·SHA:·27e4f692a1b4eda06fae23256e77062e1acf0bb7d6364dc44c335a4fae509a97·...·]/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>
92 <p>Returns·a·slice·of·the·given·string·from·the·byte·range·[0,·<code>end</code>).92 <p>Returns·a·slice·of·the·given·string·from·the·byte·range·[0,·<code>end</code>).
93 Equivalent·to·<code>&amp;self[0·..·end]</code>·or·<code>&amp;mut·self[0·..·end]</code>.</p>93 Equivalent·to·<code>&amp;self[0·..·end]</code>·or·<code>&amp;mut·self[0·..·end]</code>.</p>
94 <p>This·operation·is·<em>O</em>(1).</p>94 <p>This·operation·is·<em>O</em>(1).</p>
95 <p>Prior·to·1.20.0,·these·indexing·operations·were·still·supported·by95 <p>Prior·to·1.20.0,·these·indexing·operations·were·still·supported·by
96 direct·implementation·of·<code>Index</code>·and·<code>IndexMut</code>.</p>96 direct·implementation·of·<code>Index</code>·and·<code>IndexMut</code>.</p>
97 <h4·id="panics-4"><a·class="doc-anchor"·href="#panics-4">§</a>Panics</h4>97 <h4·id="panics-4"><a·class="doc-anchor"·href="#panics-4">§</a>Panics</h4>
98 <p>Panics·if·<code>end</code>·does·not·point·to·the·starting·byte·offset·of·a98 <p>Panics·if·<code>end</code>·does·not·point·to·the·starting·byte·offset·of·a
99 character·(as·defined·by·<code>is_char_boundary</code>),·or·if·<code>end·&gt;·len</code>.</p>99 character·(as·defined·by·<code>is_char_boundary</code>),·or·if·<code>end·&gt;·len</code>.</p>
100 </div><div·class="impl-items"><section·id="associatedtype.Output-6"·class="associatedtype·trait-impl"><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.html">str</a></h4></section></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-SliceIndex%3Cstr%3E-for-RangeToInclusive%3Cusize%3E"·class="impl"><span·class="rightside"><span·class="since"·title=[·...·truncated·by·diffoscope;·len:·637,·SHA:·872d6c3a9339e9b41b5609cb5c2b0f914fc1cdee5fe04f65dedfb85d20f4aa89·...·]/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 </div><div·class="impl-items"><section·id="associatedtype.Output-6"·class="associatedtype·trait-impl"><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="https://doc.rust-lang.org/1.78.0/core/primitive.str.html">str</a></h4></section></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-SliceIndex%3Cstr%3E-for-RangeToInclusive%3Cusize%3E"·class="impl"><span·class="rightside"[·...·truncated·by·diffoscope;·len:·772,·SHA:·4547cba404eb369ffb5fb8c58731bf1168e02310bb68144c5a32e87f4b901d4e·...·]/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>
101 <p>Returns·a·slice·of·the·given·string·from·the·byte·range·[0,·<code>end</code>].101 <p>Returns·a·slice·of·the·given·string·from·the·byte·range·[0,·<code>end</code>].
102 Equivalent·to·<code>&amp;self·[0·..·end·+·1]</code>,·except·if·<code>end</code>·has·the·maximum102 Equivalent·to·<code>&amp;self·[0·..·end·+·1]</code>,·except·if·<code>end</code>·has·the·maximum
103 value·for·<code>usize</code>.</p>103 value·for·<code>usize</code>.</p>
104 <p>This·operation·is·<em>O</em>(1).</p>104 <p>This·operation·is·<em>O</em>(1).</p>
105 <h4·id="panics-5"><a·class="doc-anchor"·href="#panics-5">§</a>Panics</h4>105 <h4·id="panics-5"><a·class="doc-anchor"·href="#panics-5">§</a>Panics</h4>
106 <p>Panics·if·<code>end</code>·does·not·point·to·the·ending·byte·offset·of·a·character106 <p>Panics·if·<code>end</code>·does·not·point·to·the·ending·byte·offset·of·a·character
107 (<code>end·+·1</code>·is·either·a·starting·byte·offset·as·defined·by107 (<code>end·+·1</code>·is·either·a·starting·byte·offset·as·defined·by
108 <code>is_char_boundary</code>,·or·equal·to·<code>len</code>),·or·if·<code>end·&gt;=·len</code>.</p>108 <code>is_char_boundary</code>,·or·equal·to·<code>len</code>),·or·if·<code>end·&gt;=·len</code>.</p>
109 </div><div·class="impl-items"><section·id="associatedtype.Output-7"·class="associatedtype·trait-impl"><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.html">str</a></h4></section></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-SliceIndex%3C%5BT%5D%3E-for-(Bound%3Cusize%3E,+Bound%3Cusize%3E)"·class="impl"><span·class="rightside"><span·class="[·...·truncated·by·diffoscope;·len:·9405,·SHA:·be83852c81c8384767227c38678b787b511809cd831ca821f12ae5aef4f896d8·...·]/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>109 </div><div·class="impl-items"><section·id="associatedtype.Output-7"·class="associatedtype·trait-impl"><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="https://doc.rust-lang.org/1.78.0/core/primitive.str.html">str</a></h4></section></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-SliceIndex%3C%5BT%5D%3E-for-(Bound%3Cusize%3E,+Bound%3Cusize%3E)"·class="impl"><span·clas[·...·truncated·by·diffoscope;·len:·10485,·SHA:·75f77e42d0375f5b152663ca3f158d4eb229459b7abe1c632a191bde183b6735·...·]/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>
7.99 KB
./usr/share/doc/rust-web-doc/html/alloc/str/fn.from_boxed_utf8_unchecked.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="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.write(`<link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/SourceSerif4-Regular-46f98efaafac5295.ttf.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/FiraSans-Regular-018c141bf0843ffd.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/FiraSans-Medium-8f9a781e4970d388.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/SourceCodePro-Regular-562dcc5011b6de7d.ttf.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/SourceCodePro-Semibold-d899c5a5c4aeb14a.ttf.woff2">`)</script><link·rel="stylesheet"·href="../../static.files/normalize-76eba96aa4d2e634.css"><link·rel="stylesheet"·href="../../static.files/rustdoc-35f9e32502181f1e.css"><meta·name="rustdoc-vars"·data-root-path="../../"·data-static-root-path="../../static.files/"·data-current-crate="alloc"·data-themes=""·data-resource-suffix="1.78.0"·data-rustdoc-version="1.78.0"·data-channel="1.78.0"·data-search-js="search-42d8da7a6b9792c2.js"·data-settings-js="settings-4313503d2e1961c2.js"·><script·src="../../static.files/storage-4c98445ec4002617.js"></script><script·defer·src="sidebar-items1.78.0.js"></script><script·defer·src="../../static.files/main-12cf3b4f4f9dc36d.js"></script><noscript><link·rel="stylesheet"·href="../../static.files/noscript-04d5337699b92874.css"></noscript><link·rel="alternate·icon"·type="image/png"·href="../../static.files/favicon-16x16-8b506e7a72182f1c.png"><link·rel="alternate·icon"·type="image/png"·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.78.0</span></h2></div><div·class="sidebar-elems"><h2><a·href="index.html">In·alloc::str</a></h2></div></nav><div·class="sidebar-resizer"></div>1 <!DOCTYPE·html><html·lang="en"><head><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.write(`<link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/SourceSerif4-Regular-46f98efaafac5295.ttf.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/FiraSans-Regular-018c141bf0843ffd.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/FiraSans-Medium-8f9a781e4970d388.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/SourceCodePro-Regular-562dcc5011b6de7d.ttf.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/SourceCodePro-Semibold-d899c5a5c4aeb14a.ttf.woff2">`)</script><link·rel="stylesheet"·href="../../static.files/normalize-76eba96aa4d2e634.css"><link·rel="stylesheet"·href="../../static.files/rustdoc-35f9e32502181f1e.css"><meta·name="rustdoc-vars"·data-root-path="../../"·data-static-root-path="../../static.files/"·data-current-crate="alloc"·data-themes=""·data-resource-suffix="1.78.0"·data-rustdoc-version="1.78.0"·data-channel="1.78.0"·data-search-js="search-42d8da7a6b9792c2.js"·data-settings-js="settings-4313503d2e1961c2.js"·><script·src="../../static.files/storage-4c98445ec4002617.js"></script><script·defer·src="sidebar-items1.78.0.js"></script><script·defer·src="../../static.files/main-12cf3b4f4f9dc36d.js"></script><noscript><link·rel="stylesheet"·href="../../static.files/noscript-04d5337699b92874.css"></noscript><link·rel="alternate·icon"·type="image/png"·href="../../static.files/favicon-16x16-8b506e7a72182f1c.png"><link·rel="alternate·icon"·type="image/png"·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.78.0</span></h2></div><div·class="sidebar-elems"><h2><a·href="index.html">In·alloc::str</a></h2></div></nav><div·class="sidebar-resizer"></div>
2 ····<main><div·class="width-limiter"><nav·class="sub"><form·class="search-form"><span></span><div·id="sidebar-button"·tabindex="-1"><a·href="../../alloc/all.html"·title="show·sidebar"></a></div><input·class="search-input"·name="search"·aria-label="Run·search·in·the·documentation"·autocomplete="off"·spellcheck="false"·placeholder="Click·or·press·‘S’·to·search,·‘?’·for·more·options…"·type="search"><div·id="help-button"·tabindex="-1"><a·href="../../help.html"·title="help">?</a></div><div·id="settings-menu"·tabindex="-1"><a·href="../../settings.html"·title="settings"><img·width="22"·height="22"·alt="Change·settings"·src="../../static.files/wheel-7b819b6101059cd0.svg"></a></div></form></nav><section·id="main-content"·class="content"><div·class="main-heading"><h1>Function·<a·href="../index.html">alloc</a>::<wbr><a·href="index.html">str</a>::<wbr><a·class="fn"·href="#">from_boxed_utf8_unchecked</a><button·id="copy-path"·title="Copy·item·path·to·clipboard"><img·src="../../static.files/clipboard-7571035ce49a181d.svg"·width="19"·height="18"·alt="Copy·item·path"></button></h1><span·class="out-of-band"><span·class="since"·title="Stable·since·Rust·version·1.20.0">1.20.0</span>···<a·class="src"·href="../../src/alloc/str.rs.html#612-614">source</a>···<button·id="toggle-all-docs"·title="collapse·all·docs">[<span>&#x2212;</span>]</button></span></div><pre·class="rust·item-decl"><code>pub·unsafe·fn·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·checking2 ····<main><div·class="width-limiter"><nav·class="sub"><form·class="search-form"><span></span><div·id="sidebar-button"·tabindex="-1"><a·href="../../alloc/all.html"·title="show·sidebar"></a></div><input·class="search-input"·name="search"·aria-label="Run·search·in·the·documentation"·autocomplete="off"·spellcheck="false"·placeholder="Click·or·press·‘S’·to·search,·‘?’·for·more·options…"·type="search"><div·id="help-button"·tabindex="-1"><a·href="../../help.html"·title="help">?</a></div><div·id="settings-menu"·tabindex="-1"><a·href="../../settings.html"·title="settings"><img·width="22"·height="22"·alt="Change·settings"·src="../../static.files/wheel-7b819b6101059cd0.svg"></a></div></form></nav><section·id="main-content"·class="content"><div·class="main-heading"><h1>Function·<a·href="../index.html">alloc</a>::<wbr><a·href="index.html">str</a>::<wbr><a·class="fn"·href="#">from_boxed_utf8_unchecked</a><button·id="copy-path"·title="Copy·item·path·to·clipboard"><img·src="../../static.files/clipboard-7571035ce49a181d.svg"·width="19"·height="18"·alt="Copy·item·path"></button></h1><span·class="out-of-band"><span·class="since"·title="Stable·since·Rust·version·1.20.0">1.20.0</span>···<a·class="src"·href="../../src/alloc/str.rs.html#612-614">source</a>···<button·id="toggle-all-docs"·title="collapse·all·docs">[<span>&#x2212;</span>]</button></span></div><pre·class="rust·item-decl"><code>pub·unsafe·fn·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.78.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.78.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
3 that·the·string·contains·valid·UTF-8.</p>3 that·the·string·contains·valid·UTF-8.</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="kw">let·</span>smile_utf8·=·Box::new([<span·class="number">226</span>,·<span·class="number">152</span>,·<span·class="number">186</span>]);5 <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>]);
6 <span·class="kw">let·</span>smile·=·<span·class="kw">unsafe·</span>{·std::str::from_boxed_utf8_unchecked(smile_utf8)·};6 <span·class="kw">let·</span>smile·=·<span·class="kw">unsafe·</span>{·std::str::from_boxed_utf8_unchecked(smile_utf8)·};
  
7 <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"·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">Run</a></div>7 <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"·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">Run</a></div>
8 </div></details></section></div></main></body></html>8 </div></details></section></div></main></body></html>
8.26 KB
./usr/share/doc/rust-web-doc/html/alloc/str/fn.from_raw_parts.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·an·`&amp;str`·from·a·pointer·and·a·length."><title>from_raw_parts·in·alloc::str·-·Rust</title><script>·if·(window.location.protocol·!==·"file:")·document.write(`<link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/SourceSerif4-Regular-46f98efaafac5295.ttf.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/FiraSans-Regular-018c141bf0843ffd.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/FiraSans-Medium-8f9a781e4970d388.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/SourceCodePro-Regular-562dcc5011b6de7d.ttf.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/SourceCodePro-Semibold-d899c5a5c4aeb14a.ttf.woff2">`)</script><link·rel="stylesheet"·href="../../static.files/normalize-76eba96aa4d2e634.css"><link·rel="stylesheet"·href="../../static.files/rustdoc-35f9e32502181f1e.css"><meta·name="rustdoc-vars"·data-root-path="../../"·data-static-root-path="../../static.files/"·data-current-crate="alloc"·data-themes=""·data-resource-suffix="1.78.0"·data-rustdoc-version="1.78.0"·data-channel="1.78.0"·data-search-js="search-42d8da7a6b9792c2.js"·data-settings-js="settings-4313503d2e1961c2.js"·><script·src="../../static.files/storage-4c98445ec4002617.js"></script><script·defer·src="sidebar-items1.78.0.js"></script><script·defer·src="../../static.files/main-12cf3b4f4f9dc36d.js"></script><noscript><link·rel="stylesheet"·href="../../static.files/noscript-04d5337699b92874.css"></noscript><link·rel="alternate·icon"·type="image/png"·href="../../static.files/favicon-16x16-8b506e7a72182f1c.png"><link·rel="alternate·icon"·type="image/png"·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.78.0</span></h2></div><div·class="sidebar-elems"><h2><a·href="index.html">In·alloc::str</a></h2></div></nav><div·class="sidebar-resizer"></div>1 <!DOCTYPE·html><html·lang="en"><head><meta·charset="utf-8"><meta·name="viewport"·content="width=device-width,·initial-scale=1.0"><meta·name="generator"·content="rustdoc"><meta·name="description"·content="Creates·an·`&amp;str`·from·a·pointer·and·a·length."><title>from_raw_parts·in·alloc::str·-·Rust</title><script>·if·(window.location.protocol·!==·"file:")·document.write(`<link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/SourceSerif4-Regular-46f98efaafac5295.ttf.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/FiraSans-Regular-018c141bf0843ffd.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/FiraSans-Medium-8f9a781e4970d388.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/SourceCodePro-Regular-562dcc5011b6de7d.ttf.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/SourceCodePro-Semibold-d899c5a5c4aeb14a.ttf.woff2">`)</script><link·rel="stylesheet"·href="../../static.files/normalize-76eba96aa4d2e634.css"><link·rel="stylesheet"·href="../../static.files/rustdoc-35f9e32502181f1e.css"><meta·name="rustdoc-vars"·data-root-path="../../"·data-static-root-path="../../static.files/"·data-current-crate="alloc"·data-themes=""·data-resource-suffix="1.78.0"·data-rustdoc-version="1.78.0"·data-channel="1.78.0"·data-search-js="search-42d8da7a6b9792c2.js"·data-settings-js="settings-4313503d2e1961c2.js"·><script·src="../../static.files/storage-4c98445ec4002617.js"></script><script·defer·src="sidebar-items1.78.0.js"></script><script·defer·src="../../static.files/main-12cf3b4f4f9dc36d.js"></script><noscript><link·rel="stylesheet"·href="../../static.files/noscript-04d5337699b92874.css"></noscript><link·rel="alternate·icon"·type="image/png"·href="../../static.files/favicon-16x16-8b506e7a72182f1c.png"><link·rel="alternate·icon"·type="image/png"·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.78.0</span></h2></div><div·class="sidebar-elems"><h2><a·href="index.html">In·alloc::str</a></h2></div></nav><div·class="sidebar-resizer"></div>
2 ····<main><div·class="width-limiter"><nav·class="sub"><form·class="search-form"><span></span><div·id="sidebar-button"·tabindex="-1"><a·href="../../alloc/all.html"·title="show·sidebar"></a></div><input·class="search-input"·name="search"·aria-label="Run·search·in·the·documentation"·autocomplete="off"·spellcheck="false"·placeholder="Click·or·press·‘S’·to·search,·‘?’·for·more·options…"·type="search"><div·id="help-button"·tabindex="-1"><a·href="../../help.html"·title="help">?</a></div><div·id="settings-menu"·tabindex="-1"><a·href="../../settings.html"·title="settings"><img·width="22"·height="22"·alt="Change·settings"·src="../../static.files/wheel-7b819b6101059cd0.svg"></a></div></form></nav><section·id="main-content"·class="content"><div·class="main-heading"><h1>Function·<a·href="../index.html">alloc</a>::<wbr><a·href="index.html">str</a>::<wbr><a·class="fn"·href="#">from_raw_parts</a><button·id="copy-path"·title="Copy·item·path·to·clipboard"><img·src="../../static.files/clipboard-7571035ce49a181d.svg"·width="19"·height="18"·alt="Copy·item·path"></button></h1><span·class="out-of-band"><span·class="since"·title="const·unstable">const:·<a·href="https://github.com/rust-lang/rust/issues/119206"·title="Tracking·issue·for·str_from_raw_parts">unstable</a></span>···<a·class="src"·href="../../src/core/str/converts.rs.html#223">source</a>···<button·id="toggle-all-docs"·title="collapse·all·docs">[<span>&#x2212;</span>]</button></span></div><pre·class="rust·item-decl"><code>pub·unsafe·fn·from_raw_parts&lt;'a&gt;(ptr:·<a·class="primitive"·hre[·...·truncated·by·diffoscope;·len:·236,·SHA:·57dc02e13df1f03f15993193ff9fcd787a60f927dd5bdc145ebc975acabd9467·...·]/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·an·<code>&amp;str</code>·from·a·pointer·and·a·length.</p>2 ····<main><div·class="width-limiter"><nav·class="sub"><form·class="search-form"><span></span><div·id="sidebar-button"·tabindex="-1"><a·href="../../alloc/all.html"·title="show·sidebar"></a></div><input·class="search-input"·name="search"·aria-label="Run·search·in·the·documentation"·autocomplete="off"·spellcheck="false"·placeholder="Click·or·press·‘S’·to·search,·‘?’·for·more·options…"·type="search"><div·id="help-button"·tabindex="-1"><a·href="../../help.html"·title="help">?</a></div><div·id="settings-menu"·tabindex="-1"><a·href="../../settings.html"·title="settings"><img·width="22"·height="22"·alt="Change·settings"·src="../../static.files/wheel-7b819b6101059cd0.svg"></a></div></form></nav><section·id="main-content"·class="content"><div·class="main-heading"><h1>Function·<a·href="../index.html">alloc</a>::<wbr><a·href="index.html">str</a>::<wbr><a·class="fn"·href="#">from_raw_parts</a><button·id="copy-path"·title="Copy·item·path·to·clipboard"><img·src="../../static.files/clipboard-7571035ce49a181d.svg"·width="19"·height="18"·alt="Copy·item·path"></button></h1><span·class="out-of-band"><span·class="since"·title="const·unstable">const:·<a·href="https://github.com/rust-lang/rust/issues/119206"·title="Tracking·issue·for·str_from_raw_parts">unstable</a></span>···<a·class="src"·href="https://doc.rust-lang.org/1.78.0/src/core/str/converts.rs.html#223">source</a>···<button·id="toggle-all-docs"·title="collapse·all·docs">[<span>&#x2212;</span>]</button></span></div><pre·class="rust·item-decl"><code>pub·unsafe·fn·from_raw_parts&lt;'a&gt;(pt[·...·truncated·by·diffoscope;·len:·371,·SHA:·e5d32c33971048a63698c5d20d142da0b1773a6fdf1a806f69478f707c36ea64·...·]/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·an·<code>&amp;str</code>·from·a·pointer·and·a·length.</p>
3 <p>The·pointed-to·bytes·must·be·valid·UTF-8.3 <p>The·pointed-to·bytes·must·be·valid·UTF-8.
4 If·this·might·not·be·the·case,·use·<code>str::from_utf8(slice::from_raw_parts(ptr,·len))</code>,4 If·this·might·not·be·the·case,·use·<code>str::from_utf8(slice::from_raw_parts(ptr,·len))</code>,
5 which·will·return·an·<code>Err</code>·if·the·data·isn’t·valid·UTF-8.</p>5 which·will·return·an·<code>Err</code>·if·the·data·isn’t·valid·UTF-8.</p>
6 <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 <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>.
7 See·that·function’s·documentation·for·safety·concerns·and·examples.</p>7 See·that·function’s·documentation·for·safety·concerns·and·examples.</p>
8 <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 <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>
9 </div></details></section></div></main></body></html>9 </div></details></section></div></main></body></html>
8.33 KB
./usr/share/doc/rust-web-doc/html/alloc/str/fn.from_raw_parts_mut.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·an·`&amp;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.write(`<link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/SourceSerif4-Regular-46f98efaafac5295.ttf.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/FiraSans-Regular-018c141bf0843ffd.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/FiraSans-Medium-8f9a781e4970d388.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/SourceCodePro-Regular-562dcc5011b6de7d.ttf.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/SourceCodePro-Semibold-d899c5a5c4aeb14a.ttf.woff2">`)</script><link·rel="stylesheet"·href="../../static.files/normalize-76eba96aa4d2e634.css"><link·rel="stylesheet"·href="../../static.files/rustdoc-35f9e32502181f1e.css"><meta·name="rustdoc-vars"·data-root-path="../../"·data-static-root-path="../../static.files/"·data-current-crate="alloc"·data-themes=""·data-resource-suffix="1.78.0"·data-rustdoc-version="1.78.0"·data-channel="1.78.0"·data-search-js="search-42d8da7a6b9792c2.js"·data-settings-js="settings-4313503d2e1961c2.js"·><script·src="../../static.files/storage-4c98445ec4002617.js"></script><script·defer·src="sidebar-items1.78.0.js"></script><script·defer·src="../../static.files/main-12cf3b4f4f9dc36d.js"></script><noscript><link·rel="stylesheet"·href="../../static.files/noscript-04d5337699b92874.css"></noscript><link·rel="alternate·icon"·type="image/png"·href="../../static.files/favicon-16x16-8b506e7a72182f1c.png"><link·rel="alternate·icon"·type="image/png"·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.78.0</span></h2></div><div·class="sidebar-elems"><h2><a·href="index.html">In·alloc::str</a></h2></div></nav><div·class="sidebar-resizer"></div>1 <!DOCTYPE·html><html·lang="en"><head><meta·charset="utf-8"><meta·name="viewport"·content="width=device-width,·initial-scale=1.0"><meta·name="generator"·content="rustdoc"><meta·name="description"·content="Creates·an·`&amp;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.write(`<link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/SourceSerif4-Regular-46f98efaafac5295.ttf.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/FiraSans-Regular-018c141bf0843ffd.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/FiraSans-Medium-8f9a781e4970d388.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/SourceCodePro-Regular-562dcc5011b6de7d.ttf.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/SourceCodePro-Semibold-d899c5a5c4aeb14a.ttf.woff2">`)</script><link·rel="stylesheet"·href="../../static.files/normalize-76eba96aa4d2e634.css"><link·rel="stylesheet"·href="../../static.files/rustdoc-35f9e32502181f1e.css"><meta·name="rustdoc-vars"·data-root-path="../../"·data-static-root-path="../../static.files/"·data-current-crate="alloc"·data-themes=""·data-resource-suffix="1.78.0"·data-rustdoc-version="1.78.0"·data-channel="1.78.0"·data-search-js="search-42d8da7a6b9792c2.js"·data-settings-js="settings-4313503d2e1961c2.js"·><script·src="../../static.files/storage-4c98445ec4002617.js"></script><script·defer·src="sidebar-items1.78.0.js"></script><script·defer·src="../../static.files/main-12cf3b4f4f9dc36d.js"></script><noscript><link·rel="stylesheet"·href="../../static.files/noscript-04d5337699b92874.css"></noscript><link·rel="alternate·icon"·type="image/png"·href="../../static.files/favicon-16x16-8b506e7a72182f1c.png"><link·rel="alternate·icon"·type="image/png"·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.78.0</span></h2></div><div·class="sidebar-elems"><h2><a·href="index.html">In·alloc::str</a></h2></div></nav><div·class="sidebar-resizer"></div>
2 ····<main><div·class="width-limiter"><nav·class="sub"><form·class="search-form"><span></span><div·id="sidebar-button"·tabindex="-1"><a·href="../../alloc/all.html"·title="show·sidebar"></a></div><input·class="search-input"·name="search"·aria-label="Run·search·in·the·documentation"·autocomplete="off"·spellcheck="false"·placeholder="Click·or·press·‘S’·to·search,·‘?’·for·more·options…"·type="search"><div·id="help-button"·tabindex="-1"><a·href="../../help.html"·title="help">?</a></div><div·id="settings-menu"·tabindex="-1"><a·href="../../settings.html"·title="settings"><img·width="22"·height="22"·alt="Change·settings"·src="../../static.files/wheel-7b819b6101059cd0.svg"></a></div></form></nav><section·id="main-content"·class="content"><div·class="main-heading"><h1>Function·<a·href="../index.html">alloc</a>::<wbr><a·href="index.html">str</a>::<wbr><a·class="fn"·href="#">from_raw_parts_mut</a><button·id="copy-path"·title="Copy·item·path·to·clipboard"><img·src="../../static.files/clipboard-7571035ce49a181d.svg"·width="19"·height="18"·alt="Copy·item·path"></button></h1><span·class="out-of-band"><span·class="since"·title="const·unstable">const:·<a·href="https://github.com/rust-lang/rust/issues/119206"·title="Tracking·issue·for·const_str_from_raw_parts_mut">unstable</a></span>···<a·class="src"·href="../../src/core/str/converts.rs.html#242">source</a>···<button·id="toggle-all-docs"·title="collapse·all·docs">[<span>&#x2212;</span>]</button></span></div><pre·class="rust·item-decl"><code>pub·unsafe·fn·from_raw_parts_mut&lt;'a&gt;(ptr:·<a·class="primitive"[·...·truncated·by·diffoscope;·len:·238,·SHA:·1ef5204560ea95f439f39100812514f56ea175c31c4519e539ce60f69ba728ff·...·]/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·an·<code>&amp;mut·str</code>·from·a·pointer·and·a·length.</p>2 ····<main><div·class="width-limiter"><nav·class="sub"><form·class="search-form"><span></span><div·id="sidebar-button"·tabindex="-1"><a·href="../../alloc/all.html"·title="show·sidebar"></a></div><input·class="search-input"·name="search"·aria-label="Run·search·in·the·documentation"·autocomplete="off"·spellcheck="false"·placeholder="Click·or·press·‘S’·to·search,·‘?’·for·more·options…"·type="search"><div·id="help-button"·tabindex="-1"><a·href="../../help.html"·title="help">?</a></div><div·id="settings-menu"·tabindex="-1"><a·href="../../settings.html"·title="settings"><img·width="22"·height="22"·alt="Change·settings"·src="../../static.files/wheel-7b819b6101059cd0.svg"></a></div></form></nav><section·id="main-content"·class="content"><div·class="main-heading"><h1>Function·<a·href="../index.html">alloc</a>::<wbr><a·href="index.html">str</a>::<wbr><a·class="fn"·href="#">from_raw_parts_mut</a><button·id="copy-path"·title="Copy·item·path·to·clipboard"><img·src="../../static.files/clipboard-7571035ce49a181d.svg"·width="19"·height="18"·alt="Copy·item·path"></button></h1><span·class="out-of-band"><span·class="since"·title="const·unstable">const:·<a·href="https://github.com/rust-lang/rust/issues/119206"·title="Tracking·issue·for·const_str_from_raw_parts_mut">unstable</a></span>···<a·class="src"·href="https://doc.rust-lang.org/1.78.0/src/core/str/converts.rs.html#242">source</a>···<button·id="toggle-all-docs"·title="collapse·all·docs">[<span>&#x2212;</span>]</button></span></div><pre·class="rust·item-decl"><code>pub·unsafe·fn·from_raw_parts_mut&lt;'a&gt[·...·truncated·by·diffoscope;·len:·373,·SHA:·1de326526b90b0d0633fbb129a47e232b2807bdae8863db3d5010fb17509b5b3·...·]/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·an·<code>&amp;mut·str</code>·from·a·pointer·and·a·length.</p>
3 <p>The·pointed-to·bytes·must·be·valid·UTF-8.3 <p>The·pointed-to·bytes·must·be·valid·UTF-8.
4 If·this·might·not·be·the·case,·use·<code>str::from_utf8_mut(slice::from_raw_parts_mut(ptr,·len))</code>,4 If·this·might·not·be·the·case,·use·<code>str::from_utf8_mut(slice::from_raw_parts_mut(ptr,·len))</code>,
5 which·will·return·an·<code>Err</code>·if·the·data·isn’t·valid·UTF-8.</p>5 which·will·return·an·<code>Err</code>·if·the·data·isn’t·valid·UTF-8.</p>
6 <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>.6 <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>.
7 See·that·function’s·documentation·for·safety·concerns·and·examples.</p>7 See·that·function’s·documentation·for·safety·concerns·and·examples.</p>
8 <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>8 <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>
9 </div></details></section></div></main></body></html>9 </div></details></section></div></main></body></html>
9.5 KB
./usr/share/doc/rust-web-doc/html/alloc/str/fn.from_utf8.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="Converts·a·slice·of·bytes·to·a·string·slice."><title>from_utf8·in·alloc::str·-·Rust</title><script>·if·(window.location.protocol·!==·"file:")·document.write(`<link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/SourceSerif4-Regular-46f98efaafac5295.ttf.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/FiraSans-Regular-018c141bf0843ffd.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/FiraSans-Medium-8f9a781e4970d388.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/SourceCodePro-Regular-562dcc5011b6de7d.ttf.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/SourceCodePro-Semibold-d899c5a5c4aeb14a.ttf.woff2">`)</script><link·rel="stylesheet"·href="../../static.files/normalize-76eba96aa4d2e634.css"><link·rel="stylesheet"·href="../../static.files/rustdoc-35f9e32502181f1e.css"><meta·name="rustdoc-vars"·data-root-path="../../"·data-static-root-path="../../static.files/"·data-current-crate="alloc"·data-themes=""·data-resource-suffix="1.78.0"·data-rustdoc-version="1.78.0"·data-channel="1.78.0"·data-search-js="search-42d8da7a6b9792c2.js"·data-settings-js="settings-4313503d2e1961c2.js"·><script·src="../../static.files/storage-4c98445ec4002617.js"></script><script·defer·src="sidebar-items1.78.0.js"></script><script·defer·src="../../static.files/main-12cf3b4f4f9dc36d.js"></script><noscript><link·rel="stylesheet"·href="../../static.files/noscript-04d5337699b92874.css"></noscript><link·rel="alternate·icon"·type="image/png"·href="../../static.files/favicon-16x16-8b506e7a72182f1c.png"><link·rel="alternate·icon"·type="image/png"·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.78.0</span></h2></div><div·class="sidebar-elems"><h2><a·href="index.html">In·alloc::str</a></h2></div></nav><div·class="sidebar-resizer"></div>1 <!DOCTYPE·html><html·lang="en"><head><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.write(`<link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/SourceSerif4-Regular-46f98efaafac5295.ttf.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/FiraSans-Regular-018c141bf0843ffd.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/FiraSans-Medium-8f9a781e4970d388.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/SourceCodePro-Regular-562dcc5011b6de7d.ttf.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/SourceCodePro-Semibold-d899c5a5c4aeb14a.ttf.woff2">`)</script><link·rel="stylesheet"·href="../../static.files/normalize-76eba96aa4d2e634.css"><link·rel="stylesheet"·href="../../static.files/rustdoc-35f9e32502181f1e.css"><meta·name="rustdoc-vars"·data-root-path="../../"·data-static-root-path="../../static.files/"·data-current-crate="alloc"·data-themes=""·data-resource-suffix="1.78.0"·data-rustdoc-version="1.78.0"·data-channel="1.78.0"·data-search-js="search-42d8da7a6b9792c2.js"·data-settings-js="settings-4313503d2e1961c2.js"·><script·src="../../static.files/storage-4c98445ec4002617.js"></script><script·defer·src="sidebar-items1.78.0.js"></script><script·defer·src="../../static.files/main-12cf3b4f4f9dc36d.js"></script><noscript><link·rel="stylesheet"·href="../../static.files/noscript-04d5337699b92874.css"></noscript><link·rel="alternate·icon"·type="image/png"·href="../../static.files/favicon-16x16-8b506e7a72182f1c.png"><link·rel="alternate·icon"·type="image/png"·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.78.0</span></h2></div><div·class="sidebar-elems"><h2><a·href="index.html">In·alloc::str</a></h2></div></nav><div·class="sidebar-resizer"></div>
2 ····<main><div·class="width-limiter"><nav·class="sub"><form·class="search-form"><span></span><div·id="sidebar-button"·tabindex="-1"><a·href="../../alloc/all.html"·title="show·sidebar"></a></div><input·class="search-input"·name="search"·aria-label="Run·search·in·the·documentation"·autocomplete="off"·spellcheck="false"·placeholder="Click·or·press·‘S’·to·search,·‘?’·for·more·options…"·type="search"><div·id="help-button"·tabindex="-1"><a·href="../../help.html"·title="help">?</a></div><div·id="settings-menu"·tabindex="-1"><a·href="../../settings.html"·title="settings"><img·width="22"·height="22"·alt="Change·settings"·src="../../static.files/wheel-7b819b6101059cd0.svg"></a></div></form></nav><section·id="main-content"·class="content"><div·class="main-heading"><h1>Function·<a·href="../index.html">alloc</a>::<wbr><a·href="index.html">str</a>::<wbr><a·class="fn"·href="#">from_utf8</a><button·id="copy-path"·title="Copy·item·path·to·clipboard"><img·src="../../static.files/clipboard-7571035ce49a181d.svg"·width="19"·height="18"·alt="Copy·item·path"></button></h1><span·class="out-of-band"><span·class="since"·title="Stable·since·Rust·version·1.0.0,·const·since·1.63.0">1.0.0·(const:·1.63.0)</span>···<a·class="src"·href="../../src/core/str/converts.rs.html#88">source</a>···<button·id="toggle-all-docs"·title="collapse·all·docs">[<span>&#x2212;</span>]</button></span></div><pre·class="rust·item-decl"><code>pub·const·fn·from_utf8(v:·&amp;[<a·class="primitive"·href="../../core[·...·truncated·by·diffoscope;·len:·178,·SHA:·1c6183724b1d30c35fd2484f432a69280d5fca12e2650813cf9b5f4d5846f3e3·...·]/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 ····<main><div·class="width-limiter"><nav·class="sub"><form·class="search-form"><span></span><div·id="sidebar-button"·tabindex="-1"><a·href="../../alloc/all.html"·title="show·sidebar"></a></div><input·class="search-input"·name="search"·aria-label="Run·search·in·the·documentation"·autocomplete="off"·spellcheck="false"·placeholder="Click·or·press·‘S’·to·search,·‘?’·for·more·options…"·type="search"><div·id="help-button"·tabindex="-1"><a·href="../../help.html"·title="help">?</a></div><div·id="settings-menu"·tabindex="-1"><a·href="../../settings.html"·title="settings"><img·width="22"·height="22"·alt="Change·settings"·src="../../static.files/wheel-7b819b6101059cd0.svg"></a></div></form></nav><section·id="main-content"·class="content"><div·class="main-heading"><h1>Function·<a·href="../index.html">alloc</a>::<wbr><a·href="index.html">str</a>::<wbr><a·class="fn"·href="#">from_utf8</a><button·id="copy-path"·title="Copy·item·path·to·clipboard"><img·src="../../static.files/clipboard-7571035ce49a181d.svg"·width="19"·height="18"·alt="Copy·item·path"></button></h1><span·class="out-of-band"><span·class="since"·title="Stable·since·Rust·version·1.0.0,·const·since·1.63.0">1.0.0·(const:·1.63.0)</span>···<a·class="src"·href="https://doc.rust-lang.org/1.78.0/src/core/str/converts.rs.html#88">source</a>···<button·id="toggle-all-docs"·title="collapse·all·docs">[<span>&#x2212;</span>]</button></span></div><pre·class="rust·item-decl"><code>pub·const·fn·from_utf8(v:·&amp;[<a·class="[·...·truncated·by·diffoscope;·len:·286,·SHA:·313dc92e854254eff541ee187528668d27b30d0d7dc129f941e6f1e7367913b1·...·]/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>
3 <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·slice3 <p>A·string·slice·(<a·href="https://doc.rust-lang.org/1.78.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.78.0/core/primitive.u8.html"·title="primitive·u8"><code>u8</code></a>),·and·a·byte·slice
4 (<a·href="../../core/primitive.slice.html"·title="primitive·slice"><code>&amp;[u8]</code></a>)·is·made·of·bytes,·so·this·function·converts·between4 (<a·href="https://doc.rust-lang.org/1.78.0/core/primitive.slice.html"·title="primitive·slice"><code>&amp;[u8]</code></a>)·is·made·of·bytes,·so·this·function·converts·between
5 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>·requires5 the·two.·Not·all·byte·slices·are·valid·string·slices,·however:·<a·href="https://doc.rust-lang.org/1.78.0/core/primitive.str.html"·title="primitive·str"><code>&amp;str</code></a>·requires
6 that·it·is·valid·UTF-8.·<code>from_utf8()</code>·checks·to·ensure·that·the·bytes·are·valid6 that·it·is·valid·UTF-8.·<code>from_utf8()</code>·checks·to·ensure·that·the·bytes·are·valid
7 UTF-8,·and·then·does·the·conversion.</p>7 UTF-8,·and·then·does·the·conversion.</p>
8 <p>If·you·are·sure·that·the·byte·slice·is·valid·UTF-8,·and·you·don’t·want·to8 <p>If·you·are·sure·that·the·byte·slice·is·valid·UTF-8,·and·you·don’t·want·to
9 incur·the·overhead·of·the·validity·check,·there·is·an·unsafe·version·of9 incur·the·overhead·of·the·validity·check,·there·is·an·unsafe·version·of
10 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·same10 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
11 behavior·but·skips·the·check.</p>11 behavior·but·skips·the·check.</p>
12 <p>If·you·need·a·<code>String</code>·instead·of·a·<code>&amp;str</code>,·consider12 <p>If·you·need·a·<code>String</code>·instead·of·a·<code>&amp;str</code>,·consider
13 <a·href="../../std/string/struct.String.html#method.from_utf8"><code>String::from_utf8</code></a>.</p>13 <a·href="../../std/string/struct.String.html#method.from_utf8"><code>String::from_utf8</code></a>.</p>
14 <p>Because·you·can·stack-allocate·a·<code>[u8;·N]</code>,·and·you·can·take·a14 <p>Because·you·can·stack-allocate·a·<code>[u8;·N]</code>,·and·you·can·take·a
15 <a·href="../../core/primitive.slice.html"·title="primitive·slice"><code>&amp;[u8]</code></a>·of·it,·this·function·is·one·way·to·have·a15 <a·href="https://doc.rust-lang.org/1.78.0/core/primitive.slice.html"·title="primitive·slice"><code>&amp;[u8]</code></a>·of·it,·this·function·is·one·way·to·have·a
16 stack-allocated·string.·There·is·an·example·of·this·in·the16 stack-allocated·string.·There·is·an·example·of·this·in·the
17 examples·section·below.</p>17 examples·section·below.</p>
18 <h2·id="errors"><a·class="doc-anchor"·href="#errors">§</a>Errors</h2>18 <h2·id="errors"><a·class="doc-anchor"·href="#errors">§</a>Errors</h2>
19 <p>Returns·<code>Err</code>·if·the·slice·is·not·UTF-8·with·a·description·as·to·why·the19 <p>Returns·<code>Err</code>·if·the·slice·is·not·UTF-8·with·a·description·as·to·why·the
20 provided·slice·is·not·UTF-8.</p>20 provided·slice·is·not·UTF-8.</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 <p>Basic·usage:</p>22 <p>Basic·usage:</p>
8.01 KB
./usr/share/doc/rust-web-doc/html/alloc/str/fn.from_utf8_mut.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="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.write(`<link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/SourceSerif4-Regular-46f98efaafac5295.ttf.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/FiraSans-Regular-018c141bf0843ffd.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/FiraSans-Medium-8f9a781e4970d388.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/SourceCodePro-Regular-562dcc5011b6de7d.ttf.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/SourceCodePro-Semibold-d899c5a5c4aeb14a.ttf.woff2">`)</script><link·rel="stylesheet"·href="../../static.files/normalize-76eba96aa4d2e634.css"><link·rel="stylesheet"·href="../../static.files/rustdoc-35f9e32502181f1e.css"><meta·name="rustdoc-vars"·data-root-path="../../"·data-static-root-path="../../static.files/"·data-current-crate="alloc"·data-themes=""·data-resource-suffix="1.78.0"·data-rustdoc-version="1.78.0"·data-channel="1.78.0"·data-search-js="search-42d8da7a6b9792c2.js"·data-settings-js="settings-4313503d2e1961c2.js"·><script·src="../../static.files/storage-4c98445ec4002617.js"></script><script·defer·src="sidebar-items1.78.0.js"></script><script·defer·src="../../static.files/main-12cf3b4f4f9dc36d.js"></script><noscript><link·rel="stylesheet"·href="../../static.files/noscript-04d5337699b92874.css"></noscript><link·rel="alternate·icon"·type="image/png"·href="../../static.files/favicon-16x16-8b506e7a72182f1c.png"><link·rel="alternate·icon"·type="image/png"·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.78.0</span></h2></div><div·class="sidebar-elems"><h2><a·href="index.html">In·alloc::str</a></h2></div></nav><div·class="sidebar-resizer"></div>1 <!DOCTYPE·html><html·lang="en"><head><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.write(`<link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/SourceSerif4-Regular-46f98efaafac5295.ttf.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/FiraSans-Regular-018c141bf0843ffd.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/FiraSans-Medium-8f9a781e4970d388.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/SourceCodePro-Regular-562dcc5011b6de7d.ttf.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/SourceCodePro-Semibold-d899c5a5c4aeb14a.ttf.woff2">`)</script><link·rel="stylesheet"·href="../../static.files/normalize-76eba96aa4d2e634.css"><link·rel="stylesheet"·href="../../static.files/rustdoc-35f9e32502181f1e.css"><meta·name="rustdoc-vars"·data-root-path="../../"·data-static-root-path="../../static.files/"·data-current-crate="alloc"·data-themes=""·data-resource-suffix="1.78.0"·data-rustdoc-version="1.78.0"·data-channel="1.78.0"·data-search-js="search-42d8da7a6b9792c2.js"·data-settings-js="settings-4313503d2e1961c2.js"·><script·src="../../static.files/storage-4c98445ec4002617.js"></script><script·defer·src="sidebar-items1.78.0.js"></script><script·defer·src="../../static.files/main-12cf3b4f4f9dc36d.js"></script><noscript><link·rel="stylesheet"·href="../../static.files/noscript-04d5337699b92874.css"></noscript><link·rel="alternate·icon"·type="image/png"·href="../../static.files/favicon-16x16-8b506e7a72182f1c.png"><link·rel="alternate·icon"·type="image/png"·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.78.0</span></h2></div><div·class="sidebar-elems"><h2><a·href="index.html">In·alloc::str</a></h2></div></nav><div·class="sidebar-resizer"></div>
2 ····<main><div·class="width-limiter"><nav·class="sub"><form·class="search-form"><span></span><div·id="sidebar-button"·tabindex="-1"><a·href="../../alloc/all.html"·title="show·sidebar"></a></div><input·class="search-input"·name="search"·aria-label="Run·search·in·the·documentation"·autocomplete="off"·spellcheck="false"·placeholder="Click·or·press·‘S’·to·search,·‘?’·for·more·options…"·type="search"><div·id="help-button"·tabindex="-1"><a·href="../../help.html"·title="help">?</a></div><div·id="settings-menu"·tabindex="-1"><a·href="../../settings.html"·title="settings"><img·width="22"·height="22"·alt="Change·settings"·src="../../static.files/wheel-7b819b6101059cd0.svg"></a></div></form></nav><section·id="main-content"·class="content"><div·class="main-heading"><h1>Function·<a·href="../index.html">alloc</a>::<wbr><a·href="index.html">str</a>::<wbr><a·class="fn"·href="#">from_utf8_mut</a><button·id="copy-path"·title="Copy·item·path·to·clipboard"><img·src="../../static.files/clipboard-7571035ce49a181d.svg"·width="19"·height="18"·alt="Copy·item·path"></button></h1><span·class="out-of-band"><span·class="since"·title="Stable·since·Rust·version·1.20.0,·const·unstable">1.20.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#132">source</a>···<button·id="toggle-all-docs"·title="collapse·all·docs">[<span>&#x2212;</span>]</button></span></div><pre·class="rust·item-decl"><code>pub·fn·from_utf8_mut(v:·&amp;mut·[<a·class="primitive"·href="../../c[·...·truncated·by·diffoscope;·len:·185,·SHA:·1d7e8c4d85d2bc3f383f91b4ed53395ab5f71e25c244df34f6615f797bfec0d7·...·]/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 ····<main><div·class="width-limiter"><nav·class="sub"><form·class="search-form"><span></span><div·id="sidebar-button"·tabindex="-1"><a·href="../../alloc/all.html"·title="show·sidebar"></a></div><input·class="search-input"·name="search"·aria-label="Run·search·in·the·documentation"·autocomplete="off"·spellcheck="false"·placeholder="Click·or·press·‘S’·to·search,·‘?’·for·more·options…"·type="search"><div·id="help-button"·tabindex="-1"><a·href="../../help.html"·title="help">?</a></div><div·id="settings-menu"·tabindex="-1"><a·href="../../settings.html"·title="settings"><img·width="22"·height="22"·alt="Change·settings"·src="../../static.files/wheel-7b819b6101059cd0.svg"></a></div></form></nav><section·id="main-content"·class="content"><div·class="main-heading"><h1>Function·<a·href="../index.html">alloc</a>::<wbr><a·href="index.html">str</a>::<wbr><a·class="fn"·href="#">from_utf8_mut</a><button·id="copy-path"·title="Copy·item·path·to·clipboard"><img·src="../../static.files/clipboard-7571035ce49a181d.svg"·width="19"·height="18"·alt="Copy·item·path"></button></h1><span·class="out-of-band"><span·class="since"·title="Stable·since·Rust·version·1.20.0,·const·unstable">1.20.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.78.0/src/core/str/converts.rs.html#132">source</a>···<button·id="toggle-all-docs"·title="collapse·all·docs">[<span>&#x2212;</span>]</button></span></div><pre·class="rust·item-decl"><code>pub·fn·from_utf8_mut(v:·&amp;mut·[<a·clas[·...·truncated·by·diffoscope;·len:·293,·SHA:·03bf7433384beb83ba85a78efe97cb9d8f2044bc0a6d4697535fe42902f48633·...·]/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>
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::str;5 <div·class="example-wrap"><pre·class="rust·rust-example-rendered"><code><span·class="kw">use·</span>std::str;
  
6 <span·class="comment">//·"Hello,·Rust!"·as·a·mutable·vector6 <span·class="comment">//·"Hello,·Rust!"·as·a·mutable·vector
7 </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>];7 </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>];
7.08 KB
./usr/share/doc/rust-web-doc/html/alloc/str/fn.from_utf8_unchecked.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="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.write(`<link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/SourceSerif4-Regular-46f98efaafac5295.ttf.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/FiraSans-Regular-018c141bf0843ffd.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/FiraSans-Medium-8f9a781e4970d388.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/SourceCodePro-Regular-562dcc5011b6de7d.ttf.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/SourceCodePro-Semibold-d899c5a5c4aeb14a.ttf.woff2">`)</script><link·rel="stylesheet"·href="../../static.files/normalize-76eba96aa4d2e634.css"><link·rel="stylesheet"·href="../../static.files/rustdoc-35f9e32502181f1e.css"><meta·name="rustdoc-vars"·data-root-path="../../"·data-static-root-path="../../static.files/"·data-current-crate="alloc"·data-themes=""·data-resource-suffix="1.78.0"·data-rustdoc-version="1.78.0"·data-channel="1.78.0"·data-search-js="search-42d8da7a6b9792c2.js"·data-settings-js="settings-4313503d2e1961c2.js"·><script·src="../../static.files/storage-4c98445ec4002617.js"></script><script·defer·src="sidebar-items1.78.0.js"></script><script·defer·src="../../static.files/main-12cf3b4f4f9dc36d.js"></script><noscript><link·rel="stylesheet"·href="../../static.files/noscript-04d5337699b92874.css"></noscript><link·rel="alternate·icon"·type="image/png"·href="../../static.files/favicon-16x16-8b506e7a72182f1c.png"><link·rel="alternate·icon"·type="image/png"·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.78.0</span></h2></div><div·class="sidebar-elems"><h2><a·href="index.html">In·alloc::str</a></h2></div></nav><div·class="sidebar-resizer"></div>1 <!DOCTYPE·html><html·lang="en"><head><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.write(`<link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/SourceSerif4-Regular-46f98efaafac5295.ttf.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/FiraSans-Regular-018c141bf0843ffd.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/FiraSans-Medium-8f9a781e4970d388.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/SourceCodePro-Regular-562dcc5011b6de7d.ttf.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/SourceCodePro-Semibold-d899c5a5c4aeb14a.ttf.woff2">`)</script><link·rel="stylesheet"·href="../../static.files/normalize-76eba96aa4d2e634.css"><link·rel="stylesheet"·href="../../static.files/rustdoc-35f9e32502181f1e.css"><meta·name="rustdoc-vars"·data-root-path="../../"·data-static-root-path="../../static.files/"·data-current-crate="alloc"·data-themes=""·data-resource-suffix="1.78.0"·data-rustdoc-version="1.78.0"·data-channel="1.78.0"·data-search-js="search-42d8da7a6b9792c2.js"·data-settings-js="settings-4313503d2e1961c2.js"·><script·src="../../static.files/storage-4c98445ec4002617.js"></script><script·defer·src="sidebar-items1.78.0.js"></script><script·defer·src="../../static.files/main-12cf3b4f4f9dc36d.js"></script><noscript><link·rel="stylesheet"·href="../../static.files/noscript-04d5337699b92874.css"></noscript><link·rel="alternate·icon"·type="image/png"·href="../../static.files/favicon-16x16-8b506e7a72182f1c.png"><link·rel="alternate·icon"·type="image/png"·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.78.0</span></h2></div><div·class="sidebar-elems"><h2><a·href="index.html">In·alloc::str</a></h2></div></nav><div·class="sidebar-resizer"></div>
2 ····<main><div·class="width-limiter"><nav·class="sub"><form·class="search-form"><span></span><div·id="sidebar-button"·tabindex="-1"><a·href="../../alloc/all.html"·title="show·sidebar"></a></div><input·class="search-input"·name="search"·aria-label="Run·search·in·the·documentation"·autocomplete="off"·spellcheck="false"·placeholder="Click·or·press·‘S’·to·search,·‘?’·for·more·options…"·type="search"><div·id="help-button"·tabindex="-1"><a·href="../../help.html"·title="help">?</a></div><div·id="settings-menu"·tabindex="-1"><a·href="../../settings.html"·title="settings"><img·width="22"·height="22"·alt="Change·settings"·src="../../static.files/wheel-7b819b6101059cd0.svg"></a></div></form></nav><section·id="main-content"·class="content"><div·class="main-heading"><h1>Function·<a·href="../index.html">alloc</a>::<wbr><a·href="index.html">str</a>::<wbr><a·class="fn"·href="#">from_utf8_unchecked</a><button·id="copy-path"·title="Copy·item·path·to·clipboard"><img·src="../../static.files/clipboard-7571035ce49a181d.svg"·width="19"·height="18"·alt="Copy·item·path"></button></h1><span·class="out-of-band"><span·class="since"·title="Stable·since·Rust·version·1.0.0,·const·since·1.55.0">1.0.0·(const:·1.55.0)</span>···<a·class="src"·href="../../src/core/str/converts.rs.html#173">source</a>···<button·id="toggle-all-docs"·title="collapse·all·docs">[<span>&#x2212;</span>]</button></span></div><pre·class="rust·item-decl"><code>pub·const·unsafe·fn·from_utf8_unchecked(v:·&amp;[<a·class="primitive[·...·truncated·by·diffoscope;·len:·90,·SHA:·40d0a828faea3dff8c67e4ef0072c3ccbb5d6c6c568cfb9df6da55eab65fcd04·...·]/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·checking2 ····<main><div·class="width-limiter"><nav·class="sub"><form·class="search-form"><span></span><div·id="sidebar-button"·tabindex="-1"><a·href="../../alloc/all.html"·title="show·sidebar"></a></div><input·class="search-input"·name="search"·aria-label="Run·search·in·the·documentation"·autocomplete="off"·spellcheck="false"·placeholder="Click·or·press·‘S’·to·search,·‘?’·for·more·options…"·type="search"><div·id="help-button"·tabindex="-1"><a·href="../../help.html"·title="help">?</a></div><div·id="settings-menu"·tabindex="-1"><a·href="../../settings.html"·title="settings"><img·width="22"·height="22"·alt="Change·settings"·src="../../static.files/wheel-7b819b6101059cd0.svg"></a></div></form></nav><section·id="main-content"·class="content"><div·class="main-heading"><h1>Function·<a·href="../index.html">alloc</a>::<wbr><a·href="index.html">str</a>::<wbr><a·class="fn"·href="#">from_utf8_unchecked</a><button·id="copy-path"·title="Copy·item·path·to·clipboard"><img·src="../../static.files/clipboard-7571035ce49a181d.svg"·width="19"·height="18"·alt="Copy·item·path"></button></h1><span·class="out-of-band"><span·class="since"·title="Stable·since·Rust·version·1.0.0,·const·since·1.55.0">1.0.0·(const:·1.55.0)</span>···<a·class="src"·href="https://doc.rust-lang.org/1.78.0/src/core/str/converts.rs.html#173">source</a>···<button·id="toggle-all-docs"·title="collapse·all·docs">[<span>&#x2212;</span>]</button></span></div><pre·class="rust·item-decl"><code>pub·const·unsafe·fn·from_utf8_unchecked(v[·...·truncated·by·diffoscope;·len:·171,·SHA:·915588a228c687d5ead9e3ff80454957c2481c8575c79bfc3024ece6b4b2eefb·...·]/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
3 that·the·string·contains·valid·UTF-8.</p>3 that·the·string·contains·valid·UTF-8.</p>
4 <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 <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>
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>The·bytes·passed·in·must·be·valid·UTF-8.</p>6 <p>The·bytes·passed·in·must·be·valid·UTF-8.</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:</p>8 <p>Basic·usage:</p>
  
7.42 KB
./usr/share/doc/rust-web-doc/html/alloc/str/fn.from_utf8_unchecked_mut.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="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.write(`<link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/SourceSerif4-Regular-46f98efaafac5295.ttf.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/FiraSans-Regular-018c141bf0843ffd.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/FiraSans-Medium-8f9a781e4970d388.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/SourceCodePro-Regular-562dcc5011b6de7d.ttf.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/SourceCodePro-Semibold-d899c5a5c4aeb14a.ttf.woff2">`)</script><link·rel="stylesheet"·href="../../static.files/normalize-76eba96aa4d2e634.css"><link·rel="stylesheet"·href="../../static.files/rustdoc-35f9e32502181f1e.css"><meta·name="rustdoc-vars"·data-root-path="../../"·data-static-root-path="../../static.files/"·data-current-crate="alloc"·data-themes=""·data-resource-suffix="1.78.0"·data-rustdoc-version="1.78.0"·data-channel="1.78.0"·data-search-js="search-42d8da7a6b9792c2.js"·data-settings-js="settings-4313503d2e1961c2.js"·><script·src="../../static.files/storage-4c98445ec4002617.js"></script><script·defer·src="sidebar-items1.78.0.js"></script><script·defer·src="../../static.files/main-12cf3b4f4f9dc36d.js"></script><noscript><link·rel="stylesheet"·href="../../static.files/noscript-04d5337699b92874.css"></noscript><link·rel="alternate·icon"·type="image/png"·href="../../static.files/favicon-16x16-8b506e7a72182f1c.png"><link·rel="alternate·icon"·type="image/png"·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.78.0</span></h2></div><div·class="sidebar-elems"><h2><a·href="index.html">In·alloc::str</a></h2></div></nav><div·class="sidebar-resizer"></div>1 <!DOCTYPE·html><html·lang="en"><head><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.write(`<link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/SourceSerif4-Regular-46f98efaafac5295.ttf.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/FiraSans-Regular-018c141bf0843ffd.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/FiraSans-Medium-8f9a781e4970d388.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/SourceCodePro-Regular-562dcc5011b6de7d.ttf.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/SourceCodePro-Semibold-d899c5a5c4aeb14a.ttf.woff2">`)</script><link·rel="stylesheet"·href="../../static.files/normalize-76eba96aa4d2e634.css"><link·rel="stylesheet"·href="../../static.files/rustdoc-35f9e32502181f1e.css"><meta·name="rustdoc-vars"·data-root-path="../../"·data-static-root-path="../../static.files/"·data-current-crate="alloc"·data-themes=""·data-resource-suffix="1.78.0"·data-rustdoc-version="1.78.0"·data-channel="1.78.0"·data-search-js="search-42d8da7a6b9792c2.js"·data-settings-js="settings-4313503d2e1961c2.js"·><script·src="../../static.files/storage-4c98445ec4002617.js"></script><script·defer·src="sidebar-items1.78.0.js"></script><script·defer·src="../../static.files/main-12cf3b4f4f9dc36d.js"></script><noscript><link·rel="stylesheet"·href="../../static.files/noscript-04d5337699b92874.css"></noscript><link·rel="alternate·icon"·type="image/png"·href="../../static.files/favicon-16x16-8b506e7a72182f1c.png"><link·rel="alternate·icon"·type="image/png"·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.78.0</span></h2></div><div·class="sidebar-elems"><h2><a·href="index.html">In·alloc::str</a></h2></div></nav><div·class="sidebar-resizer"></div>
2 ····<main><div·class="width-limiter"><nav·class="sub"><form·class="search-form"><span></span><div·id="sidebar-button"·tabindex="-1"><a·href="../../alloc/all.html"·title="show·sidebar"></a></div><input·class="search-input"·name="search"·aria-label="Run·search·in·the·documentation"·autocomplete="off"·spellcheck="false"·placeholder="Click·or·press·‘S’·to·search,·‘?’·for·more·options…"·type="search"><div·id="help-button"·tabindex="-1"><a·href="../../help.html"·title="help">?</a></div><div·id="settings-menu"·tabindex="-1"><a·href="../../settings.html"·title="settings"><img·width="22"·height="22"·alt="Change·settings"·src="../../static.files/wheel-7b819b6101059cd0.svg"></a></div></form></nav><section·id="main-content"·class="content"><div·class="main-heading"><h1>Function·<a·href="../index.html">alloc</a>::<wbr><a·href="index.html">str</a>::<wbr><a·class="fn"·href="#">from_utf8_unchecked_mut</a><button·id="copy-path"·title="Copy·item·path·to·clipboard"><img·src="../../static.files/clipboard-7571035ce49a181d.svg"·width="19"·height="18"·alt="Copy·item·path"></button></h1><span·class="out-of-band"><span·class="since"·title="Stable·since·Rust·version·1.20.0,·const·unstable">1.20.0·(const:·<a·href="https://github.com/rust-lang/rust/issues/91005"·title="Tracking·issue·for·const_str_from_utf8_unchecked_mut">unstable</a>)</span>···<a·class="src"·href="../../src/core/str/converts.rs.html#201">source</a>···<button·id="toggle-all-docs"·title="collapse·all·docs">[<span>&#x2212;</span>]</button></span></div><pre·class="rust·item-decl"><code>pub·unsafe·fn·from_utf8_unchecked_mut(v:·&amp;mut·[<a·class="primiti[·...·truncated·by·diffoscope;·len:·96,·SHA:·93a186d59df999f2f28fe2d27a373e3f768f95540a7ea2d97c7703f4ed9aa1e0·...·]/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·checking2 ····<main><div·class="width-limiter"><nav·class="sub"><form·class="search-form"><span></span><div·id="sidebar-button"·tabindex="-1"><a·href="../../alloc/all.html"·title="show·sidebar"></a></div><input·class="search-input"·name="search"·aria-label="Run·search·in·the·documentation"·autocomplete="off"·spellcheck="false"·placeholder="Click·or·press·‘S’·to·search,·‘?’·for·more·options…"·type="search"><div·id="help-button"·tabindex="-1"><a·href="../../help.html"·title="help">?</a></div><div·id="settings-menu"·tabindex="-1"><a·href="../../settings.html"·title="settings"><img·width="22"·height="22"·alt="Change·settings"·src="../../static.files/wheel-7b819b6101059cd0.svg"></a></div></form></nav><section·id="main-content"·class="content"><div·class="main-heading"><h1>Function·<a·href="../index.html">alloc</a>::<wbr><a·href="index.html">str</a>::<wbr><a·class="fn"·href="#">from_utf8_unchecked_mut</a><button·id="copy-path"·title="Copy·item·path·to·clipboard"><img·src="../../static.files/clipboard-7571035ce49a181d.svg"·width="19"·height="18"·alt="Copy·item·path"></button></h1><span·class="out-of-band"><span·class="since"·title="Stable·since·Rust·version·1.20.0,·const·unstable">1.20.0·(const:·<a·href="https://github.com/rust-lang/rust/issues/91005"·title="Tracking·issue·for·const_str_from_utf8_unchecked_mut">unstable</a>)</span>···<a·class="src"·href="https://doc.rust-lang.org/1.78.0/src/core/str/converts.rs.html#201">source</a>···<button·id="toggle-all-docs"·title="collapse·all·docs">[<span>&#x2212;</span>]</button></span></div><pre·class="rust·item-decl"><code>pub·unsafe·fn·from_utf8_unchecked_mut(v:·[·...·truncated·by·diffoscope;·len:·177,·SHA:·97b5bba4f2ef485054a238131747ab26354cb95fbcc6285029043aa6090fe90e·...·]/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
3 that·the·string·contains·valid·UTF-8;·mutable·version.</p>3 that·the·string·contains·valid·UTF-8;·mutable·version.</p>
4 <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 <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>
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::str;7 <div·class="example-wrap"><pre·class="rust·rust-example-rendered"><code><span·class="kw">use·</span>std::str;
  
25.2 KB
./usr/share/doc/rust-web-doc/html/alloc/str/index.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="Utilities·for·the·`str`·primitive·type."><title>alloc::str·-·Rust</title><script>·if·(window.location.protocol·!==·"file:")·document.write(`<link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/SourceSerif4-Regular-46f98efaafac5295.ttf.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/FiraSans-Regular-018c141bf0843ffd.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/FiraSans-Medium-8f9a781e4970d388.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/SourceCodePro-Regular-562dcc5011b6de7d.ttf.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/SourceCodePro-Semibold-d899c5a5c4aeb14a.ttf.woff2">`)</script><link·rel="stylesheet"·href="../../static.files/normalize-76eba96aa4d2e634.css"><link·rel="stylesheet"·href="../../static.files/rustdoc-35f9e32502181f1e.css"><meta·name="rustdoc-vars"·data-root-path="../../"·data-static-root-path="../../static.files/"·data-current-crate="alloc"·data-themes=""·data-resource-suffix="1.78.0"·data-rustdoc-version="1.78.0"·data-channel="1.78.0"·data-search-js="search-42d8da7a6b9792c2.js"·data-settings-js="settings-4313503d2e1961c2.js"·><script·src="../../static.files/storage-4c98445ec4002617.js"></script><script·defer·src="../sidebar-items1.78.0.js"></script><script·defer·src="../../static.files/main-12cf3b4f4f9dc36d.js"></script><noscript><link·rel="stylesheet"·href="../../static.files/noscript-04d5337699b92874.css"></noscript><link·rel="alternate·icon"·type="image/png"·href="../../static.files/favicon-16x16-8b506e7a72182f1c.png"><link·rel="alternate·icon"·type="image/png"·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.78.0</span></h2></div><h2·class="location"><a·href="#">Module·str</a></h2><div·class="sidebar-elems"><section><ul·class="block"><li><a·href="#modules">Modules</a></li><li><a·href="#structs">Structs</a></li><li><a·href="#traits">Traits</a></li><li><a·href="#functions">Functions</a></li></ul></section><h2><a·href="../index.html">In·crate·alloc</a></h2></div></nav><div·class="sidebar-resizer"></div>1 <!DOCTYPE·html><html·lang="en"><head><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.write(`<link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/SourceSerif4-Regular-46f98efaafac5295.ttf.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/FiraSans-Regular-018c141bf0843ffd.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/FiraSans-Medium-8f9a781e4970d388.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/SourceCodePro-Regular-562dcc5011b6de7d.ttf.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/SourceCodePro-Semibold-d899c5a5c4aeb14a.ttf.woff2">`)</script><link·rel="stylesheet"·href="../../static.files/normalize-76eba96aa4d2e634.css"><link·rel="stylesheet"·href="../../static.files/rustdoc-35f9e32502181f1e.css"><meta·name="rustdoc-vars"·data-root-path="../../"·data-static-root-path="../../static.files/"·data-current-crate="alloc"·data-themes=""·data-resource-suffix="1.78.0"·data-rustdoc-version="1.78.0"·data-channel="1.78.0"·data-search-js="search-42d8da7a6b9792c2.js"·data-settings-js="settings-4313503d2e1961c2.js"·><script·src="../../static.files/storage-4c98445ec4002617.js"></script><script·defer·src="../sidebar-items1.78.0.js"></script><script·defer·src="../../static.files/main-12cf3b4f4f9dc36d.js"></script><noscript><link·rel="stylesheet"·href="../../static.files/noscript-04d5337699b92874.css"></noscript><link·rel="alternate·icon"·type="image/png"·href="../../static.files/favicon-16x16-8b506e7a72182f1c.png"><link·rel="alternate·icon"·type="image/png"·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.78.0</span></h2></div><h2·class="location"><a·href="#">Module·str</a></h2><div·class="sidebar-elems"><section><ul·class="block"><li><a·href="#modules">Modules</a></li><li><a·href="#structs">Structs</a></li><li><a·href="#traits">Traits</a></li><li><a·href="#functions">Functions</a></li></ul></section><h2><a·href="../index.html">In·crate·alloc</a></h2></div></nav><div·class="sidebar-resizer"></div>
2 ····<main><div·class="width-limiter"><nav·class="sub"><form·class="search-form"><span></span><div·id="sidebar-button"·tabindex="-1"><a·href="../../alloc/all.html"·title="show·sidebar"></a></div><input·class="search-input"·name="search"·aria-label="Run·search·in·the·documentation"·autocomplete="off"·spellcheck="false"·placeholder="Click·or·press·‘S’·to·search,·‘?’·for·more·options…"·type="search"><div·id="help-button"·tabindex="-1"><a·href="../../help.html"·title="help">?</a></div><div·id="settings-menu"·tabindex="-1"><a·href="../../settings.html"·title="settings"><img·width="22"·height="22"·alt="Change·settings"·src="../../static.files/wheel-7b819b6101059cd0.svg"></a></div></form></nav><section·id="main-content"·class="content"><div·class="main-heading"><h1>Module·<a·href="../index.html">alloc</a>::<wbr><a·class="mod"·href="#">str</a><button·id="copy-path"·title="Copy·item·path·to·clipboard"><img·src="../../static.files/clipboard-7571035ce49a181d.svg"·width="19"·height="18"·alt="Copy·item·path"></button></h1><span·class="out-of-band"><span·class="since"·title="Stable·since·Rust·version·1.0.0">1.0.0</span>···<a·class="src"·href="../../src/alloc/str.rs.html#1-662">source</a>···<button·id="toggle-all-docs"·title="collapse·all·docs">[<span>&#x2212;</span>]</button></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 ····<main><div·class="width-limiter"><nav·class="sub"><form·class="search-form"><span></span><div·id="sidebar-button"·tabindex="-1"><a·href="../../alloc/all.html"·title="show·sidebar"></a></div><input·class="search-input"·name="search"·aria-label="Run·search·in·the·documentation"·autocomplete="off"·spellcheck="false"·placeholder="Click·or·press·‘S’·to·search,·‘?’·for·more·options…"·type="search"><div·id="help-button"·tabindex="-1"><a·href="../../help.html"·title="help">?</a></div><div·id="settings-menu"·tabindex="-1"><a·href="../../settings.html"·title="settings"><img·width="22"·height="22"·alt="Change·settings"·src="../../static.files/wheel-7b819b6101059cd0.svg"></a></div></form></nav><section·id="main-content"·class="content"><div·class="main-heading"><h1>Module·<a·href="../index.html">alloc</a>::<wbr><a·class="mod"·href="#">str</a><button·id="copy-path"·title="Copy·item·path·to·clipboard"><img·src="../../static.files/clipboard-7571035ce49a181d.svg"·width="19"·height="18"·alt="Copy·item·path"></button></h1><span·class="out-of-band"><span·class="since"·title="Stable·since·Rust·version·1.0.0">1.0.0</span>···<a·class="src"·href="../../src/alloc/str.rs.html#1-662">source</a>···<button·id="toggle-all-docs"·title="collapse·all·docs">[<span>&#x2212;</span>]</button></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>
3 <p><em><a·href="../../core/primitive.str.html"·title="primitive·str">See·also·the·<code>str</code>·primitive·type</a>.</em></p>3 <p><em><a·href="https://doc.rust-lang.org/1.78.0/core/primitive.str.html"·title="primitive·str">See·also·the·<code>str</code>·primitive·type</a>.</em></p>
4 </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><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">CharIndices</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:·4861,·SHA:·0fa4a0b0763289f8980e95bdb390060173a1ba4686807be2f7ad2357b0276a2a·...·]/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">SplitAsciiWhitespace</a></div><div·class="desc·docblock-short">An·iterator·over·the·non-ASCII-whitespace·substrings·of·a·string,4 </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><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">CharIndices</a></div><div·class="desc·docblock-short">An·iterator·over·the·<a·href="https://doc.rust-lang.org/1.78.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:·5266,·SHA:·8ef9ec3810019a92a8c14e3ed3887a4cacaa9157e955699cb02cedaa1b93f727·...·]/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">SplitAsciiWhitespace</a></div><div·class="desc·docblock-short">An·iterator·over·the·non-ASCII-whitespace·substrings·of·a·string,
5 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">SplitInclusive</a></div><div·class="desc·docblock-short">An·iterator·over·the·substrings·of·a·string,5 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">SplitInclusive</a></div><div·class="desc·docblock-short">An·iterator·over·the·substrings·of·a·string,
6 terminated·by·a·substring·matching·to·a·predicate·function6 terminated·by·a·substring·matching·to·a·predicate·function
7 Unlike·<code>Split</code>,·it·contains·the·matched·part·as·a·terminator7 Unlike·<code>Split</code>,·it·contains·the·matched·part·as·a·terminator
8 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">SplitTerminator</a></div><[·...·truncated·by·diffoscope;·len:·70,·SHA:·0e0a3e4bc7391873bf2c27996b49dee267a6cbc581c0a2bde3a3ed311631d891·...·]/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">SplitWhitespace</a></div><div·class="desc·docblock-short">An·iterator·over·the·non-whitespace·substrings·of·a·string,8 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.78.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:·124,·SHA:·3cab5b0a23c9924843c0385ad037eb6ed270b2252001c0c0582d8f556ae84c88·...·]/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">SplitWhitespace</a></div><div·class="desc·docblock-short">An·iterator·over·the·non-whitespace·substrings·of·a·string,
9 separated·by·any·amount·of·whitespace.</div></li><li><div·class="item-name"><a·class="struct"·href="struct.Utf8Error.html"·title="struct·alloc::str::Utf8Error">Utf8Error</a></div><div·class="desc·docblock-short">Errors·which·can·occur·when·attempting·to·interpret·a·sequence·of·<a·href="../../core/primitive.u8.html"·title="primitive·u8"><code>u8</code></a>9 separated·by·any·amount·of·whitespace.</div></li><li><div·class="item-name"><a·class="struct"·href="struct.Utf8Error.html"·title="struct·alloc::str::Utf8Error">Utf8Error</a></div><div·class="desc·docblock-short">Errors·which·can·occur·when·attempting·to·interpret·a·sequence·of·<a·href="https://doc.rust-lang.org/1.78.0/core/primitive.u8.html"·title="primitive·u8"><code>u8</code></a>
10 as·a·string.</div></li><li><div·class="item-name"><a·class="struct"·href="struct.Utf8Chunk.html"·title="struct·alloc::str::Utf8Chunk">Utf8Chunk</a><span·class="stab·unstable"·title="">Experimental</span></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">Utf8Chunks</a><span·class="stab·unstable"·title="">Experimental</span></div><div·class="desc·docblock-short">An·iterator·used·to·decode·a·slice·of·mostly·UTF-8·bytes·to·string·slices10 as·a·string.</div></li><li><div·class="item-name"><a·class="struct"·href="struct.Utf8Chunk.html"·title="struct·alloc::str::Utf8Chunk">Utf8Chunk</a><span·class="stab·unstable"·title="">Experimental</span></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">Utf8Chunks</a><span·class="stab·unstable"·title="">Experimental</span></div><div·class="desc·docblock-short">An·iterator·used·to·decode·a·slice·of·mostly·UTF-8·bytes·to·string·slices
11 (<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></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_boxed_utf8_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·checking11 (<a·href="https://doc.rust-lang.org/1.78.0/core/primitive.str.html"·title="primitive·str"><code>&amp;str</code></a>)·and·byte·slices·(<a·href="https://doc.rust-lang.org/1.78.0/core/primitive.slice.html"·title="primitive·slice"><code>&amp;[u8]</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.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_boxed_utf8_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
12 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_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_utf8_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_utf8_unchecked</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.html"·title="fn·alloc::str::from_utf8">from_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_utf8_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_utf8_unchecked</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.</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_utf8_unchecked_mut</a><sup·title="unsafe·function">⚠</sup></div><div·class="desc·docblock-short">Converts·a·slice·of·bytes·to·a·string·slice·without·checking13 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_utf8_unchecked_mut</a><sup·title="unsafe·function">⚠</sup></div><div·class="desc·docblock-short">Converts·a·slice·of·bytes·to·a·string·slice·without·checking
14 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_raw_parts</a><sup·title="unsafe·function">⚠</sup><span·class="stab·unstable"·title="">Experimental</span></div><div·class="desc·docblock-short">Creates·an·<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_raw_parts_mut</a><sup·title="unsafe·function">⚠</sup><span·class="stab·unstable"·title="">Experimental</span></div><div·class="desc·docblock-short">Creates·an·<code>&amp;mut·str</code>·from·a·pointer·and·a·length.</div></li></ul></section></div></main></body></html>14 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_raw_parts</a><sup·title="unsafe·function">⚠</sup><span·class="stab·unstable"·title="">Experimental</span></div><div·class="desc·docblock-short">Creates·an·<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_raw_parts_mut</a><sup·title="unsafe·function">⚠</sup><span·class="stab·unstable"·title="">Experimental</span></div><div·class="desc·docblock-short">Creates·an·<code>&amp;mut·str</code>·from·a·pointer·and·a·length.</div></li></ul></section></div></main></body></html>
57.2 KB
./usr/share/doc/rust-web-doc/html/alloc/str/pattern/enum.SearchStep.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="Result·of·calling·`Searcher::next()`·or·`ReverseSearcher::next_back()`."><title>SearchStep·in·alloc::str::pattern·-·Rust</title><script>·if·(window.location.protocol·!==·"file:")·document.write(`<link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../../static.files/SourceSerif4-Regular-46f98efaafac5295.ttf.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../../static.files/FiraSans-Regular-018c141bf0843ffd.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../../static.files/FiraSans-Medium-8f9a781e4970d388.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../../static.files/SourceCodePro-Regular-562dcc5011b6de7d.ttf.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../../static.files/SourceCodePro-Semibold-d899c5a5c4aeb14a.ttf.woff2">`)</script><link·rel="stylesheet"·href="../../../static.files/normalize-76eba96aa4d2e634.css"><link·rel="stylesheet"·href="../../../static.files/rustdoc-35f9e32502181f1e.css"><meta·name="rustdoc-vars"·data-root-path="../../../"·data-static-root-path="../../../static.files/"·data-current-crate="alloc"·data-themes=""·data-resource-suffix="1.78.0"·data-rustdoc-version="1.78.0"·data-channel="1.78.0"·data-search-js="search-42d8da7a6b9792c2.js"·data-settings-js="settings-4313503d2e1961c2.js"·><script·src="../../../static.files/storage-4c98445ec4002617.js"></script><script·defer·src="sidebar-items1.78.0.js"></script><script·defer·src="../../../static.files/main-12cf3b4f4f9dc36d.js"></script><noscript><link·rel="stylesheet"·href="../../../static.files/noscript-04d5337699b92874.css"></noscript><link·rel="alternate·icon"·type="image/png"·href="../../../static.files/favicon-16x16-8b506e7a72182f1c.png"><link·rel="alternate·icon"·type="image/png"·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.78.0</span></h2></div><h2·class="location"><a·href="#">SearchStep</a></h2><div·class="sidebar-elems"><section><h3><a·href="#variants">Variants</a></h3><ul·class="block·variant"><li><a·href="#variant.Done">Done</a></li><li><a·href="#variant.Match">Match</a></li><li><a·href="#variant.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">Clone</a></li><li><a·href="#impl-Copy-for-SearchStep">Copy</a></li><li><a·href="#impl-Debug-for-SearchStep">Debug</a></li><li><a·href="#impl-Eq-for-SearchStep">Eq</a></li><li><a·href="#impl-PartialEq-for-SearchStep">PartialEq</a></li><li><a·href="#impl-StructuralPartialEq-for-SearchStep">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">Freeze</a></li><li><a·href="#impl-RefUnwindSafe-for-SearchStep">RefUnwindSafe</a></li><li><a·href="#impl-Send-for-SearchStep">Send</a></li><li><a·href="#impl-Sync-for-SearchStep">Sync</a></li><li><a·href="#impl-Unpin-for-SearchStep">Unpin</a></li><li><a·href="#impl-UnwindSafe-for-SearchStep">UnwindSafe</a></li></ul><h3><a·href="#blanket-implementations">Blanket·Implementations</a></h3><ul·class="block·blanket-implementation"><li><a·href="#impl-Any-for-T">Any</a></li><li><a·href="#impl-Borrow%3CT%3E-for-T">Borrow&lt;T&gt;</a></li><li><a·href="#impl-BorrowMut%3CT%3E-for-T">BorrowMut&lt;T&gt;</a></li><li><a·href="#impl-From%3CT%3E-for-T">From&lt;T&gt;</a></li><li><a·href="#impl-Into%3CU%3E-for-T">Into&lt;U&gt;</a></li><li><a·href="#impl-ToOwned-for-T">ToOwned</a></li><li><a·href="#impl-TryFrom%3CU%3E-for-T">TryFrom&lt;U&gt;</a></li><li><a·href="#impl-TryInto%3CU%3E-for-T">TryInto&lt;U&gt;</a></li></ul></section><h2><a·href="index.html">In·alloc::str::pattern</a></h2></div></nav><div·class="sidebar-resizer"></div>1 <!DOCTYPE·html><html·lang="en"><head><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.write(`<link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../../static.files/SourceSerif4-Regular-46f98efaafac5295.ttf.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../../static.files/FiraSans-Regular-018c141bf0843ffd.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../../static.files/FiraSans-Medium-8f9a781e4970d388.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../../static.files/SourceCodePro-Regular-562dcc5011b6de7d.ttf.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../../static.files/SourceCodePro-Semibold-d899c5a5c4aeb14a.ttf.woff2">`)</script><link·rel="stylesheet"·href="../../../static.files/normalize-76eba96aa4d2e634.css"><link·rel="stylesheet"·href="../../../static.files/rustdoc-35f9e32502181f1e.css"><meta·name="rustdoc-vars"·data-root-path="../../../"·data-static-root-path="../../../static.files/"·data-current-crate="alloc"·data-themes=""·data-resource-suffix="1.78.0"·data-rustdoc-version="1.78.0"·data-channel="1.78.0"·data-search-js="search-42d8da7a6b9792c2.js"·data-settings-js="settings-4313503d2e1961c2.js"·><script·src="../../../static.files/storage-4c98445ec4002617.js"></script><script·defer·src="sidebar-items1.78.0.js"></script><script·defer·src="../../../static.files/main-12cf3b4f4f9dc36d.js"></script><noscript><link·rel="stylesheet"·href="../../../static.files/noscript-04d5337699b92874.css"></noscript><link·rel="alternate·icon"·type="image/png"·href="../../../static.files/favicon-16x16-8b506e7a72182f1c.png"><link·rel="alternate·icon"·type="image/png"·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.78.0</span></h2></div><h2·class="location"><a·href="#">SearchStep</a></h2><div·class="sidebar-elems"><section><h3><a·href="#variants">Variants</a></h3><ul·class="block·variant"><li><a·href="#variant.Done">Done</a></li><li><a·href="#variant.Match">Match</a></li><li><a·href="#variant.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">Clone</a></li><li><a·href="#impl-Copy-for-SearchStep">Copy</a></li><li><a·href="#impl-Debug-for-SearchStep">Debug</a></li><li><a·href="#impl-Eq-for-SearchStep">Eq</a></li><li><a·href="#impl-PartialEq-for-SearchStep">PartialEq</a></li><li><a·href="#impl-StructuralPartialEq-for-SearchStep">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">Freeze</a></li><li><a·href="#impl-RefUnwindSafe-for-SearchStep">RefUnwindSafe</a></li><li><a·href="#impl-Send-for-SearchStep">Send</a></li><li><a·href="#impl-Sync-for-SearchStep">Sync</a></li><li><a·href="#impl-Unpin-for-SearchStep">Unpin</a></li><li><a·href="#impl-UnwindSafe-for-SearchStep">UnwindSafe</a></li></ul><h3><a·href="#blanket-implementations">Blanket·Implementations</a></h3><ul·class="block·blanket-implementation"><li><a·href="#impl-Any-for-T">Any</a></li><li><a·href="#impl-Borrow%3CT%3E-for-T">Borrow&lt;T&gt;</a></li><li><a·href="#impl-BorrowMut%3CT%3E-for-T">BorrowMut&lt;T&gt;</a></li><li><a·href="#impl-From%3CT%3E-for-T">From&lt;T&gt;</a></li><li><a·href="#impl-Into%3CU%3E-for-T">Into&lt;U&gt;</a></li><li><a·href="#impl-ToOwned-for-T">ToOwned</a></li><li><a·href="#impl-TryFrom%3CU%3E-for-T">TryFrom&lt;U&gt;</a></li><li><a·href="#impl-TryInto%3CU%3E-for-T">TryInto&lt;U&gt;</a></li></ul></section><h2><a·href="index.html">In·alloc::str::pattern</a></h2></div></nav><div·class="sidebar-resizer"></div>
2 ····<main><div·class="width-limiter"><nav·class="sub"><form·class="search-form"><span></span><div·id="sidebar-button"·tabindex="-1"><a·href="../../../alloc/all.html"·title="show·sidebar"></a></div><input·class="search-input"·name="search"·aria-label="Run·search·in·the·documentation"·autocomplete="off"·spellcheck="false"·placeholder="Click·or·press·‘S’·to·search,·‘?’·for·more·options…"·type="search"><div·id="help-button"·tabindex="-1"><a·href="../../../help.html"·title="help">?</a></div><div·id="settings-menu"·tabindex="-1"><a·href="../../../settings.html"·title="settings"><img·width="22"·height="22"·alt="Change·settings"·src="../../../static.files/wheel-7b819b6101059cd0.svg"></a></div></form></nav><section·id="main-content"·class="content"><div·class="main-heading"><h1>Enum·<a·href="../../index.html">alloc</a>::<wbr><a·href="../index.html">str</a>::<wbr><a·href="index.html">pattern</a>::<wbr><a·class="enum"·href="#">SearchStep</a><button·id="copy-path"·title="Copy·item·path·to·clipboard"><img·src="../../../static.files/clipboard-7571035ce49a181d.svg"·width="19"·height="18"·alt="Copy·item·path"></button></h1><span·class="out-of-band"><a·class="src"·href="../../../src/core/str/pattern.rs.html#170">source</a>···<button·id="toggle-all-docs"·title="collapse·all·docs">[<span>&#x2212;</span>]</button></span></div><pre·class="rust·item-decl"><code>pub·enum·SearchStep·{2 ····<main><div·class="width-limiter"><nav·class="sub"><form·class="search-form"><span></span><div·id="sidebar-button"·tabindex="-1"><a·href="../../../alloc/all.html"·title="show·sidebar"></a></div><input·class="search-input"·name="search"·aria-label="Run·search·in·the·documentation"·autocomplete="off"·spellcheck="false"·placeholder="Click·or·press·‘S’·to·search,·‘?’·for·more·options…"·type="search"><div·id="help-button"·tabindex="-1"><a·href="../../../help.html"·title="help">?</a></div><div·id="settings-menu"·tabindex="-1"><a·href="../../../settings.html"·title="settings"><img·width="22"·height="22"·alt="Change·settings"·src="../../../static.files/wheel-7b819b6101059cd0.svg"></a></div></form></nav><section·id="main-content"·class="content"><div·class="main-heading"><h1>Enum·<a·href="../../index.html">alloc</a>::<wbr><a·href="../index.html">str</a>::<wbr><a·href="index.html">pattern</a>::<wbr><a·class="enum"·href="#">SearchStep</a><button·id="copy-path"·title="Copy·item·path·to·clipboard"><img·src="../../../static.files/clipboard-7571035ce49a181d.svg"·width="19"·height="18"·alt="Copy·item·path"></button></h1><span·class="out-of-band"><a·class="src"·href="https://doc.rust-lang.org/1.78.0/src/core/str/pattern.rs.html#170">source</a>···<button·id="toggle-all-docs"·title="collapse·all·docs">[<span>&#x2212;</span>]</button></span></div><pre·class="rust·item-decl"><code>pub·enum·SearchStep·{
3 ····Match(<a·class="primitive"·href="../../../core/primitive.usize.html">usize</a>,·<a·class="primitive"·href="../../../core/primitive.usize.html">usize</a>),3 ····Match(<a·class="primitive"·href="https://doc.rust-lang.org/1.78.0/core/primitive.usize.html">usize</a>,·<a·class="primitive"·href="https://doc.rust-lang.org/1.78.0/core/primitive.usize.html">usize</a>),
4 ····Reject(<a·class="primitive"·href="../../../core/primitive.usize.html">usize</a>,·<a·class="primitive"·href="../../../core/primitive.usize.html">usize</a>),4 ····Reject(<a·class="primitive"·href="https://doc.rust-lang.org/1.78.0/core/primitive.usize.html">usize</a>,·<a·class="primitive"·href="https://doc.rust-lang.org/1.78.0/core/primitive.usize.html">usize</a>),
5 ····Done,5 ····Done,
6 }</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 }</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>
7 </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·at7 </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.78.0/core/primitive.usize.html">usize</a>,·<a·class="primitive"·href="https://doc.rust-lang.org/1.78.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
8 <code>haystack[a..b]</code>.</p>8 <code>haystack[a..b]</code>.</p>
9 </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·match9 </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.78.0/core/primitive.usize.html">usize</a>,·<a·class="primitive"·href="https://doc.rust-lang.org/1.78.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
10 of·the·pattern.</p>10 of·the·pattern.</p>
11 <p>Note·that·there·might·be·more·than·one·<code>Reject</code>·between·two·<code>Match</code>es,11 <p>Note·that·there·might·be·more·than·one·<code>Reject</code>·between·two·<code>Match</code>es,
12 there·is·no·requirement·for·them·to·be·combined·into·one.</p>12 there·is·no·requirement·for·them·to·be·combined·into·one.</p>
13 </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,·ending13 </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
14 the·iteration.</p>14 the·iteration.</p>
15 </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#169">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:·4063,·SHA:·e0579c8d038054975cc1a214a48c32322c7aefe60187036528c25df7fb1df112·...·]/core/primitive.bool.html">bool</a></h4></section></summary><div·class='docblock'>This·method·tests·for·<code>self</code>·and·<code>other</code>·values·to·be·equal,·and·is·used15 </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.78.0/src/core/str/pattern.rs.html#169">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.78.0/core/clone/trait.Clone.html"·title="t[·...·truncated·by·diffoscope;·len:·4495,·SHA:·7468845dd24d7cfe6e0243d7eca1124a17f94971aa76c87faf2d09cc3309c369·...·]/core/primitive.bool.html">bool</a></h4></section></summary><div·class='docblock'>This·method·tests·for·<code>self</code>·and·<code>other</code>·values·to·be·equal,·and·is·used
16 by·<code>==</code>.</div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.ne"·class="method·trait-impl"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.0.0">1.0.0</span>···<a·class="src"·href="../../../src/core/cmp.rs.html#263">source</a></span><a·href="#method.ne"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../../../core/cmp/trait.PartialEq.html#method.ne"·class="fn">ne</a>(&amp;self,·other:·<a·class="primitive"·href="../../../core/[·...·truncated·by·diffoscope;·len:·81,·SHA:·2ba6e57f82d380e3f3fee865de22084b088301df9b3f69d725dd871f7e356b09·...·]/core/primitive.bool.html">bool</a></h4></section></summary><div·class='docblock'>This·method·tests·for·<code>!=</code>.·The·default·implementation·is·almost·always16 by·<code>==</code>.</div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.ne"·class="method·trait-impl"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.0.0">1.0.0</span>···<a·class="src"·href="https://doc.rust-lang.org/1.78.0/src/core/cmp.rs.html#263">source</a></span><a·href="#method.ne"·class="anchor">§</a><h4·class="code-header">fn·<a·href="https://doc.rust-lang.org/1.78.0/core/cmp/trait.PartialEq.html#method.ne"·class="fn">ne</a>(&amp;self,·[·...·truncated·by·diffoscope;·len:·177,·SHA:·e1e3f9b9b78644c807cda06ba58cbf80a7a50ed17e7136cd156da5dd11dec66f·...·]/core/primitive.bool.html">bool</a></h4></section></summary><div·class='docblock'>This·method·tests·for·<code>!=</code>.·The·default·implementation·is·almost·always
17 sufficient,·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#169">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:·953f30dd2478c9a959b55d1a50dad63eaa1bda1a08029de3320a1f944f96d198·...·]/core/any/trait.Any.html"·title="trait·core::any::Any">Any</a>·for·T<div·class="where">where17 sufficient,·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.78.0/src/core/str/pattern.rs.html#169">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.78.0/core/marker/trait.Copy.html"·title="tr[·...·truncated·by·diffoscope;·len:·4365,·SHA:·9cc63b5630f9948aaa3bca7700011e22ca07efb9deef8d3d786118338436d8dd·...·]/core/any/trait.Any.html"·title="trait·core::any::Any">Any</a>·for·T<div·class="where">where
18 ····T:·'static·+·?<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.type_id"·class="method·trait-impl"><a·class="s[·...·truncated·by·diffoscope;·len:·690,·SHA:·60266624df43cdf1ecb412e35aaf311341d62543468bcbd4041716fbafffc07b·...·]/src/core/borrow.rs.html#208">source</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">where18 ····T:·'static·+·?<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">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:·039b8952ccb1ab7d8f15cd519cbc10f4afc149276d0f9cfd3a53117d606059df·...·]/src/core/borrow.rs.html#208">source</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
19 ····T:·?<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.borrow"·class="method·trait-impl"><a·class="sr[·...·truncated·by·diffoscope;·len:·647,·SHA:·8124d60df08ac71436917cb874e0ec9c0ffe7e4515e2ea246a1f1009f83ac6a1·...·]/src/core/borrow.rs.html#216">source</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">where19 ····T:·?<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/marker/trait.Sized.html"·title="trait·core::marker::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:·b03884aeae1813f459b6ebe4b7e3f3c22d5d37e0ad023677fd3869bc5a735be2·...·]/src/core/borrow.rs.html#216">source</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
20 ····T:·?<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.borrow_mut"·class="method·trait-impl"><a·class[·...·truncated·by·diffoscope;·len:·1254,·SHA:·88cecdca8f65ac7671462e07b83fc0153c4024bd8b3f1bfba320be439fbe3a4f·...·]/core/convert/trait.From.html#tymethod.from"·class="fn">from</a>(t:·T)·-&gt;·T</h4></section></summary><div·class="docblock"><p>Returns·the·argument·unchanged.</p>20 ····T:·?<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/marker/trait.Sized.html"·title="trait·core::marker::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:·aaf5505cf4d2f5510949d066675a02996763e3167f43d15d7a3f114042a751b5·...·]/core/convert/trait.From.html#tymethod.from"·class="fn">from</a>(t:·T)·-&gt;·T</h4></section></summary><div·class="docblock"><p>Returns·the·argument·unchanged.</p>
21 </div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-Into%3CU%3E-for-T"·class="impl"><a·class="src·rightside"·href="../../../src/core/convert/mod.rs.html#748-750">source</a><a·href="#impl-Into%3CU%3E-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T,·U&gt;·<a·class="trait"·href="../../../core/convert/trait.Into.html"·title="trait·core::convert::Into">Into</a>&lt;U&gt;·for·T<div·class="where">where21 </div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-Into%3CU%3E-for-T"·class="impl"><a·class="src·rightside"·href="https://doc.rust-lang.org/1.78.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.78.0/core/convert/trait.Into.html"·title="trait·core::convert::Into">Into</a>&lt;U&gt;·for·T<div·class="where">where
22 ····U:·<a·class="trait"·href="../../../core/convert/trait.From.html"·title="trait·core::convert::From">From</a>&lt;T&gt;,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.into"·class="method·trait-impl"><a·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>22 ····U:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.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:·2cf76a8ca501b2a1fef209fed846779ab1bed3b75f52c7425335e3ce04e6b272·...·]/core/convert/trait.Into.html#tymethod.into"·class="fn">into</a>(self)·-&gt;·U</h4></section></summary><div·class="docblock"><p>Calls·<code>U::from(self)</code>.</p>
23 <p>That·is,·this·conversion·is·whatever·the·implementation·of23 <p>That·is,·this·conversion·is·whatever·the·implementation·of
24 <code><a·href="../../../core/convert/trait.From.html"·title="trait·core::convert::From">From</a>&lt;T&gt;·for·U</code>·chooses·to·do.</p>24 <code><a·href="https://doc.rust-lang.org/1.78.0/core/convert/trait.From.html"·title="trait·core::convert::From">From</a>&lt;T&gt;·for·U</code>·chooses·to·do.</p>
25 </div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-ToOwned-for-T"·class="impl"><a·class="src·rightside"·href="../../../src/alloc/borrow.rs.html#83-95">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">where25 </div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-ToOwned-for-T"·class="impl"><a·class="src·rightside"·href="../../../src/alloc/borrow.rs.html#83-95">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
26 ····T:·<a·class="trait"·href="../../../core/clone/trait.Clone.html"·title="trait·core::clone::Clone">Clone</a>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle"·open><summary><section·id="associatedtype.Owned"·class="associatedtype·trait-impl"><a·href="#ass[·...·truncated·by·diffoscope;·len:·1828,·SHA:·326644cdd10ec402cdb69dbc9def5714afb5a2f4c6c9280a5ab9ce010571c2dd·...·]/core/convert/trait.TryFrom.html"·title="trait·core::convert::TryFrom">TryFrom</a>&lt;U&gt;·for·T<div·class="where">where26 ····T:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.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:·1924,·SHA:·db6b4039e0093ed0d5887a096da47da282fdfd36f55651b9bf5f414e44ae56a4·...·]/core/convert/trait.TryFrom.html"·title="trait·core::convert::TryFrom">TryFrom</a>&lt;U&gt;·for·T<div·class="where">where
27 ····U:·<a·class="trait"·href="../../../core/convert/trait.Into.html"·title="trait·core::convert::Into">Into</a>&lt;T&gt;,</div></h3></section></summary><div·class="impl-items"><details·class="toggle"·open><summary><section·id="associatedtype.Error"·class="associatedtype·trait-impl"><a·[·...·truncated·by·diffoscope;·len:·1621,·SHA:·6a7315ddf4ab9fa76e45d600a396b342519e12c73d2e6dd09bf01e1fa1b0aac0·...·]/core/convert/trait.TryInto.html"·title="trait·core::convert::TryInto">TryInto</a>&lt;U&gt;·for·T<div·class="where">where27 ····U:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.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"·class="associ[·...·truncated·by·diffoscope;·len:·1861,·SHA:·78398046ba16de2f66a8201a11d6a2dd405fceedeabfcaa37481e77092687e6f·...·]/core/convert/trait.TryInto.html"·title="trait·core::convert::TryInto">TryInto</a>&lt;U&gt;·for·T<div·class="where">where
28 ····U:·<a·class="trait"·href="../../../core/convert/trait.TryFrom.html"·title="trait·core::convert::TryFrom">TryFrom</a>&lt;T&gt;,</div></h3></section></summary><div·class="impl-items"><details·class="toggle"·open><summary><section·id="associatedtype.Error-1"·class="associatedtype·trai[·...·truncated·by·diffoscope;·len:·1258,·SHA:·33d8749d0be17f35431e59e57d3fb79a5cc4320bd6fc26ab5ef088d04d3c929a·...·]/core/convert/trait.TryFrom.html#associatedtype.Error"·title="type·core::convert::TryFrom::Error">Error</a>&gt;</h4></section></summary><div·class='docblock'>Performs·the·conversion.</div></details></div></details></div></section></div></main></body></html>28 ····U:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.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-1"·cl[·...·truncated·by·diffoscope;·len:·1474,·SHA:·ca90cccb6c86c654c95a1aaec456fbbe4b115f0d5a700e7d156e823346d70894·...·]/core/convert/trait.TryFrom.html#associatedtype.Error"·title="type·core::convert::TryFrom::Error">Error</a>&gt;</h4></section></summary><div·class='docblock'>Performs·the·conversion.</div></details></div></details></div></section></div></main></body></html>
15.9 KB
./usr/share/doc/rust-web-doc/html/alloc/str/pattern/index.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="The·string·Pattern·API."><title>alloc::str::pattern·-·Rust</title><script>·if·(window.location.protocol·!==·"file:")·document.write(`<link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../../static.files/SourceSerif4-Regular-46f98efaafac5295.ttf.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../../static.files/FiraSans-Regular-018c141bf0843ffd.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../../static.files/FiraSans-Medium-8f9a781e4970d388.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../../static.files/SourceCodePro-Regular-562dcc5011b6de7d.ttf.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../../static.files/SourceCodePro-Semibold-d899c5a5c4aeb14a.ttf.woff2">`)</script><link·rel="stylesheet"·href="../../../static.files/normalize-76eba96aa4d2e634.css"><link·rel="stylesheet"·href="../../../static.files/rustdoc-35f9e32502181f1e.css"><meta·name="rustdoc-vars"·data-root-path="../../../"·data-static-root-path="../../../static.files/"·data-current-crate="alloc"·data-themes=""·data-resource-suffix="1.78.0"·data-rustdoc-version="1.78.0"·data-channel="1.78.0"·data-search-js="search-42d8da7a6b9792c2.js"·data-settings-js="settings-4313503d2e1961c2.js"·><script·src="../../../static.files/storage-4c98445ec4002617.js"></script><script·defer·src="../sidebar-items1.78.0.js"></script><script·defer·src="../../../static.files/main-12cf3b4f4f9dc36d.js"></script><noscript><link·rel="stylesheet"·href="../../../static.files/noscript-04d5337699b92874.css"></noscript><link·rel="alternate·icon"·type="image/png"·href="../../../static.files/favicon-16x16-8b506e7a72182f1c.png"><link·rel="alternate·icon"·type="image/png"·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.78.0</span></h2></div><h2·class="location"><a·href="#">Module·pattern</a></h2><div·class="sidebar-elems"><section><ul·class="block"><li><a·href="#structs">Structs</a></li><li><a·href="#enums">Enums</a></li><li><a·href="#traits">Traits</a></li></ul></section><h2><a·href="../index.html">In·alloc::str</a></h2></div></nav><div·class="sidebar-resizer"></div>1 <!DOCTYPE·html><html·lang="en"><head><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.write(`<link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../../static.files/SourceSerif4-Regular-46f98efaafac5295.ttf.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../../static.files/FiraSans-Regular-018c141bf0843ffd.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../../static.files/FiraSans-Medium-8f9a781e4970d388.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../../static.files/SourceCodePro-Regular-562dcc5011b6de7d.ttf.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../../static.files/SourceCodePro-Semibold-d899c5a5c4aeb14a.ttf.woff2">`)</script><link·rel="stylesheet"·href="../../../static.files/normalize-76eba96aa4d2e634.css"><link·rel="stylesheet"·href="../../../static.files/rustdoc-35f9e32502181f1e.css"><meta·name="rustdoc-vars"·data-root-path="../../../"·data-static-root-path="../../../static.files/"·data-current-crate="alloc"·data-themes=""·data-resource-suffix="1.78.0"·data-rustdoc-version="1.78.0"·data-channel="1.78.0"·data-search-js="search-42d8da7a6b9792c2.js"·data-settings-js="settings-4313503d2e1961c2.js"·><script·src="../../../static.files/storage-4c98445ec4002617.js"></script><script·defer·src="../sidebar-items1.78.0.js"></script><script·defer·src="../../../static.files/main-12cf3b4f4f9dc36d.js"></script><noscript><link·rel="stylesheet"·href="../../../static.files/noscript-04d5337699b92874.css"></noscript><link·rel="alternate·icon"·type="image/png"·href="../../../static.files/favicon-16x16-8b506e7a72182f1c.png"><link·rel="alternate·icon"·type="image/png"·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.78.0</span></h2></div><h2·class="location"><a·href="#">Module·pattern</a></h2><div·class="sidebar-elems"><section><ul·class="block"><li><a·href="#structs">Structs</a></li><li><a·href="#enums">Enums</a></li><li><a·href="#traits">Traits</a></li></ul></section><h2><a·href="../index.html">In·alloc::str</a></h2></div></nav><div·class="sidebar-resizer"></div>
2 ····<main><div·class="width-limiter"><nav·class="sub"><form·class="search-form"><span></span><div·id="sidebar-button"·tabindex="-1"><a·href="../../../alloc/all.html"·title="show·sidebar"></a></div><input·class="search-input"·name="search"·aria-label="Run·search·in·the·documentation"·autocomplete="off"·spellcheck="false"·placeholder="Click·or·press·‘S’·to·search,·‘?’·for·more·options…"·type="search"><div·id="help-button"·tabindex="-1"><a·href="../../../help.html"·title="help">?</a></div><div·id="settings-menu"·tabindex="-1"><a·href="../../../settings.html"·title="settings"><img·width="22"·height="22"·alt="Change·settings"·src="../../../static.files/wheel-7b819b6101059cd0.svg"></a></div></form></nav><section·id="main-content"·class="content"><div·class="main-heading"><h1>Module·<a·href="../../index.html">alloc</a>::<wbr><a·href="../index.html">str</a>::<wbr><a·class="mod"·href="#">pattern</a><button·id="copy-path"·title="Copy·item·path·to·clipboard"><img·src="../../../static.files/clipboard-7571035ce49a181d.svg"·width="19"·height="18"·alt="Copy·item·path"></button></h1><span·class="out-of-band"><a·class="src"·href="../../../src/core/str/mod.rs.html#24">source</a>···<button·id="toggle-all-docs"·title="collapse·all·docs">[<span>&#x2212;</span>]</button></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 ····<main><div·class="width-limiter"><nav·class="sub"><form·class="search-form"><span></span><div·id="sidebar-button"·tabindex="-1"><a·href="../../../alloc/all.html"·title="show·sidebar"></a></div><input·class="search-input"·name="search"·aria-label="Run·search·in·the·documentation"·autocomplete="off"·spellcheck="false"·placeholder="Click·or·press·‘S’·to·search,·‘?’·for·more·options…"·type="search"><div·id="help-button"·tabindex="-1"><a·href="../../../help.html"·title="help">?</a></div><div·id="settings-menu"·tabindex="-1"><a·href="../../../settings.html"·title="settings"><img·width="22"·height="22"·alt="Change·settings"·src="../../../static.files/wheel-7b819b6101059cd0.svg"></a></div></form></nav><section·id="main-content"·class="content"><div·class="main-heading"><h1>Module·<a·href="../../index.html">alloc</a>::<wbr><a·href="../index.html">str</a>::<wbr><a·class="mod"·href="#">pattern</a><button·id="copy-path"·title="Copy·item·path·to·clipboard"><img·src="../../../static.files/clipboard-7571035ce49a181d.svg"·width="19"·height="18"·alt="Copy·item·path"></button></h1><span·class="out-of-band"><a·class="src"·href="https://doc.rust-lang.org/1.78.0/src/core/str/mod.rs.html#24">source</a>···<button·id="toggle-all-docs"·title="collapse·all·docs">[<span>&#x2212;</span>]</button></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>
3 <p>The·Pattern·API·provides·a·generic·mechanism·for·using·different·pattern3 <p>The·Pattern·API·provides·a·generic·mechanism·for·using·different·pattern
4 types·when·searching·through·a·string.</p>4 types·when·searching·through·a·string.</p>
5 <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 <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>,
6 <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 <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>
7 <p>Although·this·API·is·unstable,·it·is·exposed·via·stable·APIs·on·the7 <p>Although·this·API·is·unstable,·it·is·exposed·via·stable·APIs·on·the
8 <a·href="../../../core/primitive.str.html"·title="primitive·str"><code>str</code></a>·type.</p>8 <a·href="https://doc.rust-lang.org/1.78.0/core/primitive.str.html"·title="primitive·str"><code>str</code></a>·type.</p>
9 <h2·id="examples"><a·class="doc-anchor"·href="#examples">§</a>Examples</h2>9 <h2·id="examples"><a·class="doc-anchor"·href="#examples">§</a>Examples</h2>
10 <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·for10 <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
11 <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·closures11 <a·href="https://doc.rust-lang.org/1.78.0/core/primitive.str.html"·title="primitive·str"><code>&amp;str</code></a>,·<a·href="https://doc.rust-lang.org/1.78.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:·0de2ebbec0aa81e15f92373a23c30fcc1b8fbd84c52671db0b014d4296e8f5d5·...·]/core/primitive.char.html"·title="primitive·char"><code>char</code></a>,·and·functions·and·closures
12 implementing·<code>FnMut(char)·-&gt;·bool</code>.</p>12 implementing·<code>FnMut(char)·-&gt;·bool</code>.</p>
  
13 <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 <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>;
  
14 <span·class="comment">//·&amp;str·pattern14 <span·class="comment">//·&amp;str·pattern
15 </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><span·class="macro">assert_eq!</span>(s.find(<span·class="string">"you"</span>),·<span·class="prelude-val">Some</span>(<span·class="number">4</span>));
16 <span·class="comment">//·char·pattern16 <span·class="comment">//·char·pattern
Offset 20, 8 lines modifiedOffset 20, 8 lines modified
20 <span·class="comment">//·array·of·chars·pattern20 <span·class="comment">//·array·of·chars·pattern
21 </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><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·class="comment">//·slice·of·chars·pattern22 <span·class="comment">//·slice·of·chars·pattern
23 </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><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>));
24 <span·class="comment">//·closure·pattern24 <span·class="comment">//·closure·pattern
25 </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"·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">Run</a></div>25 </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"·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">Run</a></div>
26 </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">CharArrayRefSearcher</a><span·class="stab·unstable"·title="">Experimental</span></div><div·class="desc·docblock-short">Associated·type·for·<code>&lt;&amp;[char;·N]·as·Pattern&lt;'a&gt;&gt;::Searcher</code>.</div></li><li><div·class="item-name"><a·class="struct"·href="struct.CharArraySearcher.html"·title="struct·alloc::str::pattern::CharArraySearcher">CharArraySearcher</a><span·class="stab·unstable"·title="">Experimental</span></div><div·class="desc·docblock-short">Associated·type·for·<code>&lt;[char;·N]·as·Pattern&lt;'a&gt;&gt;::Searcher</code>.</div></li><li><div·class="item-name"><a·class="struct"·href="struct.CharPredicateSearcher.html"·title="struct·alloc::str::pattern::CharPredicateSearcher">CharPredicateSearcher</a><span·class="stab·unstable"·title="">Experimental</span></div><div·class="desc·docblock-short">Associated·type·for·<code>&lt;F·as·Pattern&lt;'a&gt;&gt;::Searcher</code>.</div></li><li><div·class="item-name"><a·class="struct"·href="struct.CharSearcher.html"·title="struct·alloc::str::pattern::CharSearcher">CharSearcher</a><span·class="stab·unstable"·title="">Experimental</span></div><div·class="desc·docblock-short">Associated·type·for·<code>&lt;char·as·Pattern&lt;'a&gt;&gt;::Searcher</code>.</div></li><li><div·class="item-name"><a·class="struct"·href="struct.CharSliceSearcher.html"·title="struct·alloc::str::pattern::CharSliceSearcher">CharSliceSearcher</a><span·class="stab·unstable"·title="">Experimental</span></div><div·class="desc·docblock-short">Associated·type·for·<code>&lt;&amp;[char]·as·Pattern&lt;'a&gt;&gt;::Searcher</code>.</div></li><li><div·class="item-name"><a·class="struct"·href="struct.StrSearcher.html"·title="struct·alloc::str::pattern::StrSearcher">StrSearcher</a><span·class="stab·unstable"·title="">Experimental</span></div><div·class="desc·docblock-short">Associated·type·for·<code>&lt;&amp;str·as·Pattern&lt;'a&gt;&gt;::Searcher</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">SearchStep</a><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">DoubleEndedSearcher</a><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 </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">CharArrayRefSearcher</a><span·class="stab·unstable"·title="">Experimental</span></div><div·class="desc·docblock-short">Associated·type·for·<code>&lt;&amp;[char;·N]·as·Pattern&lt;'a&gt;&gt;::Searcher</code>.</div></li><li><div·class="item-name"><a·class="struct"·href="struct.CharArraySearcher.html"·title="struct·alloc::str::pattern::CharArraySearcher">CharArraySearcher</a><span·class="stab·unstable"·title="">Experimental</span></div><div·class="desc·docblock-short">Associated·type·for·<code>&lt;[char;·N]·as·Pattern&lt;'a&gt;&gt;::Searcher</code>.</div></li><li><div·class="item-name"><a·class="struct"·href="struct.CharPredicateSearcher.html"·title="struct·alloc::str::pattern::CharPredicateSearcher">CharPredicateSearcher</a><span·class="stab·unstable"·title="">Experimental</span></div><div·class="desc·docblock-short">Associated·type·for·<code>&lt;F·as·Pattern&lt;'a&gt;&gt;::Searcher</code>.</div></li><li><div·class="item-name"><a·class="struct"·href="struct.CharSearcher.html"·title="struct·alloc::str::pattern::CharSearcher">CharSearcher</a><span·class="stab·unstable"·title="">Experimental</span></div><div·class="desc·docblock-short">Associated·type·for·<code>&lt;char·as·Pattern&lt;'a&gt;&gt;::Searcher</code>.</div></li><li><div·class="item-name"><a·class="struct"·href="struct.CharSliceSearcher.html"·title="struct·alloc::str::pattern::CharSliceSearcher">CharSliceSearcher</a><span·class="stab·unstable"·title="">Experimental</span></div><div·class="desc·docblock-short">Associated·type·for·<code>&lt;&amp;[char]·as·Pattern&lt;'a&gt;&gt;::Searcher</code>.</div></li><li><div·class="item-name"><a·class="struct"·href="struct.StrSearcher.html"·title="struct·alloc::str::pattern::StrSearcher">StrSearcher</a><span·class="stab·unstable"·title="">Experimental</span></div><div·class="desc·docblock-short">Associated·type·for·<code>&lt;&amp;str·as·Pattern&lt;'a&gt;&gt;::Searcher</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">SearchStep</a><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">DoubleEndedSearcher</a><span·class="stab·unstable"·title="">Experimental</span></div><div·class="desc·docblock-short">A·marker·trait·to·express·that·a·<a·href="trait.ReverseSearcher.html"·title="trait·alloc::str::pattern::ReverseSearcher"><code>ReverseSearcher</code></a>
27 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><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">ReverseSearcher</a><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><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>27 can·be·used·for·a·<a·href="https://doc.rust-lang.org/1.78.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><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">ReverseSearcher</a><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><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>
70.4 KB
./usr/share/doc/rust-web-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·`&lt;&amp;[char;·N]·as·Pattern&lt;&#x27;a&gt;&gt;::Searcher`."><title>CharArrayRefSearcher·in·alloc::str::pattern·-·Rust</title><script>·if·(window.location.protocol·!==·"file:")·document.write(`<link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../../static.files/SourceSerif4-Regular-46f98efaafac5295.ttf.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../../static.files/FiraSans-Regular-018c141bf0843ffd.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../../static.files/FiraSans-Medium-8f9a781e4970d388.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../../static.files/SourceCodePro-Regular-562dcc5011b6de7d.ttf.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../../static.files/SourceCodePro-Semibold-d899c5a5c4aeb14a.ttf.woff2">`)</script><link·rel="stylesheet"·href="../../../static.files/normalize-76eba96aa4d2e634.css"><link·rel="stylesheet"·href="../../../static.files/rustdoc-35f9e32502181f1e.css"><meta·name="rustdoc-vars"·data-root-path="../../../"·data-static-root-path="../../../static.files/"·data-current-crate="alloc"·data-themes=""·data-resource-suffix="1.78.0"·data-rustdoc-version="1.78.0"·data-channel="1.78.0"·data-search-js="search-42d8da7a6b9792c2.js"·data-settings-js="settings-4313503d2e1961c2.js"·><script·src="../../../static.files/storage-4c98445ec4002617.js"></script><script·defer·src="sidebar-items1.78.0.js"></script><script·defer·src="../../../static.files/main-12cf3b4f4f9dc36d.js"></script><noscript><link·rel="stylesheet"·href="../../../static.files/noscript-04d5337699b92874.css"></noscript><link·rel="alternate·icon"·type="image/png"·href="../../../static.files/favicon-16x16-8b506e7a72182f1c.png"><link·rel="alternate·icon"·type="image/png"·href="../../../static.files/favicon-32x32-422f7d1d52889060.png"><link·rel="icon"·type="image/svg+xml"·href="../../../static.files/favicon-2c020d218678b618.svg"></head><body·class="rustdoc·struct"><!--[if·lte·IE·11]><div·class="warning">This·old·browser·is·unsupported·and·will·most·likely·display·funky·things.</div><![endif]--><nav·class="mobile-topbar"><button·class="sidebar-menu-toggle"·title="show·sidebar"></button><a·class="logo-container"·href="../../../alloc/index.html"><img·class="rust-logo"·src="../../../static.files/rust-logo-151179464ae7ed46.svg"·alt=""></a></nav><nav·class="sidebar"><div·class="sidebar-crate"><a·class="logo-container"·href="../../../alloc/index.html"><img·class="rust-logo"·src="../../../static.files/rust-logo-151179464ae7ed46.svg"·alt="logo"></a><h2><a·href="../../../alloc/index.html">alloc</a><span·class="version">1.78.0</span></h2></div><h2·class="location"><a·href="#">CharArrayRefSearcher</a></h2><div·class="sidebar-elems"><section><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">Clone</a></li><li><a·href="#impl-Debug-for-CharArrayRefSearcher%3C'a,+'b,+N%3E">Debug</a></li><li><a·href="#impl-DoubleEndedSearcher%3C'a%3E-for-CharArrayRefSearcher%3C'a,+'b,+N%3E">DoubleEndedSearcher&lt;&#x27;a&gt;</a></li><li><a·href="#impl-ReverseSearcher%3C'a%3E-for-CharArrayRefSearcher%3C'a,+'b,+N%3E">ReverseSearcher&lt;&#x27;a&gt;</a></li><li><a·href="#impl-Searcher%3C'a%3E-for-CharArrayRefSearcher%3C'a,+'b,+N%3E">Searcher&lt;&#x27;a&gt;</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">Freeze</a></li><li><a·href="#impl-RefUnwindSafe-for-CharArrayRefSearcher%3C'a,+'b,+N%3E">RefUnwindSafe</a></li><li><a·href="#impl-Send-for-CharArrayRefSearcher%3C'a,+'b,+N%3E">Send</a></li><li><a·href="#impl-Sync-for-CharArrayRefSearcher%3C'a,+'b,+N%3E">Sync</a></li><li><a·href="#impl-Unpin-for-CharArrayRefSearcher%3C'a,+'b,+N%3E">Unpin</a></li><li><a·href="#impl-UnwindSafe-for-CharArrayRefSearcher%3C'a,+'b,+N%3E">UnwindSafe</a></li></ul><h3><a·href="#blanket-implementations">Blanket·Implementations</a></h3><ul·class="block·blanket-implementation"><li><a·href="#impl-Any-for-T">Any</a></li><li><a·href="#impl-Borrow%3CT%3E-for-T">Borrow&lt;T&gt;</a></li><li><a·href="#impl-BorrowMut%3CT%3E-for-T">BorrowMut&lt;T&gt;</a></li><li><a·href="#impl-From%3CT%3E-for-T">From&lt;T&gt;</a></li><li><a·href="#impl-Into%3CU%3E-for-T">Into&lt;U&gt;</a></li><li><a·href="#impl-ToOwned-for-T">ToOwned</a></li><li><a·href="#impl-TryFrom%3CU%3E-for-T">TryFrom&lt;U&gt;</a></li><li><a·href="#impl-TryInto%3CU%3E-for-T">TryInto&lt;U&gt;</a></li></ul></section><h2><a·href="index.html">In·alloc::str::pattern</a></h2></div></nav><div·class="sidebar-resizer"></div>1 <!DOCTYPE·html><html·lang="en"><head><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·`&lt;&amp;[char;·N]·as·Pattern&lt;&#x27;a&gt;&gt;::Searcher`."><title>CharArrayRefSearcher·in·alloc::str::pattern·-·Rust</title><script>·if·(window.location.protocol·!==·"file:")·document.write(`<link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../../static.files/SourceSerif4-Regular-46f98efaafac5295.ttf.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../../static.files/FiraSans-Regular-018c141bf0843ffd.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../../static.files/FiraSans-Medium-8f9a781e4970d388.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../../static.files/SourceCodePro-Regular-562dcc5011b6de7d.ttf.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../../static.files/SourceCodePro-Semibold-d899c5a5c4aeb14a.ttf.woff2">`)</script><link·rel="stylesheet"·href="../../../static.files/normalize-76eba96aa4d2e634.css"><link·rel="stylesheet"·href="../../../static.files/rustdoc-35f9e32502181f1e.css"><meta·name="rustdoc-vars"·data-root-path="../../../"·data-static-root-path="../../../static.files/"·data-current-crate="alloc"·data-themes=""·data-resource-suffix="1.78.0"·data-rustdoc-version="1.78.0"·data-channel="1.78.0"·data-search-js="search-42d8da7a6b9792c2.js"·data-settings-js="settings-4313503d2e1961c2.js"·><script·src="../../../static.files/storage-4c98445ec4002617.js"></script><script·defer·src="sidebar-items1.78.0.js"></script><script·defer·src="../../../static.files/main-12cf3b4f4f9dc36d.js"></script><noscript><link·rel="stylesheet"·href="../../../static.files/noscript-04d5337699b92874.css"></noscript><link·rel="alternate·icon"·type="image/png"·href="../../../static.files/favicon-16x16-8b506e7a72182f1c.png"><link·rel="alternate·icon"·type="image/png"·href="../../../static.files/favicon-32x32-422f7d1d52889060.png"><link·rel="icon"·type="image/svg+xml"·href="../../../static.files/favicon-2c020d218678b618.svg"></head><body·class="rustdoc·struct"><!--[if·lte·IE·11]><div·class="warning">This·old·browser·is·unsupported·and·will·most·likely·display·funky·things.</div><![endif]--><nav·class="mobile-topbar"><button·class="sidebar-menu-toggle"·title="show·sidebar"></button><a·class="logo-container"·href="../../../alloc/index.html"><img·class="rust-logo"·src="../../../static.files/rust-logo-151179464ae7ed46.svg"·alt=""></a></nav><nav·class="sidebar"><div·class="sidebar-crate"><a·class="logo-container"·href="../../../alloc/index.html"><img·class="rust-logo"·src="../../../static.files/rust-logo-151179464ae7ed46.svg"·alt="logo"></a><h2><a·href="../../../alloc/index.html">alloc</a><span·class="version">1.78.0</span></h2></div><h2·class="location"><a·href="#">CharArrayRefSearcher</a></h2><div·class="sidebar-elems"><section><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">Clone</a></li><li><a·href="#impl-Debug-for-CharArrayRefSearcher%3C'a,+'b,+N%3E">Debug</a></li><li><a·href="#impl-DoubleEndedSearcher%3C'a%3E-for-CharArrayRefSearcher%3C'a,+'b,+N%3E">DoubleEndedSearcher&lt;&#x27;a&gt;</a></li><li><a·href="#impl-ReverseSearcher%3C'a%3E-for-CharArrayRefSearcher%3C'a,+'b,+N%3E">ReverseSearcher&lt;&#x27;a&gt;</a></li><li><a·href="#impl-Searcher%3C'a%3E-for-CharArrayRefSearcher%3C'a,+'b,+N%3E">Searcher&lt;&#x27;a&gt;</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">Freeze</a></li><li><a·href="#impl-RefUnwindSafe-for-CharArrayRefSearcher%3C'a,+'b,+N%3E">RefUnwindSafe</a></li><li><a·href="#impl-Send-for-CharArrayRefSearcher%3C'a,+'b,+N%3E">Send</a></li><li><a·href="#impl-Sync-for-CharArrayRefSearcher%3C'a,+'b,+N%3E">Sync</a></li><li><a·href="#impl-Unpin-for-CharArrayRefSearcher%3C'a,+'b,+N%3E">Unpin</a></li><li><a·href="#impl-UnwindSafe-for-CharArrayRefSearcher%3C'a,+'b,+N%3E">UnwindSafe</a></li></ul><h3><a·href="#blanket-implementations">Blanket·Implementations</a></h3><ul·class="block·blanket-implementation"><li><a·href="#impl-Any-for-T">Any</a></li><li><a·href="#impl-Borrow%3CT%3E-for-T">Borrow&lt;T&gt;</a></li><li><a·href="#impl-BorrowMut%3CT%3E-for-T">BorrowMut&lt;T&gt;</a></li><li><a·href="#impl-From%3CT%3E-for-T">From&lt;T&gt;</a></li><li><a·href="#impl-Into%3CU%3E-for-T">Into&lt;U&gt;</a></li><li><a·href="#impl-ToOwned-for-T">ToOwned</a></li><li><a·href="#impl-TryFrom%3CU%3E-for-T">TryFrom&lt;U&gt;</a></li><li><a·href="#impl-TryInto%3CU%3E-for-T">TryInto&lt;U&gt;</a></li></ul></section><h2><a·href="index.html">In·alloc::str::pattern</a></h2></div></nav><div·class="sidebar-resizer"></div>
2 ····<main><div·class="width-limiter"><nav·class="sub"><form·class="search-form"><span></span><div·id="sidebar-button"·tabindex="-1"><a·href="../../../alloc/all.html"·title="show·sidebar"></a></div><input·class="search-input"·name="search"·aria-label="Run·search·in·the·documentation"·autocomplete="off"·spellcheck="false"·placeholder="Click·or·press·‘S’·to·search,·‘?’·for·more·options…"·type="search"><div·id="help-button"·tabindex="-1"><a·href="../../../help.html"·title="help">?</a></div><div·id="settings-menu"·tabindex="-1"><a·href="../../../settings.html"·title="settings"><img·width="22"·height="22"·alt="Change·settings"·src="../../../static.files/wheel-7b819b6101059cd0.svg"></a></div></form></nav><section·id="main-content"·class="content"><div·class="main-heading"><h1>Struct·<a·href="../../index.html">alloc</a>::<wbr><a·href="../index.html">str</a>::<wbr><a·href="index.html">pattern</a>::<wbr><a·class="struct"·href="#">CharArrayRefSearcher</a><button·id="copy-path"·title="Copy·item·path·to·clipboard"><img·src="../../../static.files/clipboard-7571035ce49a181d.svg"·width="19"·height="18"·alt="Copy·item·path"></button></h1><span·class="out-of-band"><a·class="src"·href="../../../src/core/str/pattern.rs.html#797">source</a>···<button·id="toggle-all-docs"·title="collapse·all·docs">[<span>&#x2212;</span>]</button></span></div><pre·class="rust·item-decl"><code>pub·struct·CharArrayRefSearcher&lt;'a,·'b,·const·N:·<a·class="prim[·...·truncated·by·diffoscope;·len:·21,·SHA:·6b97e7905fbde03a3290e8cb2fa99b3ddff9c97c235050beb2ee15e19cca7097·...·]/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&lt;'a&gt;&gt;::Searcher</code>.</p>2 ····<main><div·class="width-limiter"><nav·class="sub"><form·class="search-form"><span></span><div·id="sidebar-button"·tabindex="-1"><a·href="../../../alloc/all.html"·title="show·sidebar"></a></div><input·class="search-input"·name="search"·aria-label="Run·search·in·the·documentation"·autocomplete="off"·spellcheck="false"·placeholder="Click·or·press·‘S’·to·search,·‘?’·for·more·options…"·type="search"><div·id="help-button"·tabindex="-1"><a·href="../../../help.html"·title="help">?</a></div><div·id="settings-menu"·tabindex="-1"><a·href="../../../settings.html"·title="settings"><img·width="22"·height="22"·alt="Change·settings"·src="../../../static.files/wheel-7b819b6101059cd0.svg"></a></div></form></nav><section·id="main-content"·class="content"><div·class="main-heading"><h1>Struct·<a·href="../../index.html">alloc</a>::<wbr><a·href="../index.html">str</a>::<wbr><a·href="index.html">pattern</a>::<wbr><a·class="struct"·href="#">CharArrayRefSearcher</a><button·id="copy-path"·title="Copy·item·path·to·clipboard"><img·src="../../../static.files/clipboard-7571035ce49a181d.svg"·width="19"·height="18"·alt="Copy·item·path"></button></h1><span·class="out-of-band"><a·class="src"·href="https://doc.rust-lang.org/1.78.0/src/core/str/pattern.rs.html#797">source</a>···<button·id="toggle-all-docs"·title="collapse·all·docs">[<span>&#x2212;</span>]</button></span></div><pre·class="rust·item-decl"><code>pub·struct·CharArrayRefSearcher&lt;'a,·'b,[·...·truncated·by·diffoscope;·len:·69,·SHA:·db0411161bd6c08f00c5a12de73347e439ec252c4f40b81f2aba2cf8544d41c5·...·]/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&lt;'a&gt;&gt;::Searcher</code>.</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-Clone-for-CharArrayRefSearcher%3C'a,+'b,+N%3E"·class="impl"><a·class="src·rightside"·href="../../../src/core/str/pattern.rs.html#796">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:·5748,·SHA:·a90516d46d55a5496f2eaaf0e006e372997d0e1a8938b97a8886cf33d05b2583·...·]/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 </div></details><h2·id="trait-implementations"·class="section-header">Trait·Implementations<a·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.78.0/src/core/str/pattern.rs.html#796">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:·6276,·SHA:·fb21256eae955ecb9e12031b3fab9ade4808199481e3904f30be96cf3d1e73a2·...·]/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.
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><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#840">source</a><a·href="#method.next_reject_back"·class="anchor">§</a><h4·class="code-header">fn·<a·href="trait.ReverseSearcher.html#method.next_reject_back"·class="fn">next_reject_back</a>(&amp;mut·self)·-&gt;·<a·clas[·...·truncated·by·diffoscope;·len:·212,·SHA:·733cec62a658dddf3516ef2b08370fb57ba406e95793e29806105ca588e120c5·...·]/core/primitive.usize.html">usize</a>)&gt;</h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>pattern</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/27721">#27721</a>)</span></div></span><div·class='docblock'>Finds·the·next·<a·href="enum.SearchStep.html#variant.Reject"·title="variant·alloc::str::pattern::SearchStep::Reject"><code>Reject</code></a>·result.4 See·<a·href="trait.ReverseSearcher.html#tymethod.next_back"·title="method·alloc::str::pattern::ReverseSearcher::next_back"><code>next_back()</code></a>.</div></details><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.78.0/src/core/str/pattern.rs.html#840">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:·054abed21e5decd910b39f80a9b4730cff7419f30d6eb737f885c0f7a6e2016a·...·]/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.
5 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#835">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:·6e34f05730a24abfda85df679a20a78fcfb0d75f3143101c942306af0c2b7cd5·...·]/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 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.78.0/src/core/str/pattern.rs.html#835">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:·faf1e5005fc3f91aa68674bc914bc4558cc2f9d6e40e8aa69c08fed997c89084·...·]/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>
6 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#843">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:·89148bd3690b7330f037ab2c2963a7c67d9d9557b6190edfdb37ddbe2fd571bb·...·]/core/any/trait.Any.html"·title="trait·core::any::Any">Any</a>·for·T<div·class="where">where6 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.78.0/src/core/str/pattern.rs.html#843">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:·435356a4a43cacb904775013429686e8f31eadad153a5908125c2e2184f2666a·...·]/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="s[·...·truncated·by·diffoscope;·len:·690,·SHA:·60266624df43cdf1ecb412e35aaf311341d62543468bcbd4041716fbafffc07b·...·]/src/core/borrow.rs.html#208">source</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.78.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">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:·039b8952ccb1ab7d8f15cd519cbc10f4afc149276d0f9cfd3a53117d606059df·...·]/src/core/borrow.rs.html#208">source</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="sr[·...·truncated·by·diffoscope;·len:·647,·SHA:·8124d60df08ac71436917cb874e0ec9c0ffe7e4515e2ea246a1f1009f83ac6a1·...·]/src/core/borrow.rs.html#216">source</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.78.0/core/marker/trait.Sized.html"·title="trait·core::marker::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:·b03884aeae1813f459b6ebe4b7e3f3c22d5d37e0ad023677fd3869bc5a735be2·...·]/src/core/borrow.rs.html#216">source</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[·...·truncated·by·diffoscope;·len:·1254,·SHA:·88cecdca8f65ac7671462e07b83fc0153c4024bd8b3f1bfba320be439fbe3a4f·...·]/core/convert/trait.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.78.0/core/marker/trait.Sized.html"·title="trait·core::marker::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:·aaf5505cf4d2f5510949d066675a02996763e3167f43d15d7a3f114042a751b5·...·]/core/convert/trait.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.78.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.78.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.78.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:·2cf76a8ca501b2a1fef209fed846779ab1bed3b75f52c7425335e3ce04e6b272·...·]/core/convert/trait.Into.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.78.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#83-95">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#83-95">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·href="#ass[·...·truncated·by·diffoscope;·len:·1828,·SHA:·326644cdd10ec402cdb69dbc9def5714afb5a2f4c6c9280a5ab9ce010571c2dd·...·]/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.78.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:·1924,·SHA:·db6b4039e0093ed0d5887a096da47da282fdfd36f55651b9bf5f414e44ae56a4·...·]/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"·class="associatedtype·trait-impl"><a·[·...·truncated·by·diffoscope;·len:·1621,·SHA:·6a7315ddf4ab9fa76e45d600a396b342519e12c73d2e6dd09bf01e1fa1b0aac0·...·]/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.78.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"·class="associ[·...·truncated·by·diffoscope;·len:·1861,·SHA:·78398046ba16de2f66a8201a11d6a2dd405fceedeabfcaa37481e77092687e6f·...·]/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-1"·class="associatedtype·trai[·...·truncated·by·diffoscope;·len:·1258,·SHA:·33d8749d0be17f35431e59e57d3fb79a5cc4320bd6fc26ab5ef088d04d3c929a·...·]/core/convert/trait.TryFrom.html#associatedtype.Error"·title="type·core::convert::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.78.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-1"·cl[·...·truncated·by·diffoscope;·len:·1474,·SHA:·ca90cccb6c86c654c95a1aaec456fbbe4b115f0d5a700e7d156e823346d70894·...·]/core/convert/trait.TryFrom.html#associatedtype.Error"·title="type·core::convert::TryFrom::Error">Error</a>&gt;</h4></section></summary><div·class='docblock'>Performs·the·conversion.</div></details></div></details></div></section></div></main></body></html>
69.6 KB
./usr/share/doc/rust-web-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·`&lt;[char;·N]·as·Pattern&lt;&#x27;a&gt;&gt;::Searcher`."><title>CharArraySearcher·in·alloc::str::pattern·-·Rust</title><script>·if·(window.location.protocol·!==·"file:")·document.write(`<link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../../static.files/SourceSerif4-Regular-46f98efaafac5295.ttf.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../../static.files/FiraSans-Regular-018c141bf0843ffd.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../../static.files/FiraSans-Medium-8f9a781e4970d388.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../../static.files/SourceCodePro-Regular-562dcc5011b6de7d.ttf.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../../static.files/SourceCodePro-Semibold-d899c5a5c4aeb14a.ttf.woff2">`)</script><link·rel="stylesheet"·href="../../../static.files/normalize-76eba96aa4d2e634.css"><link·rel="stylesheet"·href="../../../static.files/rustdoc-35f9e32502181f1e.css"><meta·name="rustdoc-vars"·data-root-path="../../../"·data-static-root-path="../../../static.files/"·data-current-crate="alloc"·data-themes=""·data-resource-suffix="1.78.0"·data-rustdoc-version="1.78.0"·data-channel="1.78.0"·data-search-js="search-42d8da7a6b9792c2.js"·data-settings-js="settings-4313503d2e1961c2.js"·><script·src="../../../static.files/storage-4c98445ec4002617.js"></script><script·defer·src="sidebar-items1.78.0.js"></script><script·defer·src="../../../static.files/main-12cf3b4f4f9dc36d.js"></script><noscript><link·rel="stylesheet"·href="../../../static.files/noscript-04d5337699b92874.css"></noscript><link·rel="alternate·icon"·type="image/png"·href="../../../static.files/favicon-16x16-8b506e7a72182f1c.png"><link·rel="alternate·icon"·type="image/png"·href="../../../static.files/favicon-32x32-422f7d1d52889060.png"><link·rel="icon"·type="image/svg+xml"·href="../../../static.files/favicon-2c020d218678b618.svg"></head><body·class="rustdoc·struct"><!--[if·lte·IE·11]><div·class="warning">This·old·browser·is·unsupported·and·will·most·likely·display·funky·things.</div><![endif]--><nav·class="mobile-topbar"><button·class="sidebar-menu-toggle"·title="show·sidebar"></button><a·class="logo-container"·href="../../../alloc/index.html"><img·class="rust-logo"·src="../../../static.files/rust-logo-151179464ae7ed46.svg"·alt=""></a></nav><nav·class="sidebar"><div·class="sidebar-crate"><a·class="logo-container"·href="../../../alloc/index.html"><img·class="rust-logo"·src="../../../static.files/rust-logo-151179464ae7ed46.svg"·alt="logo"></a><h2><a·href="../../../alloc/index.html">alloc</a><span·class="version">1.78.0</span></h2></div><h2·class="location"><a·href="#">CharArraySearcher</a></h2><div·class="sidebar-elems"><section><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">Clone</a></li><li><a·href="#impl-Debug-for-CharArraySearcher%3C'a,+N%3E">Debug</a></li><li><a·href="#impl-DoubleEndedSearcher%3C'a%3E-for-CharArraySearcher%3C'a,+N%3E">DoubleEndedSearcher&lt;&#x27;a&gt;</a></li><li><a·href="#impl-ReverseSearcher%3C'a%3E-for-CharArraySearcher%3C'a,+N%3E">ReverseSearcher&lt;&#x27;a&gt;</a></li><li><a·href="#impl-Searcher%3C'a%3E-for-CharArraySearcher%3C'a,+N%3E">Searcher&lt;&#x27;a&gt;</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">Freeze</a></li><li><a·href="#impl-RefUnwindSafe-for-CharArraySearcher%3C'a,+N%3E">RefUnwindSafe</a></li><li><a·href="#impl-Send-for-CharArraySearcher%3C'a,+N%3E">Send</a></li><li><a·href="#impl-Sync-for-CharArraySearcher%3C'a,+N%3E">Sync</a></li><li><a·href="#impl-Unpin-for-CharArraySearcher%3C'a,+N%3E">Unpin</a></li><li><a·href="#impl-UnwindSafe-for-CharArraySearcher%3C'a,+N%3E">UnwindSafe</a></li></ul><h3><a·href="#blanket-implementations">Blanket·Implementations</a></h3><ul·class="block·blanket-implementation"><li><a·href="#impl-Any-for-T">Any</a></li><li><a·href="#impl-Borrow%3CT%3E-for-T">Borrow&lt;T&gt;</a></li><li><a·href="#impl-BorrowMut%3CT%3E-for-T">BorrowMut&lt;T&gt;</a></li><li><a·href="#impl-From%3CT%3E-for-T">From&lt;T&gt;</a></li><li><a·href="#impl-Into%3CU%3E-for-T">Into&lt;U&gt;</a></li><li><a·href="#impl-ToOwned-for-T">ToOwned</a></li><li><a·href="#impl-TryFrom%3CU%3E-for-T">TryFrom&lt;U&gt;</a></li><li><a·href="#impl-TryInto%3CU%3E-for-T">TryInto&lt;U&gt;</a></li></ul></section><h2><a·href="index.html">In·alloc::str::pattern</a></h2></div></nav><div·class="sidebar-resizer"></div>1 <!DOCTYPE·html><html·lang="en"><head><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·`&lt;[char;·N]·as·Pattern&lt;&#x27;a&gt;&gt;::Searcher`."><title>CharArraySearcher·in·alloc::str::pattern·-·Rust</title><script>·if·(window.location.protocol·!==·"file:")·document.write(`<link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../../static.files/SourceSerif4-Regular-46f98efaafac5295.ttf.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../../static.files/FiraSans-Regular-018c141bf0843ffd.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../../static.files/FiraSans-Medium-8f9a781e4970d388.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../../static.files/SourceCodePro-Regular-562dcc5011b6de7d.ttf.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../../static.files/SourceCodePro-Semibold-d899c5a5c4aeb14a.ttf.woff2">`)</script><link·rel="stylesheet"·href="../../../static.files/normalize-76eba96aa4d2e634.css"><link·rel="stylesheet"·href="../../../static.files/rustdoc-35f9e32502181f1e.css"><meta·name="rustdoc-vars"·data-root-path="../../../"·data-static-root-path="../../../static.files/"·data-current-crate="alloc"·data-themes=""·data-resource-suffix="1.78.0"·data-rustdoc-version="1.78.0"·data-channel="1.78.0"·data-search-js="search-42d8da7a6b9792c2.js"·data-settings-js="settings-4313503d2e1961c2.js"·><script·src="../../../static.files/storage-4c98445ec4002617.js"></script><script·defer·src="sidebar-items1.78.0.js"></script><script·defer·src="../../../static.files/main-12cf3b4f4f9dc36d.js"></script><noscript><link·rel="stylesheet"·href="../../../static.files/noscript-04d5337699b92874.css"></noscript><link·rel="alternate·icon"·type="image/png"·href="../../../static.files/favicon-16x16-8b506e7a72182f1c.png"><link·rel="alternate·icon"·type="image/png"·href="../../../static.files/favicon-32x32-422f7d1d52889060.png"><link·rel="icon"·type="image/svg+xml"·href="../../../static.files/favicon-2c020d218678b618.svg"></head><body·class="rustdoc·struct"><!--[if·lte·IE·11]><div·class="warning">This·old·browser·is·unsupported·and·will·most·likely·display·funky·things.</div><![endif]--><nav·class="mobile-topbar"><button·class="sidebar-menu-toggle"·title="show·sidebar"></button><a·class="logo-container"·href="../../../alloc/index.html"><img·class="rust-logo"·src="../../../static.files/rust-logo-151179464ae7ed46.svg"·alt=""></a></nav><nav·class="sidebar"><div·class="sidebar-crate"><a·class="logo-container"·href="../../../alloc/index.html"><img·class="rust-logo"·src="../../../static.files/rust-logo-151179464ae7ed46.svg"·alt="logo"></a><h2><a·href="../../../alloc/index.html">alloc</a><span·class="version">1.78.0</span></h2></div><h2·class="location"><a·href="#">CharArraySearcher</a></h2><div·class="sidebar-elems"><section><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">Clone</a></li><li><a·href="#impl-Debug-for-CharArraySearcher%3C'a,+N%3E">Debug</a></li><li><a·href="#impl-DoubleEndedSearcher%3C'a%3E-for-CharArraySearcher%3C'a,+N%3E">DoubleEndedSearcher&lt;&#x27;a&gt;</a></li><li><a·href="#impl-ReverseSearcher%3C'a%3E-for-CharArraySearcher%3C'a,+N%3E">ReverseSearcher&lt;&#x27;a&gt;</a></li><li><a·href="#impl-Searcher%3C'a%3E-for-CharArraySearcher%3C'a,+N%3E">Searcher&lt;&#x27;a&gt;</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">Freeze</a></li><li><a·href="#impl-RefUnwindSafe-for-CharArraySearcher%3C'a,+N%3E">RefUnwindSafe</a></li><li><a·href="#impl-Send-for-CharArraySearcher%3C'a,+N%3E">Send</a></li><li><a·href="#impl-Sync-for-CharArraySearcher%3C'a,+N%3E">Sync</a></li><li><a·href="#impl-Unpin-for-CharArraySearcher%3C'a,+N%3E">Unpin</a></li><li><a·href="#impl-UnwindSafe-for-CharArraySearcher%3C'a,+N%3E">UnwindSafe</a></li></ul><h3><a·href="#blanket-implementations">Blanket·Implementations</a></h3><ul·class="block·blanket-implementation"><li><a·href="#impl-Any-for-T">Any</a></li><li><a·href="#impl-Borrow%3CT%3E-for-T">Borrow&lt;T&gt;</a></li><li><a·href="#impl-BorrowMut%3CT%3E-for-T">BorrowMut&lt;T&gt;</a></li><li><a·href="#impl-From%3CT%3E-for-T">From&lt;T&gt;</a></li><li><a·href="#impl-Into%3CU%3E-for-T">Into&lt;U&gt;</a></li><li><a·href="#impl-ToOwned-for-T">ToOwned</a></li><li><a·href="#impl-TryFrom%3CU%3E-for-T">TryFrom&lt;U&gt;</a></li><li><a·href="#impl-TryInto%3CU%3E-for-T">TryInto&lt;U&gt;</a></li></ul></section><h2><a·href="index.html">In·alloc::str::pattern</a></h2></div></nav><div·class="sidebar-resizer"></div>
2 ····<main><div·class="width-limiter"><nav·class="sub"><form·class="search-form"><span></span><div·id="sidebar-button"·tabindex="-1"><a·href="../../../alloc/all.html"·title="show·sidebar"></a></div><input·class="search-input"·name="search"·aria-label="Run·search·in·the·documentation"·autocomplete="off"·spellcheck="false"·placeholder="Click·or·press·‘S’·to·search,·‘?’·for·more·options…"·type="search"><div·id="help-button"·tabindex="-1"><a·href="../../../help.html"·title="help">?</a></div><div·id="settings-menu"·tabindex="-1"><a·href="../../../settings.html"·title="settings"><img·width="22"·height="22"·alt="Change·settings"·src="../../../static.files/wheel-7b819b6101059cd0.svg"></a></div></form></nav><section·id="main-content"·class="content"><div·class="main-heading"><h1>Struct·<a·href="../../index.html">alloc</a>::<wbr><a·href="../index.html">str</a>::<wbr><a·href="index.html">pattern</a>::<wbr><a·class="struct"·href="#">CharArraySearcher</a><button·id="copy-path"·title="Copy·item·path·to·clipboard"><img·src="../../../static.files/clipboard-7571035ce49a181d.svg"·width="19"·height="18"·alt="Copy·item·path"></button></h1><span·class="out-of-band"><a·class="src"·href="../../../src/core/str/pattern.rs.html#791">source</a>···<button·id="toggle-all-docs"·title="collapse·all·docs">[<span>&#x2212;</span>]</button></span></div><pre·class="rust·item-decl"><code>pub·struct·CharArraySearcher&lt;'a,·const·N:·<a·class="primitive"·[·...·truncated·by·diffoscope;·len:·14,·SHA:·7c59bdb11537e8ea4c2af5553949e9b1efe7b5e0adc46ecdcf37918f77873909·...·]/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&lt;'a&gt;&gt;::Searcher</code>.</p>2 ····<main><div·class="width-limiter"><nav·class="sub"><form·class="search-form"><span></span><div·id="sidebar-button"·tabindex="-1"><a·href="../../../alloc/all.html"·title="show·sidebar"></a></div><input·class="search-input"·name="search"·aria-label="Run·search·in·the·documentation"·autocomplete="off"·spellcheck="false"·placeholder="Click·or·press·‘S’·to·search,·‘?’·for·more·options…"·type="search"><div·id="help-button"·tabindex="-1"><a·href="../../../help.html"·title="help">?</a></div><div·id="settings-menu"·tabindex="-1"><a·href="../../../settings.html"·title="settings"><img·width="22"·height="22"·alt="Change·settings"·src="../../../static.files/wheel-7b819b6101059cd0.svg"></a></div></form></nav><section·id="main-content"·class="content"><div·class="main-heading"><h1>Struct·<a·href="../../index.html">alloc</a>::<wbr><a·href="../index.html">str</a>::<wbr><a·href="index.html">pattern</a>::<wbr><a·class="struct"·href="#">CharArraySearcher</a><button·id="copy-path"·title="Copy·item·path·to·clipboard"><img·src="../../../static.files/clipboard-7571035ce49a181d.svg"·width="19"·height="18"·alt="Copy·item·path"></button></h1><span·class="out-of-band"><a·class="src"·href="https://doc.rust-lang.org/1.78.0/src/core/str/pattern.rs.html#791">source</a>···<button·id="toggle-all-docs"·title="collapse·all·docs">[<span>&#x2212;</span>]</button></span></div><pre·class="rust·item-decl"><code>pub·struct·CharArraySearcher&lt;'a,·const·[·...·truncated·by·diffoscope;·len:·62,·SHA:·45c44b816c950c434bbb607d8612417fb9ce2826cc60d89e6f83c3244ff88a8c·...·]/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&lt;'a&gt;&gt;::Searcher</code>.</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-Clone-for-CharArraySearcher%3C'a,+N%3E"·class="impl"><a·class="src·rightside"·href="../../../src/core/str/pattern.rs.html#790">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:·5649,·SHA:·5c6877d2d0892f0d9081f61ea8151a8b759749b1fbbb6ef7a43175ba00b3fb72·...·]/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 </div></details><h2·id="trait-implementations"·class="section-header">Trait·Implementations<a·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.78.0/src/core/str/pattern.rs.html#790">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.78.0[·...·truncated·by·diffoscope;·len:·6177,·SHA:·c10ac5dbfd2073fb07fe652820be15da4f8f60d24b8bdf1653372f56f2371038·...·]/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.
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><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#818">source</a><a·href="#method.next_reject_back"·class="anchor">§</a><h4·class="code-header">fn·<a·href="trait.ReverseSearcher.html#method.next_reject_back"·class="fn">next_reject_back</a>(&amp;mut·self)·-&gt;·<a·clas[·...·truncated·by·diffoscope;·len:·212,·SHA:·733cec62a658dddf3516ef2b08370fb57ba406e95793e29806105ca588e120c5·...·]/core/primitive.usize.html">usize</a>)&gt;</h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>pattern</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/27721">#27721</a>)</span></div></span><div·class='docblock'>Finds·the·next·<a·href="enum.SearchStep.html#variant.Reject"·title="variant·alloc::str::pattern::SearchStep::Reject"><code>Reject</code></a>·result.4 See·<a·href="trait.ReverseSearcher.html#tymethod.next_back"·title="method·alloc::str::pattern::ReverseSearcher::next_back"><code>next_back()</code></a>.</div></details><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.78.0/src/core/str/pattern.rs.html#818">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:·054abed21e5decd910b39f80a9b4730cff7419f30d6eb737f885c0f7a6e2016a·...·]/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.
5 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#813">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:·0a650ce167b8ff8a479fcf42fe0464c6cdfede78fc0b4d6d463c90beba34763e·...·]/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 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.78.0/src/core/str/pattern.rs.html#813">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:·b2c0bb9ed47b00edd21bef7fc087bba9edcbc63fbfc3017521309c76627bad8e·...·]/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>
6 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#821">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:·ec05110a42a2b2c26a3b572c884083f6ce1b09bb8272b4d2daf0594492c91500·...·]/core/any/trait.Any.html"·title="trait·core::any::Any">Any</a>·for·T<div·class="where">where6 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.78.0/src/core/str/pattern.rs.html#821">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:·fcfb8bf154b92a78e1e32f206a242be7934bb9f81342e20cc7e41ba8bb41c295·...·]/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="s[·...·truncated·by·diffoscope;·len:·690,·SHA:·60266624df43cdf1ecb412e35aaf311341d62543468bcbd4041716fbafffc07b·...·]/src/core/borrow.rs.html#208">source</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.78.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">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:·039b8952ccb1ab7d8f15cd519cbc10f4afc149276d0f9cfd3a53117d606059df·...·]/src/core/borrow.rs.html#208">source</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="sr[·...·truncated·by·diffoscope;·len:·647,·SHA:·8124d60df08ac71436917cb874e0ec9c0ffe7e4515e2ea246a1f1009f83ac6a1·...·]/src/core/borrow.rs.html#216">source</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.78.0/core/marker/trait.Sized.html"·title="trait·core::marker::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:·b03884aeae1813f459b6ebe4b7e3f3c22d5d37e0ad023677fd3869bc5a735be2·...·]/src/core/borrow.rs.html#216">source</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[·...·truncated·by·diffoscope;·len:·1254,·SHA:·88cecdca8f65ac7671462e07b83fc0153c4024bd8b3f1bfba320be439fbe3a4f·...·]/core/convert/trait.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.78.0/core/marker/trait.Sized.html"·title="trait·core::marker::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:·aaf5505cf4d2f5510949d066675a02996763e3167f43d15d7a3f114042a751b5·...·]/core/convert/trait.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.78.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.78.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.78.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:·2cf76a8ca501b2a1fef209fed846779ab1bed3b75f52c7425335e3ce04e6b272·...·]/core/convert/trait.Into.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.78.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#83-95">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#83-95">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·href="#ass[·...·truncated·by·diffoscope;·len:·1828,·SHA:·326644cdd10ec402cdb69dbc9def5714afb5a2f4c6c9280a5ab9ce010571c2dd·...·]/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.78.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:·1924,·SHA:·db6b4039e0093ed0d5887a096da47da282fdfd36f55651b9bf5f414e44ae56a4·...·]/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"·class="associatedtype·trait-impl"><a·[·...·truncated·by·diffoscope;·len:·1621,·SHA:·6a7315ddf4ab9fa76e45d600a396b342519e12c73d2e6dd09bf01e1fa1b0aac0·...·]/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.78.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"·class="associ[·...·truncated·by·diffoscope;·len:·1861,·SHA:·78398046ba16de2f66a8201a11d6a2dd405fceedeabfcaa37481e77092687e6f·...·]/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-1"·class="associatedtype·trai[·...·truncated·by·diffoscope;·len:·1258,·SHA:·33d8749d0be17f35431e59e57d3fb79a5cc4320bd6fc26ab5ef088d04d3c929a·...·]/core/convert/trait.TryFrom.html#associatedtype.Error"·title="type·core::convert::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.78.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-1"·cl[·...·truncated·by·diffoscope;·len:·1474,·SHA:·ca90cccb6c86c654c95a1aaec456fbbe4b115f0d5a700e7d156e823346d70894·...·]/core/convert/trait.TryFrom.html#associatedtype.Error"·title="type·core::convert::TryFrom::Error">Error</a>&gt;</h4></section></summary><div·class='docblock'>Performs·the·conversion.</div></details></div></details></div></section></div></main></body></html>
74.1 KB
./usr/share/doc/rust-web-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·`&lt;F·as·Pattern&lt;&#x27;a&gt;&gt;::Searcher`."><title>CharPredicateSearcher·in·alloc::str::pattern·-·Rust</title><script>·if·(window.location.protocol·!==·"file:")·document.write(`<link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../../static.files/SourceSerif4-Regular-46f98efaafac5295.ttf.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../../static.files/FiraSans-Regular-018c141bf0843ffd.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../../static.files/FiraSans-Medium-8f9a781e4970d388.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../../static.files/SourceCodePro-Regular-562dcc5011b6de7d.ttf.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../../static.files/SourceCodePro-Semibold-d899c5a5c4aeb14a.ttf.woff2">`)</script><link·rel="stylesheet"·href="../../../static.files/normalize-76eba96aa4d2e634.css"><link·rel="stylesheet"·href="../../../static.files/rustdoc-35f9e32502181f1e.css"><meta·name="rustdoc-vars"·data-root-path="../../../"·data-static-root-path="../../../static.files/"·data-current-crate="alloc"·data-themes=""·data-resource-suffix="1.78.0"·data-rustdoc-version="1.78.0"·data-channel="1.78.0"·data-search-js="search-42d8da7a6b9792c2.js"·data-settings-js="settings-4313503d2e1961c2.js"·><script·src="../../../static.files/storage-4c98445ec4002617.js"></script><script·defer·src="sidebar-items1.78.0.js"></script><script·defer·src="../../../static.files/main-12cf3b4f4f9dc36d.js"></script><noscript><link·rel="stylesheet"·href="../../../static.files/noscript-04d5337699b92874.css"></noscript><link·rel="alternate·icon"·type="image/png"·href="../../../static.files/favicon-16x16-8b506e7a72182f1c.png"><link·rel="alternate·icon"·type="image/png"·href="../../../static.files/favicon-32x32-422f7d1d52889060.png"><link·rel="icon"·type="image/svg+xml"·href="../../../static.files/favicon-2c020d218678b618.svg"></head><body·class="rustdoc·struct"><!--[if·lte·IE·11]><div·class="warning">This·old·browser·is·unsupported·and·will·most·likely·display·funky·things.</div><![endif]--><nav·class="mobile-topbar"><button·class="sidebar-menu-toggle"·title="show·sidebar"></button><a·class="logo-container"·href="../../../alloc/index.html"><img·class="rust-logo"·src="../../../static.files/rust-logo-151179464ae7ed46.svg"·alt=""></a></nav><nav·class="sidebar"><div·class="sidebar-crate"><a·class="logo-container"·href="../../../alloc/index.html"><img·class="rust-logo"·src="../../../static.files/rust-logo-151179464ae7ed46.svg"·alt="logo"></a><h2><a·href="../../../alloc/index.html">alloc</a><span·class="version">1.78.0</span></h2></div><h2·class="location"><a·href="#">CharPredicateSearcher</a></h2><div·class="sidebar-elems"><section><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">Clone</a></li><li><a·href="#impl-Debug-for-CharPredicateSearcher%3C'_,+F%3E">Debug</a></li><li><a·href="#impl-DoubleEndedSearcher%3C'a%3E-for-CharPredicateSearcher%3C'a,+F%3E">DoubleEndedSearcher&lt;&#x27;a&gt;</a></li><li><a·href="#impl-ReverseSearcher%3C'a%3E-for-CharPredicateSearcher%3C'a,+F%3E">ReverseSearcher&lt;&#x27;a&gt;</a></li><li><a·href="#impl-Searcher%3C'a%3E-for-CharPredicateSearcher%3C'a,+F%3E">Searcher&lt;&#x27;a&gt;</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">Freeze</a></li><li><a·href="#impl-RefUnwindSafe-for-CharPredicateSearcher%3C'a,+F%3E">RefUnwindSafe</a></li><li><a·href="#impl-Send-for-CharPredicateSearcher%3C'a,+F%3E">Send</a></li><li><a·href="#impl-Sync-for-CharPredicateSearcher%3C'a,+F%3E">Sync</a></li><li><a·href="#impl-Unpin-for-CharPredicateSearcher%3C'a,+F%3E">Unpin</a></li><li><a·href="#impl-UnwindSafe-for-CharPredicateSearcher%3C'a,+F%3E">UnwindSafe</a></li></ul><h3><a·href="#blanket-implementations">Blanket·Implementations</a></h3><ul·class="block·blanket-implementation"><li><a·href="#impl-Any-for-T">Any</a></li><li><a·href="#impl-Borrow%3CT%3E-for-T">Borrow&lt;T&gt;</a></li><li><a·href="#impl-BorrowMut%3CT%3E-for-T">BorrowMut&lt;T&gt;</a></li><li><a·href="#impl-From%3CT%3E-for-T">From&lt;T&gt;</a></li><li><a·href="#impl-Into%3CU%3E-for-T">Into&lt;U&gt;</a></li><li><a·href="#impl-ToOwned-for-T">ToOwned</a></li><li><a·href="#impl-TryFrom%3CU%3E-for-T">TryFrom&lt;U&gt;</a></li><li><a·href="#impl-TryInto%3CU%3E-for-T">TryInto&lt;U&gt;</a></li></ul></section><h2><a·href="index.html">In·alloc::str::pattern</a></h2></div></nav><div·class="sidebar-resizer"></div>1 <!DOCTYPE·html><html·lang="en"><head><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·`&lt;F·as·Pattern&lt;&#x27;a&gt;&gt;::Searcher`."><title>CharPredicateSearcher·in·alloc::str::pattern·-·Rust</title><script>·if·(window.location.protocol·!==·"file:")·document.write(`<link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../../static.files/SourceSerif4-Regular-46f98efaafac5295.ttf.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../../static.files/FiraSans-Regular-018c141bf0843ffd.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../../static.files/FiraSans-Medium-8f9a781e4970d388.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../../static.files/SourceCodePro-Regular-562dcc5011b6de7d.ttf.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../../static.files/SourceCodePro-Semibold-d899c5a5c4aeb14a.ttf.woff2">`)</script><link·rel="stylesheet"·href="../../../static.files/normalize-76eba96aa4d2e634.css"><link·rel="stylesheet"·href="../../../static.files/rustdoc-35f9e32502181f1e.css"><meta·name="rustdoc-vars"·data-root-path="../../../"·data-static-root-path="../../../static.files/"·data-current-crate="alloc"·data-themes=""·data-resource-suffix="1.78.0"·data-rustdoc-version="1.78.0"·data-channel="1.78.0"·data-search-js="search-42d8da7a6b9792c2.js"·data-settings-js="settings-4313503d2e1961c2.js"·><script·src="../../../static.files/storage-4c98445ec4002617.js"></script><script·defer·src="sidebar-items1.78.0.js"></script><script·defer·src="../../../static.files/main-12cf3b4f4f9dc36d.js"></script><noscript><link·rel="stylesheet"·href="../../../static.files/noscript-04d5337699b92874.css"></noscript><link·rel="alternate·icon"·type="image/png"·href="../../../static.files/favicon-16x16-8b506e7a72182f1c.png"><link·rel="alternate·icon"·type="image/png"·href="../../../static.files/favicon-32x32-422f7d1d52889060.png"><link·rel="icon"·type="image/svg+xml"·href="../../../static.files/favicon-2c020d218678b618.svg"></head><body·class="rustdoc·struct"><!--[if·lte·IE·11]><div·class="warning">This·old·browser·is·unsupported·and·will·most·likely·display·funky·things.</div><![endif]--><nav·class="mobile-topbar"><button·class="sidebar-menu-toggle"·title="show·sidebar"></button><a·class="logo-container"·href="../../../alloc/index.html"><img·class="rust-logo"·src="../../../static.files/rust-logo-151179464ae7ed46.svg"·alt=""></a></nav><nav·class="sidebar"><div·class="sidebar-crate"><a·class="logo-container"·href="../../../alloc/index.html"><img·class="rust-logo"·src="../../../static.files/rust-logo-151179464ae7ed46.svg"·alt="logo"></a><h2><a·href="../../../alloc/index.html">alloc</a><span·class="version">1.78.0</span></h2></div><h2·class="location"><a·href="#">CharPredicateSearcher</a></h2><div·class="sidebar-elems"><section><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">Clone</a></li><li><a·href="#impl-Debug-for-CharPredicateSearcher%3C'_,+F%3E">Debug</a></li><li><a·href="#impl-DoubleEndedSearcher%3C'a%3E-for-CharPredicateSearcher%3C'a,+F%3E">DoubleEndedSearcher&lt;&#x27;a&gt;</a></li><li><a·href="#impl-ReverseSearcher%3C'a%3E-for-CharPredicateSearcher%3C'a,+F%3E">ReverseSearcher&lt;&#x27;a&gt;</a></li><li><a·href="#impl-Searcher%3C'a%3E-for-CharPredicateSearcher%3C'a,+F%3E">Searcher&lt;&#x27;a&gt;</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">Freeze</a></li><li><a·href="#impl-RefUnwindSafe-for-CharPredicateSearcher%3C'a,+F%3E">RefUnwindSafe</a></li><li><a·href="#impl-Send-for-CharPredicateSearcher%3C'a,+F%3E">Send</a></li><li><a·href="#impl-Sync-for-CharPredicateSearcher%3C'a,+F%3E">Sync</a></li><li><a·href="#impl-Unpin-for-CharPredicateSearcher%3C'a,+F%3E">Unpin</a></li><li><a·href="#impl-UnwindSafe-for-CharPredicateSearcher%3C'a,+F%3E">UnwindSafe</a></li></ul><h3><a·href="#blanket-implementations">Blanket·Implementations</a></h3><ul·class="block·blanket-implementation"><li><a·href="#impl-Any-for-T">Any</a></li><li><a·href="#impl-Borrow%3CT%3E-for-T">Borrow&lt;T&gt;</a></li><li><a·href="#impl-BorrowMut%3CT%3E-for-T">BorrowMut&lt;T&gt;</a></li><li><a·href="#impl-From%3CT%3E-for-T">From&lt;T&gt;</a></li><li><a·href="#impl-Into%3CU%3E-for-T">Into&lt;U&gt;</a></li><li><a·href="#impl-ToOwned-for-T">ToOwned</a></li><li><a·href="#impl-TryFrom%3CU%3E-for-T">TryFrom&lt;U&gt;</a></li><li><a·href="#impl-TryInto%3CU%3E-for-T">TryInto&lt;U&gt;</a></li></ul></section><h2><a·href="index.html">In·alloc::str::pattern</a></h2></div></nav><div·class="sidebar-resizer"></div>
2 ····<main><div·class="width-limiter"><nav·class="sub"><form·class="search-form"><span></span><div·id="sidebar-button"·tabindex="-1"><a·href="../../../alloc/all.html"·title="show·sidebar"></a></div><input·class="search-input"·name="search"·aria-label="Run·search·in·the·documentation"·autocomplete="off"·spellcheck="false"·placeholder="Click·or·press·‘S’·to·search,·‘?’·for·more·options…"·type="search"><div·id="help-button"·tabindex="-1"><a·href="../../../help.html"·title="help">?</a></div><div·id="settings-menu"·tabindex="-1"><a·href="../../../settings.html"·title="settings"><img·width="22"·height="22"·alt="Change·settings"·src="../../../static.files/wheel-7b819b6101059cd0.svg"></a></div></form></nav><section·id="main-content"·class="content"><div·class="main-heading"><h1>Struct·<a·href="../../index.html">alloc</a>::<wbr><a·href="../index.html">str</a>::<wbr><a·href="index.html">pattern</a>::<wbr><a·class="struct"·href="#">CharPredicateSearcher</a><button·id="copy-path"·title="Copy·item·path·to·clipboard"><img·src="../../../static.files/clipboard-7571035ce49a181d.svg"·width="19"·height="18"·alt="Copy·item·path"></button></h1><span·class="out-of-band"><a·class="src"·href="../../../src/core/str/pattern.rs.html#883">source</a>···<button·id="toggle-all-docs"·title="collapse·all·docs">[<span>&#x2212;</span>]</button></span></div><pre·class="rust·item-decl"><code>pub·struct·CharPredicateSearcher&lt;'a,·F&gt;(<span·class="comment">/*·private·fields·*/</span>)2 ····<main><div·class="width-limiter"><nav·class="sub"><form·class="search-form"><span></span><div·id="sidebar-button"·tabindex="-1"><a·href="../../../alloc/all.html"·title="show·sidebar"></a></div><input·class="search-input"·name="search"·aria-label="Run·search·in·the·documentation"·autocomplete="off"·spellcheck="false"·placeholder="Click·or·press·‘S’·to·search,·‘?’·for·more·options…"·type="search"><div·id="help-button"·tabindex="-1"><a·href="../../../help.html"·title="help">?</a></div><div·id="settings-menu"·tabindex="-1"><a·href="../../../settings.html"·title="settings"><img·width="22"·height="22"·alt="Change·settings"·src="../../../static.files/wheel-7b819b6101059cd0.svg"></a></div></form></nav><section·id="main-content"·class="content"><div·class="main-heading"><h1>Struct·<a·href="../../index.html">alloc</a>::<wbr><a·href="../index.html">str</a>::<wbr><a·href="index.html">pattern</a>::<wbr><a·class="struct"·href="#">CharPredicateSearcher</a><button·id="copy-path"·title="Copy·item·path·to·clipboard"><img·src="../../../static.files/clipboard-7571035ce49a181d.svg"·width="19"·height="18"·alt="Copy·item·path"></button></h1><span·class="out-of-band"><a·class="src"·href="https://doc.rust-lang.org/1.78.0/src/core/str/pattern.rs.html#883">source</a>···<button·id="toggle-all-docs"·title="collapse·all·docs">[<span>&#x2212;</span>]</button></span></div><pre·class="rust·item-decl"><code>pub·struct·CharPredicateSearcher&lt;'a,·F&gt;(<span·class="comment">/*·private·fields·*/</span>)
3 <span·class="where">where3 <span·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.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&lt;'a&gt;&gt;::Searcher</code>.</p>4 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(<a·class="primitive"·href="https://doc.rust-lang.org/1.78.0/core/primitive.char.html">char</a>)·-&gt;·<a·class="primitive"·href="https:/[·...·truncated·by·diffoscope;·len:·25,·SHA:·8d489f2c31af7b774d949c94a281fdc8625b38df058a9525f75b035c7d9bdfd5·...·]/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&lt;'a&gt;&gt;::Searcher</code>.</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-CharPredicateSearcher%3C'a,+F%3E"·class="impl"><a·class="src·rightside"·href="../../../src/core/str/pattern.rs.html#882">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">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-Clone-for-CharPredicateSearcher%3C'a,+F%3E"·class="impl"><a·class="src·rightside"·href="https://doc.rust-lang.org/1.78.0/src/core/str/pattern.rs.html#882">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.78.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
6 ····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:·1767,·SHA:·2de76fc3e501fc9dc5402d6faa20ba0faeee5823d34f4c02a8b4a11ffa6bc22e·...·]/src/core/str/pattern.rs.html#887-889">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">where6 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/clone/trait.Clone.html"·title="trait·core::clone::Clone">Clone</a>·+·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(<a·cla[·...·truncated·by·diffoscope;·len:·2055,·SHA:·cbe6c81aa3cbc007fe5a7e9fefb5938279b6d991007464f240152a385b04b51f·...·]/src/core/str/pattern.rs.html#887-889">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
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:·1172,·SHA:·1b04ea071dd7799413ce7e65a743c7d2136f11ece8eb0f8fc1217b183c387b4d·...·]/src/core/str/pattern.rs.html#905-907">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">where7 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(<a·class="primitive"·href="https://doc.rust-lang.org/1.78.0/core/primitive.char.html">char</a>)·-&gt;·<a·class="primitive"·href="https:/[·...·truncated·by·diffoscope;·len:·1340,·SHA:·d1ff58d2f91513b2bc986e3f78e14152f56a4e6cfbc63ab86968f026e0966eda·...·]/src/core/str/pattern.rs.html#905-907">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
8 ····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:·5742948d886c1cddefb01453005397e5b2467127ab700b41be3b8b82ace844e2·...·]/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 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(<a·class="primitive"·href="https://doc.rust-lang.org/1.78.0/core/primitive.char.html">char</a>)·-&gt;·<a·class="primitive"·href="https:/[·...·truncated·by·diffoscope;·len:·1747,·SHA:·1298dbe14c9c5232b82011a813340d62c8a2fb12a9bd0646da09ef5c61e67c11·...·]/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.
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><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#909">source</a><a·href="#method.next_reject_back"·class="anchor">§</a><h4·class="code-header">fn·<a·href="trait.ReverseSearcher.html#method.next_reject_back"·class="fn">next_reject_back</a>(&amp;mut·self)·-&gt;·<a·clas[·...·truncated·by·diffoscope;·len:·212,·SHA:·733cec62a658dddf3516ef2b08370fb57ba406e95793e29806105ca588e120c5·...·]/core/primitive.usize.html">usize</a>)&gt;</h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>pattern</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/27721">#27721</a>)</span></div></span><div·class='docblock'>Finds·the·next·<a·href="enum.SearchStep.html#variant.Reject"·title="variant·alloc::str::pattern::SearchStep::Reject"><code>Reject</code></a>·result.9 See·<a·href="trait.ReverseSearcher.html#tymethod.next_back"·title="method·alloc::str::pattern::ReverseSearcher::next_back"><code>next_back()</code></a>.</div></details><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.78.0/src/core/str/pattern.rs.html#909">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:·054abed21e5decd910b39f80a9b4730cff7419f30d6eb737f885c0f7a6e2016a·...·]/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.
10 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#898-900">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">where10 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.78.0/src/core/str/pattern.rs.html#898-900">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
11 ····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:·24b2b4c71e4c04911342f2839ccb154ca5f421343ca8d64db745c61d806414d7·...·]/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 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(<a·class="primitive"·href="https://doc.rust-lang.org/1.78.0/core/primitive.char.html">char</a>)·-&gt;·<a·class="primitive"·href="https:/[·...·truncated·by·diffoscope;·len:·3938,·SHA:·c847a1bea76cedb52df1fdfb54372386d51150e6ae01b05be0a0869c897fca8e·...·]/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>
12 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#912">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">where12 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.78.0/src/core/str/pattern.rs.html#912">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
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.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">where13 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(<a·class="primitive"·href="https://doc.rust-lang.org/1.78.0/core/primitive.char.html">char</a>)·-&gt;·<a·class="primitive"·href="https:/[·...·truncated·by·diffoscope;·len:·528,·SHA:·4b6fcbda9af53e0fe66f673b92076fd104d0206c16031b251dc9a201e0d71bbb·...·]/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
14 ····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">where14 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.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:·196fc40207b7ededc0e10c51fa4296d20bcd6b5bff99a34353fcbffb692f701f·...·]/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
15 ····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">where15 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.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:·9a89177e8a65fab211988652c6210055a7f366eaae0085d23949b9320f6e0c7e·...·]/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
16 ····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">where16 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.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:·90343f3a866e36c434d34c07ed28f6e96fb2d7248e84c6c75256067abbf4e6e5·...·]/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
17 ····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">where17 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.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:·13f70314e145b8c678aebe4bbae98d2663570cd06edb3d3efc872fe68cec2069·...·]/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
18 ····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">where18 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.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:·4a611527760471831dde627da84f2f55962da7c217ad0a52fe23aecc7668279f·...·]/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
19 ····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:·740e4769d7d027cc93c3edd9109f43e0a8af5db66e867be3811036120426931c·...·]/core/any/trait.Any.html"·title="trait·core::any::Any">Any</a>·for·T<div·class="where">where19 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.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:·1cd0dfbe7e18bfb0585ddedd8cfd01c39e76a55f1ef6d60c85e5ccc9f62e4863·...·]/core/any/trait.Any.html"·title="trait·core::any::Any">Any</a>·for·T<div·class="where">where
20 ····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:·60266624df43cdf1ecb412e35aaf311341d62543468bcbd4041716fbafffc07b·...·]/src/core/borrow.rs.html#208">source</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">where20 ····T:·'static·+·?<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">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:·039b8952ccb1ab7d8f15cd519cbc10f4afc149276d0f9cfd3a53117d606059df·...·]/src/core/borrow.rs.html#208">source</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
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"·class="method·trait-impl"><a·class="sr[·...·truncated·by·diffoscope;·len:·647,·SHA:·8124d60df08ac71436917cb874e0ec9c0ffe7e4515e2ea246a1f1009f83ac6a1·...·]/src/core/borrow.rs.html#216">source</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">where21 ····T:·?<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/marker/trait.Sized.html"·title="trait·core::marker::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:·b03884aeae1813f459b6ebe4b7e3f3c22d5d37e0ad023677fd3869bc5a735be2·...·]/src/core/borrow.rs.html#216">source</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
22 ····T:·?<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.borrow_mut"·class="method·trait-impl"><a·class[·...·truncated·by·diffoscope;·len:·1254,·SHA:·88cecdca8f65ac7671462e07b83fc0153c4024bd8b3f1bfba320be439fbe3a4f·...·]/core/convert/trait.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.78.0/core/marker/trait.Sized.html"·title="trait·core::marker::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:·aaf5505cf4d2f5510949d066675a02996763e3167f43d15d7a3f114042a751b5·...·]/core/convert/trait.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.78.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.78.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.78.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:·2cf76a8ca501b2a1fef209fed846779ab1bed3b75f52c7425335e3ce04e6b272·...·]/core/convert/trait.Into.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.78.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#83-95">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#83-95">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·href="#ass[·...·truncated·by·diffoscope;·len:·1828,·SHA:·326644cdd10ec402cdb69dbc9def5714afb5a2f4c6c9280a5ab9ce010571c2dd·...·]/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.78.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:·1924,·SHA:·db6b4039e0093ed0d5887a096da47da282fdfd36f55651b9bf5f414e44ae56a4·...·]/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"·class="associatedtype·trait-impl"><a·[·...·truncated·by·diffoscope;·len:·1621,·SHA:·6a7315ddf4ab9fa76e45d600a396b342519e12c73d2e6dd09bf01e1fa1b0aac0·...·]/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.78.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"·class="associ[·...·truncated·by·diffoscope;·len:·1861,·SHA:·78398046ba16de2f66a8201a11d6a2dd405fceedeabfcaa37481e77092687e6f·...·]/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-1"·class="associatedtype·trai[·...·truncated·by·diffoscope;·len:·1258,·SHA:·33d8749d0be17f35431e59e57d3fb79a5cc4320bd6fc26ab5ef088d04d3c929a·...·]/core/convert/trait.TryFrom.html#associatedtype.Error"·title="type·core::convert::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.78.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-1"·cl[·...·truncated·by·diffoscope;·len:·1474,·SHA:·ca90cccb6c86c654c95a1aaec456fbbe4b115f0d5a700e7d156e823346d70894·...·]/core/convert/trait.TryFrom.html#associatedtype.Error"·title="type·core::convert::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.4 KB
./usr/share/doc/rust-web-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·`&lt;char·as·Pattern&lt;&#x27;a&gt;&gt;::Searcher`."><title>CharSearcher·in·alloc::str::pattern·-·Rust</title><script>·if·(window.location.protocol·!==·"file:")·document.write(`<link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../../static.files/SourceSerif4-Regular-46f98efaafac5295.ttf.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../../static.files/FiraSans-Regular-018c141bf0843ffd.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../../static.files/FiraSans-Medium-8f9a781e4970d388.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../../static.files/SourceCodePro-Regular-562dcc5011b6de7d.ttf.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../../static.files/SourceCodePro-Semibold-d899c5a5c4aeb14a.ttf.woff2">`)</script><link·rel="stylesheet"·href="../../../static.files/normalize-76eba96aa4d2e634.css"><link·rel="stylesheet"·href="../../../static.files/rustdoc-35f9e32502181f1e.css"><meta·name="rustdoc-vars"·data-root-path="../../../"·data-static-root-path="../../../static.files/"·data-current-crate="alloc"·data-themes=""·data-resource-suffix="1.78.0"·data-rustdoc-version="1.78.0"·data-channel="1.78.0"·data-search-js="search-42d8da7a6b9792c2.js"·data-settings-js="settings-4313503d2e1961c2.js"·><script·src="../../../static.files/storage-4c98445ec4002617.js"></script><script·defer·src="sidebar-items1.78.0.js"></script><script·defer·src="../../../static.files/main-12cf3b4f4f9dc36d.js"></script><noscript><link·rel="stylesheet"·href="../../../static.files/noscript-04d5337699b92874.css"></noscript><link·rel="alternate·icon"·type="image/png"·href="../../../static.files/favicon-16x16-8b506e7a72182f1c.png"><link·rel="alternate·icon"·type="image/png"·href="../../../static.files/favicon-32x32-422f7d1d52889060.png"><link·rel="icon"·type="image/svg+xml"·href="../../../static.files/favicon-2c020d218678b618.svg"></head><body·class="rustdoc·struct"><!--[if·lte·IE·11]><div·class="warning">This·old·browser·is·unsupported·and·will·most·likely·display·funky·things.</div><![endif]--><nav·class="mobile-topbar"><button·class="sidebar-menu-toggle"·title="show·sidebar"></button><a·class="logo-container"·href="../../../alloc/index.html"><img·class="rust-logo"·src="../../../static.files/rust-logo-151179464ae7ed46.svg"·alt=""></a></nav><nav·class="sidebar"><div·class="sidebar-crate"><a·class="logo-container"·href="../../../alloc/index.html"><img·class="rust-logo"·src="../../../static.files/rust-logo-151179464ae7ed46.svg"·alt="logo"></a><h2><a·href="../../../alloc/index.html">alloc</a><span·class="version">1.78.0</span></h2></div><h2·class="location"><a·href="#">CharSearcher</a></h2><div·class="sidebar-elems"><section><h3><a·href="#trait-implementations">Trait·Implementations</a></h3><ul·class="block·trait-implementation"><li><a·href="#impl-Clone-for-CharSearcher%3C'a%3E">Clone</a></li><li><a·href="#impl-Debug-for-CharSearcher%3C'a%3E">Debug</a></li><li><a·href="#impl-DoubleEndedSearcher%3C'a%3E-for-CharSearcher%3C'a%3E">DoubleEndedSearcher&lt;&#x27;a&gt;</a></li><li><a·href="#impl-ReverseSearcher%3C'a%3E-for-CharSearcher%3C'a%3E">ReverseSearcher&lt;&#x27;a&gt;</a></li><li><a·href="#impl-Searcher%3C'a%3E-for-CharSearcher%3C'a%3E">Searcher&lt;&#x27;a&gt;</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">Freeze</a></li><li><a·href="#impl-RefUnwindSafe-for-CharSearcher%3C'a%3E">RefUnwindSafe</a></li><li><a·href="#impl-Send-for-CharSearcher%3C'a%3E">Send</a></li><li><a·href="#impl-Sync-for-CharSearcher%3C'a%3E">Sync</a></li><li><a·href="#impl-Unpin-for-CharSearcher%3C'a%3E">Unpin</a></li><li><a·href="#impl-UnwindSafe-for-CharSearcher%3C'a%3E">UnwindSafe</a></li></ul><h3><a·href="#blanket-implementations">Blanket·Implementations</a></h3><ul·class="block·blanket-implementation"><li><a·href="#impl-Any-for-T">Any</a></li><li><a·href="#impl-Borrow%3CT%3E-for-T">Borrow&lt;T&gt;</a></li><li><a·href="#impl-BorrowMut%3CT%3E-for-T">BorrowMut&lt;T&gt;</a></li><li><a·href="#impl-From%3CT%3E-for-T">From&lt;T&gt;</a></li><li><a·href="#impl-Into%3CU%3E-for-T">Into&lt;U&gt;</a></li><li><a·href="#impl-ToOwned-for-T">ToOwned</a></li><li><a·href="#impl-TryFrom%3CU%3E-for-T">TryFrom&lt;U&gt;</a></li><li><a·href="#impl-TryInto%3CU%3E-for-T">TryInto&lt;U&gt;</a></li></ul></section><h2><a·href="index.html">In·alloc::str::pattern</a></h2></div></nav><div·class="sidebar-resizer"></div>1 <!DOCTYPE·html><html·lang="en"><head><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·`&lt;char·as·Pattern&lt;&#x27;a&gt;&gt;::Searcher`."><title>CharSearcher·in·alloc::str::pattern·-·Rust</title><script>·if·(window.location.protocol·!==·"file:")·document.write(`<link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../../static.files/SourceSerif4-Regular-46f98efaafac5295.ttf.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../../static.files/FiraSans-Regular-018c141bf0843ffd.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../../static.files/FiraSans-Medium-8f9a781e4970d388.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../../static.files/SourceCodePro-Regular-562dcc5011b6de7d.ttf.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../../static.files/SourceCodePro-Semibold-d899c5a5c4aeb14a.ttf.woff2">`)</script><link·rel="stylesheet"·href="../../../static.files/normalize-76eba96aa4d2e634.css"><link·rel="stylesheet"·href="../../../static.files/rustdoc-35f9e32502181f1e.css"><meta·name="rustdoc-vars"·data-root-path="../../../"·data-static-root-path="../../../static.files/"·data-current-crate="alloc"·data-themes=""·data-resource-suffix="1.78.0"·data-rustdoc-version="1.78.0"·data-channel="1.78.0"·data-search-js="search-42d8da7a6b9792c2.js"·data-settings-js="settings-4313503d2e1961c2.js"·><script·src="../../../static.files/storage-4c98445ec4002617.js"></script><script·defer·src="sidebar-items1.78.0.js"></script><script·defer·src="../../../static.files/main-12cf3b4f4f9dc36d.js"></script><noscript><link·rel="stylesheet"·href="../../../static.files/noscript-04d5337699b92874.css"></noscript><link·rel="alternate·icon"·type="image/png"·href="../../../static.files/favicon-16x16-8b506e7a72182f1c.png"><link·rel="alternate·icon"·type="image/png"·href="../../../static.files/favicon-32x32-422f7d1d52889060.png"><link·rel="icon"·type="image/svg+xml"·href="../../../static.files/favicon-2c020d218678b618.svg"></head><body·class="rustdoc·struct"><!--[if·lte·IE·11]><div·class="warning">This·old·browser·is·unsupported·and·will·most·likely·display·funky·things.</div><![endif]--><nav·class="mobile-topbar"><button·class="sidebar-menu-toggle"·title="show·sidebar"></button><a·class="logo-container"·href="../../../alloc/index.html"><img·class="rust-logo"·src="../../../static.files/rust-logo-151179464ae7ed46.svg"·alt=""></a></nav><nav·class="sidebar"><div·class="sidebar-crate"><a·class="logo-container"·href="../../../alloc/index.html"><img·class="rust-logo"·src="../../../static.files/rust-logo-151179464ae7ed46.svg"·alt="logo"></a><h2><a·href="../../../alloc/index.html">alloc</a><span·class="version">1.78.0</span></h2></div><h2·class="location"><a·href="#">CharSearcher</a></h2><div·class="sidebar-elems"><section><h3><a·href="#trait-implementations">Trait·Implementations</a></h3><ul·class="block·trait-implementation"><li><a·href="#impl-Clone-for-CharSearcher%3C'a%3E">Clone</a></li><li><a·href="#impl-Debug-for-CharSearcher%3C'a%3E">Debug</a></li><li><a·href="#impl-DoubleEndedSearcher%3C'a%3E-for-CharSearcher%3C'a%3E">DoubleEndedSearcher&lt;&#x27;a&gt;</a></li><li><a·href="#impl-ReverseSearcher%3C'a%3E-for-CharSearcher%3C'a%3E">ReverseSearcher&lt;&#x27;a&gt;</a></li><li><a·href="#impl-Searcher%3C'a%3E-for-CharSearcher%3C'a%3E">Searcher&lt;&#x27;a&gt;</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">Freeze</a></li><li><a·href="#impl-RefUnwindSafe-for-CharSearcher%3C'a%3E">RefUnwindSafe</a></li><li><a·href="#impl-Send-for-CharSearcher%3C'a%3E">Send</a></li><li><a·href="#impl-Sync-for-CharSearcher%3C'a%3E">Sync</a></li><li><a·href="#impl-Unpin-for-CharSearcher%3C'a%3E">Unpin</a></li><li><a·href="#impl-UnwindSafe-for-CharSearcher%3C'a%3E">UnwindSafe</a></li></ul><h3><a·href="#blanket-implementations">Blanket·Implementations</a></h3><ul·class="block·blanket-implementation"><li><a·href="#impl-Any-for-T">Any</a></li><li><a·href="#impl-Borrow%3CT%3E-for-T">Borrow&lt;T&gt;</a></li><li><a·href="#impl-BorrowMut%3CT%3E-for-T">BorrowMut&lt;T&gt;</a></li><li><a·href="#impl-From%3CT%3E-for-T">From&lt;T&gt;</a></li><li><a·href="#impl-Into%3CU%3E-for-T">Into&lt;U&gt;</a></li><li><a·href="#impl-ToOwned-for-T">ToOwned</a></li><li><a·href="#impl-TryFrom%3CU%3E-for-T">TryFrom&lt;U&gt;</a></li><li><a·href="#impl-TryInto%3CU%3E-for-T">TryInto&lt;U&gt;</a></li></ul></section><h2><a·href="index.html">In·alloc::str::pattern</a></h2></div></nav><div·class="sidebar-resizer"></div>
2 ····<main><div·class="width-limiter"><nav·class="sub"><form·class="search-form"><span></span><div·id="sidebar-button"·tabindex="-1"><a·href="../../../alloc/all.html"·title="show·sidebar"></a></div><input·class="search-input"·name="search"·aria-label="Run·search·in·the·documentation"·autocomplete="off"·spellcheck="false"·placeholder="Click·or·press·‘S’·to·search,·‘?’·for·more·options…"·type="search"><div·id="help-button"·tabindex="-1"><a·href="../../../help.html"·title="help">?</a></div><div·id="settings-menu"·tabindex="-1"><a·href="../../../settings.html"·title="settings"><img·width="22"·height="22"·alt="Change·settings"·src="../../../static.files/wheel-7b819b6101059cd0.svg"></a></div></form></nav><section·id="main-content"·class="content"><div·class="main-heading"><h1>Struct·<a·href="../../index.html">alloc</a>::<wbr><a·href="../index.html">str</a>::<wbr><a·href="index.html">pattern</a>::<wbr><a·class="struct"·href="#">CharSearcher</a><button·id="copy-path"·title="Copy·item·path·to·clipboard"><img·src="../../../static.files/clipboard-7571035ce49a181d.svg"·width="19"·height="18"·alt="Copy·item·path"></button></h1><span·class="out-of-band"><a·class="src"·href="../../../src/core/str/pattern.rs.html#354">source</a>···<button·id="toggle-all-docs"·title="collapse·all·docs">[<span>&#x2212;</span>]</button></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&lt;'a&gt;&gt;::Searcher</code>.</p>2 ····<main><div·class="width-limiter"><nav·class="sub"><form·class="search-form"><span></span><div·id="sidebar-button"·tabindex="-1"><a·href="../../../alloc/all.html"·title="show·sidebar"></a></div><input·class="search-input"·name="search"·aria-label="Run·search·in·the·documentation"·autocomplete="off"·spellcheck="false"·placeholder="Click·or·press·‘S’·to·search,·‘?’·for·more·options…"·type="search"><div·id="help-button"·tabindex="-1"><a·href="../../../help.html"·title="help">?</a></div><div·id="settings-menu"·tabindex="-1"><a·href="../../../settings.html"·title="settings"><img·width="22"·height="22"·alt="Change·settings"·src="../../../static.files/wheel-7b819b6101059cd0.svg"></a></div></form></nav><section·id="main-content"·class="content"><div·class="main-heading"><h1>Struct·<a·href="../../index.html">alloc</a>::<wbr><a·href="../index.html">str</a>::<wbr><a·href="index.html">pattern</a>::<wbr><a·class="struct"·href="#">CharSearcher</a><button·id="copy-path"·title="Copy·item·path·to·clipboard"><img·src="../../../static.files/clipboard-7571035ce49a181d.svg"·width="19"·height="18"·alt="Copy·item·path"></button></h1><span·class="out-of-band"><a·class="src"·href="https://doc.rust-lang.org/1.78.0/src/core/str/pattern.rs.html#354">source</a>···<button·id="toggle-all-docs"·title="collapse·all·docs">[<span>&#x2212;</span>]</button></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&lt;'a&gt;&gt;::Searcher</code>.</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-Clone-for-CharSearcher%3C'a%3E"·class="impl"><a·class="src·rightside"·href="../../../src/core/str/pattern.rs.html#353">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:·5288,·SHA:·4b11651b10d40474ef36169732c236e0485b931ea7d5ad7da45b1c4d14c72949·...·]/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 </div></details><h2·id="trait-implementations"·class="section-header">Trait·Implementations<a·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.78.0/src/core/str/pattern.rs.html#353">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.78.0/core/clone/trait.[·...·truncated·by·diffoscope;·len:·5744,·SHA:·08b64b9df81b5441106ec70907d3c75cedc585e4732568ed25136a8c74fa7316·...·]/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.
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><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#314">source</a><a·href="#method.next_reject_back"·class="anchor">§</a><h4·class="code-header">fn·<a·href="trait.ReverseSearcher.html#method.next_reject_back"·class="fn">next_reject_back</a>(&amp;mut·self)·-&gt;·<a·clas[·...·truncated·by·diffoscope;·len:·212,·SHA:·733cec62a658dddf3516ef2b08370fb57ba406e95793e29806105ca588e120c5·...·]/core/primitive.usize.html">usize</a>)&gt;</h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>pattern</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/27721">#27721</a>)</span></div></span><div·class='docblock'>Finds·the·next·<a·href="enum.SearchStep.html#variant.Reject"·title="variant·alloc::str::pattern::SearchStep::Reject"><code>Reject</code></a>·result.4 See·<a·href="trait.ReverseSearcher.html#tymethod.next_back"·title="method·alloc::str::pattern::ReverseSearcher::next_back"><code>next_back()</code></a>.</div></details><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.78.0/src/core/str/pattern.rs.html#314">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:·054abed21e5decd910b39f80a9b4730cff7419f30d6eb737f885c0f7a6e2016a·...·]/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.
5 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#385">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:·bb0dfdf543dbee36f19f492fedaa258a38352a532218bd9e9cac459adc632129·...·]/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 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.78.0/src/core/str/pattern.rs.html#385">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:·3e8a10f95d941faa97fe94c1278804f112cd812afae008ee87a5fdbd50671860·...·]/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>
6 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#537">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:·5f5f223395417216574c27b37a3d7217a269c3c240a155731c272c764cf8f7d3·...·]/core/any/trait.Any.html"·title="trait·core::any::Any">Any</a>·for·T<div·class="where">where6 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.78.0/src/core/str/pattern.rs.html#537">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:·4b65aa948e9254cce913ec623b0c63c6c207c20208d0176db4ac4c4780ea063d·...·]/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="s[·...·truncated·by·diffoscope;·len:·690,·SHA:·60266624df43cdf1ecb412e35aaf311341d62543468bcbd4041716fbafffc07b·...·]/src/core/borrow.rs.html#208">source</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.78.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">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:·039b8952ccb1ab7d8f15cd519cbc10f4afc149276d0f9cfd3a53117d606059df·...·]/src/core/borrow.rs.html#208">source</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="sr[·...·truncated·by·diffoscope;·len:·647,·SHA:·8124d60df08ac71436917cb874e0ec9c0ffe7e4515e2ea246a1f1009f83ac6a1·...·]/src/core/borrow.rs.html#216">source</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.78.0/core/marker/trait.Sized.html"·title="trait·core::marker::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:·b03884aeae1813f459b6ebe4b7e3f3c22d5d37e0ad023677fd3869bc5a735be2·...·]/src/core/borrow.rs.html#216">source</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[·...·truncated·by·diffoscope;·len:·1254,·SHA:·88cecdca8f65ac7671462e07b83fc0153c4024bd8b3f1bfba320be439fbe3a4f·...·]/core/convert/trait.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.78.0/core/marker/trait.Sized.html"·title="trait·core::marker::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:·aaf5505cf4d2f5510949d066675a02996763e3167f43d15d7a3f114042a751b5·...·]/core/convert/trait.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.78.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.78.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.78.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:·2cf76a8ca501b2a1fef209fed846779ab1bed3b75f52c7425335e3ce04e6b272·...·]/core/convert/trait.Into.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.78.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#83-95">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#83-95">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·href="#ass[·...·truncated·by·diffoscope;·len:·1828,·SHA:·326644cdd10ec402cdb69dbc9def5714afb5a2f4c6c9280a5ab9ce010571c2dd·...·]/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.78.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:·1924,·SHA:·db6b4039e0093ed0d5887a096da47da282fdfd36f55651b9bf5f414e44ae56a4·...·]/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"·class="associatedtype·trait-impl"><a·[·...·truncated·by·diffoscope;·len:·1621,·SHA:·6a7315ddf4ab9fa76e45d600a396b342519e12c73d2e6dd09bf01e1fa1b0aac0·...·]/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.78.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"·class="associ[·...·truncated·by·diffoscope;·len:·1861,·SHA:·78398046ba16de2f66a8201a11d6a2dd405fceedeabfcaa37481e77092687e6f·...·]/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-1"·class="associatedtype·trai[·...·truncated·by·diffoscope;·len:·1258,·SHA:·33d8749d0be17f35431e59e57d3fb79a5cc4320bd6fc26ab5ef088d04d3c929a·...·]/core/convert/trait.TryFrom.html#associatedtype.Error"·title="type·core::convert::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.78.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-1"·cl[·...·truncated·by·diffoscope;·len:·1474,·SHA:·ca90cccb6c86c654c95a1aaec456fbbe4b115f0d5a700e7d156e823346d70894·...·]/core/convert/trait.TryFrom.html#associatedtype.Error"·title="type·core::convert::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.5 KB
./usr/share/doc/rust-web-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·`&lt;&amp;[char]·as·Pattern&lt;&#x27;a&gt;&gt;::Searcher`."><title>CharSliceSearcher·in·alloc::str::pattern·-·Rust</title><script>·if·(window.location.protocol·!==·"file:")·document.write(`<link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../../static.files/SourceSerif4-Regular-46f98efaafac5295.ttf.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../../static.files/FiraSans-Regular-018c141bf0843ffd.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../../static.files/FiraSans-Medium-8f9a781e4970d388.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../../static.files/SourceCodePro-Regular-562dcc5011b6de7d.ttf.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../../static.files/SourceCodePro-Semibold-d899c5a5c4aeb14a.ttf.woff2">`)</script><link·rel="stylesheet"·href="../../../static.files/normalize-76eba96aa4d2e634.css"><link·rel="stylesheet"·href="../../../static.files/rustdoc-35f9e32502181f1e.css"><meta·name="rustdoc-vars"·data-root-path="../../../"·data-static-root-path="../../../static.files/"·data-current-crate="alloc"·data-themes=""·data-resource-suffix="1.78.0"·data-rustdoc-version="1.78.0"·data-channel="1.78.0"·data-search-js="search-42d8da7a6b9792c2.js"·data-settings-js="settings-4313503d2e1961c2.js"·><script·src="../../../static.files/storage-4c98445ec4002617.js"></script><script·defer·src="sidebar-items1.78.0.js"></script><script·defer·src="../../../static.files/main-12cf3b4f4f9dc36d.js"></script><noscript><link·rel="stylesheet"·href="../../../static.files/noscript-04d5337699b92874.css"></noscript><link·rel="alternate·icon"·type="image/png"·href="../../../static.files/favicon-16x16-8b506e7a72182f1c.png"><link·rel="alternate·icon"·type="image/png"·href="../../../static.files/favicon-32x32-422f7d1d52889060.png"><link·rel="icon"·type="image/svg+xml"·href="../../../static.files/favicon-2c020d218678b618.svg"></head><body·class="rustdoc·struct"><!--[if·lte·IE·11]><div·class="warning">This·old·browser·is·unsupported·and·will·most·likely·display·funky·things.</div><![endif]--><nav·class="mobile-topbar"><button·class="sidebar-menu-toggle"·title="show·sidebar"></button><a·class="logo-container"·href="../../../alloc/index.html"><img·class="rust-logo"·src="../../../static.files/rust-logo-151179464ae7ed46.svg"·alt=""></a></nav><nav·class="sidebar"><div·class="sidebar-crate"><a·class="logo-container"·href="../../../alloc/index.html"><img·class="rust-logo"·src="../../../static.files/rust-logo-151179464ae7ed46.svg"·alt="logo"></a><h2><a·href="../../../alloc/index.html">alloc</a><span·class="version">1.78.0</span></h2></div><h2·class="location"><a·href="#">CharSliceSearcher</a></h2><div·class="sidebar-elems"><section><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">Clone</a></li><li><a·href="#impl-Debug-for-CharSliceSearcher%3C'a,+'b%3E">Debug</a></li><li><a·href="#impl-DoubleEndedSearcher%3C'a%3E-for-CharSliceSearcher%3C'a,+'b%3E">DoubleEndedSearcher&lt;&#x27;a&gt;</a></li><li><a·href="#impl-ReverseSearcher%3C'a%3E-for-CharSliceSearcher%3C'a,+'b%3E">ReverseSearcher&lt;&#x27;a&gt;</a></li><li><a·href="#impl-Searcher%3C'a%3E-for-CharSliceSearcher%3C'a,+'b%3E">Searcher&lt;&#x27;a&gt;</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">Freeze</a></li><li><a·href="#impl-RefUnwindSafe-for-CharSliceSearcher%3C'a,+'b%3E">RefUnwindSafe</a></li><li><a·href="#impl-Send-for-CharSliceSearcher%3C'a,+'b%3E">Send</a></li><li><a·href="#impl-Sync-for-CharSliceSearcher%3C'a,+'b%3E">Sync</a></li><li><a·href="#impl-Unpin-for-CharSliceSearcher%3C'a,+'b%3E">Unpin</a></li><li><a·href="#impl-UnwindSafe-for-CharSliceSearcher%3C'a,+'b%3E">UnwindSafe</a></li></ul><h3><a·href="#blanket-implementations">Blanket·Implementations</a></h3><ul·class="block·blanket-implementation"><li><a·href="#impl-Any-for-T">Any</a></li><li><a·href="#impl-Borrow%3CT%3E-for-T">Borrow&lt;T&gt;</a></li><li><a·href="#impl-BorrowMut%3CT%3E-for-T">BorrowMut&lt;T&gt;</a></li><li><a·href="#impl-From%3CT%3E-for-T">From&lt;T&gt;</a></li><li><a·href="#impl-Into%3CU%3E-for-T">Into&lt;U&gt;</a></li><li><a·href="#impl-ToOwned-for-T">ToOwned</a></li><li><a·href="#impl-TryFrom%3CU%3E-for-T">TryFrom&lt;U&gt;</a></li><li><a·href="#impl-TryInto%3CU%3E-for-T">TryInto&lt;U&gt;</a></li></ul></section><h2><a·href="index.html">In·alloc::str::pattern</a></h2></div></nav><div·class="sidebar-resizer"></div>1 <!DOCTYPE·html><html·lang="en"><head><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·`&lt;&amp;[char]·as·Pattern&lt;&#x27;a&gt;&gt;::Searcher`."><title>CharSliceSearcher·in·alloc::str::pattern·-·Rust</title><script>·if·(window.location.protocol·!==·"file:")·document.write(`<link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../../static.files/SourceSerif4-Regular-46f98efaafac5295.ttf.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../../static.files/FiraSans-Regular-018c141bf0843ffd.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../../static.files/FiraSans-Medium-8f9a781e4970d388.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../../static.files/SourceCodePro-Regular-562dcc5011b6de7d.ttf.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../../static.files/SourceCodePro-Semibold-d899c5a5c4aeb14a.ttf.woff2">`)</script><link·rel="stylesheet"·href="../../../static.files/normalize-76eba96aa4d2e634.css"><link·rel="stylesheet"·href="../../../static.files/rustdoc-35f9e32502181f1e.css"><meta·name="rustdoc-vars"·data-root-path="../../../"·data-static-root-path="../../../static.files/"·data-current-crate="alloc"·data-themes=""·data-resource-suffix="1.78.0"·data-rustdoc-version="1.78.0"·data-channel="1.78.0"·data-search-js="search-42d8da7a6b9792c2.js"·data-settings-js="settings-4313503d2e1961c2.js"·><script·src="../../../static.files/storage-4c98445ec4002617.js"></script><script·defer·src="sidebar-items1.78.0.js"></script><script·defer·src="../../../static.files/main-12cf3b4f4f9dc36d.js"></script><noscript><link·rel="stylesheet"·href="../../../static.files/noscript-04d5337699b92874.css"></noscript><link·rel="alternate·icon"·type="image/png"·href="../../../static.files/favicon-16x16-8b506e7a72182f1c.png"><link·rel="alternate·icon"·type="image/png"·href="../../../static.files/favicon-32x32-422f7d1d52889060.png"><link·rel="icon"·type="image/svg+xml"·href="../../../static.files/favicon-2c020d218678b618.svg"></head><body·class="rustdoc·struct"><!--[if·lte·IE·11]><div·class="warning">This·old·browser·is·unsupported·and·will·most·likely·display·funky·things.</div><![endif]--><nav·class="mobile-topbar"><button·class="sidebar-menu-toggle"·title="show·sidebar"></button><a·class="logo-container"·href="../../../alloc/index.html"><img·class="rust-logo"·src="../../../static.files/rust-logo-151179464ae7ed46.svg"·alt=""></a></nav><nav·class="sidebar"><div·class="sidebar-crate"><a·class="logo-container"·href="../../../alloc/index.html"><img·class="rust-logo"·src="../../../static.files/rust-logo-151179464ae7ed46.svg"·alt="logo"></a><h2><a·href="../../../alloc/index.html">alloc</a><span·class="version">1.78.0</span></h2></div><h2·class="location"><a·href="#">CharSliceSearcher</a></h2><div·class="sidebar-elems"><section><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">Clone</a></li><li><a·href="#impl-Debug-for-CharSliceSearcher%3C'a,+'b%3E">Debug</a></li><li><a·href="#impl-DoubleEndedSearcher%3C'a%3E-for-CharSliceSearcher%3C'a,+'b%3E">DoubleEndedSearcher&lt;&#x27;a&gt;</a></li><li><a·href="#impl-ReverseSearcher%3C'a%3E-for-CharSliceSearcher%3C'a,+'b%3E">ReverseSearcher&lt;&#x27;a&gt;</a></li><li><a·href="#impl-Searcher%3C'a%3E-for-CharSliceSearcher%3C'a,+'b%3E">Searcher&lt;&#x27;a&gt;</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">Freeze</a></li><li><a·href="#impl-RefUnwindSafe-for-CharSliceSearcher%3C'a,+'b%3E">RefUnwindSafe</a></li><li><a·href="#impl-Send-for-CharSliceSearcher%3C'a,+'b%3E">Send</a></li><li><a·href="#impl-Sync-for-CharSliceSearcher%3C'a,+'b%3E">Sync</a></li><li><a·href="#impl-Unpin-for-CharSliceSearcher%3C'a,+'b%3E">Unpin</a></li><li><a·href="#impl-UnwindSafe-for-CharSliceSearcher%3C'a,+'b%3E">UnwindSafe</a></li></ul><h3><a·href="#blanket-implementations">Blanket·Implementations</a></h3><ul·class="block·blanket-implementation"><li><a·href="#impl-Any-for-T">Any</a></li><li><a·href="#impl-Borrow%3CT%3E-for-T">Borrow&lt;T&gt;</a></li><li><a·href="#impl-BorrowMut%3CT%3E-for-T">BorrowMut&lt;T&gt;</a></li><li><a·href="#impl-From%3CT%3E-for-T">From&lt;T&gt;</a></li><li><a·href="#impl-Into%3CU%3E-for-T">Into&lt;U&gt;</a></li><li><a·href="#impl-ToOwned-for-T">ToOwned</a></li><li><a·href="#impl-TryFrom%3CU%3E-for-T">TryFrom&lt;U&gt;</a></li><li><a·href="#impl-TryInto%3CU%3E-for-T">TryInto&lt;U&gt;</a></li></ul></section><h2><a·href="index.html">In·alloc::str::pattern</a></h2></div></nav><div·class="sidebar-resizer"></div>
2 ····<main><div·class="width-limiter"><nav·class="sub"><form·class="search-form"><span></span><div·id="sidebar-button"·tabindex="-1"><a·href="../../../alloc/all.html"·title="show·sidebar"></a></div><input·class="search-input"·name="search"·aria-label="Run·search·in·the·documentation"·autocomplete="off"·spellcheck="false"·placeholder="Click·or·press·‘S’·to·search,·‘?’·for·more·options…"·type="search"><div·id="help-button"·tabindex="-1"><a·href="../../../help.html"·title="help">?</a></div><div·id="settings-menu"·tabindex="-1"><a·href="../../../settings.html"·title="settings"><img·width="22"·height="22"·alt="Change·settings"·src="../../../static.files/wheel-7b819b6101059cd0.svg"></a></div></form></nav><section·id="main-content"·class="content"><div·class="main-heading"><h1>Struct·<a·href="../../index.html">alloc</a>::<wbr><a·href="../index.html">str</a>::<wbr><a·href="index.html">pattern</a>::<wbr><a·class="struct"·href="#">CharSliceSearcher</a><button·id="copy-path"·title="Copy·item·path·to·clipboard"><img·src="../../../static.files/clipboard-7571035ce49a181d.svg"·width="19"·height="18"·alt="Copy·item·path"></button></h1><span·class="out-of-band"><a·class="src"·href="../../../src/core/str/pattern.rs.html#853">source</a>···<button·id="toggle-all-docs"·title="collapse·all·docs">[<span>&#x2212;</span>]</button></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&lt;'a&gt;&gt;::Searcher</code>.</p>2 ····<main><div·class="width-limiter"><nav·class="sub"><form·class="search-form"><span></span><div·id="sidebar-button"·tabindex="-1"><a·href="../../../alloc/all.html"·title="show·sidebar"></a></div><input·class="search-input"·name="search"·aria-label="Run·search·in·the·documentation"·autocomplete="off"·spellcheck="false"·placeholder="Click·or·press·‘S’·to·search,·‘?’·for·more·options…"·type="search"><div·id="help-button"·tabindex="-1"><a·href="../../../help.html"·title="help">?</a></div><div·id="settings-menu"·tabindex="-1"><a·href="../../../settings.html"·title="settings"><img·width="22"·height="22"·alt="Change·settings"·src="../../../static.files/wheel-7b819b6101059cd0.svg"></a></div></form></nav><section·id="main-content"·class="content"><div·class="main-heading"><h1>Struct·<a·href="../../index.html">alloc</a>::<wbr><a·href="../index.html">str</a>::<wbr><a·href="index.html">pattern</a>::<wbr><a·class="struct"·href="#">CharSliceSearcher</a><button·id="copy-path"·title="Copy·item·path·to·clipboard"><img·src="../../../static.files/clipboard-7571035ce49a181d.svg"·width="19"·height="18"·alt="Copy·item·path"></button></h1><span·class="out-of-band"><a·class="src"·href="https://doc.rust-lang.org/1.78.0/src/core/str/pattern.rs.html#853">source</a>···<button·id="toggle-all-docs"·title="collapse·all·docs">[<span>&#x2212;</span>]</button></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&lt;'a&gt;&gt;::Searcher</code>.</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-Clone-for-CharSliceSearcher%3C'a,+'b%3E"·class="impl"><a·class="src·rightside"·href="../../../src/core/str/pattern.rs.html#852">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:·5421,·SHA:·d98722fac311a6d3cf74378047e0610bc278e61ca97909089263650ce86ec033·...·]/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 </div></details><h2·id="trait-implementations"·class="section-header">Trait·Implementations<a·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.78.0/src/core/str/pattern.rs.html#852">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.78.0/core[·...·truncated·by·diffoscope;·len:·5877,·SHA:·d70aa443fc772f2041f77e11ff95c99b78522de99748d51efa65b239190d4525·...·]/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.
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><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#860">source</a><a·href="#method.next_reject_back"·class="anchor">§</a><h4·class="code-header">fn·<a·href="trait.ReverseSearcher.html#method.next_reject_back"·class="fn">next_reject_back</a>(&amp;mut·self)·-&gt;·<a·clas[·...·truncated·by·diffoscope;·len:·212,·SHA:·733cec62a658dddf3516ef2b08370fb57ba406e95793e29806105ca588e120c5·...·]/core/primitive.usize.html">usize</a>)&gt;</h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>pattern</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/27721">#27721</a>)</span></div></span><div·class='docblock'>Finds·the·next·<a·href="enum.SearchStep.html#variant.Reject"·title="variant·alloc::str::pattern::SearchStep::Reject"><code>Reject</code></a>·result.4 See·<a·href="trait.ReverseSearcher.html#tymethod.next_back"·title="method·alloc::str::pattern::ReverseSearcher::next_back"><code>next_back()</code></a>.</div></details><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.78.0/src/core/str/pattern.rs.html#860">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:·054abed21e5decd910b39f80a9b4730cff7419f30d6eb737f885c0f7a6e2016a·...·]/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.
5 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#855">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:·f0568eb6499f76ebb9e3084ddd1d717232a2dd3264bbe920636fddafc8091160·...·]/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 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.78.0/src/core/str/pattern.rs.html#855">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:·26b64ba7a89a88eee8df802fbdb8c48f7239fd2c69051fd0d505aa2793d8a253·...·]/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>
6 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#863">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:·cd409101779dd52fe9d558d066478a51203aa941b5255f98b62bdeb79208c2d9·...·]/core/any/trait.Any.html"·title="trait·core::any::Any">Any</a>·for·T<div·class="where">where6 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.78.0/src/core/str/pattern.rs.html#863">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:·87b9b77763b4d79cdfa85cd8ad6c1600726982b3a1c30f2a0d261ccc08885f01·...·]/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="s[·...·truncated·by·diffoscope;·len:·690,·SHA:·60266624df43cdf1ecb412e35aaf311341d62543468bcbd4041716fbafffc07b·...·]/src/core/borrow.rs.html#208">source</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.78.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">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:·039b8952ccb1ab7d8f15cd519cbc10f4afc149276d0f9cfd3a53117d606059df·...·]/src/core/borrow.rs.html#208">source</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="sr[·...·truncated·by·diffoscope;·len:·647,·SHA:·8124d60df08ac71436917cb874e0ec9c0ffe7e4515e2ea246a1f1009f83ac6a1·...·]/src/core/borrow.rs.html#216">source</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.78.0/core/marker/trait.Sized.html"·title="trait·core::marker::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:·b03884aeae1813f459b6ebe4b7e3f3c22d5d37e0ad023677fd3869bc5a735be2·...·]/src/core/borrow.rs.html#216">source</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[·...·truncated·by·diffoscope;·len:·1254,·SHA:·88cecdca8f65ac7671462e07b83fc0153c4024bd8b3f1bfba320be439fbe3a4f·...·]/core/convert/trait.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.78.0/core/marker/trait.Sized.html"·title="trait·core::marker::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:·aaf5505cf4d2f5510949d066675a02996763e3167f43d15d7a3f114042a751b5·...·]/core/convert/trait.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.78.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.78.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.78.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:·2cf76a8ca501b2a1fef209fed846779ab1bed3b75f52c7425335e3ce04e6b272·...·]/core/convert/trait.Into.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.78.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#83-95">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#83-95">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·href="#ass[·...·truncated·by·diffoscope;·len:·1828,·SHA:·326644cdd10ec402cdb69dbc9def5714afb5a2f4c6c9280a5ab9ce010571c2dd·...·]/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.78.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:·1924,·SHA:·db6b4039e0093ed0d5887a096da47da282fdfd36f55651b9bf5f414e44ae56a4·...·]/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"·class="associatedtype·trait-impl"><a·[·...·truncated·by·diffoscope;·len:·1621,·SHA:·6a7315ddf4ab9fa76e45d600a396b342519e12c73d2e6dd09bf01e1fa1b0aac0·...·]/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.78.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"·class="associ[·...·truncated·by·diffoscope;·len:·1861,·SHA:·78398046ba16de2f66a8201a11d6a2dd405fceedeabfcaa37481e77092687e6f·...·]/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-1"·class="associatedtype·trai[·...·truncated·by·diffoscope;·len:·1258,·SHA:·33d8749d0be17f35431e59e57d3fb79a5cc4320bd6fc26ab5ef088d04d3c929a·...·]/core/convert/trait.TryFrom.html#associatedtype.Error"·title="type·core::convert::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.78.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-1"·cl[·...·truncated·by·diffoscope;·len:·1474,·SHA:·ca90cccb6c86c654c95a1aaec456fbbe4b115f0d5a700e7d156e823346d70894·...·]/core/convert/trait.TryFrom.html#associatedtype.Error"·title="type·core::convert::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.4 KB
./usr/share/doc/rust-web-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·`&lt;&amp;str·as·Pattern&lt;&#x27;a&gt;&gt;::Searcher`."><title>StrSearcher·in·alloc::str::pattern·-·Rust</title><script>·if·(window.location.protocol·!==·"file:")·document.write(`<link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../../static.files/SourceSerif4-Regular-46f98efaafac5295.ttf.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../../static.files/FiraSans-Regular-018c141bf0843ffd.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../../static.files/FiraSans-Medium-8f9a781e4970d388.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../../static.files/SourceCodePro-Regular-562dcc5011b6de7d.ttf.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../../static.files/SourceCodePro-Semibold-d899c5a5c4aeb14a.ttf.woff2">`)</script><link·rel="stylesheet"·href="../../../static.files/normalize-76eba96aa4d2e634.css"><link·rel="stylesheet"·href="../../../static.files/rustdoc-35f9e32502181f1e.css"><meta·name="rustdoc-vars"·data-root-path="../../../"·data-static-root-path="../../../static.files/"·data-current-crate="alloc"·data-themes=""·data-resource-suffix="1.78.0"·data-rustdoc-version="1.78.0"·data-channel="1.78.0"·data-search-js="search-42d8da7a6b9792c2.js"·data-settings-js="settings-4313503d2e1961c2.js"·><script·src="../../../static.files/storage-4c98445ec4002617.js"></script><script·defer·src="sidebar-items1.78.0.js"></script><script·defer·src="../../../static.files/main-12cf3b4f4f9dc36d.js"></script><noscript><link·rel="stylesheet"·href="../../../static.files/noscript-04d5337699b92874.css"></noscript><link·rel="alternate·icon"·type="image/png"·href="../../../static.files/favicon-16x16-8b506e7a72182f1c.png"><link·rel="alternate·icon"·type="image/png"·href="../../../static.files/favicon-32x32-422f7d1d52889060.png"><link·rel="icon"·type="image/svg+xml"·href="../../../static.files/favicon-2c020d218678b618.svg"></head><body·class="rustdoc·struct"><!--[if·lte·IE·11]><div·class="warning">This·old·browser·is·unsupported·and·will·most·likely·display·funky·things.</div><![endif]--><nav·class="mobile-topbar"><button·class="sidebar-menu-toggle"·title="show·sidebar"></button><a·class="logo-container"·href="../../../alloc/index.html"><img·class="rust-logo"·src="../../../static.files/rust-logo-151179464ae7ed46.svg"·alt=""></a></nav><nav·class="sidebar"><div·class="sidebar-crate"><a·class="logo-container"·href="../../../alloc/index.html"><img·class="rust-logo"·src="../../../static.files/rust-logo-151179464ae7ed46.svg"·alt="logo"></a><h2><a·href="../../../alloc/index.html">alloc</a><span·class="version">1.78.0</span></h2></div><h2·class="location"><a·href="#">StrSearcher</a></h2><div·class="sidebar-elems"><section><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">Clone</a></li><li><a·href="#impl-Debug-for-StrSearcher%3C'a,+'b%3E">Debug</a></li><li><a·href="#impl-ReverseSearcher%3C'a%3E-for-StrSearcher%3C'a,+'b%3E">ReverseSearcher&lt;&#x27;a&gt;</a></li><li><a·href="#impl-Searcher%3C'a%3E-for-StrSearcher%3C'a,+'b%3E">Searcher&lt;&#x27;a&gt;</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">Freeze</a></li><li><a·href="#impl-RefUnwindSafe-for-StrSearcher%3C'a,+'b%3E">RefUnwindSafe</a></li><li><a·href="#impl-Send-for-StrSearcher%3C'a,+'b%3E">Send</a></li><li><a·href="#impl-Sync-for-StrSearcher%3C'a,+'b%3E">Sync</a></li><li><a·href="#impl-Unpin-for-StrSearcher%3C'a,+'b%3E">Unpin</a></li><li><a·href="#impl-UnwindSafe-for-StrSearcher%3C'a,+'b%3E">UnwindSafe</a></li></ul><h3><a·href="#blanket-implementations">Blanket·Implementations</a></h3><ul·class="block·blanket-implementation"><li><a·href="#impl-Any-for-T">Any</a></li><li><a·href="#impl-Borrow%3CT%3E-for-T">Borrow&lt;T&gt;</a></li><li><a·href="#impl-BorrowMut%3CT%3E-for-T">BorrowMut&lt;T&gt;</a></li><li><a·href="#impl-From%3CT%3E-for-T">From&lt;T&gt;</a></li><li><a·href="#impl-Into%3CU%3E-for-T">Into&lt;U&gt;</a></li><li><a·href="#impl-ToOwned-for-T">ToOwned</a></li><li><a·href="#impl-TryFrom%3CU%3E-for-T">TryFrom&lt;U&gt;</a></li><li><a·href="#impl-TryInto%3CU%3E-for-T">TryInto&lt;U&gt;</a></li></ul></section><h2><a·href="index.html">In·alloc::str::pattern</a></h2></div></nav><div·class="sidebar-resizer"></div>1 <!DOCTYPE·html><html·lang="en"><head><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·`&lt;&amp;str·as·Pattern&lt;&#x27;a&gt;&gt;::Searcher`."><title>StrSearcher·in·alloc::str::pattern·-·Rust</title><script>·if·(window.location.protocol·!==·"file:")·document.write(`<link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../../static.files/SourceSerif4-Regular-46f98efaafac5295.ttf.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../../static.files/FiraSans-Regular-018c141bf0843ffd.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../../static.files/FiraSans-Medium-8f9a781e4970d388.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../../static.files/SourceCodePro-Regular-562dcc5011b6de7d.ttf.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../../static.files/SourceCodePro-Semibold-d899c5a5c4aeb14a.ttf.woff2">`)</script><link·rel="stylesheet"·href="../../../static.files/normalize-76eba96aa4d2e634.css"><link·rel="stylesheet"·href="../../../static.files/rustdoc-35f9e32502181f1e.css"><meta·name="rustdoc-vars"·data-root-path="../../../"·data-static-root-path="../../../static.files/"·data-current-crate="alloc"·data-themes=""·data-resource-suffix="1.78.0"·data-rustdoc-version="1.78.0"·data-channel="1.78.0"·data-search-js="search-42d8da7a6b9792c2.js"·data-settings-js="settings-4313503d2e1961c2.js"·><script·src="../../../static.files/storage-4c98445ec4002617.js"></script><script·defer·src="sidebar-items1.78.0.js"></script><script·defer·src="../../../static.files/main-12cf3b4f4f9dc36d.js"></script><noscript><link·rel="stylesheet"·href="../../../static.files/noscript-04d5337699b92874.css"></noscript><link·rel="alternate·icon"·type="image/png"·href="../../../static.files/favicon-16x16-8b506e7a72182f1c.png"><link·rel="alternate·icon"·type="image/png"·href="../../../static.files/favicon-32x32-422f7d1d52889060.png"><link·rel="icon"·type="image/svg+xml"·href="../../../static.files/favicon-2c020d218678b618.svg"></head><body·class="rustdoc·struct"><!--[if·lte·IE·11]><div·class="warning">This·old·browser·is·unsupported·and·will·most·likely·display·funky·things.</div><![endif]--><nav·class="mobile-topbar"><button·class="sidebar-menu-toggle"·title="show·sidebar"></button><a·class="logo-container"·href="../../../alloc/index.html"><img·class="rust-logo"·src="../../../static.files/rust-logo-151179464ae7ed46.svg"·alt=""></a></nav><nav·class="sidebar"><div·class="sidebar-crate"><a·class="logo-container"·href="../../../alloc/index.html"><img·class="rust-logo"·src="../../../static.files/rust-logo-151179464ae7ed46.svg"·alt="logo"></a><h2><a·href="../../../alloc/index.html">alloc</a><span·class="version">1.78.0</span></h2></div><h2·class="location"><a·href="#">StrSearcher</a></h2><div·class="sidebar-elems"><section><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">Clone</a></li><li><a·href="#impl-Debug-for-StrSearcher%3C'a,+'b%3E">Debug</a></li><li><a·href="#impl-ReverseSearcher%3C'a%3E-for-StrSearcher%3C'a,+'b%3E">ReverseSearcher&lt;&#x27;a&gt;</a></li><li><a·href="#impl-Searcher%3C'a%3E-for-StrSearcher%3C'a,+'b%3E">Searcher&lt;&#x27;a&gt;</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">Freeze</a></li><li><a·href="#impl-RefUnwindSafe-for-StrSearcher%3C'a,+'b%3E">RefUnwindSafe</a></li><li><a·href="#impl-Send-for-StrSearcher%3C'a,+'b%3E">Send</a></li><li><a·href="#impl-Sync-for-StrSearcher%3C'a,+'b%3E">Sync</a></li><li><a·href="#impl-Unpin-for-StrSearcher%3C'a,+'b%3E">Unpin</a></li><li><a·href="#impl-UnwindSafe-for-StrSearcher%3C'a,+'b%3E">UnwindSafe</a></li></ul><h3><a·href="#blanket-implementations">Blanket·Implementations</a></h3><ul·class="block·blanket-implementation"><li><a·href="#impl-Any-for-T">Any</a></li><li><a·href="#impl-Borrow%3CT%3E-for-T">Borrow&lt;T&gt;</a></li><li><a·href="#impl-BorrowMut%3CT%3E-for-T">BorrowMut&lt;T&gt;</a></li><li><a·href="#impl-From%3CT%3E-for-T">From&lt;T&gt;</a></li><li><a·href="#impl-Into%3CU%3E-for-T">Into&lt;U&gt;</a></li><li><a·href="#impl-ToOwned-for-T">ToOwned</a></li><li><a·href="#impl-TryFrom%3CU%3E-for-T">TryFrom&lt;U&gt;</a></li><li><a·href="#impl-TryInto%3CU%3E-for-T">TryInto&lt;U&gt;</a></li></ul></section><h2><a·href="index.html">In·alloc::str::pattern</a></h2></div></nav><div·class="sidebar-resizer"></div>
2 ····<main><div·class="width-limiter"><nav·class="sub"><form·class="search-form"><span></span><div·id="sidebar-button"·tabindex="-1"><a·href="../../../alloc/all.html"·title="show·sidebar"></a></div><input·class="search-input"·name="search"·aria-label="Run·search·in·the·documentation"·autocomplete="off"·spellcheck="false"·placeholder="Click·or·press·‘S’·to·search,·‘?’·for·more·options…"·type="search"><div·id="help-button"·tabindex="-1"><a·href="../../../help.html"·title="help">?</a></div><div·id="settings-menu"·tabindex="-1"><a·href="../../../settings.html"·title="settings"><img·width="22"·height="22"·alt="Change·settings"·src="../../../static.files/wheel-7b819b6101059cd0.svg"></a></div></form></nav><section·id="main-content"·class="content"><div·class="main-heading"><h1>Struct·<a·href="../../index.html">alloc</a>::<wbr><a·href="../index.html">str</a>::<wbr><a·href="index.html">pattern</a>::<wbr><a·class="struct"·href="#">StrSearcher</a><button·id="copy-path"·title="Copy·item·path·to·clipboard"><img·src="../../../static.files/clipboard-7571035ce49a181d.svg"·width="19"·height="18"·alt="Copy·item·path"></button></h1><span·class="out-of-band"><a·class="src"·href="../../../src/core/str/pattern.rs.html#1028">source</a>···<button·id="toggle-all-docs"·title="collapse·all·docs">[<span>&#x2212;</span>]</button></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&lt;'a&gt;&gt;::Searcher</code>.</p>2 ····<main><div·class="width-limiter"><nav·class="sub"><form·class="search-form"><span></span><div·id="sidebar-button"·tabindex="-1"><a·href="../../../alloc/all.html"·title="show·sidebar"></a></div><input·class="search-input"·name="search"·aria-label="Run·search·in·the·documentation"·autocomplete="off"·spellcheck="false"·placeholder="Click·or·press·‘S’·to·search,·‘?’·for·more·options…"·type="search"><div·id="help-button"·tabindex="-1"><a·href="../../../help.html"·title="help">?</a></div><div·id="settings-menu"·tabindex="-1"><a·href="../../../settings.html"·title="settings"><img·width="22"·height="22"·alt="Change·settings"·src="../../../static.files/wheel-7b819b6101059cd0.svg"></a></div></form></nav><section·id="main-content"·class="content"><div·class="main-heading"><h1>Struct·<a·href="../../index.html">alloc</a>::<wbr><a·href="../index.html">str</a>::<wbr><a·href="index.html">pattern</a>::<wbr><a·class="struct"·href="#">StrSearcher</a><button·id="copy-path"·title="Copy·item·path·to·clipboard"><img·src="../../../static.files/clipboard-7571035ce49a181d.svg"·width="19"·height="18"·alt="Copy·item·path"></button></h1><span·class="out-of-band"><a·class="src"·href="https://doc.rust-lang.org/1.78.0/src/core/str/pattern.rs.html#1028">source</a>···<button·id="toggle-all-docs"·title="collapse·all·docs">[<span>&#x2212;</span>]</button></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&lt;'a&gt;&gt;::Searcher</code>.</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-Clone-for-StrSearcher%3C'a,+'b%3E"·class="impl"><a·class="src·rightside"·href="../../../src/core/str/pattern.rs.html#1026">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:·5326,·SHA:·6a318ea87447e9f08d6d6aefb40e03b5375f4e8f1e8566814d623d0669c7b15e·...·]/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 </div></details><h2·id="trait-implementations"·class="section-header">Trait·Implementations<a·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.78.0/src/core/str/pattern.rs.html#1026">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.78.0/core/clon[·...·truncated·by·diffoscope;·len:·5782,·SHA:·cb1a104f6a8c42fb52ec411208529207447002db055e2200900bbdf67e0a5836·...·]/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.
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><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#314">source</a><a·href="#method.next_reject_back"·class="anchor">§</a><h4·class="code-header">fn·<a·href="trait.ReverseSearcher.html#method.next_reject_back"·class="fn">next_reject_back</a>(&amp;mut·self)·-&gt;·<a·clas[·...·truncated·by·diffoscope;·len:·212,·SHA:·733cec62a658dddf3516ef2b08370fb57ba406e95793e29806105ca588e120c5·...·]/core/primitive.usize.html">usize</a>)&gt;</h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>pattern</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/27721">#27721</a>)</span></div></span><div·class='docblock'>Finds·the·next·<a·href="enum.SearchStep.html#variant.Reject"·title="variant·alloc::str::pattern::SearchStep::Reject"><code>Reject</code></a>·result.4 See·<a·href="trait.ReverseSearcher.html#tymethod.next_back"·title="method·alloc::str::pattern::ReverseSearcher::next_back"><code>next_back()</code></a>.</div></details><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.78.0/src/core/str/pattern.rs.html#314">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:·054abed21e5decd910b39f80a9b4730cff7419f30d6eb737f885c0f7a6e2016a·...·]/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.
5 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#1078">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:·ca59e5d479b8c3e3fe35b2ff4319356a95d4c9f4f50a5f5d48f3bb56b18bff5e·...·]/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 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.78.0/src/core/str/pattern.rs.html#1078">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:·e3c74c557c39d67595bb71c00b3d35c8bb169ccbcc6b993bb3e45d3100f90879·...·]/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>
6 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:·546cdef7bf81f3bc636e69226065e4fce6088400f4227a301ecd99156640310a·...·]/core/any/trait.Any.html"·title="trait·core::any::Any">Any</a>·for·T<div·class="where">where6 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.78.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:·7ef9484df954bc33022c98b4ed973d33b0df8adedbbe97d98854419c33e9d33c·...·]/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="s[·...·truncated·by·diffoscope;·len:·690,·SHA:·60266624df43cdf1ecb412e35aaf311341d62543468bcbd4041716fbafffc07b·...·]/src/core/borrow.rs.html#208">source</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.78.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">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:·039b8952ccb1ab7d8f15cd519cbc10f4afc149276d0f9cfd3a53117d606059df·...·]/src/core/borrow.rs.html#208">source</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="sr[·...·truncated·by·diffoscope;·len:·647,·SHA:·8124d60df08ac71436917cb874e0ec9c0ffe7e4515e2ea246a1f1009f83ac6a1·...·]/src/core/borrow.rs.html#216">source</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.78.0/core/marker/trait.Sized.html"·title="trait·core::marker::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:·b03884aeae1813f459b6ebe4b7e3f3c22d5d37e0ad023677fd3869bc5a735be2·...·]/src/core/borrow.rs.html#216">source</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[·...·truncated·by·diffoscope;·len:·1254,·SHA:·88cecdca8f65ac7671462e07b83fc0153c4024bd8b3f1bfba320be439fbe3a4f·...·]/core/convert/trait.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.78.0/core/marker/trait.Sized.html"·title="trait·core::marker::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:·aaf5505cf4d2f5510949d066675a02996763e3167f43d15d7a3f114042a751b5·...·]/core/convert/trait.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.78.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.78.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.78.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:·2cf76a8ca501b2a1fef209fed846779ab1bed3b75f52c7425335e3ce04e6b272·...·]/core/convert/trait.Into.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.78.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#83-95">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#83-95">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·href="#ass[·...·truncated·by·diffoscope;·len:·1828,·SHA:·326644cdd10ec402cdb69dbc9def5714afb5a2f4c6c9280a5ab9ce010571c2dd·...·]/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.78.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:·1924,·SHA:·db6b4039e0093ed0d5887a096da47da282fdfd36f55651b9bf5f414e44ae56a4·...·]/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"·class="associatedtype·trait-impl"><a·[·...·truncated·by·diffoscope;·len:·1621,·SHA:·6a7315ddf4ab9fa76e45d600a396b342519e12c73d2e6dd09bf01e1fa1b0aac0·...·]/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.78.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"·class="associ[·...·truncated·by·diffoscope;·len:·1861,·SHA:·78398046ba16de2f66a8201a11d6a2dd405fceedeabfcaa37481e77092687e6f·...·]/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-1"·class="associatedtype·trai[·...·truncated·by·diffoscope;·len:·1258,·SHA:·33d8749d0be17f35431e59e57d3fb79a5cc4320bd6fc26ab5ef088d04d3c929a·...·]/core/convert/trait.TryFrom.html#associatedtype.Error"·title="type·core::convert::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.78.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-1"·cl[·...·truncated·by·diffoscope;·len:·1474,·SHA:·ca90cccb6c86c654c95a1aaec456fbbe4b115f0d5a700e7d156e823346d70894·...·]/core/convert/trait.TryFrom.html#associatedtype.Error"·title="type·core::convert::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.1 KB
./usr/share/doc/rust-web-doc/html/alloc/str/pattern/trait.DoubleEndedSearcher.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·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.write(`<link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../../static.files/SourceSerif4-Regular-46f98efaafac5295.ttf.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../../static.files/FiraSans-Regular-018c141bf0843ffd.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../../static.files/FiraSans-Medium-8f9a781e4970d388.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../../static.files/SourceCodePro-Regular-562dcc5011b6de7d.ttf.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../../static.files/SourceCodePro-Semibold-d899c5a5c4aeb14a.ttf.woff2">`)</script><link·rel="stylesheet"·href="../../../static.files/normalize-76eba96aa4d2e634.css"><link·rel="stylesheet"·href="../../../static.files/rustdoc-35f9e32502181f1e.css"><meta·name="rustdoc-vars"·data-root-path="../../../"·data-static-root-path="../../../static.files/"·data-current-crate="alloc"·data-themes=""·data-resource-suffix="1.78.0"·data-rustdoc-version="1.78.0"·data-channel="1.78.0"·data-search-js="search-42d8da7a6b9792c2.js"·data-settings-js="settings-4313503d2e1961c2.js"·><script·src="../../../static.files/storage-4c98445ec4002617.js"></script><script·defer·src="sidebar-items1.78.0.js"></script><script·defer·src="../../../static.files/main-12cf3b4f4f9dc36d.js"></script><noscript><link·rel="stylesheet"·href="../../../static.files/noscript-04d5337699b92874.css"></noscript><link·rel="alternate·icon"·type="image/png"·href="../../../static.files/favicon-16x16-8b506e7a72182f1c.png"><link·rel="alternate·icon"·type="image/png"·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.78.0</span></h2></div><h2·class="location"><a·href="#">DoubleEndedSearcher</a></h2><div·class="sidebar-elems"><section><h3><a·href="#implementors">Implementors</a></h3></section><h2><a·href="index.html">In·alloc::str::pattern</a></h2></div></nav><div·class="sidebar-resizer"></div>1 <!DOCTYPE·html><html·lang="en"><head><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.write(`<link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../../static.files/SourceSerif4-Regular-46f98efaafac5295.ttf.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../../static.files/FiraSans-Regular-018c141bf0843ffd.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../../static.files/FiraSans-Medium-8f9a781e4970d388.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../../static.files/SourceCodePro-Regular-562dcc5011b6de7d.ttf.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../../static.files/SourceCodePro-Semibold-d899c5a5c4aeb14a.ttf.woff2">`)</script><link·rel="stylesheet"·href="../../../static.files/normalize-76eba96aa4d2e634.css"><link·rel="stylesheet"·href="../../../static.files/rustdoc-35f9e32502181f1e.css"><meta·name="rustdoc-vars"·data-root-path="../../../"·data-static-root-path="../../../static.files/"·data-current-crate="alloc"·data-themes=""·data-resource-suffix="1.78.0"·data-rustdoc-version="1.78.0"·data-channel="1.78.0"·data-search-js="search-42d8da7a6b9792c2.js"·data-settings-js="settings-4313503d2e1961c2.js"·><script·src="../../../static.files/storage-4c98445ec4002617.js"></script><script·defer·src="sidebar-items1.78.0.js"></script><script·defer·src="../../../static.files/main-12cf3b4f4f9dc36d.js"></script><noscript><link·rel="stylesheet"·href="../../../static.files/noscript-04d5337699b92874.css"></noscript><link·rel="alternate·icon"·type="image/png"·href="../../../static.files/favicon-16x16-8b506e7a72182f1c.png"><link·rel="alternate·icon"·type="image/png"·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.78.0</span></h2></div><h2·class="location"><a·href="#">DoubleEndedSearcher</a></h2><div·class="sidebar-elems"><section><h3><a·href="#implementors">Implementors</a></h3></section><h2><a·href="index.html">In·alloc::str::pattern</a></h2></div></nav><div·class="sidebar-resizer"></div>
2 ····<main><div·class="width-limiter"><nav·class="sub"><form·class="search-form"><span></span><div·id="sidebar-button"·tabindex="-1"><a·href="../../../alloc/all.html"·title="show·sidebar"></a></div><input·class="search-input"·name="search"·aria-label="Run·search·in·the·documentation"·autocomplete="off"·spellcheck="false"·placeholder="Click·or·press·‘S’·to·search,·‘?’·for·more·options…"·type="search"><div·id="help-button"·tabindex="-1"><a·href="../../../help.html"·title="help">?</a></div><div·id="settings-menu"·tabindex="-1"><a·href="../../../settings.html"·title="settings"><img·width="22"·height="22"·alt="Change·settings"·src="../../../static.files/wheel-7b819b6101059cd0.svg"></a></div></form></nav><section·id="main-content"·class="content"><div·class="main-heading"><h1>Trait·<a·href="../../index.html">alloc</a>::<wbr><a·href="../index.html">str</a>::<wbr><a·href="index.html">pattern</a>::<wbr><a·class="trait"·href="#">DoubleEndedSearcher</a><button·id="copy-path"·title="Copy·item·path·to·clipboard"><img·src="../../../static.files/clipboard-7571035ce49a181d.svg"·width="19"·height="18"·alt="Copy·item·path"></button></h1><span·class="out-of-band"><a·class="src"·href="../../../src/core/str/pattern.rs.html#346">source</a>···<button·id="toggle-all-docs"·title="collapse·all·docs">[<span>&#x2212;</span>]</button></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 ····<main><div·class="width-limiter"><nav·class="sub"><form·class="search-form"><span></span><div·id="sidebar-button"·tabindex="-1"><a·href="../../../alloc/all.html"·title="show·sidebar"></a></div><input·class="search-input"·name="search"·aria-label="Run·search·in·the·documentation"·autocomplete="off"·spellcheck="false"·placeholder="Click·or·press·‘S’·to·search,·‘?’·for·more·options…"·type="search"><div·id="help-button"·tabindex="-1"><a·href="../../../help.html"·title="help">?</a></div><div·id="settings-menu"·tabindex="-1"><a·href="../../../settings.html"·title="settings"><img·width="22"·height="22"·alt="Change·settings"·src="../../../static.files/wheel-7b819b6101059cd0.svg"></a></div></form></nav><section·id="main-content"·class="content"><div·class="main-heading"><h1>Trait·<a·href="../../index.html">alloc</a>::<wbr><a·href="../index.html">str</a>::<wbr><a·href="index.html">pattern</a>::<wbr><a·class="trait"·href="#">DoubleEndedSearcher</a><button·id="copy-path"·title="Copy·item·path·to·clipboard"><img·src="../../../static.files/clipboard-7571035ce49a181d.svg"·width="19"·height="18"·alt="Copy·item·path"></button></h1><span·class="out-of-band"><a·class="src"·href="https://doc.rust-lang.org/1.78.0/src/core/str/pattern.rs.html#346">source</a>···<button·id="toggle-all-docs"·title="collapse·all·docs">[<span>&#x2212;</span>]</button></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>
3 can·be·used·for·a·<a·href="../../../core/iter/traits/double_ended/trait.DoubleEndedIterator.html"·title="trait·core::iter::traits::double_ended::DoubleEndedIterator"><code>DoubleEndedIterator</code></a>·implementation.</p>3 can·be·used·for·a·<a·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/double_ended/trait.DoubleEndedIterator.html"·title="trait·core::iter::traits::double_ended::DoubleEndedIterator"><code>DoubleEndedIterator</code></a>·implementation.</p>
4 <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>·need4 <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
5 to·follow·these·conditions:</p>5 to·follow·these·conditions:</p>
6 <ul>6 <ul>
7 <li>All·results·of·<code>next()</code>·need·to·be·identical7 <li>All·results·of·<code>next()</code>·need·to·be·identical
8 to·the·results·of·<code>next_back()</code>·in·reverse·order.</li>8 to·the·results·of·<code>next_back()</code>·in·reverse·order.</li>
9 <li><code>next()</code>·and·<code>next_back()</code>·need·to·behave·as9 <li><code>next()</code>·and·<code>next_back()</code>·need·to·behave·as
10 the·two·ends·of·a·range·of·values,·that·is·they10 the·two·ends·of·a·range·of·values,·that·is·they
11 can·not·“walk·past·each·other”.</li>11 can·not·“walk·past·each·other”.</li>
12 </ul>12 </ul>
13 <h2·id="examples"><a·class="doc-anchor"·href="#examples">§</a>Examples</h2>13 <h2·id="examples"><a·class="doc-anchor"·href="#examples">§</a>Examples</h2>
14 <p><code>char::Searcher</code>·is·a·<code>DoubleEndedSearcher</code>·because·searching·for·a14 <p><code>char::Searcher</code>·is·a·<code>DoubleEndedSearcher</code>·because·searching·for·a
15 <a·href="../../../core/primitive.char.html"·title="primitive·char"><code>char</code></a>·only·requires·looking·at·one·at·a·time,·which·behaves·the·same15 <a·href="https://doc.rust-lang.org/1.78.0/core/primitive.char.html"·title="primitive·char"><code>char</code></a>·only·requires·looking·at·one·at·a·time,·which·behaves·the·same
16 from·both·ends.</p>16 from·both·ends.</p>
17 <p><code>(&amp;str)::Searcher</code>·is·not·a·<code>DoubleEndedSearcher</code>·because17 <p><code>(&amp;str)::Searcher</code>·is·not·a·<code>DoubleEndedSearcher</code>·because
18 the·pattern·<code>&quot;aa&quot;</code>·in·the·haystack·<code>&quot;aaa&quot;</code>·matches·as·either18 the·pattern·<code>&quot;aa&quot;</code>·in·the·haystack·<code>&quot;aaa&quot;</code>·matches·as·either
19 <code>&quot;[aa]a&quot;</code>·or·<code>&quot;a[aa]&quot;</code>,·depending·from·which·side·it·is·searched.</p>19 <code>&quot;[aa]a&quot;</code>·or·<code>&quot;a[aa]&quot;</code>,·depending·from·which·side·it·is·searched.</p>
20 </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#537">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:·4522b59a937c8d9bbc0bf05180621ab842ac1ed28aaee9fa573561fa4e2c5e0b·...·]/src/core/str/pattern.rs.html#912">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">where20 </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.78.0/src/core/str/pattern.rs.html#537">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:·66cedb5de26721815fa3ba6fd0d57b1f886f862f701089f207a7bea64ccc2343·...·]/src/core/str/pattern.rs.html#912">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
21 ····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:·4bb2da906d0e4a4df8f4497e35f46cbf574b51f365c6b9dcc9d0726bc86db0dd·...·]/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>21 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(<a·class="primitive"·href="https://doc.rust-lang.org/1.78.0/core/primitive.char.html">char</a>)·-&gt;·<a·class="primitive"·href="https:/[·...·truncated·by·diffoscope;·len:·484,·SHA:·9e9779be9be3a33e988d092772bf329a690f7d0009466308f40dc86565c6c73d·...·]/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>
53.8 KB
./usr/share/doc/rust-web-doc/html/alloc/str/pattern/trait.Pattern.html
    
Offset 1, 32 lines modifiedOffset 1, 32 lines modified
1 <!DOCTYPE·html><html·lang="en"><head><meta·charset="utf-8"><meta·name="viewport"·content="width=device-width,·initial-scale=1.0"><meta·name="generator"·content="rustdoc"><meta·name="description"·content="A·string·pattern."><title>Pattern·in·alloc::str::pattern·-·Rust</title><script>·if·(window.location.protocol·!==·"file:")·document.write(`<link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../../static.files/SourceSerif4-Regular-46f98efaafac5295.ttf.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../../static.files/FiraSans-Regular-018c141bf0843ffd.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../../static.files/FiraSans-Medium-8f9a781e4970d388.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../../static.files/SourceCodePro-Regular-562dcc5011b6de7d.ttf.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../../static.files/SourceCodePro-Semibold-d899c5a5c4aeb14a.ttf.woff2">`)</script><link·rel="stylesheet"·href="../../../static.files/normalize-76eba96aa4d2e634.css"><link·rel="stylesheet"·href="../../../static.files/rustdoc-35f9e32502181f1e.css"><meta·name="rustdoc-vars"·data-root-path="../../../"·data-static-root-path="../../../static.files/"·data-current-crate="alloc"·data-themes=""·data-resource-suffix="1.78.0"·data-rustdoc-version="1.78.0"·data-channel="1.78.0"·data-search-js="search-42d8da7a6b9792c2.js"·data-settings-js="settings-4313503d2e1961c2.js"·><script·src="../../../static.files/storage-4c98445ec4002617.js"></script><script·defer·src="sidebar-items1.78.0.js"></script><script·defer·src="../../../static.files/main-12cf3b4f4f9dc36d.js"></script><noscript><link·rel="stylesheet"·href="../../../static.files/noscript-04d5337699b92874.css"></noscript><link·rel="alternate·icon"·type="image/png"·href="../../../static.files/favicon-16x16-8b506e7a72182f1c.png"><link·rel="alternate·icon"·type="image/png"·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.78.0</span></h2></div><h2·class="location"><a·href="#">Pattern</a></h2><div·class="sidebar-elems"><section><h3><a·href="#required-associated-types">Required·Associated·Types</a></h3><ul·class="block"><li><a·href="#associatedtype.Searcher">Searcher</a></li></ul><h3><a·href="#required-methods">Required·Methods</a></h3><ul·class="block"><li><a·href="#tymethod.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">is_contained_in</a></li><li><a·href="#method.is_prefix_of">is_prefix_of</a></li><li><a·href="#method.is_suffix_of">is_suffix_of</a></li><li><a·href="#method.strip_prefix_of">strip_prefix_of</a></li><li><a·href="#method.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><h2><a·href="index.html">In·alloc::str::pattern</a></h2></div></nav><div·class="sidebar-resizer"></div>1 <!DOCTYPE·html><html·lang="en"><head><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.write(`<link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../../static.files/SourceSerif4-Regular-46f98efaafac5295.ttf.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../../static.files/FiraSans-Regular-018c141bf0843ffd.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../../static.files/FiraSans-Medium-8f9a781e4970d388.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../../static.files/SourceCodePro-Regular-562dcc5011b6de7d.ttf.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../../static.files/SourceCodePro-Semibold-d899c5a5c4aeb14a.ttf.woff2">`)</script><link·rel="stylesheet"·href="../../../static.files/normalize-76eba96aa4d2e634.css"><link·rel="stylesheet"·href="../../../static.files/rustdoc-35f9e32502181f1e.css"><meta·name="rustdoc-vars"·data-root-path="../../../"·data-static-root-path="../../../static.files/"·data-current-crate="alloc"·data-themes=""·data-resource-suffix="1.78.0"·data-rustdoc-version="1.78.0"·data-channel="1.78.0"·data-search-js="search-42d8da7a6b9792c2.js"·data-settings-js="settings-4313503d2e1961c2.js"·><script·src="../../../static.files/storage-4c98445ec4002617.js"></script><script·defer·src="sidebar-items1.78.0.js"></script><script·defer·src="../../../static.files/main-12cf3b4f4f9dc36d.js"></script><noscript><link·rel="stylesheet"·href="../../../static.files/noscript-04d5337699b92874.css"></noscript><link·rel="alternate·icon"·type="image/png"·href="../../../static.files/favicon-16x16-8b506e7a72182f1c.png"><link·rel="alternate·icon"·type="image/png"·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.78.0</span></h2></div><h2·class="location"><a·href="#">Pattern</a></h2><div·class="sidebar-elems"><section><h3><a·href="#required-associated-types">Required·Associated·Types</a></h3><ul·class="block"><li><a·href="#associatedtype.Searcher">Searcher</a></li></ul><h3><a·href="#required-methods">Required·Methods</a></h3><ul·class="block"><li><a·href="#tymethod.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">is_contained_in</a></li><li><a·href="#method.is_prefix_of">is_prefix_of</a></li><li><a·href="#method.is_suffix_of">is_suffix_of</a></li><li><a·href="#method.strip_prefix_of">strip_prefix_of</a></li><li><a·href="#method.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><h2><a·href="index.html">In·alloc::str::pattern</a></h2></div></nav><div·class="sidebar-resizer"></div>
2 ····<main><div·class="width-limiter"><nav·class="sub"><form·class="search-form"><span></span><div·id="sidebar-button"·tabindex="-1"><a·href="../../../alloc/all.html"·title="show·sidebar"></a></div><input·class="search-input"·name="search"·aria-label="Run·search·in·the·documentation"·autocomplete="off"·spellcheck="false"·placeholder="Click·or·press·‘S’·to·search,·‘?’·for·more·options…"·type="search"><div·id="help-button"·tabindex="-1"><a·href="../../../help.html"·title="help">?</a></div><div·id="settings-menu"·tabindex="-1"><a·href="../../../settings.html"·title="settings"><img·width="22"·height="22"·alt="Change·settings"·src="../../../static.files/wheel-7b819b6101059cd0.svg"></a></div></form></nav><section·id="main-content"·class="content"><div·class="main-heading"><h1>Trait·<a·href="../../index.html">alloc</a>::<wbr><a·href="../index.html">str</a>::<wbr><a·href="index.html">pattern</a>::<wbr><a·class="trait"·href="#">Pattern</a><button·id="copy-path"·title="Copy·item·path·to·clipboard"><img·src="../../../static.files/clipboard-7571035ce49a181d.svg"·width="19"·height="18"·alt="Copy·item·path"></button></h1><span·class="out-of-band"><a·class="src"·href="../../../src/core/str/pattern.rs.html#100">source</a>···<button·id="toggle-all-docs"·title="collapse·all·docs">[<span>&#x2212;</span>]</button></span></div><pre·class="rust·item-decl"><code>pub·trait·Pattern&lt;'a&gt;:·<a·class="trait"·href="../../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>·{2 ····<main><div·class="width-limiter"><nav·class="sub"><form·class="search-form"><span></span><div·id="sidebar-button"·tabindex="-1"><a·href="../../../alloc/all.html"·title="show·sidebar"></a></div><input·class="search-input"·name="search"·aria-label="Run·search·in·the·documentation"·autocomplete="off"·spellcheck="false"·placeholder="Click·or·press·‘S’·to·search,·‘?’·for·more·options…"·type="search"><div·id="help-button"·tabindex="-1"><a·href="../../../help.html"·title="help">?</a></div><div·id="settings-menu"·tabindex="-1"><a·href="../../../settings.html"·title="settings"><img·width="22"·height="22"·alt="Change·settings"·src="../../../static.files/wheel-7b819b6101059cd0.svg"></a></div></form></nav><section·id="main-content"·class="content"><div·class="main-heading"><h1>Trait·<a·href="../../index.html">alloc</a>::<wbr><a·href="../index.html">str</a>::<wbr><a·href="index.html">pattern</a>::<wbr><a·class="trait"·href="#">Pattern</a><button·id="copy-path"·title="Copy·item·path·to·clipboard"><img·src="../../../static.files/clipboard-7571035ce49a181d.svg"·width="19"·height="18"·alt="Copy·item·path"></button></h1><span·class="out-of-band"><a·class="src"·href="https://doc.rust-lang.org/1.78.0/src/core/str/pattern.rs.html#100">source</a>···<button·id="toggle-all-docs"·title="collapse·all·docs">[<span>&#x2212;</span>]</button></span></div><pre·class="rust·item-decl"><code>pub·trait·Pattern&lt;'a&gt;:·<a·class="tra[·...·truncated·by·diffoscope;·len:·42,·SHA:·cabe9965c8b988ca431aa6d6e34b5c5550c1e43b89c0025b4e99c1a69bfe00b6·...·]/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>·{
3 ····type·<a·href="#associatedtype.Searcher"·class="associatedtype">Searcher</a>:·<a·class="trait"·href="trait.Searcher.html"·title="trait·alloc::str::pattern::Searcher">Searcher</a>&lt;'a&gt;;3 ····type·<a·href="#associatedtype.Searcher"·class="associatedtype">Searcher</a>:·<a·class="trait"·href="trait.Searcher.html"·title="trait·alloc::str::pattern::Searcher">Searcher</a>&lt;'a&gt;;
  
4 ····//·Required·method4 ····//·Required·method
5 ····fn·<a·href="#tymethod.into_searcher"·class="fn">into_searcher</a>(self,·haystack:·&amp;'a·<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>;5 ····fn·<a·href="#tymethod.into_searcher"·class="fn">into_searcher</a>(self,·haystack:·&amp;'a·<a·class="primitive"·href="https://doc.rust-lang.org/1.78.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>;
  
6 ····//·Provided·methods6 ····//·Provided·methods
7 ····fn·<a·href="#method.is_contained_in"·class="fn">is_contained_in</a>(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>·{·...·}7 ····fn·<a·href="#method.is_contained_in"·class="fn">is_contained_in</a>(self,·haystack:·&amp;'a·<a·class="primitive"·href="https://doc.rust-lang.org/1.78.0/core/primitive.str.html">str</a>)·-&gt;·<a·class="primitive"·href="https://doc.rust-lang.org/1.78.0/core/primitive.bool.html">bool</a>·{·...·}
8 <span·class="item-spacer"></span>····fn·<a·href="#method.is_prefix_of"·class="fn">is_prefix_of</a>(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_prefix_of"·class="fn">is_prefix_of</a>(self,·haystack:·&amp;'a·<a·class="primitive"·href="https://doc.rust-lang.org/1.78.0/core/primitive.str.html">str</a>)·-&gt;·<a·class="primitive"·href="https://doc.rust-lang.org/1.78.0/core/primitive.bool.html">bool</a>·{·...·}
9 <span·class="item-spacer"></span>····fn·<a·href="#method.is_suffix_of"·class="fn">is_suffix_of</a>(self,·haystack:·&amp;'a·<a·class="primitive"·href="../../../core/primitive.str.html">str</a>)·-&gt;·<a·class="primitive"·href="../../../core/primitive.bool.html">bool</a>9 <span·class="item-spacer"></span>····fn·<a·href="#method.is_suffix_of"·class="fn">is_suffix_of</a>(self,·haystack:·&amp;'a·<a·class="primitive"·href="https://doc.rust-lang.org/1.78.0/core/primitive.str.html">str</a>)·-&gt;·<a·class="primitive"·href="https://doc.rust-lang.org/1.78.0/core/primitive.bool.html">bool</a>
10 ·······<span·class="where">where·Self::<a·class="associatedtype"·href="trait.Pattern.html#associatedtype.Searcher"·title="type·alloc::str::pattern::Pattern::Searcher">Searcher</a>:·<a·class="trait"·href="trait.ReverseSearcher.html"·title="trait·alloc::str::pattern::ReverseSearcher">ReverseSearcher</a>&lt;'a&gt;</span>·{·...·}10 ·······<span·class="where">where·Self::<a·class="associatedtype"·href="trait.Pattern.html#associatedtype.Searcher"·title="type·alloc::str::pattern::Pattern::Searcher">Searcher</a>:·<a·class="trait"·href="trait.ReverseSearcher.html"·title="trait·alloc::str::pattern::ReverseSearcher">ReverseSearcher</a>&lt;'a&gt;</span>·{·...·}
11 <span·class="item-spacer"></span>····fn·<a·href="#method.strip_prefix_of"·class="fn">strip_prefix_of</a>(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_prefix_of"·class="fn">strip_prefix_of</a>(self,·haystack:·&amp;'a·<a·class="primitive"·href="https://doc.rust-lang.org/1.78.0/core/primitive.str.html">str</a>)·-&gt;·<a·class="enum"·href="https://doc.rust-lang.org/1.78.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:·79a92ec280a604d9a370a5137e858a4bcf5bf594b189fabb1dcab3bd80c5ac57·...·]/core/primitive.str.html">str</a>&gt;·{·...·}
12 <span·class="item-spacer"></span>····fn·<a·href="#method.strip_suffix_of"·class="fn">strip_suffix_of</a>(self,·haystack:·&amp;'a·<a·class="primitive"·href="../../../core/primitive.str.html">str</a>)·-&gt;·<a·class="enum"·href="../../../core/option/enum.Option.html"·title="enum·core::option::Option">Option</a>&lt;&amp;'a·<a·class="primitive"·href="../../../core/primitive.str.html">str</a>&gt;12 <span·class="item-spacer"></span>····fn·<a·href="#method.strip_suffix_of"·class="fn">strip_suffix_of</a>(self,·haystack:·&amp;'a·<a·class="primitive"·href="https://doc.rust-lang.org/1.78.0/core/primitive.str.html">str</a>)·-&gt;·<a·class="enum"·href="https://doc.rust-lang.org/1.78.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:·79a92ec280a604d9a370a5137e858a4bcf5bf594b189fabb1dcab3bd80c5ac57·...·]/core/primitive.str.html">str</a>&gt;
13 ·······<span·class="where">where·Self::<a·class="associatedtype"·href="trait.Pattern.html#associatedtype.Searcher"·title="type·alloc::str::pattern::Pattern::Searcher">Searcher</a>:·<a·class="trait"·href="trait.ReverseSearcher.html"·title="trait·alloc::str::pattern::ReverseSearcher">ReverseSearcher</a>&lt;'a&gt;</span>·{·...·}13 ·······<span·class="where">where·Self::<a·class="associatedtype"·href="trait.Pattern.html#associatedtype.Searcher"·title="type·alloc::str::pattern::Pattern::Searcher">Searcher</a>:·<a·class="trait"·href="trait.ReverseSearcher.html"·title="trait·alloc::str::pattern::ReverseSearcher">ReverseSearcher</a>&lt;'a&gt;</span>·{·...·}
14 }</code></pre><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>pattern</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/27721">#27721</a>)</span></div></span><details·class="toggle·top-doc"·open><summary·class="hideme"><span>Expand·description</span></summary><div·class="docblock"><p>A·string·pattern.</p>14 }</code></pre><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>pattern</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/27721">#27721</a>)</span></div></span><details·class="toggle·top-doc"·open><summary·class="hideme"><span>Expand·description</span></summary><div·class="docblock"><p>A·string·pattern.</p>
15 <p>A·<code>Pattern&lt;'a&gt;</code>·expresses·that·the·implementing·type15 <p>A·<code>Pattern&lt;'a&gt;</code>·expresses·that·the·implementing·type
16 can·be·used·as·a·string·pattern·for·searching·in·a·<a·href="../../../core/primitive.str.html"·title="primitive·str"><code>&amp;'a·str</code></a>.</p>16 can·be·used·as·a·string·pattern·for·searching·in·a·<a·href="https://doc.rust-lang.org/1.78.0/core/primitive.str.html"·title="primitive·str"><code>&amp;'a·str</code></a>.</p>
17 <p>For·example,·both·<code>'a'</code>·and·<code>&quot;aa&quot;</code>·are·patterns·that17 <p>For·example,·both·<code>'a'</code>·and·<code>&quot;aa&quot;</code>·are·patterns·that
18 would·match·at·index·<code>1</code>·in·the·string·<code>&quot;baaaab&quot;</code>.</p>18 would·match·at·index·<code>1</code>·in·the·string·<code>&quot;baaaab&quot;</code>.</p>
19 <p>The·trait·itself·acts·as·a·builder·for·an·associated19 <p>The·trait·itself·acts·as·a·builder·for·an·associated
20 <a·href="trait.Searcher.html"·title="trait·alloc::str::pattern::Searcher"><code>Searcher</code></a>·type,·which·does·the·actual·work·of·finding20 <a·href="trait.Searcher.html"·title="trait·alloc::str::pattern::Searcher"><code>Searcher</code></a>·type,·which·does·the·actual·work·of·finding
21 occurrences·of·the·pattern·in·a·string.</p>21 occurrences·of·the·pattern·in·a·string.</p>
22 <p>Depending·on·the·type·of·the·pattern,·the·behaviour·of·methods·like22 <p>Depending·on·the·type·of·the·pattern,·the·behaviour·of·methods·like
23 <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·describes23 <a·href="https://doc.rust-lang.org/1.78.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.78.0/core/primitive.str.html#method.contains"·title="method·str::contains"><code>str::contains</code></a>·can·change.·The·table·below·describes
24 some·of·those·behaviours.</p>24 some·of·those·behaviours.</p>
25 <div><table><thead><tr><th>Pattern·type</th><th>Match·condition</th></tr></thead><tbody>25 <div><table><thead><tr><th>Pattern·type</th><th>Match·condition</th></tr></thead><tbody>
26 <tr><td><code>&amp;str</code></td><td>is·substring</td></tr>26 <tr><td><code>&amp;str</code></td><td>is·substring</td></tr>
27 <tr><td><code>char</code></td><td>is·contained·in·string</td></tr>27 <tr><td><code>char</code></td><td>is·contained·in·string</td></tr>
28 <tr><td><code>&amp;[char]</code></td><td>any·char·in·slice·is·contained·in·string</td></tr>28 <tr><td><code>&amp;[char]</code></td><td>any·char·in·slice·is·contained·in·string</td></tr>
29 <tr><td><code>F:·FnMut(char)·-&gt;·bool</code></td><td><code>F</code>·returns·<code>true</code>·for·a·char·in·string</td></tr>29 <tr><td><code>F:·FnMut(char)·-&gt;·bool</code></td><td><code>F</code>·returns·<code>true</code>·for·a·char·in·string</td></tr>
30 <tr><td><code>&amp;&amp;str</code></td><td>is·substring</td></tr>30 <tr><td><code>&amp;&amp;str</code></td><td>is·substring</td></tr>
Offset 51, 47 lines modifiedOffset 51, 47 lines modified
51 </span><span·class="macro">assert_eq!</span>(<span·class="string">"ab"</span>.find(<span·class="kw-2">&amp;</span>[<span·class="string">'b'</span>,·<span·class="string">'a'</span>][..]),·<span·class="prelude-val">Some</span>(<span·class="number">0</span>));51 </span><span·class="macro">assert_eq!</span>(<span·class="string">"ab"</span>.find(<span·class="kw-2">&amp;</span>[<span·class="string">'b'</span>,·<span·class="string">'a'</span>][..]),·<span·class="prelude-val">Some</span>(<span·class="number">0</span>));
52 <span·class="macro">assert_eq!</span>(<span·class="string">"abaaa"</span>.find(<span·class="kw-2">&amp;</span>[<span·class="string">'a'</span>,·<span·class="string">'z'</span>][..]),·<span·class="prelude-val">Some</span>(<span·class="number">0</span>));52 <span·class="macro">assert_eq!</span>(<span·class="string">"abaaa"</span>.find(<span·class="kw-2">&amp;</span>[<span·class="string">'a'</span>,·<span·class="string">'z'</span>][..]),·<span·class="prelude-val">Some</span>(<span·class="number">0</span>));
53 <span·class="macro">assert_eq!</span>(<span·class="string">"abaaa"</span>.find(<span·class="kw-2">&amp;</span>[<span·class="string">'c'</span>,·<span·class="string">'d'</span>][..]),·<span·class="prelude-val">None</span>);53 <span·class="macro">assert_eq!</span>(<span·class="string">"abaaa"</span>.find(<span·class="kw-2">&amp;</span>[<span·class="string">'c'</span>,·<span·class="string">'d'</span>][..]),·<span·class="prelude-val">None</span>);
  
54 <span·class="comment">//·FnMut(char)·-&gt;·bool54 <span·class="comment">//·FnMut(char)·-&gt;·bool
55 </span><span·class="macro">assert_eq!</span>(<span·class="string">"abcdef_z"</span>.find(|ch|·ch·&gt;·<span·class="string">'d'·</span>&amp;&amp;·ch·&lt;·<span·class="string">'y'</span>),·<span·class="prelude-val">Some</span>(<span·class="number">4</span>));55 </span><span·class="macro">assert_eq!</span>(<span·class="string">"abcdef_z"</span>.find(|ch|·ch·&gt;·<span·class="string">'d'·</span>&amp;&amp;·ch·&lt;·<span·class="string">'y'</span>),·<span·class="prelude-val">Some</span>(<span·class="number">4</span>));
56 <span·class="macro">assert_eq!</span>(<span·class="string">"abcddd_z"</span>.find(|ch|·ch·&gt;·<span·class="string">'d'·</span>&amp;&amp;·ch·&lt;·<span·class="string">'y'</span>),·<span·class="prelude-val">None</span>);</code></pre><a·class="test-arrow"·target="_blank"·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">Run</a></div>56 <span·class="macro">assert_eq!</span>(<span·class="string">"abcddd_z"</span>.find(|ch|·ch·&gt;·<span·class="string">'d'·</span>&amp;&amp;·ch·&lt;·<span·class="string">'y'</span>),·<span·class="prelude-val">None</span>);</code></pre><a·class="test-arrow"·target="_blank"·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">Run</a></div>
57 </div></details><h2·id="required-associated-types"·class="section-header">Required·Associated·Types<a·href="#required-associated-types"·class="anchor">§</a></h2><div·class="methods"><details·class="toggle"·open><summary><section·id="associatedtype.Searcher"·class="method"><a·class="src·rightside"·href="../../../src/core/str/pattern.rs.html#102">source</a><h4·class="code-header">type·<a·href="#associatedtype.Searcher"·class="associatedtype">Searcher</a>:·<a·class="trait"·href="trait.Searcher.html"·title="trait·alloc::str::pattern::Searcher">Searcher</a>&lt;'a&gt;</h4></section><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>pattern</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/27721">#27721</a>)</span></div></span></summary><div·class="docblock"><p>Associated·searcher·for·this·pattern</p>57 </div></details><h2·id="required-associated-types"·class="section-header">Required·Associated·Types<a·href="#required-associated-types"·class="anchor">§</a></h2><div·class="methods"><details·class="toggle"·open><summary><section·id="associatedtype.Searcher"·class="method"><a·class="src·rightside"·href="https://doc.rust-lang.org/1.78.0/src/core/str/pattern.rs.html#102">source</a><h4·class="code-header">type·<a·href="#associatedtype.Searcher"·class="associatedtype">Searcher</a>:·<a·class="trait"·href="trait.Searcher.html"·title="trait·alloc::str::pattern::Searcher">Searcher</a>&lt;'a&gt;</h4></section><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>pattern</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/27721">#27721</a>)</span></div></span></summary><div·class="docblock"><p>Associated·searcher·for·this·pattern</p>
58 </div></details></div><h2·id="required-methods"·class="section-header">Required·Methods<a·href="#required-methods"·class="anchor">§</a></h2><div·class="methods"><details·class="toggle·method-toggle"·open><summary><section·id="tymethod.into_searcher"·class="method"><a·class="src·rightside"·href="../../../src/core/str/pattern.rs.html#106">source</a><h4·class="code-header">fn·<a·href="#tymethod.into_searcher"·class="fn">into_searcher</a>(self,·haystack:·&amp;'a·<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></h4></section><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>pattern</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/27721">#27721</a>)</span></div></span></summary><div·class="docblock"><p>Constructs·the·associated·searcher·from58 </div></details></div><h2·id="required-methods"·class="section-header">Required·Methods<a·href="#required-methods"·class="anchor">§</a></h2><div·class="methods"><details·class="toggle·method-toggle"·open><summary><section·id="tymethod.into_searcher"·class="method"><a·class="src·rightside"·href="https://doc.rust-lang.org/1.78.0/src/core/str/pattern.rs.html#106">source</a><h4·class="code-header">fn·<a·href="#tymethod.into_searcher"·class="fn">into_searcher</a>(self,·haystack:·&amp;'a·<a·class="primitive"·href="https://doc.rust-lang.org/1.78.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></h4></section><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>pattern</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/27721">#27721</a>)</span></div></span></summary><div·class="docblock"><p>Constructs·the·associated·searcher·from
59 <code>self</code>·and·the·<code>haystack</code>·to·search·in.</p>59 <code>self</code>·and·the·<code>haystack</code>·to·search·in.</p>
60 </div></details></div><h2·id="provided-methods"·class="section-header">Provided·Methods<a·href="#provided-methods"·class="anchor">§</a></h2><div·class="methods"><details·class="toggle·method-toggle"·open><summary><section·id="method.is_contained_in"·class="method"><a·class="src·rightside"·href="../../../src/core/str/pattern.rs.html#110">source</a><h4·class="code-header">fn·<a·href="#method.is_contained_in"·class="fn">is_contained_in</a>(self,·haystack:·&amp;'a·<a·class="primitive"·href="../../../core/primitive.str.html">str</a>)·-&gt;·<a·class="p[·...·truncated·by·diffoscope;·len:·24,·SHA:·1d29bba73a2bb57256d89eb2a900882fae88cd52444317a89fb04d33ed0d2546·...·]/core/primitive.bool.html">bool</a></h4></section><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>pattern</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/27721">#27721</a>)</span></div></span></summary><div·class="docblock"><p>Checks·whether·the·pattern·matches·anywhere·in·the·haystack</p>60 </div></details></div><h2·id="provided-methods"·class="section-header">Provided·Methods<a·href="#provided-methods"·class="anchor">§</a></h2><div·class="methods"><details·class="toggle·method-toggle"·open><summary><section·id="method.is_contained_in"·class="method"><a·class="src·rightside"·href="https://doc.rust-lang.org/1.78.0/src/core/str/pattern.rs.html#110">source</a><h4·class="code-header">fn·<a·href="#method.is_contained_in"·class="fn">is_contained_in</a>(self,·haystack:·&amp;'a·<a·class="primitive"·href="https://doc.rust-lang.org/1.78.0/cor[·...·truncated·by·diffoscope;·len:·96,·SHA:·de0d9eb77f0ef15eb71e24014dd43aea90fc3035f690cd84a9e928d6b496ac5b·...·]/core/primitive.bool.html">bool</a></h4></section><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>pattern</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/27721">#27721</a>)</span></div></span></summary><div·class="docblock"><p>Checks·whether·the·pattern·matches·anywhere·in·the·haystack</p>
61 </div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.is_prefix_of"·class="method"><a·class="src·rightside"·href="../../../src/core/str/pattern.rs.html#116">source</a><h4·class="code-header">fn·<a·href="#method.is_prefix_of"·class="fn">is_prefix_of</a>(self,·haystack:·&amp;'a·<a·class="primitive"·href="../../../core/primitive.str.html">str</a>)·-&gt;·<a·class="primiti[·...·truncated·by·diffoscope;·len:·18,·SHA:·6d28d2607e000987e71bc5db8f1636077dc0e55ca172b1c6fa7dd7994fc37a79·...·]/core/primitive.bool.html">bool</a></h4></section><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>pattern</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/27721">#27721</a>)</span></div></span></summary><div·class="docblock"><p>Checks·whether·the·pattern·matches·at·the·front·of·the·haystack</p>61 </div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.is_prefix_of"·class="method"><a·class="src·rightside"·href="https://doc.rust-lang.org/1.78.0/src/core/str/pattern.rs.html#116">source</a><h4·class="code-header">fn·<a·href="#method.is_prefix_of"·class="fn">is_prefix_of</a>(self,·haystack:·&amp;'a·<a·class="primitive"·href="https://doc.rust-lang.org/1.78.0/core/prim[·...·truncated·by·diffoscope;·len:·90,·SHA:·a586502fc14ca55a271f49c5454eeea456bf60055cb4233133f669912ad76704·...·]/core/primitive.bool.html">bool</a></h4></section><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>pattern</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/27721">#27721</a>)</span></div></span></summary><div·class="docblock"><p>Checks·whether·the·pattern·matches·at·the·front·of·the·haystack</p>
62 </div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.is_suffix_of"·class="method"><a·class="src·rightside"·href="../../../src/core/str/pattern.rs.html#122-124">source</a><h4·class="code-header">fn·<a·href="#method.is_suffix_of"·class="fn">is_suffix_of</a>(self,·haystack:·&amp;'a·<a·class="primitive"·href="../../../core/primitive.str.html">str</a>)·-&gt;·<a·class="pri[·...·truncated·by·diffoscope;·len:·22,·SHA:·90b02d491d770898647940fb27b2e5aa7d1e4dc3528184b5096158572b260285·...·]/core/primitive.bool.html">bool</a><div·class="where">where62 </div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.is_suffix_of"·class="method"><a·class="src·rightside"·href="https://doc.rust-lang.org/1.78.0/src/core/str/pattern.rs.html#122-124">source</a><h4·class="code-header">fn·<a·href="#method.is_suffix_of"·class="fn">is_suffix_of</a>(self,·haystack:·&amp;'a·<a·class="primitive"·href="https://doc.rust-lang.org/1.78.0/core/[·...·truncated·by·diffoscope;·len:·94,·SHA:·e4f1e5892b71c6cb8bb97f395de0e940efb4520d372523bfbe95bc43d5b827c4·...·]/core/primitive.bool.html">bool</a><div·class="where">where
63 ····Self::<a·class="associatedtype"·href="trait.Pattern.html#associatedtype.Searcher"·title="type·alloc::str::pattern::Pattern::Searcher">Searcher</a>:·<a·class="trait"·href="trait.ReverseSearcher.html"·title="trait·alloc::str::pattern::ReverseSearcher">ReverseSearcher</a>&lt;'a&gt;,</div></h4></section><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>pattern</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/27721">#27721</a>)</span></div></span></summary><div·class="docblock"><p>Checks·whether·the·pattern·matches·at·the·back·of·the·haystack</p>63 ····Self::<a·class="associatedtype"·href="trait.Pattern.html#associatedtype.Searcher"·title="type·alloc::str::pattern::Pattern::Searcher">Searcher</a>:·<a·class="trait"·href="trait.ReverseSearcher.html"·title="trait·alloc::str::pattern::ReverseSearcher">ReverseSearcher</a>&lt;'a&gt;,</div></h4></section><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>pattern</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/27721">#27721</a>)</span></div></span></summary><div·class="docblock"><p>Checks·whether·the·pattern·matches·at·the·back·of·the·haystack</p>
64 </div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.strip_prefix_of"·class="method"><a·class="src·rightside"·href="../../../src/core/str/pattern.rs.html#131">source</a><h4·class="code-header">fn·<a·href="#method.strip_prefix_of"·class="fn">strip_prefix_of</a>(self,·haystack:·&amp;'a·<a·class="primitive"·href="../../../core/primitive.str.html">str</a>)·-&gt;·<a·class="e[·...·truncated·by·diffoscope;·len:·141,·SHA:·8908cda1217478d86dd185849b9caf28beb8779349124898873f30a72018ccf2·...·]/core/primitive.str.html">str</a>&gt;</h4></section><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>pattern</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/27721">#27721</a>)</span></div></span></summary><div·class="docblock"><p>Removes·the·pattern·from·the·front·of·haystack,·if·it·matches.</p>64 </div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.strip_prefix_of"·class="method"><a·class="src·rightside"·href="https://doc.rust-lang.org/1.78.0/src/core/str/pattern.rs.html#131">source</a><h4·class="code-header">fn·<a·href="#method.strip_prefix_of"·class="fn">strip_prefix_of</a>(self,·haystack:·&amp;'a·<a·class="primitive"·href="https://doc.rust-lang.org/1.78.0/cor[·...·truncated·by·diffoscope;·len:·237,·SHA:·3d01ff36af1ead34f2fed3685e562ba79d8d76bf52a4e63201c934e8d95be8f1·...·]/core/primitive.str.html">str</a>&gt;</h4></section><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>pattern</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/27721">#27721</a>)</span></div></span></summary><div·class="docblock"><p>Removes·the·pattern·from·the·front·of·haystack,·if·it·matches.</p>
65 </div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.strip_suffix_of"·class="method"><a·class="src·rightside"·href="../../../src/core/str/pattern.rs.html#147-149">source</a><h4·class="code-header">fn·<a·href="#method.strip_suffix_of"·class="fn">strip_suffix_of</a>(self,·haystack:·&amp;'a·<a·class="primitive"·href="../../../core/primitive.str.html">str</a>)·-&gt;·<a·clas[·...·truncated·by·diffoscope;·len:·145,·SHA:·13da371398e05465e86ba65b1bc862f2f78dd78769871fbb2411b0bb92a49c19·...·]/core/primitive.str.html">str</a>&gt;<div·class="where">where65 </div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.strip_suffix_of"·class="method"><a·class="src·rightside"·href="https://doc.rust-lang.org/1.78.0/src/core/str/pattern.rs.html#147-149">source</a><h4·class="code-header">fn·<a·href="#method.strip_suffix_of"·class="fn">strip_suffix_of</a>(self,·haystack:·&amp;'a·<a·class="primitive"·href="https://doc.rust-lang.org/1.78.0[·...·truncated·by·diffoscope;·len:·241,·SHA:·d17c5274f2eda49248b2247b7701bdb6578c35ef3c1efc0c1c1cb28398da8de0·...·]/core/primitive.str.html">str</a>&gt;<div·class="where">where
66 ····Self::<a·class="associatedtype"·href="trait.Pattern.html#associatedtype.Searcher"·title="type·alloc::str::pattern::Pattern::Searcher">Searcher</a>:·<a·class="trait"·href="trait.ReverseSearcher.html"·title="trait·alloc::str::pattern::ReverseSearcher">ReverseSearcher</a>&lt;'a&gt;,</div></h4></section><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>pattern</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/27721">#27721</a>)</span></div></span></summary><div·class="docblock"><p>Removes·the·pattern·from·the·back·of·haystack,·if·it·matches.</p>66 ····Self::<a·class="associatedtype"·href="trait.Pattern.html#associatedtype.Searcher"·title="type·alloc::str::pattern::Pattern::Searcher">Searcher</a>:·<a·class="trait"·href="trait.ReverseSearcher.html"·title="trait·alloc::str::pattern::ReverseSearcher">ReverseSearcher</a>&lt;'a&gt;,</div></h4></section><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>pattern</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/27721">#27721</a>)</span></div></span></summary><div·class="docblock"><p>Removes·the·pattern·from·the·back·of·haystack,·if·it·matches.</p>
67 </div></details></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.78.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%3C'a%3E-for-char"·class="impl"><a·class="src·rightside"·href="../../../src/core/str/pattern.rs.html#546">source</a><a·href="#impl-Pattern%3C'a%3E-for-char"·class="anchor">§</a><h3·class="code-header">impl&lt;'a&gt;·<a·class="trait"·href="trait.Pattern.html"·title="trait·alloc::str::pattern::Pattern">Pattern</a>&lt;'a[·...·truncated·by·diffoscope;·len:·191,·SHA:·6bd975a823dffe7dfb306198c11bb671ea431c3fd80ca246fdcad5012f723aa5·...·]/core/primitive.char.html"·title="primitive·char"><code>char</code></a>.</p>67 </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.78.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%3C'a%3E-for-char"·class="impl"><a·class="src·rightside"·href="https://doc.rust-lang.org/1.78.0/src/core/str/pattern.rs.html#546">source</a><a·href="#impl-Pattern%3C'a%3E-for-char"·class="anchor">§</a><h3·class="code-header">impl&lt;'a&gt;·<a·class="trait"·href="trait.Pattern.html"·title="trait·alloc::str::pattern::Pa[·...·truncated·by·diffoscope;·len:·263,·SHA:·d0b38ff7848ca5798f6716782ef8b0911358e267a1519c819a7c2248e12f7408·...·]/core/primitive.char.html"·title="primitive·char"><code>char</code></a>.</p>
68 <h4·id="examples-1"><a·class="doc-anchor"·href="#examples-1">§</a>Examples</h4>68 <h4·id="examples-1"><a·class="doc-anchor"·href="#examples-1">§</a>Examples</h4>
69 <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"·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">Run</a></div>69 <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"·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">Run</a></div>
70 </div><div·class="impl-items"><section·id="associatedtype.Searcher-1"·class="associatedtype·trait-impl"><a·href="#associatedtype.Searcher-1"·class="anchor">§</a><h4·class="code-header">type·<a·href="#associatedtype.Searcher"·class="associatedtype">Searcher</a>·=·<a·class="struct"·href="struct.CharSearcher.html"·title="struct·alloc::str::pattern::CharSearcher">CharSearcher</a>&lt;'a&gt;</h4></section></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-Pattern%3C'a%3E-for-%26str"·class="impl"><a·class="src·rightside"·href="../../../src/core/str/pattern.rs.html#952">source</a><a·href="#impl-Pattern%3C'a%3E-for-%26str"·class="anchor">§</a><h3·class="code-header">impl&lt;'a,·'b&gt;·<a·class="trait"·href="trait.Pattern.html"·title="trait·alloc::str::pattern::Pattern">Pattern</a>[·...·truncated·by·diffoscope;·len:·58,·SHA:·a7e6f909032b2d689d582818bfacfaa1d8eada0a91a4acd9ece9f1e24806a47f·...·]/core/primitive.str.html">str</a></h3></section></summary><div·class="docblock"><p>Non-allocating·substring·search.</p>70 </div><div·class="impl-items"><section·id="associatedtype.Searcher-1"·class="associatedtype·trait-impl"><a·href="#associatedtype.Searcher-1"·class="anchor">§</a><h4·class="code-header">type·<a·href="#associatedtype.Searcher"·class="associatedtype">Searcher</a>·=·<a·class="struct"·href="struct.CharSearcher.html"·title="struct·alloc::str::pattern::CharSearcher">CharSearcher</a>&lt;'a&gt;</h4></section></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-Pattern%3C'a%3E-for-%26str"·class="impl"><a·class="src·rightside"·href="https://doc.rust-lang.org/1.78.0/src/core/str/pattern.rs.html#952">source</a><a·href="#impl-Pattern%3C'a%3E-for-%26str"·class="anchor">§</a><h3·class="code-header">impl&lt;'a,·'b&gt;·<a·class="trait"·href="trait.Pattern.html"·title="trait·alloc::str::patte[·...·truncated·by·diffoscope;·len:·106,·SHA:·07bf75ba443057b5abde17ab71da6d24bab711e763fb3a44d9d86b6816018d80·...·]/core/primitive.str.html">str</a></h3></section></summary><div·class="docblock"><p>Non-allocating·substring·search.</p>
71 <p>Will·handle·the·pattern·<code>&quot;&quot;</code>·as·returning·empty·matches·at·each·character71 <p>Will·handle·the·pattern·<code>&quot;&quot;</code>·as·returning·empty·matches·at·each·character
72 boundary.</p>72 boundary.</p>
73 <h4·id="examples-2"><a·class="doc-anchor"·href="#examples-2">§</a>Examples</h4>73 <h4·id="examples-2"><a·class="doc-anchor"·href="#examples-2">§</a>Examples</h4>
74 <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"·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">Run</a></div>74 <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"·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">Run</a></div>
75 </div><div·class="impl-items"><section·id="associatedtype.Searcher-2"·class="associatedtype·trait-impl"><a·href="#associatedtype.Searcher-2"·class="anchor">§</a><h4·class="code-header">type·<a·href="#associatedtype.Searcher"·class="associatedtype">Searcher</a>·=·<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%3C'a%3E-for-%26String"·class="impl"><a·class="src·rightside"·href="../../../src/alloc/string.rs.html#2282-2313">source</a><a·href="#impl-Pattern%3C'a%3E-for-%26String"·class="anchor">§</a><h3·class="code-header">impl&lt;'a,·'b&gt;·<a·class="trait"·href="trait.Pattern.html"·title="trait·alloc::str::pattern::Pattern">Pattern</a>&lt;'a&gt;·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 </div><div·class="impl-items"><section·id="associatedtype.Searcher-2"·class="associatedtype·trait-impl"><a·href="#associatedtype.Searcher-2"·class="anchor">§</a><h4·class="code-header">type·<a·href="#associatedtype.Searcher"·class="associatedtype">Searcher</a>·=·<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%3C'a%3E-for-%26String"·class="impl"><a·class="src·rightside"·href="../../../src/alloc/string.rs.html#2282-2313">source</a><a·href="#impl-Pattern%3C'a%3E-for-%26String"·class="anchor">§</a><h3·class="code-header">impl&lt;'a,·'b&gt;·<a·class="trait"·href="trait.Pattern.html"·title="trait·alloc::str::pattern::Pattern">Pattern</a>&lt;'a&gt;·for·&amp;'b·<a·class="struct"·href="../../string/struct.String.html"·title="struct·alloc::string::String">String</a></h3></section></summary><div·class="docblock"><p>A·convenience·impl·that·delegates·to·the·impl·for·<code>&amp;str</code>.</p>
76 <h4·id="examples-3"><a·class="doc-anchor"·href="#examples-3">§</a>Examples</h4>76 <h4·id="examples-3"><a·class="doc-anchor"·href="#examples-3">§</a>Examples</h4>
77 <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"·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">Run</a></div>77 <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"·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">Run</a></div>
78 </div><div·class="impl-items"><section·id="associatedtype.Searcher-3"·class="associatedtype·trait-impl"><a·href="#associatedtype.Searcher-3"·class="anchor">§</a><h4·class="code-header">type·<a·href="#associatedtype.Searcher"·class="associatedtype">Searcher</a>·=·&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>&lt;'a&gt;&gt;::<a·class="associatedtype"·href="trait.Pattern.html#associatedtype.Searcher"·title="type·alloc::str[·...·truncated·by·diffoscope;·len:·696,·SHA:·fd5a85f107c50b09a95620aa29e55b5e0d2c90258756b8edf482dddf24738b42·...·]/core/primitive.char.html"·title="primitive·char"><code>char</code></a>s·in·the·slice.</p>78 </div><div·class="impl-items"><section·id="associatedtype.Searcher-3"·class="associatedtype·trait-impl"><a·href="#associatedtype.Searcher-3"·class="anchor">§</a><h4·class="code-header">type·<a·href="#associatedtype.Searcher"·class="associatedtype">Searcher</a>·=·&lt;&amp;'b·<a·class="primitive"·href="https://doc.rust-lang.org/1.78.0/core/primitive.str.html">str</a>·as·<a·class="trait"·href="trait.Pattern.html"·title="trait·alloc::str::pattern::Pattern">Pattern</a>&lt;'a&gt;&gt;::<a·class="associatedtype"·href="trait.Pattern.html#associatedtype.Searcher[·...·truncated·by·diffoscope;·len:·792,·SHA:·679e76e13cf0f634d132d40c162e6e3b3e6ff53adaacefa30e26cf857afbe4d6·...·]/core/primitive.char.html"·title="primitive·char"><code>char</code></a>s·in·the·slice.</p>
79 <h4·id="examples-4"><a·class="doc-anchor"·href="#examples-4">§</a>Examples</h4>79 <h4·id="examples-4"><a·class="doc-anchor"·href="#examples-4">§</a>Examples</h4>
80 <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 <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>));
81 <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"·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">Run</a></div>81 <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"·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">Run</a></div>
82 </div><div·class="impl-items"><section·id="associatedtype.Searcher-4"·class="associatedtype·trait-impl"><a·href="#associatedtype.Searcher-4"·class="anchor">§</a><h4·class="code-header">type·<a·href="#associatedtype.Searcher"·class="associatedtype">Searcher</a>·=·<a·class="struct"·href="struct.CharSliceSearcher.html"·title="struct·alloc::str::pattern::CharSliceSearcher">CharSliceSearcher</a>&lt;'a,·'b&gt;</h4></section></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-Pattern%3C'a%3E-for-%26%26str"·class="impl"><a·class="src·rightside"·href="../../../src/core/str/pattern.rs.html#934">source</a><a·href="#impl-Pattern%3C'a%3E-for-%26%26str"·class="anchor">§</a><h3·class="code-header">impl&lt;'a,·'b,·'c&gt;·<a·class="trait"·href="trait.Pattern.html"·title="trait·alloc::str::pattern::Pattern">Patt[·...·truncated·by·diffoscope;·len:·73,·SHA:·684e8cdc323d95dc6d1911c16e3b3ae0dc7d7e8fa417e2d70e25cbb2b470babd·...·]/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-4"·class="associatedtype·trait-impl"><a·href="#associatedtype.Searcher-4"·class="anchor">§</a><h4·class="code-header">type·<a·href="#associatedtype.Searcher"·class="associatedtype">Searcher</a>·=·<a·class="struct"·href="struct.CharSliceSearcher.html"·title="struct·alloc::str::pattern::CharSliceSearcher">CharSliceSearcher</a>&lt;'a,·'b&gt;</h4></section></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-Pattern%3C'a%3E-for-%26%26str"·class="impl"><a·class="src·rightside"·href="https://doc.rust-lang.org/1.78.0/src/core/str/pattern.rs.html#934">source</a><a·href="#impl-Pattern%3C'a%3E-for-%26%26str"·class="anchor">§</a><h3·class="code-header">impl&lt;'a,·'b,·'c&gt;·<a·class="trait"·href="trait.Pattern.html"·title="trait·alloc::str[·...·truncated·by·diffoscope;·len:·121,·SHA:·199b918c6f98e9a3856eb54cc6227d54f245671d88fc3fd67ebd46e961a7a1b0·...·]/core/primitive.str.html">str</a></h3></section></summary><div·class="docblock"><p>Delegates·to·the·<code>&amp;str</code>·impl.</p>
83 </div><div·class="impl-items"><section·id="associatedtype.Searcher-5"·class="associatedtype·trait-impl"><a·href="#associatedtype.Searcher-5"·class="anchor">§</a><h4·class="code-header">type·<a·href="#associatedtype.Searcher"·class="associatedtype">Searcher</a>·=·<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%3C'a%3E-for-%26%5Bchar;+N%5D"·class="impl"><a·class="src·rightside"·href="../../../src/core/str/pattern.rs.html#831">source</a><a·href="#impl-Pattern%3C'a%3E-for-%26%5Bchar;+N%5D"·class="anchor">§</a><h3·class="code-header">impl&lt;'a,·'b,·const·N:·<a·class="primitive"·href="../../../core/primitive.usize.html">usize</a>&gt;·<a·c[·...·truncated·by·diffoscope;·len:·373,·SHA:·5d7605ea9bfb6c8424820e12e19f60c242dac17ba92117d7e220e68a6ce57516·...·]/core/primitive.char.html"·title="primitive·char"><code>char</code></a>s·in·the·array.</p>83 </div><div·class="impl-items"><section·id="associatedtype.Searcher-5"·class="associatedtype·trait-impl"><a·href="#associatedtype.Searcher-5"·class="anchor">§</a><h4·class="code-header">type·<a·href="#associatedtype.Searcher"·class="associatedtype">Searcher</a>·=·<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%3C'a%3E-for-%26%5Bchar;+N%5D"·class="impl"><a·class="src·rightside"·href="https://doc.rust-lang.org/1.78.0/src/core/str/pattern.rs.html#831">source</a><a·href="#impl-Pattern%3C'a%3E-for-%26%5Bchar;+N%5D"·class="anchor">§</a><h3·class="code-header">impl&lt;'a,·'b,·const·N:·<a·class="primitive"·href="https://doc.rust-lang.org/1.78[·...·truncated·by·diffoscope;·len:·493,·SHA:·0ccba990f3c9edc4495a1581957345d90cd1bfe5f1574b14e07f768c90447cb5·...·]/core/primitive.char.html"·title="primitive·char"><code>char</code></a>s·in·the·array.</p>
84 <h4·id="examples-5"><a·class="doc-anchor"·href="#examples-5">§</a>Examples</h4>84 <h4·id="examples-5"><a·class="doc-anchor"·href="#examples-5">§</a>Examples</h4>
85 <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 <div·class="example-wrap"><pre·class="rust·rust-example-rendered"><code><span·class="macro">assert_eq!</span>(<span·class="string">"Hello·world"</span>.find(<span·class="kw-2">&amp;</span>[<span·class="string">'o'</span>,·<span·class="string">'l'</span>]),·<span·class="prelude-val">Some</span>(<span·class="number">2</span>));
86 <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"·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">Run</a></div>86 <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"·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">Run</a></div>
87 </div><div·class="impl-items"><section·id="associatedtype.Searcher-6"·class="associatedtype·trait-impl"><a·href="#associatedtype.Searcher-6"·class="anchor">§</a><h4·class="code-header">type·<a·href="#associatedtype.Searcher"·class="associatedtype">Searcher</a>·=·<a·class="struct"·href="struct.CharArrayRefSearcher.html"·title="struct·alloc::str::pattern::CharArrayRefSearcher">CharArrayRefSearcher</a>&lt;'a,·'b,·N&gt;</h4></section></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-Pattern%3C'a%3E-for-F"·class="impl"><a·class="src·rightside"·href="../../../src/core/str/pattern.rs.html#922-924">source</a><a·href="#impl-Pattern%3C'a%3E-for-F"·class="anchor">§</a><h3·class="code-header">impl&lt;'a,·F&gt;·<a·class="trait"·href="trait.Pattern.html"·title="trait·alloc::str::pattern::Pattern">Pattern</a>&lt;'a&gt;·for·F<div·class="where">where87 </div><div·class="impl-items"><section·id="associatedtype.Searcher-6"·class="associatedtype·trait-impl"><a·href="#associatedtype.Searcher-6"·class="anchor">§</a><h4·class="code-header">type·<a·href="#associatedtype.Searcher"·class="associatedtype">Searcher</a>·=·<a·class="struct"·href="struct.CharArrayRefSearcher.html"·title="struct·alloc::str::pattern::CharArrayRefSearcher">CharArrayRefSearcher</a>&lt;'a,·'b,·N&gt;</h4></section></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-Pattern%3C'a%3E-for-F"·class="impl"><a·class="src·rightside"·href="https://doc.rust-lang.org/1.78.0/src/core/str/pattern.rs.html#922-924">source</a><a·href="#impl-Pattern%3C'a%3E-for-F"·class="anchor">§</a><h3·class="code-header">impl&lt;'a,·F&gt;·<a·class="trait"·href="trait.Pattern.html"·title="trait·alloc::str::pattern::Pattern">Pattern</a>&lt;'a&gt;·for·F<div·class="where">where
88 ····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>88 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(<a·class="primitive"·href="https://doc.rust-lang.org/1.78.0/core/primitive.char.html">char</a>)·-&gt;·<a·class="primitive"·href="https:/[·...·truncated·by·diffoscope;·len:·171,·SHA:·5c38aeb4f37de223f68fbc722627df452737016f09bb86da403b3bc66fe6eb1a·...·]/core/primitive.char.html"·title="primitive·char"><code>char</code></a>s·that·match·the·given·predicate.</p>
89 <h4·id="examples-6"><a·class="doc-anchor"·href="#examples-6">§</a>Examples</h4>89 <h4·id="examples-6"><a·class="doc-anchor"·href="#examples-6">§</a>Examples</h4>
90 <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 <div·class="example-wrap"><pre·class="rust·rust-example-rendered"><code><span·class="macro">assert_eq!</span>(<span·class="string">"Hello·world"</span>.find(char::is_uppercase),·<span·class="prelude-val">Some</span>(<span·class="number">0</span>));
91 <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"·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">Run</a></div>91 <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"·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">Run</a></div>
92 </div><div·class="impl-items"><section·id="associatedtype.Searcher-7"·class="associatedtype·trait-impl"><a·href="#associatedtype.Searcher-7"·class="anchor">§</a><h4·class="code-header">type·<a·href="#associatedtype.Searcher"·class="associatedtype">Searcher</a>·=·<a·class="struct"·href="struct.CharPredicateSearcher.html"·title="struct·alloc::str::pattern::CharPredicateSearcher">CharPredicateSearcher</a>&lt;'a,·F&gt;</h4></section></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-Pattern%3C'a%3E-for-%5Bchar;+N%5D"·class="impl"><a·class="src·rightside"·href="../../../src/core/str/pattern.rs.html#809">source</a><a·href="#impl-Pattern%3C'a%3E-for-%5Bchar;+N%5D"·class="anchor">§</a><h3·class="code-header">impl&lt;'a,·const·N:·<a·class="primitive"·href="../../../core/primitive.usize.html">usize</a>&gt;·<a·class="t[·...·truncated·by·diffoscope;·len:·358,·SHA:·2a812270ed6485da6dac0f62bdd8c39febcdecf924426ff4a9f46264388a77dd·...·]/core/primitive.char.html"·title="primitive·char"><code>char</code></a>s·in·the·array.</p>92 </div><div·class="impl-items"><section·id="associatedtype.Searcher-7"·class="associatedtype·trait-impl"><a·href="#associatedtype.Searcher-7"·class="anchor">§</a><h4·class="code-header">type·<a·href="#associatedtype.Searcher"·class="associatedtype">Searcher</a>·=·<a·class="struct"·href="struct.CharPredicateSearcher.html"·title="struct·alloc::str::pattern::CharPredicateSearcher">CharPredicateSearcher</a>&lt;'a,·F&gt;</h4></section></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-Pattern%3C'a%3E-for-%5Bchar;+N%5D"·class="impl"><a·class="src·rightside"·href="https://doc.rust-lang.org/1.78.0/src/core/str/pattern.rs.html#809">source</a><a·href="#impl-Pattern%3C'a%3E-for-%5Bchar;+N%5D"·class="anchor">§</a><h3·class="code-header">impl&lt;'a,·const·N:·<a·class="primitive"·href="https://doc.rust-lang.org/1.78.0/core[·...·truncated·by·diffoscope;·len:·478,·SHA:·a2e906892c12e2f53727cfb1d8e969cc9ca8bf1dc12f3460f839973f95b67645·...·]/core/primitive.char.html"·title="primitive·char"><code>char</code></a>s·in·the·array.</p>
93 <h4·id="examples-7"><a·class="doc-anchor"·href="#examples-7">§</a>Examples</h4>93 <h4·id="examples-7"><a·class="doc-anchor"·href="#examples-7">§</a>Examples</h4>
94 <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 <div·class="example-wrap"><pre·class="rust·rust-example-rendered"><code><span·class="macro">assert_eq!</span>(<span·class="string">"Hello·world"</span>.find([<span·class="string">'o'</span>,·<span·class="string">'l'</span>]),·<span·class="prelude-val">Some</span>(<span·class="number">2</span>));
95 <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"·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">Run</a></div>95 <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"·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">Run</a></div>
96 </div><div·class="impl-items"><section·id="associatedtype.Searcher-8"·class="associatedtype·trait-impl"><a·href="#associatedtype.Searcher-8"·class="anchor">§</a><h4·class="code-header">type·<a·href="#associatedtype.Searcher"·class="associatedtype">Searcher</a>·=·<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>96 </div><div·class="impl-items"><section·id="associatedtype.Searcher-8"·class="associatedtype·trait-impl"><a·href="#associatedtype.Searcher-8"·class="anchor">§</a><h4·class="code-header">type·<a·href="#associatedtype.Searcher"·class="associatedtype">Searcher</a>·=·<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>
26.3 KB
./usr/share/doc/rust-web-doc/html/alloc/str/pattern/trait.ReverseSearcher.html
    
Offset 1, 26 lines modifiedOffset 1, 26 lines modified
1 <!DOCTYPE·html><html·lang="en"><head><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.write(`<link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../../static.files/SourceSerif4-Regular-46f98efaafac5295.ttf.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../../static.files/FiraSans-Regular-018c141bf0843ffd.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../../static.files/FiraSans-Medium-8f9a781e4970d388.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../../static.files/SourceCodePro-Regular-562dcc5011b6de7d.ttf.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../../static.files/SourceCodePro-Semibold-d899c5a5c4aeb14a.ttf.woff2">`)</script><link·rel="stylesheet"·href="../../../static.files/normalize-76eba96aa4d2e634.css"><link·rel="stylesheet"·href="../../../static.files/rustdoc-35f9e32502181f1e.css"><meta·name="rustdoc-vars"·data-root-path="../../../"·data-static-root-path="../../../static.files/"·data-current-crate="alloc"·data-themes=""·data-resource-suffix="1.78.0"·data-rustdoc-version="1.78.0"·data-channel="1.78.0"·data-search-js="search-42d8da7a6b9792c2.js"·data-settings-js="settings-4313503d2e1961c2.js"·><script·src="../../../static.files/storage-4c98445ec4002617.js"></script><script·defer·src="sidebar-items1.78.0.js"></script><script·defer·src="../../../static.files/main-12cf3b4f4f9dc36d.js"></script><noscript><link·rel="stylesheet"·href="../../../static.files/noscript-04d5337699b92874.css"></noscript><link·rel="alternate·icon"·type="image/png"·href="../../../static.files/favicon-16x16-8b506e7a72182f1c.png"><link·rel="alternate·icon"·type="image/png"·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.78.0</span></h2></div><h2·class="location"><a·href="#">ReverseSearcher</a></h2><div·class="sidebar-elems"><section><h3><a·href="#required-methods">Required·Methods</a></h3><ul·class="block"><li><a·href="#tymethod.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">next_match_back</a></li><li><a·href="#method.next_reject_back">next_reject_back</a></li></ul><h3><a·href="#implementors">Implementors</a></h3></section><h2><a·href="index.html">In·alloc::str::pattern</a></h2></div></nav><div·class="sidebar-resizer"></div>1 <!DOCTYPE·html><html·lang="en"><head><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.write(`<link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../../static.files/SourceSerif4-Regular-46f98efaafac5295.ttf.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../../static.files/FiraSans-Regular-018c141bf0843ffd.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../../static.files/FiraSans-Medium-8f9a781e4970d388.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../../static.files/SourceCodePro-Regular-562dcc5011b6de7d.ttf.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../../static.files/SourceCodePro-Semibold-d899c5a5c4aeb14a.ttf.woff2">`)</script><link·rel="stylesheet"·href="../../../static.files/normalize-76eba96aa4d2e634.css"><link·rel="stylesheet"·href="../../../static.files/rustdoc-35f9e32502181f1e.css"><meta·name="rustdoc-vars"·data-root-path="../../../"·data-static-root-path="../../../static.files/"·data-current-crate="alloc"·data-themes=""·data-resource-suffix="1.78.0"·data-rustdoc-version="1.78.0"·data-channel="1.78.0"·data-search-js="search-42d8da7a6b9792c2.js"·data-settings-js="settings-4313503d2e1961c2.js"·><script·src="../../../static.files/storage-4c98445ec4002617.js"></script><script·defer·src="sidebar-items1.78.0.js"></script><script·defer·src="../../../static.files/main-12cf3b4f4f9dc36d.js"></script><noscript><link·rel="stylesheet"·href="../../../static.files/noscript-04d5337699b92874.css"></noscript><link·rel="alternate·icon"·type="image/png"·href="../../../static.files/favicon-16x16-8b506e7a72182f1c.png"><link·rel="alternate·icon"·type="image/png"·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.78.0</span></h2></div><h2·class="location"><a·href="#">ReverseSearcher</a></h2><div·class="sidebar-elems"><section><h3><a·href="#required-methods">Required·Methods</a></h3><ul·class="block"><li><a·href="#tymethod.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">next_match_back</a></li><li><a·href="#method.next_reject_back">next_reject_back</a></li></ul><h3><a·href="#implementors">Implementors</a></h3></section><h2><a·href="index.html">In·alloc::str::pattern</a></h2></div></nav><div·class="sidebar-resizer"></div>
2 ····<main><div·class="width-limiter"><nav·class="sub"><form·class="search-form"><span></span><div·id="sidebar-button"·tabindex="-1"><a·href="../../../alloc/all.html"·title="show·sidebar"></a></div><input·class="search-input"·name="search"·aria-label="Run·search·in·the·documentation"·autocomplete="off"·spellcheck="false"·placeholder="Click·or·press·‘S’·to·search,·‘?’·for·more·options…"·type="search"><div·id="help-button"·tabindex="-1"><a·href="../../../help.html"·title="help">?</a></div><div·id="settings-menu"·tabindex="-1"><a·href="../../../settings.html"·title="settings"><img·width="22"·height="22"·alt="Change·settings"·src="../../../static.files/wheel-7b819b6101059cd0.svg"></a></div></form></nav><section·id="main-content"·class="content"><div·class="main-heading"><h1>Trait·<a·href="../../index.html">alloc</a>::<wbr><a·href="../index.html">str</a>::<wbr><a·href="index.html">pattern</a>::<wbr><a·class="trait"·href="#">ReverseSearcher</a><button·id="copy-path"·title="Copy·item·path·to·clipboard"><img·src="../../../static.files/clipboard-7571035ce49a181d.svg"·width="19"·height="18"·alt="Copy·item·path"></button></h1><span·class="out-of-band"><a·class="src"·href="../../../src/core/str/pattern.rs.html#274">source</a>···<button·id="toggle-all-docs"·title="collapse·all·docs">[<span>&#x2212;</span>]</button></span></div><pre·class="rust·item-decl"><code>pub·unsafe·trait·ReverseSearcher&lt;'a&gt;:·<a·class="trait"·href="trait.Searcher.html"·title="trait·alloc::str::pattern::Searcher">Searcher</a>&lt;'a&gt;·{2 ····<main><div·class="width-limiter"><nav·class="sub"><form·class="search-form"><span></span><div·id="sidebar-button"·tabindex="-1"><a·href="../../../alloc/all.html"·title="show·sidebar"></a></div><input·class="search-input"·name="search"·aria-label="Run·search·in·the·documentation"·autocomplete="off"·spellcheck="false"·placeholder="Click·or·press·‘S’·to·search,·‘?’·for·more·options…"·type="search"><div·id="help-button"·tabindex="-1"><a·href="../../../help.html"·title="help">?</a></div><div·id="settings-menu"·tabindex="-1"><a·href="../../../settings.html"·title="settings"><img·width="22"·height="22"·alt="Change·settings"·src="../../../static.files/wheel-7b819b6101059cd0.svg"></a></div></form></nav><section·id="main-content"·class="content"><div·class="main-heading"><h1>Trait·<a·href="../../index.html">alloc</a>::<wbr><a·href="../index.html">str</a>::<wbr><a·href="index.html">pattern</a>::<wbr><a·class="trait"·href="#">ReverseSearcher</a><button·id="copy-path"·title="Copy·item·path·to·clipboard"><img·src="../../../static.files/clipboard-7571035ce49a181d.svg"·width="19"·height="18"·alt="Copy·item·path"></button></h1><span·class="out-of-band"><a·class="src"·href="https://doc.rust-lang.org/1.78.0/src/core/str/pattern.rs.html#274">source</a>···<button·id="toggle-all-docs"·title="collapse·all·docs">[<span>&#x2212;</span>]</button></span></div><pre·class="rust·item-decl"><code>pub·unsafe·trait·ReverseSearcher&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.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 ····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>;
  
5 ····//·Provided·methods5 ····//·Provided·methods
6 ····fn·<a·href="#method.next_match_back"·class="fn">next_match_back</a>(&amp;mut·self)·-&gt;·<a·class="enum"·href="../../../core/option/enum.Option.html"·title="enum·core::option::Option">Option</a>&lt;(<a·class="primitive"·href="../../../core/primitive.usize.html">usize</a>,·<a·class="primitive"·href="../../../core/primitive.usize.html">usize</a>)&gt;·{·...·}6 ····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.78.0/core/option/enum.Option.html"·title="enum·core::option::Option">Option</a>&lt;(<a·class="primitive"·href="https://doc.rust-lang.org/1.78.0/core/primitive.usize.html">usize</a>,·<a·class="primitive"·href="https://doc.rust-la[·...·truncated·by·diffoscope;·len:·13,·SHA:·a3944fe259f3b484f5d3705ce26f7af06ba821285552c373bd29bbce95a51354·...·]/core/primitive.usize.html">usize</a>)&gt;·{·...·}
7 <span·class="item-spacer"></span>····fn·<a·href="#method.next_reject_back"·class="fn">next_reject_back</a>(&amp;mut·self)·-&gt;·<a·class="enum"·href="../../../core/option/enum.Option.html"·title="enum·core::option::Option">Option</a>&lt;(<a·class="primitive"·href="../../../core/primitive.usize.html">usize</a>,·<a·class="primitive"·href="../../../core/primitive.usize.html">usize</a>)&gt;·{·...·}7 <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.78.0/core/option/enum.Option.html"·title="enum·core::option::Option">Option</a>&lt;(<a·class="primitive"·href="https://doc.rust-lang.org/1.78.0/core/primitive.usize.html">usize</a>,·<a·class="primitive"·href="https://doc.rust-la[·...·truncated·by·diffoscope;·len:·13,·SHA:·a3944fe259f3b484f5d3705ce26f7af06ba821285552c373bd29bbce95a51354·...·]/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·reverse·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·reverse·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·back·(right)·of·a·string.</p>10 matches·of·a·pattern·starting·from·the·back·(right)·of·a·string.</p>
11 <p>It·will·be·implemented·by·associated·<a·href="trait.Searcher.html"·title="trait·alloc::str::pattern::Searcher"><code>Searcher</code></a>11 <p>It·will·be·implemented·by·associated·<a·href="trait.Searcher.html"·title="trait·alloc::str::pattern::Searcher"><code>Searcher</code></a>
12 types·of·the·<a·href="trait.Pattern.html"·title="trait·alloc::str::pattern::Pattern"><code>Pattern</code></a>·trait·if·the·pattern·supports·searching12 types·of·the·<a·href="trait.Pattern.html"·title="trait·alloc::str::pattern::Pattern"><code>Pattern</code></a>·trait·if·the·pattern·supports·searching
13 for·it·from·the·back.</p>13 for·it·from·the·back.</p>
14 <p>The·index·ranges·returned·by·this·trait·are·not·required14 <p>The·index·ranges·returned·by·this·trait·are·not·required
15 to·exactly·match·those·of·the·forward·search·in·reverse.</p>15 to·exactly·match·those·of·the·forward·search·in·reverse.</p>
16 <p>For·the·reason·why·this·trait·is·marked·unsafe,·see·the16 <p>For·the·reason·why·this·trait·is·marked·unsafe,·see·the
17 parent·trait·<a·href="trait.Searcher.html"·title="trait·alloc::str::pattern::Searcher"><code>Searcher</code></a>.</p>17 parent·trait·<a·href="trait.Searcher.html"·title="trait·alloc::str::pattern::Searcher"><code>Searcher</code></a>.</p>
18 </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#296">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 </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.78.0/src/core/str/pattern.rs.html#296">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>
19 <ul>19 <ul>
20 <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 <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>
21 matches·the·pattern.</li>21 matches·the·pattern.</li>
22 <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 <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>
23 can·not·match·the·pattern,·even·partially.</li>23 can·not·match·the·pattern,·even·partially.</li>
24 <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·haystack24 <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
25 has·been·visited</li>25 has·been·visited</li>
Offset 31, 13 lines modifiedOffset 31, 13 lines modified
31 covering·the·whole·haystack,·and·laying·on·utf8·boundaries.</p>31 covering·the·whole·haystack,·and·laying·on·utf8·boundaries.</p>
32 <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·matched32 <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
33 pattern,·however·<a·href="enum.SearchStep.html#variant.Reject"·title="variant·alloc::str::pattern::SearchStep::Reject"><code>Reject</code></a>·results·may·be·split·up33 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
34 into·arbitrary·many·adjacent·fragments.·Both·ranges·may·have·zero·length.</p>34 into·arbitrary·many·adjacent·fragments.·Both·ranges·may·have·zero·length.</p>
35 <p>As·an·example,·the·pattern·<code>&quot;aaa&quot;</code>·and·the·haystack·<code>&quot;cbaaaaab&quot;</code>35 <p>As·an·example,·the·pattern·<code>&quot;aaa&quot;</code>·and·the·haystack·<code>&quot;cbaaaaab&quot;</code>
36 might·produce·the·stream36 might·produce·the·stream
37 <code>[Reject(7,·8),·Match(4,·7),·Reject(1,·4),·Reject(0,·1)]</code>.</p>37 <code>[Reject(7,·8),·Match(4,·7),·Reject(1,·4),·Reject(0,·1)]</code>.</p>
38 </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#301">source</a><h4·class="code-header">fn·<a·href="#method.next_match_back"·class="fn">next_match_back</a>(&amp;mut·self)·-&gt;·<a·class="enum"·href="../../../core/option/enum.Option.html"·title="enum·core::option::Opt[·...·truncated·by·diffoscope;·len:·129,·SHA:·c67ef3b39b688364517b9a7d154c053594de1ae8cd9bd41b7ce23583108d0f5d·...·]/core/primitive.usize.html">usize</a>)&gt;</h4></section><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>pattern</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/27721">#27721</a>)</span></div></span></summary><div·class="docblock"><p>Finds·the·next·<a·href="enum.SearchStep.html#variant.Match"·title="variant·alloc::str::pattern::SearchStep::Match"><code>Match</code></a>·result.38 </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.78.0/src/core/str/pattern.rs.html#301">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.78.0/core/option[·...·truncated·by·diffoscope;·len:·225,·SHA:·869f6d96503618eac16bb092d7ade4408eb55fc5fe8f2d0cacb94b734b8b5489·...·]/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.
39 See·<a·href="trait.ReverseSearcher.html#tymethod.next_back"·title="method·alloc::str::pattern::ReverseSearcher::next_back"><code>next_back()</code></a>.</p>39 See·<a·href="trait.ReverseSearcher.html#tymethod.next_back"·title="method·alloc::str::pattern::ReverseSearcher::next_back"><code>next_back()</code></a>.</p>
40 </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#314">source</a><h4·class="code-header">fn·<a·href="#method.next_reject_back"·class="fn">next_reject_back</a>(&amp;mut·self)·-&gt;·<a·class="enum"·href="../../../core/option/enum.Option.html"·title="enum·core::option::O[·...·truncated·by·diffoscope;·len:·131,·SHA:·233c4f5eb0acb2b11900bd9eedcb2a511fecf016874034faf4f50bdce54abf57·...·]/core/primitive.usize.html">usize</a>)&gt;</h4></section><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>pattern</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/27721">#27721</a>)</span></div></span></summary><div·class="docblock"><p>Finds·the·next·<a·href="enum.SearchStep.html#variant.Reject"·title="variant·alloc::str::pattern::SearchStep::Reject"><code>Reject</code></a>·result.40 </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.78.0/src/core/str/pattern.rs.html#314">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.78.0/core/opti[·...·truncated·by·diffoscope;·len:·227,·SHA:·798e9304d727ebe5eb88368bb99093d2d5fc584c7d096a5bf0c7f9d78c1be658·...·]/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.
41 See·<a·href="trait.ReverseSearcher.html#tymethod.next_back"·title="method·alloc::str::pattern::ReverseSearcher::next_back"><code>next_back()</code></a>.</p>41 See·<a·href="trait.ReverseSearcher.html#tymethod.next_back"·title="method·alloc::str::pattern::ReverseSearcher::next_back"><code>next_back()</code></a>.</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-ReverseSearcher%3C'a%3E-for-CharSearcher%3C'a%3E"·class="impl"><a·class="src·rightside"·href="../../../src/core/str/pattern.rs.html#463">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:·28642708a6f0fc7a02cccaa7b66f0709caa25b4ee9084bade4fd06fc7cba47bc·...·]/src/core/str/pattern.rs.html#905-907">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">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-ReverseSearcher%3C'a%3E-for-CharSearcher%3C'a%3E"·class="impl"><a·class="src·rightside"·href="https://doc.rust-lang.org/1.78.0/src/core/str/pattern.rs.html#463">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:·a02d3ae5b523149eff24ce3d63ca49ebaeea592a3361f47ba58aba87756ac65e·...·]/src/core/str/pattern.rs.html#905-907">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
43 ····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:·d34413911f6a476e09209f903c7d2bb852fc674f0cd5485eb02913c40b689ea4·...·]/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>43 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(<a·class="primitive"·href="https://doc.rust-lang.org/1.78.0/core/primitive.char.html">char</a>)·-&gt;·<a·class="primitive"·href="https:/[·...·truncated·by·diffoscope;·len:·476,·SHA:·06959b901ea2f2cd51098276d293cf1802a7b085b32c3a4a23723beb735f270f·...·]/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>
28.6 KB
./usr/share/doc/rust-web-doc/html/alloc/str/pattern/trait.Searcher.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="A·searcher·for·a·string·pattern."><title>Searcher·in·alloc::str::pattern·-·Rust</title><script>·if·(window.location.protocol·!==·"file:")·document.write(`<link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../../static.files/SourceSerif4-Regular-46f98efaafac5295.ttf.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../../static.files/FiraSans-Regular-018c141bf0843ffd.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../../static.files/FiraSans-Medium-8f9a781e4970d388.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../../static.files/SourceCodePro-Regular-562dcc5011b6de7d.ttf.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../../static.files/SourceCodePro-Semibold-d899c5a5c4aeb14a.ttf.woff2">`)</script><link·rel="stylesheet"·href="../../../static.files/normalize-76eba96aa4d2e634.css"><link·rel="stylesheet"·href="../../../static.files/rustdoc-35f9e32502181f1e.css"><meta·name="rustdoc-vars"·data-root-path="../../../"·data-static-root-path="../../../static.files/"·data-current-crate="alloc"·data-themes=""·data-resource-suffix="1.78.0"·data-rustdoc-version="1.78.0"·data-channel="1.78.0"·data-search-js="search-42d8da7a6b9792c2.js"·data-settings-js="settings-4313503d2e1961c2.js"·><script·src="../../../static.files/storage-4c98445ec4002617.js"></script><script·defer·src="sidebar-items1.78.0.js"></script><script·defer·src="../../../static.files/main-12cf3b4f4f9dc36d.js"></script><noscript><link·rel="stylesheet"·href="../../../static.files/noscript-04d5337699b92874.css"></noscript><link·rel="alternate·icon"·type="image/png"·href="../../../static.files/favicon-16x16-8b506e7a72182f1c.png"><link·rel="alternate·icon"·type="image/png"·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.78.0</span></h2></div><h2·class="location"><a·href="#">Searcher</a></h2><div·class="sidebar-elems"><section><h3><a·href="#required-methods">Required·Methods</a></h3><ul·class="block"><li><a·href="#tymethod.haystack">haystack</a></li><li><a·href="#tymethod.next">next</a></li></ul><h3><a·href="#provided-methods">Provided·Methods</a></h3><ul·class="block"><li><a·href="#method.next_match">next_match</a></li><li><a·href="#method.next_reject">next_reject</a></li></ul><h3><a·href="#implementors">Implementors</a></h3></section><h2><a·href="index.html">In·alloc::str::pattern</a></h2></div></nav><div·class="sidebar-resizer"></div>1 <!DOCTYPE·html><html·lang="en"><head><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.write(`<link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../../static.files/SourceSerif4-Regular-46f98efaafac5295.ttf.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../../static.files/FiraSans-Regular-018c141bf0843ffd.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../../static.files/FiraSans-Medium-8f9a781e4970d388.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../../static.files/SourceCodePro-Regular-562dcc5011b6de7d.ttf.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../../static.files/SourceCodePro-Semibold-d899c5a5c4aeb14a.ttf.woff2">`)</script><link·rel="stylesheet"·href="../../../static.files/normalize-76eba96aa4d2e634.css"><link·rel="stylesheet"·href="../../../static.files/rustdoc-35f9e32502181f1e.css"><meta·name="rustdoc-vars"·data-root-path="../../../"·data-static-root-path="../../../static.files/"·data-current-crate="alloc"·data-themes=""·data-resource-suffix="1.78.0"·data-rustdoc-version="1.78.0"·data-channel="1.78.0"·data-search-js="search-42d8da7a6b9792c2.js"·data-settings-js="settings-4313503d2e1961c2.js"·><script·src="../../../static.files/storage-4c98445ec4002617.js"></script><script·defer·src="sidebar-items1.78.0.js"></script><script·defer·src="../../../static.files/main-12cf3b4f4f9dc36d.js"></script><noscript><link·rel="stylesheet"·href="../../../static.files/noscript-04d5337699b92874.css"></noscript><link·rel="alternate·icon"·type="image/png"·href="../../../static.files/favicon-16x16-8b506e7a72182f1c.png"><link·rel="alternate·icon"·type="image/png"·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.78.0</span></h2></div><h2·class="location"><a·href="#">Searcher</a></h2><div·class="sidebar-elems"><section><h3><a·href="#required-methods">Required·Methods</a></h3><ul·class="block"><li><a·href="#tymethod.haystack">haystack</a></li><li><a·href="#tymethod.next">next</a></li></ul><h3><a·href="#provided-methods">Provided·Methods</a></h3><ul·class="block"><li><a·href="#method.next_match">next_match</a></li><li><a·href="#method.next_reject">next_reject</a></li></ul><h3><a·href="#implementors">Implementors</a></h3></section><h2><a·href="index.html">In·alloc::str::pattern</a></h2></div></nav><div·class="sidebar-resizer"></div>
2 ····<main><div·class="width-limiter"><nav·class="sub"><form·class="search-form"><span></span><div·id="sidebar-button"·tabindex="-1"><a·href="../../../alloc/all.html"·title="show·sidebar"></a></div><input·class="search-input"·name="search"·aria-label="Run·search·in·the·documentation"·autocomplete="off"·spellcheck="false"·placeholder="Click·or·press·‘S’·to·search,·‘?’·for·more·options…"·type="search"><div·id="help-button"·tabindex="-1"><a·href="../../../help.html"·title="help">?</a></div><div·id="settings-menu"·tabindex="-1"><a·href="../../../settings.html"·title="settings"><img·width="22"·height="22"·alt="Change·settings"·src="../../../static.files/wheel-7b819b6101059cd0.svg"></a></div></form></nav><section·id="main-content"·class="content"><div·class="main-heading"><h1>Trait·<a·href="../../index.html">alloc</a>::<wbr><a·href="../index.html">str</a>::<wbr><a·href="index.html">pattern</a>::<wbr><a·class="trait"·href="#">Searcher</a><button·id="copy-path"·title="Copy·item·path·to·clipboard"><img·src="../../../static.files/clipboard-7571035ce49a181d.svg"·width="19"·height="18"·alt="Copy·item·path"></button></h1><span·class="out-of-band"><a·class="src"·href="../../../src/core/str/pattern.rs.html#197">source</a>···<button·id="toggle-all-docs"·title="collapse·all·docs">[<span>&#x2212;</span>]</button></span></div><pre·class="rust·item-decl"><code>pub·unsafe·trait·Searcher&lt;'a&gt;·{2 ····<main><div·class="width-limiter"><nav·class="sub"><form·class="search-form"><span></span><div·id="sidebar-button"·tabindex="-1"><a·href="../../../alloc/all.html"·title="show·sidebar"></a></div><input·class="search-input"·name="search"·aria-label="Run·search·in·the·documentation"·autocomplete="off"·spellcheck="false"·placeholder="Click·or·press·‘S’·to·search,·‘?’·for·more·options…"·type="search"><div·id="help-button"·tabindex="-1"><a·href="../../../help.html"·title="help">?</a></div><div·id="settings-menu"·tabindex="-1"><a·href="../../../settings.html"·title="settings"><img·width="22"·height="22"·alt="Change·settings"·src="../../../static.files/wheel-7b819b6101059cd0.svg"></a></div></form></nav><section·id="main-content"·class="content"><div·class="main-heading"><h1>Trait·<a·href="../../index.html">alloc</a>::<wbr><a·href="../index.html">str</a>::<wbr><a·href="index.html">pattern</a>::<wbr><a·class="trait"·href="#">Searcher</a><button·id="copy-path"·title="Copy·item·path·to·clipboard"><img·src="../../../static.files/clipboard-7571035ce49a181d.svg"·width="19"·height="18"·alt="Copy·item·path"></button></h1><span·class="out-of-band"><a·class="src"·href="https://doc.rust-lang.org/1.78.0/src/core/str/pattern.rs.html#197">source</a>···<button·id="toggle-all-docs"·title="collapse·all·docs">[<span>&#x2212;</span>]</button></span></div><pre·class="rust·item-decl"><code>pub·unsafe·trait·Searcher&lt;'a&gt;·{
3 ····//·Required·methods3 ····//·Required·methods
4 ····fn·<a·href="#tymethod.haystack"·class="fn">haystack</a>(&amp;self)·-&gt;·&amp;'a·<a·class="primitive"·href="../../../core/primitive.str.html">str</a>;4 ····fn·<a·href="#tymethod.haystack"·class="fn">haystack</a>(&amp;self)·-&gt;·&amp;'a·<a·class="primitive"·href="https://doc.rust-lang.org/1.78.0/core/primitive.str.html">str</a>;
5 <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 <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>;
  
6 ····//·Provided·methods6 ····//·Provided·methods
7 ····fn·<a·href="#method.next_match"·class="fn">next_match</a>(&amp;mut·self)·-&gt;·<a·class="enum"·href="../../../core/option/enum.Option.html"·title="enum·core::option::Option">Option</a>&lt;(<a·class="primitive"·href="../../../core/primitive.usize.html">usize</a>,·<a·class="primitive"·href="../../../core/primitive.usize.html">usize</a>)&gt;·{·...·}7 ····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.78.0/core/option/enum.Option.html"·title="enum·core::option::Option">Option</a>&lt;(<a·class="primitive"·href="https://doc.rust-lang.org/1.78.0/core/primitive.usize.html">usize</a>,·<a·class="primitive"·href="https://doc.rust-la[·...·truncated·by·diffoscope;·len:·13,·SHA:·a3944fe259f3b484f5d3705ce26f7af06ba821285552c373bd29bbce95a51354·...·]/core/primitive.usize.html">usize</a>)&gt;·{·...·}
8 <span·class="item-spacer"></span>····fn·<a·href="#method.next_reject"·class="fn">next_reject</a>(&amp;mut·self)·-&gt;·<a·class="enum"·href="../../../core/option/enum.Option.html"·title="enum·core::option::Option">Option</a>&lt;(<a·class="primitive"·href="../../../core/primitive.usize.html">usize</a>,·<a·class="primitive"·href="../../../core/primitive.usize.html">usize</a>)&gt;·{·...·}8 <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.78.0/core/option/enum.Option.html"·title="enum·core::option::Option">Option</a>&lt;(<a·class="primitive"·href="https://doc.rust-lang.org/1.78.0/core/primitive.usize.html">usize</a>,·<a·class="primitive"·href="https://doc.rust-la[·...·truncated·by·diffoscope;·len:·13,·SHA:·a3944fe259f3b484f5d3705ce26f7af06ba821285552c373bd29bbce95a51354·...·]/core/primitive.usize.html">usize</a>)&gt;·{·...·}
9 }</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 }</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>
10 <p>This·trait·provides·methods·for·searching·for·non-overlapping10 <p>This·trait·provides·methods·for·searching·for·non-overlapping
11 matches·of·a·pattern·starting·from·the·front·(left)·of·a·string.</p>11 matches·of·a·pattern·starting·from·the·front·(left)·of·a·string.</p>
12 <p>It·will·be·implemented·by·associated·<code>Searcher</code>12 <p>It·will·be·implemented·by·associated·<code>Searcher</code>
13 types·of·the·<a·href="trait.Pattern.html"·title="trait·alloc::str::pattern::Pattern"><code>Pattern</code></a>·trait.</p>13 types·of·the·<a·href="trait.Pattern.html"·title="trait·alloc::str::pattern::Pattern"><code>Pattern</code></a>·trait.</p>
14 <p>The·trait·is·marked·unsafe·because·the·indices·returned·by·the14 <p>The·trait·is·marked·unsafe·because·the·indices·returned·by·the
15 <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·utf815 <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
16 boundaries·in·the·haystack.·This·enables·consumers·of·this·trait·to16 boundaries·in·the·haystack.·This·enables·consumers·of·this·trait·to
17 slice·the·haystack·without·additional·runtime·checks.</p>17 slice·the·haystack·without·additional·runtime·checks.</p>
18 </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#201">source</a><h4·class="code-header">fn·<a·href="#tymethod.haystack"·class="fn">haystack</a>(&amp;self)·-&gt;·&amp;'a·<a·class="primitive"·href="../../../core/primitive.str.html">str</a></h4></section><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>pattern</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/27721">#27721</a>)</span></div></span></summary><div·class="docblock"><p>Getter·for·the·underlying·string·to·be·searched·in</p>18 </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.78.0/src/core/str/pattern.rs.html#201">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.78.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>
19 <p>Will·always·return·the·same·<a·href="../../../core/primitive.str.html"·title="primitive·str"><code>&amp;str</code></a>.</p>19 <p>Will·always·return·the·same·<a·href="https://doc.rust-lang.org/1.78.0/core/primitive.str.html"·title="primitive·str"><code>&amp;str</code></a>.</p>
20 </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#224">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 </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.78.0/src/core/str/pattern.rs.html#224">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>
21 <ul>21 <ul>
22 <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>·matches22 <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
23 the·pattern.</li>23 the·pattern.</li>
24 <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>·can24 <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
25 not·match·the·pattern,·even·partially.</li>25 not·match·the·pattern,·even·partially.</li>
26 <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·has26 <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
27 been·visited.</li>27 been·visited.</li>
Offset 33, 18 lines modifiedOffset 33, 18 lines modified
33 covering·the·whole·haystack,·and·laying·on·utf8·boundaries.</p>33 covering·the·whole·haystack,·and·laying·on·utf8·boundaries.</p>
34 <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·matched34 <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
35 pattern,·however·<a·href="enum.SearchStep.html#variant.Reject"·title="variant·alloc::str::pattern::SearchStep::Reject"><code>Reject</code></a>·results·may·be·split·up35 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
36 into·arbitrary·many·adjacent·fragments.·Both·ranges·may·have·zero·length.</p>36 into·arbitrary·many·adjacent·fragments.·Both·ranges·may·have·zero·length.</p>
37 <p>As·an·example,·the·pattern·<code>&quot;aaa&quot;</code>·and·the·haystack·<code>&quot;cbaaaaab&quot;</code>37 <p>As·an·example,·the·pattern·<code>&quot;aaa&quot;</code>·and·the·haystack·<code>&quot;cbaaaaab&quot;</code>
38 might·produce·the·stream38 might·produce·the·stream
39 <code>[Reject(0,·1),·Reject(1,·2),·Match(2,·5),·Reject(5,·8)]</code></p>39 <code>[Reject(0,·1),·Reject(1,·2),·Match(2,·5),·Reject(5,·8)]</code></p>
40 </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#233">source</a><h4·class="code-header">fn·<a·href="#method.next_match"·class="fn">next_match</a>(&amp;mut·self)·-&gt;·<a·class="enum"·href="../../../core/option/enum.Option.html"·title="enum·core::option::Option">Optio[·...·truncated·by·diffoscope;·len:·119,·SHA:·e90d4c1e4c238c253c7487007646324dfb009fda8f4831af44bca00044168196·...·]/core/primitive.usize.html">usize</a>)&gt;</h4></section><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>pattern</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/27721">#27721</a>)</span></div></span></summary><div·class="docblock"><p>Finds·the·next·<a·href="enum.SearchStep.html#variant.Match"·title="variant·alloc::str::pattern::SearchStep::Match"><code>Match</code></a>·result.·See·<a·href="trait.Searcher.html#tymethod.next"·title="method·alloc::str::pattern::Searcher::next"><code>next()</code></a>.</p>40 </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.78.0/src/core/str/pattern.rs.html#233">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.78.0/core/option/enum.Opti[·...·truncated·by·diffoscope;·len:·215,·SHA:·06d50e8fd00bd8fe37a426d888d515d950416f729e4a7ff1802d9c105f65f56c·...·]/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>
41 <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·ranges41 <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
42 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·return42 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
43 <code>(start_match,·end_match)</code>,·where·start_match·is·the·index·of·where43 <code>(start_match,·end_match)</code>,·where·start_match·is·the·index·of·where
44 the·match·begins,·and·end_match·is·the·index·after·the·end·of·the·match.</p>44 the·match·begins,·and·end_match·is·the·index·after·the·end·of·the·match.</p>
45 </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#249">source</a><h4·class="code-header">fn·<a·href="#method.next_reject"·class="fn">next_reject</a>(&amp;mut·self)·-&gt;·<a·class="enum"·href="../../../core/option/enum.Option.html"·title="enum·core::option::Option">Opt[·...·truncated·by·diffoscope;·len:·121,·SHA:·b91984ff610c78c894d92fe627e9a199d506888b8bfcdad41cdb58bf21a58d45·...·]/core/primitive.usize.html">usize</a>)&gt;</h4></section><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>pattern</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/27721">#27721</a>)</span></div></span></summary><div·class="docblock"><p>Finds·the·next·<a·href="enum.SearchStep.html#variant.Reject"·title="variant·alloc::str::pattern::SearchStep::Reject"><code>Reject</code></a>·result.·See·<a·href="trait.Searcher.html#tymethod.next"·title="method·alloc::str::pattern::Searcher::next"><code>next()</code></a>45 </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.78.0/src/core/str/pattern.rs.html#249">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.78.0/core/option/enum.Op[·...·truncated·by·diffoscope;·len:·217,·SHA:·57a2c860c31113769f3bf91050ab7fc2809457bbe0c47157a1bd630e67823dd3·...·]/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>
46 and·<a·href="trait.Searcher.html#method.next_match"·title="method·alloc::str::pattern::Searcher::next_match"><code>next_match()</code></a>.</p>46 and·<a·href="trait.Searcher.html#method.next_match"·title="method·alloc::str::pattern::Searcher::next_match"><code>next_match()</code></a>.</p>
47 <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·ranges47 <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
48 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 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>
49 </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#385">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:·f634d956dcc3088eb43c4811d037e785a30b9aa3115e69daef45a64e8da00f24·...·]/src/core/str/pattern.rs.html#898-900">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">where49 </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.78.0/src/core/str/pattern.rs.html#385">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:·234d00ff83e23ef64f79f810d3030dce9136fe2dcf6ac2615a06510cae51b705·...·]/src/core/str/pattern.rs.html#898-900">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
50 ····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:·2f0e4e51c747a983d339deb58ef988db29e2daba0b4d612333400d731f6afda0·...·]/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>50 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(<a·class="primitive"·href="https://doc.rust-lang.org/1.78.0/core/primitive.char.html">char</a>)·-&gt;·<a·class="primitive"·href="https:/[·...·truncated·by·diffoscope;·len:·462,·SHA:·cef9e02f4f0d984db12bc82cf5cd5db183405f86e3ae8a45d19f9a43cd9b57cc·...·]/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>
303 KB
./usr/share/doc/rust-web-doc/html/alloc/str/struct.Bytes.html
    
Offset 1, 205 lines modifiedOffset 1, 205 lines modified
1 <!DOCTYPE·html><html·lang="en"><head><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.write(`<link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/SourceSerif4-Regular-46f98efaafac5295.ttf.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/FiraSans-Regular-018c141bf0843ffd.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/FiraSans-Medium-8f9a781e4970d388.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/SourceCodePro-Regular-562dcc5011b6de7d.ttf.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/SourceCodePro-Semibold-d899c5a5c4aeb14a.ttf.woff2">`)</script><link·rel="stylesheet"·href="../../static.files/normalize-76eba96aa4d2e634.css"><link·rel="stylesheet"·href="../../static.files/rustdoc-35f9e32502181f1e.css"><meta·name="rustdoc-vars"·data-root-path="../../"·data-static-root-path="../../static.files/"·data-current-crate="alloc"·data-themes=""·data-resource-suffix="1.78.0"·data-rustdoc-version="1.78.0"·data-channel="1.78.0"·data-search-js="search-42d8da7a6b9792c2.js"·data-settings-js="settings-4313503d2e1961c2.js"·><script·src="../../static.files/storage-4c98445ec4002617.js"></script><script·defer·src="sidebar-items1.78.0.js"></script><script·defer·src="../../static.files/main-12cf3b4f4f9dc36d.js"></script><noscript><link·rel="stylesheet"·href="../../static.files/noscript-04d5337699b92874.css"></noscript><link·rel="alternate·icon"·type="image/png"·href="../../static.files/favicon-16x16-8b506e7a72182f1c.png"><link·rel="alternate·icon"·type="image/png"·href="../../static.files/favicon-32x32-422f7d1d52889060.png"><link·rel="icon"·type="image/svg+xml"·href="../../static.files/favicon-2c020d218678b618.svg"></head><body·class="rustdoc·struct"><!--[if·lte·IE·11]><div·class="warning">This·old·browser·is·unsupported·and·will·most·likely·display·funky·things.</div><![endif]--><nav·class="mobile-topbar"><button·class="sidebar-menu-toggle"·title="show·sidebar"></button><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-151179464ae7ed46.svg"·alt=""></a></nav><nav·class="sidebar"><div·class="sidebar-crate"><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-151179464ae7ed46.svg"·alt="logo"></a><h2><a·href="../../alloc/index.html">alloc</a><span·class="version">1.78.0</span></h2></div><h2·class="location"><a·href="#">Bytes</a></h2><div·class="sidebar-elems"><section><h3><a·href="#trait-implementations">Trait·Implementations</a></h3><ul·class="block·trait-implementation"><li><a·href="#impl-Clone-for-Bytes%3C'a%3E">Clone</a></li><li><a·href="#impl-Debug-for-Bytes%3C'a%3E">Debug</a></li><li><a·href="#impl-DoubleEndedIterator-for-Bytes%3C'_%3E">DoubleEndedIterator</a></li><li><a·href="#impl-ExactSizeIterator-for-Bytes%3C'_%3E">ExactSizeIterator</a></li><li><a·href="#impl-FusedIterator-for-Bytes%3C'_%3E">FusedIterator</a></li><li><a·href="#impl-Iterator-for-Bytes%3C'_%3E">Iterator</a></li><li><a·href="#impl-TrustedLen-for-Bytes%3C'_%3E">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">Freeze</a></li><li><a·href="#impl-RefUnwindSafe-for-Bytes%3C'a%3E">RefUnwindSafe</a></li><li><a·href="#impl-Send-for-Bytes%3C'a%3E">Send</a></li><li><a·href="#impl-Sync-for-Bytes%3C'a%3E">Sync</a></li><li><a·href="#impl-Unpin-for-Bytes%3C'a%3E">Unpin</a></li><li><a·href="#impl-UnwindSafe-for-Bytes%3C'a%3E">UnwindSafe</a></li></ul><h3><a·href="#blanket-implementations">Blanket·Implementations</a></h3><ul·class="block·blanket-implementation"><li><a·href="#impl-Any-for-T">Any</a></li><li><a·href="#impl-Borrow%3CT%3E-for-T">Borrow&lt;T&gt;</a></li><li><a·href="#impl-BorrowMut%3CT%3E-for-T">BorrowMut&lt;T&gt;</a></li><li><a·href="#impl-From%3CT%3E-for-T">From&lt;T&gt;</a></li><li><a·href="#impl-Into%3CU%3E-for-T">Into&lt;U&gt;</a></li><li><a·href="#impl-IntoIterator-for-I">IntoIterator</a></li><li><a·href="#impl-ToOwned-for-T">ToOwned</a></li><li><a·href="#impl-TryFrom%3CU%3E-for-T">TryFrom&lt;U&gt;</a></li><li><a·href="#impl-TryInto%3CU%3E-for-T">TryInto&lt;U&gt;</a></li></ul></section><h2><a·href="index.html">In·alloc::str</a></h2></div></nav><div·class="sidebar-resizer"></div>1 <!DOCTYPE·html><html·lang="en"><head><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.write(`<link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/SourceSerif4-Regular-46f98efaafac5295.ttf.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/FiraSans-Regular-018c141bf0843ffd.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/FiraSans-Medium-8f9a781e4970d388.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/SourceCodePro-Regular-562dcc5011b6de7d.ttf.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/SourceCodePro-Semibold-d899c5a5c4aeb14a.ttf.woff2">`)</script><link·rel="stylesheet"·href="../../static.files/normalize-76eba96aa4d2e634.css"><link·rel="stylesheet"·href="../../static.files/rustdoc-35f9e32502181f1e.css"><meta·name="rustdoc-vars"·data-root-path="../../"·data-static-root-path="../../static.files/"·data-current-crate="alloc"·data-themes=""·data-resource-suffix="1.78.0"·data-rustdoc-version="1.78.0"·data-channel="1.78.0"·data-search-js="search-42d8da7a6b9792c2.js"·data-settings-js="settings-4313503d2e1961c2.js"·><script·src="../../static.files/storage-4c98445ec4002617.js"></script><script·defer·src="sidebar-items1.78.0.js"></script><script·defer·src="../../static.files/main-12cf3b4f4f9dc36d.js"></script><noscript><link·rel="stylesheet"·href="../../static.files/noscript-04d5337699b92874.css"></noscript><link·rel="alternate·icon"·type="image/png"·href="../../static.files/favicon-16x16-8b506e7a72182f1c.png"><link·rel="alternate·icon"·type="image/png"·href="../../static.files/favicon-32x32-422f7d1d52889060.png"><link·rel="icon"·type="image/svg+xml"·href="../../static.files/favicon-2c020d218678b618.svg"></head><body·class="rustdoc·struct"><!--[if·lte·IE·11]><div·class="warning">This·old·browser·is·unsupported·and·will·most·likely·display·funky·things.</div><![endif]--><nav·class="mobile-topbar"><button·class="sidebar-menu-toggle"·title="show·sidebar"></button><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-151179464ae7ed46.svg"·alt=""></a></nav><nav·class="sidebar"><div·class="sidebar-crate"><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-151179464ae7ed46.svg"·alt="logo"></a><h2><a·href="../../alloc/index.html">alloc</a><span·class="version">1.78.0</span></h2></div><h2·class="location"><a·href="#">Bytes</a></h2><div·class="sidebar-elems"><section><h3><a·href="#trait-implementations">Trait·Implementations</a></h3><ul·class="block·trait-implementation"><li><a·href="#impl-Clone-for-Bytes%3C'a%3E">Clone</a></li><li><a·href="#impl-Debug-for-Bytes%3C'a%3E">Debug</a></li><li><a·href="#impl-DoubleEndedIterator-for-Bytes%3C'_%3E">DoubleEndedIterator</a></li><li><a·href="#impl-ExactSizeIterator-for-Bytes%3C'_%3E">ExactSizeIterator</a></li><li><a·href="#impl-FusedIterator-for-Bytes%3C'_%3E">FusedIterator</a></li><li><a·href="#impl-Iterator-for-Bytes%3C'_%3E">Iterator</a></li><li><a·href="#impl-TrustedLen-for-Bytes%3C'_%3E">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">Freeze</a></li><li><a·href="#impl-RefUnwindSafe-for-Bytes%3C'a%3E">RefUnwindSafe</a></li><li><a·href="#impl-Send-for-Bytes%3C'a%3E">Send</a></li><li><a·href="#impl-Sync-for-Bytes%3C'a%3E">Sync</a></li><li><a·href="#impl-Unpin-for-Bytes%3C'a%3E">Unpin</a></li><li><a·href="#impl-UnwindSafe-for-Bytes%3C'a%3E">UnwindSafe</a></li></ul><h3><a·href="#blanket-implementations">Blanket·Implementations</a></h3><ul·class="block·blanket-implementation"><li><a·href="#impl-Any-for-T">Any</a></li><li><a·href="#impl-Borrow%3CT%3E-for-T">Borrow&lt;T&gt;</a></li><li><a·href="#impl-BorrowMut%3CT%3E-for-T">BorrowMut&lt;T&gt;</a></li><li><a·href="#impl-From%3CT%3E-for-T">From&lt;T&gt;</a></li><li><a·href="#impl-Into%3CU%3E-for-T">Into&lt;U&gt;</a></li><li><a·href="#impl-IntoIterator-for-I">IntoIterator</a></li><li><a·href="#impl-ToOwned-for-T">ToOwned</a></li><li><a·href="#impl-TryFrom%3CU%3E-for-T">TryFrom&lt;U&gt;</a></li><li><a·href="#impl-TryInto%3CU%3E-for-T">TryInto&lt;U&gt;</a></li></ul></section><h2><a·href="index.html">In·alloc::str</a></h2></div></nav><div·class="sidebar-resizer"></div>
2 ····<main><div·class="width-limiter"><nav·class="sub"><form·class="search-form"><span></span><div·id="sidebar-button"·tabindex="-1"><a·href="../../alloc/all.html"·title="show·sidebar"></a></div><input·class="search-input"·name="search"·aria-label="Run·search·in·the·documentation"·autocomplete="off"·spellcheck="false"·placeholder="Click·or·press·‘S’·to·search,·‘?’·for·more·options…"·type="search"><div·id="help-button"·tabindex="-1"><a·href="../../help.html"·title="help">?</a></div><div·id="settings-menu"·tabindex="-1"><a·href="../../settings.html"·title="settings"><img·width="22"·height="22"·alt="Change·settings"·src="../../static.files/wheel-7b819b6101059cd0.svg"></a></div></form></nav><section·id="main-content"·class="content"><div·class="main-heading"><h1>Struct·<a·href="../index.html">alloc</a>::<wbr><a·href="index.html">str</a>::<wbr><a·class="struct"·href="#">Bytes</a><button·id="copy-path"·title="Copy·item·path·to·clipboard"><img·src="../../static.files/clipboard-7571035ce49a181d.svg"·width="19"·height="18"·alt="Copy·item·path"></button></h1><span·class="out-of-band"><span·class="since"·title="Stable·since·Rust·version·1.0.0">1.0.0</span>···<a·class="src"·href="../../src/core/str/iter.rs.html#279">source</a>···<button·id="toggle-all-docs"·title="collapse·all·docs">[<span>&#x2212;</span>]</button></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 ····<main><div·class="width-limiter"><nav·class="sub"><form·class="search-form"><span></span><div·id="sidebar-button"·tabindex="-1"><a·href="../../alloc/all.html"·title="show·sidebar"></a></div><input·class="search-input"·name="search"·aria-label="Run·search·in·the·documentation"·autocomplete="off"·spellcheck="false"·placeholder="Click·or·press·‘S’·to·search,·‘?’·for·more·options…"·type="search"><div·id="help-button"·tabindex="-1"><a·href="../../help.html"·title="help">?</a></div><div·id="settings-menu"·tabindex="-1"><a·href="../../settings.html"·title="settings"><img·width="22"·height="22"·alt="Change·settings"·src="../../static.files/wheel-7b819b6101059cd0.svg"></a></div></form></nav><section·id="main-content"·class="content"><div·class="main-heading"><h1>Struct·<a·href="../index.html">alloc</a>::<wbr><a·href="index.html">str</a>::<wbr><a·class="struct"·href="#">Bytes</a><button·id="copy-path"·title="Copy·item·path·to·clipboard"><img·src="../../static.files/clipboard-7571035ce49a181d.svg"·width="19"·height="18"·alt="Copy·item·path"></button></h1><span·class="out-of-band"><span·class="since"·title="Stable·since·Rust·version·1.0.0">1.0.0</span>···<a·class="src"·href="https://doc.rust-lang.org/1.78.0/src/core/str/iter.rs.html#279">source</a>···<button·id="toggle-all-docs"·title="collapse·all·docs">[<span>&#x2212;</span>]</button></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>
3 <p>This·struct·is·created·by·the·<a·href="../../core/primitive.str.html#method.bytes"·title="method·str::bytes"><code>bytes</code></a>·method·on·<a·href="../../core/primitive.str.html"·title="primitive·str"><code>str</code></a>.3 <p>This·struct·is·created·by·the·<a·href="https://doc.rust-lang.org/1.78.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.78.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="trait-implementations"·class="section-header">Trait·Implementations<a·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"><a·class="src·rightside"·href="../../src/core/str/iter.rs.html#278">source</a><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>·for·<a·cl[·...·truncated·by·diffoscope;·len:·6414,·SHA:·4e379e49bed87f8ddff19876ab2131f4315be677df34fb43c26ae3c0ab0293fe·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&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-Clone-for-Bytes%3C'a%3E"·class="impl"><a·class="src·rightside"·href="https://doc.rust-lang.org/1.78.0/src/core/str/iter.rs.html#278">source</a><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.78.0/core/clone/trait.Clone.html[·...·truncated·by·diffoscope;·len:·7278,·SHA:·d008849e644be817f036046a67c04f12c5745a950c26111bdc97fc3e139b05c7·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;<div·class="where">where
6 ····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:·8592bfb3a9919b5ca798c750f884aed56fb4d2df4faf5077c82b9e952220888a·...·]/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">where6 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.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:·c197552c886f4b0116d448ee51bb403a7762bc71f81af01591f16efa92ba2474·...·]/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
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.78.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;·R,8 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(B,·Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·R,
9 ····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·takes9 ····R:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.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.7[·...·truncated·by·diffoscope;·len:·3,·SHA:·7b1bd53949b752d143d871408483b5382371b5bc48d195d0c040ec93cfa2748b·...·]/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
10 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:·74b709f2c818a4eda5d85ea863eb2d8af72c87564dbab2746e67feafb0cbb9a3·...·]/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">where10 elements·starting·from·the·back·of·the·iterator.·<a·href="https://doc.rust-lang.org/1.78.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:·d66ed7e195a53e9945339ef1976aed455dcf80228d8e5b7b0c69a64c3983fea1·...·]/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
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.78.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;·B,</div></h4></section></summary><div·class='docblock'>An·iterator·method·that·reduces·the·iterator’s·elements·to·a·single,12 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(B,·Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/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 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"><a·c[·...·truncated·by·diffoscope;·len:·8066,·SHA:·bd4bd252df14dcf64b69c0e5e981aa843e0ffd1dfaaae1ee2c4c87b682659e5d·...·]/core/primitive.bool.html">bool</a><div·class="where">where13 final·value,·starting·from·the·back.·<a·href="https://doc.rust-lang.org/1.78.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:·9308,·SHA:·92bafcbdb688a8363617c31e5dad061ea5efdd143df9e7ab58c37fd8ef1a4f42·...·]/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:·963,·SHA:·7abd048114abebdbc527adbddfea798f5789eaa20192ccdeaea186f3363c5b5a·...·]/core/primitive.bool.html">bool</a><div·class="where">where14 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.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:·e556125dd1bdc6b96d0c796ac5589504ce61ab807cde3f8ef520c6d6e0c4bf13·...·]/core/primitive.bool.html">bool</a><div·class="where">where
15 ····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:·b846bbaf71d8d455e494795b512392600b4a4dc2ef414f1e12452ea1d369369b·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;<div·class="where">where15 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.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:·7ead7ac3e90da872563126b8ab3ec78624521394df66acb8ffd1805f8ca8b462·...·]/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 ····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:·00feb5ca097307bdf800b147bb1085459cc9942d532a328824549e158507b7e7·...·]/core/primitive.usize.html">usize</a>&gt;<div·class="where">where16 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.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:·ac990a8f2840aa9cb0339844d6a7eadca05f75779a43624e4861ad4b46e80223·...·]/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:·1107,·SHA:·78ace6f2212e92a1a4bfe0231bb1a4e6758273bbd9f35205401cb07a991fd09d·...·]/core/primitive.usize.html">usize</a>&gt;<div·class="where">where17 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.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:·780d6231e7916b6995a9349beb8e9b77d8f428aa27f15786661a4fe2e5502776·...·]/core/primitive.usize.html">usize</a>&gt;<div·class="where">where
18 ····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·its18 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.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:·35635866834068982939a2e2d5e958915f98692dc34f78be72e83b9bfe21e8ba·...·]/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
19 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:·f55cf001be6747df355962568fb2caddc3b8888ec384cd3ca001da9156b00581·...·]/core/primitive.usize.html">usize</a>&gt;(19 index.·<a·href="https://doc.rust-lang.org/1.78.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:·55e7dca583f740d7f50813f0feb103ec7f1c67aff5cd360d4bf10bb3d552d96b·...·]/core/primitive.usize.html">usize</a>&gt;(
20 ····&amp;mut·self20 ····&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.78.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.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title=[·...·truncated·by·diffoscope;·len:·381,·SHA:·88c48923c9b7ea5cc47c1087c60e09656e81d4671c58071ba2bef826335388bc·...·]/core/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:·2219,·SHA:·35097ac20cb94a94d329a7511e21173c3e63fd8ce0a6d69b63b12136ae10fe6d·...·]/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.78.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></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:·3b082a2bc331439bfa16e12f26774fc7db23f44625156e2161c751eb349fb5c0·...·]/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.78.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"><a·class="src·rightside"·href="../../src/core/iter/tra[·...·truncated·by·diffoscope;·len:·584,·SHA:·fd3e570373eb5121d35d7e22cdd5dd5fbf7183ee80147135a591fd1285174e82·...·]/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.78.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"><a·class="src·rightside"·hr[·...·truncated·by·diffoscope;·len:·746,·SHA:·f1f70d650c102c8658e13890c7dbfc87418f07e7b522246fb579ec434ef64f7c·...·]/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.78.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:·1017,·SHA:·c0f5f8cfd297e1678ac0ee2fd847fb6f0577665ac326e8e2e9d6414a710c8f98·...·]/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.78.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.78.0/core/iter/traits/it[·...·truncated·by·diffoscope;·len:·1233,·SHA:·f677df2d893dfe0dc1a9d31ebb0ba71a346d265781813e0d664d3f18369b6163·...·]/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.78.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:·c1b5e692e89c9c809075ee8ee72fb15a9ec46c075b08450e1f707d672a224750·...·]/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.78.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:·98627729f77dcf1c9d258f343354ba600b7134c6b3929080f231e8de7155b70b·...·]/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.78.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.78.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.78.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"><a·class="src·rightside"·href="../../src/core/i[·...·truncated·by·diffoscope;·len:·267,·SHA:·1764c9d6d2e39e1367ae2111c28ab846e66ecf12617fbff35e0132e82e5c8b13·...·]/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.78.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"><a·class="src·rights[·...·truncated·by·diffoscope;·len:·375,·SHA:·58419346f92e1709dadb70cc3cf356e3cd27972451bdc6b4fc4267e6f7e8bdae·...·]/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.78.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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::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:·fb4c9589a16c7b6d697c109d1193d2f1e763e5dd967101c2fd92b32416972229·...·]/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.78.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:·98f6effefa44d759c249143d83623f0055d937382bfc398b7e1f5e92cd413657·...·]/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.78.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:·658,·SHA:·e4449b6c00d036dd30444817045eddaf2697443d65789bb5c0b585ed1bc77702·...·]/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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·820,·SHA:·a664bbcbc0891663662e4eb7b4394d0fcd72e568136fc4d34097fea242cc32e7·...·]/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.78.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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·140,·SHA:·752f473b57e7444ebfddf5ea7fd40a332e83ec55524a6c31b5ee0f82a5dea819·...·]/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"><a·class="src·rightside"·href="../../src/core/iter[·...·truncated·by·diffoscope;·len:·285,·SHA:·738ce0440ff568829f40d141e38e2c0da2fd05d2b73d1a574be0ed9baa32e827·...·]/core/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.78.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"><a·class="src·rightside[·...·truncated·by·diffoscope;·len:·393,·SHA:·2e2aa7c9c9c087e7b346da376749064ab8c1894795a2f0a0f646cdc8c7bea997·...·]/core/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.78.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:·767,·SHA:·da0fc5bc95a3398627e0c5836423b719ccea45d351e21ddaa96f793f67f9c6de·...·]/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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·956,·SHA:·faba0521e870dbbd26d466fadba3522e7d29013a9b86376fffafffac11a57e0e·...·]/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.78.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"><a·class="src·rightside"·href="../../src/core/ite[·...·truncated·by·diffoscope;·len:·264,·SHA:·e3fa7ab43c6353bc2216a22d7010c41a8ab50d273a128d15d0eff050c058993a·...·]/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.78.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"><a·class="src·rightsid[·...·truncated·by·diffoscope;·len:·372,·SHA:·03eea0861575eb80d3f7a87a3ba747adb1a33fe7e9ce72aa2172e7a287c63a94·...·]/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.78.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.78.0/core/iter/adapte[·...·truncated·by·diffoscope;·len:·175,·SHA:·16fe7225bf05b478e2828b347c3d23ded9a22f89d8887a2c65d9f7b3faf1b0e7·...·]/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"><a·class="src·rightside"·href="../../src/core/it[·...·truncated·by·diffoscope;·len:·294,·SHA:·c0aee2077af6a4f81ed47e37c84a75b5f9b941875509fbe0b3d352866f825f45·...·]/core/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.78.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"><a·class="src·rightsi[·...·truncated·by·diffoscope;·len:·402,·SHA:·7689a974f800fd069d1b4453ef62d6d6ad1b654462d624d36e3672051d502030·...·]/core/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.78.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:·922,·SHA:·5220bbb4db3c3cd3d7ca7c27520f44f04fe367ee2f0f407fb1d50c0a327a2f99·...·]/core/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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·1138,·SHA:·f6ae06b7de8e94df014341c5cf589a5e4a1298367b2ef7a968ec499c5170a70e·...·]/core/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.78.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:·39eeddf219b211245393e51a591d5064c740fa9be49d88883d8a6474679741ad·...·]/core/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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·1058,·SHA:·b390dbdda8d7e93604b5ecd906a93efd03fe19bdaf41cf12893fd361bf974307·...·]/core/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.78.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:·851,·SHA:·ad2e090d21a034b7c3836ed38a686f4c483f9a929132fef846d48271f749a79c·...·]/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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·1067,·SHA:·415d32e1211c35d3bb405de1d6e51c2102c14cadc3333894f063148dbe0b1f69·...·]/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:·525,·SHA:·6471f48fecadc56edf21fc04794b884b96ce06d339c715e410f5a906e028bc28·...·]/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.78.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:·687,·SHA:·7f5256104c35c5948a2cb42b55f3048c9d2887e48a4a8226537a284f959c562a·...·]/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.78.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"><a·class="src·rightside"·href="../../src/core/iter/traits/[·...·truncated·by·diffoscope;·len:·284,·SHA:·aee83f38f8c40848e159b12a8faa43b9dadf589fe974632a1f15ce2a15834071·...·]/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.78.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"><a·class="src·rightside"·href="[·...·truncated·by·diffoscope;·len:·392,·SHA:·4e7da68f7be2622ef173653eca78d58e1f202b544a2e6abd14d8335c298c93a7·...·]/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.78.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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(<a·class="primitive"·href="https://doc.rust-lang.org/1.78.0/core/primitive.reference.html">&amp;mut·St</a>,·Self::<a·class="associatedty[·...·truncated·by·diffoscope;·len:·449,·SHA:·f12c268a8a8111b9e7126ad78bf5523a63733caa63d187c4fe792309ea41acdf·...·]/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:·459,·SHA:·b825570d9672670eacd8828b3abec12cd1c35433286857de28f5ea8d5e300e03·...·]/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.78.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.78.0/core/iter/trai[·...·truncated·by·diffoscope;·len:·594,·SHA:·02960742fa7892efaa08f289ce85865fc5efb6a4cd138c22e3566ca6fc727d78·...·]/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.78.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.78.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:·9b6a337a3ad68c2a987b52450c153f87a04a8ed9e83603d26077fe6e70d61edf·...·]/core/iter/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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·976,·SHA:·2a9182f6fe88e0b8a9b1ae1f46cace940cc0b8736033c354c0f0ccbf1c196e7a·...·]/core/iter/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.78.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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;[Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtyp[·...·truncated·by·diffoscope;·len:·135,·SHA:·0b06a6094d42ccbc8bce5b01c4383961fe7f1967f05e4c9f1ff33e71e425fb26·...·]/core/primitive.array.html">N</a>])·-&gt;·R,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iter_map_windows</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/87155">#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.78.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"><a·class="src·rightside"·href="../../src/core/iter/[·...·truncated·by·diffoscope;·len:·250,·SHA:·e355ddd0f04b2470ee915aec3ad97857be56b95e6a1f3d733d6c477453f4cf0d·...·]/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.78.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"><a·class="src·rightside"[·...·truncated·by·diffoscope;·len:·358,·SHA:·d91b2ab18e0ce069e262cf523c6ef961f56eecad042ea1e9bcefe33cff28fc8f·...·]/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:·583,·SHA:·b7d7d6125e8980756a2636a6b6e01600057c98a027dcf7d267b1f61538a7b6b0·...·]/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.78.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.78.0/core/op[·...·truncated·by·diffoscope;·len:·745,·SHA:·424783f22102f4446d3ad4d362b1aafdb7531fa777213f97ee138aa878f67bd1·...·]/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.78.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:·676,·SHA:·ae75f35cafbae1e0e695226baca09b0bec6e4a0ed5656a83c3357b29fb00442d·...·]/core/primitive.reference.html">&amp;mut·Self</a><div·class="where">where68 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·838,·SHA:·9b4fd8df7f41e9a76fd4cfca0a233b74b9bd27c3fe8228248abc3f940425a3e3·...·]/core/primitive.reference.html">&amp;mut·Self</a><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:·319,·SHA:·bbb653fcb1f5ad46e04905bf78a76b9dd63ea5d49a2d8cd5b7b36efbb0f7e105·...·]/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.78.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.78.0/core/it[·...·truncated·by·diffoscope;·len:·427,·SHA:·ecfaaac5d1d10c1bc4fcee9a050af0a268bee0b528c2d8ea4e9774440bd8a279·...·]/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.78.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.78.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:·e5d524e874326d0b9b733f5ee809c6595cde869afab0cc3d4ba8454093f420da·...·]/core/primitive.reference.html">&amp;mut·E</a><div·class="where">where71 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.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.78.0/core/iter/tr[·...·truncated·by·diffoscope;·len:·728,·SHA:·01937c2dc314c259495665570ae249c94b4a5b0719718f5f1188e6fc64ecf487·...·]/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.78.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.78.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:·744,·SHA:·a7446142ab67c3f20d866315fbe6cb9c57cd4af012812d6dd19d5061aee6e97b·...·]/core/primitive.tuple.html">(B,·B)</a><div·class="where">where73 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experiment[·...·truncated·by·diffoscope;·len:·879,·SHA:·e773b2222c92d001e295030cb47a780ab0c1132d7fc8e9e3a98de4f532e6c520·...·]/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.78.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.78.0/core/default/trait.Default.html"·title="trait·core::default::Default">Default</a>·+·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/collect/trait.Extend.html"·title="trait·core::iter::traits::collec[·...·truncated·by·diffoscope;·len:·95,·SHA:·8b3be1d0042cae0550f865faf5849221240bdf04eb1b2107605b72d48c3ad29c·...·]/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:·5a1bcc1ddfc5fccf50d61bf2b8879dae247aa12c0b23ba2f437fd2a345cabac7·...·]/core/primitive.usize.html">usize</a><div·class="where">where76 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·995,·SHA:·bec3765fdab56713186e2454cd84738b5b28e3280a2f3d5a25cefdbc3089b520·...·]/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.78.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>·+·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/double_ended/trait.DoubleEndedIterator.html"·title="trait·core::iter::trai[·...·truncated·by·diffoscope;·len:·132,·SHA:·e5b2cf5f56946ede1e190ed09879c5821e2de04cf8e5d145142eeb40c6340982·...·]/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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(<a·class="primitive"·href="https://doc.rust-lang.org/1.78.0/core/primitive.reference.html">&amp;T</a>)·-&gt;·<a·class="primitive"·href="[·...·truncated·by·diffoscope;·len:·32,·SHA:·63d052a8ced32bf927ffadd7e884c08caf4970e85dfdf6be0e568d49b174da96·...·]/core/primitive.bool.html">bool</a>,</div></h4></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:·97056c44eac6a0f986fb2c8edec37302cc06edf44a6c6f7153a5d8623d8d6c0d·...·]/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.78.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:·0c224636c18baa273f69de21f90083317f2ea0b7367a3f0d0f1c0ace55a36f79·...·]/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.78.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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·135,·SHA:·51ff5f5c7ebd8440623ea71b125c5a5837e809e308fe1a13fbe19cddb941dbd9·...·]/core/primitive.bool.html">bool</a>,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iter_is_partitioned</code>&nbsp;<a·href="https://github.com/rust-lang/rust/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:·6f406a351b93047f56fa70265a6bf28ec6874f75cd6cc5a39d51c7af462f2992·...·]/core/iter/traits/iterator/trait.Iterator.html#method.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.78.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:·2c74873f4e5ba70004a1c7edd1cc3f9e2d91271295dd1591e2d26848df4c02ba·...·]/core/iter/traits/iterator/trait.Iterator.html#method.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.78.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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(B,·Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.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.78.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:·eecdce021399d206eb3ef5af12ee7663b4eb0dca55b0f411c7fa66f605b6b2e2·...·]/core/iter/traits/iterator/trait.Iterator.html#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.78.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:·52912e82c4b0a760d06f77eb4ee3a59ba70dd76cb532954900c73ae94c652674·...·]/core/iter/traits/iterator/trait.Iterator.html#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.78.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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.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.78.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.78.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"><a·class="src·rightside"·href="../../src/core/iter[·...·truncated·by·diffoscope;·len:·130,·SHA:·75c0150024fe6cdc702d7337508ab57600248490dd062768204ddb064c9a1b8b·...·]/core/iter/traits/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.78.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"><a·class="src·rightside[·...·truncated·by·diffoscope;·len:·211,·SHA:·924e062acd8127e8d6158162219ee5d57a941854e14063d21d7768edae549431·...·]/core/iter/traits/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.78.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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(B,·Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::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:·dbe3a08fe63abd47570741e71208c31aaf51152feac5917db07665a1f56bb3e3·...·]/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.78.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:·b60215068a6d9721be05f81098c51167d7138c4042f140cad42f77c4df43f597·...·]/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.78.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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·352,·SHA:·e7c3c296abe2c0a183967153e4ae7fd50bafa2ae7088e3e78b3b48fee253adc6·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::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:·a9dce8bb557b5a11426bf2ffcbd5eea7c6c870833e3ee5bb072dcaaa11687b0c·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_reduce"·class="fn">try_reduce</a>&lt;F,·R&gt;(98 operation.·<a·href="https://doc.rust-lang.org/1.78.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:·7a18fdd041b1a001b4a8feb289ee127fd9240232239269eb35dc3b8f74783ec9·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_reduce"·class="fn">try_reduce</a>&lt;F,·R&gt;(
99 ····&amp;mut·self,99 ····&amp;mut·self,
100 ····f:·F100 ····f:·F
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.78.0/core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&gt;::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/ops/try_trait/trait.Try.html#associatedtype.Residual"·title="type[·...·truncated·by·diffoscope;·len:·754,·SHA:·6fb4dfdb6b4da68921c1e7f8b75d99cf293d58318d684a840254ce9576957bea·...·]/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.78.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:·59,·SHA:·3d53eece7c48858eda31192ab2620ae144896b35400c945bbf3eb5dc06bf8d12·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·R,103 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·140,·SHA:·c27972e6fa3464c9476eaa185e8657edb6bb294f148403f3d079285294a9f909·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·R,
104 ····R:·<a·class="trait"·href="../../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.78.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.78.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.78.0/core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&gt;::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/ops/try_trait/trait.Try.html#associatedtype.Residual"·title="type[·...·truncated·by·diffoscope;·len:·412,·SHA:·22b8cbb007e5cce82b9d13a65bfa56aa8d83c32541fac25f4d9b3857b0540908·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;&gt;,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iterator_try_reduce</code>&nbsp;<a·href="https://github.com/rust-lang/rust/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.find_map"·class="method·trait-impl"><span·class="rightside"><span·class="since"·titl[·...·truncated·by·diffoscope;·len:·388,·SHA:·6c589b2c36c169fd600740eb17cf89b9e4453d5831982937ae3dc53159c04fe1·...·]/core/option/enum.Option.html"·title="enum·core::option::Option">Option</a>&lt;B&gt;<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.78.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:·7d18bece52d1a9bcc55e133f22864935786a87ef70c0d5e0c16b796872103ab6·...·]/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.78.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:·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·returns108 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·130,·SHA:·130a13019dc175d02304b4f550157e2f13ac15c2f25a979c74161d10b146ab89·...·]/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/core/iter[·...·truncated·by·diffoscope;·len:·134,·SHA:·ac4da3337aac1ec10038e246be9cb719eeb5af1acc709f5a6a25b91900c56f53·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_find"·class="fn">try_find</a>&lt;F,·R&gt;(109 the·first·non-none·result.·<a·href="https://doc.rust-lang.org/1.78.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:·8ced1b10e78750774c5c8ed995ed83dcd13983aa75d329acf8069da106ab9f4a·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_find"·class="fn">try_find</a>&lt;F,·R&gt;(
110 ····&amp;mut·self,110 ····&amp;mut·self,
111 ····f:·F111 ····f:·F
112 )·-&gt;·&lt;&lt;R·as·<a·class="trait"·href="../../core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&gt;::<a·class="associatedtype"·href="../../core/ops/try_trait/trait.Try.html#associatedtype.Residual"·title="type·core::ops::try_trait::Try::Residual">Residual</a>·as·[·...·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">where112 )·-&gt;·&lt;&lt;R·as·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&gt;::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/ops/try_trait/trait.Try.html#associatedtype.Residual"·title="type[·...·truncated·by·diffoscope;·len:·626,·SHA:·95f9831257b68862cbcbf54f0ad2ff4e597a4c9f763112d1da8a0897dadcf872·...·]/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.78.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::Iterator::Item">Item</a>)·-&gt;·R,114 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·R,
115 ····R:·<a·class="trait"·href="../../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.78.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.78.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.78.0/core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&gt;::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/ops/try_trait/trait.Try.html#associatedtype.Residual"·title="type[·...·truncated·by·diffoscope;·len:·412,·SHA:·22b8cbb007e5cce82b9d13a65bfa56aa8d83c32541fac25f4d9b3857b0540908·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;&gt;,</div></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.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">where117 the·first·true·result·or·the·first·error.·<a·href="https://doc.rust-lang.org/1.78.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:·fc7f4c266da3fd5207562199806a8a878f1abd3248aed8b137fdfa5bb4cb8d4a·...·]/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.78.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.78.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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/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.78.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:·0367b1bacc0a7d8e05f1c5181f8c4ea428f3f11edbae0e76811f3ef1d4925e41·...·]/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.78.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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·346,·SHA:·7113e4c2d65a123253bb18971efdc2d49241cfc2dd4c2b18e4cfa4e4d7d4140f·...·]/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.78.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:·db89d4cca0becf2a4ab904adac2870de6fd83cfad5131f5a1431a67766274f81·...·]/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.78.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.78.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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/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; 83561/309663 bytes (26.98%) of diff not shown.
298 KB
./usr/share/doc/rust-web-doc/html/alloc/str/struct.CharIndices.html
    
Offset 1, 225 lines modifiedOffset 1, 225 lines modified
1 <!DOCTYPE·html><html·lang="en"><head><meta·charset="utf-8"><meta·name="viewport"·content="width=device-width,·initial-scale=1.0"><meta·name="generator"·content="rustdoc"><meta·name="description"·content="An·iterator·over·the·`char`s·of·a·string·slice,·and·their·positions."><title>CharIndices·in·alloc::str·-·Rust</title><script>·if·(window.location.protocol·!==·"file:")·document.write(`<link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/SourceSerif4-Regular-46f98efaafac5295.ttf.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/FiraSans-Regular-018c141bf0843ffd.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/FiraSans-Medium-8f9a781e4970d388.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/SourceCodePro-Regular-562dcc5011b6de7d.ttf.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/SourceCodePro-Semibold-d899c5a5c4aeb14a.ttf.woff2">`)</script><link·rel="stylesheet"·href="../../static.files/normalize-76eba96aa4d2e634.css"><link·rel="stylesheet"·href="../../static.files/rustdoc-35f9e32502181f1e.css"><meta·name="rustdoc-vars"·data-root-path="../../"·data-static-root-path="../../static.files/"·data-current-crate="alloc"·data-themes=""·data-resource-suffix="1.78.0"·data-rustdoc-version="1.78.0"·data-channel="1.78.0"·data-search-js="search-42d8da7a6b9792c2.js"·data-settings-js="settings-4313503d2e1961c2.js"·><script·src="../../static.files/storage-4c98445ec4002617.js"></script><script·defer·src="sidebar-items1.78.0.js"></script><script·defer·src="../../static.files/main-12cf3b4f4f9dc36d.js"></script><noscript><link·rel="stylesheet"·href="../../static.files/noscript-04d5337699b92874.css"></noscript><link·rel="alternate·icon"·type="image/png"·href="../../static.files/favicon-16x16-8b506e7a72182f1c.png"><link·rel="alternate·icon"·type="image/png"·href="../../static.files/favicon-32x32-422f7d1d52889060.png"><link·rel="icon"·type="image/svg+xml"·href="../../static.files/favicon-2c020d218678b618.svg"></head><body·class="rustdoc·struct"><!--[if·lte·IE·11]><div·class="warning">This·old·browser·is·unsupported·and·will·most·likely·display·funky·things.</div><![endif]--><nav·class="mobile-topbar"><button·class="sidebar-menu-toggle"·title="show·sidebar"></button><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-151179464ae7ed46.svg"·alt=""></a></nav><nav·class="sidebar"><div·class="sidebar-crate"><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-151179464ae7ed46.svg"·alt="logo"></a><h2><a·href="../../alloc/index.html">alloc</a><span·class="version">1.78.0</span></h2></div><h2·class="location"><a·href="#">CharIndices</a></h2><div·class="sidebar-elems"><section><h3><a·href="#implementations">Methods</a></h3><ul·class="block·method"><li><a·href="#method.as_str">as_str</a></li><li><a·href="#method.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">Clone</a></li><li><a·href="#impl-Debug-for-CharIndices%3C'a%3E">Debug</a></li><li><a·href="#impl-DoubleEndedIterator-for-CharIndices%3C'a%3E">DoubleEndedIterator</a></li><li><a·href="#impl-FusedIterator-for-CharIndices%3C'_%3E">FusedIterator</a></li><li><a·href="#impl-Iterator-for-CharIndices%3C'a%3E">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">Freeze</a></li><li><a·href="#impl-RefUnwindSafe-for-CharIndices%3C'a%3E">RefUnwindSafe</a></li><li><a·href="#impl-Send-for-CharIndices%3C'a%3E">Send</a></li><li><a·href="#impl-Sync-for-CharIndices%3C'a%3E">Sync</a></li><li><a·href="#impl-Unpin-for-CharIndices%3C'a%3E">Unpin</a></li><li><a·href="#impl-UnwindSafe-for-CharIndices%3C'a%3E">UnwindSafe</a></li></ul><h3><a·href="#blanket-implementations">Blanket·Implementations</a></h3><ul·class="block·blanket-implementation"><li><a·href="#impl-Any-for-T">Any</a></li><li><a·href="#impl-Borrow%3CT%3E-for-T">Borrow&lt;T&gt;</a></li><li><a·href="#impl-BorrowMut%3CT%3E-for-T">BorrowMut&lt;T&gt;</a></li><li><a·href="#impl-From%3CT%3E-for-T">From&lt;T&gt;</a></li><li><a·href="#impl-Into%3CU%3E-for-T">Into&lt;U&gt;</a></li><li><a·href="#impl-IntoIterator-for-I">IntoIterator</a></li><li><a·href="#impl-ToOwned-for-T">ToOwned</a></li><li><a·href="#impl-TryFrom%3CU%3E-for-T">TryFrom&lt;U&gt;</a></li><li><a·href="#impl-TryInto%3CU%3E-for-T">TryInto&lt;U&gt;</a></li></ul></section><h2><a·href="index.html">In·alloc::str</a></h2></div></nav><div·class="sidebar-resizer"></div>1 <!DOCTYPE·html><html·lang="en"><head><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.write(`<link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/SourceSerif4-Regular-46f98efaafac5295.ttf.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/FiraSans-Regular-018c141bf0843ffd.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/FiraSans-Medium-8f9a781e4970d388.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/SourceCodePro-Regular-562dcc5011b6de7d.ttf.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/SourceCodePro-Semibold-d899c5a5c4aeb14a.ttf.woff2">`)</script><link·rel="stylesheet"·href="../../static.files/normalize-76eba96aa4d2e634.css"><link·rel="stylesheet"·href="../../static.files/rustdoc-35f9e32502181f1e.css"><meta·name="rustdoc-vars"·data-root-path="../../"·data-static-root-path="../../static.files/"·data-current-crate="alloc"·data-themes=""·data-resource-suffix="1.78.0"·data-rustdoc-version="1.78.0"·data-channel="1.78.0"·data-search-js="search-42d8da7a6b9792c2.js"·data-settings-js="settings-4313503d2e1961c2.js"·><script·src="../../static.files/storage-4c98445ec4002617.js"></script><script·defer·src="sidebar-items1.78.0.js"></script><script·defer·src="../../static.files/main-12cf3b4f4f9dc36d.js"></script><noscript><link·rel="stylesheet"·href="../../static.files/noscript-04d5337699b92874.css"></noscript><link·rel="alternate·icon"·type="image/png"·href="../../static.files/favicon-16x16-8b506e7a72182f1c.png"><link·rel="alternate·icon"·type="image/png"·href="../../static.files/favicon-32x32-422f7d1d52889060.png"><link·rel="icon"·type="image/svg+xml"·href="../../static.files/favicon-2c020d218678b618.svg"></head><body·class="rustdoc·struct"><!--[if·lte·IE·11]><div·class="warning">This·old·browser·is·unsupported·and·will·most·likely·display·funky·things.</div><![endif]--><nav·class="mobile-topbar"><button·class="sidebar-menu-toggle"·title="show·sidebar"></button><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-151179464ae7ed46.svg"·alt=""></a></nav><nav·class="sidebar"><div·class="sidebar-crate"><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-151179464ae7ed46.svg"·alt="logo"></a><h2><a·href="../../alloc/index.html">alloc</a><span·class="version">1.78.0</span></h2></div><h2·class="location"><a·href="#">CharIndices</a></h2><div·class="sidebar-elems"><section><h3><a·href="#implementations">Methods</a></h3><ul·class="block·method"><li><a·href="#method.as_str">as_str</a></li><li><a·href="#method.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">Clone</a></li><li><a·href="#impl-Debug-for-CharIndices%3C'a%3E">Debug</a></li><li><a·href="#impl-DoubleEndedIterator-for-CharIndices%3C'a%3E">DoubleEndedIterator</a></li><li><a·href="#impl-FusedIterator-for-CharIndices%3C'_%3E">FusedIterator</a></li><li><a·href="#impl-Iterator-for-CharIndices%3C'a%3E">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">Freeze</a></li><li><a·href="#impl-RefUnwindSafe-for-CharIndices%3C'a%3E">RefUnwindSafe</a></li><li><a·href="#impl-Send-for-CharIndices%3C'a%3E">Send</a></li><li><a·href="#impl-Sync-for-CharIndices%3C'a%3E">Sync</a></li><li><a·href="#impl-Unpin-for-CharIndices%3C'a%3E">Unpin</a></li><li><a·href="#impl-UnwindSafe-for-CharIndices%3C'a%3E">UnwindSafe</a></li></ul><h3><a·href="#blanket-implementations">Blanket·Implementations</a></h3><ul·class="block·blanket-implementation"><li><a·href="#impl-Any-for-T">Any</a></li><li><a·href="#impl-Borrow%3CT%3E-for-T">Borrow&lt;T&gt;</a></li><li><a·href="#impl-BorrowMut%3CT%3E-for-T">BorrowMut&lt;T&gt;</a></li><li><a·href="#impl-From%3CT%3E-for-T">From&lt;T&gt;</a></li><li><a·href="#impl-Into%3CU%3E-for-T">Into&lt;U&gt;</a></li><li><a·href="#impl-IntoIterator-for-I">IntoIterator</a></li><li><a·href="#impl-ToOwned-for-T">ToOwned</a></li><li><a·href="#impl-TryFrom%3CU%3E-for-T">TryFrom&lt;U&gt;</a></li><li><a·href="#impl-TryInto%3CU%3E-for-T">TryInto&lt;U&gt;</a></li></ul></section><h2><a·href="index.html">In·alloc::str</a></h2></div></nav><div·class="sidebar-resizer"></div>
2 ····<main><div·class="width-limiter"><nav·class="sub"><form·class="search-form"><span></span><div·id="sidebar-button"·tabindex="-1"><a·href="../../alloc/all.html"·title="show·sidebar"></a></div><input·class="search-input"·name="search"·aria-label="Run·search·in·the·documentation"·autocomplete="off"·spellcheck="false"·placeholder="Click·or·press·‘S’·to·search,·‘?’·for·more·options…"·type="search"><div·id="help-button"·tabindex="-1"><a·href="../../help.html"·title="help">?</a></div><div·id="settings-menu"·tabindex="-1"><a·href="../../settings.html"·title="settings"><img·width="22"·height="22"·alt="Change·settings"·src="../../static.files/wheel-7b819b6101059cd0.svg"></a></div></form></nav><section·id="main-content"·class="content"><div·class="main-heading"><h1>Struct·<a·href="../index.html">alloc</a>::<wbr><a·href="index.html">str</a>::<wbr><a·class="struct"·href="#">CharIndices</a><button·id="copy-path"·title="Copy·item·path·to·clipboard"><img·src="../../static.files/clipboard-7571035ce49a181d.svg"·width="19"·height="18"·alt="Copy·item·path"></button></h1><span·class="out-of-band"><span·class="since"·title="Stable·since·Rust·version·1.0.0">1.0.0</span>···<a·class="src"·href="../../src/core/str/iter.rs.html#178">source</a>···<button·id="toggle-all-docs"·title="collapse·all·docs">[<span>&#x2212;</span>]</button></span></div><pre·class="rust·item-decl"><code>pub·struct·CharIndices&lt;'a&gt;·{·<span·class="comment">/*·private·fiel[·...·truncated·by·diffoscope;·len:·189,·SHA:·c9590cc32604826afa243c77a309d0d115715db07ad366457cb575899debe7ed·...·]/core/primitive.char.html"·title="primitive·char"><code>char</code></a>s·of·a·string·slice,·and·their·positions.</p>2 ····<main><div·class="width-limiter"><nav·class="sub"><form·class="search-form"><span></span><div·id="sidebar-button"·tabindex="-1"><a·href="../../alloc/all.html"·title="show·sidebar"></a></div><input·class="search-input"·name="search"·aria-label="Run·search·in·the·documentation"·autocomplete="off"·spellcheck="false"·placeholder="Click·or·press·‘S’·to·search,·‘?’·for·more·options…"·type="search"><div·id="help-button"·tabindex="-1"><a·href="../../help.html"·title="help">?</a></div><div·id="settings-menu"·tabindex="-1"><a·href="../../settings.html"·title="settings"><img·width="22"·height="22"·alt="Change·settings"·src="../../static.files/wheel-7b819b6101059cd0.svg"></a></div></form></nav><section·id="main-content"·class="content"><div·class="main-heading"><h1>Struct·<a·href="../index.html">alloc</a>::<wbr><a·href="index.html">str</a>::<wbr><a·class="struct"·href="#">CharIndices</a><button·id="copy-path"·title="Copy·item·path·to·clipboard"><img·src="../../static.files/clipboard-7571035ce49a181d.svg"·width="19"·height="18"·alt="Copy·item·path"></button></h1><span·class="out-of-band"><span·class="since"·title="Stable·since·Rust·version·1.0.0">1.0.0</span>···<a·class="src"·href="https://doc.rust-lang.org/1.78.0/src/core/str/iter.rs.html#178">source</a>···<button·id="toggle-all-docs"·title="collapse·all·docs">[<span>&#x2212;</span>]</button></span></div><pre·class="rust·item-decl"><code>pub·struct·CharIndices&lt;'a&gt;·{·<span·clas[·...·truncated·by·diffoscope;·len:·243,·SHA:·d41dce3173eebd1f6b88165968759e29bb350d7825ba091caf98a54f3784a87c·...·]/core/primitive.char.html"·title="primitive·char"><code>char</code></a>s·of·a·string·slice,·and·their·positions.</p>
3 <p>This·struct·is·created·by·the·<a·href="../../core/primitive.str.html#method.char_indices"·title="method·str::char_indices"><code>char_indices</code></a>·method·on·<a·href="../../core/primitive.str.html"·title="primitive·str"><code>str</code></a>.3 <p>This·struct·is·created·by·the·<a·href="https://doc.rust-lang.org/1.78.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.78.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-CharIndices%3C'a%3E"·class="impl"><a·class="src·rightside"·href="../../src/core/str/iter.rs.html#232">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:·859901e87551442a94d73da823830698857baf010564dd44f4be10261d6f84b4·...·]/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 </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.78.0/src/core/str/iter.rs.html#232">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:·558c37fd9f3803ab7d6cbf08f2c3209f1f20376d78b069b8dd2c5f39cddf6562·...·]/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>
6 <p>This·has·the·same·lifetime·as·the·original·slice,·and·so·the6 <p>This·has·the·same·lifetime·as·the·original·slice,·and·so·the
7 iterator·can·continue·to·be·used·while·this·exists.</p>7 iterator·can·continue·to·be·used·while·this·exists.</p>
8 </div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.offset"·class="method"><a·class="src·rightside"·href="../../src/core/str/iter.rs.html#265">source</a><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><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>char_indices_offset</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/83871">#83871</a>)</span></div></span></summary><div·class="docblock"><p>Returns·the·byte·position·of·the·next·character,·or·the·length8 </div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.offset"·class="method"><a·class="src·rightside"·href="https://doc.rust-lang.org/1.78.0/src/core/str/iter.rs.html#265">source</a><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.78.0/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>char_indices_offset</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/83871">#83871</a>)</span></div></span></summary><div·class="docblock"><p>Returns·the·byte·position·of·the·next·character,·or·the·length
9 of·the·underlying·string·if·there·are·no·more·characters.</p>9 of·the·underlying·string·if·there·are·no·more·characters.</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="attr">#![feature(char_indices_offset)]11 <div·class="example-wrap"><pre·class="rust·rust-example-rendered"><code><span·class="attr">#![feature(char_indices_offset)]
12 </span><span·class="kw">let·</span><span·class="kw-2">mut·</span>chars·=·<span·class="string">"a楽"</span>.char_indices();12 </span><span·class="kw">let·</span><span·class="kw-2">mut·</span>chars·=·<span·class="string">"a楽"</span>.char_indices();
  
13 <span·class="macro">assert_eq!</span>(chars.offset(),·<span·class="number">0</span>);13 <span·class="macro">assert_eq!</span>(chars.offset(),·<span·class="number">0</span>);
14 <span·class="macro">assert_eq!</span>(chars.next(),·<span·class="prelude-val">Some</span>((<span·class="number">0</span>,·<span·class="string">'a'</span>)));14 <span·class="macro">assert_eq!</span>(chars.next(),·<span·class="prelude-val">Some</span>((<span·class="number">0</span>,·<span·class="string">'a'</span>)));
  
15 <span·class="macro">assert_eq!</span>(chars.offset(),·<span·class="number">1</span>);15 <span·class="macro">assert_eq!</span>(chars.offset(),·<span·class="number">1</span>);
16 <span·class="macro">assert_eq!</span>(chars.next(),·<span·class="prelude-val">Some</span>((<span·class="number">1</span>,·<span·class="string">'楽'</span>)));16 <span·class="macro">assert_eq!</span>(chars.next(),·<span·class="prelude-val">Some</span>((<span·class="number">1</span>,·<span·class="string">'楽'</span>)));
  
17 <span·class="macro">assert_eq!</span>(chars.offset(),·<span·class="number">4</span>);17 <span·class="macro">assert_eq!</span>(chars.offset(),·<span·class="number">4</span>);
18 <span·class="macro">assert_eq!</span>(chars.next(),·<span·class="prelude-val">None</span>);</code></pre><a·class="test-arrow"·target="_blank"·href="https://play.rust-lang.org/?code=%23!%5Ballow(unused)%5D%0A%23!%5Bfeature(char_indices_offset)%5D%0Afn+main()+%7B%0A++++let+mut+chars+=+%22a%E6%A5%BD%22.char_indices();%0A++++%0A++++assert_eq!(chars.offset(),+0);%0A++++assert_eq!(chars.next(),+Some((0,+'a')));%0A++++%0A++++assert_eq!(chars.offset(),+1);%0A++++assert_eq!(chars.next(),+Some((1,+'%E6%A5%BD')));%0A++++%0A++++assert_eq!(chars.offset(),+4);%0A++++assert_eq!(chars.next(),+None);%0A%7D&amp;version=nightly&amp;edition=2021">Run</a></div>18 <span·class="macro">assert_eq!</span>(chars.next(),·<span·class="prelude-val">None</span>);</code></pre><a·class="test-arrow"·target="_blank"·href="https://play.rust-lang.org/?code=%23!%5Ballow(unused)%5D%0A%23!%5Bfeature(char_indices_offset)%5D%0Afn+main()+%7B%0A++++let+mut+chars+=+%22a%E6%A5%BD%22.char_indices();%0A++++%0A++++assert_eq!(chars.offset(),+0);%0A++++assert_eq!(chars.next(),+Some((0,+'a')));%0A++++%0A++++assert_eq!(chars.offset(),+1);%0A++++assert_eq!(chars.next(),+Some((1,+'%E6%A5%BD')));%0A++++%0A++++assert_eq!(chars.offset(),+4);%0A++++assert_eq!(chars.next(),+None);%0A%7D&amp;version=nightly&amp;edition=2021">Run</a></div>
19 </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"><a·class="src·rightside"·href="../../src/core/str/iter.rs.html#175">source</a><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</a>·for[·...·truncated·by·diffoscope;·len:·7448,·SHA:·c465a0094dee7cbf788ce6a6ebaffad59c6596679d231b8acf2c228e0fc0f472·...·]/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 </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"><a·class="src·rightside"·href="https://doc.rust-lang.org/1.78.0/src/core/str/iter.rs.html#175">source</a><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.78.0/core/clone/trait.Clon[·...·truncated·by·diffoscope;·len:·8447,·SHA:·104d50ea758bf495e3607b4e153b7dffa041e102ed103117148368abf2829e55·...·]/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.78.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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(B,·Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.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.78.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.7[·...·truncated·by·diffoscope;·len:·3,·SHA:·7b1bd53949b752d143d871408483b5382371b5bc48d195d0c040ec93cfa2748b·...·]/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:·74b709f2c818a4eda5d85ea863eb2d8af72c87564dbab2746e67feafb0cbb9a3·...·]/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.78.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:·d66ed7e195a53e9945339ef1976aed455dcf80228d8e5b7b0c69a64c3983fea1·...·]/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.78.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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(B,·Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/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:·f8bdf1e28866c7668477ab391452c7cfa7fd52cc69b633e782a157931421b39b·...·]/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.78.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:·c264047794019a6dcf05728ba6a6ee1f8f07c7209958b3366ba94546b527ecdc·...·]/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.78.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:·5098,·SHA:·457a489dd7adb06710e489d7833f5c87a2251e4b53dfb5f0c53edfd828e992a8·...·]/core/primitive.usize.html">usize</a>&gt;(28 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·6016,·SHA:·c27528a86ddf324ef31f6e92448fdf7de766390f339aea907a35794b10b91a7d·...·]/core/primitive.usize.html">usize</a>&gt;(
29 ····&amp;mut·self29 ····&amp;mut·self
30 )·-&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">where30 )·-&gt;·<a·class="enum"·href="https://doc.rust-lang.org/1.78.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.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title=[·...·truncated·by·diffoscope;·len:·381,·SHA:·88c48923c9b7ea5cc47c1087c60e09656e81d4671c58071ba2bef826335388bc·...·]/core/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
31 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></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:·3158,·SHA:·836692d890b01fb231ba11a71be5481953684e17cbff4438df9af0ba13d57332·...·]/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.78.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experiment[·...·truncated·by·diffoscope;·len:·3698,·SHA:·9a860f9611d461edcce1938333bf9e7f7845b446bcca5311fc317fc0b8943bab·...·]/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.78.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"><a·class="src·rightside"·href="../../src/core/iter/tra[·...·truncated·by·diffoscope;·len:·584,·SHA:·fd3e570373eb5121d35d7e22cdd5dd5fbf7183ee80147135a591fd1285174e82·...·]/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.78.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"><a·class="src·rightside"·hr[·...·truncated·by·diffoscope;·len:·746,·SHA:·f1f70d650c102c8658e13890c7dbfc87418f07e7b522246fb579ec434ef64f7c·...·]/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.78.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:·1017,·SHA:·c0f5f8cfd297e1678ac0ee2fd847fb6f0577665ac326e8e2e9d6414a710c8f98·...·]/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.78.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.78.0/core/iter/traits/it[·...·truncated·by·diffoscope;·len:·1233,·SHA:·f677df2d893dfe0dc1a9d31ebb0ba71a346d265781813e0d664d3f18369b6163·...·]/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.78.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:·c1b5e692e89c9c809075ee8ee72fb15a9ec46c075b08450e1f707d672a224750·...·]/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.78.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:·98627729f77dcf1c9d258f343354ba600b7134c6b3929080f231e8de7155b70b·...·]/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.78.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.78.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.78.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"><a·class="src·rightside"·href="../../src/core/i[·...·truncated·by·diffoscope;·len:·267,·SHA:·1764c9d6d2e39e1367ae2111c28ab846e66ecf12617fbff35e0132e82e5c8b13·...·]/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.78.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"><a·class="src·rights[·...·truncated·by·diffoscope;·len:·375,·SHA:·58419346f92e1709dadb70cc3cf356e3cd27972451bdc6b4fc4267e6f7e8bdae·...·]/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.78.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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::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:·fb4c9589a16c7b6d697c109d1193d2f1e763e5dd967101c2fd92b32416972229·...·]/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.78.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:·98f6effefa44d759c249143d83623f0055d937382bfc398b7e1f5e92cd413657·...·]/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.78.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:·658,·SHA:·e4449b6c00d036dd30444817045eddaf2697443d65789bb5c0b585ed1bc77702·...·]/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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·820,·SHA:·a664bbcbc0891663662e4eb7b4394d0fcd72e568136fc4d34097fea242cc32e7·...·]/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.78.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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·140,·SHA:·752f473b57e7444ebfddf5ea7fd40a332e83ec55524a6c31b5ee0f82a5dea819·...·]/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"><a·class="src·rightside"·href="../../src/core/iter[·...·truncated·by·diffoscope;·len:·285,·SHA:·738ce0440ff568829f40d141e38e2c0da2fd05d2b73d1a574be0ed9baa32e827·...·]/core/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.78.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"><a·class="src·rightside[·...·truncated·by·diffoscope;·len:·393,·SHA:·2e2aa7c9c9c087e7b346da376749064ab8c1894795a2f0a0f646cdc8c7bea997·...·]/core/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.78.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:·767,·SHA:·da0fc5bc95a3398627e0c5836423b719ccea45d351e21ddaa96f793f67f9c6de·...·]/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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·956,·SHA:·faba0521e870dbbd26d466fadba3522e7d29013a9b86376fffafffac11a57e0e·...·]/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.78.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"><a·class="src·rightside"·href="../../src/core/ite[·...·truncated·by·diffoscope;·len:·264,·SHA:·e3fa7ab43c6353bc2216a22d7010c41a8ab50d273a128d15d0eff050c058993a·...·]/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.78.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"><a·class="src·rightsid[·...·truncated·by·diffoscope;·len:·372,·SHA:·03eea0861575eb80d3f7a87a3ba747adb1a33fe7e9ce72aa2172e7a287c63a94·...·]/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.78.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.78.0/core/iter/adapte[·...·truncated·by·diffoscope;·len:·175,·SHA:·16fe7225bf05b478e2828b347c3d23ded9a22f89d8887a2c65d9f7b3faf1b0e7·...·]/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"><a·class="src·rightside"·href="../../src/core/it[·...·truncated·by·diffoscope;·len:·294,·SHA:·c0aee2077af6a4f81ed47e37c84a75b5f9b941875509fbe0b3d352866f825f45·...·]/core/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.78.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"><a·class="src·rightsi[·...·truncated·by·diffoscope;·len:·402,·SHA:·7689a974f800fd069d1b4453ef62d6d6ad1b654462d624d36e3672051d502030·...·]/core/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.78.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:·922,·SHA:·5220bbb4db3c3cd3d7ca7c27520f44f04fe367ee2f0f407fb1d50c0a327a2f99·...·]/core/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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·1138,·SHA:·f6ae06b7de8e94df014341c5cf589a5e4a1298367b2ef7a968ec499c5170a70e·...·]/core/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.78.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:·39eeddf219b211245393e51a591d5064c740fa9be49d88883d8a6474679741ad·...·]/core/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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·1058,·SHA:·b390dbdda8d7e93604b5ecd906a93efd03fe19bdaf41cf12893fd361bf974307·...·]/core/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.78.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:·851,·SHA:·ad2e090d21a034b7c3836ed38a686f4c483f9a929132fef846d48271f749a79c·...·]/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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·1067,·SHA:·415d32e1211c35d3bb405de1d6e51c2102c14cadc3333894f063148dbe0b1f69·...·]/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:·525,·SHA:·6471f48fecadc56edf21fc04794b884b96ce06d339c715e410f5a906e028bc28·...·]/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.78.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:·687,·SHA:·7f5256104c35c5948a2cb42b55f3048c9d2887e48a4a8226537a284f959c562a·...·]/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.78.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"><a·class="src·rightside"·href="../../src/core/iter/traits/[·...·truncated·by·diffoscope;·len:·284,·SHA:·aee83f38f8c40848e159b12a8faa43b9dadf589fe974632a1f15ce2a15834071·...·]/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.78.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"><a·class="src·rightside"·href="[·...·truncated·by·diffoscope;·len:·392,·SHA:·4e7da68f7be2622ef173653eca78d58e1f202b544a2e6abd14d8335c298c93a7·...·]/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.78.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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(<a·class="primitive"·href="https://doc.rust-lang.org/1.78.0/core/primitive.reference.html">&amp;mut·St</a>,·Self::<a·class="associatedty[·...·truncated·by·diffoscope;·len:·449,·SHA:·f12c268a8a8111b9e7126ad78bf5523a63733caa63d187c4fe792309ea41acdf·...·]/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:·459,·SHA:·b825570d9672670eacd8828b3abec12cd1c35433286857de28f5ea8d5e300e03·...·]/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.78.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.78.0/core/iter/trai[·...·truncated·by·diffoscope;·len:·594,·SHA:·02960742fa7892efaa08f289ce85865fc5efb6a4cd138c22e3566ca6fc727d78·...·]/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.78.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.78.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:·9b6a337a3ad68c2a987b52450c153f87a04a8ed9e83603d26077fe6e70d61edf·...·]/core/iter/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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·976,·SHA:·2a9182f6fe88e0b8a9b1ae1f46cace940cc0b8736033c354c0f0ccbf1c196e7a·...·]/core/iter/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.78.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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;[Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtyp[·...·truncated·by·diffoscope;·len:·135,·SHA:·0b06a6094d42ccbc8bce5b01c4383961fe7f1967f05e4c9f1ff33e71e425fb26·...·]/core/primitive.array.html">N</a>])·-&gt;·R,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iter_map_windows</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/87155">#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.78.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"><a·class="src·rightside"·href="../../src/core/iter/[·...·truncated·by·diffoscope;·len:·250,·SHA:·e355ddd0f04b2470ee915aec3ad97857be56b95e6a1f3d733d6c477453f4cf0d·...·]/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.78.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"><a·class="src·rightside"[·...·truncated·by·diffoscope;·len:·358,·SHA:·d91b2ab18e0ce069e262cf523c6ef961f56eecad042ea1e9bcefe33cff28fc8f·...·]/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:·583,·SHA:·b7d7d6125e8980756a2636a6b6e01600057c98a027dcf7d267b1f61538a7b6b0·...·]/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.78.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.78.0/core/op[·...·truncated·by·diffoscope;·len:·745,·SHA:·424783f22102f4446d3ad4d362b1aafdb7531fa777213f97ee138aa878f67bd1·...·]/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.78.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:·676,·SHA:·ae75f35cafbae1e0e695226baca09b0bec6e4a0ed5656a83c3357b29fb00442d·...·]/core/primitive.reference.html">&amp;mut·Self</a><div·class="where">where77 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·838,·SHA:·9b4fd8df7f41e9a76fd4cfca0a233b74b9bd27c3fe8228248abc3f940425a3e3·...·]/core/primitive.reference.html">&amp;mut·Self</a><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:·319,·SHA:·bbb653fcb1f5ad46e04905bf78a76b9dd63ea5d49a2d8cd5b7b36efbb0f7e105·...·]/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.78.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.78.0/core/it[·...·truncated·by·diffoscope;·len:·427,·SHA:·ecfaaac5d1d10c1bc4fcee9a050af0a268bee0b528c2d8ea4e9774440bd8a279·...·]/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.78.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.78.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:·e5d524e874326d0b9b733f5ee809c6595cde869afab0cc3d4ba8454093f420da·...·]/core/primitive.reference.html">&amp;mut·E</a><div·class="where">where80 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.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.78.0/core/iter/tr[·...·truncated·by·diffoscope;·len:·728,·SHA:·01937c2dc314c259495665570ae249c94b4a5b0719718f5f1188e6fc64ecf487·...·]/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.78.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.78.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:·744,·SHA:·a7446142ab67c3f20d866315fbe6cb9c57cd4af012812d6dd19d5061aee6e97b·...·]/core/primitive.tuple.html">(B,·B)</a><div·class="where">where82 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experiment[·...·truncated·by·diffoscope;·len:·879,·SHA:·e773b2222c92d001e295030cb47a780ab0c1132d7fc8e9e3a98de4f532e6c520·...·]/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.78.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.78.0/core/default/trait.Default.html"·title="trait·core::default::Default">Default</a>·+·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/collect/trait.Extend.html"·title="trait·core::iter::traits::collec[·...·truncated·by·diffoscope;·len:·95,·SHA:·8b3be1d0042cae0550f865faf5849221240bdf04eb1b2107605b72d48c3ad29c·...·]/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:·5a1bcc1ddfc5fccf50d61bf2b8879dae247aa12c0b23ba2f437fd2a345cabac7·...·]/core/primitive.usize.html">usize</a><div·class="where">where85 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·995,·SHA:·bec3765fdab56713186e2454cd84738b5b28e3280a2f3d5a25cefdbc3089b520·...·]/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.78.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>·+·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/double_ended/trait.DoubleEndedIterator.html"·title="trait·core::iter::trai[·...·truncated·by·diffoscope;·len:·132,·SHA:·e5b2cf5f56946ede1e190ed09879c5821e2de04cf8e5d145142eeb40c6340982·...·]/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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(<a·class="primitive"·href="https://doc.rust-lang.org/1.78.0/core/primitive.reference.html">&amp;T</a>)·-&gt;·<a·class="primitive"·href="[·...·truncated·by·diffoscope;·len:·32,·SHA:·63d052a8ced32bf927ffadd7e884c08caf4970e85dfdf6be0e568d49b174da96·...·]/core/primitive.bool.html">bool</a>,</div></h4></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:·97056c44eac6a0f986fb2c8edec37302cc06edf44a6c6f7153a5d8623d8d6c0d·...·]/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.78.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:·0c224636c18baa273f69de21f90083317f2ea0b7367a3f0d0f1c0ace55a36f79·...·]/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.78.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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·135,·SHA:·51ff5f5c7ebd8440623ea71b125c5a5837e809e308fe1a13fbe19cddb941dbd9·...·]/core/primitive.bool.html">bool</a>,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iter_is_partitioned</code>&nbsp;<a·href="https://github.com/rust-lang/rust/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:·6f406a351b93047f56fa70265a6bf28ec6874f75cd6cc5a39d51c7af462f2992·...·]/core/iter/traits/iterator/trait.Iterator.html#method.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.78.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:·2c74873f4e5ba70004a1c7edd1cc3f9e2d91271295dd1591e2d26848df4c02ba·...·]/core/iter/traits/iterator/trait.Iterator.html#method.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.78.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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(B,·Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.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.78.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:·eecdce021399d206eb3ef5af12ee7663b4eb0dca55b0f411c7fa66f605b6b2e2·...·]/core/iter/traits/iterator/trait.Iterator.html#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.78.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:·52912e82c4b0a760d06f77eb4ee3a59ba70dd76cb532954900c73ae94c652674·...·]/core/iter/traits/iterator/trait.Iterator.html#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.78.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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.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.78.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.78.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"><a·class="src·rightside"·href="../../src/core/iter[·...·truncated·by·diffoscope;·len:·130,·SHA:·75c0150024fe6cdc702d7337508ab57600248490dd062768204ddb064c9a1b8b·...·]/core/iter/traits/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.78.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"><a·class="src·rightside[·...·truncated·by·diffoscope;·len:·211,·SHA:·924e062acd8127e8d6158162219ee5d57a941854e14063d21d7768edae549431·...·]/core/iter/traits/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.78.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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(B,·Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::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:·dbe3a08fe63abd47570741e71208c31aaf51152feac5917db07665a1f56bb3e3·...·]/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.78.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:·b60215068a6d9721be05f81098c51167d7138c4042f140cad42f77c4df43f597·...·]/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.78.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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·352,·SHA:·e7c3c296abe2c0a183967153e4ae7fd50bafa2ae7088e3e78b3b48fee253adc6·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::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:·a9dce8bb557b5a11426bf2ffcbd5eea7c6c870833e3ee5bb072dcaaa11687b0c·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_reduce"·class="fn">try_reduce</a>&lt;F,·R&gt;(107 operation.·<a·href="https://doc.rust-lang.org/1.78.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:·7a18fdd041b1a001b4a8feb289ee127fd9240232239269eb35dc3b8f74783ec9·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_reduce"·class="fn">try_reduce</a>&lt;F,·R&gt;(
108 ····&amp;mut·self,108 ····&amp;mut·self,
109 ····f:·F109 ····f:·F
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.78.0/core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&gt;::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/ops/try_trait/trait.Try.html#associatedtype.Residual"·title="type[·...·truncated·by·diffoscope;·len:·754,·SHA:·6fb4dfdb6b4da68921c1e7f8b75d99cf293d58318d684a840254ce9576957bea·...·]/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.78.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:·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:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·140,·SHA:·c27972e6fa3464c9476eaa185e8657edb6bb294f148403f3d079285294a9f909·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·R,
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.78.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.78.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.78.0/core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&gt;::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/ops/try_trait/trait.Try.html#associatedtype.Residual"·title="type[·...·truncated·by·diffoscope;·len:·412,·SHA:·22b8cbb007e5cce82b9d13a65bfa56aa8d83c32541fac25f4d9b3857b0540908·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;&gt;,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iterator_try_reduce</code>&nbsp;<a·href="https://github.com/rust-lang/rust/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"><a·class="src·rightside"·href="../../src/core/iter/tr[·...·truncated·by·diffoscope;·len:·272,·SHA:·97959736d897a01242f49f2e45854ab874bf0c9bbe30acad9a49eb73169e457c·...·]/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.78.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"><a·class="src·rightside"·h[·...·truncated·by·diffoscope;·len:·380,·SHA:·29c4004d4d8b0c8c9dfe9023f8b2c5ef801d9dc4688893035d182c1ae774c453·...·]/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.78.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:·733,·SHA:·9bb9f0199d90f78ad65c59dbe67a1c751cd5a681130a03bef3b1e8ed907a3bba·...·]/core/primitive.bool.html">bool</a><div·class="where">where117 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·922,·SHA:·f4fd532c280e18f28bd6dda6c2a129e2e92114b67f27235bb5fd39f725be9c43·...·]/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.78.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:·860,·SHA:·6a94ae33b82eb12a91660811a8ab9d243468d885c07ac766a2507d25a4e7ee62·...·]/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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·1076,·SHA:·2dd9de8adaee4a5ee96501d9a58bfac2fea00ba8d78b834bfca29949b3afe18b·...·]/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.78.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:·21d7086b3ce0092e3f7a6a41174339bbd8724e7d186158db4db3385a73d94e8e·...·]/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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·1051,·SHA:·ecc0b8fccd861464760f9ae047ff6ab98c91a1db010cb5fa59a8c2ab883db7c4·...·]/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.78.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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·130,·SHA:·130a13019dc175d02304b4f550157e2f13ac15c2f25a979c74161d10b146ab89·...·]/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:·ac4da3337aac1ec10038e246be9cb719eeb5af1acc709f5a6a25b91900c56f53·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_find"·class="fn">try_find</a>&lt;F,·R&gt;(124 the·first·non-none·result.·<a·href="https://doc.rust-lang.org/1.78.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:·8ced1b10e78750774c5c8ed995ed83dcd13983aa75d329acf8069da106ab9f4a·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_find"·class="fn">try_find</a>&lt;F,·R&gt;(
Max diff block lines reached; 137978/305087 bytes (45.23%) of diff not shown.
294 KB
./usr/share/doc/rust-web-doc/html/alloc/str/struct.Chars.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·`char`s·of·a·string·slice."><title>Chars·in·alloc::str·-·Rust</title><script>·if·(window.location.protocol·!==·"file:")·document.write(`<link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/SourceSerif4-Regular-46f98efaafac5295.ttf.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/FiraSans-Regular-018c141bf0843ffd.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/FiraSans-Medium-8f9a781e4970d388.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/SourceCodePro-Regular-562dcc5011b6de7d.ttf.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/SourceCodePro-Semibold-d899c5a5c4aeb14a.ttf.woff2">`)</script><link·rel="stylesheet"·href="../../static.files/normalize-76eba96aa4d2e634.css"><link·rel="stylesheet"·href="../../static.files/rustdoc-35f9e32502181f1e.css"><meta·name="rustdoc-vars"·data-root-path="../../"·data-static-root-path="../../static.files/"·data-current-crate="alloc"·data-themes=""·data-resource-suffix="1.78.0"·data-rustdoc-version="1.78.0"·data-channel="1.78.0"·data-search-js="search-42d8da7a6b9792c2.js"·data-settings-js="settings-4313503d2e1961c2.js"·><script·src="../../static.files/storage-4c98445ec4002617.js"></script><script·defer·src="sidebar-items1.78.0.js"></script><script·defer·src="../../static.files/main-12cf3b4f4f9dc36d.js"></script><noscript><link·rel="stylesheet"·href="../../static.files/noscript-04d5337699b92874.css"></noscript><link·rel="alternate·icon"·type="image/png"·href="../../static.files/favicon-16x16-8b506e7a72182f1c.png"><link·rel="alternate·icon"·type="image/png"·href="../../static.files/favicon-32x32-422f7d1d52889060.png"><link·rel="icon"·type="image/svg+xml"·href="../../static.files/favicon-2c020d218678b618.svg"></head><body·class="rustdoc·struct"><!--[if·lte·IE·11]><div·class="warning">This·old·browser·is·unsupported·and·will·most·likely·display·funky·things.</div><![endif]--><nav·class="mobile-topbar"><button·class="sidebar-menu-toggle"·title="show·sidebar"></button><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-151179464ae7ed46.svg"·alt=""></a></nav><nav·class="sidebar"><div·class="sidebar-crate"><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-151179464ae7ed46.svg"·alt="logo"></a><h2><a·href="../../alloc/index.html">alloc</a><span·class="version">1.78.0</span></h2></div><h2·class="location"><a·href="#">Chars</a></h2><div·class="sidebar-elems"><section><h3><a·href="#implementations">Methods</a></h3><ul·class="block·method"><li><a·href="#method.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">Clone</a></li><li><a·href="#impl-Debug-for-Chars%3C'_%3E">Debug</a></li><li><a·href="#impl-DoubleEndedIterator-for-Chars%3C'a%3E">DoubleEndedIterator</a></li><li><a·href="#impl-FusedIterator-for-Chars%3C'_%3E">FusedIterator</a></li><li><a·href="#impl-Iterator-for-Chars%3C'a%3E">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">Freeze</a></li><li><a·href="#impl-RefUnwindSafe-for-Chars%3C'a%3E">RefUnwindSafe</a></li><li><a·href="#impl-Send-for-Chars%3C'a%3E">Send</a></li><li><a·href="#impl-Sync-for-Chars%3C'a%3E">Sync</a></li><li><a·href="#impl-Unpin-for-Chars%3C'a%3E">Unpin</a></li><li><a·href="#impl-UnwindSafe-for-Chars%3C'a%3E">UnwindSafe</a></li></ul><h3><a·href="#blanket-implementations">Blanket·Implementations</a></h3><ul·class="block·blanket-implementation"><li><a·href="#impl-Any-for-T">Any</a></li><li><a·href="#impl-Borrow%3CT%3E-for-T">Borrow&lt;T&gt;</a></li><li><a·href="#impl-BorrowMut%3CT%3E-for-T">BorrowMut&lt;T&gt;</a></li><li><a·href="#impl-From%3CT%3E-for-T">From&lt;T&gt;</a></li><li><a·href="#impl-Into%3CU%3E-for-T">Into&lt;U&gt;</a></li><li><a·href="#impl-IntoIterator-for-I">IntoIterator</a></li><li><a·href="#impl-ToOwned-for-T">ToOwned</a></li><li><a·href="#impl-TryFrom%3CU%3E-for-T">TryFrom&lt;U&gt;</a></li><li><a·href="#impl-TryInto%3CU%3E-for-T">TryInto&lt;U&gt;</a></li></ul></section><h2><a·href="index.html">In·alloc::str</a></h2></div></nav><div·class="sidebar-resizer"></div>1 <!DOCTYPE·html><html·lang="en"><head><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.write(`<link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/SourceSerif4-Regular-46f98efaafac5295.ttf.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/FiraSans-Regular-018c141bf0843ffd.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/FiraSans-Medium-8f9a781e4970d388.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/SourceCodePro-Regular-562dcc5011b6de7d.ttf.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/SourceCodePro-Semibold-d899c5a5c4aeb14a.ttf.woff2">`)</script><link·rel="stylesheet"·href="../../static.files/normalize-76eba96aa4d2e634.css"><link·rel="stylesheet"·href="../../static.files/rustdoc-35f9e32502181f1e.css"><meta·name="rustdoc-vars"·data-root-path="../../"·data-static-root-path="../../static.files/"·data-current-crate="alloc"·data-themes=""·data-resource-suffix="1.78.0"·data-rustdoc-version="1.78.0"·data-channel="1.78.0"·data-search-js="search-42d8da7a6b9792c2.js"·data-settings-js="settings-4313503d2e1961c2.js"·><script·src="../../static.files/storage-4c98445ec4002617.js"></script><script·defer·src="sidebar-items1.78.0.js"></script><script·defer·src="../../static.files/main-12cf3b4f4f9dc36d.js"></script><noscript><link·rel="stylesheet"·href="../../static.files/noscript-04d5337699b92874.css"></noscript><link·rel="alternate·icon"·type="image/png"·href="../../static.files/favicon-16x16-8b506e7a72182f1c.png"><link·rel="alternate·icon"·type="image/png"·href="../../static.files/favicon-32x32-422f7d1d52889060.png"><link·rel="icon"·type="image/svg+xml"·href="../../static.files/favicon-2c020d218678b618.svg"></head><body·class="rustdoc·struct"><!--[if·lte·IE·11]><div·class="warning">This·old·browser·is·unsupported·and·will·most·likely·display·funky·things.</div><![endif]--><nav·class="mobile-topbar"><button·class="sidebar-menu-toggle"·title="show·sidebar"></button><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-151179464ae7ed46.svg"·alt=""></a></nav><nav·class="sidebar"><div·class="sidebar-crate"><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-151179464ae7ed46.svg"·alt="logo"></a><h2><a·href="../../alloc/index.html">alloc</a><span·class="version">1.78.0</span></h2></div><h2·class="location"><a·href="#">Chars</a></h2><div·class="sidebar-elems"><section><h3><a·href="#implementations">Methods</a></h3><ul·class="block·method"><li><a·href="#method.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">Clone</a></li><li><a·href="#impl-Debug-for-Chars%3C'_%3E">Debug</a></li><li><a·href="#impl-DoubleEndedIterator-for-Chars%3C'a%3E">DoubleEndedIterator</a></li><li><a·href="#impl-FusedIterator-for-Chars%3C'_%3E">FusedIterator</a></li><li><a·href="#impl-Iterator-for-Chars%3C'a%3E">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">Freeze</a></li><li><a·href="#impl-RefUnwindSafe-for-Chars%3C'a%3E">RefUnwindSafe</a></li><li><a·href="#impl-Send-for-Chars%3C'a%3E">Send</a></li><li><a·href="#impl-Sync-for-Chars%3C'a%3E">Sync</a></li><li><a·href="#impl-Unpin-for-Chars%3C'a%3E">Unpin</a></li><li><a·href="#impl-UnwindSafe-for-Chars%3C'a%3E">UnwindSafe</a></li></ul><h3><a·href="#blanket-implementations">Blanket·Implementations</a></h3><ul·class="block·blanket-implementation"><li><a·href="#impl-Any-for-T">Any</a></li><li><a·href="#impl-Borrow%3CT%3E-for-T">Borrow&lt;T&gt;</a></li><li><a·href="#impl-BorrowMut%3CT%3E-for-T">BorrowMut&lt;T&gt;</a></li><li><a·href="#impl-From%3CT%3E-for-T">From&lt;T&gt;</a></li><li><a·href="#impl-Into%3CU%3E-for-T">Into&lt;U&gt;</a></li><li><a·href="#impl-IntoIterator-for-I">IntoIterator</a></li><li><a·href="#impl-ToOwned-for-T">ToOwned</a></li><li><a·href="#impl-TryFrom%3CU%3E-for-T">TryFrom&lt;U&gt;</a></li><li><a·href="#impl-TryInto%3CU%3E-for-T">TryInto&lt;U&gt;</a></li></ul></section><h2><a·href="index.html">In·alloc::str</a></h2></div></nav><div·class="sidebar-resizer"></div>
2 ····<main><div·class="width-limiter"><nav·class="sub"><form·class="search-form"><span></span><div·id="sidebar-button"·tabindex="-1"><a·href="../../alloc/all.html"·title="show·sidebar"></a></div><input·class="search-input"·name="search"·aria-label="Run·search·in·the·documentation"·autocomplete="off"·spellcheck="false"·placeholder="Click·or·press·‘S’·to·search,·‘?’·for·more·options…"·type="search"><div·id="help-button"·tabindex="-1"><a·href="../../help.html"·title="help">?</a></div><div·id="settings-menu"·tabindex="-1"><a·href="../../settings.html"·title="settings"><img·width="22"·height="22"·alt="Change·settings"·src="../../static.files/wheel-7b819b6101059cd0.svg"></a></div></form></nav><section·id="main-content"·class="content"><div·class="main-heading"><h1>Struct·<a·href="../index.html">alloc</a>::<wbr><a·href="index.html">str</a>::<wbr><a·class="struct"·href="#">Chars</a><button·id="copy-path"·title="Copy·item·path·to·clipboard"><img·src="../../static.files/clipboard-7571035ce49a181d.svg"·width="19"·height="18"·alt="Copy·item·path"></button></h1><span·class="out-of-band"><span·class="since"·title="Stable·since·Rust·version·1.0.0">1.0.0</span>···<a·class="src"·href="../../src/core/str/iter.rs.html#33">source</a>···<button·id="toggle-all-docs"·title="collapse·all·docs">[<span>&#x2212;</span>]</button></span></div><pre·class="rust·item-decl"><code>pub·struct·Chars&lt;'a&gt;·{·<span·class="comment">/*·private·fields·*/</[·...·truncated·by·diffoscope;·len:·182,·SHA:·013f60c9a61c707d45c308f43a3e8e55b5a59ffc2ae74cbcd4cb069fdb8b6a1c·...·]/core/primitive.char.html"·title="primitive·char"><code>char</code></a>s·of·a·string·slice.</p>2 ····<main><div·class="width-limiter"><nav·class="sub"><form·class="search-form"><span></span><div·id="sidebar-button"·tabindex="-1"><a·href="../../alloc/all.html"·title="show·sidebar"></a></div><input·class="search-input"·name="search"·aria-label="Run·search·in·the·documentation"·autocomplete="off"·spellcheck="false"·placeholder="Click·or·press·‘S’·to·search,·‘?’·for·more·options…"·type="search"><div·id="help-button"·tabindex="-1"><a·href="../../help.html"·title="help">?</a></div><div·id="settings-menu"·tabindex="-1"><a·href="../../settings.html"·title="settings"><img·width="22"·height="22"·alt="Change·settings"·src="../../static.files/wheel-7b819b6101059cd0.svg"></a></div></form></nav><section·id="main-content"·class="content"><div·class="main-heading"><h1>Struct·<a·href="../index.html">alloc</a>::<wbr><a·href="index.html">str</a>::<wbr><a·class="struct"·href="#">Chars</a><button·id="copy-path"·title="Copy·item·path·to·clipboard"><img·src="../../static.files/clipboard-7571035ce49a181d.svg"·width="19"·height="18"·alt="Copy·item·path"></button></h1><span·class="out-of-band"><span·class="since"·title="Stable·since·Rust·version·1.0.0">1.0.0</span>···<a·class="src"·href="https://doc.rust-lang.org/1.78.0/src/core/str/iter.rs.html#33">source</a>···<button·id="toggle-all-docs"·title="collapse·all·docs">[<span>&#x2212;</span>]</button></span></div><pre·class="rust·item-decl"><code>pub·struct·Chars&lt;'a&gt;·{·<span·class="comm[·...·truncated·by·diffoscope;·len:·236,·SHA:·d4a9ad48570566804cf0d000806f30ddd09690b42368c86c1cfdff187e5b2255·...·]/core/primitive.char.html"·title="primitive·char"><code>char</code></a>s·of·a·string·slice.</p>
3 <p>This·struct·is·created·by·the·<a·href="../../core/primitive.str.html#method.chars"·title="method·str::chars"><code>chars</code></a>·method·on·<a·href="../../core/primitive.str.html"·title="primitive·str"><code>str</code></a>.3 <p>This·struct·is·created·by·the·<a·href="https://doc.rust-lang.org/1.78.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.78.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-Chars%3C'a%3E"·class="impl"><a·class="src·rightside"·href="../../src/core/str/iter.rs.html#141">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:·d8c853759b315a647e74a73c6f80462d8da222d1a12d46acc5a2cf66ca102b66·...·]/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 </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.78.0/src/core/str/iter.rs.html#141">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:·2204ab5afc51744c38ac40a1038dc5b54d0f0648ac6a9b24c7f719668e16dd82·...·]/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>
6 <p>This·has·the·same·lifetime·as·the·original·slice,·and·so·the6 <p>This·has·the·same·lifetime·as·the·original·slice,·and·so·the
7 iterator·can·continue·to·be·used·while·this·exists.</p>7 iterator·can·continue·to·be·used·while·this·exists.</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>chars·=·<span·class="string">"abc"</span>.chars();9 <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();
  
10 <span·class="macro">assert_eq!</span>(chars.as_str(),·<span·class="string">"abc"</span>);10 <span·class="macro">assert_eq!</span>(chars.as_str(),·<span·class="string">"abc"</span>);
11 chars.next();11 chars.next();
12 <span·class="macro">assert_eq!</span>(chars.as_str(),·<span·class="string">"bc"</span>);12 <span·class="macro">assert_eq!</span>(chars.as_str(),·<span·class="string">"bc"</span>);
13 chars.next();13 chars.next();
14 chars.next();14 chars.next();
15 <span·class="macro">assert_eq!</span>(chars.as_str(),·<span·class="string">""</span>);</code></pre><a·class="test-arrow"·target="_blank"·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">Run</a></div>15 <span·class="macro">assert_eq!</span>(chars.as_str(),·<span·class="string">""</span>);</code></pre><a·class="test-arrow"·target="_blank"·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">Run</a></div>
16 </div></details></div></details></div><h2·id="trait-implementations"·class="section-header">Trait·Implementations<a·href="#trait-implementations"·class="anchor">§</a></h2><div·id="trait-implementations-list"><details·class="toggle·implementors-toggle"·open><summary><section·id="impl-Clone-for-Chars%3C'a%3E"·class="impl"><a·class="src·rightside"·href="../../src/core/str/iter.rs.html#30">source</a><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·<a·cla[·...·truncated·by·diffoscope;·len:·7353,·SHA:·6a8249c26812aff90c848c96a09cd2d831081a068af6691dbeea458dadf91746·...·]/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 </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"><a·class="src·rightside"·href="https://doc.rust-lang.org/1.78.0/src/core/str/iter.rs.html#30">source</a><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.78.0/core/clone/trait.Clone.html"[·...·truncated·by·diffoscope;·len:·8325,·SHA:·bbf980a8d1e6ade2397d5b35192d853fa09376e0fc7978859a8db34eb89930fd·...·]/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.78.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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(B,·Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.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.78.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.7[·...·truncated·by·diffoscope;·len:·3,·SHA:·7b1bd53949b752d143d871408483b5382371b5bc48d195d0c040ec93cfa2748b·...·]/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:·74b709f2c818a4eda5d85ea863eb2d8af72c87564dbab2746e67feafb0cbb9a3·...·]/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.78.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:·d66ed7e195a53e9945339ef1976aed455dcf80228d8e5b7b0c69a64c3983fea1·...·]/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.78.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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(B,·Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/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:·f8bdf1e28866c7668477ab391452c7cfa7fd52cc69b633e782a157931421b39b·...·]/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.78.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:·c264047794019a6dcf05728ba6a6ee1f8f07c7209958b3366ba94546b527ecdc·...·]/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.78.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:·6149,·SHA:·c98454a750b048fcf3dcaf7fefe17b080afe67d47f0f3fbf0fb7abf0fc48a0a1·...·]/core/primitive.usize.html">usize</a>&gt;(25 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·7202,·SHA:·36b02160381710047372caa78a37f5e6d59bb729317a82a0cc422dda24bd6e5a·...·]/core/primitive.usize.html">usize</a>&gt;(
26 ····&amp;mut·self26 ····&amp;mut·self
27 )·-&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">where27 )·-&gt;·<a·class="enum"·href="https://doc.rust-lang.org/1.78.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.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title=[·...·truncated·by·diffoscope;·len:·381,·SHA:·88c48923c9b7ea5cc47c1087c60e09656e81d4671c58071ba2bef826335388bc·...·]/core/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
28 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></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:·1850,·SHA:·b9690ca79a5d7a37058b7a6ad9740785d9b0b3b248ab57fa9d9dfd7d96642c8a·...·]/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.78.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experiment[·...·truncated·by·diffoscope;·len:·2174,·SHA:·251d9c93489669cf87a49c425a86b4abace43931b708af5caffe19aa641ee8a9·...·]/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.78.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"><a·class="src·rightside"·href="../../src/core/iter/tra[·...·truncated·by·diffoscope;·len:·584,·SHA:·fd3e570373eb5121d35d7e22cdd5dd5fbf7183ee80147135a591fd1285174e82·...·]/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.78.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"><a·class="src·rightside"·hr[·...·truncated·by·diffoscope;·len:·746,·SHA:·f1f70d650c102c8658e13890c7dbfc87418f07e7b522246fb579ec434ef64f7c·...·]/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.78.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:·1017,·SHA:·c0f5f8cfd297e1678ac0ee2fd847fb6f0577665ac326e8e2e9d6414a710c8f98·...·]/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.78.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.78.0/core/iter/traits/it[·...·truncated·by·diffoscope;·len:·1233,·SHA:·f677df2d893dfe0dc1a9d31ebb0ba71a346d265781813e0d664d3f18369b6163·...·]/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.78.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:·c1b5e692e89c9c809075ee8ee72fb15a9ec46c075b08450e1f707d672a224750·...·]/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.78.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:·98627729f77dcf1c9d258f343354ba600b7134c6b3929080f231e8de7155b70b·...·]/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.78.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.78.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.78.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"><a·class="src·rightside"·href="../../src/core/i[·...·truncated·by·diffoscope;·len:·267,·SHA:·1764c9d6d2e39e1367ae2111c28ab846e66ecf12617fbff35e0132e82e5c8b13·...·]/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.78.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"><a·class="src·rights[·...·truncated·by·diffoscope;·len:·375,·SHA:·58419346f92e1709dadb70cc3cf356e3cd27972451bdc6b4fc4267e6f7e8bdae·...·]/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.78.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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::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:·fb4c9589a16c7b6d697c109d1193d2f1e763e5dd967101c2fd92b32416972229·...·]/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.78.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:·98f6effefa44d759c249143d83623f0055d937382bfc398b7e1f5e92cd413657·...·]/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.78.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:·658,·SHA:·e4449b6c00d036dd30444817045eddaf2697443d65789bb5c0b585ed1bc77702·...·]/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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·820,·SHA:·a664bbcbc0891663662e4eb7b4394d0fcd72e568136fc4d34097fea242cc32e7·...·]/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.78.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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·140,·SHA:·752f473b57e7444ebfddf5ea7fd40a332e83ec55524a6c31b5ee0f82a5dea819·...·]/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"><a·class="src·rightside"·href="../../src/core/iter[·...·truncated·by·diffoscope;·len:·285,·SHA:·738ce0440ff568829f40d141e38e2c0da2fd05d2b73d1a574be0ed9baa32e827·...·]/core/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.78.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"><a·class="src·rightside[·...·truncated·by·diffoscope;·len:·393,·SHA:·2e2aa7c9c9c087e7b346da376749064ab8c1894795a2f0a0f646cdc8c7bea997·...·]/core/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.78.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:·767,·SHA:·da0fc5bc95a3398627e0c5836423b719ccea45d351e21ddaa96f793f67f9c6de·...·]/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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·956,·SHA:·faba0521e870dbbd26d466fadba3522e7d29013a9b86376fffafffac11a57e0e·...·]/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.78.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"><a·class="src·rightside"·href="../../src/core/ite[·...·truncated·by·diffoscope;·len:·264,·SHA:·e3fa7ab43c6353bc2216a22d7010c41a8ab50d273a128d15d0eff050c058993a·...·]/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.78.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"><a·class="src·rightsid[·...·truncated·by·diffoscope;·len:·372,·SHA:·03eea0861575eb80d3f7a87a3ba747adb1a33fe7e9ce72aa2172e7a287c63a94·...·]/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.78.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.78.0/core/iter/adapte[·...·truncated·by·diffoscope;·len:·175,·SHA:·16fe7225bf05b478e2828b347c3d23ded9a22f89d8887a2c65d9f7b3faf1b0e7·...·]/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"><a·class="src·rightside"·href="../../src/core/it[·...·truncated·by·diffoscope;·len:·294,·SHA:·c0aee2077af6a4f81ed47e37c84a75b5f9b941875509fbe0b3d352866f825f45·...·]/core/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.78.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"><a·class="src·rightsi[·...·truncated·by·diffoscope;·len:·402,·SHA:·7689a974f800fd069d1b4453ef62d6d6ad1b654462d624d36e3672051d502030·...·]/core/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.78.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:·922,·SHA:·5220bbb4db3c3cd3d7ca7c27520f44f04fe367ee2f0f407fb1d50c0a327a2f99·...·]/core/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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·1138,·SHA:·f6ae06b7de8e94df014341c5cf589a5e4a1298367b2ef7a968ec499c5170a70e·...·]/core/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.78.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:·39eeddf219b211245393e51a591d5064c740fa9be49d88883d8a6474679741ad·...·]/core/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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·1058,·SHA:·b390dbdda8d7e93604b5ecd906a93efd03fe19bdaf41cf12893fd361bf974307·...·]/core/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.78.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:·851,·SHA:·ad2e090d21a034b7c3836ed38a686f4c483f9a929132fef846d48271f749a79c·...·]/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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·1067,·SHA:·415d32e1211c35d3bb405de1d6e51c2102c14cadc3333894f063148dbe0b1f69·...·]/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:·525,·SHA:·6471f48fecadc56edf21fc04794b884b96ce06d339c715e410f5a906e028bc28·...·]/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.78.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:·687,·SHA:·7f5256104c35c5948a2cb42b55f3048c9d2887e48a4a8226537a284f959c562a·...·]/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.78.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"><a·class="src·rightside"·href="../../src/core/iter/traits/[·...·truncated·by·diffoscope;·len:·284,·SHA:·aee83f38f8c40848e159b12a8faa43b9dadf589fe974632a1f15ce2a15834071·...·]/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.78.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"><a·class="src·rightside"·href="[·...·truncated·by·diffoscope;·len:·392,·SHA:·4e7da68f7be2622ef173653eca78d58e1f202b544a2e6abd14d8335c298c93a7·...·]/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.78.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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(<a·class="primitive"·href="https://doc.rust-lang.org/1.78.0/core/primitive.reference.html">&amp;mut·St</a>,·Self::<a·class="associatedty[·...·truncated·by·diffoscope;·len:·449,·SHA:·f12c268a8a8111b9e7126ad78bf5523a63733caa63d187c4fe792309ea41acdf·...·]/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:·459,·SHA:·b825570d9672670eacd8828b3abec12cd1c35433286857de28f5ea8d5e300e03·...·]/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.78.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.78.0/core/iter/trai[·...·truncated·by·diffoscope;·len:·594,·SHA:·02960742fa7892efaa08f289ce85865fc5efb6a4cd138c22e3566ca6fc727d78·...·]/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.78.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.78.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:·9b6a337a3ad68c2a987b52450c153f87a04a8ed9e83603d26077fe6e70d61edf·...·]/core/iter/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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·976,·SHA:·2a9182f6fe88e0b8a9b1ae1f46cace940cc0b8736033c354c0f0ccbf1c196e7a·...·]/core/iter/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.78.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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;[Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtyp[·...·truncated·by·diffoscope;·len:·135,·SHA:·0b06a6094d42ccbc8bce5b01c4383961fe7f1967f05e4c9f1ff33e71e425fb26·...·]/core/primitive.array.html">N</a>])·-&gt;·R,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iter_map_windows</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/87155">#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.78.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"><a·class="src·rightside"·href="../../src/core/iter/[·...·truncated·by·diffoscope;·len:·250,·SHA:·e355ddd0f04b2470ee915aec3ad97857be56b95e6a1f3d733d6c477453f4cf0d·...·]/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.78.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"><a·class="src·rightside"[·...·truncated·by·diffoscope;·len:·358,·SHA:·d91b2ab18e0ce069e262cf523c6ef961f56eecad042ea1e9bcefe33cff28fc8f·...·]/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:·583,·SHA:·b7d7d6125e8980756a2636a6b6e01600057c98a027dcf7d267b1f61538a7b6b0·...·]/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.78.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.78.0/core/op[·...·truncated·by·diffoscope;·len:·745,·SHA:·424783f22102f4446d3ad4d362b1aafdb7531fa777213f97ee138aa878f67bd1·...·]/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.78.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:·676,·SHA:·ae75f35cafbae1e0e695226baca09b0bec6e4a0ed5656a83c3357b29fb00442d·...·]/core/primitive.reference.html">&amp;mut·Self</a><div·class="where">where74 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·838,·SHA:·9b4fd8df7f41e9a76fd4cfca0a233b74b9bd27c3fe8228248abc3f940425a3e3·...·]/core/primitive.reference.html">&amp;mut·Self</a><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:·319,·SHA:·bbb653fcb1f5ad46e04905bf78a76b9dd63ea5d49a2d8cd5b7b36efbb0f7e105·...·]/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.78.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.78.0/core/it[·...·truncated·by·diffoscope;·len:·427,·SHA:·ecfaaac5d1d10c1bc4fcee9a050af0a268bee0b528c2d8ea4e9774440bd8a279·...·]/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.78.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.78.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:·e5d524e874326d0b9b733f5ee809c6595cde869afab0cc3d4ba8454093f420da·...·]/core/primitive.reference.html">&amp;mut·E</a><div·class="where">where77 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.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.78.0/core/iter/tr[·...·truncated·by·diffoscope;·len:·728,·SHA:·01937c2dc314c259495665570ae249c94b4a5b0719718f5f1188e6fc64ecf487·...·]/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.78.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.78.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:·744,·SHA:·a7446142ab67c3f20d866315fbe6cb9c57cd4af012812d6dd19d5061aee6e97b·...·]/core/primitive.tuple.html">(B,·B)</a><div·class="where">where79 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experiment[·...·truncated·by·diffoscope;·len:·879,·SHA:·e773b2222c92d001e295030cb47a780ab0c1132d7fc8e9e3a98de4f532e6c520·...·]/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.78.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.78.0/core/default/trait.Default.html"·title="trait·core::default::Default">Default</a>·+·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/collect/trait.Extend.html"·title="trait·core::iter::traits::collec[·...·truncated·by·diffoscope;·len:·95,·SHA:·8b3be1d0042cae0550f865faf5849221240bdf04eb1b2107605b72d48c3ad29c·...·]/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:·5a1bcc1ddfc5fccf50d61bf2b8879dae247aa12c0b23ba2f437fd2a345cabac7·...·]/core/primitive.usize.html">usize</a><div·class="where">where82 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·995,·SHA:·bec3765fdab56713186e2454cd84738b5b28e3280a2f3d5a25cefdbc3089b520·...·]/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.78.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>·+·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/double_ended/trait.DoubleEndedIterator.html"·title="trait·core::iter::trai[·...·truncated·by·diffoscope;·len:·132,·SHA:·e5b2cf5f56946ede1e190ed09879c5821e2de04cf8e5d145142eeb40c6340982·...·]/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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(<a·class="primitive"·href="https://doc.rust-lang.org/1.78.0/core/primitive.reference.html">&amp;T</a>)·-&gt;·<a·class="primitive"·href="[·...·truncated·by·diffoscope;·len:·32,·SHA:·63d052a8ced32bf927ffadd7e884c08caf4970e85dfdf6be0e568d49b174da96·...·]/core/primitive.bool.html">bool</a>,</div></h4></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:·97056c44eac6a0f986fb2c8edec37302cc06edf44a6c6f7153a5d8623d8d6c0d·...·]/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.78.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:·0c224636c18baa273f69de21f90083317f2ea0b7367a3f0d0f1c0ace55a36f79·...·]/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.78.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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·135,·SHA:·51ff5f5c7ebd8440623ea71b125c5a5837e809e308fe1a13fbe19cddb941dbd9·...·]/core/primitive.bool.html">bool</a>,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iter_is_partitioned</code>&nbsp;<a·href="https://github.com/rust-lang/rust/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:·6f406a351b93047f56fa70265a6bf28ec6874f75cd6cc5a39d51c7af462f2992·...·]/core/iter/traits/iterator/trait.Iterator.html#method.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.78.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:·2c74873f4e5ba70004a1c7edd1cc3f9e2d91271295dd1591e2d26848df4c02ba·...·]/core/iter/traits/iterator/trait.Iterator.html#method.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.78.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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(B,·Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.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.78.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:·eecdce021399d206eb3ef5af12ee7663b4eb0dca55b0f411c7fa66f605b6b2e2·...·]/core/iter/traits/iterator/trait.Iterator.html#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.78.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:·52912e82c4b0a760d06f77eb4ee3a59ba70dd76cb532954900c73ae94c652674·...·]/core/iter/traits/iterator/trait.Iterator.html#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.78.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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.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.78.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.78.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"><a·class="src·rightside"·href="../../src/core/iter[·...·truncated·by·diffoscope;·len:·130,·SHA:·75c0150024fe6cdc702d7337508ab57600248490dd062768204ddb064c9a1b8b·...·]/core/iter/traits/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.78.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"><a·class="src·rightside[·...·truncated·by·diffoscope;·len:·211,·SHA:·924e062acd8127e8d6158162219ee5d57a941854e14063d21d7768edae549431·...·]/core/iter/traits/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.78.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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(B,·Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::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:·dbe3a08fe63abd47570741e71208c31aaf51152feac5917db07665a1f56bb3e3·...·]/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.78.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:·b60215068a6d9721be05f81098c51167d7138c4042f140cad42f77c4df43f597·...·]/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.78.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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·352,·SHA:·e7c3c296abe2c0a183967153e4ae7fd50bafa2ae7088e3e78b3b48fee253adc6·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::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:·a9dce8bb557b5a11426bf2ffcbd5eea7c6c870833e3ee5bb072dcaaa11687b0c·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_reduce"·class="fn">try_reduce</a>&lt;F,·R&gt;(104 operation.·<a·href="https://doc.rust-lang.org/1.78.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:·7a18fdd041b1a001b4a8feb289ee127fd9240232239269eb35dc3b8f74783ec9·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_reduce"·class="fn">try_reduce</a>&lt;F,·R&gt;(
105 ····&amp;mut·self,105 ····&amp;mut·self,
106 ····f:·F106 ····f:·F
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.78.0/core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&gt;::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/ops/try_trait/trait.Try.html#associatedtype.Residual"·title="type[·...·truncated·by·diffoscope;·len:·754,·SHA:·6fb4dfdb6b4da68921c1e7f8b75d99cf293d58318d684a840254ce9576957bea·...·]/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.78.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:·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:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·140,·SHA:·c27972e6fa3464c9476eaa185e8657edb6bb294f148403f3d079285294a9f909·...·]/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·=·Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;,110 ····R:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.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.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;,
111 ····&lt;R·as·<a·class="trait"·href="../../core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&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·the111 ····&lt;R·as·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&gt;::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/ops/try_trait/trait.Try.html#associatedtype.Residual"·title="type[·...·truncated·by·diffoscope;·len:·412,·SHA:·22b8cbb007e5cce82b9d13a65bfa56aa8d83c32541fac25f4d9b3857b0540908·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;&gt;,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iterator_try_reduce</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/87053">#87053</a>)</span></div></span><div·class='docblock'>Reduces·the·elements·to·a·single·one·by·repeatedly·applying·a·reducing·operation.·If·the
112 closure·returns·a·failure,·the·failure·is·propagated·back·to·the·caller·immediately.·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.try_reduce">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.all"·class="method·trait-impl"><a·class="src·rightside"·href="../../src/core/iter/tr[·...·truncated·by·diffoscope;·len:·272,·SHA:·97959736d897a01242f49f2e45854ab874bf0c9bbe30acad9a49eb73169e457c·...·]/core/primitive.bool.html">bool</a><div·class="where">where112 closure·returns·a·failure,·the·failure·is·propagated·back·to·the·caller·immediately.·<a·href="https://doc.rust-lang.org/1.78.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"><a·class="src·rightside"·h[·...·truncated·by·diffoscope;·len:·380,·SHA:·29c4004d4d8b0c8c9dfe9023f8b2c5ef801d9dc4688893035d182c1ae774c453·...·]/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.78.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:·733,·SHA:·9bb9f0199d90f78ad65c59dbe67a1c751cd5a681130a03bef3b1e8ed907a3bba·...·]/core/primitive.bool.html">bool</a><div·class="where">where114 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·922,·SHA:·f4fd532c280e18f28bd6dda6c2a129e2e92114b67f27235bb5fd39f725be9c43·...·]/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.78.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:·860,·SHA:·6a94ae33b82eb12a91660811a8ab9d243468d885c07ac766a2507d25a4e7ee62·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;<div·class="where">where116 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·1076,·SHA:·2dd9de8adaee4a5ee96501d9a58bfac2fea00ba8d78b834bfca29949b3afe18b·...·]/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.78.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>(&amp;Self::<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:·21d7086b3ce0092e3f7a6a41174339bbd8724e7d186158db4db3385a73d94e8e·...·]/core/option/enum.Option.html"·title="enum·core::option::Option">Option</a>&lt;B&gt;<div·class="where">where118 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·1051,·SHA:·ecc0b8fccd861464760f9ae047ff6ab98c91a1db010cb5fa59a8c2ab883db7c4·...·]/core/option/enum.Option.html"·title="enum·core::option::Option">Option</a>&lt;B&gt;<div·class="where">where
119 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,119 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.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>(Self::<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·returns120 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·130,·SHA:·130a13019dc175d02304b4f550157e2f13ac15c2f25a979c74161d10b146ab89·...·]/core/option/enum.Option.html"·title="enum·core::option::Option">Option</a>&lt;B&gt;,</div></h4></section></summary><div·class='docblock'>Applies·function·to·the·elements·of·iterator·and·returns
121 the·first·non-none·result.·<a·href="../../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:·ac4da3337aac1ec10038e246be9cb719eeb5af1acc709f5a6a25b91900c56f53·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_find"·class="fn">try_find</a>&lt;F,·R&gt;(121 the·first·non-none·result.·<a·href="https://doc.rust-lang.org/1.78.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:·8ced1b10e78750774c5c8ed995ed83dcd13983aa75d329acf8069da106ab9f4a·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_find"·class="fn">try_find</a>&lt;F,·R&gt;(
122 ····&amp;mut·self,122 ····&amp;mut·self,
123 ····f:·F123 ····f:·F
124 )·-&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">where124 )·-&gt;·&lt;&lt;R·as·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&gt;::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/ops/try_trait/trait.Try.html#associatedtype.Residual"·title="type[·...·truncated·by·diffoscope;·len:·626,·SHA:·95f9831257b68862cbcbf54f0ad2ff4e597a4c9f763112d1da8a0897dadcf872·...·]/core/ops/try_trait/trait.Residual.html#associatedtype.TryType"·title="type·core::ops::try_trait::Residual::TryType">TryType</a><div·class="where">where
125 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,125 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.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;·R,126 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·R,
Max diff block lines reached; 82553/301129 bytes (27.41%) of diff not shown.
274 KB
./usr/share/doc/rust-web-doc/html/alloc/str/struct.EncodeUtf16.html
    
Offset 1, 195 lines modifiedOffset 1, 195 lines modified
1 <!DOCTYPE·html><html·lang="en"><head><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.write(`<link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/SourceSerif4-Regular-46f98efaafac5295.ttf.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/FiraSans-Regular-018c141bf0843ffd.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/FiraSans-Medium-8f9a781e4970d388.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/SourceCodePro-Regular-562dcc5011b6de7d.ttf.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/SourceCodePro-Semibold-d899c5a5c4aeb14a.ttf.woff2">`)</script><link·rel="stylesheet"·href="../../static.files/normalize-76eba96aa4d2e634.css"><link·rel="stylesheet"·href="../../static.files/rustdoc-35f9e32502181f1e.css"><meta·name="rustdoc-vars"·data-root-path="../../"·data-static-root-path="../../static.files/"·data-current-crate="alloc"·data-themes=""·data-resource-suffix="1.78.0"·data-rustdoc-version="1.78.0"·data-channel="1.78.0"·data-search-js="search-42d8da7a6b9792c2.js"·data-settings-js="settings-4313503d2e1961c2.js"·><script·src="../../static.files/storage-4c98445ec4002617.js"></script><script·defer·src="sidebar-items1.78.0.js"></script><script·defer·src="../../static.files/main-12cf3b4f4f9dc36d.js"></script><noscript><link·rel="stylesheet"·href="../../static.files/noscript-04d5337699b92874.css"></noscript><link·rel="alternate·icon"·type="image/png"·href="../../static.files/favicon-16x16-8b506e7a72182f1c.png"><link·rel="alternate·icon"·type="image/png"·href="../../static.files/favicon-32x32-422f7d1d52889060.png"><link·rel="icon"·type="image/svg+xml"·href="../../static.files/favicon-2c020d218678b618.svg"></head><body·class="rustdoc·struct"><!--[if·lte·IE·11]><div·class="warning">This·old·browser·is·unsupported·and·will·most·likely·display·funky·things.</div><![endif]--><nav·class="mobile-topbar"><button·class="sidebar-menu-toggle"·title="show·sidebar"></button><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-151179464ae7ed46.svg"·alt=""></a></nav><nav·class="sidebar"><div·class="sidebar-crate"><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-151179464ae7ed46.svg"·alt="logo"></a><h2><a·href="../../alloc/index.html">alloc</a><span·class="version">1.78.0</span></h2></div><h2·class="location"><a·href="#">EncodeUtf16</a></h2><div·class="sidebar-elems"><section><h3><a·href="#trait-implementations">Trait·Implementations</a></h3><ul·class="block·trait-implementation"><li><a·href="#impl-Clone-for-EncodeUtf16%3C'a%3E">Clone</a></li><li><a·href="#impl-Debug-for-EncodeUtf16%3C'_%3E">Debug</a></li><li><a·href="#impl-FusedIterator-for-EncodeUtf16%3C'_%3E">FusedIterator</a></li><li><a·href="#impl-Iterator-for-EncodeUtf16%3C'a%3E">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">Freeze</a></li><li><a·href="#impl-RefUnwindSafe-for-EncodeUtf16%3C'a%3E">RefUnwindSafe</a></li><li><a·href="#impl-Send-for-EncodeUtf16%3C'a%3E">Send</a></li><li><a·href="#impl-Sync-for-EncodeUtf16%3C'a%3E">Sync</a></li><li><a·href="#impl-Unpin-for-EncodeUtf16%3C'a%3E">Unpin</a></li><li><a·href="#impl-UnwindSafe-for-EncodeUtf16%3C'a%3E">UnwindSafe</a></li></ul><h3><a·href="#blanket-implementations">Blanket·Implementations</a></h3><ul·class="block·blanket-implementation"><li><a·href="#impl-Any-for-T">Any</a></li><li><a·href="#impl-Borrow%3CT%3E-for-T">Borrow&lt;T&gt;</a></li><li><a·href="#impl-BorrowMut%3CT%3E-for-T">BorrowMut&lt;T&gt;</a></li><li><a·href="#impl-From%3CT%3E-for-T">From&lt;T&gt;</a></li><li><a·href="#impl-Into%3CU%3E-for-T">Into&lt;U&gt;</a></li><li><a·href="#impl-IntoIterator-for-I">IntoIterator</a></li><li><a·href="#impl-ToOwned-for-T">ToOwned</a></li><li><a·href="#impl-TryFrom%3CU%3E-for-T">TryFrom&lt;U&gt;</a></li><li><a·href="#impl-TryInto%3CU%3E-for-T">TryInto&lt;U&gt;</a></li></ul></section><h2><a·href="index.html">In·alloc::str</a></h2></div></nav><div·class="sidebar-resizer"></div>1 <!DOCTYPE·html><html·lang="en"><head><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.write(`<link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/SourceSerif4-Regular-46f98efaafac5295.ttf.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/FiraSans-Regular-018c141bf0843ffd.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/FiraSans-Medium-8f9a781e4970d388.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/SourceCodePro-Regular-562dcc5011b6de7d.ttf.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/SourceCodePro-Semibold-d899c5a5c4aeb14a.ttf.woff2">`)</script><link·rel="stylesheet"·href="../../static.files/normalize-76eba96aa4d2e634.css"><link·rel="stylesheet"·href="../../static.files/rustdoc-35f9e32502181f1e.css"><meta·name="rustdoc-vars"·data-root-path="../../"·data-static-root-path="../../static.files/"·data-current-crate="alloc"·data-themes=""·data-resource-suffix="1.78.0"·data-rustdoc-version="1.78.0"·data-channel="1.78.0"·data-search-js="search-42d8da7a6b9792c2.js"·data-settings-js="settings-4313503d2e1961c2.js"·><script·src="../../static.files/storage-4c98445ec4002617.js"></script><script·defer·src="sidebar-items1.78.0.js"></script><script·defer·src="../../static.files/main-12cf3b4f4f9dc36d.js"></script><noscript><link·rel="stylesheet"·href="../../static.files/noscript-04d5337699b92874.css"></noscript><link·rel="alternate·icon"·type="image/png"·href="../../static.files/favicon-16x16-8b506e7a72182f1c.png"><link·rel="alternate·icon"·type="image/png"·href="../../static.files/favicon-32x32-422f7d1d52889060.png"><link·rel="icon"·type="image/svg+xml"·href="../../static.files/favicon-2c020d218678b618.svg"></head><body·class="rustdoc·struct"><!--[if·lte·IE·11]><div·class="warning">This·old·browser·is·unsupported·and·will·most·likely·display·funky·things.</div><![endif]--><nav·class="mobile-topbar"><button·class="sidebar-menu-toggle"·title="show·sidebar"></button><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-151179464ae7ed46.svg"·alt=""></a></nav><nav·class="sidebar"><div·class="sidebar-crate"><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-151179464ae7ed46.svg"·alt="logo"></a><h2><a·href="../../alloc/index.html">alloc</a><span·class="version">1.78.0</span></h2></div><h2·class="location"><a·href="#">EncodeUtf16</a></h2><div·class="sidebar-elems"><section><h3><a·href="#trait-implementations">Trait·Implementations</a></h3><ul·class="block·trait-implementation"><li><a·href="#impl-Clone-for-EncodeUtf16%3C'a%3E">Clone</a></li><li><a·href="#impl-Debug-for-EncodeUtf16%3C'_%3E">Debug</a></li><li><a·href="#impl-FusedIterator-for-EncodeUtf16%3C'_%3E">FusedIterator</a></li><li><a·href="#impl-Iterator-for-EncodeUtf16%3C'a%3E">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">Freeze</a></li><li><a·href="#impl-RefUnwindSafe-for-EncodeUtf16%3C'a%3E">RefUnwindSafe</a></li><li><a·href="#impl-Send-for-EncodeUtf16%3C'a%3E">Send</a></li><li><a·href="#impl-Sync-for-EncodeUtf16%3C'a%3E">Sync</a></li><li><a·href="#impl-Unpin-for-EncodeUtf16%3C'a%3E">Unpin</a></li><li><a·href="#impl-UnwindSafe-for-EncodeUtf16%3C'a%3E">UnwindSafe</a></li></ul><h3><a·href="#blanket-implementations">Blanket·Implementations</a></h3><ul·class="block·blanket-implementation"><li><a·href="#impl-Any-for-T">Any</a></li><li><a·href="#impl-Borrow%3CT%3E-for-T">Borrow&lt;T&gt;</a></li><li><a·href="#impl-BorrowMut%3CT%3E-for-T">BorrowMut&lt;T&gt;</a></li><li><a·href="#impl-From%3CT%3E-for-T">From&lt;T&gt;</a></li><li><a·href="#impl-Into%3CU%3E-for-T">Into&lt;U&gt;</a></li><li><a·href="#impl-IntoIterator-for-I">IntoIterator</a></li><li><a·href="#impl-ToOwned-for-T">ToOwned</a></li><li><a·href="#impl-TryFrom%3CU%3E-for-T">TryFrom&lt;U&gt;</a></li><li><a·href="#impl-TryInto%3CU%3E-for-T">TryInto&lt;U&gt;</a></li></ul></section><h2><a·href="index.html">In·alloc::str</a></h2></div></nav><div·class="sidebar-resizer"></div>
2 ····<main><div·class="width-limiter"><nav·class="sub"><form·class="search-form"><span></span><div·id="sidebar-button"·tabindex="-1"><a·href="../../alloc/all.html"·title="show·sidebar"></a></div><input·class="search-input"·name="search"·aria-label="Run·search·in·the·documentation"·autocomplete="off"·spellcheck="false"·placeholder="Click·or·press·‘S’·to·search,·‘?’·for·more·options…"·type="search"><div·id="help-button"·tabindex="-1"><a·href="../../help.html"·title="help">?</a></div><div·id="settings-menu"·tabindex="-1"><a·href="../../settings.html"·title="settings"><img·width="22"·height="22"·alt="Change·settings"·src="../../static.files/wheel-7b819b6101059cd0.svg"></a></div></form></nav><section·id="main-content"·class="content"><div·class="main-heading"><h1>Struct·<a·href="../index.html">alloc</a>::<wbr><a·href="index.html">str</a>::<wbr><a·class="struct"·href="#">EncodeUtf16</a><button·id="copy-path"·title="Copy·item·path·to·clipboard"><img·src="../../static.files/clipboard-7571035ce49a181d.svg"·width="19"·height="18"·alt="Copy·item·path"></button></h1><span·class="out-of-band"><span·class="since"·title="Stable·since·Rust·version·1.8.0">1.8.0</span>···<a·class="src"·href="../../src/core/str/iter.rs.html#1481">source</a>···<button·id="toggle-all-docs"·title="collapse·all·docs">[<span>&#x2212;</span>]</button></span></div><pre·class="rust·item-decl"><code>pub·struct·EncodeUtf16&lt;'a&gt;·{·<span·class="comment">/*·private·fie[·...·truncated·by·diffoscope;·len:·184,·SHA:·0d6cf4b5d241d506e242870fb9f8bfb2338517097bf5eb818dc3e40a7951991e·...·]/core/primitive.u16.html"·title="primitive·u16"><code>u16</code></a>·over·the·string·encoded·as·UTF-16.</p>2 ····<main><div·class="width-limiter"><nav·class="sub"><form·class="search-form"><span></span><div·id="sidebar-button"·tabindex="-1"><a·href="../../alloc/all.html"·title="show·sidebar"></a></div><input·class="search-input"·name="search"·aria-label="Run·search·in·the·documentation"·autocomplete="off"·spellcheck="false"·placeholder="Click·or·press·‘S’·to·search,·‘?’·for·more·options…"·type="search"><div·id="help-button"·tabindex="-1"><a·href="../../help.html"·title="help">?</a></div><div·id="settings-menu"·tabindex="-1"><a·href="../../settings.html"·title="settings"><img·width="22"·height="22"·alt="Change·settings"·src="../../static.files/wheel-7b819b6101059cd0.svg"></a></div></form></nav><section·id="main-content"·class="content"><div·class="main-heading"><h1>Struct·<a·href="../index.html">alloc</a>::<wbr><a·href="index.html">str</a>::<wbr><a·class="struct"·href="#">EncodeUtf16</a><button·id="copy-path"·title="Copy·item·path·to·clipboard"><img·src="../../static.files/clipboard-7571035ce49a181d.svg"·width="19"·height="18"·alt="Copy·item·path"></button></h1><span·class="out-of-band"><span·class="since"·title="Stable·since·Rust·version·1.8.0">1.8.0</span>···<a·class="src"·href="https://doc.rust-lang.org/1.78.0/src/core/str/iter.rs.html#1481">source</a>···<button·id="toggle-all-docs"·title="collapse·all·docs">[<span>&#x2212;</span>]</button></span></div><pre·class="rust·item-decl"><code>pub·struct·EncodeUtf16&lt;'a&gt;·{·<span·cla[·...·truncated·by·diffoscope;·len:·238,·SHA:·269089d95c15a9583638ac51e6e09c99fe92c9f2442ae9719f472cce8c2aedc6·...·]/core/primitive.u16.html"·title="primitive·u16"><code>u16</code></a>·over·the·string·encoded·as·UTF-16.</p>
3 <p>This·struct·is·created·by·the·<a·href="../../core/primitive.str.html#method.encode_utf16"·title="method·str::encode_utf16"><code>encode_utf16</code></a>·method·on·<a·href="../../core/primitive.str.html"·title="primitive·str"><code>str</code></a>.3 <p>This·struct·is·created·by·the·<a·href="https://doc.rust-lang.org/1.78.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.78.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="trait-implementations"·class="section-header">Trait·Implementations<a·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"><a·class="src·rightside"·href="../../src/core/str/iter.rs.html#1479">source</a><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</a>·fo[·...·truncated·by·diffoscope;·len:·6306,·SHA:·e673c3cddc7275a9de3764c54bdb1ed3628744f522597f1bae695447153c90dd·...·]/core/primitive.usize.html">usize</a>&gt;(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-EncodeUtf16%3C'a%3E"·class="impl"><a·class="src·rightside"·href="https://doc.rust-lang.org/1.78.0/src/core/str/iter.rs.html#1479">source</a><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.78.0/core/clone/trait.Clo[·...·truncated·by·diffoscope;·len:·7143,·SHA:·c3217f2894cbe39d7b31aa9ea7036c0e8857f7cd9fa9758cdbad603019b90118·...·]/core/primitive.usize.html">usize</a>&gt;(
6 ····&amp;mut·self6 ····&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::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">where7 )·-&gt;·<a·class="enum"·href="https://doc.rust-lang.org/1.78.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.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title=[·...·truncated·by·diffoscope;·len:·381,·SHA:·88c48923c9b7ea5cc47c1087c60e09656e81d4671c58071ba2bef826335388bc·...·]/core/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_ch[·...·truncated·by·diffoscope;·len:·827,·SHA:·602d17b58d1cf716882ddc867fc66cfda4f899bef17b038a48553e9133f60097·...·]/core/primitive.usize.html">usize</a><div·class="where">where8 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></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:·89791450da70cbd536c3cf8fbf2dd9891668362f9a252d3ee098222d19960bae·...·]/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/trait.I[·...·truncated·by·diffoscope;·len:·675,·SHA:·5b5aaec46c04cf77d2fa06e88cd6f0a2bd8d201412bc325302bd2f8f21b39207·...·]/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.78.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:·84ae0beb16240102bae2355bb8c543b17f3f107e3c06b320839aa401eebb1945·...·]/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#method.last[·...·truncated·by·diffoscope;·len:·2964,·SHA:·6b808f54a13578d2e276864bb3eb79ae7b452b8959e79f7ea7ab1180574b77fc·...·]/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.78.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.78.0/cor[·...·truncated·by·diffoscope;·len:·3504,·SHA:·6d21b6d637e0b2e9953a37a26fd19e00da089147d4acaf696c94d448de4ce419·...·]/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.78.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="Sta[·...·truncated·by·diffoscope;·len:·680,·SHA:·5667b9b6c9778ff3b9d23ed0a110e7ab9d3fccc786fdcaca8c17edf996236439·...·]/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.78.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:·e83c903581753673e083ce8dd809879a2fc81ab3050eb6db267d7fa26b15e035·...·]/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.78.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"·title=[·...·truncated·by·diffoscope;·len:·1113,·SHA:·1c6bb9803ee8832ebd4c28a08a952178165595b6870cf35d3c89454b9da828b2·...·]/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.78.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.78.0/core/iter/traits/it[·...·truncated·by·diffoscope;·len:·1329,·SHA:·d9299c8edc606ed82f24d61ce441bec451141d684c2a9a75074f5b19c57f196c·...·]/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.78.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="../../co[·...·truncated·by·diffoscope;·len:·559,·SHA:·c1b5e692e89c9c809075ee8ee72fb15a9ec46c075b08450e1f707d672a224750·...·]/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.78.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:·98627729f77dcf1c9d258f343354ba600b7134c6b3929080f231e8de7155b70b·...·]/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.78.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.78.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.78.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"·tit[·...·truncated·by·diffoscope;·len:·363,·SHA:·d6282409add0999f2130eb6bbe6d0473ce96bf2544799e8bc22156f3c2d2e0dd·...·]/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.78.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:·7301b6beba7b6885849be90a625df68ef739a5374af456c51fe2e81d91a25363·...·]/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.78.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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::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="Stab[·...·truncated·by·diffoscope;·len:·225,·SHA:·fb4c9589a16c7b6d697c109d1193d2f1e763e5dd967101c2fd92b32416972229·...·]/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.78.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:·98f6effefa44d759c249143d83623f0055d937382bfc398b7e1f5e92cd413657·...·]/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.78.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::[·...·truncated·by·diffoscope;·len:·754,·SHA:·7abbad666ec88a1053b8aca2a481d629a3ef3596eddb570c381205fa2d859a52·...·]/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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·916,·SHA:·30d0b2a76513c5a880e9aee43e92b18805845cfcfe5783f62dc090167a439e63·...·]/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.78.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:·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·element26 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·140,·SHA:·752f473b57e7444ebfddf5ea7fd40a332e83ec55524a6c31b5ee0f82a5dea819·...·]/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"·title=[·...·truncated·by·diffoscope;·len:·381,·SHA:·7da07154834a15b8ae55b4fd41479da070ccbd27e071909f81698570c306a081·...·]/core/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.78.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:·76aa2ad154f88085ee3f8a22721a7e6812680bac785d19059532407f50da1801·...·]/core/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.78.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::[·...·truncated·by·diffoscope;·len:·863,·SHA:·c89169e5bf1c4724c7b411e568b6dad6475896f2606f557b3d708359ef71f5cc·...·]/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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·1052,·SHA:·110b47c7083083d565fcfc89337fddc8e5c87e81b2f720f3f7b0ded55e8500fb·...·]/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.78.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"·title[·...·truncated·by·diffoscope;·len:·360,·SHA:·53634008856676c70c32b501f7ec498c1f86d123cc9b5b898256a69895ff31fc·...·]/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.78.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:·8464264e074dde5d84f0414ab3b5b2d8da83f3c9e3ca04c45458241580a8c80d·...·]/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"·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>·methods32 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.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.78.0/core/iter/adapte[·...·truncated·by·diffoscope;·len:·175,·SHA:·16fe7225bf05b478e2828b347c3d23ded9a22f89d8887a2c65d9f7b3faf1b0e7·...·]/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"·titl[·...·truncated·by·diffoscope;·len:·390,·SHA:·77dd41e041d66c618d306e900a9159cf1b00478b8f37e5692be62119a1d4fcda·...·]/core/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.78.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:·00ccbb673c11ed48d8c6aa2a3f8984fb298202e7bccfa42f1ac21290fcc0fb06·...·]/core/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.78.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:·1018,·SHA:·c18326af66652e52fa627bfd0312af7fa2ad0ddc162b12a46e61047a031b0264·...·]/core/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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·1234,·SHA:·3b805567411cdcebed740f9e8d400dbe7fb487504f40e284544a140155090fdf·...·]/core/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.78.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:·869,·SHA:·39eeddf219b211245393e51a591d5064c740fa9be49d88883d8a6474679741ad·...·]/core/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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·1058,·SHA:·b390dbdda8d7e93604b5ecd906a93efd03fe19bdaf41cf12893fd361bf974307·...·]/core/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.78.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::Iterator::[·...·truncated·by·diffoscope;·len:·947,·SHA:·9369fa85b74ff841f7401949cadba6dfbbbeead2a99568f20dcfd5aab20d61ab·...·]/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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·1163,·SHA:·5772149166d344bf8fa5ebbd9db8693a8f2e5f031c50338e8f1523ef72f814d6·...·]/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.Iterator.h[·...·truncated·by·diffoscope;·len:·621,·SHA:·a25e81a74cc82c1837477e2b0cea682fff9f43550640901b8010ac501ca69e3d·...·]/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.78.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:·6216516fe581c401abda3c95818192e8f030e2008c9bbdbaafebba16f33ea9bd·...·]/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.78.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="Stable·[·...·truncated·by·diffoscope;·len:·380,·SHA:·de8f1023275132502c1569b0ef9a557dc98eaf60aae97cdb916e52f9f55100aa·...·]/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.78.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:·485843399c56e24bdf020ff0610d0ce1f62fbac5530d9880a1a7417105e3d70f·...·]/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.78.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/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,·but45 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(<a·class="primitive"·href="https://doc.rust-lang.org/1.78.0/core/primitive.reference.html">&amp;mut·St</a>,·Self::<a·class="associatedty[·...·truncated·by·diffoscope;·len:·449,·SHA:·f12c268a8a8111b9e7126ad78bf5523a63733caa63d187c4fe792309ea41acdf·...·]/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">Read·more[·...·truncated·by·diffoscope;·len:·555,·SHA:·8b31595e3cee3022819032aac82e3df712188a2a6dcc20da6939262e5e528591·...·]/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.78.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.78.0/core/iter/trai[·...·truncated·by·diffoscope;·len:·690,·SHA:·371190e5c1bf9b7dde6e84447965a69946212b977b9eb6d89048fbe34c5dda1c·...·]/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.78.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.78.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::Iterator::[·...·truncated·by·diffoscope;·len:·787,·SHA:·9b6a337a3ad68c2a987b52450c153f87a04a8ed9e83603d26077fe6e70d61edf·...·]/core/iter/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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·976,·SHA:·2a9182f6fe88e0b8a9b1ae1f46cace940cc0b8736033c354c0f0ccbf1c196e7a·...·]/core/iter/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.78.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::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>·over51 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;[Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtyp[·...·truncated·by·diffoscope;·len:·135,·SHA:·0b06a6094d42ccbc8bce5b01c4383961fe7f1967f05e4c9f1ff33e71e425fb26·...·]/core/primitive.array.html">N</a>])·-&gt;·R,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iter_map_windows</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/87155">#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.78.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"·title="[·...·truncated·by·diffoscope;·len:·346,·SHA:·238f6b49b3e28d725c57040edaa60bfbb34f140155e6af1d30eab52da1c7274f·...·]/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.78.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:·0d33056cee8a4f9b70b573c0adecc2f3599a2f8d9fa9f2c2044e9118ab134f73·...·]/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="variant·cor[·...·truncated·by·diffoscope;·len:·679,·SHA:·cfd3edf89fe5aca24b994f83b0d7da765620394e35140e694d98233d4d92481b·...·]/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.78.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.78.0/core/op[·...·truncated·by·diffoscope;·len:·841,·SHA:·9cba1b175fb3726d7f1f01da9be7c1a56568a68e4ce7915a468b730902daf8d3·...·]/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.78.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::Itera[·...·truncated·by·diffoscope;·len:·772,·SHA:·31d2052382378512fa905c6d5297d384eac7b7f126141ce561719c0e27cc9d39·...·]/core/primitive.reference.html">&amp;mut·Self</a><div·class="where">where56 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·934,·SHA:·ea20d2e0fe9388580ea08100baa9120b5e9b6cb48f43fc846f15db8b9649e7f6·...·]/core/primitive.reference.html">&amp;mut·Self</a><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_ref">[·...·truncated·by·diffoscope;·len:·415,·SHA:·98760b16b1ed91f9558e6e2637724a4608316181d5f6f4d236e896a83eca9af9·...·]/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.78.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.78.0/core/it[·...·truncated·by·diffoscope;·len:·523,·SHA:·97064c705f6f4bdf74469c54fabcf580d21893127d1b4cd9a9c1018a717ef153·...·]/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.78.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.78.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">Read[·...·truncated·by·diffoscope;·len:·566,·SHA:·e5d524e874326d0b9b733f5ee809c6595cde869afab0cc3d4ba8454093f420da·...·]/core/primitive.reference.html">&amp;mut·E</a><div·class="where">where59 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.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.78.0/core/iter/tr[·...·truncated·by·diffoscope;·len:·728,·SHA:·01937c2dc314c259495665570ae249c94b4a5b0719718f5f1188e6fc64ecf487·...·]/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.78.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.78.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_collect[·...·truncated·by·diffoscope;·len:·840,·SHA:·b0297783e056393a542c4058b42c18523a86c961c1b6ce3bc94342c1a2c10c58·...·]/core/primitive.tuple.html">(B,·B)</a><div·class="where">where61 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></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:·00bd47017b1bdd1bbe2c3fc932d955a8aa2f7f5eff8c00e3001ae28a982a5883·...·]/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.78.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="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;,63 ····B:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/default/trait.Default.html"·title="trait·core::default::Default">Default</a>·+·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/collect/trait.Extend.html"·title="trait·core::iter::traits::collec[·...·truncated·by·diffoscope;·len:·95,·SHA:·8b3be1d0042cae0550f865faf5849221240bdf04eb1b2107605b72d48c3ad29c·...·]/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::Itera[·...·truncated·by·diffoscope;·len:·783,·SHA:·f8b50287f3e106633ed79a84072d3ddd9d98672efd685d2433c61b5549ce051e·...·]/core/primitive.bool.html">bool</a><div·class="where">where64 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·972,·SHA:·6de765542031617a9c28ac98fe6df619e58e62d9c65ec5b1c185a7152b8944e5·...·]/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.78.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:·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,66 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·135,·SHA:·51ff5f5c7ebd8440623ea71b125c5a5837e809e308fe1a13fbe19cddb941dbd9·...·]/core/primitive.bool.html">bool</a>,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iter_is_partitioned</code>&nbsp;<a·href="https://github.com/rust-lang/rust/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="since"·[·...·truncated·by·diffoscope;·len:·238,·SHA:·6f406a351b93047f56fa70265a6bf28ec6874f75cd6cc5a39d51c7af462f2992·...·]/core/iter/traits/iterator/trait.Iterator.html#method.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.78.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:·2c74873f4e5ba70004a1c7edd1cc3f9e2d91271295dd1591e2d26848df4c02ba·...·]/core/iter/traits/iterator/trait.Iterator.html#method.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.78.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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(B,·Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.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.78.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"·ti[·...·truncated·by·diffoscope;·len:·240,·SHA:·eecdce021399d206eb3ef5af12ee7663b4eb0dca55b0f411c7fa66f605b6b2e2·...·]/core/iter/traits/iterator/trait.Iterator.html#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.78.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:·52912e82c4b0a760d06f77eb4ee3a59ba70dd76cb532954900c73ae94c652674·...·]/core/iter/traits/iterator/trait.Iterator.html#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.78.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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.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.78.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.78.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"·title=[·...·truncated·by·diffoscope;·len:·226,·SHA:·ffdacd6b524bc823efebbf23dc0f77317a07fe9c8b691f2ea18db7aa0c08b146·...·]/core/iter/traits/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.78.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:·1d6c4809cea8748e901d3f94777f450d430f3161f6ac05ed1c178d9327f966a3·...·]/core/iter/traits/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.78.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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(B,·Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::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="Stabl[·...·truncated·by·diffoscope;·len:·484,·SHA:·dbe3a08fe63abd47570741e71208c31aaf51152feac5917db07665a1f56bb3e3·...·]/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.78.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:·b60215068a6d9721be05f81098c51167d7138c4042f140cad42f77c4df43f597·...·]/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.78.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::[·...·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·reducing80 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·352,·SHA:·e7c3c296abe2c0a183967153e4ae7fd50bafa2ae7088e3e78b3b48fee253adc6·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::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/core/iter[·...·truncated·by·diffoscope;·len:·136,·SHA:·a9dce8bb557b5a11426bf2ffcbd5eea7c6c870833e3ee5bb072dcaaa11687b0c·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_reduce"·class="fn">try_reduce</a>&lt;F,·R&gt;(81 operation.·<a·href="https://doc.rust-lang.org/1.78.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:·7a18fdd041b1a001b4a8feb289ee127fd9240232239269eb35dc3b8f74783ec9·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_reduce"·class="fn">try_reduce</a>&lt;F,·R&gt;(
82 ····&amp;mut·self,82 ····&amp;mut·self,
83 ····f:·F83 ····f:·F
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</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">where84 )·-&gt;·&lt;&lt;R·as·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&gt;::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/ops/try_trait/trait.Try.html#associatedtype.Residual"·title="type[·...·truncated·by·diffoscope;·len:·754,·SHA:·6fb4dfdb6b4da68921c1e7f8b75d99cf293d58318d684a840254ce9576957bea·...·]/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.78.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:·59,·SHA:·3d53eece7c48858eda31192ab2620ae144896b35400c945bbf3eb5dc06bf8d12·...·]/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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·140,·SHA:·c27972e6fa3464c9476eaa185e8657edb6bb294f148403f3d079285294a9f909·...·]/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·=·Self::<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.78.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.78.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</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·the88 ····&lt;R·as·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&gt;::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/ops/try_trait/trait.Try.html#associatedtype.Residual"·title="type[·...·truncated·by·diffoscope;·len:·412,·SHA:·22b8cbb007e5cce82b9d13a65bfa56aa8d83c32541fac25f4d9b3857b0540908·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;&gt;,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iterator_try_reduce</code>&nbsp;<a·href="https://github.com/rust-lang/rust/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="St[·...·truncated·by·diffoscope;·len:·368,·SHA:·65b80c848af6e465c8c5aef4ec8d3faaa399d30c8427c9507fda7b3bd1d3ea93·...·]/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.78.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:·bc0d658d56e348823de15386e1cd4ab49109f3a7a055a4573a19391b47071193·...·]/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.78.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:·829,·SHA:·95a840b532d3d621bde4032d63854eb0a481248e2b4bbb3ef058dbffb4dae4fa·...·]/core/primitive.bool.html">bool</a><div·class="where">where91 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·1018,·SHA:·e61cd6bdd36729cc38e57fcaea2ccb91a23a5acbda3c8986071f19bf1ecfc52a·...·]/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.78.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:·956,·SHA:·f828c62edd4fe85e217286f359b56c116e14ed18bb292ba1cc13d3ed7146909e·...·]/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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·1172,·SHA:·e64ab74d116d286191ad43d9d9e10411fc011c23724aa806e9a8f9b0be0757e3·...·]/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.78.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::Itera[·...·truncated·by·diffoscope;·len:·862,·SHA:·21d7086b3ce0092e3f7a6a41174339bbd8724e7d186158db4db3385a73d94e8e·...·]/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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·1051,·SHA:·ecc0b8fccd861464760f9ae047ff6ab98c91a1db010cb5fa59a8c2ab883db7c4·...·]/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.78.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:·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·returns97 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·130,·SHA:·130a13019dc175d02304b4f550157e2f13ac15c2f25a979c74161d10b146ab89·...·]/core/option/enum.Option.html"·title="enum·core::option::Option">Option</a>&lt;B&gt;,</div></h4></section></summary><div·class='docblock'>Applies·function·to·the·elements·of·iterator·and·returns
98 the·first·non-none·result.·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.find_map">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.try_find"·class="method·trait-impl"><a·class="src·rightside"·href="../../src/core/iter[·...·truncated·by·diffoscope;·len:·134,·SHA:·ac4da3337aac1ec10038e246be9cb719eeb5af1acc709f5a6a25b91900c56f53·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_find"·class="fn">try_find</a>&lt;F,·R&gt;(98 the·first·non-none·result.·<a·href="https://doc.rust-lang.org/1.78.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:·8ced1b10e78750774c5c8ed995ed83dcd13983aa75d329acf8069da106ab9f4a·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_find"·class="fn">try_find</a>&lt;F,·R&gt;(
99 ····&amp;mut·self,99 ····&amp;mut·self,
100 ····f:·F100 ····f:·F
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:·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">where101 )·-&gt;·&lt;&lt;R·as·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&gt;::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/ops/try_trait/trait.Try.html#associatedtype.Residual"·title="type[·...·truncated·by·diffoscope;·len:·626,·SHA:·95f9831257b68862cbcbf54f0ad2ff4e597a4c9f763112d1da8a0897dadcf872·...·]/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.78.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>(&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,103 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·R,
104 ····R:·<a·class="trait"·href="../../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.78.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.78.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</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·returns105 ····&lt;R·as·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&gt;::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/ops/try_trait/trait.Try.html#associatedtype.Residual"·title="type[·...·truncated·by·diffoscope;·len:·412,·SHA:·22b8cbb007e5cce82b9d13a65bfa56aa8d83c32541fac25f4d9b3857b0540908·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;&gt;,</div></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"·title=[·...·truncated·by·diffoscope;·len:·500,·SHA:·6f6d3020318163bcda361341111df240626dda893c7c1abae6fd12048bcff7a2·...·]/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.78.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:·fa9d94b216f6e4ce6035b4762e3bf17cb86a0272db0a55a056f05c68bcaeb0da·...·]/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.78.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::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">where108 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·1190,·SHA:·882e9e9a037f916d0ed4aa6d749399e6e01ca81811eacfc54a484818cb5d5029·...·]/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.78.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.78.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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/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"·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">where112 specified·function.·<a·href="https://doc.rust-lang.org/1.78.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:·0367b1bacc0a7d8e05f1c5181f8c4ea428f3f11edbae0e76811f3ef1d4925e41·...·]/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.78.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::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·the114 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·346,·SHA:·7113e4c2d65a123253bb18971efdc2d49241cfc2dd4c2b18e4cfa4e4d7d4140f·...·]/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"·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">where115 specified·comparison·function.·<a·href="https://doc.rust-lang.org/1.78.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:·db89d4cca0becf2a4ab904adac2870de6fd83cfad5131f5a1431a67766274f81·...·]/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.78.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.78.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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/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"·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">where119 specified·function.·<a·href="https://doc.rust-lang.org/1.78.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:·39ce6bc28062c0df48bff6a8faa3e4f2266988879092cf2970d2e9ee092742b0·...·]/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.78.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·minimum·value·with·respect·to·the121 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·346,·SHA:·7113e4c2d65a123253bb18971efdc2d49241cfc2dd4c2b18e4cfa4e4d7d4140f·...·]/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="Stab[·...·truncated·by·diffoscope;·len:·374,·SHA:·226a4802edd499ddb037006c2857fac9e6f09377237c3b627160791ee1a144db·...·]/core/primitive.tuple.html">(FromA,·FromB)</a><div·class="where">where122 specified·comparison·function.·<a·href="https://doc.rust-lang.org/1.78.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:·64f5ac8109ab8e5164c24b53640d938d0bb2486cf55faea0ff483f1e9ad27c8f·...·]/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.78.0/core/default/trait.Default.html"·title="trait·core::default::Default">Default</a>·+·<a·class="trait"·href="https://doc.rust-lang.org/1.78.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.78.0/core/default/trait.Default.html"·title="trait·core::default::Default">Default</a>·+·<a·class="trait"·href="https://doc.rust-lang.org/1.78.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="primitive"·h[·...·truncated·by·diffoscope;·len:·791,·SHA:·ddfc6ab5b04a5a9d2604baea549ca2df87d19343e0d63e1128eff1b803f662c7·...·]/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.78.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>·+·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html"·title="trait·core::iter::traits::iterator::I[·...·truncated·by·diffoscope;·len:·980,·SHA:·8f6df3c40809d9a55d4dab64faffa89b8268cb5f886608ccbcab921d7ab8e9fc·...·]/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.78.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="primitive"·h[·...·truncated·by·diffoscope;·len:·794,·SHA:·634519b2d242c65d05aaca6b24a1e4b8081f167afc322025b0f4b5d8bd0de1d4·...·]/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.78.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>·+·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html"·title="trait·core::iter::traits::iterator::I[·...·truncated·by·diffoscope;·len:·983,·SHA:·d7472ec42d940fce3a1b145fd6fd3540c4095b4b5e88360dcd07223d97d60b94·...·]/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; 83055/280841 bytes (29.57%) of diff not shown.
280 KB
./usr/share/doc/rust-web-doc/html/alloc/str/struct.EscapeDebug.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="The·return·type·of·`str::escape_debug`."><title>EscapeDebug·in·alloc::str·-·Rust</title><script>·if·(window.location.protocol·!==·"file:")·document.write(`<link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/SourceSerif4-Regular-46f98efaafac5295.ttf.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/FiraSans-Regular-018c141bf0843ffd.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/FiraSans-Medium-8f9a781e4970d388.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/SourceCodePro-Regular-562dcc5011b6de7d.ttf.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/SourceCodePro-Semibold-d899c5a5c4aeb14a.ttf.woff2">`)</script><link·rel="stylesheet"·href="../../static.files/normalize-76eba96aa4d2e634.css"><link·rel="stylesheet"·href="../../static.files/rustdoc-35f9e32502181f1e.css"><meta·name="rustdoc-vars"·data-root-path="../../"·data-static-root-path="../../static.files/"·data-current-crate="alloc"·data-themes=""·data-resource-suffix="1.78.0"·data-rustdoc-version="1.78.0"·data-channel="1.78.0"·data-search-js="search-42d8da7a6b9792c2.js"·data-settings-js="settings-4313503d2e1961c2.js"·><script·src="../../static.files/storage-4c98445ec4002617.js"></script><script·defer·src="sidebar-items1.78.0.js"></script><script·defer·src="../../static.files/main-12cf3b4f4f9dc36d.js"></script><noscript><link·rel="stylesheet"·href="../../static.files/noscript-04d5337699b92874.css"></noscript><link·rel="alternate·icon"·type="image/png"·href="../../static.files/favicon-16x16-8b506e7a72182f1c.png"><link·rel="alternate·icon"·type="image/png"·href="../../static.files/favicon-32x32-422f7d1d52889060.png"><link·rel="icon"·type="image/svg+xml"·href="../../static.files/favicon-2c020d218678b618.svg"></head><body·class="rustdoc·struct"><!--[if·lte·IE·11]><div·class="warning">This·old·browser·is·unsupported·and·will·most·likely·display·funky·things.</div><![endif]--><nav·class="mobile-topbar"><button·class="sidebar-menu-toggle"·title="show·sidebar"></button><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-151179464ae7ed46.svg"·alt=""></a></nav><nav·class="sidebar"><div·class="sidebar-crate"><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-151179464ae7ed46.svg"·alt="logo"></a><h2><a·href="../../alloc/index.html">alloc</a><span·class="version">1.78.0</span></h2></div><h2·class="location"><a·href="#">EscapeDebug</a></h2><div·class="sidebar-elems"><section><h3><a·href="#trait-implementations">Trait·Implementations</a></h3><ul·class="block·trait-implementation"><li><a·href="#impl-Clone-for-EscapeDebug%3C'a%3E">Clone</a></li><li><a·href="#impl-Debug-for-EscapeDebug%3C'a%3E">Debug</a></li><li><a·href="#impl-Display-for-EscapeDebug%3C'a%3E">Display</a></li><li><a·href="#impl-FusedIterator-for-EscapeDebug%3C'a%3E">FusedIterator</a></li><li><a·href="#impl-Iterator-for-EscapeDebug%3C'a%3E">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">Freeze</a></li><li><a·href="#impl-RefUnwindSafe-for-EscapeDebug%3C'a%3E">RefUnwindSafe</a></li><li><a·href="#impl-Send-for-EscapeDebug%3C'a%3E">Send</a></li><li><a·href="#impl-Sync-for-EscapeDebug%3C'a%3E">Sync</a></li><li><a·href="#impl-Unpin-for-EscapeDebug%3C'a%3E">Unpin</a></li><li><a·href="#impl-UnwindSafe-for-EscapeDebug%3C'a%3E">UnwindSafe</a></li></ul><h3><a·href="#blanket-implementations">Blanket·Implementations</a></h3><ul·class="block·blanket-implementation"><li><a·href="#impl-Any-for-T">Any</a></li><li><a·href="#impl-Borrow%3CT%3E-for-T">Borrow&lt;T&gt;</a></li><li><a·href="#impl-BorrowMut%3CT%3E-for-T">BorrowMut&lt;T&gt;</a></li><li><a·href="#impl-From%3CT%3E-for-T">From&lt;T&gt;</a></li><li><a·href="#impl-Into%3CU%3E-for-T">Into&lt;U&gt;</a></li><li><a·href="#impl-IntoIterator-for-I">IntoIterator</a></li><li><a·href="#impl-ToOwned-for-T">ToOwned</a></li><li><a·href="#impl-ToString-for-T">ToString</a></li><li><a·href="#impl-TryFrom%3CU%3E-for-T">TryFrom&lt;U&gt;</a></li><li><a·href="#impl-TryInto%3CU%3E-for-T">TryInto&lt;U&gt;</a></li></ul></section><h2><a·href="index.html">In·alloc::str</a></h2></div></nav><div·class="sidebar-resizer"></div>1 <!DOCTYPE·html><html·lang="en"><head><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.write(`<link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/SourceSerif4-Regular-46f98efaafac5295.ttf.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/FiraSans-Regular-018c141bf0843ffd.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/FiraSans-Medium-8f9a781e4970d388.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/SourceCodePro-Regular-562dcc5011b6de7d.ttf.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/SourceCodePro-Semibold-d899c5a5c4aeb14a.ttf.woff2">`)</script><link·rel="stylesheet"·href="../../static.files/normalize-76eba96aa4d2e634.css"><link·rel="stylesheet"·href="../../static.files/rustdoc-35f9e32502181f1e.css"><meta·name="rustdoc-vars"·data-root-path="../../"·data-static-root-path="../../static.files/"·data-current-crate="alloc"·data-themes=""·data-resource-suffix="1.78.0"·data-rustdoc-version="1.78.0"·data-channel="1.78.0"·data-search-js="search-42d8da7a6b9792c2.js"·data-settings-js="settings-4313503d2e1961c2.js"·><script·src="../../static.files/storage-4c98445ec4002617.js"></script><script·defer·src="sidebar-items1.78.0.js"></script><script·defer·src="../../static.files/main-12cf3b4f4f9dc36d.js"></script><noscript><link·rel="stylesheet"·href="../../static.files/noscript-04d5337699b92874.css"></noscript><link·rel="alternate·icon"·type="image/png"·href="../../static.files/favicon-16x16-8b506e7a72182f1c.png"><link·rel="alternate·icon"·type="image/png"·href="../../static.files/favicon-32x32-422f7d1d52889060.png"><link·rel="icon"·type="image/svg+xml"·href="../../static.files/favicon-2c020d218678b618.svg"></head><body·class="rustdoc·struct"><!--[if·lte·IE·11]><div·class="warning">This·old·browser·is·unsupported·and·will·most·likely·display·funky·things.</div><![endif]--><nav·class="mobile-topbar"><button·class="sidebar-menu-toggle"·title="show·sidebar"></button><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-151179464ae7ed46.svg"·alt=""></a></nav><nav·class="sidebar"><div·class="sidebar-crate"><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-151179464ae7ed46.svg"·alt="logo"></a><h2><a·href="../../alloc/index.html">alloc</a><span·class="version">1.78.0</span></h2></div><h2·class="location"><a·href="#">EscapeDebug</a></h2><div·class="sidebar-elems"><section><h3><a·href="#trait-implementations">Trait·Implementations</a></h3><ul·class="block·trait-implementation"><li><a·href="#impl-Clone-for-EscapeDebug%3C'a%3E">Clone</a></li><li><a·href="#impl-Debug-for-EscapeDebug%3C'a%3E">Debug</a></li><li><a·href="#impl-Display-for-EscapeDebug%3C'a%3E">Display</a></li><li><a·href="#impl-FusedIterator-for-EscapeDebug%3C'a%3E">FusedIterator</a></li><li><a·href="#impl-Iterator-for-EscapeDebug%3C'a%3E">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">Freeze</a></li><li><a·href="#impl-RefUnwindSafe-for-EscapeDebug%3C'a%3E">RefUnwindSafe</a></li><li><a·href="#impl-Send-for-EscapeDebug%3C'a%3E">Send</a></li><li><a·href="#impl-Sync-for-EscapeDebug%3C'a%3E">Sync</a></li><li><a·href="#impl-Unpin-for-EscapeDebug%3C'a%3E">Unpin</a></li><li><a·href="#impl-UnwindSafe-for-EscapeDebug%3C'a%3E">UnwindSafe</a></li></ul><h3><a·href="#blanket-implementations">Blanket·Implementations</a></h3><ul·class="block·blanket-implementation"><li><a·href="#impl-Any-for-T">Any</a></li><li><a·href="#impl-Borrow%3CT%3E-for-T">Borrow&lt;T&gt;</a></li><li><a·href="#impl-BorrowMut%3CT%3E-for-T">BorrowMut&lt;T&gt;</a></li><li><a·href="#impl-From%3CT%3E-for-T">From&lt;T&gt;</a></li><li><a·href="#impl-Into%3CU%3E-for-T">Into&lt;U&gt;</a></li><li><a·href="#impl-IntoIterator-for-I">IntoIterator</a></li><li><a·href="#impl-ToOwned-for-T">ToOwned</a></li><li><a·href="#impl-ToString-for-T">ToString</a></li><li><a·href="#impl-TryFrom%3CU%3E-for-T">TryFrom&lt;U&gt;</a></li><li><a·href="#impl-TryInto%3CU%3E-for-T">TryInto&lt;U&gt;</a></li></ul></section><h2><a·href="index.html">In·alloc::str</a></h2></div></nav><div·class="sidebar-resizer"></div>
2 ····<main><div·class="width-limiter"><nav·class="sub"><form·class="search-form"><span></span><div·id="sidebar-button"·tabindex="-1"><a·href="../../alloc/all.html"·title="show·sidebar"></a></div><input·class="search-input"·name="search"·aria-label="Run·search·in·the·documentation"·autocomplete="off"·spellcheck="false"·placeholder="Click·or·press·‘S’·to·search,·‘?’·for·more·options…"·type="search"><div·id="help-button"·tabindex="-1"><a·href="../../help.html"·title="help">?</a></div><div·id="settings-menu"·tabindex="-1"><a·href="../../settings.html"·title="settings"><img·width="22"·height="22"·alt="Change·settings"·src="../../static.files/wheel-7b819b6101059cd0.svg"></a></div></form></nav><section·id="main-content"·class="content"><div·class="main-heading"><h1>Struct·<a·href="../index.html">alloc</a>::<wbr><a·href="index.html">str</a>::<wbr><a·class="struct"·href="#">EscapeDebug</a><button·id="copy-path"·title="Copy·item·path·to·clipboard"><img·src="../../static.files/clipboard-7571035ce49a181d.svg"·width="19"·height="18"·alt="Copy·item·path"></button></h1><span·class="out-of-band"><span·class="since"·title="Stable·since·Rust·version·1.34.0">1.34.0</span>···<a·class="src"·href="../../src/core/str/iter.rs.html#1542">source</a>···<button·id="toggle-all-docs"·title="collapse·all·docs">[<span>&#x2212;</span>]</button></span></div><pre·class="rust·item-decl"><code>pub·struct·EscapeDebug&lt;'a&gt;·{·<span·class="comment">/*·private·fie[·...·truncated·by·diffoscope;·len:·188,·SHA:·3c5e7e48f558066b1d770521b219c32b3c1e6ac59675d762466ff27e11420e28·...·]/core/primitive.str.html#method.escape_debug"·title="method·str::escape_debug"><code>str::escape_debug</code></a>.</p>2 ····<main><div·class="width-limiter"><nav·class="sub"><form·class="search-form"><span></span><div·id="sidebar-button"·tabindex="-1"><a·href="../../alloc/all.html"·title="show·sidebar"></a></div><input·class="search-input"·name="search"·aria-label="Run·search·in·the·documentation"·autocomplete="off"·spellcheck="false"·placeholder="Click·or·press·‘S’·to·search,·‘?’·for·more·options…"·type="search"><div·id="help-button"·tabindex="-1"><a·href="../../help.html"·title="help">?</a></div><div·id="settings-menu"·tabindex="-1"><a·href="../../settings.html"·title="settings"><img·width="22"·height="22"·alt="Change·settings"·src="../../static.files/wheel-7b819b6101059cd0.svg"></a></div></form></nav><section·id="main-content"·class="content"><div·class="main-heading"><h1>Struct·<a·href="../index.html">alloc</a>::<wbr><a·href="index.html">str</a>::<wbr><a·class="struct"·href="#">EscapeDebug</a><button·id="copy-path"·title="Copy·item·path·to·clipboard"><img·src="../../static.files/clipboard-7571035ce49a181d.svg"·width="19"·height="18"·alt="Copy·item·path"></button></h1><span·class="out-of-band"><span·class="since"·title="Stable·since·Rust·version·1.34.0">1.34.0</span>···<a·class="src"·href="https://doc.rust-lang.org/1.78.0/src/core/str/iter.rs.html#1542">source</a>···<button·id="toggle-all-docs"·title="collapse·all·docs">[<span>&#x2212;</span>]</button></span></div><pre·class="rust·item-decl"><code>pub·struct·EscapeDebug&lt;'a&gt;·{·<span·cla[·...·truncated·by·diffoscope;·len:·242,·SHA:·a0b7c0b7d81410b40d9f58f4e95fdc710adc8d2bffe20296a4e4df95ea7b6900·...·]/core/primitive.str.html#method.escape_debug"·title="method·str::escape_debug"><code>str::escape_debug</code></a>.</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-Clone-for-EscapeDebug%3C'a%3E"·class="impl"><a·class="src·rightside"·href="../../src/core/str/iter.rs.html#1541">source</a><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</a>·fo[·...·truncated·by·diffoscope;·len:·7560,·SHA:·f8fd8144ec65710b543774f7e143fa59d203a403497b0d814b3741a44226d904·...·]/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">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-Clone-for-EscapeDebug%3C'a%3E"·class="impl"><a·class="src·rightside"·href="https://doc.rust-lang.org/1.78.0/src/core/str/iter.rs.html#1541">source</a><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.78.0/core/clone/trait.Clo[·...·truncated·by·diffoscope;·len:·8478,·SHA:·058a672829055be23e06ce07f81e875c9a13408933f328578320d20a639da55a·...·]/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
4 ····<a·class="struct"·href="struct.EscapeDebug.html"·title="struct·alloc::str::EscapeDebug">EscapeDebug</a>&lt;'a&gt;:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,4 ····<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.78.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
5 ····Fold:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Acc,·&lt;<a·class="struct"·href="struct.EscapeDebug.html"·title="struct·alloc::str::EscapeDebug">EscapeDebug</a>&lt;'a&gt;·as·<a·class="trait"·href="../../core/ite[·...·truncated·by·diffoscope;·len:·147,·SHA:·51c8a5a93e355d5300a6d26358bfb363dcf513d8c374649e3a582d9815f36a5c·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·R,5 ····Fold:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.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:·2fffe122b8dd1add3a5d1a5a7b1d1575b7e8ae47447982166d7b3fbda6f588b6·...·]/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·=·Acc&gt;,</div></h4></section></summary><div·class='docblock'>An·iterator·method·that·applies·a·function·as·long·as·it·returns6 ····R:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.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
7 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:·220ac8a8e0a4b6d6d2c8a74ae99f726e41c987632967ce5f15dd4090057866ba·...·]/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">where7 successfully,·producing·a·single,·final·value.·<a·href="https://doc.rust-lang.org/1.78.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:·abb30099fcc8cb59ae37cb3062112f5669ab93fc76a9bcb347d4824765464b7c·...·]/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
8 ····Fold:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Acc,·&lt;<a·class="struct"·href="struct.EscapeDebug.html"·title="struct·alloc::str::EscapeDebug">EscapeDebug</a>&lt;'a&gt;·as·<a·class="trait"·href="../../core/ite[·...·truncated·by·diffoscope;·len:·147,·SHA:·51c8a5a93e355d5300a6d26358bfb363dcf513d8c374649e3a582d9815f36a5c·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·Acc,</div></h4></section></summary><div·class='docblock'>Folds·every·element·into·an·accumulator·by·applying·an·operation,8 ····Fold:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.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:·2fffe122b8dd1add3a5d1a5a7b1d1575b7e8ae47447982166d7b3fbda6f588b6·...·]/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,
9 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:·873923466e86cc7b413cead1f309a1f1d871d8cc3d6e4f18eb02a72f06d14ed7·...·]/core/primitive.usize.html">usize</a>&gt;(9 returning·the·final·result.·<a·href="https://doc.rust-lang.org/1.78.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:·6e6478099b84b19aef63d4506f761578426c571fbb374eef4c590e1ef5f5fe3c·...·]/core/primitive.usize.html">usize</a>&gt;(
10 ····&amp;mut·self10 ····&amp;mut·self
11 )·-&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">where11 )·-&gt;·<a·class="enum"·href="https://doc.rust-lang.org/1.78.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.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title=[·...·truncated·by·diffoscope;·len:·381,·SHA:·88c48923c9b7ea5cc47c1087c60e09656e81d4671c58071ba2bef826335388bc·...·]/core/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
12 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></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:·602d17b58d1cf716882ddc867fc66cfda4f899bef17b038a48553e9133f60097·...·]/core/primitive.usize.html">usize</a><div·class="where">where12 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></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:·89791450da70cbd536c3cf8fbf2dd9891668362f9a252d3ee098222d19960bae·...·]/core/primitive.usize.html">usize</a><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,·counting·the·number·of·iterations·and·returning·it.·<a·href="../../core/iter/traits/iterator/trait.I[·...·truncated·by·diffoscope;·len:·675,·SHA:·5b5aaec46c04cf77d2fa06e88cd6f0a2bd8d201412bc325302bd2f8f21b39207·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;<div·class="where">where13 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.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:·84ae0beb16240102bae2355bb8c543b17f3f107e3c06b320839aa401eebb1945·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&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'>Consumes·the·iterator,·returning·the·last·element.·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.last[·...·truncated·by·diffoscope;·len:·2964,·SHA:·6b808f54a13578d2e276864bb3eb79ae7b452b8959e79f7ea7ab1180574b77fc·...·]/core/iter/adapters/step_by/struct.StepBy.html"·title="struct·core::iter::adapters::step_by::StepBy">StepBy</a>&lt;Self&gt;<div·class="where">where14 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.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.78.0/cor[·...·truncated·by·diffoscope;·len:·3504,·SHA:·6d21b6d637e0b2e9953a37a26fd19e00da089147d4acaf696c94d448de4ce419·...·]/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
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'>Creates·an·iterator·starting·at·the·same·point,·but·stepping·by15 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.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
16 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:·5667b9b6c9778ff3b9d23ed0a110e7ab9d3fccc786fdcaca8c17edf996236439·...·]/core/iter/traits/collect/trait.IntoIterator.html#associatedtype.IntoIter"·title="type·core::iter::traits::collect::IntoIterator::IntoIter">IntoIter</a>&gt;<div·class="where">where16 the·given·amount·at·each·iteration.·<a·href="https://doc.rust-lang.org/1.78.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:·e83c903581753673e083ce8dd809879a2fc81ab3050eb6db267d7fa26b15e035·...·]/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.78.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>&lt;Item·=·Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title=[·...·truncated·by·diffoscope;·len:·1113,·SHA:·1c6bb9803ee8832ebd4c28a08a952178165595b6870cf35d3c89454b9da828b2·...·]/core/iter/traits/collect/trait.IntoIterator.html#associatedtype.IntoIter"·title="type·core::iter::traits::collect::IntoIterator::IntoIter">IntoIter</a>&gt;<div·class="where">where18 ····U:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.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.78.0/core/iter/traits/it[·...·truncated·by·diffoscope;·len:·1329,·SHA:·d9299c8edc606ed82f24d61ce441bec451141d684c2a9a75074f5b19c57f196c·...·]/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.78.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>,</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:·c1b5e692e89c9c809075ee8ee72fb15a9ec46c075b08450e1f707d672a224750·...·]/core/iter/adapters/intersperse/struct.IntersperseWith.html"·title="struct·core::iter::adapters::intersperse::IntersperseWith">IntersperseWith</a>&lt;Self,·G&gt;<div·class="where">where20 ····U:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.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:·98627729f77dcf1c9d258f343354ba600b7134c6b3929080f231e8de7155b70b·...·]/core/iter/adapters/intersperse/struct.IntersperseWith.html"·title="struct·core::iter::adapters::intersperse::IntersperseWith">IntersperseWith</a>&lt;Self,·G&gt;<div·class="where">where
21 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,21 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
22 ····G:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>()·-&gt;·Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iter_intersperse</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/79524">#79524</a>)</span></div></span><div·class='docblock'>Creates·a·new·iterator·which·places·an·item·generated·by·<code>separator</code>22 ····G:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.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.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iter_intersperse</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/79524">#79524</a>)</span></div></span><div·class='docblock'>Creates·a·new·iterator·which·places·an·item·generated·by·<code>separator</code>
23 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:·d6282409add0999f2130eb6bbe6d0473ce96bf2544799e8bc22156f3c2d2e0dd·...·]/core/iter/adapters/map/struct.Map.html"·title="struct·core::iter::adapters::map::Map">Map</a>&lt;Self,·F&gt;<div·class="where">where23 between·adjacent·items·of·the·original·iterator.·<a·href="https://doc.rust-lang.org/1.78.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:·7301b6beba7b6885849be90a625df68ef739a5374af456c51fe2e81d91a25363·...·]/core/iter/adapters/map/struct.Map.html"·title="struct·core::iter::adapters::map::Map">Map</a>&lt;Self,·F&gt;<div·class="where">where
24 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,24 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.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::Iterator::Item">Item</a>)·-&gt;·B,</div></h4></section></summary><div·class='docblock'>Takes·a·closure·and·creates·an·iterator·which·calls·that·closure·on·each25 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·B,</div></h4></section></summary><div·class='docblock'>Takes·a·closure·and·creates·an·iterator·which·calls·that·closure·on·each
26 element.·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.map">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:·fb4c9589a16c7b6d697c109d1193d2f1e763e5dd967101c2fd92b32416972229·...·]/core/iter/traits/iterator/trait.Iterator.html#method.for_each"·class="fn">for_each</a>&lt;F&gt;(self,·f:·F)<div·class="where">where26 element.·<a·href="https://doc.rust-lang.org/1.78.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:·98f6effefa44d759c249143d83623f0055d937382bfc398b7e1f5e92cd413657·...·]/core/iter/traits/iterator/trait.Iterator.html#method.for_each"·class="fn">for_each</a>&lt;F&gt;(self,·f:·F)<div·class="where">where
27 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,27 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.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:·754,·SHA:·7abbad666ec88a1053b8aca2a481d629a3ef3596eddb570c381205fa2d859a52·...·]/core/iter/adapters/filter/struct.Filter.html"·title="struct·core::iter::adapters::filter::Filter">Filter</a>&lt;Self,·P&gt;<div·class="where">where28 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·916,·SHA:·30d0b2a76513c5a880e9aee43e92b18805845cfcfe5783f62dc090167a439e63·...·]/core/iter/adapters/filter/struct.Filter.html"·title="struct·core::iter::adapters::filter::Filter">Filter</a>&lt;Self,·P&gt;<div·class="where">where
29 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,29 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.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:·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·element30 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·140,·SHA:·752f473b57e7444ebfddf5ea7fd40a332e83ec55524a6c31b5ee0f82a5dea819·...·]/core/primitive.bool.html">bool</a>,</div></h4></section></summary><div·class='docblock'>Creates·an·iterator·which·uses·a·closure·to·determine·if·an·element
31 should·be·yielded.·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.filter">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:·7da07154834a15b8ae55b4fd41479da070ccbd27e071909f81698570c306a081·...·]/core/iter/adapters/filter_map/struct.FilterMap.html"·title="struct·core::iter::adapters::filter_map::FilterMap">FilterMap</a>&lt;Self,·F&gt;<div·class="where">where31 should·be·yielded.·<a·href="https://doc.rust-lang.org/1.78.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:·76aa2ad154f88085ee3f8a22721a7e6812680bac785d19059532407f50da1801·...·]/core/iter/adapters/filter_map/struct.FilterMap.html"·title="struct·core::iter::adapters::filter_map::FilterMap">FilterMap</a>&lt;Self,·F&gt;<div·class="where">where
32 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,32 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.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:·863,·SHA:·c89169e5bf1c4724c7b411e568b6dad6475896f2606f557b3d708359ef71f5cc·...·]/core/iter/adapters/enumerate/struct.Enumerate.html"·title="struct·core::iter::adapters::enumerate::Enumerate">Enumerate</a>&lt;Self&gt;<div·class="where">where33 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·1052,·SHA:·110b47c7083083d565fcfc89337fddc8e5c87e81b2f720f3f7b0ded55e8500fb·...·]/core/iter/adapters/enumerate/struct.Enumerate.html"·title="struct·core::iter::adapters::enumerate::Enumerate">Enumerate</a>&lt;Self&gt;<div·class="where">where
34 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Creates·an·iterator·which·gives·the·current·iteration·count·as·well·as34 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.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
35 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:·53634008856676c70c32b501f7ec498c1f86d123cc9b5b898256a69895ff31fc·...·]/core/iter/adapters/peekable/struct.Peekable.html"·title="struct·core::iter::adapters::peekable::Peekable">Peekable</a>&lt;Self&gt;<div·class="where">where35 the·next·value.·<a·href="https://doc.rust-lang.org/1.78.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:·8464264e074dde5d84f0414ab3b5b2d8da83f3c9e3ca04c45458241580a8c80d·...·]/core/iter/adapters/peekable/struct.Peekable.html"·title="struct·core::iter::adapters::peekable::Peekable">Peekable</a>&lt;Self&gt;<div·class="where">where
36 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.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>·methods36 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.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.78.0/core/iter/adapte[·...·truncated·by·diffoscope;·len:·175,·SHA:·16fe7225bf05b478e2828b347c3d23ded9a22f89d8887a2c65d9f7b3faf1b0e7·...·]/core/iter/adapters/peekable/struct.Peekable.html#method.peek_mut"·title="method·core::iter::adapters::peekable::Peekable::peek_mut"><code>peek_mut</code></a>·methods
37 to·look·at·the·next·element·of·the·iterator·without·consuming·it.·See37 to·look·at·the·next·element·of·the·iterator·without·consuming·it.·See
38 their·documentation·for·more·information.·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.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:·77dd41e041d66c618d306e900a9159cf1b00478b8f37e5692be62119a1d4fcda·...·]/core/iter/adapters/skip_while/struct.SkipWhile.html"·title="struct·core::iter::adapters::skip_while::SkipWhile">SkipWhile</a>&lt;Self,·P&gt;<div·class="where">where38 their·documentation·for·more·information.·<a·href="https://doc.rust-lang.org/1.78.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:·00ccbb673c11ed48d8c6aa2a3f8984fb298202e7bccfa42f1ac21290fcc0fb06·...·]/core/iter/adapters/skip_while/struct.SkipWhile.html"·title="struct·core::iter::adapters::skip_while::SkipWhile">SkipWhile</a>&lt;Self,·P&gt;<div·class="where">where
39 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,39 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.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:·1018,·SHA:·c18326af66652e52fa627bfd0312af7fa2ad0ddc162b12a46e61047a031b0264·...·]/core/iter/adapters/take_while/struct.TakeWhile.html"·title="struct·core::iter::adapters::take_while::TakeWhile">TakeWhile</a>&lt;Self,·P&gt;<div·class="where">where40 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·1234,·SHA:·3b805567411cdcebed740f9e8d400dbe7fb487504f40e284544a140155090fdf·...·]/core/iter/adapters/take_while/struct.TakeWhile.html"·title="struct·core::iter::adapters::take_while::TakeWhile">TakeWhile</a>&lt;Self,·P&gt;<div·class="where">where
41 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,41 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.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:·869,·SHA:·39eeddf219b211245393e51a591d5064c740fa9be49d88883d8a6474679741ad·...·]/core/iter/adapters/map_while/struct.MapWhile.html"·title="struct·core::iter::adapters::map_while::MapWhile">MapWhile</a>&lt;Self,·P&gt;<div·class="where">where42 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·1058,·SHA:·b390dbdda8d7e93604b5ecd906a93efd03fe19bdaf41cf12893fd361bf974307·...·]/core/iter/adapters/map_while/struct.MapWhile.html"·title="struct·core::iter::adapters::map_while::MapWhile">MapWhile</a>&lt;Self,·P&gt;<div·class="where">where
43 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,43 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.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>(Self::<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:·9369fa85b74ff841f7401949cadba6dfbbbeead2a99568f20dcfd5aab20d61ab·...·]/core/iter/adapters/skip/struct.Skip.html"·title="struct·core::iter::adapters::skip::Skip">Skip</a>&lt;Self&gt;<div·class="where">where44 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·1163,·SHA:·5772149166d344bf8fa5ebbd9db8693a8f2e5f031c50338e8f1523ef72f814d6·...·]/core/iter/adapters/skip/struct.Skip.html"·title="struct·core::iter::adapters::skip::Skip">Skip</a>&lt;Self&gt;<div·class="where">where
45 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::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:·a25e81a74cc82c1837477e2b0cea682fff9f43550640901b8010ac501ca69e3d·...·]/core/iter/adapters/take/struct.Take.html"·title="struct·core::iter::adapters::take::Take">Take</a>&lt;Self&gt;<div·class="where">where45 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.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:·6216516fe581c401abda3c95818192e8f030e2008c9bbdbaafebba16f33ea9bd·...·]/core/iter/adapters/take/struct.Take.html"·title="struct·core::iter::adapters::take::Take">Take</a>&lt;Self&gt;<div·class="where">where
46 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Creates·an·iterator·that·yields·the·first·<code>n</code>·elements,·or·fewer46 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.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
47 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:·de8f1023275132502c1569b0ef9a557dc98eaf60aae97cdb916e52f9f55100aa·...·]/core/iter/adapters/scan/struct.Scan.html"·title="struct·core::iter::adapters::scan::Scan">Scan</a>&lt;Self,·St,·F&gt;<div·class="where">where47 if·the·underlying·iterator·ends·sooner.·<a·href="https://doc.rust-lang.org/1.78.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:·485843399c56e24bdf020ff0610d0ce1f62fbac5530d9880a1a7417105e3d70f·...·]/core/iter/adapters/scan/struct.Scan.html"·title="struct·core::iter::adapters::scan::Scan">Scan</a>&lt;Self,·St,·F&gt;<div·class="where">where
48 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,48 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.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>(<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,·but49 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(<a·class="primitive"·href="https://doc.rust-lang.org/1.78.0/core/primitive.reference.html">&amp;mut·St</a>,·Self::<a·class="associatedty[·...·truncated·by·diffoscope;·len:·449,·SHA:·f12c268a8a8111b9e7126ad78bf5523a63733caa63d187c4fe792309ea41acdf·...·]/core/iter/traits/iterator/trait.Iterator.html#method.fold"·title="method·core::iter::traits::iterator::Iterator::fold"><code>fold</code></a>,·holds·internal·state,·but
50 unlike·<a·href="../../core/iter/traits/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:·8b31595e3cee3022819032aac82e3df712188a2a6dcc20da6939262e5e528591·...·]/core/iter/adapters/flatten/struct.FlatMap.html"·title="struct·core::iter::adapters::flatten::FlatMap">FlatMap</a>&lt;Self,·U,·F&gt;<div·class="where">where50 unlike·<a·href="https://doc.rust-lang.org/1.78.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.78.0/core/iter/trai[·...·truncated·by·diffoscope;·len:·690,·SHA:·371190e5c1bf9b7dde6e84447965a69946212b977b9eb6d89048fbe34c5dda1c·...·]/core/iter/adapters/flatten/struct.FlatMap.html"·title="struct·core::iter::adapters::flatten::FlatMap">FlatMap</a>&lt;Self,·U,·F&gt;<div·class="where">where
51 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,51 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
52 ····U:·<a·class="trait"·href="../../core/iter/traits/collect/trait.IntoIterator.html"·title="trait·core::iter::traits::collect::IntoIterator">IntoIterator</a>,52 ····U:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/collect/trait.IntoIterator.html"·title="trait·core::iter::traits::collect::IntoIterator">IntoIterator</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:·787,·SHA:·9b6a337a3ad68c2a987b52450c153f87a04a8ed9e83603d26077fe6e70d61edf·...·]/core/iter/adapters/map_windows/struct.MapWindows.html"·title="struct·core::iter::adapters::map_windows::MapWindows">MapWindows</a>&lt;Self,·F,·N&gt;<div·class="where">where53 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·976,·SHA:·2a9182f6fe88e0b8a9b1ae1f46cace940cc0b8736033c354c0f0ccbf1c196e7a·...·]/core/iter/adapters/map_windows/struct.MapWindows.html"·title="struct·core::iter::adapters::map_windows::MapWindows">MapWindows</a>&lt;Self,·F,·N&gt;<div·class="where">where
54 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,54 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.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::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>·over55 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;[Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtyp[·...·truncated·by·diffoscope;·len:·135,·SHA:·0b06a6094d42ccbc8bce5b01c4383961fe7f1967f05e4c9f1ff33e71e425fb26·...·]/core/primitive.array.html">N</a>])·-&gt;·R,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iter_map_windows</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/87155">#87155</a>)</span></div></span><div·class='docblock'>Calls·the·given·function·<code>f</code>·for·each·contiguous·window·of·size·<code>N</code>·over
56 <code>self</code>·and·returns·an·iterator·over·the·outputs·of·<code>f</code>.·Like·<a·href="../../core/primitive.slice.html#method.windows"·title="method·slice::windows"><code>slice::windows()</code></a>,56 <code>self</code>·and·returns·an·iterator·over·the·outputs·of·<code>f</code>.·Like·<a·href="https://doc.rust-lang.org/1.78.0/core/primitive.slice.html#method.windows"·title="method·slice::windows"><code>slice::windows()</code></a>,
57 the·windows·during·mapping·overlap·as·well.·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.map_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:·238f6b49b3e28d725c57040edaa60bfbb34f140155e6af1d30eab52da1c7274f·...·]/core/iter/adapters/fuse/struct.Fuse.html"·title="struct·core::iter::adapters::fuse::Fuse">Fuse</a>&lt;Self&gt;<div·class="where">where57 the·windows·during·mapping·overlap·as·well.·<a·href="https://doc.rust-lang.org/1.78.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:·0d33056cee8a4f9b70b573c0adecc2f3599a2f8d9fa9f2c2044e9118ab134f73·...·]/core/iter/adapters/fuse/struct.Fuse.html"·title="struct·core::iter::adapters::fuse::Fuse">Fuse</a>&lt;Self&gt;<div·class="where">where
58 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·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:·cfd3edf89fe5aca24b994f83b0d7da765620394e35140e694d98233d4d92481b·...·]/core/iter/adapters/inspect/struct.Inspect.html"·title="struct·core::iter::adapters::inspect::Inspect">Inspect</a>&lt;Self,·F&gt;<div·class="where">where58 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.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.78.0/core/op[·...·truncated·by·diffoscope;·len:·841,·SHA:·9cba1b175fb3726d7f1f01da9be7c1a56568a68e4ce7915a468b730902daf8d3·...·]/core/iter/adapters/inspect/struct.Inspect.html"·title="struct·core::iter::adapters::inspect::Inspect">Inspect</a>&lt;Self,·F&gt;<div·class="where">where
59 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,59 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.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::Itera[·...·truncated·by·diffoscope;·len:·772,·SHA:·31d2052382378512fa905c6d5297d384eac7b7f126141ce561719c0e27cc9d39·...·]/core/primitive.reference.html">&amp;mut·Self</a><div·class="where">where60 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·934,·SHA:·ea20d2e0fe9388580ea08100baa9120b5e9b6cb48f43fc846f15db8b9649e7f6·...·]/core/primitive.reference.html">&amp;mut·Self</a><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'>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:·98760b16b1ed91f9558e6e2637724a4608316181d5f6f4d236e896a83eca9af9·...·]/core/iter/traits/iterator/trait.Iterator.html#method.collect"·class="fn">collect</a>&lt;B&gt;(self)·-&gt;·B<div·class="where">where61 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.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.78.0/core/it[·...·truncated·by·diffoscope;·len:·523,·SHA:·97064c705f6f4bdf74469c54fabcf580d21893127d1b4cd9a9c1018a717ef153·...·]/core/iter/traits/iterator/trait.Iterator.html#method.collect"·class="fn">collect</a>&lt;B&gt;(self)·-&gt;·B<div·class="where">where
62 ····B:·<a·class="trait"·href="../../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;,62 ····B:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.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.78.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><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:·e5d524e874326d0b9b733f5ee809c6595cde869afab0cc3d4ba8454093f420da·...·]/core/primitive.reference.html">&amp;mut·E</a><div·class="where">where63 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.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.78.0/core/iter/tr[·...·truncated·by·diffoscope;·len:·728,·SHA:·01937c2dc314c259495665570ae249c94b4a5b0719718f5f1188e6fc64ecf487·...·]/core/primitive.reference.html">&amp;mut·E</a><div·class="where">where
64 ····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;,64 ····E:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.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.78.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><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:·b0297783e056393a542c4058b42c18523a86c961c1b6ce3bc94342c1a2c10c58·...·]/core/primitive.tuple.html">(B,·B)</a><div·class="where">where65 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></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:·00bd47017b1bdd1bbe2c3fc932d955a8aa2f7f5eff8c00e3001ae28a982a5883·...·]/core/primitive.tuple.html">(B,·B)</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.78.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
67 ····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;,67 ····B:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/default/trait.Default.html"·title="trait·core::default::Default">Default</a>·+·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/collect/trait.Extend.html"·title="trait·core::iter::traits::collec[·...·truncated·by·diffoscope;·len:·95,·SHA:·8b3be1d0042cae0550f865faf5849221240bdf04eb1b2107605b72d48c3ad29c·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;,
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:·783,·SHA:·f8b50287f3e106633ed79a84072d3ddd9d98672efd685d2433c61b5549ce051e·...·]/core/primitive.bool.html">bool</a><div·class="where">where68 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·972,·SHA:·6de765542031617a9c28ac98fe6df619e58e62d9c65ec5b1c185a7152b8944e5·...·]/core/primitive.bool.html">bool</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.78.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:·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,70 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·135,·SHA:·51ff5f5c7ebd8440623ea71b125c5a5837e809e308fe1a13fbe19cddb941dbd9·...·]/core/primitive.bool.html">bool</a>,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iter_is_partitioned</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/62544">#62544</a>)</span></div></span><div·class='docblock'>Checks·if·the·elements·of·this·iterator·are·partitioned·according·to·the·given·predicate,
71 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:·16087a70ed3fdb9452fac1db6c6dfd70950937f6c202d0651e9de5cd42f89c47·...·]/core/iter/traits/iterator/trait.Iterator.html#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 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.78.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:·b5b5559d4bedab0135adfae89ec80ffab292c35f0d8c34fa5240955934cefd74·...·]/core/iter/traits/iterator/trait.Iterator.html#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.78.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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.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.78.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.78.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.reduce"·class="method·trait-impl"><span·class="rightside"><span·class="since"·titl[·...·truncated·by·diffoscope;·len:·492,·SHA:·62c9073cbde434b3360fecb6291c690b867ce1a9341636a10915665ff20914ca·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;<div·class="where">where75 iterator,·stopping·at·the·first·error·and·returning·that·error.·<a·href="https://doc.rust-lang.org/1.78.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:·94f0d6f81d13cadba9ee012268cda8b0ff7a775a8c03d992a108a9ae039e4d71·...·]/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.78.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::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·reducing77 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·352,·SHA:·e7c3c296abe2c0a183967153e4ae7fd50bafa2ae7088e3e78b3b48fee253adc6·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::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/core/iter[·...·truncated·by·diffoscope;·len:·136,·SHA:·a9dce8bb557b5a11426bf2ffcbd5eea7c6c870833e3ee5bb072dcaaa11687b0c·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_reduce"·class="fn">try_reduce</a>&lt;F,·R&gt;(78 operation.·<a·href="https://doc.rust-lang.org/1.78.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:·7a18fdd041b1a001b4a8feb289ee127fd9240232239269eb35dc3b8f74783ec9·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_reduce"·class="fn">try_reduce</a>&lt;F,·R&gt;(
79 ····&amp;mut·self,79 ····&amp;mut·self,
80 ····f:·F80 ····f:·F
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</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">where81 )·-&gt;·&lt;&lt;R·as·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&gt;::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/ops/try_trait/trait.Try.html#associatedtype.Residual"·title="type[·...·truncated·by·diffoscope;·len:·754,·SHA:·6fb4dfdb6b4da68921c1e7f8b75d99cf293d58318d684a840254ce9576957bea·...·]/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.78.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::[·...·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,83 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·140,·SHA:·c27972e6fa3464c9476eaa185e8657edb6bb294f148403f3d079285294a9f909·...·]/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·=·Self::<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 ····R:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.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.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;,
85 ····&lt;R·as·<a·class="trait"·href="../../core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&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·the85 ····&lt;R·as·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&gt;::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/ops/try_trait/trait.Try.html#associatedtype.Residual"·title="type[·...·truncated·by·diffoscope;·len:·412,·SHA:·22b8cbb007e5cce82b9d13a65bfa56aa8d83c32541fac25f4d9b3857b0540908·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;&gt;,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iterator_try_reduce</code>&nbsp;<a·href="https://github.com/rust-lang/rust/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
86 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:·65b80c848af6e465c8c5aef4ec8d3faaa399d30c8427c9507fda7b3bd1d3ea93·...·]/core/primitive.bool.html">bool</a><div·class="where">where86 closure·returns·a·failure,·the·failure·is·propagated·back·to·the·caller·immediately.·<a·href="https://doc.rust-lang.org/1.78.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:·bc0d658d56e348823de15386e1cd4ab49109f3a7a055a4573a19391b47071193·...·]/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.78.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:·829,·SHA:·95a840b532d3d621bde4032d63854eb0a481248e2b4bbb3ef058dbffb4dae4fa·...·]/core/primitive.bool.html">bool</a><div·class="where">where88 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·1018,·SHA:·e61cd6bdd36729cc38e57fcaea2ccb91a23a5acbda3c8986071f19bf1ecfc52a·...·]/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.78.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:·956,·SHA:·f828c62edd4fe85e217286f359b56c116e14ed18bb292ba1cc13d3ed7146909e·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;<div·class="where">where90 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·1172,·SHA:·e64ab74d116d286191ad43d9d9e10411fc011c23724aa806e9a8f9b0be0757e3·...·]/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.78.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:·862,·SHA:·21d7086b3ce0092e3f7a6a41174339bbd8724e7d186158db4db3385a73d94e8e·...·]/core/option/enum.Option.html"·title="enum·core::option::Option">Option</a>&lt;B&gt;<div·class="where">where92 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·1051,·SHA:·ecc0b8fccd861464760f9ae047ff6ab98c91a1db010cb5fa59a8c2ab883db7c4·...·]/core/option/enum.Option.html"·title="enum·core::option::Option">Option</a>&lt;B&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.78.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::[·...·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·returns94 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·130,·SHA:·130a13019dc175d02304b4f550157e2f13ac15c2f25a979c74161d10b146ab89·...·]/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
95 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:·ac4da3337aac1ec10038e246be9cb719eeb5af1acc709f5a6a25b91900c56f53·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_find"·class="fn">try_find</a>&lt;F,·R&gt;(95 the·first·non-none·result.·<a·href="https://doc.rust-lang.org/1.78.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:·8ced1b10e78750774c5c8ed995ed83dcd13983aa75d329acf8069da106ab9f4a·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_find"·class="fn">try_find</a>&lt;F,·R&gt;(
96 ····&amp;mut·self,96 ····&amp;mut·self,
97 ····f:·F97 ····f:·F
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</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">where98 )·-&gt;·&lt;&lt;R·as·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&gt;::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/ops/try_trait/trait.Try.html#associatedtype.Residual"·title="type[·...·truncated·by·diffoscope;·len:·626,·SHA:·95f9831257b68862cbcbf54f0ad2ff4e597a4c9f763112d1da8a0897dadcf872·...·]/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.78.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>(&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:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.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.bool.html">bool</a>&gt;,101 ····R:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.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.78.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.78.0/core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&gt;::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/ops/try_trait/trait.Try.html#associatedtype.Residual"·title="type[·...·truncated·by·diffoscope;·len:·412,·SHA:·22b8cbb007e5cce82b9d13a65bfa56aa8d83c32541fac25f4d9b3857b0540908·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;&gt;,</div></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.78.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:·fa9d94b216f6e4ce6035b4762e3bf17cb86a0272db0a55a056f05c68bcaeb0da·...·]/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.78.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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·1190,·SHA:·882e9e9a037f916d0ed4aa6d749399e6e01ca81811eacfc54a484818cb5d5029·...·]/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.78.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.78.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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/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.78.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:·0367b1bacc0a7d8e05f1c5181f8c4ea428f3f11edbae0e76811f3ef1d4925e41·...·]/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.78.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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·346,·SHA:·7113e4c2d65a123253bb18971efdc2d49241cfc2dd4c2b18e4cfa4e4d7d4140f·...·]/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.78.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:·db89d4cca0becf2a4ab904adac2870de6fd83cfad5131f5a1431a67766274f81·...·]/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.78.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.78.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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/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.78.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:·39ce6bc28062c0df48bff6a8faa3e4f2266988879092cf2970d2e9ee092742b0·...·]/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.78.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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·346,·SHA:·7113e4c2d65a123253bb18971efdc2d49241cfc2dd4c2b18e4cfa4e4d7d4140f·...·]/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.78.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:·64f5ac8109ab8e5164c24b53640d938d0bb2486cf55faea0ff483f1e9ad27c8f·...·]/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.78.0/core/default/trait.Default.html"·title="trait·core::default::Default">Default</a>·+·<a·class="trait"·href="https://doc.rust-lang.org/1.78.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.78.0/core/default/trait.Default.html"·title="trait·core::default::Default">Default</a>·+·<a·class="trait"·href="https://doc.rust-lang.org/1.78.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:·ddfc6ab5b04a5a9d2604baea549ca2df87d19343e0d63e1128eff1b803f662c7·...·]/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.78.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>·+·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html"·title="trait·core::iter::traits::iterator::I[·...·truncated·by·diffoscope;·len:·980,·SHA:·8f6df3c40809d9a55d4dab64faffa89b8268cb5f886608ccbcab921d7ab8e9fc·...·]/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.78.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:·634519b2d242c65d05aaca6b24a1e4b8081f167afc322025b0f4b5d8bd0de1d4·...·]/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.78.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>·+·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html"·title="trait·core::iter::traits::iterator::I[·...·truncated·by·diffoscope;·len:·983,·SHA:·d7472ec42d940fce3a1b145fd6fd3540c4095b4b5e88360dcd07223d97d60b94·...·]/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.78.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:·391c1b8a001cc98146e1ef673ba5d81873432b8fb42ab0d182119be8ca97a4b3·...·]/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.78.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>·+·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html"·title="trait·core::iter::traits::iterator::I[·...·truncated·by·diffoscope;·len:·1110,·SHA:·92690c14cf35867768c524f674b2a5f40fd9516e58074a43352abb3fcbb96612·...·]/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:·36d94b7d9aea5d10db94ef16a9e79fdf3cdf14aac55762a70697df8a0ec331c7·...·]/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.78.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>·+·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/clone/trait.Clone.html"·title="trait·core::clone::Clone">Clone</a>,</div></h4></sectio[·...·truncated·by·diffoscope;·len:·827,·SHA:·ec8d6c6a2c68c9c472897594711e2174619014e8c7f508e41a201128a00f47d6·...·]/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; 85612/286560 bytes (29.88%) of diff not shown.
280 KB
./usr/share/doc/rust-web-doc/html/alloc/str/struct.EscapeDefault.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="The·return·type·of·`str::escape_default`."><title>EscapeDefault·in·alloc::str·-·Rust</title><script>·if·(window.location.protocol·!==·"file:")·document.write(`<link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/SourceSerif4-Regular-46f98efaafac5295.ttf.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/FiraSans-Regular-018c141bf0843ffd.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/FiraSans-Medium-8f9a781e4970d388.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/SourceCodePro-Regular-562dcc5011b6de7d.ttf.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/SourceCodePro-Semibold-d899c5a5c4aeb14a.ttf.woff2">`)</script><link·rel="stylesheet"·href="../../static.files/normalize-76eba96aa4d2e634.css"><link·rel="stylesheet"·href="../../static.files/rustdoc-35f9e32502181f1e.css"><meta·name="rustdoc-vars"·data-root-path="../../"·data-static-root-path="../../static.files/"·data-current-crate="alloc"·data-themes=""·data-resource-suffix="1.78.0"·data-rustdoc-version="1.78.0"·data-channel="1.78.0"·data-search-js="search-42d8da7a6b9792c2.js"·data-settings-js="settings-4313503d2e1961c2.js"·><script·src="../../static.files/storage-4c98445ec4002617.js"></script><script·defer·src="sidebar-items1.78.0.js"></script><script·defer·src="../../static.files/main-12cf3b4f4f9dc36d.js"></script><noscript><link·rel="stylesheet"·href="../../static.files/noscript-04d5337699b92874.css"></noscript><link·rel="alternate·icon"·type="image/png"·href="../../static.files/favicon-16x16-8b506e7a72182f1c.png"><link·rel="alternate·icon"·type="image/png"·href="../../static.files/favicon-32x32-422f7d1d52889060.png"><link·rel="icon"·type="image/svg+xml"·href="../../static.files/favicon-2c020d218678b618.svg"></head><body·class="rustdoc·struct"><!--[if·lte·IE·11]><div·class="warning">This·old·browser·is·unsupported·and·will·most·likely·display·funky·things.</div><![endif]--><nav·class="mobile-topbar"><button·class="sidebar-menu-toggle"·title="show·sidebar"></button><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-151179464ae7ed46.svg"·alt=""></a></nav><nav·class="sidebar"><div·class="sidebar-crate"><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-151179464ae7ed46.svg"·alt="logo"></a><h2><a·href="../../alloc/index.html">alloc</a><span·class="version">1.78.0</span></h2></div><h2·class="location"><a·href="#">EscapeDefault</a></h2><div·class="sidebar-elems"><section><h3><a·href="#trait-implementations">Trait·Implementations</a></h3><ul·class="block·trait-implementation"><li><a·href="#impl-Clone-for-EscapeDefault%3C'a%3E">Clone</a></li><li><a·href="#impl-Debug-for-EscapeDefault%3C'a%3E">Debug</a></li><li><a·href="#impl-Display-for-EscapeDefault%3C'a%3E">Display</a></li><li><a·href="#impl-FusedIterator-for-EscapeDefault%3C'a%3E">FusedIterator</a></li><li><a·href="#impl-Iterator-for-EscapeDefault%3C'a%3E">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">Freeze</a></li><li><a·href="#impl-RefUnwindSafe-for-EscapeDefault%3C'a%3E">RefUnwindSafe</a></li><li><a·href="#impl-Send-for-EscapeDefault%3C'a%3E">Send</a></li><li><a·href="#impl-Sync-for-EscapeDefault%3C'a%3E">Sync</a></li><li><a·href="#impl-Unpin-for-EscapeDefault%3C'a%3E">Unpin</a></li><li><a·href="#impl-UnwindSafe-for-EscapeDefault%3C'a%3E">UnwindSafe</a></li></ul><h3><a·href="#blanket-implementations">Blanket·Implementations</a></h3><ul·class="block·blanket-implementation"><li><a·href="#impl-Any-for-T">Any</a></li><li><a·href="#impl-Borrow%3CT%3E-for-T">Borrow&lt;T&gt;</a></li><li><a·href="#impl-BorrowMut%3CT%3E-for-T">BorrowMut&lt;T&gt;</a></li><li><a·href="#impl-From%3CT%3E-for-T">From&lt;T&gt;</a></li><li><a·href="#impl-Into%3CU%3E-for-T">Into&lt;U&gt;</a></li><li><a·href="#impl-IntoIterator-for-I">IntoIterator</a></li><li><a·href="#impl-ToOwned-for-T">ToOwned</a></li><li><a·href="#impl-ToString-for-T">ToString</a></li><li><a·href="#impl-TryFrom%3CU%3E-for-T">TryFrom&lt;U&gt;</a></li><li><a·href="#impl-TryInto%3CU%3E-for-T">TryInto&lt;U&gt;</a></li></ul></section><h2><a·href="index.html">In·alloc::str</a></h2></div></nav><div·class="sidebar-resizer"></div>1 <!DOCTYPE·html><html·lang="en"><head><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.write(`<link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/SourceSerif4-Regular-46f98efaafac5295.ttf.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/FiraSans-Regular-018c141bf0843ffd.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/FiraSans-Medium-8f9a781e4970d388.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/SourceCodePro-Regular-562dcc5011b6de7d.ttf.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/SourceCodePro-Semibold-d899c5a5c4aeb14a.ttf.woff2">`)</script><link·rel="stylesheet"·href="../../static.files/normalize-76eba96aa4d2e634.css"><link·rel="stylesheet"·href="../../static.files/rustdoc-35f9e32502181f1e.css"><meta·name="rustdoc-vars"·data-root-path="../../"·data-static-root-path="../../static.files/"·data-current-crate="alloc"·data-themes=""·data-resource-suffix="1.78.0"·data-rustdoc-version="1.78.0"·data-channel="1.78.0"·data-search-js="search-42d8da7a6b9792c2.js"·data-settings-js="settings-4313503d2e1961c2.js"·><script·src="../../static.files/storage-4c98445ec4002617.js"></script><script·defer·src="sidebar-items1.78.0.js"></script><script·defer·src="../../static.files/main-12cf3b4f4f9dc36d.js"></script><noscript><link·rel="stylesheet"·href="../../static.files/noscript-04d5337699b92874.css"></noscript><link·rel="alternate·icon"·type="image/png"·href="../../static.files/favicon-16x16-8b506e7a72182f1c.png"><link·rel="alternate·icon"·type="image/png"·href="../../static.files/favicon-32x32-422f7d1d52889060.png"><link·rel="icon"·type="image/svg+xml"·href="../../static.files/favicon-2c020d218678b618.svg"></head><body·class="rustdoc·struct"><!--[if·lte·IE·11]><div·class="warning">This·old·browser·is·unsupported·and·will·most·likely·display·funky·things.</div><![endif]--><nav·class="mobile-topbar"><button·class="sidebar-menu-toggle"·title="show·sidebar"></button><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-151179464ae7ed46.svg"·alt=""></a></nav><nav·class="sidebar"><div·class="sidebar-crate"><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-151179464ae7ed46.svg"·alt="logo"></a><h2><a·href="../../alloc/index.html">alloc</a><span·class="version">1.78.0</span></h2></div><h2·class="location"><a·href="#">EscapeDefault</a></h2><div·class="sidebar-elems"><section><h3><a·href="#trait-implementations">Trait·Implementations</a></h3><ul·class="block·trait-implementation"><li><a·href="#impl-Clone-for-EscapeDefault%3C'a%3E">Clone</a></li><li><a·href="#impl-Debug-for-EscapeDefault%3C'a%3E">Debug</a></li><li><a·href="#impl-Display-for-EscapeDefault%3C'a%3E">Display</a></li><li><a·href="#impl-FusedIterator-for-EscapeDefault%3C'a%3E">FusedIterator</a></li><li><a·href="#impl-Iterator-for-EscapeDefault%3C'a%3E">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">Freeze</a></li><li><a·href="#impl-RefUnwindSafe-for-EscapeDefault%3C'a%3E">RefUnwindSafe</a></li><li><a·href="#impl-Send-for-EscapeDefault%3C'a%3E">Send</a></li><li><a·href="#impl-Sync-for-EscapeDefault%3C'a%3E">Sync</a></li><li><a·href="#impl-Unpin-for-EscapeDefault%3C'a%3E">Unpin</a></li><li><a·href="#impl-UnwindSafe-for-EscapeDefault%3C'a%3E">UnwindSafe</a></li></ul><h3><a·href="#blanket-implementations">Blanket·Implementations</a></h3><ul·class="block·blanket-implementation"><li><a·href="#impl-Any-for-T">Any</a></li><li><a·href="#impl-Borrow%3CT%3E-for-T">Borrow&lt;T&gt;</a></li><li><a·href="#impl-BorrowMut%3CT%3E-for-T">BorrowMut&lt;T&gt;</a></li><li><a·href="#impl-From%3CT%3E-for-T">From&lt;T&gt;</a></li><li><a·href="#impl-Into%3CU%3E-for-T">Into&lt;U&gt;</a></li><li><a·href="#impl-IntoIterator-for-I">IntoIterator</a></li><li><a·href="#impl-ToOwned-for-T">ToOwned</a></li><li><a·href="#impl-ToString-for-T">ToString</a></li><li><a·href="#impl-TryFrom%3CU%3E-for-T">TryFrom&lt;U&gt;</a></li><li><a·href="#impl-TryInto%3CU%3E-for-T">TryInto&lt;U&gt;</a></li></ul></section><h2><a·href="index.html">In·alloc::str</a></h2></div></nav><div·class="sidebar-resizer"></div>
2 ····<main><div·class="width-limiter"><nav·class="sub"><form·class="search-form"><span></span><div·id="sidebar-button"·tabindex="-1"><a·href="../../alloc/all.html"·title="show·sidebar"></a></div><input·class="search-input"·name="search"·aria-label="Run·search·in·the·documentation"·autocomplete="off"·spellcheck="false"·placeholder="Click·or·press·‘S’·to·search,·‘?’·for·more·options…"·type="search"><div·id="help-button"·tabindex="-1"><a·href="../../help.html"·title="help">?</a></div><div·id="settings-menu"·tabindex="-1"><a·href="../../settings.html"·title="settings"><img·width="22"·height="22"·alt="Change·settings"·src="../../static.files/wheel-7b819b6101059cd0.svg"></a></div></form></nav><section·id="main-content"·class="content"><div·class="main-heading"><h1>Struct·<a·href="../index.html">alloc</a>::<wbr><a·href="index.html">str</a>::<wbr><a·class="struct"·href="#">EscapeDefault</a><button·id="copy-path"·title="Copy·item·path·to·clipboard"><img·src="../../static.files/clipboard-7571035ce49a181d.svg"·width="19"·height="18"·alt="Copy·item·path"></button></h1><span·class="out-of-band"><span·class="since"·title="Stable·since·Rust·version·1.34.0">1.34.0</span>···<a·class="src"·href="../../src/core/str/iter.rs.html#1552">source</a>···<button·id="toggle-all-docs"·title="collapse·all·docs">[<span>&#x2212;</span>]</button></span></div><pre·class="rust·item-decl"><code>pub·struct·EscapeDefault&lt;'a&gt;·{·<span·class="comment">/*·private·f[·...·truncated·by·diffoscope;·len:·190,·SHA:·74879d1b574fbe9493d35ce8a88918998e0feee60c7ded9e1a3e26daf0f6057d·...·]/core/primitive.str.html#method.escape_default"·title="method·str::escape_default"><code>str::escape_default</code></a>.</p>2 ····<main><div·class="width-limiter"><nav·class="sub"><form·class="search-form"><span></span><div·id="sidebar-button"·tabindex="-1"><a·href="../../alloc/all.html"·title="show·sidebar"></a></div><input·class="search-input"·name="search"·aria-label="Run·search·in·the·documentation"·autocomplete="off"·spellcheck="false"·placeholder="Click·or·press·‘S’·to·search,·‘?’·for·more·options…"·type="search"><div·id="help-button"·tabindex="-1"><a·href="../../help.html"·title="help">?</a></div><div·id="settings-menu"·tabindex="-1"><a·href="../../settings.html"·title="settings"><img·width="22"·height="22"·alt="Change·settings"·src="../../static.files/wheel-7b819b6101059cd0.svg"></a></div></form></nav><section·id="main-content"·class="content"><div·class="main-heading"><h1>Struct·<a·href="../index.html">alloc</a>::<wbr><a·href="index.html">str</a>::<wbr><a·class="struct"·href="#">EscapeDefault</a><button·id="copy-path"·title="Copy·item·path·to·clipboard"><img·src="../../static.files/clipboard-7571035ce49a181d.svg"·width="19"·height="18"·alt="Copy·item·path"></button></h1><span·class="out-of-band"><span·class="since"·title="Stable·since·Rust·version·1.34.0">1.34.0</span>···<a·class="src"·href="https://doc.rust-lang.org/1.78.0/src/core/str/iter.rs.html#1552">source</a>···<button·id="toggle-all-docs"·title="collapse·all·docs">[<span>&#x2212;</span>]</button></span></div><pre·class="rust·item-decl"><code>pub·struct·EscapeDefault&lt;'a&gt;·{·<span·c[·...·truncated·by·diffoscope;·len:·244,·SHA:·2ac2d9a610c1bbbb6bd1aadffb2097a53782abd132da1bfd89afc2068c6e0fe0·...·]/core/primitive.str.html#method.escape_default"·title="method·str::escape_default"><code>str::escape_default</code></a>.</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-Clone-for-EscapeDefault%3C'a%3E"·class="impl"><a·class="src·rightside"·href="../../src/core/str/iter.rs.html#1551">source</a><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">Clone</a>·[·...·truncated·by·diffoscope;·len:·7606,·SHA:·5aa182d25fd417d768e85bc6949fcd8789f4ce169b647feba417fcdd057ffd46·...·]/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">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-Clone-for-EscapeDefault%3C'a%3E"·class="impl"><a·class="src·rightside"·href="https://doc.rust-lang.org/1.78.0/src/core/str/iter.rs.html#1551">source</a><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.78.0/core/clone/trait.C[·...·truncated·by·diffoscope;·len:·8524,·SHA:·877d5f5f8effaaa324e094932a6905c28df0032eb4024ba123ffbf337ab733e5·...·]/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
4 ····<a·class="struct"·href="struct.EscapeDefault.html"·title="struct·alloc::str::EscapeDefault">EscapeDefault</a>&lt;'a&gt;:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,4 ····<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.78.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
5 ····Fold:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Acc,·&lt;<a·class="struct"·href="struct.EscapeDefault.html"·title="struct·alloc::str::EscapeDefault">EscapeDefault</a>&lt;'a&gt;·as·<a·class="trait"·href="../../co[·...·truncated·by·diffoscope;·len:·153,·SHA:·5647c32617d282adc9da074a8c6ab8a8afc82618fce53847fed3578ea2f9c448·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·R,5 ····Fold:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.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:·c502ce8e4359aec3ce5a1c9f1ce4d79f547d1dacba3817a2432b6ee82e60dbb7·...·]/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·=·Acc&gt;,</div></h4></section></summary><div·class='docblock'>An·iterator·method·that·applies·a·function·as·long·as·it·returns6 ····R:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.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
7 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:·220ac8a8e0a4b6d6d2c8a74ae99f726e41c987632967ce5f15dd4090057866ba·...·]/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">where7 successfully,·producing·a·single,·final·value.·<a·href="https://doc.rust-lang.org/1.78.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:·abb30099fcc8cb59ae37cb3062112f5669ab93fc76a9bcb347d4824765464b7c·...·]/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
8 ····Fold:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Acc,·&lt;<a·class="struct"·href="struct.EscapeDefault.html"·title="struct·alloc::str::EscapeDefault">EscapeDefault</a>&lt;'a&gt;·as·<a·class="trait"·href="../../co[·...·truncated·by·diffoscope;·len:·153,·SHA:·5647c32617d282adc9da074a8c6ab8a8afc82618fce53847fed3578ea2f9c448·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·Acc,</div></h4></section></summary><div·class='docblock'>Folds·every·element·into·an·accumulator·by·applying·an·operation,8 ····Fold:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.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:·c502ce8e4359aec3ce5a1c9f1ce4d79f547d1dacba3817a2432b6ee82e60dbb7·...·]/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,
9 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:·873923466e86cc7b413cead1f309a1f1d871d8cc3d6e4f18eb02a72f06d14ed7·...·]/core/primitive.usize.html">usize</a>&gt;(9 returning·the·final·result.·<a·href="https://doc.rust-lang.org/1.78.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:·6e6478099b84b19aef63d4506f761578426c571fbb374eef4c590e1ef5f5fe3c·...·]/core/primitive.usize.html">usize</a>&gt;(
10 ····&amp;mut·self10 ····&amp;mut·self
11 )·-&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">where11 )·-&gt;·<a·class="enum"·href="https://doc.rust-lang.org/1.78.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.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title=[·...·truncated·by·diffoscope;·len:·381,·SHA:·88c48923c9b7ea5cc47c1087c60e09656e81d4671c58071ba2bef826335388bc·...·]/core/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
12 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></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:·602d17b58d1cf716882ddc867fc66cfda4f899bef17b038a48553e9133f60097·...·]/core/primitive.usize.html">usize</a><div·class="where">where12 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></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:·89791450da70cbd536c3cf8fbf2dd9891668362f9a252d3ee098222d19960bae·...·]/core/primitive.usize.html">usize</a><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,·counting·the·number·of·iterations·and·returning·it.·<a·href="../../core/iter/traits/iterator/trait.I[·...·truncated·by·diffoscope;·len:·675,·SHA:·5b5aaec46c04cf77d2fa06e88cd6f0a2bd8d201412bc325302bd2f8f21b39207·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;<div·class="where">where13 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.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:·84ae0beb16240102bae2355bb8c543b17f3f107e3c06b320839aa401eebb1945·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&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'>Consumes·the·iterator,·returning·the·last·element.·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.last[·...·truncated·by·diffoscope;·len:·2964,·SHA:·6b808f54a13578d2e276864bb3eb79ae7b452b8959e79f7ea7ab1180574b77fc·...·]/core/iter/adapters/step_by/struct.StepBy.html"·title="struct·core::iter::adapters::step_by::StepBy">StepBy</a>&lt;Self&gt;<div·class="where">where14 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.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.78.0/cor[·...·truncated·by·diffoscope;·len:·3504,·SHA:·6d21b6d637e0b2e9953a37a26fd19e00da089147d4acaf696c94d448de4ce419·...·]/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
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'>Creates·an·iterator·starting·at·the·same·point,·but·stepping·by15 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.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
16 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:·5667b9b6c9778ff3b9d23ed0a110e7ab9d3fccc786fdcaca8c17edf996236439·...·]/core/iter/traits/collect/trait.IntoIterator.html#associatedtype.IntoIter"·title="type·core::iter::traits::collect::IntoIterator::IntoIter">IntoIter</a>&gt;<div·class="where">where16 the·given·amount·at·each·iteration.·<a·href="https://doc.rust-lang.org/1.78.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:·e83c903581753673e083ce8dd809879a2fc81ab3050eb6db267d7fa26b15e035·...·]/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.78.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>&lt;Item·=·Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title=[·...·truncated·by·diffoscope;·len:·1113,·SHA:·1c6bb9803ee8832ebd4c28a08a952178165595b6870cf35d3c89454b9da828b2·...·]/core/iter/traits/collect/trait.IntoIterator.html#associatedtype.IntoIter"·title="type·core::iter::traits::collect::IntoIterator::IntoIter">IntoIter</a>&gt;<div·class="where">where18 ····U:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.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.78.0/core/iter/traits/it[·...·truncated·by·diffoscope;·len:·1329,·SHA:·d9299c8edc606ed82f24d61ce441bec451141d684c2a9a75074f5b19c57f196c·...·]/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.78.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>,</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:·c1b5e692e89c9c809075ee8ee72fb15a9ec46c075b08450e1f707d672a224750·...·]/core/iter/adapters/intersperse/struct.IntersperseWith.html"·title="struct·core::iter::adapters::intersperse::IntersperseWith">IntersperseWith</a>&lt;Self,·G&gt;<div·class="where">where20 ····U:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.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:·98627729f77dcf1c9d258f343354ba600b7134c6b3929080f231e8de7155b70b·...·]/core/iter/adapters/intersperse/struct.IntersperseWith.html"·title="struct·core::iter::adapters::intersperse::IntersperseWith">IntersperseWith</a>&lt;Self,·G&gt;<div·class="where">where
21 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,21 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
22 ····G:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>()·-&gt;·Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iter_intersperse</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/79524">#79524</a>)</span></div></span><div·class='docblock'>Creates·a·new·iterator·which·places·an·item·generated·by·<code>separator</code>22 ····G:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.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.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iter_intersperse</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/79524">#79524</a>)</span></div></span><div·class='docblock'>Creates·a·new·iterator·which·places·an·item·generated·by·<code>separator</code>
23 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:·d6282409add0999f2130eb6bbe6d0473ce96bf2544799e8bc22156f3c2d2e0dd·...·]/core/iter/adapters/map/struct.Map.html"·title="struct·core::iter::adapters::map::Map">Map</a>&lt;Self,·F&gt;<div·class="where">where23 between·adjacent·items·of·the·original·iterator.·<a·href="https://doc.rust-lang.org/1.78.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:·7301b6beba7b6885849be90a625df68ef739a5374af456c51fe2e81d91a25363·...·]/core/iter/adapters/map/struct.Map.html"·title="struct·core::iter::adapters::map::Map">Map</a>&lt;Self,·F&gt;<div·class="where">where
24 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,24 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.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::Iterator::Item">Item</a>)·-&gt;·B,</div></h4></section></summary><div·class='docblock'>Takes·a·closure·and·creates·an·iterator·which·calls·that·closure·on·each25 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·B,</div></h4></section></summary><div·class='docblock'>Takes·a·closure·and·creates·an·iterator·which·calls·that·closure·on·each
26 element.·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.map">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:·fb4c9589a16c7b6d697c109d1193d2f1e763e5dd967101c2fd92b32416972229·...·]/core/iter/traits/iterator/trait.Iterator.html#method.for_each"·class="fn">for_each</a>&lt;F&gt;(self,·f:·F)<div·class="where">where26 element.·<a·href="https://doc.rust-lang.org/1.78.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:·98f6effefa44d759c249143d83623f0055d937382bfc398b7e1f5e92cd413657·...·]/core/iter/traits/iterator/trait.Iterator.html#method.for_each"·class="fn">for_each</a>&lt;F&gt;(self,·f:·F)<div·class="where">where
27 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,27 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.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:·754,·SHA:·7abbad666ec88a1053b8aca2a481d629a3ef3596eddb570c381205fa2d859a52·...·]/core/iter/adapters/filter/struct.Filter.html"·title="struct·core::iter::adapters::filter::Filter">Filter</a>&lt;Self,·P&gt;<div·class="where">where28 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·916,·SHA:·30d0b2a76513c5a880e9aee43e92b18805845cfcfe5783f62dc090167a439e63·...·]/core/iter/adapters/filter/struct.Filter.html"·title="struct·core::iter::adapters::filter::Filter">Filter</a>&lt;Self,·P&gt;<div·class="where">where
29 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,29 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.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:·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·element30 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·140,·SHA:·752f473b57e7444ebfddf5ea7fd40a332e83ec55524a6c31b5ee0f82a5dea819·...·]/core/primitive.bool.html">bool</a>,</div></h4></section></summary><div·class='docblock'>Creates·an·iterator·which·uses·a·closure·to·determine·if·an·element
31 should·be·yielded.·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.filter">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:·7da07154834a15b8ae55b4fd41479da070ccbd27e071909f81698570c306a081·...·]/core/iter/adapters/filter_map/struct.FilterMap.html"·title="struct·core::iter::adapters::filter_map::FilterMap">FilterMap</a>&lt;Self,·F&gt;<div·class="where">where31 should·be·yielded.·<a·href="https://doc.rust-lang.org/1.78.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:·76aa2ad154f88085ee3f8a22721a7e6812680bac785d19059532407f50da1801·...·]/core/iter/adapters/filter_map/struct.FilterMap.html"·title="struct·core::iter::adapters::filter_map::FilterMap">FilterMap</a>&lt;Self,·F&gt;<div·class="where">where
32 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,32 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.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:·863,·SHA:·c89169e5bf1c4724c7b411e568b6dad6475896f2606f557b3d708359ef71f5cc·...·]/core/iter/adapters/enumerate/struct.Enumerate.html"·title="struct·core::iter::adapters::enumerate::Enumerate">Enumerate</a>&lt;Self&gt;<div·class="where">where33 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·1052,·SHA:·110b47c7083083d565fcfc89337fddc8e5c87e81b2f720f3f7b0ded55e8500fb·...·]/core/iter/adapters/enumerate/struct.Enumerate.html"·title="struct·core::iter::adapters::enumerate::Enumerate">Enumerate</a>&lt;Self&gt;<div·class="where">where
34 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Creates·an·iterator·which·gives·the·current·iteration·count·as·well·as34 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.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
35 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:·53634008856676c70c32b501f7ec498c1f86d123cc9b5b898256a69895ff31fc·...·]/core/iter/adapters/peekable/struct.Peekable.html"·title="struct·core::iter::adapters::peekable::Peekable">Peekable</a>&lt;Self&gt;<div·class="where">where35 the·next·value.·<a·href="https://doc.rust-lang.org/1.78.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:·8464264e074dde5d84f0414ab3b5b2d8da83f3c9e3ca04c45458241580a8c80d·...·]/core/iter/adapters/peekable/struct.Peekable.html"·title="struct·core::iter::adapters::peekable::Peekable">Peekable</a>&lt;Self&gt;<div·class="where">where
36 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.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>·methods36 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.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.78.0/core/iter/adapte[·...·truncated·by·diffoscope;·len:·175,·SHA:·16fe7225bf05b478e2828b347c3d23ded9a22f89d8887a2c65d9f7b3faf1b0e7·...·]/core/iter/adapters/peekable/struct.Peekable.html#method.peek_mut"·title="method·core::iter::adapters::peekable::Peekable::peek_mut"><code>peek_mut</code></a>·methods
37 to·look·at·the·next·element·of·the·iterator·without·consuming·it.·See37 to·look·at·the·next·element·of·the·iterator·without·consuming·it.·See
38 their·documentation·for·more·information.·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.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:·77dd41e041d66c618d306e900a9159cf1b00478b8f37e5692be62119a1d4fcda·...·]/core/iter/adapters/skip_while/struct.SkipWhile.html"·title="struct·core::iter::adapters::skip_while::SkipWhile">SkipWhile</a>&lt;Self,·P&gt;<div·class="where">where38 their·documentation·for·more·information.·<a·href="https://doc.rust-lang.org/1.78.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:·00ccbb673c11ed48d8c6aa2a3f8984fb298202e7bccfa42f1ac21290fcc0fb06·...·]/core/iter/adapters/skip_while/struct.SkipWhile.html"·title="struct·core::iter::adapters::skip_while::SkipWhile">SkipWhile</a>&lt;Self,·P&gt;<div·class="where">where
39 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,39 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.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:·1018,·SHA:·c18326af66652e52fa627bfd0312af7fa2ad0ddc162b12a46e61047a031b0264·...·]/core/iter/adapters/take_while/struct.TakeWhile.html"·title="struct·core::iter::adapters::take_while::TakeWhile">TakeWhile</a>&lt;Self,·P&gt;<div·class="where">where40 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·1234,·SHA:·3b805567411cdcebed740f9e8d400dbe7fb487504f40e284544a140155090fdf·...·]/core/iter/adapters/take_while/struct.TakeWhile.html"·title="struct·core::iter::adapters::take_while::TakeWhile">TakeWhile</a>&lt;Self,·P&gt;<div·class="where">where
41 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,41 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.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:·869,·SHA:·39eeddf219b211245393e51a591d5064c740fa9be49d88883d8a6474679741ad·...·]/core/iter/adapters/map_while/struct.MapWhile.html"·title="struct·core::iter::adapters::map_while::MapWhile">MapWhile</a>&lt;Self,·P&gt;<div·class="where">where42 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·1058,·SHA:·b390dbdda8d7e93604b5ecd906a93efd03fe19bdaf41cf12893fd361bf974307·...·]/core/iter/adapters/map_while/struct.MapWhile.html"·title="struct·core::iter::adapters::map_while::MapWhile">MapWhile</a>&lt;Self,·P&gt;<div·class="where">where
43 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,43 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.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>(Self::<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:·9369fa85b74ff841f7401949cadba6dfbbbeead2a99568f20dcfd5aab20d61ab·...·]/core/iter/adapters/skip/struct.Skip.html"·title="struct·core::iter::adapters::skip::Skip">Skip</a>&lt;Self&gt;<div·class="where">where44 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·1163,·SHA:·5772149166d344bf8fa5ebbd9db8693a8f2e5f031c50338e8f1523ef72f814d6·...·]/core/iter/adapters/skip/struct.Skip.html"·title="struct·core::iter::adapters::skip::Skip">Skip</a>&lt;Self&gt;<div·class="where">where
45 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::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:·a25e81a74cc82c1837477e2b0cea682fff9f43550640901b8010ac501ca69e3d·...·]/core/iter/adapters/take/struct.Take.html"·title="struct·core::iter::adapters::take::Take">Take</a>&lt;Self&gt;<div·class="where">where45 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.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:·6216516fe581c401abda3c95818192e8f030e2008c9bbdbaafebba16f33ea9bd·...·]/core/iter/adapters/take/struct.Take.html"·title="struct·core::iter::adapters::take::Take">Take</a>&lt;Self&gt;<div·class="where">where
46 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Creates·an·iterator·that·yields·the·first·<code>n</code>·elements,·or·fewer46 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.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
47 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:·de8f1023275132502c1569b0ef9a557dc98eaf60aae97cdb916e52f9f55100aa·...·]/core/iter/adapters/scan/struct.Scan.html"·title="struct·core::iter::adapters::scan::Scan">Scan</a>&lt;Self,·St,·F&gt;<div·class="where">where47 if·the·underlying·iterator·ends·sooner.·<a·href="https://doc.rust-lang.org/1.78.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:·485843399c56e24bdf020ff0610d0ce1f62fbac5530d9880a1a7417105e3d70f·...·]/core/iter/adapters/scan/struct.Scan.html"·title="struct·core::iter::adapters::scan::Scan">Scan</a>&lt;Self,·St,·F&gt;<div·class="where">where
48 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,48 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.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>(<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,·but49 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(<a·class="primitive"·href="https://doc.rust-lang.org/1.78.0/core/primitive.reference.html">&amp;mut·St</a>,·Self::<a·class="associatedty[·...·truncated·by·diffoscope;·len:·449,·SHA:·f12c268a8a8111b9e7126ad78bf5523a63733caa63d187c4fe792309ea41acdf·...·]/core/iter/traits/iterator/trait.Iterator.html#method.fold"·title="method·core::iter::traits::iterator::Iterator::fold"><code>fold</code></a>,·holds·internal·state,·but
50 unlike·<a·href="../../core/iter/traits/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:·8b31595e3cee3022819032aac82e3df712188a2a6dcc20da6939262e5e528591·...·]/core/iter/adapters/flatten/struct.FlatMap.html"·title="struct·core::iter::adapters::flatten::FlatMap">FlatMap</a>&lt;Self,·U,·F&gt;<div·class="where">where50 unlike·<a·href="https://doc.rust-lang.org/1.78.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.78.0/core/iter/trai[·...·truncated·by·diffoscope;·len:·690,·SHA:·371190e5c1bf9b7dde6e84447965a69946212b977b9eb6d89048fbe34c5dda1c·...·]/core/iter/adapters/flatten/struct.FlatMap.html"·title="struct·core::iter::adapters::flatten::FlatMap">FlatMap</a>&lt;Self,·U,·F&gt;<div·class="where">where
51 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,51 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
52 ····U:·<a·class="trait"·href="../../core/iter/traits/collect/trait.IntoIterator.html"·title="trait·core::iter::traits::collect::IntoIterator">IntoIterator</a>,52 ····U:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/collect/trait.IntoIterator.html"·title="trait·core::iter::traits::collect::IntoIterator">IntoIterator</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:·787,·SHA:·9b6a337a3ad68c2a987b52450c153f87a04a8ed9e83603d26077fe6e70d61edf·...·]/core/iter/adapters/map_windows/struct.MapWindows.html"·title="struct·core::iter::adapters::map_windows::MapWindows">MapWindows</a>&lt;Self,·F,·N&gt;<div·class="where">where53 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·976,·SHA:·2a9182f6fe88e0b8a9b1ae1f46cace940cc0b8736033c354c0f0ccbf1c196e7a·...·]/core/iter/adapters/map_windows/struct.MapWindows.html"·title="struct·core::iter::adapters::map_windows::MapWindows">MapWindows</a>&lt;Self,·F,·N&gt;<div·class="where">where
54 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,54 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.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::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>·over55 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;[Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtyp[·...·truncated·by·diffoscope;·len:·135,·SHA:·0b06a6094d42ccbc8bce5b01c4383961fe7f1967f05e4c9f1ff33e71e425fb26·...·]/core/primitive.array.html">N</a>])·-&gt;·R,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iter_map_windows</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/87155">#87155</a>)</span></div></span><div·class='docblock'>Calls·the·given·function·<code>f</code>·for·each·contiguous·window·of·size·<code>N</code>·over
56 <code>self</code>·and·returns·an·iterator·over·the·outputs·of·<code>f</code>.·Like·<a·href="../../core/primitive.slice.html#method.windows"·title="method·slice::windows"><code>slice::windows()</code></a>,56 <code>self</code>·and·returns·an·iterator·over·the·outputs·of·<code>f</code>.·Like·<a·href="https://doc.rust-lang.org/1.78.0/core/primitive.slice.html#method.windows"·title="method·slice::windows"><code>slice::windows()</code></a>,
57 the·windows·during·mapping·overlap·as·well.·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.map_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:·238f6b49b3e28d725c57040edaa60bfbb34f140155e6af1d30eab52da1c7274f·...·]/core/iter/adapters/fuse/struct.Fuse.html"·title="struct·core::iter::adapters::fuse::Fuse">Fuse</a>&lt;Self&gt;<div·class="where">where57 the·windows·during·mapping·overlap·as·well.·<a·href="https://doc.rust-lang.org/1.78.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:·0d33056cee8a4f9b70b573c0adecc2f3599a2f8d9fa9f2c2044e9118ab134f73·...·]/core/iter/adapters/fuse/struct.Fuse.html"·title="struct·core::iter::adapters::fuse::Fuse">Fuse</a>&lt;Self&gt;<div·class="where">where
58 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·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:·cfd3edf89fe5aca24b994f83b0d7da765620394e35140e694d98233d4d92481b·...·]/core/iter/adapters/inspect/struct.Inspect.html"·title="struct·core::iter::adapters::inspect::Inspect">Inspect</a>&lt;Self,·F&gt;<div·class="where">where58 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.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.78.0/core/op[·...·truncated·by·diffoscope;·len:·841,·SHA:·9cba1b175fb3726d7f1f01da9be7c1a56568a68e4ce7915a468b730902daf8d3·...·]/core/iter/adapters/inspect/struct.Inspect.html"·title="struct·core::iter::adapters::inspect::Inspect">Inspect</a>&lt;Self,·F&gt;<div·class="where">where
59 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,59 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.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::Itera[·...·truncated·by·diffoscope;·len:·772,·SHA:·31d2052382378512fa905c6d5297d384eac7b7f126141ce561719c0e27cc9d39·...·]/core/primitive.reference.html">&amp;mut·Self</a><div·class="where">where60 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·934,·SHA:·ea20d2e0fe9388580ea08100baa9120b5e9b6cb48f43fc846f15db8b9649e7f6·...·]/core/primitive.reference.html">&amp;mut·Self</a><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'>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:·98760b16b1ed91f9558e6e2637724a4608316181d5f6f4d236e896a83eca9af9·...·]/core/iter/traits/iterator/trait.Iterator.html#method.collect"·class="fn">collect</a>&lt;B&gt;(self)·-&gt;·B<div·class="where">where61 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.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.78.0/core/it[·...·truncated·by·diffoscope;·len:·523,·SHA:·97064c705f6f4bdf74469c54fabcf580d21893127d1b4cd9a9c1018a717ef153·...·]/core/iter/traits/iterator/trait.Iterator.html#method.collect"·class="fn">collect</a>&lt;B&gt;(self)·-&gt;·B<div·class="where">where
62 ····B:·<a·class="trait"·href="../../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;,62 ····B:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.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.78.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><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:·e5d524e874326d0b9b733f5ee809c6595cde869afab0cc3d4ba8454093f420da·...·]/core/primitive.reference.html">&amp;mut·E</a><div·class="where">where63 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.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.78.0/core/iter/tr[·...·truncated·by·diffoscope;·len:·728,·SHA:·01937c2dc314c259495665570ae249c94b4a5b0719718f5f1188e6fc64ecf487·...·]/core/primitive.reference.html">&amp;mut·E</a><div·class="where">where
64 ····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;,64 ····E:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.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.78.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><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:·b0297783e056393a542c4058b42c18523a86c961c1b6ce3bc94342c1a2c10c58·...·]/core/primitive.tuple.html">(B,·B)</a><div·class="where">where65 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></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:·00bd47017b1bdd1bbe2c3fc932d955a8aa2f7f5eff8c00e3001ae28a982a5883·...·]/core/primitive.tuple.html">(B,·B)</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.78.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
67 ····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;,67 ····B:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/default/trait.Default.html"·title="trait·core::default::Default">Default</a>·+·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/collect/trait.Extend.html"·title="trait·core::iter::traits::collec[·...·truncated·by·diffoscope;·len:·95,·SHA:·8b3be1d0042cae0550f865faf5849221240bdf04eb1b2107605b72d48c3ad29c·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;,
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:·783,·SHA:·f8b50287f3e106633ed79a84072d3ddd9d98672efd685d2433c61b5549ce051e·...·]/core/primitive.bool.html">bool</a><div·class="where">where68 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·972,·SHA:·6de765542031617a9c28ac98fe6df619e58e62d9c65ec5b1c185a7152b8944e5·...·]/core/primitive.bool.html">bool</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.78.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:·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,70 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·135,·SHA:·51ff5f5c7ebd8440623ea71b125c5a5837e809e308fe1a13fbe19cddb941dbd9·...·]/core/primitive.bool.html">bool</a>,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iter_is_partitioned</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/62544">#62544</a>)</span></div></span><div·class='docblock'>Checks·if·the·elements·of·this·iterator·are·partitioned·according·to·the·given·predicate,
71 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:·16087a70ed3fdb9452fac1db6c6dfd70950937f6c202d0651e9de5cd42f89c47·...·]/core/iter/traits/iterator/trait.Iterator.html#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 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.78.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:·b5b5559d4bedab0135adfae89ec80ffab292c35f0d8c34fa5240955934cefd74·...·]/core/iter/traits/iterator/trait.Iterator.html#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.78.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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.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.78.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.78.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.reduce"·class="method·trait-impl"><span·class="rightside"><span·class="since"·titl[·...·truncated·by·diffoscope;·len:·492,·SHA:·62c9073cbde434b3360fecb6291c690b867ce1a9341636a10915665ff20914ca·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;<div·class="where">where75 iterator,·stopping·at·the·first·error·and·returning·that·error.·<a·href="https://doc.rust-lang.org/1.78.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:·94f0d6f81d13cadba9ee012268cda8b0ff7a775a8c03d992a108a9ae039e4d71·...·]/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.78.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::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·reducing77 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·352,·SHA:·e7c3c296abe2c0a183967153e4ae7fd50bafa2ae7088e3e78b3b48fee253adc6·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::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/core/iter[·...·truncated·by·diffoscope;·len:·136,·SHA:·a9dce8bb557b5a11426bf2ffcbd5eea7c6c870833e3ee5bb072dcaaa11687b0c·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_reduce"·class="fn">try_reduce</a>&lt;F,·R&gt;(78 operation.·<a·href="https://doc.rust-lang.org/1.78.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:·7a18fdd041b1a001b4a8feb289ee127fd9240232239269eb35dc3b8f74783ec9·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_reduce"·class="fn">try_reduce</a>&lt;F,·R&gt;(
79 ····&amp;mut·self,79 ····&amp;mut·self,
80 ····f:·F80 ····f:·F
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</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">where81 )·-&gt;·&lt;&lt;R·as·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&gt;::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/ops/try_trait/trait.Try.html#associatedtype.Residual"·title="type[·...·truncated·by·diffoscope;·len:·754,·SHA:·6fb4dfdb6b4da68921c1e7f8b75d99cf293d58318d684a840254ce9576957bea·...·]/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.78.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::[·...·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,83 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·140,·SHA:·c27972e6fa3464c9476eaa185e8657edb6bb294f148403f3d079285294a9f909·...·]/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·=·Self::<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 ····R:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.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.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;,
85 ····&lt;R·as·<a·class="trait"·href="../../core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&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·the85 ····&lt;R·as·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&gt;::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/ops/try_trait/trait.Try.html#associatedtype.Residual"·title="type[·...·truncated·by·diffoscope;·len:·412,·SHA:·22b8cbb007e5cce82b9d13a65bfa56aa8d83c32541fac25f4d9b3857b0540908·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;&gt;,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iterator_try_reduce</code>&nbsp;<a·href="https://github.com/rust-lang/rust/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
86 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:·65b80c848af6e465c8c5aef4ec8d3faaa399d30c8427c9507fda7b3bd1d3ea93·...·]/core/primitive.bool.html">bool</a><div·class="where">where86 closure·returns·a·failure,·the·failure·is·propagated·back·to·the·caller·immediately.·<a·href="https://doc.rust-lang.org/1.78.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:·bc0d658d56e348823de15386e1cd4ab49109f3a7a055a4573a19391b47071193·...·]/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.78.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:·829,·SHA:·95a840b532d3d621bde4032d63854eb0a481248e2b4bbb3ef058dbffb4dae4fa·...·]/core/primitive.bool.html">bool</a><div·class="where">where88 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·1018,·SHA:·e61cd6bdd36729cc38e57fcaea2ccb91a23a5acbda3c8986071f19bf1ecfc52a·...·]/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.78.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:·956,·SHA:·f828c62edd4fe85e217286f359b56c116e14ed18bb292ba1cc13d3ed7146909e·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;<div·class="where">where90 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·1172,·SHA:·e64ab74d116d286191ad43d9d9e10411fc011c23724aa806e9a8f9b0be0757e3·...·]/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.78.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:·862,·SHA:·21d7086b3ce0092e3f7a6a41174339bbd8724e7d186158db4db3385a73d94e8e·...·]/core/option/enum.Option.html"·title="enum·core::option::Option">Option</a>&lt;B&gt;<div·class="where">where92 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·1051,·SHA:·ecc0b8fccd861464760f9ae047ff6ab98c91a1db010cb5fa59a8c2ab883db7c4·...·]/core/option/enum.Option.html"·title="enum·core::option::Option">Option</a>&lt;B&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.78.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::[·...·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·returns94 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·130,·SHA:·130a13019dc175d02304b4f550157e2f13ac15c2f25a979c74161d10b146ab89·...·]/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
95 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:·ac4da3337aac1ec10038e246be9cb719eeb5af1acc709f5a6a25b91900c56f53·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_find"·class="fn">try_find</a>&lt;F,·R&gt;(95 the·first·non-none·result.·<a·href="https://doc.rust-lang.org/1.78.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:·8ced1b10e78750774c5c8ed995ed83dcd13983aa75d329acf8069da106ab9f4a·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_find"·class="fn">try_find</a>&lt;F,·R&gt;(
96 ····&amp;mut·self,96 ····&amp;mut·self,
97 ····f:·F97 ····f:·F
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</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">where98 )·-&gt;·&lt;&lt;R·as·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&gt;::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/ops/try_trait/trait.Try.html#associatedtype.Residual"·title="type[·...·truncated·by·diffoscope;·len:·626,·SHA:·95f9831257b68862cbcbf54f0ad2ff4e597a4c9f763112d1da8a0897dadcf872·...·]/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.78.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>(&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:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.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.bool.html">bool</a>&gt;,101 ····R:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.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.78.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.78.0/core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&gt;::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/ops/try_trait/trait.Try.html#associatedtype.Residual"·title="type[·...·truncated·by·diffoscope;·len:·412,·SHA:·22b8cbb007e5cce82b9d13a65bfa56aa8d83c32541fac25f4d9b3857b0540908·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;&gt;,</div></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.78.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:·fa9d94b216f6e4ce6035b4762e3bf17cb86a0272db0a55a056f05c68bcaeb0da·...·]/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.78.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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·1190,·SHA:·882e9e9a037f916d0ed4aa6d749399e6e01ca81811eacfc54a484818cb5d5029·...·]/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.78.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.78.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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/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.78.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:·0367b1bacc0a7d8e05f1c5181f8c4ea428f3f11edbae0e76811f3ef1d4925e41·...·]/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.78.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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·346,·SHA:·7113e4c2d65a123253bb18971efdc2d49241cfc2dd4c2b18e4cfa4e4d7d4140f·...·]/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.78.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:·db89d4cca0becf2a4ab904adac2870de6fd83cfad5131f5a1431a67766274f81·...·]/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.78.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.78.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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/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.78.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:·39ce6bc28062c0df48bff6a8faa3e4f2266988879092cf2970d2e9ee092742b0·...·]/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.78.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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·346,·SHA:·7113e4c2d65a123253bb18971efdc2d49241cfc2dd4c2b18e4cfa4e4d7d4140f·...·]/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.78.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:·64f5ac8109ab8e5164c24b53640d938d0bb2486cf55faea0ff483f1e9ad27c8f·...·]/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.78.0/core/default/trait.Default.html"·title="trait·core::default::Default">Default</a>·+·<a·class="trait"·href="https://doc.rust-lang.org/1.78.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.78.0/core/default/trait.Default.html"·title="trait·core::default::Default">Default</a>·+·<a·class="trait"·href="https://doc.rust-lang.org/1.78.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:·ddfc6ab5b04a5a9d2604baea549ca2df87d19343e0d63e1128eff1b803f662c7·...·]/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.78.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>·+·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html"·title="trait·core::iter::traits::iterator::I[·...·truncated·by·diffoscope;·len:·980,·SHA:·8f6df3c40809d9a55d4dab64faffa89b8268cb5f886608ccbcab921d7ab8e9fc·...·]/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.78.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:·634519b2d242c65d05aaca6b24a1e4b8081f167afc322025b0f4b5d8bd0de1d4·...·]/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.78.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>·+·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html"·title="trait·core::iter::traits::iterator::I[·...·truncated·by·diffoscope;·len:·983,·SHA:·d7472ec42d940fce3a1b145fd6fd3540c4095b4b5e88360dcd07223d97d60b94·...·]/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.78.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:·391c1b8a001cc98146e1ef673ba5d81873432b8fb42ab0d182119be8ca97a4b3·...·]/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.78.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>·+·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html"·title="trait·core::iter::traits::iterator::I[·...·truncated·by·diffoscope;·len:·1110,·SHA:·92690c14cf35867768c524f674b2a5f40fd9516e58074a43352abb3fcbb96612·...·]/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:·36d94b7d9aea5d10db94ef16a9e79fdf3cdf14aac55762a70697df8a0ec331c7·...·]/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.78.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>·+·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/clone/trait.Clone.html"·title="trait·core::clone::Clone">Clone</a>,</div></h4></sectio[·...·truncated·by·diffoscope;·len:·827,·SHA:·ec8d6c6a2c68c9c472897594711e2174619014e8c7f508e41a201128a00f47d6·...·]/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; 85780/286908 bytes (29.90%) of diff not shown.
280 KB
./usr/share/doc/rust-web-doc/html/alloc/str/struct.EscapeUnicode.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="The·return·type·of·`str::escape_unicode`."><title>EscapeUnicode·in·alloc::str·-·Rust</title><script>·if·(window.location.protocol·!==·"file:")·document.write(`<link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/SourceSerif4-Regular-46f98efaafac5295.ttf.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/FiraSans-Regular-018c141bf0843ffd.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/FiraSans-Medium-8f9a781e4970d388.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/SourceCodePro-Regular-562dcc5011b6de7d.ttf.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/SourceCodePro-Semibold-d899c5a5c4aeb14a.ttf.woff2">`)</script><link·rel="stylesheet"·href="../../static.files/normalize-76eba96aa4d2e634.css"><link·rel="stylesheet"·href="../../static.files/rustdoc-35f9e32502181f1e.css"><meta·name="rustdoc-vars"·data-root-path="../../"·data-static-root-path="../../static.files/"·data-current-crate="alloc"·data-themes=""·data-resource-suffix="1.78.0"·data-rustdoc-version="1.78.0"·data-channel="1.78.0"·data-search-js="search-42d8da7a6b9792c2.js"·data-settings-js="settings-4313503d2e1961c2.js"·><script·src="../../static.files/storage-4c98445ec4002617.js"></script><script·defer·src="sidebar-items1.78.0.js"></script><script·defer·src="../../static.files/main-12cf3b4f4f9dc36d.js"></script><noscript><link·rel="stylesheet"·href="../../static.files/noscript-04d5337699b92874.css"></noscript><link·rel="alternate·icon"·type="image/png"·href="../../static.files/favicon-16x16-8b506e7a72182f1c.png"><link·rel="alternate·icon"·type="image/png"·href="../../static.files/favicon-32x32-422f7d1d52889060.png"><link·rel="icon"·type="image/svg+xml"·href="../../static.files/favicon-2c020d218678b618.svg"></head><body·class="rustdoc·struct"><!--[if·lte·IE·11]><div·class="warning">This·old·browser·is·unsupported·and·will·most·likely·display·funky·things.</div><![endif]--><nav·class="mobile-topbar"><button·class="sidebar-menu-toggle"·title="show·sidebar"></button><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-151179464ae7ed46.svg"·alt=""></a></nav><nav·class="sidebar"><div·class="sidebar-crate"><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-151179464ae7ed46.svg"·alt="logo"></a><h2><a·href="../../alloc/index.html">alloc</a><span·class="version">1.78.0</span></h2></div><h2·class="location"><a·href="#">EscapeUnicode</a></h2><div·class="sidebar-elems"><section><h3><a·href="#trait-implementations">Trait·Implementations</a></h3><ul·class="block·trait-implementation"><li><a·href="#impl-Clone-for-EscapeUnicode%3C'a%3E">Clone</a></li><li><a·href="#impl-Debug-for-EscapeUnicode%3C'a%3E">Debug</a></li><li><a·href="#impl-Display-for-EscapeUnicode%3C'a%3E">Display</a></li><li><a·href="#impl-FusedIterator-for-EscapeUnicode%3C'a%3E">FusedIterator</a></li><li><a·href="#impl-Iterator-for-EscapeUnicode%3C'a%3E">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">Freeze</a></li><li><a·href="#impl-RefUnwindSafe-for-EscapeUnicode%3C'a%3E">RefUnwindSafe</a></li><li><a·href="#impl-Send-for-EscapeUnicode%3C'a%3E">Send</a></li><li><a·href="#impl-Sync-for-EscapeUnicode%3C'a%3E">Sync</a></li><li><a·href="#impl-Unpin-for-EscapeUnicode%3C'a%3E">Unpin</a></li><li><a·href="#impl-UnwindSafe-for-EscapeUnicode%3C'a%3E">UnwindSafe</a></li></ul><h3><a·href="#blanket-implementations">Blanket·Implementations</a></h3><ul·class="block·blanket-implementation"><li><a·href="#impl-Any-for-T">Any</a></li><li><a·href="#impl-Borrow%3CT%3E-for-T">Borrow&lt;T&gt;</a></li><li><a·href="#impl-BorrowMut%3CT%3E-for-T">BorrowMut&lt;T&gt;</a></li><li><a·href="#impl-From%3CT%3E-for-T">From&lt;T&gt;</a></li><li><a·href="#impl-Into%3CU%3E-for-T">Into&lt;U&gt;</a></li><li><a·href="#impl-IntoIterator-for-I">IntoIterator</a></li><li><a·href="#impl-ToOwned-for-T">ToOwned</a></li><li><a·href="#impl-ToString-for-T">ToString</a></li><li><a·href="#impl-TryFrom%3CU%3E-for-T">TryFrom&lt;U&gt;</a></li><li><a·href="#impl-TryInto%3CU%3E-for-T">TryInto&lt;U&gt;</a></li></ul></section><h2><a·href="index.html">In·alloc::str</a></h2></div></nav><div·class="sidebar-resizer"></div>1 <!DOCTYPE·html><html·lang="en"><head><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.write(`<link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/SourceSerif4-Regular-46f98efaafac5295.ttf.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/FiraSans-Regular-018c141bf0843ffd.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/FiraSans-Medium-8f9a781e4970d388.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/SourceCodePro-Regular-562dcc5011b6de7d.ttf.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/SourceCodePro-Semibold-d899c5a5c4aeb14a.ttf.woff2">`)</script><link·rel="stylesheet"·href="../../static.files/normalize-76eba96aa4d2e634.css"><link·rel="stylesheet"·href="../../static.files/rustdoc-35f9e32502181f1e.css"><meta·name="rustdoc-vars"·data-root-path="../../"·data-static-root-path="../../static.files/"·data-current-crate="alloc"·data-themes=""·data-resource-suffix="1.78.0"·data-rustdoc-version="1.78.0"·data-channel="1.78.0"·data-search-js="search-42d8da7a6b9792c2.js"·data-settings-js="settings-4313503d2e1961c2.js"·><script·src="../../static.files/storage-4c98445ec4002617.js"></script><script·defer·src="sidebar-items1.78.0.js"></script><script·defer·src="../../static.files/main-12cf3b4f4f9dc36d.js"></script><noscript><link·rel="stylesheet"·href="../../static.files/noscript-04d5337699b92874.css"></noscript><link·rel="alternate·icon"·type="image/png"·href="../../static.files/favicon-16x16-8b506e7a72182f1c.png"><link·rel="alternate·icon"·type="image/png"·href="../../static.files/favicon-32x32-422f7d1d52889060.png"><link·rel="icon"·type="image/svg+xml"·href="../../static.files/favicon-2c020d218678b618.svg"></head><body·class="rustdoc·struct"><!--[if·lte·IE·11]><div·class="warning">This·old·browser·is·unsupported·and·will·most·likely·display·funky·things.</div><![endif]--><nav·class="mobile-topbar"><button·class="sidebar-menu-toggle"·title="show·sidebar"></button><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-151179464ae7ed46.svg"·alt=""></a></nav><nav·class="sidebar"><div·class="sidebar-crate"><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-151179464ae7ed46.svg"·alt="logo"></a><h2><a·href="../../alloc/index.html">alloc</a><span·class="version">1.78.0</span></h2></div><h2·class="location"><a·href="#">EscapeUnicode</a></h2><div·class="sidebar-elems"><section><h3><a·href="#trait-implementations">Trait·Implementations</a></h3><ul·class="block·trait-implementation"><li><a·href="#impl-Clone-for-EscapeUnicode%3C'a%3E">Clone</a></li><li><a·href="#impl-Debug-for-EscapeUnicode%3C'a%3E">Debug</a></li><li><a·href="#impl-Display-for-EscapeUnicode%3C'a%3E">Display</a></li><li><a·href="#impl-FusedIterator-for-EscapeUnicode%3C'a%3E">FusedIterator</a></li><li><a·href="#impl-Iterator-for-EscapeUnicode%3C'a%3E">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">Freeze</a></li><li><a·href="#impl-RefUnwindSafe-for-EscapeUnicode%3C'a%3E">RefUnwindSafe</a></li><li><a·href="#impl-Send-for-EscapeUnicode%3C'a%3E">Send</a></li><li><a·href="#impl-Sync-for-EscapeUnicode%3C'a%3E">Sync</a></li><li><a·href="#impl-Unpin-for-EscapeUnicode%3C'a%3E">Unpin</a></li><li><a·href="#impl-UnwindSafe-for-EscapeUnicode%3C'a%3E">UnwindSafe</a></li></ul><h3><a·href="#blanket-implementations">Blanket·Implementations</a></h3><ul·class="block·blanket-implementation"><li><a·href="#impl-Any-for-T">Any</a></li><li><a·href="#impl-Borrow%3CT%3E-for-T">Borrow&lt;T&gt;</a></li><li><a·href="#impl-BorrowMut%3CT%3E-for-T">BorrowMut&lt;T&gt;</a></li><li><a·href="#impl-From%3CT%3E-for-T">From&lt;T&gt;</a></li><li><a·href="#impl-Into%3CU%3E-for-T">Into&lt;U&gt;</a></li><li><a·href="#impl-IntoIterator-for-I">IntoIterator</a></li><li><a·href="#impl-ToOwned-for-T">ToOwned</a></li><li><a·href="#impl-ToString-for-T">ToString</a></li><li><a·href="#impl-TryFrom%3CU%3E-for-T">TryFrom&lt;U&gt;</a></li><li><a·href="#impl-TryInto%3CU%3E-for-T">TryInto&lt;U&gt;</a></li></ul></section><h2><a·href="index.html">In·alloc::str</a></h2></div></nav><div·class="sidebar-resizer"></div>
2 ····<main><div·class="width-limiter"><nav·class="sub"><form·class="search-form"><span></span><div·id="sidebar-button"·tabindex="-1"><a·href="../../alloc/all.html"·title="show·sidebar"></a></div><input·class="search-input"·name="search"·aria-label="Run·search·in·the·documentation"·autocomplete="off"·spellcheck="false"·placeholder="Click·or·press·‘S’·to·search,·‘?’·for·more·options…"·type="search"><div·id="help-button"·tabindex="-1"><a·href="../../help.html"·title="help">?</a></div><div·id="settings-menu"·tabindex="-1"><a·href="../../settings.html"·title="settings"><img·width="22"·height="22"·alt="Change·settings"·src="../../static.files/wheel-7b819b6101059cd0.svg"></a></div></form></nav><section·id="main-content"·class="content"><div·class="main-heading"><h1>Struct·<a·href="../index.html">alloc</a>::<wbr><a·href="index.html">str</a>::<wbr><a·class="struct"·href="#">EscapeUnicode</a><button·id="copy-path"·title="Copy·item·path·to·clipboard"><img·src="../../static.files/clipboard-7571035ce49a181d.svg"·width="19"·height="18"·alt="Copy·item·path"></button></h1><span·class="out-of-band"><span·class="since"·title="Stable·since·Rust·version·1.34.0">1.34.0</span>···<a·class="src"·href="../../src/core/str/iter.rs.html#1559">source</a>···<button·id="toggle-all-docs"·title="collapse·all·docs">[<span>&#x2212;</span>]</button></span></div><pre·class="rust·item-decl"><code>pub·struct·EscapeUnicode&lt;'a&gt;·{·<span·class="comment">/*·private·f[·...·truncated·by·diffoscope;·len:·190,·SHA:·74879d1b574fbe9493d35ce8a88918998e0feee60c7ded9e1a3e26daf0f6057d·...·]/core/primitive.str.html#method.escape_unicode"·title="method·str::escape_unicode"><code>str::escape_unicode</code></a>.</p>2 ····<main><div·class="width-limiter"><nav·class="sub"><form·class="search-form"><span></span><div·id="sidebar-button"·tabindex="-1"><a·href="../../alloc/all.html"·title="show·sidebar"></a></div><input·class="search-input"·name="search"·aria-label="Run·search·in·the·documentation"·autocomplete="off"·spellcheck="false"·placeholder="Click·or·press·‘S’·to·search,·‘?’·for·more·options…"·type="search"><div·id="help-button"·tabindex="-1"><a·href="../../help.html"·title="help">?</a></div><div·id="settings-menu"·tabindex="-1"><a·href="../../settings.html"·title="settings"><img·width="22"·height="22"·alt="Change·settings"·src="../../static.files/wheel-7b819b6101059cd0.svg"></a></div></form></nav><section·id="main-content"·class="content"><div·class="main-heading"><h1>Struct·<a·href="../index.html">alloc</a>::<wbr><a·href="index.html">str</a>::<wbr><a·class="struct"·href="#">EscapeUnicode</a><button·id="copy-path"·title="Copy·item·path·to·clipboard"><img·src="../../static.files/clipboard-7571035ce49a181d.svg"·width="19"·height="18"·alt="Copy·item·path"></button></h1><span·class="out-of-band"><span·class="since"·title="Stable·since·Rust·version·1.34.0">1.34.0</span>···<a·class="src"·href="https://doc.rust-lang.org/1.78.0/src/core/str/iter.rs.html#1559">source</a>···<button·id="toggle-all-docs"·title="collapse·all·docs">[<span>&#x2212;</span>]</button></span></div><pre·class="rust·item-decl"><code>pub·struct·EscapeUnicode&lt;'a&gt;·{·<span·c[·...·truncated·by·diffoscope;·len:·244,·SHA:·2ac2d9a610c1bbbb6bd1aadffb2097a53782abd132da1bfd89afc2068c6e0fe0·...·]/core/primitive.str.html#method.escape_unicode"·title="method·str::escape_unicode"><code>str::escape_unicode</code></a>.</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-Clone-for-EscapeUnicode%3C'a%3E"·class="impl"><a·class="src·rightside"·href="../../src/core/str/iter.rs.html#1558">source</a><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">Clone</a>·[·...·truncated·by·diffoscope;·len:·7606,·SHA:·4bf7b1fe0c04fe3f1177aec7114e6bb148d276876a0125a7255669c49b59042b·...·]/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">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-Clone-for-EscapeUnicode%3C'a%3E"·class="impl"><a·class="src·rightside"·href="https://doc.rust-lang.org/1.78.0/src/core/str/iter.rs.html#1558">source</a><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.78.0/core/clone/trait.C[·...·truncated·by·diffoscope;·len:·8524,·SHA:·8ec2b80ca7d864924fa12433b6b386ccfde89e65280c040a8dfdfe9ec3a183e9·...·]/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
4 ····<a·class="struct"·href="struct.EscapeUnicode.html"·title="struct·alloc::str::EscapeUnicode">EscapeUnicode</a>&lt;'a&gt;:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,4 ····<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.78.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
5 ····Fold:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Acc,·&lt;<a·class="struct"·href="struct.EscapeUnicode.html"·title="struct·alloc::str::EscapeUnicode">EscapeUnicode</a>&lt;'a&gt;·as·<a·class="trait"·href="../../co[·...·truncated·by·diffoscope;·len:·153,·SHA:·5647c32617d282adc9da074a8c6ab8a8afc82618fce53847fed3578ea2f9c448·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·R,5 ····Fold:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.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:·c502ce8e4359aec3ce5a1c9f1ce4d79f547d1dacba3817a2432b6ee82e60dbb7·...·]/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·=·Acc&gt;,</div></h4></section></summary><div·class='docblock'>An·iterator·method·that·applies·a·function·as·long·as·it·returns6 ····R:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.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
7 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:·220ac8a8e0a4b6d6d2c8a74ae99f726e41c987632967ce5f15dd4090057866ba·...·]/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">where7 successfully,·producing·a·single,·final·value.·<a·href="https://doc.rust-lang.org/1.78.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:·abb30099fcc8cb59ae37cb3062112f5669ab93fc76a9bcb347d4824765464b7c·...·]/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
8 ····Fold:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Acc,·&lt;<a·class="struct"·href="struct.EscapeUnicode.html"·title="struct·alloc::str::EscapeUnicode">EscapeUnicode</a>&lt;'a&gt;·as·<a·class="trait"·href="../../co[·...·truncated·by·diffoscope;·len:·153,·SHA:·5647c32617d282adc9da074a8c6ab8a8afc82618fce53847fed3578ea2f9c448·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·Acc,</div></h4></section></summary><div·class='docblock'>Folds·every·element·into·an·accumulator·by·applying·an·operation,8 ····Fold:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.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:·c502ce8e4359aec3ce5a1c9f1ce4d79f547d1dacba3817a2432b6ee82e60dbb7·...·]/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,
9 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:·873923466e86cc7b413cead1f309a1f1d871d8cc3d6e4f18eb02a72f06d14ed7·...·]/core/primitive.usize.html">usize</a>&gt;(9 returning·the·final·result.·<a·href="https://doc.rust-lang.org/1.78.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:·6e6478099b84b19aef63d4506f761578426c571fbb374eef4c590e1ef5f5fe3c·...·]/core/primitive.usize.html">usize</a>&gt;(
10 ····&amp;mut·self10 ····&amp;mut·self
11 )·-&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">where11 )·-&gt;·<a·class="enum"·href="https://doc.rust-lang.org/1.78.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.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title=[·...·truncated·by·diffoscope;·len:·381,·SHA:·88c48923c9b7ea5cc47c1087c60e09656e81d4671c58071ba2bef826335388bc·...·]/core/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
12 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></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:·602d17b58d1cf716882ddc867fc66cfda4f899bef17b038a48553e9133f60097·...·]/core/primitive.usize.html">usize</a><div·class="where">where12 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></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:·89791450da70cbd536c3cf8fbf2dd9891668362f9a252d3ee098222d19960bae·...·]/core/primitive.usize.html">usize</a><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,·counting·the·number·of·iterations·and·returning·it.·<a·href="../../core/iter/traits/iterator/trait.I[·...·truncated·by·diffoscope;·len:·675,·SHA:·5b5aaec46c04cf77d2fa06e88cd6f0a2bd8d201412bc325302bd2f8f21b39207·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;<div·class="where">where13 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.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:·84ae0beb16240102bae2355bb8c543b17f3f107e3c06b320839aa401eebb1945·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&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'>Consumes·the·iterator,·returning·the·last·element.·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.last[·...·truncated·by·diffoscope;·len:·2964,·SHA:·6b808f54a13578d2e276864bb3eb79ae7b452b8959e79f7ea7ab1180574b77fc·...·]/core/iter/adapters/step_by/struct.StepBy.html"·title="struct·core::iter::adapters::step_by::StepBy">StepBy</a>&lt;Self&gt;<div·class="where">where14 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.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.78.0/cor[·...·truncated·by·diffoscope;·len:·3504,·SHA:·6d21b6d637e0b2e9953a37a26fd19e00da089147d4acaf696c94d448de4ce419·...·]/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
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'>Creates·an·iterator·starting·at·the·same·point,·but·stepping·by15 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.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
16 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:·5667b9b6c9778ff3b9d23ed0a110e7ab9d3fccc786fdcaca8c17edf996236439·...·]/core/iter/traits/collect/trait.IntoIterator.html#associatedtype.IntoIter"·title="type·core::iter::traits::collect::IntoIterator::IntoIter">IntoIter</a>&gt;<div·class="where">where16 the·given·amount·at·each·iteration.·<a·href="https://doc.rust-lang.org/1.78.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:·e83c903581753673e083ce8dd809879a2fc81ab3050eb6db267d7fa26b15e035·...·]/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.78.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>&lt;Item·=·Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title=[·...·truncated·by·diffoscope;·len:·1113,·SHA:·1c6bb9803ee8832ebd4c28a08a952178165595b6870cf35d3c89454b9da828b2·...·]/core/iter/traits/collect/trait.IntoIterator.html#associatedtype.IntoIter"·title="type·core::iter::traits::collect::IntoIterator::IntoIter">IntoIter</a>&gt;<div·class="where">where18 ····U:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.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.78.0/core/iter/traits/it[·...·truncated·by·diffoscope;·len:·1329,·SHA:·d9299c8edc606ed82f24d61ce441bec451141d684c2a9a75074f5b19c57f196c·...·]/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.78.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>,</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:·c1b5e692e89c9c809075ee8ee72fb15a9ec46c075b08450e1f707d672a224750·...·]/core/iter/adapters/intersperse/struct.IntersperseWith.html"·title="struct·core::iter::adapters::intersperse::IntersperseWith">IntersperseWith</a>&lt;Self,·G&gt;<div·class="where">where20 ····U:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.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:·98627729f77dcf1c9d258f343354ba600b7134c6b3929080f231e8de7155b70b·...·]/core/iter/adapters/intersperse/struct.IntersperseWith.html"·title="struct·core::iter::adapters::intersperse::IntersperseWith">IntersperseWith</a>&lt;Self,·G&gt;<div·class="where">where
21 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,21 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
22 ····G:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>()·-&gt;·Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iter_intersperse</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/79524">#79524</a>)</span></div></span><div·class='docblock'>Creates·a·new·iterator·which·places·an·item·generated·by·<code>separator</code>22 ····G:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.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.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iter_intersperse</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/79524">#79524</a>)</span></div></span><div·class='docblock'>Creates·a·new·iterator·which·places·an·item·generated·by·<code>separator</code>
23 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:·d6282409add0999f2130eb6bbe6d0473ce96bf2544799e8bc22156f3c2d2e0dd·...·]/core/iter/adapters/map/struct.Map.html"·title="struct·core::iter::adapters::map::Map">Map</a>&lt;Self,·F&gt;<div·class="where">where23 between·adjacent·items·of·the·original·iterator.·<a·href="https://doc.rust-lang.org/1.78.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:·7301b6beba7b6885849be90a625df68ef739a5374af456c51fe2e81d91a25363·...·]/core/iter/adapters/map/struct.Map.html"·title="struct·core::iter::adapters::map::Map">Map</a>&lt;Self,·F&gt;<div·class="where">where
24 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,24 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.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::Iterator::Item">Item</a>)·-&gt;·B,</div></h4></section></summary><div·class='docblock'>Takes·a·closure·and·creates·an·iterator·which·calls·that·closure·on·each25 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·B,</div></h4></section></summary><div·class='docblock'>Takes·a·closure·and·creates·an·iterator·which·calls·that·closure·on·each
26 element.·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.map">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:·fb4c9589a16c7b6d697c109d1193d2f1e763e5dd967101c2fd92b32416972229·...·]/core/iter/traits/iterator/trait.Iterator.html#method.for_each"·class="fn">for_each</a>&lt;F&gt;(self,·f:·F)<div·class="where">where26 element.·<a·href="https://doc.rust-lang.org/1.78.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:·98f6effefa44d759c249143d83623f0055d937382bfc398b7e1f5e92cd413657·...·]/core/iter/traits/iterator/trait.Iterator.html#method.for_each"·class="fn">for_each</a>&lt;F&gt;(self,·f:·F)<div·class="where">where
27 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,27 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.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:·754,·SHA:·7abbad666ec88a1053b8aca2a481d629a3ef3596eddb570c381205fa2d859a52·...·]/core/iter/adapters/filter/struct.Filter.html"·title="struct·core::iter::adapters::filter::Filter">Filter</a>&lt;Self,·P&gt;<div·class="where">where28 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·916,·SHA:·30d0b2a76513c5a880e9aee43e92b18805845cfcfe5783f62dc090167a439e63·...·]/core/iter/adapters/filter/struct.Filter.html"·title="struct·core::iter::adapters::filter::Filter">Filter</a>&lt;Self,·P&gt;<div·class="where">where
29 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,29 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.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:·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·element30 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·140,·SHA:·752f473b57e7444ebfddf5ea7fd40a332e83ec55524a6c31b5ee0f82a5dea819·...·]/core/primitive.bool.html">bool</a>,</div></h4></section></summary><div·class='docblock'>Creates·an·iterator·which·uses·a·closure·to·determine·if·an·element
31 should·be·yielded.·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.filter">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:·7da07154834a15b8ae55b4fd41479da070ccbd27e071909f81698570c306a081·...·]/core/iter/adapters/filter_map/struct.FilterMap.html"·title="struct·core::iter::adapters::filter_map::FilterMap">FilterMap</a>&lt;Self,·F&gt;<div·class="where">where31 should·be·yielded.·<a·href="https://doc.rust-lang.org/1.78.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:·76aa2ad154f88085ee3f8a22721a7e6812680bac785d19059532407f50da1801·...·]/core/iter/adapters/filter_map/struct.FilterMap.html"·title="struct·core::iter::adapters::filter_map::FilterMap">FilterMap</a>&lt;Self,·F&gt;<div·class="where">where
32 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,32 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.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:·863,·SHA:·c89169e5bf1c4724c7b411e568b6dad6475896f2606f557b3d708359ef71f5cc·...·]/core/iter/adapters/enumerate/struct.Enumerate.html"·title="struct·core::iter::adapters::enumerate::Enumerate">Enumerate</a>&lt;Self&gt;<div·class="where">where33 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·1052,·SHA:·110b47c7083083d565fcfc89337fddc8e5c87e81b2f720f3f7b0ded55e8500fb·...·]/core/iter/adapters/enumerate/struct.Enumerate.html"·title="struct·core::iter::adapters::enumerate::Enumerate">Enumerate</a>&lt;Self&gt;<div·class="where">where
34 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Creates·an·iterator·which·gives·the·current·iteration·count·as·well·as34 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.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
35 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:·53634008856676c70c32b501f7ec498c1f86d123cc9b5b898256a69895ff31fc·...·]/core/iter/adapters/peekable/struct.Peekable.html"·title="struct·core::iter::adapters::peekable::Peekable">Peekable</a>&lt;Self&gt;<div·class="where">where35 the·next·value.·<a·href="https://doc.rust-lang.org/1.78.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:·8464264e074dde5d84f0414ab3b5b2d8da83f3c9e3ca04c45458241580a8c80d·...·]/core/iter/adapters/peekable/struct.Peekable.html"·title="struct·core::iter::adapters::peekable::Peekable">Peekable</a>&lt;Self&gt;<div·class="where">where
36 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.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>·methods36 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.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.78.0/core/iter/adapte[·...·truncated·by·diffoscope;·len:·175,·SHA:·16fe7225bf05b478e2828b347c3d23ded9a22f89d8887a2c65d9f7b3faf1b0e7·...·]/core/iter/adapters/peekable/struct.Peekable.html#method.peek_mut"·title="method·core::iter::adapters::peekable::Peekable::peek_mut"><code>peek_mut</code></a>·methods
37 to·look·at·the·next·element·of·the·iterator·without·consuming·it.·See37 to·look·at·the·next·element·of·the·iterator·without·consuming·it.·See
38 their·documentation·for·more·information.·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.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:·77dd41e041d66c618d306e900a9159cf1b00478b8f37e5692be62119a1d4fcda·...·]/core/iter/adapters/skip_while/struct.SkipWhile.html"·title="struct·core::iter::adapters::skip_while::SkipWhile">SkipWhile</a>&lt;Self,·P&gt;<div·class="where">where38 their·documentation·for·more·information.·<a·href="https://doc.rust-lang.org/1.78.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:·00ccbb673c11ed48d8c6aa2a3f8984fb298202e7bccfa42f1ac21290fcc0fb06·...·]/core/iter/adapters/skip_while/struct.SkipWhile.html"·title="struct·core::iter::adapters::skip_while::SkipWhile">SkipWhile</a>&lt;Self,·P&gt;<div·class="where">where
39 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,39 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.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:·1018,·SHA:·c18326af66652e52fa627bfd0312af7fa2ad0ddc162b12a46e61047a031b0264·...·]/core/iter/adapters/take_while/struct.TakeWhile.html"·title="struct·core::iter::adapters::take_while::TakeWhile">TakeWhile</a>&lt;Self,·P&gt;<div·class="where">where40 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·1234,·SHA:·3b805567411cdcebed740f9e8d400dbe7fb487504f40e284544a140155090fdf·...·]/core/iter/adapters/take_while/struct.TakeWhile.html"·title="struct·core::iter::adapters::take_while::TakeWhile">TakeWhile</a>&lt;Self,·P&gt;<div·class="where">where
41 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,41 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.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:·869,·SHA:·39eeddf219b211245393e51a591d5064c740fa9be49d88883d8a6474679741ad·...·]/core/iter/adapters/map_while/struct.MapWhile.html"·title="struct·core::iter::adapters::map_while::MapWhile">MapWhile</a>&lt;Self,·P&gt;<div·class="where">where42 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·1058,·SHA:·b390dbdda8d7e93604b5ecd906a93efd03fe19bdaf41cf12893fd361bf974307·...·]/core/iter/adapters/map_while/struct.MapWhile.html"·title="struct·core::iter::adapters::map_while::MapWhile">MapWhile</a>&lt;Self,·P&gt;<div·class="where">where
43 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,43 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.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>(Self::<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:·9369fa85b74ff841f7401949cadba6dfbbbeead2a99568f20dcfd5aab20d61ab·...·]/core/iter/adapters/skip/struct.Skip.html"·title="struct·core::iter::adapters::skip::Skip">Skip</a>&lt;Self&gt;<div·class="where">where44 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·1163,·SHA:·5772149166d344bf8fa5ebbd9db8693a8f2e5f031c50338e8f1523ef72f814d6·...·]/core/iter/adapters/skip/struct.Skip.html"·title="struct·core::iter::adapters::skip::Skip">Skip</a>&lt;Self&gt;<div·class="where">where
45 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::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:·a25e81a74cc82c1837477e2b0cea682fff9f43550640901b8010ac501ca69e3d·...·]/core/iter/adapters/take/struct.Take.html"·title="struct·core::iter::adapters::take::Take">Take</a>&lt;Self&gt;<div·class="where">where45 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.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:·6216516fe581c401abda3c95818192e8f030e2008c9bbdbaafebba16f33ea9bd·...·]/core/iter/adapters/take/struct.Take.html"·title="struct·core::iter::adapters::take::Take">Take</a>&lt;Self&gt;<div·class="where">where
46 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Creates·an·iterator·that·yields·the·first·<code>n</code>·elements,·or·fewer46 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.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
47 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:·de8f1023275132502c1569b0ef9a557dc98eaf60aae97cdb916e52f9f55100aa·...·]/core/iter/adapters/scan/struct.Scan.html"·title="struct·core::iter::adapters::scan::Scan">Scan</a>&lt;Self,·St,·F&gt;<div·class="where">where47 if·the·underlying·iterator·ends·sooner.·<a·href="https://doc.rust-lang.org/1.78.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:·485843399c56e24bdf020ff0610d0ce1f62fbac5530d9880a1a7417105e3d70f·...·]/core/iter/adapters/scan/struct.Scan.html"·title="struct·core::iter::adapters::scan::Scan">Scan</a>&lt;Self,·St,·F&gt;<div·class="where">where
48 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,48 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.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>(<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,·but49 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(<a·class="primitive"·href="https://doc.rust-lang.org/1.78.0/core/primitive.reference.html">&amp;mut·St</a>,·Self::<a·class="associatedty[·...·truncated·by·diffoscope;·len:·449,·SHA:·f12c268a8a8111b9e7126ad78bf5523a63733caa63d187c4fe792309ea41acdf·...·]/core/iter/traits/iterator/trait.Iterator.html#method.fold"·title="method·core::iter::traits::iterator::Iterator::fold"><code>fold</code></a>,·holds·internal·state,·but
50 unlike·<a·href="../../core/iter/traits/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:·8b31595e3cee3022819032aac82e3df712188a2a6dcc20da6939262e5e528591·...·]/core/iter/adapters/flatten/struct.FlatMap.html"·title="struct·core::iter::adapters::flatten::FlatMap">FlatMap</a>&lt;Self,·U,·F&gt;<div·class="where">where50 unlike·<a·href="https://doc.rust-lang.org/1.78.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.78.0/core/iter/trai[·...·truncated·by·diffoscope;·len:·690,·SHA:·371190e5c1bf9b7dde6e84447965a69946212b977b9eb6d89048fbe34c5dda1c·...·]/core/iter/adapters/flatten/struct.FlatMap.html"·title="struct·core::iter::adapters::flatten::FlatMap">FlatMap</a>&lt;Self,·U,·F&gt;<div·class="where">where
51 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,51 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
52 ····U:·<a·class="trait"·href="../../core/iter/traits/collect/trait.IntoIterator.html"·title="trait·core::iter::traits::collect::IntoIterator">IntoIterator</a>,52 ····U:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/collect/trait.IntoIterator.html"·title="trait·core::iter::traits::collect::IntoIterator">IntoIterator</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:·787,·SHA:·9b6a337a3ad68c2a987b52450c153f87a04a8ed9e83603d26077fe6e70d61edf·...·]/core/iter/adapters/map_windows/struct.MapWindows.html"·title="struct·core::iter::adapters::map_windows::MapWindows">MapWindows</a>&lt;Self,·F,·N&gt;<div·class="where">where53 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·976,·SHA:·2a9182f6fe88e0b8a9b1ae1f46cace940cc0b8736033c354c0f0ccbf1c196e7a·...·]/core/iter/adapters/map_windows/struct.MapWindows.html"·title="struct·core::iter::adapters::map_windows::MapWindows">MapWindows</a>&lt;Self,·F,·N&gt;<div·class="where">where
54 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,54 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.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::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>·over55 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;[Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtyp[·...·truncated·by·diffoscope;·len:·135,·SHA:·0b06a6094d42ccbc8bce5b01c4383961fe7f1967f05e4c9f1ff33e71e425fb26·...·]/core/primitive.array.html">N</a>])·-&gt;·R,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iter_map_windows</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/87155">#87155</a>)</span></div></span><div·class='docblock'>Calls·the·given·function·<code>f</code>·for·each·contiguous·window·of·size·<code>N</code>·over
56 <code>self</code>·and·returns·an·iterator·over·the·outputs·of·<code>f</code>.·Like·<a·href="../../core/primitive.slice.html#method.windows"·title="method·slice::windows"><code>slice::windows()</code></a>,56 <code>self</code>·and·returns·an·iterator·over·the·outputs·of·<code>f</code>.·Like·<a·href="https://doc.rust-lang.org/1.78.0/core/primitive.slice.html#method.windows"·title="method·slice::windows"><code>slice::windows()</code></a>,
57 the·windows·during·mapping·overlap·as·well.·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.map_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:·238f6b49b3e28d725c57040edaa60bfbb34f140155e6af1d30eab52da1c7274f·...·]/core/iter/adapters/fuse/struct.Fuse.html"·title="struct·core::iter::adapters::fuse::Fuse">Fuse</a>&lt;Self&gt;<div·class="where">where57 the·windows·during·mapping·overlap·as·well.·<a·href="https://doc.rust-lang.org/1.78.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:·0d33056cee8a4f9b70b573c0adecc2f3599a2f8d9fa9f2c2044e9118ab134f73·...·]/core/iter/adapters/fuse/struct.Fuse.html"·title="struct·core::iter::adapters::fuse::Fuse">Fuse</a>&lt;Self&gt;<div·class="where">where
58 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·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:·cfd3edf89fe5aca24b994f83b0d7da765620394e35140e694d98233d4d92481b·...·]/core/iter/adapters/inspect/struct.Inspect.html"·title="struct·core::iter::adapters::inspect::Inspect">Inspect</a>&lt;Self,·F&gt;<div·class="where">where58 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.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.78.0/core/op[·...·truncated·by·diffoscope;·len:·841,·SHA:·9cba1b175fb3726d7f1f01da9be7c1a56568a68e4ce7915a468b730902daf8d3·...·]/core/iter/adapters/inspect/struct.Inspect.html"·title="struct·core::iter::adapters::inspect::Inspect">Inspect</a>&lt;Self,·F&gt;<div·class="where">where
59 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,59 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.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::Itera[·...·truncated·by·diffoscope;·len:·772,·SHA:·31d2052382378512fa905c6d5297d384eac7b7f126141ce561719c0e27cc9d39·...·]/core/primitive.reference.html">&amp;mut·Self</a><div·class="where">where60 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·934,·SHA:·ea20d2e0fe9388580ea08100baa9120b5e9b6cb48f43fc846f15db8b9649e7f6·...·]/core/primitive.reference.html">&amp;mut·Self</a><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'>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:·98760b16b1ed91f9558e6e2637724a4608316181d5f6f4d236e896a83eca9af9·...·]/core/iter/traits/iterator/trait.Iterator.html#method.collect"·class="fn">collect</a>&lt;B&gt;(self)·-&gt;·B<div·class="where">where61 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.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.78.0/core/it[·...·truncated·by·diffoscope;·len:·523,·SHA:·97064c705f6f4bdf74469c54fabcf580d21893127d1b4cd9a9c1018a717ef153·...·]/core/iter/traits/iterator/trait.Iterator.html#method.collect"·class="fn">collect</a>&lt;B&gt;(self)·-&gt;·B<div·class="where">where
62 ····B:·<a·class="trait"·href="../../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;,62 ····B:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.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.78.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><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:·e5d524e874326d0b9b733f5ee809c6595cde869afab0cc3d4ba8454093f420da·...·]/core/primitive.reference.html">&amp;mut·E</a><div·class="where">where63 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.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.78.0/core/iter/tr[·...·truncated·by·diffoscope;·len:·728,·SHA:·01937c2dc314c259495665570ae249c94b4a5b0719718f5f1188e6fc64ecf487·...·]/core/primitive.reference.html">&amp;mut·E</a><div·class="where">where
64 ····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;,64 ····E:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.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.78.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><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:·b0297783e056393a542c4058b42c18523a86c961c1b6ce3bc94342c1a2c10c58·...·]/core/primitive.tuple.html">(B,·B)</a><div·class="where">where65 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></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:·00bd47017b1bdd1bbe2c3fc932d955a8aa2f7f5eff8c00e3001ae28a982a5883·...·]/core/primitive.tuple.html">(B,·B)</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.78.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
67 ····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;,67 ····B:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/default/trait.Default.html"·title="trait·core::default::Default">Default</a>·+·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/collect/trait.Extend.html"·title="trait·core::iter::traits::collec[·...·truncated·by·diffoscope;·len:·95,·SHA:·8b3be1d0042cae0550f865faf5849221240bdf04eb1b2107605b72d48c3ad29c·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;,
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:·783,·SHA:·f8b50287f3e106633ed79a84072d3ddd9d98672efd685d2433c61b5549ce051e·...·]/core/primitive.bool.html">bool</a><div·class="where">where68 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·972,·SHA:·6de765542031617a9c28ac98fe6df619e58e62d9c65ec5b1c185a7152b8944e5·...·]/core/primitive.bool.html">bool</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.78.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:·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,70 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·135,·SHA:·51ff5f5c7ebd8440623ea71b125c5a5837e809e308fe1a13fbe19cddb941dbd9·...·]/core/primitive.bool.html">bool</a>,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iter_is_partitioned</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/62544">#62544</a>)</span></div></span><div·class='docblock'>Checks·if·the·elements·of·this·iterator·are·partitioned·according·to·the·given·predicate,
71 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:·16087a70ed3fdb9452fac1db6c6dfd70950937f6c202d0651e9de5cd42f89c47·...·]/core/iter/traits/iterator/trait.Iterator.html#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 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.78.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:·b5b5559d4bedab0135adfae89ec80ffab292c35f0d8c34fa5240955934cefd74·...·]/core/iter/traits/iterator/trait.Iterator.html#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.78.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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.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.78.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.78.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.reduce"·class="method·trait-impl"><span·class="rightside"><span·class="since"·titl[·...·truncated·by·diffoscope;·len:·492,·SHA:·62c9073cbde434b3360fecb6291c690b867ce1a9341636a10915665ff20914ca·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;<div·class="where">where75 iterator,·stopping·at·the·first·error·and·returning·that·error.·<a·href="https://doc.rust-lang.org/1.78.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:·94f0d6f81d13cadba9ee012268cda8b0ff7a775a8c03d992a108a9ae039e4d71·...·]/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.78.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::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·reducing77 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·352,·SHA:·e7c3c296abe2c0a183967153e4ae7fd50bafa2ae7088e3e78b3b48fee253adc6·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::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/core/iter[·...·truncated·by·diffoscope;·len:·136,·SHA:·a9dce8bb557b5a11426bf2ffcbd5eea7c6c870833e3ee5bb072dcaaa11687b0c·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_reduce"·class="fn">try_reduce</a>&lt;F,·R&gt;(78 operation.·<a·href="https://doc.rust-lang.org/1.78.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:·7a18fdd041b1a001b4a8feb289ee127fd9240232239269eb35dc3b8f74783ec9·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_reduce"·class="fn">try_reduce</a>&lt;F,·R&gt;(
79 ····&amp;mut·self,79 ····&amp;mut·self,
80 ····f:·F80 ····f:·F
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</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">where81 )·-&gt;·&lt;&lt;R·as·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&gt;::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/ops/try_trait/trait.Try.html#associatedtype.Residual"·title="type[·...·truncated·by·diffoscope;·len:·754,·SHA:·6fb4dfdb6b4da68921c1e7f8b75d99cf293d58318d684a840254ce9576957bea·...·]/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.78.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::[·...·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,83 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·140,·SHA:·c27972e6fa3464c9476eaa185e8657edb6bb294f148403f3d079285294a9f909·...·]/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·=·Self::<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 ····R:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.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.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;,
85 ····&lt;R·as·<a·class="trait"·href="../../core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&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·the85 ····&lt;R·as·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&gt;::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/ops/try_trait/trait.Try.html#associatedtype.Residual"·title="type[·...·truncated·by·diffoscope;·len:·412,·SHA:·22b8cbb007e5cce82b9d13a65bfa56aa8d83c32541fac25f4d9b3857b0540908·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;&gt;,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iterator_try_reduce</code>&nbsp;<a·href="https://github.com/rust-lang/rust/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
86 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:·65b80c848af6e465c8c5aef4ec8d3faaa399d30c8427c9507fda7b3bd1d3ea93·...·]/core/primitive.bool.html">bool</a><div·class="where">where86 closure·returns·a·failure,·the·failure·is·propagated·back·to·the·caller·immediately.·<a·href="https://doc.rust-lang.org/1.78.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:·bc0d658d56e348823de15386e1cd4ab49109f3a7a055a4573a19391b47071193·...·]/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.78.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:·829,·SHA:·95a840b532d3d621bde4032d63854eb0a481248e2b4bbb3ef058dbffb4dae4fa·...·]/core/primitive.bool.html">bool</a><div·class="where">where88 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·1018,·SHA:·e61cd6bdd36729cc38e57fcaea2ccb91a23a5acbda3c8986071f19bf1ecfc52a·...·]/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.78.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:·956,·SHA:·f828c62edd4fe85e217286f359b56c116e14ed18bb292ba1cc13d3ed7146909e·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;<div·class="where">where90 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·1172,·SHA:·e64ab74d116d286191ad43d9d9e10411fc011c23724aa806e9a8f9b0be0757e3·...·]/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.78.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:·862,·SHA:·21d7086b3ce0092e3f7a6a41174339bbd8724e7d186158db4db3385a73d94e8e·...·]/core/option/enum.Option.html"·title="enum·core::option::Option">Option</a>&lt;B&gt;<div·class="where">where92 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·1051,·SHA:·ecc0b8fccd861464760f9ae047ff6ab98c91a1db010cb5fa59a8c2ab883db7c4·...·]/core/option/enum.Option.html"·title="enum·core::option::Option">Option</a>&lt;B&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.78.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::[·...·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·returns94 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·130,·SHA:·130a13019dc175d02304b4f550157e2f13ac15c2f25a979c74161d10b146ab89·...·]/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
95 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:·ac4da3337aac1ec10038e246be9cb719eeb5af1acc709f5a6a25b91900c56f53·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_find"·class="fn">try_find</a>&lt;F,·R&gt;(95 the·first·non-none·result.·<a·href="https://doc.rust-lang.org/1.78.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:·8ced1b10e78750774c5c8ed995ed83dcd13983aa75d329acf8069da106ab9f4a·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_find"·class="fn">try_find</a>&lt;F,·R&gt;(
96 ····&amp;mut·self,96 ····&amp;mut·self,
97 ····f:·F97 ····f:·F
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</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">where98 )·-&gt;·&lt;&lt;R·as·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&gt;::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/ops/try_trait/trait.Try.html#associatedtype.Residual"·title="type[·...·truncated·by·diffoscope;·len:·626,·SHA:·95f9831257b68862cbcbf54f0ad2ff4e597a4c9f763112d1da8a0897dadcf872·...·]/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.78.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>(&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:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.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.bool.html">bool</a>&gt;,101 ····R:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.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.78.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.78.0/core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&gt;::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/ops/try_trait/trait.Try.html#associatedtype.Residual"·title="type[·...·truncated·by·diffoscope;·len:·412,·SHA:·22b8cbb007e5cce82b9d13a65bfa56aa8d83c32541fac25f4d9b3857b0540908·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;&gt;,</div></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.78.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:·fa9d94b216f6e4ce6035b4762e3bf17cb86a0272db0a55a056f05c68bcaeb0da·...·]/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.78.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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·1190,·SHA:·882e9e9a037f916d0ed4aa6d749399e6e01ca81811eacfc54a484818cb5d5029·...·]/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.78.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.78.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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/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.78.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:·0367b1bacc0a7d8e05f1c5181f8c4ea428f3f11edbae0e76811f3ef1d4925e41·...·]/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.78.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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·346,·SHA:·7113e4c2d65a123253bb18971efdc2d49241cfc2dd4c2b18e4cfa4e4d7d4140f·...·]/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.78.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:·db89d4cca0becf2a4ab904adac2870de6fd83cfad5131f5a1431a67766274f81·...·]/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.78.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.78.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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/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.78.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:·39ce6bc28062c0df48bff6a8faa3e4f2266988879092cf2970d2e9ee092742b0·...·]/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.78.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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·346,·SHA:·7113e4c2d65a123253bb18971efdc2d49241cfc2dd4c2b18e4cfa4e4d7d4140f·...·]/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.78.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:·64f5ac8109ab8e5164c24b53640d938d0bb2486cf55faea0ff483f1e9ad27c8f·...·]/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.78.0/core/default/trait.Default.html"·title="trait·core::default::Default">Default</a>·+·<a·class="trait"·href="https://doc.rust-lang.org/1.78.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.78.0/core/default/trait.Default.html"·title="trait·core::default::Default">Default</a>·+·<a·class="trait"·href="https://doc.rust-lang.org/1.78.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:·ddfc6ab5b04a5a9d2604baea549ca2df87d19343e0d63e1128eff1b803f662c7·...·]/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.78.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>·+·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html"·title="trait·core::iter::traits::iterator::I[·...·truncated·by·diffoscope;·len:·980,·SHA:·8f6df3c40809d9a55d4dab64faffa89b8268cb5f886608ccbcab921d7ab8e9fc·...·]/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.78.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:·634519b2d242c65d05aaca6b24a1e4b8081f167afc322025b0f4b5d8bd0de1d4·...·]/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.78.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>·+·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html"·title="trait·core::iter::traits::iterator::I[·...·truncated·by·diffoscope;·len:·983,·SHA:·d7472ec42d940fce3a1b145fd6fd3540c4095b4b5e88360dcd07223d97d60b94·...·]/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.78.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:·391c1b8a001cc98146e1ef673ba5d81873432b8fb42ab0d182119be8ca97a4b3·...·]/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.78.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>·+·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html"·title="trait·core::iter::traits::iterator::I[·...·truncated·by·diffoscope;·len:·1110,·SHA:·92690c14cf35867768c524f674b2a5f40fd9516e58074a43352abb3fcbb96612·...·]/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:·36d94b7d9aea5d10db94ef16a9e79fdf3cdf14aac55762a70697df8a0ec331c7·...·]/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.78.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>·+·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/clone/trait.Clone.html"·title="trait·core::clone::Clone">Clone</a>,</div></h4></sectio[·...·truncated·by·diffoscope;·len:·827,·SHA:·ec8d6c6a2c68c9c472897594711e2174619014e8c7f508e41a201128a00f47d6·...·]/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; 85780/286908 bytes (29.90%) of diff not shown.
295 KB
./usr/share/doc/rust-web-doc/html/alloc/str/struct.Lines.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·lines·of·a·string,·as·string·slices."><title>Lines·in·alloc::str·-·Rust</title><script>·if·(window.location.protocol·!==·"file:")·document.write(`<link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/SourceSerif4-Regular-46f98efaafac5295.ttf.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/FiraSans-Regular-018c141bf0843ffd.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/FiraSans-Medium-8f9a781e4970d388.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/SourceCodePro-Regular-562dcc5011b6de7d.ttf.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/SourceCodePro-Semibold-d899c5a5c4aeb14a.ttf.woff2">`)</script><link·rel="stylesheet"·href="../../static.files/normalize-76eba96aa4d2e634.css"><link·rel="stylesheet"·href="../../static.files/rustdoc-35f9e32502181f1e.css"><meta·name="rustdoc-vars"·data-root-path="../../"·data-static-root-path="../../static.files/"·data-current-crate="alloc"·data-themes=""·data-resource-suffix="1.78.0"·data-rustdoc-version="1.78.0"·data-channel="1.78.0"·data-search-js="search-42d8da7a6b9792c2.js"·data-settings-js="settings-4313503d2e1961c2.js"·><script·src="../../static.files/storage-4c98445ec4002617.js"></script><script·defer·src="sidebar-items1.78.0.js"></script><script·defer·src="../../static.files/main-12cf3b4f4f9dc36d.js"></script><noscript><link·rel="stylesheet"·href="../../static.files/noscript-04d5337699b92874.css"></noscript><link·rel="alternate·icon"·type="image/png"·href="../../static.files/favicon-16x16-8b506e7a72182f1c.png"><link·rel="alternate·icon"·type="image/png"·href="../../static.files/favicon-32x32-422f7d1d52889060.png"><link·rel="icon"·type="image/svg+xml"·href="../../static.files/favicon-2c020d218678b618.svg"></head><body·class="rustdoc·struct"><!--[if·lte·IE·11]><div·class="warning">This·old·browser·is·unsupported·and·will·most·likely·display·funky·things.</div><![endif]--><nav·class="mobile-topbar"><button·class="sidebar-menu-toggle"·title="show·sidebar"></button><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-151179464ae7ed46.svg"·alt=""></a></nav><nav·class="sidebar"><div·class="sidebar-crate"><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-151179464ae7ed46.svg"·alt="logo"></a><h2><a·href="../../alloc/index.html">alloc</a><span·class="version">1.78.0</span></h2></div><h2·class="location"><a·href="#">Lines</a></h2><div·class="sidebar-elems"><section><h3><a·href="#implementations">Methods</a></h3><ul·class="block·method"><li><a·href="#method.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">Clone</a></li><li><a·href="#impl-Debug-for-Lines%3C'a%3E">Debug</a></li><li><a·href="#impl-DoubleEndedIterator-for-Lines%3C'a%3E">DoubleEndedIterator</a></li><li><a·href="#impl-FusedIterator-for-Lines%3C'_%3E">FusedIterator</a></li><li><a·href="#impl-Iterator-for-Lines%3C'a%3E">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">Freeze</a></li><li><a·href="#impl-RefUnwindSafe-for-Lines%3C'a%3E">RefUnwindSafe</a></li><li><a·href="#impl-Send-for-Lines%3C'a%3E">Send</a></li><li><a·href="#impl-Sync-for-Lines%3C'a%3E">Sync</a></li><li><a·href="#impl-Unpin-for-Lines%3C'a%3E">Unpin</a></li><li><a·href="#impl-UnwindSafe-for-Lines%3C'a%3E">UnwindSafe</a></li></ul><h3><a·href="#blanket-implementations">Blanket·Implementations</a></h3><ul·class="block·blanket-implementation"><li><a·href="#impl-Any-for-T">Any</a></li><li><a·href="#impl-Borrow%3CT%3E-for-T">Borrow&lt;T&gt;</a></li><li><a·href="#impl-BorrowMut%3CT%3E-for-T">BorrowMut&lt;T&gt;</a></li><li><a·href="#impl-From%3CT%3E-for-T">From&lt;T&gt;</a></li><li><a·href="#impl-Into%3CU%3E-for-T">Into&lt;U&gt;</a></li><li><a·href="#impl-IntoIterator-for-I">IntoIterator</a></li><li><a·href="#impl-ToOwned-for-T">ToOwned</a></li><li><a·href="#impl-TryFrom%3CU%3E-for-T">TryFrom&lt;U&gt;</a></li><li><a·href="#impl-TryInto%3CU%3E-for-T">TryInto&lt;U&gt;</a></li></ul></section><h2><a·href="index.html">In·alloc::str</a></h2></div></nav><div·class="sidebar-resizer"></div>1 <!DOCTYPE·html><html·lang="en"><head><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.write(`<link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/SourceSerif4-Regular-46f98efaafac5295.ttf.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/FiraSans-Regular-018c141bf0843ffd.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/FiraSans-Medium-8f9a781e4970d388.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/SourceCodePro-Regular-562dcc5011b6de7d.ttf.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/SourceCodePro-Semibold-d899c5a5c4aeb14a.ttf.woff2">`)</script><link·rel="stylesheet"·href="../../static.files/normalize-76eba96aa4d2e634.css"><link·rel="stylesheet"·href="../../static.files/rustdoc-35f9e32502181f1e.css"><meta·name="rustdoc-vars"·data-root-path="../../"·data-static-root-path="../../static.files/"·data-current-crate="alloc"·data-themes=""·data-resource-suffix="1.78.0"·data-rustdoc-version="1.78.0"·data-channel="1.78.0"·data-search-js="search-42d8da7a6b9792c2.js"·data-settings-js="settings-4313503d2e1961c2.js"·><script·src="../../static.files/storage-4c98445ec4002617.js"></script><script·defer·src="sidebar-items1.78.0.js"></script><script·defer·src="../../static.files/main-12cf3b4f4f9dc36d.js"></script><noscript><link·rel="stylesheet"·href="../../static.files/noscript-04d5337699b92874.css"></noscript><link·rel="alternate·icon"·type="image/png"·href="../../static.files/favicon-16x16-8b506e7a72182f1c.png"><link·rel="alternate·icon"·type="image/png"·href="../../static.files/favicon-32x32-422f7d1d52889060.png"><link·rel="icon"·type="image/svg+xml"·href="../../static.files/favicon-2c020d218678b618.svg"></head><body·class="rustdoc·struct"><!--[if·lte·IE·11]><div·class="warning">This·old·browser·is·unsupported·and·will·most·likely·display·funky·things.</div><![endif]--><nav·class="mobile-topbar"><button·class="sidebar-menu-toggle"·title="show·sidebar"></button><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-151179464ae7ed46.svg"·alt=""></a></nav><nav·class="sidebar"><div·class="sidebar-crate"><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-151179464ae7ed46.svg"·alt="logo"></a><h2><a·href="../../alloc/index.html">alloc</a><span·class="version">1.78.0</span></h2></div><h2·class="location"><a·href="#">Lines</a></h2><div·class="sidebar-elems"><section><h3><a·href="#implementations">Methods</a></h3><ul·class="block·method"><li><a·href="#method.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">Clone</a></li><li><a·href="#impl-Debug-for-Lines%3C'a%3E">Debug</a></li><li><a·href="#impl-DoubleEndedIterator-for-Lines%3C'a%3E">DoubleEndedIterator</a></li><li><a·href="#impl-FusedIterator-for-Lines%3C'_%3E">FusedIterator</a></li><li><a·href="#impl-Iterator-for-Lines%3C'a%3E">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">Freeze</a></li><li><a·href="#impl-RefUnwindSafe-for-Lines%3C'a%3E">RefUnwindSafe</a></li><li><a·href="#impl-Send-for-Lines%3C'a%3E">Send</a></li><li><a·href="#impl-Sync-for-Lines%3C'a%3E">Sync</a></li><li><a·href="#impl-Unpin-for-Lines%3C'a%3E">Unpin</a></li><li><a·href="#impl-UnwindSafe-for-Lines%3C'a%3E">UnwindSafe</a></li></ul><h3><a·href="#blanket-implementations">Blanket·Implementations</a></h3><ul·class="block·blanket-implementation"><li><a·href="#impl-Any-for-T">Any</a></li><li><a·href="#impl-Borrow%3CT%3E-for-T">Borrow&lt;T&gt;</a></li><li><a·href="#impl-BorrowMut%3CT%3E-for-T">BorrowMut&lt;T&gt;</a></li><li><a·href="#impl-From%3CT%3E-for-T">From&lt;T&gt;</a></li><li><a·href="#impl-Into%3CU%3E-for-T">Into&lt;U&gt;</a></li><li><a·href="#impl-IntoIterator-for-I">IntoIterator</a></li><li><a·href="#impl-ToOwned-for-T">ToOwned</a></li><li><a·href="#impl-TryFrom%3CU%3E-for-T">TryFrom&lt;U&gt;</a></li><li><a·href="#impl-TryInto%3CU%3E-for-T">TryInto&lt;U&gt;</a></li></ul></section><h2><a·href="index.html">In·alloc::str</a></h2></div></nav><div·class="sidebar-resizer"></div>
2 ····<main><div·class="width-limiter"><nav·class="sub"><form·class="search-form"><span></span><div·id="sidebar-button"·tabindex="-1"><a·href="../../alloc/all.html"·title="show·sidebar"></a></div><input·class="search-input"·name="search"·aria-label="Run·search·in·the·documentation"·autocomplete="off"·spellcheck="false"·placeholder="Click·or·press·‘S’·to·search,·‘?’·for·more·options…"·type="search"><div·id="help-button"·tabindex="-1"><a·href="../../help.html"·title="help">?</a></div><div·id="settings-menu"·tabindex="-1"><a·href="../../settings.html"·title="settings"><img·width="22"·height="22"·alt="Change·settings"·src="../../static.files/wheel-7b819b6101059cd0.svg"></a></div></form></nav><section·id="main-content"·class="content"><div·class="main-heading"><h1>Struct·<a·href="../index.html">alloc</a>::<wbr><a·href="index.html">str</a>::<wbr><a·class="struct"·href="#">Lines</a><button·id="copy-path"·title="Copy·item·path·to·clipboard"><img·src="../../static.files/clipboard-7571035ce49a181d.svg"·width="19"·height="18"·alt="Copy·item·path"></button></h1><span·class="out-of-band"><span·class="since"·title="Stable·since·Rust·version·1.0.0">1.0.0</span>···<a·class="src"·href="../../src/core/str/iter.rs.html#1157">source</a>···<button·id="toggle-all-docs"·title="collapse·all·docs">[<span>&#x2212;</span>]</button></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 ····<main><div·class="width-limiter"><nav·class="sub"><form·class="search-form"><span></span><div·id="sidebar-button"·tabindex="-1"><a·href="../../alloc/all.html"·title="show·sidebar"></a></div><input·class="search-input"·name="search"·aria-label="Run·search·in·the·documentation"·autocomplete="off"·spellcheck="false"·placeholder="Click·or·press·‘S’·to·search,·‘?’·for·more·options…"·type="search"><div·id="help-button"·tabindex="-1"><a·href="../../help.html"·title="help">?</a></div><div·id="settings-menu"·tabindex="-1"><a·href="../../settings.html"·title="settings"><img·width="22"·height="22"·alt="Change·settings"·src="../../static.files/wheel-7b819b6101059cd0.svg"></a></div></form></nav><section·id="main-content"·class="content"><div·class="main-heading"><h1>Struct·<a·href="../index.html">alloc</a>::<wbr><a·href="index.html">str</a>::<wbr><a·class="struct"·href="#">Lines</a><button·id="copy-path"·title="Copy·item·path·to·clipboard"><img·src="../../static.files/clipboard-7571035ce49a181d.svg"·width="19"·height="18"·alt="Copy·item·path"></button></h1><span·class="out-of-band"><span·class="since"·title="Stable·since·Rust·version·1.0.0">1.0.0</span>···<a·class="src"·href="https://doc.rust-lang.org/1.78.0/src/core/str/iter.rs.html#1157">source</a>···<button·id="toggle-all-docs"·title="collapse·all·docs">[<span>&#x2212;</span>]</button></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>
3 <p>This·struct·is·created·with·the·<a·href="../../core/primitive.str.html#method.lines"·title="method·str::lines"><code>lines</code></a>·method·on·<a·href="../../core/primitive.str.html"·title="primitive·str"><code>str</code></a>.3 <p>This·struct·is·created·with·the·<a·href="https://doc.rust-lang.org/1.78.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.78.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-Lines%3C'a%3E"·class="impl"><a·class="src·rightside"·href="../../src/core/str/iter.rs.html#1190">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:·277e952c433cc852d586e3f525ac43b1a10bd941c52cae56740a20de9dfbae73·...·]/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 </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.78.0/src/core/str/iter.rs.html#1190">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:·a1b8cf05253f9d8447315108ad208342aa5b7a689c0d5a9457d5ce94eb1d610a·...·]/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>
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_lines_remainder)]7 <div·class="example-wrap"><pre·class="rust·rust-example-rendered"><code><span·class="attr">#![feature(str_lines_remainder)]
  
8 </span><span·class="kw">let·</span><span·class="kw-2">mut·</span>lines·=·<span·class="string">"a\nb\nc\nd"</span>.lines();8 </span><span·class="kw">let·</span><span·class="kw-2">mut·</span>lines·=·<span·class="string">"a\nb\nc\nd"</span>.lines();
9 <span·class="macro">assert_eq!</span>(lines.remainder(),·<span·class="prelude-val">Some</span>(<span·class="string">"a\nb\nc\nd"</span>));9 <span·class="macro">assert_eq!</span>(lines.remainder(),·<span·class="prelude-val">Some</span>(<span·class="string">"a\nb\nc\nd"</span>));
  
10 lines.next();10 lines.next();
11 <span·class="macro">assert_eq!</span>(lines.remainder(),·<span·class="prelude-val">Some</span>(<span·class="string">"b\nc\nd"</span>));11 <span·class="macro">assert_eq!</span>(lines.remainder(),·<span·class="prelude-val">Some</span>(<span·class="string">"b\nc\nd"</span>));
  
12 lines.by_ref().for_each(drop);12 lines.by_ref().for_each(drop);
13 <span·class="macro">assert_eq!</span>(lines.remainder(),·<span·class="prelude-val">None</span>);</code></pre><a·class="test-arrow"·target="_blank"·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">Run</a></div>13 <span·class="macro">assert_eq!</span>(lines.remainder(),·<span·class="prelude-val">None</span>);</code></pre><a·class="test-arrow"·target="_blank"·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">Run</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-Lines%3C'a%3E"·class="impl"><a·class="src·rightside"·href="../../src/core/str/iter.rs.html#1156">source</a><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>·for·<a·c[·...·truncated·by·diffoscope;·len:·7279,·SHA:·e5a8a5f5e5b131ee2b606a7e508fd0612d7ba7598d30faf8f37937525320c1ec·...·]/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-Lines%3C'a%3E"·class="impl"><a·class="src·rightside"·href="https://doc.rust-lang.org/1.78.0/src/core/str/iter.rs.html#1156">source</a><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.78.0/core/clone/trait.Clone.htm[·...·truncated·by·diffoscope;·len:·8251,·SHA:·34e425999570ab1842e09d402d5111bf24631459ac506759ce6dd6fbd13c766e·...·]/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.78.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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(B,·Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.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.78.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.7[·...·truncated·by·diffoscope;·len:·3,·SHA:·7b1bd53949b752d143d871408483b5382371b5bc48d195d0c040ec93cfa2748b·...·]/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:·74b709f2c818a4eda5d85ea863eb2d8af72c87564dbab2746e67feafb0cbb9a3·...·]/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.78.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:·d66ed7e195a53e9945339ef1976aed455dcf80228d8e5b7b0c69a64c3983fea1·...·]/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.78.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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(B,·Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/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:·f8bdf1e28866c7668477ab391452c7cfa7fd52cc69b633e782a157931421b39b·...·]/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.78.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:·c264047794019a6dcf05728ba6a6ee1f8f07c7209958b3366ba94546b527ecdc·...·]/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.78.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:·4214,·SHA:·49a9ca98e456192ff6bf7a0780de9f4b59378f688f0ad8e337ccd0c32c0b6c6a·...·]/core/primitive.usize.html">usize</a>&gt;(23 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·4943,·SHA:·87b645182248fe1acd74b964b40a3c8e24cb7bb9928ac8ddc37e7ed05554dec6·...·]/core/primitive.usize.html">usize</a>&gt;(
24 ····&amp;mut·self24 ····&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.78.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.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title=[·...·truncated·by·diffoscope;·len:·381,·SHA:·88c48923c9b7ea5cc47c1087c60e09656e81d4671c58071ba2bef826335388bc·...·]/core/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:·731,·SHA:·1d80a8ea5861d05518e01eeb903c537b78b04ad4159c3e5cf1597907c264b93e·...·]/core/primitive.usize.html">usize</a><div·class="where">where26 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experiment[·...·truncated·by·diffoscope;·len:·866,·SHA:·945d2d86f0c4c5ca3e3ee3b181d18b2bbea57ee1a5a7efe16c0c915a5bf2c3ad·...·]/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:·2893,·SHA:·b64f278ec71549a20d23b8c5963f7ff1e0d0c001f853bd17a3f9b11bf28cc9fa·...·]/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.78.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:·3433,·SHA:·49d1274908fa1d1e8e571a7a381dde77211770148791bbfb1cd851b4f911e155·...·]/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.78.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"><a·class="src·rightside"·href="../../src/core/iter/tra[·...·truncated·by·diffoscope;·len:·584,·SHA:·fd3e570373eb5121d35d7e22cdd5dd5fbf7183ee80147135a591fd1285174e82·...·]/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.78.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"><a·class="src·rightside"·hr[·...·truncated·by·diffoscope;·len:·746,·SHA:·f1f70d650c102c8658e13890c7dbfc87418f07e7b522246fb579ec434ef64f7c·...·]/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.78.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:·1017,·SHA:·c0f5f8cfd297e1678ac0ee2fd847fb6f0577665ac326e8e2e9d6414a710c8f98·...·]/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.78.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.78.0/core/iter/traits/it[·...·truncated·by·diffoscope;·len:·1233,·SHA:·f677df2d893dfe0dc1a9d31ebb0ba71a346d265781813e0d664d3f18369b6163·...·]/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.78.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:·c1b5e692e89c9c809075ee8ee72fb15a9ec46c075b08450e1f707d672a224750·...·]/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.78.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:·98627729f77dcf1c9d258f343354ba600b7134c6b3929080f231e8de7155b70b·...·]/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.78.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.78.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.78.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"><a·class="src·rightside"·href="../../src/core/i[·...·truncated·by·diffoscope;·len:·267,·SHA:·1764c9d6d2e39e1367ae2111c28ab846e66ecf12617fbff35e0132e82e5c8b13·...·]/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.78.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"><a·class="src·rights[·...·truncated·by·diffoscope;·len:·375,·SHA:·58419346f92e1709dadb70cc3cf356e3cd27972451bdc6b4fc4267e6f7e8bdae·...·]/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.78.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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::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:·fb4c9589a16c7b6d697c109d1193d2f1e763e5dd967101c2fd92b32416972229·...·]/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.78.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:·98f6effefa44d759c249143d83623f0055d937382bfc398b7e1f5e92cd413657·...·]/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.78.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:·658,·SHA:·e4449b6c00d036dd30444817045eddaf2697443d65789bb5c0b585ed1bc77702·...·]/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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·820,·SHA:·a664bbcbc0891663662e4eb7b4394d0fcd72e568136fc4d34097fea242cc32e7·...·]/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.78.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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·140,·SHA:·752f473b57e7444ebfddf5ea7fd40a332e83ec55524a6c31b5ee0f82a5dea819·...·]/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"><a·class="src·rightside"·href="../../src/core/iter[·...·truncated·by·diffoscope;·len:·285,·SHA:·738ce0440ff568829f40d141e38e2c0da2fd05d2b73d1a574be0ed9baa32e827·...·]/core/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.78.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"><a·class="src·rightside[·...·truncated·by·diffoscope;·len:·393,·SHA:·2e2aa7c9c9c087e7b346da376749064ab8c1894795a2f0a0f646cdc8c7bea997·...·]/core/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.78.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:·767,·SHA:·da0fc5bc95a3398627e0c5836423b719ccea45d351e21ddaa96f793f67f9c6de·...·]/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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·956,·SHA:·faba0521e870dbbd26d466fadba3522e7d29013a9b86376fffafffac11a57e0e·...·]/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.78.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"><a·class="src·rightside"·href="../../src/core/ite[·...·truncated·by·diffoscope;·len:·264,·SHA:·e3fa7ab43c6353bc2216a22d7010c41a8ab50d273a128d15d0eff050c058993a·...·]/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.78.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"><a·class="src·rightsid[·...·truncated·by·diffoscope;·len:·372,·SHA:·03eea0861575eb80d3f7a87a3ba747adb1a33fe7e9ce72aa2172e7a287c63a94·...·]/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.78.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.78.0/core/iter/adapte[·...·truncated·by·diffoscope;·len:·175,·SHA:·16fe7225bf05b478e2828b347c3d23ded9a22f89d8887a2c65d9f7b3faf1b0e7·...·]/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"><a·class="src·rightside"·href="../../src/core/it[·...·truncated·by·diffoscope;·len:·294,·SHA:·c0aee2077af6a4f81ed47e37c84a75b5f9b941875509fbe0b3d352866f825f45·...·]/core/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.78.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"><a·class="src·rightsi[·...·truncated·by·diffoscope;·len:·402,·SHA:·7689a974f800fd069d1b4453ef62d6d6ad1b654462d624d36e3672051d502030·...·]/core/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.78.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:·922,·SHA:·5220bbb4db3c3cd3d7ca7c27520f44f04fe367ee2f0f407fb1d50c0a327a2f99·...·]/core/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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·1138,·SHA:·f6ae06b7de8e94df014341c5cf589a5e4a1298367b2ef7a968ec499c5170a70e·...·]/core/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.78.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:·39eeddf219b211245393e51a591d5064c740fa9be49d88883d8a6474679741ad·...·]/core/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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·1058,·SHA:·b390dbdda8d7e93604b5ecd906a93efd03fe19bdaf41cf12893fd361bf974307·...·]/core/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.78.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:·851,·SHA:·ad2e090d21a034b7c3836ed38a686f4c483f9a929132fef846d48271f749a79c·...·]/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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·1067,·SHA:·415d32e1211c35d3bb405de1d6e51c2102c14cadc3333894f063148dbe0b1f69·...·]/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:·525,·SHA:·6471f48fecadc56edf21fc04794b884b96ce06d339c715e410f5a906e028bc28·...·]/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.78.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:·687,·SHA:·7f5256104c35c5948a2cb42b55f3048c9d2887e48a4a8226537a284f959c562a·...·]/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.78.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"><a·class="src·rightside"·href="../../src/core/iter/traits/[·...·truncated·by·diffoscope;·len:·284,·SHA:·aee83f38f8c40848e159b12a8faa43b9dadf589fe974632a1f15ce2a15834071·...·]/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.78.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"><a·class="src·rightside"·href="[·...·truncated·by·diffoscope;·len:·392,·SHA:·4e7da68f7be2622ef173653eca78d58e1f202b544a2e6abd14d8335c298c93a7·...·]/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.78.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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(<a·class="primitive"·href="https://doc.rust-lang.org/1.78.0/core/primitive.reference.html">&amp;mut·St</a>,·Self::<a·class="associatedty[·...·truncated·by·diffoscope;·len:·449,·SHA:·f12c268a8a8111b9e7126ad78bf5523a63733caa63d187c4fe792309ea41acdf·...·]/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:·459,·SHA:·b825570d9672670eacd8828b3abec12cd1c35433286857de28f5ea8d5e300e03·...·]/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.78.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.78.0/core/iter/trai[·...·truncated·by·diffoscope;·len:·594,·SHA:·02960742fa7892efaa08f289ce85865fc5efb6a4cd138c22e3566ca6fc727d78·...·]/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.78.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.78.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:·9b6a337a3ad68c2a987b52450c153f87a04a8ed9e83603d26077fe6e70d61edf·...·]/core/iter/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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·976,·SHA:·2a9182f6fe88e0b8a9b1ae1f46cace940cc0b8736033c354c0f0ccbf1c196e7a·...·]/core/iter/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.78.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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;[Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtyp[·...·truncated·by·diffoscope;·len:·135,·SHA:·0b06a6094d42ccbc8bce5b01c4383961fe7f1967f05e4c9f1ff33e71e425fb26·...·]/core/primitive.array.html">N</a>])·-&gt;·R,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iter_map_windows</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/87155">#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.78.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"><a·class="src·rightside"·href="../../src/core/iter/[·...·truncated·by·diffoscope;·len:·250,·SHA:·e355ddd0f04b2470ee915aec3ad97857be56b95e6a1f3d733d6c477453f4cf0d·...·]/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.78.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"><a·class="src·rightside"[·...·truncated·by·diffoscope;·len:·358,·SHA:·d91b2ab18e0ce069e262cf523c6ef961f56eecad042ea1e9bcefe33cff28fc8f·...·]/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:·583,·SHA:·b7d7d6125e8980756a2636a6b6e01600057c98a027dcf7d267b1f61538a7b6b0·...·]/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.78.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.78.0/core/op[·...·truncated·by·diffoscope;·len:·745,·SHA:·424783f22102f4446d3ad4d362b1aafdb7531fa777213f97ee138aa878f67bd1·...·]/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.78.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:·676,·SHA:·ae75f35cafbae1e0e695226baca09b0bec6e4a0ed5656a83c3357b29fb00442d·...·]/core/primitive.reference.html">&amp;mut·Self</a><div·class="where">where73 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·838,·SHA:·9b4fd8df7f41e9a76fd4cfca0a233b74b9bd27c3fe8228248abc3f940425a3e3·...·]/core/primitive.reference.html">&amp;mut·Self</a><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:·319,·SHA:·bbb653fcb1f5ad46e04905bf78a76b9dd63ea5d49a2d8cd5b7b36efbb0f7e105·...·]/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.78.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.78.0/core/it[·...·truncated·by·diffoscope;·len:·427,·SHA:·ecfaaac5d1d10c1bc4fcee9a050af0a268bee0b528c2d8ea4e9774440bd8a279·...·]/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.78.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.78.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:·e5d524e874326d0b9b733f5ee809c6595cde869afab0cc3d4ba8454093f420da·...·]/core/primitive.reference.html">&amp;mut·E</a><div·class="where">where76 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.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.78.0/core/iter/tr[·...·truncated·by·diffoscope;·len:·728,·SHA:·01937c2dc314c259495665570ae249c94b4a5b0719718f5f1188e6fc64ecf487·...·]/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.78.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.78.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:·744,·SHA:·a7446142ab67c3f20d866315fbe6cb9c57cd4af012812d6dd19d5061aee6e97b·...·]/core/primitive.tuple.html">(B,·B)</a><div·class="where">where78 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experiment[·...·truncated·by·diffoscope;·len:·879,·SHA:·e773b2222c92d001e295030cb47a780ab0c1132d7fc8e9e3a98de4f532e6c520·...·]/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.78.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.78.0/core/default/trait.Default.html"·title="trait·core::default::Default">Default</a>·+·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/collect/trait.Extend.html"·title="trait·core::iter::traits::collec[·...·truncated·by·diffoscope;·len:·95,·SHA:·8b3be1d0042cae0550f865faf5849221240bdf04eb1b2107605b72d48c3ad29c·...·]/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:·5a1bcc1ddfc5fccf50d61bf2b8879dae247aa12c0b23ba2f437fd2a345cabac7·...·]/core/primitive.usize.html">usize</a><div·class="where">where81 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·995,·SHA:·bec3765fdab56713186e2454cd84738b5b28e3280a2f3d5a25cefdbc3089b520·...·]/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.78.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>·+·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/double_ended/trait.DoubleEndedIterator.html"·title="trait·core::iter::trai[·...·truncated·by·diffoscope;·len:·132,·SHA:·e5b2cf5f56946ede1e190ed09879c5821e2de04cf8e5d145142eeb40c6340982·...·]/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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(<a·class="primitive"·href="https://doc.rust-lang.org/1.78.0/core/primitive.reference.html">&amp;T</a>)·-&gt;·<a·class="primitive"·href="[·...·truncated·by·diffoscope;·len:·32,·SHA:·63d052a8ced32bf927ffadd7e884c08caf4970e85dfdf6be0e568d49b174da96·...·]/core/primitive.bool.html">bool</a>,</div></h4></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:·97056c44eac6a0f986fb2c8edec37302cc06edf44a6c6f7153a5d8623d8d6c0d·...·]/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.78.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:·0c224636c18baa273f69de21f90083317f2ea0b7367a3f0d0f1c0ace55a36f79·...·]/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.78.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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·135,·SHA:·51ff5f5c7ebd8440623ea71b125c5a5837e809e308fe1a13fbe19cddb941dbd9·...·]/core/primitive.bool.html">bool</a>,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iter_is_partitioned</code>&nbsp;<a·href="https://github.com/rust-lang/rust/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:·6f406a351b93047f56fa70265a6bf28ec6874f75cd6cc5a39d51c7af462f2992·...·]/core/iter/traits/iterator/trait.Iterator.html#method.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.78.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:·2c74873f4e5ba70004a1c7edd1cc3f9e2d91271295dd1591e2d26848df4c02ba·...·]/core/iter/traits/iterator/trait.Iterator.html#method.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.78.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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(B,·Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.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.78.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:·eecdce021399d206eb3ef5af12ee7663b4eb0dca55b0f411c7fa66f605b6b2e2·...·]/core/iter/traits/iterator/trait.Iterator.html#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.78.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:·52912e82c4b0a760d06f77eb4ee3a59ba70dd76cb532954900c73ae94c652674·...·]/core/iter/traits/iterator/trait.Iterator.html#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.78.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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.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.78.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.78.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"><a·class="src·rightside"·href="../../src/core/iter[·...·truncated·by·diffoscope;·len:·130,·SHA:·75c0150024fe6cdc702d7337508ab57600248490dd062768204ddb064c9a1b8b·...·]/core/iter/traits/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.78.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"><a·class="src·rightside[·...·truncated·by·diffoscope;·len:·211,·SHA:·924e062acd8127e8d6158162219ee5d57a941854e14063d21d7768edae549431·...·]/core/iter/traits/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.78.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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(B,·Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::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:·dbe3a08fe63abd47570741e71208c31aaf51152feac5917db07665a1f56bb3e3·...·]/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.78.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:·b60215068a6d9721be05f81098c51167d7138c4042f140cad42f77c4df43f597·...·]/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.78.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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·352,·SHA:·e7c3c296abe2c0a183967153e4ae7fd50bafa2ae7088e3e78b3b48fee253adc6·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::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:·a9dce8bb557b5a11426bf2ffcbd5eea7c6c870833e3ee5bb072dcaaa11687b0c·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_reduce"·class="fn">try_reduce</a>&lt;F,·R&gt;(103 operation.·<a·href="https://doc.rust-lang.org/1.78.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:·7a18fdd041b1a001b4a8feb289ee127fd9240232239269eb35dc3b8f74783ec9·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_reduce"·class="fn">try_reduce</a>&lt;F,·R&gt;(
104 ····&amp;mut·self,104 ····&amp;mut·self,
105 ····f:·F105 ····f:·F
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.78.0/core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&gt;::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/ops/try_trait/trait.Try.html#associatedtype.Residual"·title="type[·...·truncated·by·diffoscope;·len:·754,·SHA:·6fb4dfdb6b4da68921c1e7f8b75d99cf293d58318d684a840254ce9576957bea·...·]/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.78.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:·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:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·140,·SHA:·c27972e6fa3464c9476eaa185e8657edb6bb294f148403f3d079285294a9f909·...·]/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·=·Self::<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.78.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.78.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.78.0/core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&gt;::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/ops/try_trait/trait.Try.html#associatedtype.Residual"·title="type[·...·truncated·by·diffoscope;·len:·412,·SHA:·22b8cbb007e5cce82b9d13a65bfa56aa8d83c32541fac25f4d9b3857b0540908·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;&gt;,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iterator_try_reduce</code>&nbsp;<a·href="https://github.com/rust-lang/rust/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"><a·class="src·rightside"·href="../../src/core/iter/tr[·...·truncated·by·diffoscope;·len:·272,·SHA:·97959736d897a01242f49f2e45854ab874bf0c9bbe30acad9a49eb73169e457c·...·]/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.78.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"><a·class="src·rightside"·h[·...·truncated·by·diffoscope;·len:·380,·SHA:·29c4004d4d8b0c8c9dfe9023f8b2c5ef801d9dc4688893035d182c1ae774c453·...·]/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.78.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:·733,·SHA:·9bb9f0199d90f78ad65c59dbe67a1c751cd5a681130a03bef3b1e8ed907a3bba·...·]/core/primitive.bool.html">bool</a><div·class="where">where113 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·922,·SHA:·f4fd532c280e18f28bd6dda6c2a129e2e92114b67f27235bb5fd39f725be9c43·...·]/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.78.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:·860,·SHA:·6a94ae33b82eb12a91660811a8ab9d243468d885c07ac766a2507d25a4e7ee62·...·]/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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·1076,·SHA:·2dd9de8adaee4a5ee96501d9a58bfac2fea00ba8d78b834bfca29949b3afe18b·...·]/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.78.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:·21d7086b3ce0092e3f7a6a41174339bbd8724e7d186158db4db3385a73d94e8e·...·]/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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·1051,·SHA:·ecc0b8fccd861464760f9ae047ff6ab98c91a1db010cb5fa59a8c2ab883db7c4·...·]/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.78.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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·130,·SHA:·130a13019dc175d02304b4f550157e2f13ac15c2f25a979c74161d10b146ab89·...·]/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:·ac4da3337aac1ec10038e246be9cb719eeb5af1acc709f5a6a25b91900c56f53·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_find"·class="fn">try_find</a>&lt;F,·R&gt;(120 the·first·non-none·result.·<a·href="https://doc.rust-lang.org/1.78.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:·8ced1b10e78750774c5c8ed995ed83dcd13983aa75d329acf8069da106ab9f4a·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_find"·class="fn">try_find</a>&lt;F,·R&gt;(
121 ····&amp;mut·self,121 ····&amp;mut·self,
122 ····f:·F122 ····f:·F
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.78.0/core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&gt;::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/ops/try_trait/trait.Try.html#associatedtype.Residual"·title="type[·...·truncated·by·diffoscope;·len:·626,·SHA:·95f9831257b68862cbcbf54f0ad2ff4e597a4c9f763112d1da8a0897dadcf872·...·]/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.78.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
Max diff block lines reached; 82567/301995 bytes (27.34%) of diff not shown.
292 KB
./usr/share/doc/rust-web-doc/html/alloc/str/struct.LinesAny.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="Created·with·the·method·`lines_any`."><title>LinesAny·in·alloc::str·-·Rust</title><script>·if·(window.location.protocol·!==·"file:")·document.write(`<link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/SourceSerif4-Regular-46f98efaafac5295.ttf.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/FiraSans-Regular-018c141bf0843ffd.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/FiraSans-Medium-8f9a781e4970d388.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/SourceCodePro-Regular-562dcc5011b6de7d.ttf.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/SourceCodePro-Semibold-d899c5a5c4aeb14a.ttf.woff2">`)</script><link·rel="stylesheet"·href="../../static.files/normalize-76eba96aa4d2e634.css"><link·rel="stylesheet"·href="../../static.files/rustdoc-35f9e32502181f1e.css"><meta·name="rustdoc-vars"·data-root-path="../../"·data-static-root-path="../../static.files/"·data-current-crate="alloc"·data-themes=""·data-resource-suffix="1.78.0"·data-rustdoc-version="1.78.0"·data-channel="1.78.0"·data-search-js="search-42d8da7a6b9792c2.js"·data-settings-js="settings-4313503d2e1961c2.js"·><script·src="../../static.files/storage-4c98445ec4002617.js"></script><script·defer·src="sidebar-items1.78.0.js"></script><script·defer·src="../../static.files/main-12cf3b4f4f9dc36d.js"></script><noscript><link·rel="stylesheet"·href="../../static.files/noscript-04d5337699b92874.css"></noscript><link·rel="alternate·icon"·type="image/png"·href="../../static.files/favicon-16x16-8b506e7a72182f1c.png"><link·rel="alternate·icon"·type="image/png"·href="../../static.files/favicon-32x32-422f7d1d52889060.png"><link·rel="icon"·type="image/svg+xml"·href="../../static.files/favicon-2c020d218678b618.svg"></head><body·class="rustdoc·struct"><!--[if·lte·IE·11]><div·class="warning">This·old·browser·is·unsupported·and·will·most·likely·display·funky·things.</div><![endif]--><nav·class="mobile-topbar"><button·class="sidebar-menu-toggle"·title="show·sidebar"></button><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-151179464ae7ed46.svg"·alt=""></a></nav><nav·class="sidebar"><div·class="sidebar-crate"><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-151179464ae7ed46.svg"·alt="logo"></a><h2><a·href="../../alloc/index.html">alloc</a><span·class="version">1.78.0</span></h2></div><h2·class="location"><a·href="#">LinesAny</a></h2><div·class="sidebar-elems"><section><h3><a·href="#trait-implementations">Trait·Implementations</a></h3><ul·class="block·trait-implementation"><li><a·href="#impl-Clone-for-LinesAny%3C'a%3E">Clone</a></li><li><a·href="#impl-Debug-for-LinesAny%3C'a%3E">Debug</a></li><li><a·href="#impl-DoubleEndedIterator-for-LinesAny%3C'a%3E">DoubleEndedIterator</a></li><li><a·href="#impl-FusedIterator-for-LinesAny%3C'_%3E">FusedIterator</a></li><li><a·href="#impl-Iterator-for-LinesAny%3C'a%3E">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">Freeze</a></li><li><a·href="#impl-RefUnwindSafe-for-LinesAny%3C'a%3E">RefUnwindSafe</a></li><li><a·href="#impl-Send-for-LinesAny%3C'a%3E">Send</a></li><li><a·href="#impl-Sync-for-LinesAny%3C'a%3E">Sync</a></li><li><a·href="#impl-Unpin-for-LinesAny%3C'a%3E">Unpin</a></li><li><a·href="#impl-UnwindSafe-for-LinesAny%3C'a%3E">UnwindSafe</a></li></ul><h3><a·href="#blanket-implementations">Blanket·Implementations</a></h3><ul·class="block·blanket-implementation"><li><a·href="#impl-Any-for-T">Any</a></li><li><a·href="#impl-Borrow%3CT%3E-for-T">Borrow&lt;T&gt;</a></li><li><a·href="#impl-BorrowMut%3CT%3E-for-T">BorrowMut&lt;T&gt;</a></li><li><a·href="#impl-From%3CT%3E-for-T">From&lt;T&gt;</a></li><li><a·href="#impl-Into%3CU%3E-for-T">Into&lt;U&gt;</a></li><li><a·href="#impl-IntoIterator-for-I">IntoIterator</a></li><li><a·href="#impl-ToOwned-for-T">ToOwned</a></li><li><a·href="#impl-TryFrom%3CU%3E-for-T">TryFrom&lt;U&gt;</a></li><li><a·href="#impl-TryInto%3CU%3E-for-T">TryInto&lt;U&gt;</a></li></ul></section><h2><a·href="index.html">In·alloc::str</a></h2></div></nav><div·class="sidebar-resizer"></div>1 <!DOCTYPE·html><html·lang="en"><head><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.write(`<link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/SourceSerif4-Regular-46f98efaafac5295.ttf.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/FiraSans-Regular-018c141bf0843ffd.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/FiraSans-Medium-8f9a781e4970d388.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/SourceCodePro-Regular-562dcc5011b6de7d.ttf.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/SourceCodePro-Semibold-d899c5a5c4aeb14a.ttf.woff2">`)</script><link·rel="stylesheet"·href="../../static.files/normalize-76eba96aa4d2e634.css"><link·rel="stylesheet"·href="../../static.files/rustdoc-35f9e32502181f1e.css"><meta·name="rustdoc-vars"·data-root-path="../../"·data-static-root-path="../../static.files/"·data-current-crate="alloc"·data-themes=""·data-resource-suffix="1.78.0"·data-rustdoc-version="1.78.0"·data-channel="1.78.0"·data-search-js="search-42d8da7a6b9792c2.js"·data-settings-js="settings-4313503d2e1961c2.js"·><script·src="../../static.files/storage-4c98445ec4002617.js"></script><script·defer·src="sidebar-items1.78.0.js"></script><script·defer·src="../../static.files/main-12cf3b4f4f9dc36d.js"></script><noscript><link·rel="stylesheet"·href="../../static.files/noscript-04d5337699b92874.css"></noscript><link·rel="alternate·icon"·type="image/png"·href="../../static.files/favicon-16x16-8b506e7a72182f1c.png"><link·rel="alternate·icon"·type="image/png"·href="../../static.files/favicon-32x32-422f7d1d52889060.png"><link·rel="icon"·type="image/svg+xml"·href="../../static.files/favicon-2c020d218678b618.svg"></head><body·class="rustdoc·struct"><!--[if·lte·IE·11]><div·class="warning">This·old·browser·is·unsupported·and·will·most·likely·display·funky·things.</div><![endif]--><nav·class="mobile-topbar"><button·class="sidebar-menu-toggle"·title="show·sidebar"></button><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-151179464ae7ed46.svg"·alt=""></a></nav><nav·class="sidebar"><div·class="sidebar-crate"><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-151179464ae7ed46.svg"·alt="logo"></a><h2><a·href="../../alloc/index.html">alloc</a><span·class="version">1.78.0</span></h2></div><h2·class="location"><a·href="#">LinesAny</a></h2><div·class="sidebar-elems"><section><h3><a·href="#trait-implementations">Trait·Implementations</a></h3><ul·class="block·trait-implementation"><li><a·href="#impl-Clone-for-LinesAny%3C'a%3E">Clone</a></li><li><a·href="#impl-Debug-for-LinesAny%3C'a%3E">Debug</a></li><li><a·href="#impl-DoubleEndedIterator-for-LinesAny%3C'a%3E">DoubleEndedIterator</a></li><li><a·href="#impl-FusedIterator-for-LinesAny%3C'_%3E">FusedIterator</a></li><li><a·href="#impl-Iterator-for-LinesAny%3C'a%3E">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">Freeze</a></li><li><a·href="#impl-RefUnwindSafe-for-LinesAny%3C'a%3E">RefUnwindSafe</a></li><li><a·href="#impl-Send-for-LinesAny%3C'a%3E">Send</a></li><li><a·href="#impl-Sync-for-LinesAny%3C'a%3E">Sync</a></li><li><a·href="#impl-Unpin-for-LinesAny%3C'a%3E">Unpin</a></li><li><a·href="#impl-UnwindSafe-for-LinesAny%3C'a%3E">UnwindSafe</a></li></ul><h3><a·href="#blanket-implementations">Blanket·Implementations</a></h3><ul·class="block·blanket-implementation"><li><a·href="#impl-Any-for-T">Any</a></li><li><a·href="#impl-Borrow%3CT%3E-for-T">Borrow&lt;T&gt;</a></li><li><a·href="#impl-BorrowMut%3CT%3E-for-T">BorrowMut&lt;T&gt;</a></li><li><a·href="#impl-From%3CT%3E-for-T">From&lt;T&gt;</a></li><li><a·href="#impl-Into%3CU%3E-for-T">Into&lt;U&gt;</a></li><li><a·href="#impl-IntoIterator-for-I">IntoIterator</a></li><li><a·href="#impl-ToOwned-for-T">ToOwned</a></li><li><a·href="#impl-TryFrom%3CU%3E-for-T">TryFrom&lt;U&gt;</a></li><li><a·href="#impl-TryInto%3CU%3E-for-T">TryInto&lt;U&gt;</a></li></ul></section><h2><a·href="index.html">In·alloc::str</a></h2></div></nav><div·class="sidebar-resizer"></div>
2 ····<main><div·class="width-limiter"><nav·class="sub"><form·class="search-form"><span></span><div·id="sidebar-button"·tabindex="-1"><a·href="../../alloc/all.html"·title="show·sidebar"></a></div><input·class="search-input"·name="search"·aria-label="Run·search·in·the·documentation"·autocomplete="off"·spellcheck="false"·placeholder="Click·or·press·‘S’·to·search,·‘?’·for·more·options…"·type="search"><div·id="help-button"·tabindex="-1"><a·href="../../help.html"·title="help">?</a></div><div·id="settings-menu"·tabindex="-1"><a·href="../../settings.html"·title="settings"><img·width="22"·height="22"·alt="Change·settings"·src="../../static.files/wheel-7b819b6101059cd0.svg"></a></div></form></nav><section·id="main-content"·class="content"><div·class="main-heading"><h1>Struct·<a·href="../index.html">alloc</a>::<wbr><a·href="index.html">str</a>::<wbr><a·class="struct"·href="#">LinesAny</a><button·id="copy-path"·title="Copy·item·path·to·clipboard"><img·src="../../static.files/clipboard-7571035ce49a181d.svg"·width="19"·height="18"·alt="Copy·item·path"></button></h1><span·class="out-of-band"><span·class="since"·title="Stable·since·Rust·version·1.0.0">1.0.0</span>···<a·class="src"·href="../../src/core/str/iter.rs.html#1223">source</a>···<button·id="toggle-all-docs"·title="collapse·all·docs">[<span>&#x2212;</span>]</button></span></div><pre·class="rust·item-decl"><code>pub·struct·LinesAny&lt;'a&gt;(<span·class="comment">/*·private·fields·*[·...·truncated·by·diffoscope;·len:·348,·SHA:·ea9e8107e03c2d25235315bcd5bf08b8c37e924d98b14b30a53ff30e5ffcd011·...·]/core/primitive.str.html#method.lines_any"·title="method·str::lines_any"><code>lines_any</code></a>.</p>2 ····<main><div·class="width-limiter"><nav·class="sub"><form·class="search-form"><span></span><div·id="sidebar-button"·tabindex="-1"><a·href="../../alloc/all.html"·title="show·sidebar"></a></div><input·class="search-input"·name="search"·aria-label="Run·search·in·the·documentation"·autocomplete="off"·spellcheck="false"·placeholder="Click·or·press·‘S’·to·search,·‘?’·for·more·options…"·type="search"><div·id="help-button"·tabindex="-1"><a·href="../../help.html"·title="help">?</a></div><div·id="settings-menu"·tabindex="-1"><a·href="../../settings.html"·title="settings"><img·width="22"·height="22"·alt="Change·settings"·src="../../static.files/wheel-7b819b6101059cd0.svg"></a></div></form></nav><section·id="main-content"·class="content"><div·class="main-heading"><h1>Struct·<a·href="../index.html">alloc</a>::<wbr><a·href="index.html">str</a>::<wbr><a·class="struct"·href="#">LinesAny</a><button·id="copy-path"·title="Copy·item·path·to·clipboard"><img·src="../../static.files/clipboard-7571035ce49a181d.svg"·width="19"·height="18"·alt="Copy·item·path"></button></h1><span·class="out-of-band"><span·class="since"·title="Stable·since·Rust·version·1.0.0">1.0.0</span>···<a·class="src"·href="https://doc.rust-lang.org/1.78.0/src/core/str/iter.rs.html#1223">source</a>···<button·id="toggle-all-docs"·title="collapse·all·docs">[<span>&#x2212;</span>]</button></span></div><pre·class="rust·item-decl"><code>pub·struct·LinesAny&lt;'a&gt;(<span·class="c[·...·truncated·by·diffoscope;·len:·402,·SHA:·cf09ecaf71be10bc0dbe0ad18261a700342da135f569114a85e5c53581907ca2·...·]/core/primitive.str.html#method.lines_any"·title="method·str::lines_any"><code>lines_any</code></a>.</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-Clone-for-LinesAny%3C'a%3E"·class="impl"><a·class="src·rightside"·href="../../src/core/str/iter.rs.html#1221">source</a><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>·for·<[·...·truncated·by·diffoscope;·len:·7333,·SHA:·caddf30a5c7884670dec0e15458b7aad1e53ab2d72107b7b3181b8d99cb3c30a·...·]/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">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-Clone-for-LinesAny%3C'a%3E"·class="impl"><a·class="src·rightside"·href="https://doc.rust-lang.org/1.78.0/src/core/str/iter.rs.html#1221">source</a><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.78.0/core/clone/trait.Clone.[·...·truncated·by·diffoscope;·len:·8305,·SHA:·3eb02bb9ff480070c44795318ed52b9224e150857df88a3dac8ac8f3e5ecf2bc·...·]/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
4 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,4 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(B,·Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.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.78.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.7[·...·truncated·by·diffoscope;·len:·3,·SHA:·7b1bd53949b752d143d871408483b5382371b5bc48d195d0c040ec93cfa2748b·...·]/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"><span·class="rightside"><span·class="[·...·truncated·by·diffoscope;·len:·244,·SHA:·74b709f2c818a4eda5d85ea863eb2d8af72c87564dbab2746e67feafb0cbb9a3·...·]/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.78.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:·d66ed7e195a53e9945339ef1976aed455dcf80228d8e5b7b0c69a64c3983fea1·...·]/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 ····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.78.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;·B,</div></h4></section></summary><div·class='docblock'>An·iterator·method·that·reduces·the·iterator’s·elements·to·a·single,9 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(B,·Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/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 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:·f8bdf1e28866c7668477ab391452c7cfa7fd52cc69b633e782a157931421b39b·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;<div·class="where">where10 final·value,·starting·from·the·back.·<a·href="https://doc.rust-lang.org/1.78.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:·c264047794019a6dcf05728ba6a6ee1f8f07c7209958b3366ba94546b527ecdc·...·]/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>,11 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
12 ····P:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Itera[·...·truncated·by·diffoscope;·len:·3486,·SHA:·d38480aeb84dfd7ee350519bd3d8ba9b3f7275d150083974ccf4d53b73d84cbc·...·]/core/primitive.usize.html">usize</a>&gt;(12 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·4080,·SHA:·8cecad1d50feab23ff5bb74366d1f39102a9d0dcb477d6f28341c3ba1525f3ec·...·]/core/primitive.usize.html">usize</a>&gt;(
13 ····&amp;mut·self13 ····&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.78.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.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title=[·...·truncated·by·diffoscope;·len:·381,·SHA:·88c48923c9b7ea5cc47c1087c60e09656e81d4671c58071ba2bef826335388bc·...·]/core/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:·731,·SHA:·1d80a8ea5861d05518e01eeb903c537b78b04ad4159c3e5cf1597907c264b93e·...·]/core/primitive.usize.html">usize</a><div·class="where">where15 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experiment[·...·truncated·by·diffoscope;·len:·866,·SHA:·945d2d86f0c4c5ca3e3ee3b181d18b2bbea57ee1a5a7efe16c0c915a5bf2c3ad·...·]/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:·579,·SHA:·97df9cdc3f1cc1461e704ebdf0c047ac7c0165f9aec8e9afdc069209b7a15a36·...·]/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.78.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:·741,·SHA:·f3078cc3fddd62af2c1a8814c5854bb49f40b79e4fbc9b3addf5862a72370f82·...·]/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:·2868,·SHA:·9ec21b8470b914406f4216b9bac831bf85cccf58579bd476408d6168be7cd43e·...·]/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.78.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.78.0/cor[·...·truncated·by·diffoscope;·len:·3408,·SHA:·b62c6ed65b31a8b555c142d9d15f3ce30e5c76ad2630a0e5a9b13cfd478c6eee·...·]/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.78.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"><a·class="src·rightside"·href="../../src/core/iter/tra[·...·truncated·by·diffoscope;·len:·584,·SHA:·fd3e570373eb5121d35d7e22cdd5dd5fbf7183ee80147135a591fd1285174e82·...·]/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.78.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"><a·class="src·rightside"·hr[·...·truncated·by·diffoscope;·len:·746,·SHA:·f1f70d650c102c8658e13890c7dbfc87418f07e7b522246fb579ec434ef64f7c·...·]/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.78.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:·1017,·SHA:·c0f5f8cfd297e1678ac0ee2fd847fb6f0577665ac326e8e2e9d6414a710c8f98·...·]/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.78.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.78.0/core/iter/traits/it[·...·truncated·by·diffoscope;·len:·1233,·SHA:·f677df2d893dfe0dc1a9d31ebb0ba71a346d265781813e0d664d3f18369b6163·...·]/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.78.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:·c1b5e692e89c9c809075ee8ee72fb15a9ec46c075b08450e1f707d672a224750·...·]/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.78.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:·98627729f77dcf1c9d258f343354ba600b7134c6b3929080f231e8de7155b70b·...·]/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.78.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.78.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.78.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"><a·class="src·rightside"·href="../../src/core/i[·...·truncated·by·diffoscope;·len:·267,·SHA:·1764c9d6d2e39e1367ae2111c28ab846e66ecf12617fbff35e0132e82e5c8b13·...·]/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.78.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"><a·class="src·rights[·...·truncated·by·diffoscope;·len:·375,·SHA:·58419346f92e1709dadb70cc3cf356e3cd27972451bdc6b4fc4267e6f7e8bdae·...·]/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.78.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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::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:·fb4c9589a16c7b6d697c109d1193d2f1e763e5dd967101c2fd92b32416972229·...·]/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.78.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:·98f6effefa44d759c249143d83623f0055d937382bfc398b7e1f5e92cd413657·...·]/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.78.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:·658,·SHA:·e4449b6c00d036dd30444817045eddaf2697443d65789bb5c0b585ed1bc77702·...·]/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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·820,·SHA:·a664bbcbc0891663662e4eb7b4394d0fcd72e568136fc4d34097fea242cc32e7·...·]/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.78.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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·140,·SHA:·752f473b57e7444ebfddf5ea7fd40a332e83ec55524a6c31b5ee0f82a5dea819·...·]/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"><a·class="src·rightside"·href="../../src/core/iter[·...·truncated·by·diffoscope;·len:·285,·SHA:·738ce0440ff568829f40d141e38e2c0da2fd05d2b73d1a574be0ed9baa32e827·...·]/core/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.78.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"><a·class="src·rightside[·...·truncated·by·diffoscope;·len:·393,·SHA:·2e2aa7c9c9c087e7b346da376749064ab8c1894795a2f0a0f646cdc8c7bea997·...·]/core/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.78.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:·767,·SHA:·da0fc5bc95a3398627e0c5836423b719ccea45d351e21ddaa96f793f67f9c6de·...·]/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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·956,·SHA:·faba0521e870dbbd26d466fadba3522e7d29013a9b86376fffafffac11a57e0e·...·]/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.78.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"><a·class="src·rightside"·href="../../src/core/ite[·...·truncated·by·diffoscope;·len:·264,·SHA:·e3fa7ab43c6353bc2216a22d7010c41a8ab50d273a128d15d0eff050c058993a·...·]/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.78.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"><a·class="src·rightsid[·...·truncated·by·diffoscope;·len:·372,·SHA:·03eea0861575eb80d3f7a87a3ba747adb1a33fe7e9ce72aa2172e7a287c63a94·...·]/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.78.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.78.0/core/iter/adapte[·...·truncated·by·diffoscope;·len:·175,·SHA:·16fe7225bf05b478e2828b347c3d23ded9a22f89d8887a2c65d9f7b3faf1b0e7·...·]/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"><a·class="src·rightside"·href="../../src/core/it[·...·truncated·by·diffoscope;·len:·294,·SHA:·c0aee2077af6a4f81ed47e37c84a75b5f9b941875509fbe0b3d352866f825f45·...·]/core/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.78.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"><a·class="src·rightsi[·...·truncated·by·diffoscope;·len:·402,·SHA:·7689a974f800fd069d1b4453ef62d6d6ad1b654462d624d36e3672051d502030·...·]/core/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.78.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:·922,·SHA:·5220bbb4db3c3cd3d7ca7c27520f44f04fe367ee2f0f407fb1d50c0a327a2f99·...·]/core/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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·1138,·SHA:·f6ae06b7de8e94df014341c5cf589a5e4a1298367b2ef7a968ec499c5170a70e·...·]/core/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.78.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:·39eeddf219b211245393e51a591d5064c740fa9be49d88883d8a6474679741ad·...·]/core/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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·1058,·SHA:·b390dbdda8d7e93604b5ecd906a93efd03fe19bdaf41cf12893fd361bf974307·...·]/core/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.78.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:·851,·SHA:·ad2e090d21a034b7c3836ed38a686f4c483f9a929132fef846d48271f749a79c·...·]/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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·1067,·SHA:·415d32e1211c35d3bb405de1d6e51c2102c14cadc3333894f063148dbe0b1f69·...·]/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:·525,·SHA:·6471f48fecadc56edf21fc04794b884b96ce06d339c715e410f5a906e028bc28·...·]/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.78.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:·687,·SHA:·7f5256104c35c5948a2cb42b55f3048c9d2887e48a4a8226537a284f959c562a·...·]/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.78.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"><a·class="src·rightside"·href="../../src/core/iter/traits/[·...·truncated·by·diffoscope;·len:·284,·SHA:·aee83f38f8c40848e159b12a8faa43b9dadf589fe974632a1f15ce2a15834071·...·]/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.78.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"><a·class="src·rightside"·href="[·...·truncated·by·diffoscope;·len:·392,·SHA:·4e7da68f7be2622ef173653eca78d58e1f202b544a2e6abd14d8335c298c93a7·...·]/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.78.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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(<a·class="primitive"·href="https://doc.rust-lang.org/1.78.0/core/primitive.reference.html">&amp;mut·St</a>,·Self::<a·class="associatedty[·...·truncated·by·diffoscope;·len:·449,·SHA:·f12c268a8a8111b9e7126ad78bf5523a63733caa63d187c4fe792309ea41acdf·...·]/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:·459,·SHA:·b825570d9672670eacd8828b3abec12cd1c35433286857de28f5ea8d5e300e03·...·]/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.78.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.78.0/core/iter/trai[·...·truncated·by·diffoscope;·len:·594,·SHA:·02960742fa7892efaa08f289ce85865fc5efb6a4cd138c22e3566ca6fc727d78·...·]/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.78.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.78.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:·9b6a337a3ad68c2a987b52450c153f87a04a8ed9e83603d26077fe6e70d61edf·...·]/core/iter/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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·976,·SHA:·2a9182f6fe88e0b8a9b1ae1f46cace940cc0b8736033c354c0f0ccbf1c196e7a·...·]/core/iter/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.78.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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;[Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtyp[·...·truncated·by·diffoscope;·len:·135,·SHA:·0b06a6094d42ccbc8bce5b01c4383961fe7f1967f05e4c9f1ff33e71e425fb26·...·]/core/primitive.array.html">N</a>])·-&gt;·R,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iter_map_windows</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/87155">#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.78.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"><a·class="src·rightside"·href="../../src/core/iter/[·...·truncated·by·diffoscope;·len:·250,·SHA:·e355ddd0f04b2470ee915aec3ad97857be56b95e6a1f3d733d6c477453f4cf0d·...·]/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.78.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"><a·class="src·rightside"[·...·truncated·by·diffoscope;·len:·358,·SHA:·d91b2ab18e0ce069e262cf523c6ef961f56eecad042ea1e9bcefe33cff28fc8f·...·]/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:·583,·SHA:·b7d7d6125e8980756a2636a6b6e01600057c98a027dcf7d267b1f61538a7b6b0·...·]/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.78.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.78.0/core/op[·...·truncated·by·diffoscope;·len:·745,·SHA:·424783f22102f4446d3ad4d362b1aafdb7531fa777213f97ee138aa878f67bd1·...·]/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.78.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:·676,·SHA:·ae75f35cafbae1e0e695226baca09b0bec6e4a0ed5656a83c3357b29fb00442d·...·]/core/primitive.reference.html">&amp;mut·Self</a><div·class="where">where63 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·838,·SHA:·9b4fd8df7f41e9a76fd4cfca0a233b74b9bd27c3fe8228248abc3f940425a3e3·...·]/core/primitive.reference.html">&amp;mut·Self</a><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:·319,·SHA:·bbb653fcb1f5ad46e04905bf78a76b9dd63ea5d49a2d8cd5b7b36efbb0f7e105·...·]/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.78.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.78.0/core/it[·...·truncated·by·diffoscope;·len:·427,·SHA:·ecfaaac5d1d10c1bc4fcee9a050af0a268bee0b528c2d8ea4e9774440bd8a279·...·]/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.78.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.78.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:·e5d524e874326d0b9b733f5ee809c6595cde869afab0cc3d4ba8454093f420da·...·]/core/primitive.reference.html">&amp;mut·E</a><div·class="where">where66 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.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.78.0/core/iter/tr[·...·truncated·by·diffoscope;·len:·728,·SHA:·01937c2dc314c259495665570ae249c94b4a5b0719718f5f1188e6fc64ecf487·...·]/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.78.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.78.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:·744,·SHA:·a7446142ab67c3f20d866315fbe6cb9c57cd4af012812d6dd19d5061aee6e97b·...·]/core/primitive.tuple.html">(B,·B)</a><div·class="where">where68 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experiment[·...·truncated·by·diffoscope;·len:·879,·SHA:·e773b2222c92d001e295030cb47a780ab0c1132d7fc8e9e3a98de4f532e6c520·...·]/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.78.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.78.0/core/default/trait.Default.html"·title="trait·core::default::Default">Default</a>·+·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/collect/trait.Extend.html"·title="trait·core::iter::traits::collec[·...·truncated·by·diffoscope;·len:·95,·SHA:·8b3be1d0042cae0550f865faf5849221240bdf04eb1b2107605b72d48c3ad29c·...·]/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:·806,·SHA:·5a1bcc1ddfc5fccf50d61bf2b8879dae247aa12c0b23ba2f437fd2a345cabac7·...·]/core/primitive.usize.html">usize</a><div·class="where">where71 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·995,·SHA:·bec3765fdab56713186e2454cd84738b5b28e3280a2f3d5a25cefdbc3089b520·...·]/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">DoubleEndedIter[·...·truncated·by·diffoscope;·len:·51,·SHA:·c9be73bbed9d11ecac2a179f480a640f51d6255f26712667ffdabc72c1fc7fb0·...·]/core/primitive.reference.html">&amp;'a·mut·T</a>&gt;,73 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>·+·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/double_ended/trait.DoubleEndedIterator.html"·title="trait·core::iter::trai[·...·truncated·by·diffoscope;·len:·132,·SHA:·e5b2cf5f56946ede1e190ed09879c5821e2de04cf8e5d145142eeb40c6340982·...·]/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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(<a·class="primitive"·href="https://doc.rust-lang.org/1.78.0/core/primitive.reference.html">&amp;T</a>)·-&gt;·<a·class="primitive"·href="[·...·truncated·by·diffoscope;·len:·32,·SHA:·63d052a8ced32bf927ffadd7e884c08caf4970e85dfdf6be0e568d49b174da96·...·]/core/primitive.bool.html">bool</a>,</div></h4></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:·323,·SHA:·97056c44eac6a0f986fb2c8edec37302cc06edf44a6c6f7153a5d8623d8d6c0d·...·]/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.78.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:·0c224636c18baa273f69de21f90083317f2ea0b7367a3f0d0f1c0ace55a36f79·...·]/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.78.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::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,78 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·135,·SHA:·51ff5f5c7ebd8440623ea71b125c5a5837e809e308fe1a13fbe19cddb941dbd9·...·]/core/primitive.bool.html">bool</a>,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iter_is_partitioned</code>&nbsp;<a·href="https://github.com/rust-lang/rust/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="since"·[·...·truncated·by·diffoscope;·len:·238,·SHA:·6f406a351b93047f56fa70265a6bf28ec6874f75cd6cc5a39d51c7af462f2992·...·]/core/iter/traits/iterator/trait.Iterator.html#method.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.78.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:·2c74873f4e5ba70004a1c7edd1cc3f9e2d91271295dd1591e2d26848df4c02ba·...·]/core/iter/traits/iterator/trait.Iterator.html#method.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.78.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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(B,·Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.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.78.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"·ti[·...·truncated·by·diffoscope;·len:·240,·SHA:·eecdce021399d206eb3ef5af12ee7663b4eb0dca55b0f411c7fa66f605b6b2e2·...·]/core/iter/traits/iterator/trait.Iterator.html#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.78.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:·52912e82c4b0a760d06f77eb4ee3a59ba70dd76cb532954900c73ae94c652674·...·]/core/iter/traits/iterator/trait.Iterator.html#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.78.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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.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.78.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.78.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"><a·class="src·rightside"·href="../../src/core/iter[·...·truncated·by·diffoscope;·len:·130,·SHA:·75c0150024fe6cdc702d7337508ab57600248490dd062768204ddb064c9a1b8b·...·]/core/iter/traits/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.78.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"><a·class="src·rightside[·...·truncated·by·diffoscope;·len:·211,·SHA:·924e062acd8127e8d6158162219ee5d57a941854e14063d21d7768edae549431·...·]/core/iter/traits/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.78.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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(B,·Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::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="Stabl[·...·truncated·by·diffoscope;·len:·484,·SHA:·dbe3a08fe63abd47570741e71208c31aaf51152feac5917db07665a1f56bb3e3·...·]/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.78.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:·b60215068a6d9721be05f81098c51167d7138c4042f140cad42f77c4df43f597·...·]/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.78.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:·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·reducing92 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·352,·SHA:·e7c3c296abe2c0a183967153e4ae7fd50bafa2ae7088e3e78b3b48fee253adc6·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::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/core/iter[·...·truncated·by·diffoscope;·len:·136,·SHA:·a9dce8bb557b5a11426bf2ffcbd5eea7c6c870833e3ee5bb072dcaaa11687b0c·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_reduce"·class="fn">try_reduce</a>&lt;F,·R&gt;(93 operation.·<a·href="https://doc.rust-lang.org/1.78.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:·7a18fdd041b1a001b4a8feb289ee127fd9240232239269eb35dc3b8f74783ec9·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_reduce"·class="fn">try_reduce</a>&lt;F,·R&gt;(
94 ····&amp;mut·self,94 ····&amp;mut·self,
95 ····f:·F95 ····f:·F
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:·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">where96 )·-&gt;·&lt;&lt;R·as·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&gt;::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/ops/try_trait/trait.Try.html#associatedtype.Residual"·title="type[·...·truncated·by·diffoscope;·len:·754,·SHA:·6fb4dfdb6b4da68921c1e7f8b75d99cf293d58318d684a840254ce9576957bea·...·]/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.78.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:·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:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·140,·SHA:·c27972e6fa3464c9476eaa185e8657edb6bb294f148403f3d079285294a9f909·...·]/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·=·Self::<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.78.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.78.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.78.0/core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&gt;::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/ops/try_trait/trait.Try.html#associatedtype.Residual"·title="type[·...·truncated·by·diffoscope;·len:·412,·SHA:·22b8cbb007e5cce82b9d13a65bfa56aa8d83c32541fac25f4d9b3857b0540908·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;&gt;,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iterator_try_reduce</code>&nbsp;<a·href="https://github.com/rust-lang/rust/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"><a·class="src·rightside"·href="../../src/core/iter/tr[·...·truncated·by·diffoscope;·len:·272,·SHA:·97959736d897a01242f49f2e45854ab874bf0c9bbe30acad9a49eb73169e457c·...·]/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.78.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"><a·class="src·rightside"·h[·...·truncated·by·diffoscope;·len:·380,·SHA:·29c4004d4d8b0c8c9dfe9023f8b2c5ef801d9dc4688893035d182c1ae774c453·...·]/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.78.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:·733,·SHA:·9bb9f0199d90f78ad65c59dbe67a1c751cd5a681130a03bef3b1e8ed907a3bba·...·]/core/primitive.bool.html">bool</a><div·class="where">where103 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·922,·SHA:·f4fd532c280e18f28bd6dda6c2a129e2e92114b67f27235bb5fd39f725be9c43·...·]/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.78.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:·860,·SHA:·6a94ae33b82eb12a91660811a8ab9d243468d885c07ac766a2507d25a4e7ee62·...·]/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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·1076,·SHA:·2dd9de8adaee4a5ee96501d9a58bfac2fea00ba8d78b834bfca29949b3afe18b·...·]/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.78.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:·21d7086b3ce0092e3f7a6a41174339bbd8724e7d186158db4db3385a73d94e8e·...·]/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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·1051,·SHA:·ecc0b8fccd861464760f9ae047ff6ab98c91a1db010cb5fa59a8c2ab883db7c4·...·]/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.78.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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·130,·SHA:·130a13019dc175d02304b4f550157e2f13ac15c2f25a979c74161d10b146ab89·...·]/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:·ac4da3337aac1ec10038e246be9cb719eeb5af1acc709f5a6a25b91900c56f53·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_find"·class="fn">try_find</a>&lt;F,·R&gt;(110 the·first·non-none·result.·<a·href="https://doc.rust-lang.org/1.78.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:·8ced1b10e78750774c5c8ed995ed83dcd13983aa75d329acf8069da106ab9f4a·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_find"·class="fn">try_find</a>&lt;F,·R&gt;(
111 ····&amp;mut·self,111 ····&amp;mut·self,
112 ····f:·F112 ····f:·F
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.78.0/core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&gt;::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/ops/try_trait/trait.Try.html#associatedtype.Residual"·title="type[·...·truncated·by·diffoscope;·len:·626,·SHA:·95f9831257b68862cbcbf54f0ad2ff4e597a4c9f763112d1da8a0897dadcf872·...·]/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.78.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;·R,115 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·R,
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.78.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.78.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</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·returns117 ····&lt;R·as·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&gt;::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/ops/try_trait/trait.Try.html#associatedtype.Residual"·title="type[·...·truncated·by·diffoscope;·len:·412,·SHA:·22b8cbb007e5cce82b9d13a65bfa56aa8d83c32541fac25f4d9b3857b0540908·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;&gt;,</div></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"><a·class="src·rightside"·href="../../src/core/iter[·...·truncated·by·diffoscope;·len:·404,·SHA:·f45e13f24791f759991b5b3c0f29ce7cc9019b87d7ca444f65464e8a939e287c·...·]/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.78.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"><a·class="src·rightside[·...·truncated·by·diffoscope;·len:·539,·SHA:·04e329705f11ed9ec269a68b0b75ac4ab26c78e4316a571ee9336c28bbca6359·...·]/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.78.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::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">where120 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·1190,·SHA:·882e9e9a037f916d0ed4aa6d749399e6e01ca81811eacfc54a484818cb5d5029·...·]/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.78.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.78.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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/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"·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">where124 specified·function.·<a·href="https://doc.rust-lang.org/1.78.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:·0367b1bacc0a7d8e05f1c5181f8c4ea428f3f11edbae0e76811f3ef1d4925e41·...·]/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.78.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·maximum·value·with·respect·to·the126 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·346,·SHA:·7113e4c2d65a123253bb18971efdc2d49241cfc2dd4c2b18e4cfa4e4d7d4140f·...·]/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
127 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">where127 specified·comparison·function.·<a·href="https://doc.rust-lang.org/1.78.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:·db89d4cca0becf2a4ab904adac2870de6fd83cfad5131f5a1431a67766274f81·...·]/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; 82819/298577 bytes (27.74%) of diff not shown.
299 KB
./usr/share/doc/rust-web-doc/html/alloc/str/struct.MatchIndices.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·`match_indices`."><title>MatchIndices·in·alloc::str·-·Rust</title><script>·if·(window.location.protocol·!==·"file:")·document.write(`<link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/SourceSerif4-Regular-46f98efaafac5295.ttf.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/FiraSans-Regular-018c141bf0843ffd.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/FiraSans-Medium-8f9a781e4970d388.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/SourceCodePro-Regular-562dcc5011b6de7d.ttf.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/SourceCodePro-Semibold-d899c5a5c4aeb14a.ttf.woff2">`)</script><link·rel="stylesheet"·href="../../static.files/normalize-76eba96aa4d2e634.css"><link·rel="stylesheet"·href="../../static.files/rustdoc-35f9e32502181f1e.css"><meta·name="rustdoc-vars"·data-root-path="../../"·data-static-root-path="../../static.files/"·data-current-crate="alloc"·data-themes=""·data-resource-suffix="1.78.0"·data-rustdoc-version="1.78.0"·data-channel="1.78.0"·data-search-js="search-42d8da7a6b9792c2.js"·data-settings-js="settings-4313503d2e1961c2.js"·><script·src="../../static.files/storage-4c98445ec4002617.js"></script><script·defer·src="sidebar-items1.78.0.js"></script><script·defer·src="../../static.files/main-12cf3b4f4f9dc36d.js"></script><noscript><link·rel="stylesheet"·href="../../static.files/noscript-04d5337699b92874.css"></noscript><link·rel="alternate·icon"·type="image/png"·href="../../static.files/favicon-16x16-8b506e7a72182f1c.png"><link·rel="alternate·icon"·type="image/png"·href="../../static.files/favicon-32x32-422f7d1d52889060.png"><link·rel="icon"·type="image/svg+xml"·href="../../static.files/favicon-2c020d218678b618.svg"></head><body·class="rustdoc·struct"><!--[if·lte·IE·11]><div·class="warning">This·old·browser·is·unsupported·and·will·most·likely·display·funky·things.</div><![endif]--><nav·class="mobile-topbar"><button·class="sidebar-menu-toggle"·title="show·sidebar"></button><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-151179464ae7ed46.svg"·alt=""></a></nav><nav·class="sidebar"><div·class="sidebar-crate"><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-151179464ae7ed46.svg"·alt="logo"></a><h2><a·href="../../alloc/index.html">alloc</a><span·class="version">1.78.0</span></h2></div><h2·class="location"><a·href="#">MatchIndices</a></h2><div·class="sidebar-elems"><section><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">Clone</a></li><li><a·href="#impl-Debug-for-MatchIndices%3C'a,+P%3E">Debug</a></li><li><a·href="#impl-DoubleEndedIterator-for-MatchIndices%3C'a,+P%3E">DoubleEndedIterator</a></li><li><a·href="#impl-FusedIterator-for-MatchIndices%3C'a,+P%3E">FusedIterator</a></li><li><a·href="#impl-Iterator-for-MatchIndices%3C'a,+P%3E">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">Freeze</a></li><li><a·href="#impl-RefUnwindSafe-for-MatchIndices%3C'a,+P%3E">RefUnwindSafe</a></li><li><a·href="#impl-Send-for-MatchIndices%3C'a,+P%3E">Send</a></li><li><a·href="#impl-Sync-for-MatchIndices%3C'a,+P%3E">Sync</a></li><li><a·href="#impl-Unpin-for-MatchIndices%3C'a,+P%3E">Unpin</a></li><li><a·href="#impl-UnwindSafe-for-MatchIndices%3C'a,+P%3E">UnwindSafe</a></li></ul><h3><a·href="#blanket-implementations">Blanket·Implementations</a></h3><ul·class="block·blanket-implementation"><li><a·href="#impl-Any-for-T">Any</a></li><li><a·href="#impl-Borrow%3CT%3E-for-T">Borrow&lt;T&gt;</a></li><li><a·href="#impl-BorrowMut%3CT%3E-for-T">BorrowMut&lt;T&gt;</a></li><li><a·href="#impl-From%3CT%3E-for-T">From&lt;T&gt;</a></li><li><a·href="#impl-Into%3CU%3E-for-T">Into&lt;U&gt;</a></li><li><a·href="#impl-IntoIterator-for-I">IntoIterator</a></li><li><a·href="#impl-ToOwned-for-T">ToOwned</a></li><li><a·href="#impl-TryFrom%3CU%3E-for-T">TryFrom&lt;U&gt;</a></li><li><a·href="#impl-TryInto%3CU%3E-for-T">TryInto&lt;U&gt;</a></li></ul></section><h2><a·href="index.html">In·alloc::str</a></h2></div></nav><div·class="sidebar-resizer"></div>1 <!DOCTYPE·html><html·lang="en"><head><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.write(`<link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/SourceSerif4-Regular-46f98efaafac5295.ttf.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/FiraSans-Regular-018c141bf0843ffd.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/FiraSans-Medium-8f9a781e4970d388.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/SourceCodePro-Regular-562dcc5011b6de7d.ttf.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/SourceCodePro-Semibold-d899c5a5c4aeb14a.ttf.woff2">`)</script><link·rel="stylesheet"·href="../../static.files/normalize-76eba96aa4d2e634.css"><link·rel="stylesheet"·href="../../static.files/rustdoc-35f9e32502181f1e.css"><meta·name="rustdoc-vars"·data-root-path="../../"·data-static-root-path="../../static.files/"·data-current-crate="alloc"·data-themes=""·data-resource-suffix="1.78.0"·data-rustdoc-version="1.78.0"·data-channel="1.78.0"·data-search-js="search-42d8da7a6b9792c2.js"·data-settings-js="settings-4313503d2e1961c2.js"·><script·src="../../static.files/storage-4c98445ec4002617.js"></script><script·defer·src="sidebar-items1.78.0.js"></script><script·defer·src="../../static.files/main-12cf3b4f4f9dc36d.js"></script><noscript><link·rel="stylesheet"·href="../../static.files/noscript-04d5337699b92874.css"></noscript><link·rel="alternate·icon"·type="image/png"·href="../../static.files/favicon-16x16-8b506e7a72182f1c.png"><link·rel="alternate·icon"·type="image/png"·href="../../static.files/favicon-32x32-422f7d1d52889060.png"><link·rel="icon"·type="image/svg+xml"·href="../../static.files/favicon-2c020d218678b618.svg"></head><body·class="rustdoc·struct"><!--[if·lte·IE·11]><div·class="warning">This·old·browser·is·unsupported·and·will·most·likely·display·funky·things.</div><![endif]--><nav·class="mobile-topbar"><button·class="sidebar-menu-toggle"·title="show·sidebar"></button><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-151179464ae7ed46.svg"·alt=""></a></nav><nav·class="sidebar"><div·class="sidebar-crate"><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-151179464ae7ed46.svg"·alt="logo"></a><h2><a·href="../../alloc/index.html">alloc</a><span·class="version">1.78.0</span></h2></div><h2·class="location"><a·href="#">MatchIndices</a></h2><div·class="sidebar-elems"><section><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">Clone</a></li><li><a·href="#impl-Debug-for-MatchIndices%3C'a,+P%3E">Debug</a></li><li><a·href="#impl-DoubleEndedIterator-for-MatchIndices%3C'a,+P%3E">DoubleEndedIterator</a></li><li><a·href="#impl-FusedIterator-for-MatchIndices%3C'a,+P%3E">FusedIterator</a></li><li><a·href="#impl-Iterator-for-MatchIndices%3C'a,+P%3E">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">Freeze</a></li><li><a·href="#impl-RefUnwindSafe-for-MatchIndices%3C'a,+P%3E">RefUnwindSafe</a></li><li><a·href="#impl-Send-for-MatchIndices%3C'a,+P%3E">Send</a></li><li><a·href="#impl-Sync-for-MatchIndices%3C'a,+P%3E">Sync</a></li><li><a·href="#impl-Unpin-for-MatchIndices%3C'a,+P%3E">Unpin</a></li><li><a·href="#impl-UnwindSafe-for-MatchIndices%3C'a,+P%3E">UnwindSafe</a></li></ul><h3><a·href="#blanket-implementations">Blanket·Implementations</a></h3><ul·class="block·blanket-implementation"><li><a·href="#impl-Any-for-T">Any</a></li><li><a·href="#impl-Borrow%3CT%3E-for-T">Borrow&lt;T&gt;</a></li><li><a·href="#impl-BorrowMut%3CT%3E-for-T">BorrowMut&lt;T&gt;</a></li><li><a·href="#impl-From%3CT%3E-for-T">From&lt;T&gt;</a></li><li><a·href="#impl-Into%3CU%3E-for-T">Into&lt;U&gt;</a></li><li><a·href="#impl-IntoIterator-for-I">IntoIterator</a></li><li><a·href="#impl-ToOwned-for-T">ToOwned</a></li><li><a·href="#impl-TryFrom%3CU%3E-for-T">TryFrom&lt;U&gt;</a></li><li><a·href="#impl-TryInto%3CU%3E-for-T">TryInto&lt;U&gt;</a></li></ul></section><h2><a·href="index.html">In·alloc::str</a></h2></div></nav><div·class="sidebar-resizer"></div>
2 ····<main><div·class="width-limiter"><nav·class="sub"><form·class="search-form"><span></span><div·id="sidebar-button"·tabindex="-1"><a·href="../../alloc/all.html"·title="show·sidebar"></a></div><input·class="search-input"·name="search"·aria-label="Run·search·in·the·documentation"·autocomplete="off"·spellcheck="false"·placeholder="Click·or·press·‘S’·to·search,·‘?’·for·more·options…"·type="search"><div·id="help-button"·tabindex="-1"><a·href="../../help.html"·title="help">?</a></div><div·id="settings-menu"·tabindex="-1"><a·href="../../settings.html"·title="settings"><img·width="22"·height="22"·alt="Change·settings"·src="../../static.files/wheel-7b819b6101059cd0.svg"></a></div></form></nav><section·id="main-content"·class="content"><div·class="main-heading"><h1>Struct·<a·href="../index.html">alloc</a>::<wbr><a·href="index.html">str</a>::<wbr><a·class="struct"·href="#">MatchIndices</a><button·id="copy-path"·title="Copy·item·path·to·clipboard"><img·src="../../static.files/clipboard-7571035ce49a181d.svg"·width="19"·height="18"·alt="Copy·item·path"></button></h1><span·class="out-of-band"><span·class="since"·title="Stable·since·Rust·version·1.5.0">1.5.0</span>···<a·class="src"·href="../../src/core/str/iter.rs.html#1073-1089">source</a>···<button·id="toggle-all-docs"·title="collapse·all·docs">[<span>&#x2212;</span>]</button></span></div><pre·class="rust·item-decl"><code>pub·struct·MatchIndices&lt;'a,·P&gt;(<span·class="comment">/*·private·fields·*/</span>)2 ····<main><div·class="width-limiter"><nav·class="sub"><form·class="search-form"><span></span><div·id="sidebar-button"·tabindex="-1"><a·href="../../alloc/all.html"·title="show·sidebar"></a></div><input·class="search-input"·name="search"·aria-label="Run·search·in·the·documentation"·autocomplete="off"·spellcheck="false"·placeholder="Click·or·press·‘S’·to·search,·‘?’·for·more·options…"·type="search"><div·id="help-button"·tabindex="-1"><a·href="../../help.html"·title="help">?</a></div><div·id="settings-menu"·tabindex="-1"><a·href="../../settings.html"·title="settings"><img·width="22"·height="22"·alt="Change·settings"·src="../../static.files/wheel-7b819b6101059cd0.svg"></a></div></form></nav><section·id="main-content"·class="content"><div·class="main-heading"><h1>Struct·<a·href="../index.html">alloc</a>::<wbr><a·href="index.html">str</a>::<wbr><a·class="struct"·href="#">MatchIndices</a><button·id="copy-path"·title="Copy·item·path·to·clipboard"><img·src="../../static.files/clipboard-7571035ce49a181d.svg"·width="19"·height="18"·alt="Copy·item·path"></button></h1><span·class="out-of-band"><span·class="since"·title="Stable·since·Rust·version·1.5.0">1.5.0</span>···<a·class="src"·href="https://doc.rust-lang.org/1.78.0/src/core/str/iter.rs.html#1073-1089">source</a>···<button·id="toggle-all-docs"·title="collapse·all·docs">[<span>&#x2212;</span>]</button></span></div><pre·class="rust·item-decl"><code>pub·struct·MatchIndices&lt;'a,·P&gt;(<span·class="comment">/*·private·fields·*/</span>)
3 <span·class="where">where3 <span·class="where">where
4 ····P:·<a·class="trait"·href="pattern/trait.Pattern.html"·title="trait·alloc::str::pattern::Pattern">Pattern</a>&lt;'a&gt;</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>4 ····P:·<a·class="trait"·href="pattern/trait.Pattern.html"·title="trait·alloc::str::pattern::Pattern">Pattern</a>&lt;'a&gt;</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.78.0/core/primitive.str.html#method.match_indices"·title="method·str::match_indices"><code>match_indices</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-MatchIndices%3C'a,+P%3E"·class="impl"><a·class="src·rightside"·href="../../src/core/str/iter.rs.html#1073-1089">source</a><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">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-Clone-for-MatchIndices%3C'a,+P%3E"·class="impl"><a·class="src·rightside"·href="https://doc.rust-lang.org/1.78.0/src/core/str/iter.rs.html#1073-1089">source</a><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.78.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
6 ····P:·<a·class="trait"·href="pattern/trait.Pattern.html"·title="trait·alloc::str::pattern::Pattern">Pattern</a>&lt;'a&gt;,6 ····P:·<a·class="trait"·href="pattern/trait.Pattern.html"·title="trait·alloc::str::pattern::Pattern">Pattern</a>&lt;'a&gt;,
7 ····&lt;P·as·<a·class="trait"·href="pattern/trait.Pattern.html"·title="trait·alloc::str::pattern::Pattern">Pattern</a>&lt;'a&gt;&gt;::<a·class="associatedtype"·href="pattern/trait.Pattern.html#associatedtype.Searcher"·title="type·alloc::str::pattern::Pattern::Searcher">Searcher</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"><details·class="toggle·method-toggle"·open><summary><section·id="method.clone"·class="method·trait-impl"><a·class="src·righ[·...·truncated·by·diffoscope;·len:·1510,·SHA:·8500855b0c5f54fb6bb8e3bf487d11189b49db66ddbb5d1916bb22da06316c51·...·]/src/core/str/iter.rs.html#1073-1089">source</a><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">where7 ····&lt;P·as·<a·class="trait"·href="pattern/trait.Pattern.html"·title="trait·alloc::str::pattern::Pattern">Pattern</a>&lt;'a&gt;&gt;::<a·class="associatedtype"·href="pattern/trait.Pattern.html#associatedtype.Searcher"·title="type·alloc::str::pattern::Pattern::Searcher">Searcher</a>:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.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:·1753,·SHA:·3c38d4d39ed5f077c5f64a01628aa0d631635be0b0dcd587aab10ed68dcfda8a·...·]/src/core/str/iter.rs.html#1073-1089">source</a><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
8 ····P:·<a·class="trait"·href="pattern/trait.Pattern.html"·title="trait·alloc::str::pattern::Pattern">Pattern</a>&lt;'a&gt;,8 ····P:·<a·class="trait"·href="pattern/trait.Pattern.html"·title="trait·alloc::str::pattern::Pattern">Pattern</a>&lt;'a&gt;,
9 ····&lt;P·as·<a·class="trait"·href="pattern/trait.Pattern.html"·title="trait·alloc::str::pattern::Pattern">Pattern</a>&lt;'a&gt;&gt;::<a·class="associatedtype"·href="pattern/trait.Pattern.html#associatedtype.Searcher"·title="type·alloc::str::pattern::Pattern::Searcher">Searcher</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/str/iter.rs.html#1073-1089">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:·906,·SHA:·523a5334c4eb242e797c2120a0283ac9ed68d995521b1be2a6435d557d58b59d·...·]/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">where9 ····&lt;P·as·<a·class="trait"·href="pattern/trait.Pattern.html"·title="trait·alloc::str::pattern::Pattern">Pattern</a>&lt;'a&gt;&gt;::<a·class="associatedtype"·href="pattern/trait.Pattern.html#associatedtype.Searcher"·title="type·alloc::str::pattern::Pattern::Searcher">Searcher</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.78.0/src/core/str/iter.rs.html#1073-1089">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:·1041,·SHA:·5e8a3af95c809bf307ea2044286a74fd7e9e47ee0484c4ef5e7291539406f483·...·]/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
10 ····P:·<a·class="trait"·href="pattern/trait.Pattern.html"·title="trait·alloc::str::pattern::Pattern">Pattern</a>&lt;'a&gt;,10 ····P:·<a·class="trait"·href="pattern/trait.Pattern.html"·title="trait·alloc::str::pattern::Pattern">Pattern</a>&lt;'a&gt;,
11 ····&lt;P·as·<a·class="trait"·href="pattern/trait.Pattern.html"·title="trait·alloc::str::pattern::Pattern">Pattern</a>&lt;'a&gt;&gt;::<a·class="associatedtype"·href="pattern/trait.Pattern.html#associatedtype.Searcher"·title="type·alloc::str::pattern::Pattern::Searcher">Searcher</a>:·<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#1073-1089">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:·fe7e9bae2f15951043a387f53b2d262d22333ed6e34b3cb76b5dcade1268b5b6·...·]/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 ····&lt;P·as·<a·class="trait"·href="pattern/trait.Pattern.html"·title="trait·alloc::str::pattern::Pattern">Pattern</a>&lt;'a&gt;&gt;::<a·class="associatedtype"·href="pattern/trait.Pattern.html#associatedtype.Searcher"·title="type·alloc::str::pattern::Pattern::Searcher">Searcher</a>:·<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.78.0/src/core/str/iter.rs.html#1073-1089">source</a><a·href="#method.next_back"·class="anchor">§</a><h4·class="code-header">fn·<a·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/double_ended/trait.DoubleEndedIterator.htm[·...·truncated·by·diffoscope;·len:·3981,·SHA:·ff3dbf308388b4175fb01a5afa3c0bbed07f0b38bff17f8fe60ffbe73b4eb2fd·...·]/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.78.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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(B,·Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.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.78.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.7[·...·truncated·by·diffoscope;·len:·3,·SHA:·7b1bd53949b752d143d871408483b5382371b5bc48d195d0c040ec93cfa2748b·...·]/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:·74b709f2c818a4eda5d85ea863eb2d8af72c87564dbab2746e67feafb0cbb9a3·...·]/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.78.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:·d66ed7e195a53e9945339ef1976aed455dcf80228d8e5b7b0c69a64c3983fea1·...·]/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.78.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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(B,·Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/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:·f8bdf1e28866c7668477ab391452c7cfa7fd52cc69b633e782a157931421b39b·...·]/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.78.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:·c264047794019a6dcf05728ba6a6ee1f8f07c7209958b3366ba94546b527ecdc·...·]/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.78.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:·718,·SHA:·74cd4cd0c0d3e73027e37c6384ab6523bf23859ad8b8bbb7db5993310f3e218f·...·]/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">where20 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·880,·SHA:·a55132d462982cb879e894ad5a45a86c5d40714a67d4b5af06106dad9a48524d·...·]/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
21 ····P:·<a·class="trait"·href="pattern/trait.Pattern.html"·title="trait·alloc::str::pattern::Pattern">Pattern</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·href="#associatedtype.Item"·class="anchor">§</a><h4·class="code-header">type·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·class="associatedtype">Item</a>·=·(<a·class="primitive"·href="../../core/primitive.usize.html">usize</a>,·&amp;'a·<a·class="primitive"·href="../../core/primitive.str.html">str</a>)</h[·...·truncated·by·diffoscope;·len:·1368,·SHA:·13d5c0262f7288bcfc6a88bad3b48a1462a9dadb074b518aabdbd00ce61cb28d·...·]/core/primitive.usize.html">usize</a>&gt;(21 ····P:·<a·class="trait"·href="pattern/trait.Pattern.html"·title="trait·alloc::str::pattern::Pattern">Pattern</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·href="#associatedtype.Item"·class="anchor">§</a><h4·class="code-header">type·<a·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·class="associatedtype">Item</a>·=·(<a·class="primitive"·href="https://doc.rust-lang.org/1.78.0/core/primitive.usize.html">usize</a>,·&amp;'a·<a·class="primi[·...·truncated·by·diffoscope;·len:·1692,·SHA:·e25ca0313ff8a3a8fb918a98191c4da653c1e56bf7fcabb17bea98547868b50c·...·]/core/primitive.usize.html">usize</a>&gt;(
22 ····&amp;mut·self22 ····&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.78.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.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title=[·...·truncated·by·diffoscope;·len:·381,·SHA:·88c48923c9b7ea5cc47c1087c60e09656e81d4671c58071ba2bef826335388bc·...·]/core/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:·19053018de1acf5c85a547b4f740a12b61b1dafeb5940dd6e6ded8d48e943731·...·]/core/primitive.usize.html">usize</a><div·class="where">where24 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></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:·402867e9e3549fef747dcb22b92bda79093f02d1378ea733f633e3a91e074bca·...·]/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:·5b5aaec46c04cf77d2fa06e88cd6f0a2bd8d201412bc325302bd2f8f21b39207·...·]/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.78.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:·84ae0beb16240102bae2355bb8c543b17f3f107e3c06b320839aa401eebb1945·...·]/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:·6b808f54a13578d2e276864bb3eb79ae7b452b8959e79f7ea7ab1180574b77fc·...·]/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.78.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.78.0/cor[·...·truncated·by·diffoscope;·len:·3504,·SHA:·6d21b6d637e0b2e9953a37a26fd19e00da089147d4acaf696c94d448de4ce419·...·]/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.78.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:·5667b9b6c9778ff3b9d23ed0a110e7ab9d3fccc786fdcaca8c17edf996236439·...·]/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.78.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:·e83c903581753673e083ce8dd809879a2fc81ab3050eb6db267d7fa26b15e035·...·]/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.78.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:·1c6bb9803ee8832ebd4c28a08a952178165595b6870cf35d3c89454b9da828b2·...·]/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.78.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.78.0/core/iter/traits/it[·...·truncated·by·diffoscope;·len:·1329,·SHA:·d9299c8edc606ed82f24d61ce441bec451141d684c2a9a75074f5b19c57f196c·...·]/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.78.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:·c1b5e692e89c9c809075ee8ee72fb15a9ec46c075b08450e1f707d672a224750·...·]/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.78.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:·98627729f77dcf1c9d258f343354ba600b7134c6b3929080f231e8de7155b70b·...·]/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.78.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.78.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.78.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:·d6282409add0999f2130eb6bbe6d0473ce96bf2544799e8bc22156f3c2d2e0dd·...·]/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.78.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:·7301b6beba7b6885849be90a625df68ef739a5374af456c51fe2e81d91a25363·...·]/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.78.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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::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:·fb4c9589a16c7b6d697c109d1193d2f1e763e5dd967101c2fd92b32416972229·...·]/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.78.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:·98f6effefa44d759c249143d83623f0055d937382bfc398b7e1f5e92cd413657·...·]/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.78.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:·7abbad666ec88a1053b8aca2a481d629a3ef3596eddb570c381205fa2d859a52·...·]/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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·916,·SHA:·30d0b2a76513c5a880e9aee43e92b18805845cfcfe5783f62dc090167a439e63·...·]/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.78.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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·140,·SHA:·752f473b57e7444ebfddf5ea7fd40a332e83ec55524a6c31b5ee0f82a5dea819·...·]/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:·7da07154834a15b8ae55b4fd41479da070ccbd27e071909f81698570c306a081·...·]/core/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.78.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:·76aa2ad154f88085ee3f8a22721a7e6812680bac785d19059532407f50da1801·...·]/core/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.78.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:·c89169e5bf1c4724c7b411e568b6dad6475896f2606f557b3d708359ef71f5cc·...·]/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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·1052,·SHA:·110b47c7083083d565fcfc89337fddc8e5c87e81b2f720f3f7b0ded55e8500fb·...·]/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.78.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:·53634008856676c70c32b501f7ec498c1f86d123cc9b5b898256a69895ff31fc·...·]/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.78.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:·8464264e074dde5d84f0414ab3b5b2d8da83f3c9e3ca04c45458241580a8c80d·...·]/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.78.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.78.0/core/iter/adapte[·...·truncated·by·diffoscope;·len:·175,·SHA:·16fe7225bf05b478e2828b347c3d23ded9a22f89d8887a2c65d9f7b3faf1b0e7·...·]/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:·77dd41e041d66c618d306e900a9159cf1b00478b8f37e5692be62119a1d4fcda·...·]/core/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.78.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:·00ccbb673c11ed48d8c6aa2a3f8984fb298202e7bccfa42f1ac21290fcc0fb06·...·]/core/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.78.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:·c18326af66652e52fa627bfd0312af7fa2ad0ddc162b12a46e61047a031b0264·...·]/core/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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·1234,·SHA:·3b805567411cdcebed740f9e8d400dbe7fb487504f40e284544a140155090fdf·...·]/core/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.78.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:·39eeddf219b211245393e51a591d5064c740fa9be49d88883d8a6474679741ad·...·]/core/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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·1058,·SHA:·b390dbdda8d7e93604b5ecd906a93efd03fe19bdaf41cf12893fd361bf974307·...·]/core/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.78.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:·9369fa85b74ff841f7401949cadba6dfbbbeead2a99568f20dcfd5aab20d61ab·...·]/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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·1163,·SHA:·5772149166d344bf8fa5ebbd9db8693a8f2e5f031c50338e8f1523ef72f814d6·...·]/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:·a25e81a74cc82c1837477e2b0cea682fff9f43550640901b8010ac501ca69e3d·...·]/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.78.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:·6216516fe581c401abda3c95818192e8f030e2008c9bbdbaafebba16f33ea9bd·...·]/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.78.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:·de8f1023275132502c1569b0ef9a557dc98eaf60aae97cdb916e52f9f55100aa·...·]/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.78.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:·485843399c56e24bdf020ff0610d0ce1f62fbac5530d9880a1a7417105e3d70f·...·]/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.78.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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(<a·class="primitive"·href="https://doc.rust-lang.org/1.78.0/core/primitive.reference.html">&amp;mut·St</a>,·Self::<a·class="associatedty[·...·truncated·by·diffoscope;·len:·449,·SHA:·f12c268a8a8111b9e7126ad78bf5523a63733caa63d187c4fe792309ea41acdf·...·]/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:·8b31595e3cee3022819032aac82e3df712188a2a6dcc20da6939262e5e528591·...·]/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.78.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.78.0/core/iter/trai[·...·truncated·by·diffoscope;·len:·690,·SHA:·371190e5c1bf9b7dde6e84447965a69946212b977b9eb6d89048fbe34c5dda1c·...·]/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.78.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.78.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:·9b6a337a3ad68c2a987b52450c153f87a04a8ed9e83603d26077fe6e70d61edf·...·]/core/iter/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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·976,·SHA:·2a9182f6fe88e0b8a9b1ae1f46cace940cc0b8736033c354c0f0ccbf1c196e7a·...·]/core/iter/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.78.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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;[Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtyp[·...·truncated·by·diffoscope;·len:·135,·SHA:·0b06a6094d42ccbc8bce5b01c4383961fe7f1967f05e4c9f1ff33e71e425fb26·...·]/core/primitive.array.html">N</a>])·-&gt;·R,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iter_map_windows</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/87155">#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.78.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:·238f6b49b3e28d725c57040edaa60bfbb34f140155e6af1d30eab52da1c7274f·...·]/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.78.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:·0d33056cee8a4f9b70b573c0adecc2f3599a2f8d9fa9f2c2044e9118ab134f73·...·]/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:·cfd3edf89fe5aca24b994f83b0d7da765620394e35140e694d98233d4d92481b·...·]/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.78.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.78.0/core/op[·...·truncated·by·diffoscope;·len:·841,·SHA:·9cba1b175fb3726d7f1f01da9be7c1a56568a68e4ce7915a468b730902daf8d3·...·]/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.78.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:·772,·SHA:·31d2052382378512fa905c6d5297d384eac7b7f126141ce561719c0e27cc9d39·...·]/core/primitive.reference.html">&amp;mut·Self</a><div·class="where">where72 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·934,·SHA:·ea20d2e0fe9388580ea08100baa9120b5e9b6cb48f43fc846f15db8b9649e7f6·...·]/core/primitive.reference.html">&amp;mut·Self</a><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:·98760b16b1ed91f9558e6e2637724a4608316181d5f6f4d236e896a83eca9af9·...·]/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.78.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.78.0/core/it[·...·truncated·by·diffoscope;·len:·523,·SHA:·97064c705f6f4bdf74469c54fabcf580d21893127d1b4cd9a9c1018a717ef153·...·]/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.78.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.78.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:·e5d524e874326d0b9b733f5ee809c6595cde869afab0cc3d4ba8454093f420da·...·]/core/primitive.reference.html">&amp;mut·E</a><div·class="where">where75 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.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.78.0/core/iter/tr[·...·truncated·by·diffoscope;·len:·728,·SHA:·01937c2dc314c259495665570ae249c94b4a5b0719718f5f1188e6fc64ecf487·...·]/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.78.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.78.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:·b0297783e056393a542c4058b42c18523a86c961c1b6ce3bc94342c1a2c10c58·...·]/core/primitive.tuple.html">(B,·B)</a><div·class="where">where77 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></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:·00bd47017b1bdd1bbe2c3fc932d955a8aa2f7f5eff8c00e3001ae28a982a5883·...·]/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.78.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.78.0/core/default/trait.Default.html"·title="trait·core::default::Default">Default</a>·+·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/collect/trait.Extend.html"·title="trait·core::iter::traits::collec[·...·truncated·by·diffoscope;·len:·95,·SHA:·8b3be1d0042cae0550f865faf5849221240bdf04eb1b2107605b72d48c3ad29c·...·]/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:·f8b50287f3e106633ed79a84072d3ddd9d98672efd685d2433c61b5549ce051e·...·]/core/primitive.bool.html">bool</a><div·class="where">where80 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·972,·SHA:·6de765542031617a9c28ac98fe6df619e58e62d9c65ec5b1c185a7152b8944e5·...·]/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.78.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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·135,·SHA:·51ff5f5c7ebd8440623ea71b125c5a5837e809e308fe1a13fbe19cddb941dbd9·...·]/core/primitive.bool.html">bool</a>,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iter_is_partitioned</code>&nbsp;<a·href="https://github.com/rust-lang/rust/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:·6f406a351b93047f56fa70265a6bf28ec6874f75cd6cc5a39d51c7af462f2992·...·]/core/iter/traits/iterator/trait.Iterator.html#method.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.78.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:·2c74873f4e5ba70004a1c7edd1cc3f9e2d91271295dd1591e2d26848df4c02ba·...·]/core/iter/traits/iterator/trait.Iterator.html#method.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.78.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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(B,·Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.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.78.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:·eecdce021399d206eb3ef5af12ee7663b4eb0dca55b0f411c7fa66f605b6b2e2·...·]/core/iter/traits/iterator/trait.Iterator.html#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.78.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:·52912e82c4b0a760d06f77eb4ee3a59ba70dd76cb532954900c73ae94c652674·...·]/core/iter/traits/iterator/trait.Iterator.html#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.78.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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.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.78.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.78.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:·ffdacd6b524bc823efebbf23dc0f77317a07fe9c8b691f2ea18db7aa0c08b146·...·]/core/iter/traits/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.78.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:·1d6c4809cea8748e901d3f94777f450d430f3161f6ac05ed1c178d9327f966a3·...·]/core/iter/traits/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.78.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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(B,·Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::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:·dbe3a08fe63abd47570741e71208c31aaf51152feac5917db07665a1f56bb3e3·...·]/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.78.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:·b60215068a6d9721be05f81098c51167d7138c4042f140cad42f77c4df43f597·...·]/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.78.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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·352,·SHA:·e7c3c296abe2c0a183967153e4ae7fd50bafa2ae7088e3e78b3b48fee253adc6·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::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:·a9dce8bb557b5a11426bf2ffcbd5eea7c6c870833e3ee5bb072dcaaa11687b0c·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_reduce"·class="fn">try_reduce</a>&lt;F,·R&gt;(97 operation.·<a·href="https://doc.rust-lang.org/1.78.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:·7a18fdd041b1a001b4a8feb289ee127fd9240232239269eb35dc3b8f74783ec9·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_reduce"·class="fn">try_reduce</a>&lt;F,·R&gt;(
98 ····&amp;mut·self,98 ····&amp;mut·self,
99 ····f:·F99 ····f:·F
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.78.0/core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&gt;::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/ops/try_trait/trait.Try.html#associatedtype.Residual"·title="type[·...·truncated·by·diffoscope;·len:·754,·SHA:·6fb4dfdb6b4da68921c1e7f8b75d99cf293d58318d684a840254ce9576957bea·...·]/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.78.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:·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:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·140,·SHA:·c27972e6fa3464c9476eaa185e8657edb6bb294f148403f3d079285294a9f909·...·]/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·=·Self::<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.78.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.78.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.78.0/core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&gt;::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/ops/try_trait/trait.Try.html#associatedtype.Residual"·title="type[·...·truncated·by·diffoscope;·len:·412,·SHA:·22b8cbb007e5cce82b9d13a65bfa56aa8d83c32541fac25f4d9b3857b0540908·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;&gt;,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iterator_try_reduce</code>&nbsp;<a·href="https://github.com/rust-lang/rust/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:·65b80c848af6e465c8c5aef4ec8d3faaa399d30c8427c9507fda7b3bd1d3ea93·...·]/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.78.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:·bc0d658d56e348823de15386e1cd4ab49109f3a7a055a4573a19391b47071193·...·]/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.78.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:·95a840b532d3d621bde4032d63854eb0a481248e2b4bbb3ef058dbffb4dae4fa·...·]/core/primitive.bool.html">bool</a><div·class="where">where107 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·1018,·SHA:·e61cd6bdd36729cc38e57fcaea2ccb91a23a5acbda3c8986071f19bf1ecfc52a·...·]/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.78.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:·f828c62edd4fe85e217286f359b56c116e14ed18bb292ba1cc13d3ed7146909e·...·]/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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·1172,·SHA:·e64ab74d116d286191ad43d9d9e10411fc011c23724aa806e9a8f9b0be0757e3·...·]/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.78.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:·21d7086b3ce0092e3f7a6a41174339bbd8724e7d186158db4db3385a73d94e8e·...·]/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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·1051,·SHA:·ecc0b8fccd861464760f9ae047ff6ab98c91a1db010cb5fa59a8c2ab883db7c4·...·]/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.78.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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·130,·SHA:·130a13019dc175d02304b4f550157e2f13ac15c2f25a979c74161d10b146ab89·...·]/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:·ac4da3337aac1ec10038e246be9cb719eeb5af1acc709f5a6a25b91900c56f53·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_find"·class="fn">try_find</a>&lt;F,·R&gt;(114 the·first·non-none·result.·<a·href="https://doc.rust-lang.org/1.78.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:·8ced1b10e78750774c5c8ed995ed83dcd13983aa75d329acf8069da106ab9f4a·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_find"·class="fn">try_find</a>&lt;F,·R&gt;(
115 ····&amp;mut·self,115 ····&amp;mut·self,
116 ····f:·F116 ····f:·F
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.78.0/core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&gt;::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/ops/try_trait/trait.Try.html#associatedtype.Residual"·title="type[·...·truncated·by·diffoscope;·len:·626,·SHA:·95f9831257b68862cbcbf54f0ad2ff4e597a4c9f763112d1da8a0897dadcf872·...·]/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.78.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;·R,119 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·R,
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.78.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.78.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.78.0/core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&gt;::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/ops/try_trait/trait.Try.html#associatedtype.Residual"·title="type[·...·truncated·by·diffoscope;·len:·412,·SHA:·22b8cbb007e5cce82b9d13a65bfa56aa8d83c32541fac25f4d9b3857b0540908·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;&gt;,</div></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.78.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:·fa9d94b216f6e4ce6035b4762e3bf17cb86a0272db0a55a056f05c68bcaeb0da·...·]/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.78.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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·1190,·SHA:·882e9e9a037f916d0ed4aa6d749399e6e01ca81811eacfc54a484818cb5d5029·...·]/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.78.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.78.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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/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; 88396/305792 bytes (28.91%) of diff not shown.
299 KB
./usr/share/doc/rust-web-doc/html/alloc/str/struct.Matches.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·`matches`."><title>Matches·in·alloc::str·-·Rust</title><script>·if·(window.location.protocol·!==·"file:")·document.write(`<link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/SourceSerif4-Regular-46f98efaafac5295.ttf.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/FiraSans-Regular-018c141bf0843ffd.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/FiraSans-Medium-8f9a781e4970d388.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/SourceCodePro-Regular-562dcc5011b6de7d.ttf.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/SourceCodePro-Semibold-d899c5a5c4aeb14a.ttf.woff2">`)</script><link·rel="stylesheet"·href="../../static.files/normalize-76eba96aa4d2e634.css"><link·rel="stylesheet"·href="../../static.files/rustdoc-35f9e32502181f1e.css"><meta·name="rustdoc-vars"·data-root-path="../../"·data-static-root-path="../../static.files/"·data-current-crate="alloc"·data-themes=""·data-resource-suffix="1.78.0"·data-rustdoc-version="1.78.0"·data-channel="1.78.0"·data-search-js="search-42d8da7a6b9792c2.js"·data-settings-js="settings-4313503d2e1961c2.js"·><script·src="../../static.files/storage-4c98445ec4002617.js"></script><script·defer·src="sidebar-items1.78.0.js"></script><script·defer·src="../../static.files/main-12cf3b4f4f9dc36d.js"></script><noscript><link·rel="stylesheet"·href="../../static.files/noscript-04d5337699b92874.css"></noscript><link·rel="alternate·icon"·type="image/png"·href="../../static.files/favicon-16x16-8b506e7a72182f1c.png"><link·rel="alternate·icon"·type="image/png"·href="../../static.files/favicon-32x32-422f7d1d52889060.png"><link·rel="icon"·type="image/svg+xml"·href="../../static.files/favicon-2c020d218678b618.svg"></head><body·class="rustdoc·struct"><!--[if·lte·IE·11]><div·class="warning">This·old·browser·is·unsupported·and·will·most·likely·display·funky·things.</div><![endif]--><nav·class="mobile-topbar"><button·class="sidebar-menu-toggle"·title="show·sidebar"></button><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-151179464ae7ed46.svg"·alt=""></a></nav><nav·class="sidebar"><div·class="sidebar-crate"><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-151179464ae7ed46.svg"·alt="logo"></a><h2><a·href="../../alloc/index.html">alloc</a><span·class="version">1.78.0</span></h2></div><h2·class="location"><a·href="#">Matches</a></h2><div·class="sidebar-elems"><section><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">Clone</a></li><li><a·href="#impl-Debug-for-Matches%3C'a,+P%3E">Debug</a></li><li><a·href="#impl-DoubleEndedIterator-for-Matches%3C'a,+P%3E">DoubleEndedIterator</a></li><li><a·href="#impl-FusedIterator-for-Matches%3C'a,+P%3E">FusedIterator</a></li><li><a·href="#impl-Iterator-for-Matches%3C'a,+P%3E">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">Freeze</a></li><li><a·href="#impl-RefUnwindSafe-for-Matches%3C'a,+P%3E">RefUnwindSafe</a></li><li><a·href="#impl-Send-for-Matches%3C'a,+P%3E">Send</a></li><li><a·href="#impl-Sync-for-Matches%3C'a,+P%3E">Sync</a></li><li><a·href="#impl-Unpin-for-Matches%3C'a,+P%3E">Unpin</a></li><li><a·href="#impl-UnwindSafe-for-Matches%3C'a,+P%3E">UnwindSafe</a></li></ul><h3><a·href="#blanket-implementations">Blanket·Implementations</a></h3><ul·class="block·blanket-implementation"><li><a·href="#impl-Any-for-T">Any</a></li><li><a·href="#impl-Borrow%3CT%3E-for-T">Borrow&lt;T&gt;</a></li><li><a·href="#impl-BorrowMut%3CT%3E-for-T">BorrowMut&lt;T&gt;</a></li><li><a·href="#impl-From%3CT%3E-for-T">From&lt;T&gt;</a></li><li><a·href="#impl-Into%3CU%3E-for-T">Into&lt;U&gt;</a></li><li><a·href="#impl-IntoIterator-for-I">IntoIterator</a></li><li><a·href="#impl-ToOwned-for-T">ToOwned</a></li><li><a·href="#impl-TryFrom%3CU%3E-for-T">TryFrom&lt;U&gt;</a></li><li><a·href="#impl-TryInto%3CU%3E-for-T">TryInto&lt;U&gt;</a></li></ul></section><h2><a·href="index.html">In·alloc::str</a></h2></div></nav><div·class="sidebar-resizer"></div>1 <!DOCTYPE·html><html·lang="en"><head><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.write(`<link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/SourceSerif4-Regular-46f98efaafac5295.ttf.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/FiraSans-Regular-018c141bf0843ffd.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/FiraSans-Medium-8f9a781e4970d388.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/SourceCodePro-Regular-562dcc5011b6de7d.ttf.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/SourceCodePro-Semibold-d899c5a5c4aeb14a.ttf.woff2">`)</script><link·rel="stylesheet"·href="../../static.files/normalize-76eba96aa4d2e634.css"><link·rel="stylesheet"·href="../../static.files/rustdoc-35f9e32502181f1e.css"><meta·name="rustdoc-vars"·data-root-path="../../"·data-static-root-path="../../static.files/"·data-current-crate="alloc"·data-themes=""·data-resource-suffix="1.78.0"·data-rustdoc-version="1.78.0"·data-channel="1.78.0"·data-search-js="search-42d8da7a6b9792c2.js"·data-settings-js="settings-4313503d2e1961c2.js"·><script·src="../../static.files/storage-4c98445ec4002617.js"></script><script·defer·src="sidebar-items1.78.0.js"></script><script·defer·src="../../static.files/main-12cf3b4f4f9dc36d.js"></script><noscript><link·rel="stylesheet"·href="../../static.files/noscript-04d5337699b92874.css"></noscript><link·rel="alternate·icon"·type="image/png"·href="../../static.files/favicon-16x16-8b506e7a72182f1c.png"><link·rel="alternate·icon"·type="image/png"·href="../../static.files/favicon-32x32-422f7d1d52889060.png"><link·rel="icon"·type="image/svg+xml"·href="../../static.files/favicon-2c020d218678b618.svg"></head><body·class="rustdoc·struct"><!--[if·lte·IE·11]><div·class="warning">This·old·browser·is·unsupported·and·will·most·likely·display·funky·things.</div><![endif]--><nav·class="mobile-topbar"><button·class="sidebar-menu-toggle"·title="show·sidebar"></button><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-151179464ae7ed46.svg"·alt=""></a></nav><nav·class="sidebar"><div·class="sidebar-crate"><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-151179464ae7ed46.svg"·alt="logo"></a><h2><a·href="../../alloc/index.html">alloc</a><span·class="version">1.78.0</span></h2></div><h2·class="location"><a·href="#">Matches</a></h2><div·class="sidebar-elems"><section><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">Clone</a></li><li><a·href="#impl-Debug-for-Matches%3C'a,+P%3E">Debug</a></li><li><a·href="#impl-DoubleEndedIterator-for-Matches%3C'a,+P%3E">DoubleEndedIterator</a></li><li><a·href="#impl-FusedIterator-for-Matches%3C'a,+P%3E">FusedIterator</a></li><li><a·href="#impl-Iterator-for-Matches%3C'a,+P%3E">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">Freeze</a></li><li><a·href="#impl-RefUnwindSafe-for-Matches%3C'a,+P%3E">RefUnwindSafe</a></li><li><a·href="#impl-Send-for-Matches%3C'a,+P%3E">Send</a></li><li><a·href="#impl-Sync-for-Matches%3C'a,+P%3E">Sync</a></li><li><a·href="#impl-Unpin-for-Matches%3C'a,+P%3E">Unpin</a></li><li><a·href="#impl-UnwindSafe-for-Matches%3C'a,+P%3E">UnwindSafe</a></li></ul><h3><a·href="#blanket-implementations">Blanket·Implementations</a></h3><ul·class="block·blanket-implementation"><li><a·href="#impl-Any-for-T">Any</a></li><li><a·href="#impl-Borrow%3CT%3E-for-T">Borrow&lt;T&gt;</a></li><li><a·href="#impl-BorrowMut%3CT%3E-for-T">BorrowMut&lt;T&gt;</a></li><li><a·href="#impl-From%3CT%3E-for-T">From&lt;T&gt;</a></li><li><a·href="#impl-Into%3CU%3E-for-T">Into&lt;U&gt;</a></li><li><a·href="#impl-IntoIterator-for-I">IntoIterator</a></li><li><a·href="#impl-ToOwned-for-T">ToOwned</a></li><li><a·href="#impl-TryFrom%3CU%3E-for-T">TryFrom&lt;U&gt;</a></li><li><a·href="#impl-TryInto%3CU%3E-for-T">TryInto&lt;U&gt;</a></li></ul></section><h2><a·href="index.html">In·alloc::str</a></h2></div></nav><div·class="sidebar-resizer"></div>
2 ····<main><div·class="width-limiter"><nav·class="sub"><form·class="search-form"><span></span><div·id="sidebar-button"·tabindex="-1"><a·href="../../alloc/all.html"·title="show·sidebar"></a></div><input·class="search-input"·name="search"·aria-label="Run·search·in·the·documentation"·autocomplete="off"·spellcheck="false"·placeholder="Click·or·press·‘S’·to·search,·‘?’·for·more·options…"·type="search"><div·id="help-button"·tabindex="-1"><a·href="../../help.html"·title="help">?</a></div><div·id="settings-menu"·tabindex="-1"><a·href="../../settings.html"·title="settings"><img·width="22"·height="22"·alt="Change·settings"·src="../../static.files/wheel-7b819b6101059cd0.svg"></a></div></form></nav><section·id="main-content"·class="content"><div·class="main-heading"><h1>Struct·<a·href="../index.html">alloc</a>::<wbr><a·href="index.html">str</a>::<wbr><a·class="struct"·href="#">Matches</a><button·id="copy-path"·title="Copy·item·path·to·clipboard"><img·src="../../static.files/clipboard-7571035ce49a181d.svg"·width="19"·height="18"·alt="Copy·item·path"></button></h1><span·class="out-of-band"><span·class="since"·title="Stable·since·Rust·version·1.2.0">1.2.0</span>···<a·class="src"·href="../../src/core/str/iter.rs.html#1130-1146">source</a>···<button·id="toggle-all-docs"·title="collapse·all·docs">[<span>&#x2212;</span>]</button></span></div><pre·class="rust·item-decl"><code>pub·struct·Matches&lt;'a,·P&gt;(<span·class="comment">/*·private·fields·*/</span>)2 ····<main><div·class="width-limiter"><nav·class="sub"><form·class="search-form"><span></span><div·id="sidebar-button"·tabindex="-1"><a·href="../../alloc/all.html"·title="show·sidebar"></a></div><input·class="search-input"·name="search"·aria-label="Run·search·in·the·documentation"·autocomplete="off"·spellcheck="false"·placeholder="Click·or·press·‘S’·to·search,·‘?’·for·more·options…"·type="search"><div·id="help-button"·tabindex="-1"><a·href="../../help.html"·title="help">?</a></div><div·id="settings-menu"·tabindex="-1"><a·href="../../settings.html"·title="settings"><img·width="22"·height="22"·alt="Change·settings"·src="../../static.files/wheel-7b819b6101059cd0.svg"></a></div></form></nav><section·id="main-content"·class="content"><div·class="main-heading"><h1>Struct·<a·href="../index.html">alloc</a>::<wbr><a·href="index.html">str</a>::<wbr><a·class="struct"·href="#">Matches</a><button·id="copy-path"·title="Copy·item·path·to·clipboard"><img·src="../../static.files/clipboard-7571035ce49a181d.svg"·width="19"·height="18"·alt="Copy·item·path"></button></h1><span·class="out-of-band"><span·class="since"·title="Stable·since·Rust·version·1.2.0">1.2.0</span>···<a·class="src"·href="https://doc.rust-lang.org/1.78.0/src/core/str/iter.rs.html#1130-1146">source</a>···<button·id="toggle-all-docs"·title="collapse·all·docs">[<span>&#x2212;</span>]</button></span></div><pre·class="rust·item-decl"><code>pub·struct·Matches&lt;'a,·P&gt;(<span·class="comment">/*·private·fields·*/</span>)
3 <span·class="where">where3 <span·class="where">where
4 ····P:·<a·class="trait"·href="pattern/trait.Pattern.html"·title="trait·alloc::str::pattern::Pattern">Pattern</a>&lt;'a&gt;</span>;</code></pre><details·class="toggle·top-doc"·open><summary·class="hideme"><span>Expand·description</span></summary><div·class="docblock"><p>Created·with·the·method·<a·href="../../core/primitive.str.html#method.matches"·title="method·str::matches"><code>matches</code></a>.</p>4 ····P:·<a·class="trait"·href="pattern/trait.Pattern.html"·title="trait·alloc::str::pattern::Pattern">Pattern</a>&lt;'a&gt;</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.78.0/core/primitive.str.html#method.matches"·title="method·str::matches"><code>matches</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-Matches%3C'a,+P%3E"·class="impl"><a·class="src·rightside"·href="../../src/core/str/iter.rs.html#1130-1146">source</a><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">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-Clone-for-Matches%3C'a,+P%3E"·class="impl"><a·class="src·rightside"·href="https://doc.rust-lang.org/1.78.0/src/core/str/iter.rs.html#1130-1146">source</a><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.78.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
6 ····P:·<a·class="trait"·href="pattern/trait.Pattern.html"·title="trait·alloc::str::pattern::Pattern">Pattern</a>&lt;'a&gt;,6 ····P:·<a·class="trait"·href="pattern/trait.Pattern.html"·title="trait·alloc::str::pattern::Pattern">Pattern</a>&lt;'a&gt;,
7 ····&lt;P·as·<a·class="trait"·href="pattern/trait.Pattern.html"·title="trait·alloc::str::pattern::Pattern">Pattern</a>&lt;'a&gt;&gt;::<a·class="associatedtype"·href="pattern/trait.Pattern.html#associatedtype.Searcher"·title="type·alloc::str::pattern::Pattern::Searcher">Searcher</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"><details·class="toggle·method-toggle"·open><summary><section·id="method.clone"·class="method·trait-impl"><a·class="src·righ[·...·truncated·by·diffoscope;·len:·1485,·SHA:·145e09186afda4bf79aadeaaebb625f5e3aa5f29062429b86156fa12957acc6d·...·]/src/core/str/iter.rs.html#1130-1146">source</a><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">where7 ····&lt;P·as·<a·class="trait"·href="pattern/trait.Pattern.html"·title="trait·alloc::str::pattern::Pattern">Pattern</a>&lt;'a&gt;&gt;::<a·class="associatedtype"·href="pattern/trait.Pattern.html#associatedtype.Searcher"·title="type·alloc::str::pattern::Pattern::Searcher">Searcher</a>:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.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:·1728,·SHA:·1a75691ae5c1fdfb105d5e780dd55df7178695ea6900b178fafd593aa57e0cfc·...·]/src/core/str/iter.rs.html#1130-1146">source</a><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
8 ····P:·<a·class="trait"·href="pattern/trait.Pattern.html"·title="trait·alloc::str::pattern::Pattern">Pattern</a>&lt;'a&gt;,8 ····P:·<a·class="trait"·href="pattern/trait.Pattern.html"·title="trait·alloc::str::pattern::Pattern">Pattern</a>&lt;'a&gt;,
9 ····&lt;P·as·<a·class="trait"·href="pattern/trait.Pattern.html"·title="trait·alloc::str::pattern::Pattern">Pattern</a>&lt;'a&gt;&gt;::<a·class="associatedtype"·href="pattern/trait.Pattern.html#associatedtype.Searcher"·title="type·alloc::str::pattern::Pattern::Searcher">Searcher</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/str/iter.rs.html#1130-1146">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:·896,·SHA:·a74fd42666a268ee45a31b28cd1c98db60dc15f503631a775fb7e32e4b275ff5·...·]/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">where9 ····&lt;P·as·<a·class="trait"·href="pattern/trait.Pattern.html"·title="trait·alloc::str::pattern::Pattern">Pattern</a>&lt;'a&gt;&gt;::<a·class="associatedtype"·href="pattern/trait.Pattern.html#associatedtype.Searcher"·title="type·alloc::str::pattern::Pattern::Searcher">Searcher</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.78.0/src/core/str/iter.rs.html#1130-1146">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:·1031,·SHA:·48a874cf116f9ddae51b8c830803bd1f0b19d99724b334b625158c0dc8e24058·...·]/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
10 ····P:·<a·class="trait"·href="pattern/trait.Pattern.html"·title="trait·alloc::str::pattern::Pattern">Pattern</a>&lt;'a&gt;,10 ····P:·<a·class="trait"·href="pattern/trait.Pattern.html"·title="trait·alloc::str::pattern::Pattern">Pattern</a>&lt;'a&gt;,
11 ····&lt;P·as·<a·class="trait"·href="pattern/trait.Pattern.html"·title="trait·alloc::str::pattern::Pattern">Pattern</a>&lt;'a&gt;&gt;::<a·class="associatedtype"·href="pattern/trait.Pattern.html#associatedtype.Searcher"·title="type·alloc::str::pattern::Pattern::Searcher">Searcher</a>:·<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#1130-1146">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:·80c7b69efa426fdbb087a1dcea10dc61c3171f74e485024828f8d0098278c0ac·...·]/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 ····&lt;P·as·<a·class="trait"·href="pattern/trait.Pattern.html"·title="trait·alloc::str::pattern::Pattern">Pattern</a>&lt;'a&gt;&gt;::<a·class="associatedtype"·href="pattern/trait.Pattern.html#associatedtype.Searcher"·title="type·alloc::str::pattern::Pattern::Searcher">Searcher</a>:·<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.78.0/src/core/str/iter.rs.html#1130-1146">source</a><a·href="#method.next_back"·class="anchor">§</a><h4·class="code-header">fn·<a·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/double_ended/trait.DoubleEndedIterator.htm[·...·truncated·by·diffoscope;·len:·3881,·SHA:·b6c2ed22867955d27a011b82e17aadda5566677f15cf1ad98881543883017ed9·...·]/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.78.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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(B,·Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.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.78.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.7[·...·truncated·by·diffoscope;·len:·3,·SHA:·7b1bd53949b752d143d871408483b5382371b5bc48d195d0c040ec93cfa2748b·...·]/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:·74b709f2c818a4eda5d85ea863eb2d8af72c87564dbab2746e67feafb0cbb9a3·...·]/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.78.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:·d66ed7e195a53e9945339ef1976aed455dcf80228d8e5b7b0c69a64c3983fea1·...·]/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.78.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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(B,·Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/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:·f8bdf1e28866c7668477ab391452c7cfa7fd52cc69b633e782a157931421b39b·...·]/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.78.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:·c264047794019a6dcf05728ba6a6ee1f8f07c7209958b3366ba94546b527ecdc·...·]/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.78.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:·708,·SHA:·e3264ea9769759e98cd59f2f08e26db8d06f5c39dac820ad96321a74c661bc41·...·]/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">where20 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·870,·SHA:·e3c72676b49e0fbc39d36cc68387f3572f14fb22faf351518d242cb128e34a8d·...·]/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
21 ····P:·<a·class="trait"·href="pattern/trait.Pattern.html"·title="trait·alloc::str::pattern::Pattern">Pattern</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·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·class="primitive"·href="../../core/primitive.str.html">str</a></h4></section></summary><div·class='docblock'>The·type·of·the·elements·bein[·...·truncated·by·diffoscope;·len:·1222,·SHA:·939983051d97c94a9233d24ef6db1791b8479542a632a26e6248aa1742ec3712·...·]/core/primitive.usize.html">usize</a>&gt;(21 ····P:·<a·class="trait"·href="pattern/trait.Pattern.html"·title="trait·alloc::str::pattern::Pattern">Pattern</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·href="#associatedtype.Item"·class="anchor">§</a><h4·class="code-header">type·<a·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·class="associatedtype">Item</a>·=·&amp;'a·<a·class="primitive"·href="https://doc.rust-lang.org/1.78.0/core/primitive.str.html">str</a></h4></section></summa[·...·truncated·by·diffoscope;·len:·1492,·SHA:·05157a7e562ac8d0a89b82ec6b40311c1f51ad23f08da6b9b955a89fc24179b2·...·]/core/primitive.usize.html">usize</a>&gt;(
22 ····&amp;mut·self22 ····&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.78.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.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title=[·...·truncated·by·diffoscope;·len:·381,·SHA:·88c48923c9b7ea5cc47c1087c60e09656e81d4671c58071ba2bef826335388bc·...·]/core/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:·19053018de1acf5c85a547b4f740a12b61b1dafeb5940dd6e6ded8d48e943731·...·]/core/primitive.usize.html">usize</a><div·class="where">where24 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></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:·402867e9e3549fef747dcb22b92bda79093f02d1378ea733f633e3a91e074bca·...·]/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:·5b5aaec46c04cf77d2fa06e88cd6f0a2bd8d201412bc325302bd2f8f21b39207·...·]/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.78.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:·84ae0beb16240102bae2355bb8c543b17f3f107e3c06b320839aa401eebb1945·...·]/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:·6b808f54a13578d2e276864bb3eb79ae7b452b8959e79f7ea7ab1180574b77fc·...·]/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.78.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.78.0/cor[·...·truncated·by·diffoscope;·len:·3504,·SHA:·6d21b6d637e0b2e9953a37a26fd19e00da089147d4acaf696c94d448de4ce419·...·]/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.78.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:·5667b9b6c9778ff3b9d23ed0a110e7ab9d3fccc786fdcaca8c17edf996236439·...·]/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.78.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:·e83c903581753673e083ce8dd809879a2fc81ab3050eb6db267d7fa26b15e035·...·]/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.78.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:·1c6bb9803ee8832ebd4c28a08a952178165595b6870cf35d3c89454b9da828b2·...·]/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.78.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.78.0/core/iter/traits/it[·...·truncated·by·diffoscope;·len:·1329,·SHA:·d9299c8edc606ed82f24d61ce441bec451141d684c2a9a75074f5b19c57f196c·...·]/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.78.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:·c1b5e692e89c9c809075ee8ee72fb15a9ec46c075b08450e1f707d672a224750·...·]/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.78.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:·98627729f77dcf1c9d258f343354ba600b7134c6b3929080f231e8de7155b70b·...·]/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.78.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.78.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.78.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:·d6282409add0999f2130eb6bbe6d0473ce96bf2544799e8bc22156f3c2d2e0dd·...·]/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.78.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:·7301b6beba7b6885849be90a625df68ef739a5374af456c51fe2e81d91a25363·...·]/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.78.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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::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:·fb4c9589a16c7b6d697c109d1193d2f1e763e5dd967101c2fd92b32416972229·...·]/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.78.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:·98f6effefa44d759c249143d83623f0055d937382bfc398b7e1f5e92cd413657·...·]/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.78.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:·7abbad666ec88a1053b8aca2a481d629a3ef3596eddb570c381205fa2d859a52·...·]/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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·916,·SHA:·30d0b2a76513c5a880e9aee43e92b18805845cfcfe5783f62dc090167a439e63·...·]/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.78.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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·140,·SHA:·752f473b57e7444ebfddf5ea7fd40a332e83ec55524a6c31b5ee0f82a5dea819·...·]/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:·7da07154834a15b8ae55b4fd41479da070ccbd27e071909f81698570c306a081·...·]/core/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.78.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:·76aa2ad154f88085ee3f8a22721a7e6812680bac785d19059532407f50da1801·...·]/core/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.78.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:·c89169e5bf1c4724c7b411e568b6dad6475896f2606f557b3d708359ef71f5cc·...·]/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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·1052,·SHA:·110b47c7083083d565fcfc89337fddc8e5c87e81b2f720f3f7b0ded55e8500fb·...·]/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.78.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:·53634008856676c70c32b501f7ec498c1f86d123cc9b5b898256a69895ff31fc·...·]/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.78.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:·8464264e074dde5d84f0414ab3b5b2d8da83f3c9e3ca04c45458241580a8c80d·...·]/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.78.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.78.0/core/iter/adapte[·...·truncated·by·diffoscope;·len:·175,·SHA:·16fe7225bf05b478e2828b347c3d23ded9a22f89d8887a2c65d9f7b3faf1b0e7·...·]/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:·77dd41e041d66c618d306e900a9159cf1b00478b8f37e5692be62119a1d4fcda·...·]/core/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.78.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:·00ccbb673c11ed48d8c6aa2a3f8984fb298202e7bccfa42f1ac21290fcc0fb06·...·]/core/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.78.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:·c18326af66652e52fa627bfd0312af7fa2ad0ddc162b12a46e61047a031b0264·...·]/core/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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·1234,·SHA:·3b805567411cdcebed740f9e8d400dbe7fb487504f40e284544a140155090fdf·...·]/core/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.78.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:·39eeddf219b211245393e51a591d5064c740fa9be49d88883d8a6474679741ad·...·]/core/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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·1058,·SHA:·b390dbdda8d7e93604b5ecd906a93efd03fe19bdaf41cf12893fd361bf974307·...·]/core/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.78.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:·9369fa85b74ff841f7401949cadba6dfbbbeead2a99568f20dcfd5aab20d61ab·...·]/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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·1163,·SHA:·5772149166d344bf8fa5ebbd9db8693a8f2e5f031c50338e8f1523ef72f814d6·...·]/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:·a25e81a74cc82c1837477e2b0cea682fff9f43550640901b8010ac501ca69e3d·...·]/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.78.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:·6216516fe581c401abda3c95818192e8f030e2008c9bbdbaafebba16f33ea9bd·...·]/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.78.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:·de8f1023275132502c1569b0ef9a557dc98eaf60aae97cdb916e52f9f55100aa·...·]/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.78.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:·485843399c56e24bdf020ff0610d0ce1f62fbac5530d9880a1a7417105e3d70f·...·]/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.78.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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(<a·class="primitive"·href="https://doc.rust-lang.org/1.78.0/core/primitive.reference.html">&amp;mut·St</a>,·Self::<a·class="associatedty[·...·truncated·by·diffoscope;·len:·449,·SHA:·f12c268a8a8111b9e7126ad78bf5523a63733caa63d187c4fe792309ea41acdf·...·]/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:·8b31595e3cee3022819032aac82e3df712188a2a6dcc20da6939262e5e528591·...·]/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.78.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.78.0/core/iter/trai[·...·truncated·by·diffoscope;·len:·690,·SHA:·371190e5c1bf9b7dde6e84447965a69946212b977b9eb6d89048fbe34c5dda1c·...·]/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.78.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.78.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:·9b6a337a3ad68c2a987b52450c153f87a04a8ed9e83603d26077fe6e70d61edf·...·]/core/iter/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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·976,·SHA:·2a9182f6fe88e0b8a9b1ae1f46cace940cc0b8736033c354c0f0ccbf1c196e7a·...·]/core/iter/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.78.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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;[Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtyp[·...·truncated·by·diffoscope;·len:·135,·SHA:·0b06a6094d42ccbc8bce5b01c4383961fe7f1967f05e4c9f1ff33e71e425fb26·...·]/core/primitive.array.html">N</a>])·-&gt;·R,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iter_map_windows</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/87155">#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.78.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:·238f6b49b3e28d725c57040edaa60bfbb34f140155e6af1d30eab52da1c7274f·...·]/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.78.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:·0d33056cee8a4f9b70b573c0adecc2f3599a2f8d9fa9f2c2044e9118ab134f73·...·]/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:·cfd3edf89fe5aca24b994f83b0d7da765620394e35140e694d98233d4d92481b·...·]/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.78.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.78.0/core/op[·...·truncated·by·diffoscope;·len:·841,·SHA:·9cba1b175fb3726d7f1f01da9be7c1a56568a68e4ce7915a468b730902daf8d3·...·]/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.78.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:·772,·SHA:·31d2052382378512fa905c6d5297d384eac7b7f126141ce561719c0e27cc9d39·...·]/core/primitive.reference.html">&amp;mut·Self</a><div·class="where">where72 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·934,·SHA:·ea20d2e0fe9388580ea08100baa9120b5e9b6cb48f43fc846f15db8b9649e7f6·...·]/core/primitive.reference.html">&amp;mut·Self</a><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:·98760b16b1ed91f9558e6e2637724a4608316181d5f6f4d236e896a83eca9af9·...·]/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.78.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.78.0/core/it[·...·truncated·by·diffoscope;·len:·523,·SHA:·97064c705f6f4bdf74469c54fabcf580d21893127d1b4cd9a9c1018a717ef153·...·]/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.78.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.78.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:·e5d524e874326d0b9b733f5ee809c6595cde869afab0cc3d4ba8454093f420da·...·]/core/primitive.reference.html">&amp;mut·E</a><div·class="where">where75 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.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.78.0/core/iter/tr[·...·truncated·by·diffoscope;·len:·728,·SHA:·01937c2dc314c259495665570ae249c94b4a5b0719718f5f1188e6fc64ecf487·...·]/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.78.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.78.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:·b0297783e056393a542c4058b42c18523a86c961c1b6ce3bc94342c1a2c10c58·...·]/core/primitive.tuple.html">(B,·B)</a><div·class="where">where77 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></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:·00bd47017b1bdd1bbe2c3fc932d955a8aa2f7f5eff8c00e3001ae28a982a5883·...·]/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.78.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.78.0/core/default/trait.Default.html"·title="trait·core::default::Default">Default</a>·+·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/collect/trait.Extend.html"·title="trait·core::iter::traits::collec[·...·truncated·by·diffoscope;·len:·95,·SHA:·8b3be1d0042cae0550f865faf5849221240bdf04eb1b2107605b72d48c3ad29c·...·]/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:·f8b50287f3e106633ed79a84072d3ddd9d98672efd685d2433c61b5549ce051e·...·]/core/primitive.bool.html">bool</a><div·class="where">where80 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·972,·SHA:·6de765542031617a9c28ac98fe6df619e58e62d9c65ec5b1c185a7152b8944e5·...·]/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.78.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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·135,·SHA:·51ff5f5c7ebd8440623ea71b125c5a5837e809e308fe1a13fbe19cddb941dbd9·...·]/core/primitive.bool.html">bool</a>,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iter_is_partitioned</code>&nbsp;<a·href="https://github.com/rust-lang/rust/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:·6f406a351b93047f56fa70265a6bf28ec6874f75cd6cc5a39d51c7af462f2992·...·]/core/iter/traits/iterator/trait.Iterator.html#method.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.78.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:·2c74873f4e5ba70004a1c7edd1cc3f9e2d91271295dd1591e2d26848df4c02ba·...·]/core/iter/traits/iterator/trait.Iterator.html#method.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.78.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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(B,·Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.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.78.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:·eecdce021399d206eb3ef5af12ee7663b4eb0dca55b0f411c7fa66f605b6b2e2·...·]/core/iter/traits/iterator/trait.Iterator.html#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.78.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:·52912e82c4b0a760d06f77eb4ee3a59ba70dd76cb532954900c73ae94c652674·...·]/core/iter/traits/iterator/trait.Iterator.html#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.78.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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.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.78.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.78.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:·ffdacd6b524bc823efebbf23dc0f77317a07fe9c8b691f2ea18db7aa0c08b146·...·]/core/iter/traits/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.78.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:·1d6c4809cea8748e901d3f94777f450d430f3161f6ac05ed1c178d9327f966a3·...·]/core/iter/traits/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.78.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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(B,·Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::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:·dbe3a08fe63abd47570741e71208c31aaf51152feac5917db07665a1f56bb3e3·...·]/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.78.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:·b60215068a6d9721be05f81098c51167d7138c4042f140cad42f77c4df43f597·...·]/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.78.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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·352,·SHA:·e7c3c296abe2c0a183967153e4ae7fd50bafa2ae7088e3e78b3b48fee253adc6·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::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:·a9dce8bb557b5a11426bf2ffcbd5eea7c6c870833e3ee5bb072dcaaa11687b0c·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_reduce"·class="fn">try_reduce</a>&lt;F,·R&gt;(97 operation.·<a·href="https://doc.rust-lang.org/1.78.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:·7a18fdd041b1a001b4a8feb289ee127fd9240232239269eb35dc3b8f74783ec9·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_reduce"·class="fn">try_reduce</a>&lt;F,·R&gt;(
98 ····&amp;mut·self,98 ····&amp;mut·self,
99 ····f:·F99 ····f:·F
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.78.0/core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&gt;::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/ops/try_trait/trait.Try.html#associatedtype.Residual"·title="type[·...·truncated·by·diffoscope;·len:·754,·SHA:·6fb4dfdb6b4da68921c1e7f8b75d99cf293d58318d684a840254ce9576957bea·...·]/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.78.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:·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:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·140,·SHA:·c27972e6fa3464c9476eaa185e8657edb6bb294f148403f3d079285294a9f909·...·]/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·=·Self::<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.78.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.78.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.78.0/core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&gt;::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/ops/try_trait/trait.Try.html#associatedtype.Residual"·title="type[·...·truncated·by·diffoscope;·len:·412,·SHA:·22b8cbb007e5cce82b9d13a65bfa56aa8d83c32541fac25f4d9b3857b0540908·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;&gt;,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iterator_try_reduce</code>&nbsp;<a·href="https://github.com/rust-lang/rust/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:·65b80c848af6e465c8c5aef4ec8d3faaa399d30c8427c9507fda7b3bd1d3ea93·...·]/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.78.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:·bc0d658d56e348823de15386e1cd4ab49109f3a7a055a4573a19391b47071193·...·]/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.78.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:·95a840b532d3d621bde4032d63854eb0a481248e2b4bbb3ef058dbffb4dae4fa·...·]/core/primitive.bool.html">bool</a><div·class="where">where107 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·1018,·SHA:·e61cd6bdd36729cc38e57fcaea2ccb91a23a5acbda3c8986071f19bf1ecfc52a·...·]/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.78.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:·f828c62edd4fe85e217286f359b56c116e14ed18bb292ba1cc13d3ed7146909e·...·]/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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·1172,·SHA:·e64ab74d116d286191ad43d9d9e10411fc011c23724aa806e9a8f9b0be0757e3·...·]/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.78.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:·21d7086b3ce0092e3f7a6a41174339bbd8724e7d186158db4db3385a73d94e8e·...·]/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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·1051,·SHA:·ecc0b8fccd861464760f9ae047ff6ab98c91a1db010cb5fa59a8c2ab883db7c4·...·]/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.78.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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·130,·SHA:·130a13019dc175d02304b4f550157e2f13ac15c2f25a979c74161d10b146ab89·...·]/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:·ac4da3337aac1ec10038e246be9cb719eeb5af1acc709f5a6a25b91900c56f53·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_find"·class="fn">try_find</a>&lt;F,·R&gt;(114 the·first·non-none·result.·<a·href="https://doc.rust-lang.org/1.78.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:·8ced1b10e78750774c5c8ed995ed83dcd13983aa75d329acf8069da106ab9f4a·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_find"·class="fn">try_find</a>&lt;F,·R&gt;(
115 ····&amp;mut·self,115 ····&amp;mut·self,
116 ····f:·F116 ····f:·F
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.78.0/core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&gt;::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/ops/try_trait/trait.Try.html#associatedtype.Residual"·title="type[·...·truncated·by·diffoscope;·len:·626,·SHA:·95f9831257b68862cbcbf54f0ad2ff4e597a4c9f763112d1da8a0897dadcf872·...·]/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.78.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;·R,119 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·R,
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.78.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.78.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.78.0/core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&gt;::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/ops/try_trait/trait.Try.html#associatedtype.Residual"·title="type[·...·truncated·by·diffoscope;·len:·412,·SHA:·22b8cbb007e5cce82b9d13a65bfa56aa8d83c32541fac25f4d9b3857b0540908·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;&gt;,</div></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.78.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:·fa9d94b216f6e4ce6035b4762e3bf17cb86a0272db0a55a056f05c68bcaeb0da·...·]/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.78.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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·1190,·SHA:·882e9e9a037f916d0ed4aa6d749399e6e01ca81811eacfc54a484818cb5d5029·...·]/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.78.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.78.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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/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; 88947/305649 bytes (29.10%) of diff not shown.
65.5 KB
./usr/share/doc/rust-web-doc/html/alloc/str/struct.ParseBoolError.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="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.write(`<link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/SourceSerif4-Regular-46f98efaafac5295.ttf.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/FiraSans-Regular-018c141bf0843ffd.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/FiraSans-Medium-8f9a781e4970d388.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/SourceCodePro-Regular-562dcc5011b6de7d.ttf.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/SourceCodePro-Semibold-d899c5a5c4aeb14a.ttf.woff2">`)</script><link·rel="stylesheet"·href="../../static.files/normalize-76eba96aa4d2e634.css"><link·rel="stylesheet"·href="../../static.files/rustdoc-35f9e32502181f1e.css"><meta·name="rustdoc-vars"·data-root-path="../../"·data-static-root-path="../../static.files/"·data-current-crate="alloc"·data-themes=""·data-resource-suffix="1.78.0"·data-rustdoc-version="1.78.0"·data-channel="1.78.0"·data-search-js="search-42d8da7a6b9792c2.js"·data-settings-js="settings-4313503d2e1961c2.js"·><script·src="../../static.files/storage-4c98445ec4002617.js"></script><script·defer·src="sidebar-items1.78.0.js"></script><script·defer·src="../../static.files/main-12cf3b4f4f9dc36d.js"></script><noscript><link·rel="stylesheet"·href="../../static.files/noscript-04d5337699b92874.css"></noscript><link·rel="alternate·icon"·type="image/png"·href="../../static.files/favicon-16x16-8b506e7a72182f1c.png"><link·rel="alternate·icon"·type="image/png"·href="../../static.files/favicon-32x32-422f7d1d52889060.png"><link·rel="icon"·type="image/svg+xml"·href="../../static.files/favicon-2c020d218678b618.svg"></head><body·class="rustdoc·struct"><!--[if·lte·IE·11]><div·class="warning">This·old·browser·is·unsupported·and·will·most·likely·display·funky·things.</div><![endif]--><nav·class="mobile-topbar"><button·class="sidebar-menu-toggle"·title="show·sidebar"></button><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-151179464ae7ed46.svg"·alt=""></a></nav><nav·class="sidebar"><div·class="sidebar-crate"><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-151179464ae7ed46.svg"·alt="logo"></a><h2><a·href="../../alloc/index.html">alloc</a><span·class="version">1.78.0</span></h2></div><h2·class="location"><a·href="#">ParseBoolError</a></h2><div·class="sidebar-elems"><section><h3><a·href="#trait-implementations">Trait·Implementations</a></h3><ul·class="block·trait-implementation"><li><a·href="#impl-Clone-for-ParseBoolError">Clone</a></li><li><a·href="#impl-Debug-for-ParseBoolError">Debug</a></li><li><a·href="#impl-Display-for-ParseBoolError">Display</a></li><li><a·href="#impl-Eq-for-ParseBoolError">Eq</a></li><li><a·href="#impl-Error-for-ParseBoolError">Error</a></li><li><a·href="#impl-PartialEq-for-ParseBoolError">PartialEq</a></li><li><a·href="#impl-StructuralPartialEq-for-ParseBoolError">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">Freeze</a></li><li><a·href="#impl-RefUnwindSafe-for-ParseBoolError">RefUnwindSafe</a></li><li><a·href="#impl-Send-for-ParseBoolError">Send</a></li><li><a·href="#impl-Sync-for-ParseBoolError">Sync</a></li><li><a·href="#impl-Unpin-for-ParseBoolError">Unpin</a></li><li><a·href="#impl-UnwindSafe-for-ParseBoolError">UnwindSafe</a></li></ul><h3><a·href="#blanket-implementations">Blanket·Implementations</a></h3><ul·class="block·blanket-implementation"><li><a·href="#impl-Any-for-T">Any</a></li><li><a·href="#impl-Borrow%3CT%3E-for-T">Borrow&lt;T&gt;</a></li><li><a·href="#impl-BorrowMut%3CT%3E-for-T">BorrowMut&lt;T&gt;</a></li><li><a·href="#impl-From%3CT%3E-for-T">From&lt;T&gt;</a></li><li><a·href="#impl-Into%3CU%3E-for-T">Into&lt;U&gt;</a></li><li><a·href="#impl-ToOwned-for-T">ToOwned</a></li><li><a·href="#impl-ToString-for-T">ToString</a></li><li><a·href="#impl-TryFrom%3CU%3E-for-T">TryFrom&lt;U&gt;</a></li><li><a·href="#impl-TryInto%3CU%3E-for-T">TryInto&lt;U&gt;</a></li></ul></section><h2><a·href="index.html">In·alloc::str</a></h2></div></nav><div·class="sidebar-resizer"></div>1 <!DOCTYPE·html><html·lang="en"><head><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.write(`<link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/SourceSerif4-Regular-46f98efaafac5295.ttf.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/FiraSans-Regular-018c141bf0843ffd.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/FiraSans-Medium-8f9a781e4970d388.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/SourceCodePro-Regular-562dcc5011b6de7d.ttf.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/SourceCodePro-Semibold-d899c5a5c4aeb14a.ttf.woff2">`)</script><link·rel="stylesheet"·href="../../static.files/normalize-76eba96aa4d2e634.css"><link·rel="stylesheet"·href="../../static.files/rustdoc-35f9e32502181f1e.css"><meta·name="rustdoc-vars"·data-root-path="../../"·data-static-root-path="../../static.files/"·data-current-crate="alloc"·data-themes=""·data-resource-suffix="1.78.0"·data-rustdoc-version="1.78.0"·data-channel="1.78.0"·data-search-js="search-42d8da7a6b9792c2.js"·data-settings-js="settings-4313503d2e1961c2.js"·><script·src="../../static.files/storage-4c98445ec4002617.js"></script><script·defer·src="sidebar-items1.78.0.js"></script><script·defer·src="../../static.files/main-12cf3b4f4f9dc36d.js"></script><noscript><link·rel="stylesheet"·href="../../static.files/noscript-04d5337699b92874.css"></noscript><link·rel="alternate·icon"·type="image/png"·href="../../static.files/favicon-16x16-8b506e7a72182f1c.png"><link·rel="alternate·icon"·type="image/png"·href="../../static.files/favicon-32x32-422f7d1d52889060.png"><link·rel="icon"·type="image/svg+xml"·href="../../static.files/favicon-2c020d218678b618.svg"></head><body·class="rustdoc·struct"><!--[if·lte·IE·11]><div·class="warning">This·old·browser·is·unsupported·and·will·most·likely·display·funky·things.</div><![endif]--><nav·class="mobile-topbar"><button·class="sidebar-menu-toggle"·title="show·sidebar"></button><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-151179464ae7ed46.svg"·alt=""></a></nav><nav·class="sidebar"><div·class="sidebar-crate"><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-151179464ae7ed46.svg"·alt="logo"></a><h2><a·href="../../alloc/index.html">alloc</a><span·class="version">1.78.0</span></h2></div><h2·class="location"><a·href="#">ParseBoolError</a></h2><div·class="sidebar-elems"><section><h3><a·href="#trait-implementations">Trait·Implementations</a></h3><ul·class="block·trait-implementation"><li><a·href="#impl-Clone-for-ParseBoolError">Clone</a></li><li><a·href="#impl-Debug-for-ParseBoolError">Debug</a></li><li><a·href="#impl-Display-for-ParseBoolError">Display</a></li><li><a·href="#impl-Eq-for-ParseBoolError">Eq</a></li><li><a·href="#impl-Error-for-ParseBoolError">Error</a></li><li><a·href="#impl-PartialEq-for-ParseBoolError">PartialEq</a></li><li><a·href="#impl-StructuralPartialEq-for-ParseBoolError">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">Freeze</a></li><li><a·href="#impl-RefUnwindSafe-for-ParseBoolError">RefUnwindSafe</a></li><li><a·href="#impl-Send-for-ParseBoolError">Send</a></li><li><a·href="#impl-Sync-for-ParseBoolError">Sync</a></li><li><a·href="#impl-Unpin-for-ParseBoolError">Unpin</a></li><li><a·href="#impl-UnwindSafe-for-ParseBoolError">UnwindSafe</a></li></ul><h3><a·href="#blanket-implementations">Blanket·Implementations</a></h3><ul·class="block·blanket-implementation"><li><a·href="#impl-Any-for-T">Any</a></li><li><a·href="#impl-Borrow%3CT%3E-for-T">Borrow&lt;T&gt;</a></li><li><a·href="#impl-BorrowMut%3CT%3E-for-T">BorrowMut&lt;T&gt;</a></li><li><a·href="#impl-From%3CT%3E-for-T">From&lt;T&gt;</a></li><li><a·href="#impl-Into%3CU%3E-for-T">Into&lt;U&gt;</a></li><li><a·href="#impl-ToOwned-for-T">ToOwned</a></li><li><a·href="#impl-ToString-for-T">ToString</a></li><li><a·href="#impl-TryFrom%3CU%3E-for-T">TryFrom&lt;U&gt;</a></li><li><a·href="#impl-TryInto%3CU%3E-for-T">TryInto&lt;U&gt;</a></li></ul></section><h2><a·href="index.html">In·alloc::str</a></h2></div></nav><div·class="sidebar-resizer"></div>
2 ····<main><div·class="width-limiter"><nav·class="sub"><form·class="search-form"><span></span><div·id="sidebar-button"·tabindex="-1"><a·href="../../alloc/all.html"·title="show·sidebar"></a></div><input·class="search-input"·name="search"·aria-label="Run·search·in·the·documentation"·autocomplete="off"·spellcheck="false"·placeholder="Click·or·press·‘S’·to·search,·‘?’·for·more·options…"·type="search"><div·id="help-button"·tabindex="-1"><a·href="../../help.html"·title="help">?</a></div><div·id="settings-menu"·tabindex="-1"><a·href="../../settings.html"·title="settings"><img·width="22"·height="22"·alt="Change·settings"·src="../../static.files/wheel-7b819b6101059cd0.svg"></a></div></form></nav><section·id="main-content"·class="content"><div·class="main-heading"><h1>Struct·<a·href="../index.html">alloc</a>::<wbr><a·href="index.html">str</a>::<wbr><a·class="struct"·href="#">ParseBoolError</a><button·id="copy-path"·title="Copy·item·path·to·clipboard"><img·src="../../static.files/clipboard-7571035ce49a181d.svg"·width="19"·height="18"·alt="Copy·item·path"></button></h1><span·class="out-of-band"><span·class="since"·title="Stable·since·Rust·version·1.0.0">1.0.0</span>···<a·class="src"·href="../../src/core/str/error.rs.html#140">source</a>···<button·id="toggle-all-docs"·title="collapse·all·docs">[<span>&#x2212;</span>]</button></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 ····<main><div·class="width-limiter"><nav·class="sub"><form·class="search-form"><span></span><div·id="sidebar-button"·tabindex="-1"><a·href="../../alloc/all.html"·title="show·sidebar"></a></div><input·class="search-input"·name="search"·aria-label="Run·search·in·the·documentation"·autocomplete="off"·spellcheck="false"·placeholder="Click·or·press·‘S’·to·search,·‘?’·for·more·options…"·type="search"><div·id="help-button"·tabindex="-1"><a·href="../../help.html"·title="help">?</a></div><div·id="settings-menu"·tabindex="-1"><a·href="../../settings.html"·title="settings"><img·width="22"·height="22"·alt="Change·settings"·src="../../static.files/wheel-7b819b6101059cd0.svg"></a></div></form></nav><section·id="main-content"·class="content"><div·class="main-heading"><h1>Struct·<a·href="../index.html">alloc</a>::<wbr><a·href="index.html">str</a>::<wbr><a·class="struct"·href="#">ParseBoolError</a><button·id="copy-path"·title="Copy·item·path·to·clipboard"><img·src="../../static.files/clipboard-7571035ce49a181d.svg"·width="19"·height="18"·alt="Copy·item·path"></button></h1><span·class="out-of-band"><span·class="since"·title="Stable·since·Rust·version·1.0.0">1.0.0</span>···<a·class="src"·href="https://doc.rust-lang.org/1.78.0/src/core/str/error.rs.html#140">source</a>···<button·id="toggle-all-docs"·title="collapse·all·docs">[<span>&#x2212;</span>]</button></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>
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-Clone-for-ParseBoolError"·class="impl"><a·class="src·rightside"·href="../../src/core/str/error.rs.html#137">source</a><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·class="str[·...·truncated·by·diffoscope;·len:·9347,·SHA:·869a64140196ce1ab342a11eec3f5a0e22202a04a3e4b9fa1de0402a09671476·...·]/core/primitive.bool.html">bool</a></h4></section></summary><div·class='docblock'>This·method·tests·for·<code>self</code>·and·<code>other</code>·values·to·be·equal,·and·is·used3 </div></details><h2·id="trait-implementations"·class="section-header">Trait·Implementations<a·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"><a·class="src·rightside"·href="https://doc.rust-lang.org/1.78.0/src/core/str/error.rs.html#137">source</a><a·href="#impl-Clone-for-ParseBoolError"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/clone/trait.Clone.html"·title=[·...·truncated·by·diffoscope;·len:·10454,·SHA:·e3d8c44101d719ff35cc2b044c98b47ecaa11cddf72d2f7ea1eda52ad0655241·...·]/core/primitive.bool.html">bool</a></h4></section></summary><div·class='docblock'>This·method·tests·for·<code>self</code>·and·<code>other</code>·values·to·be·equal,·and·is·used
4 by·<code>==</code>.</div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.ne"·class="method·trait-impl"><a·class="src·rightside"·href="../../src/core/cmp.rs.html#263">source</a><a·href="#method.ne"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../../core/cmp/trait.PartialEq.html#method.ne"·class="fn">ne</a>(&amp;self,·other:·<a·class="primitive"·href="../../core/primitive.refere[·...·truncated·by·diffoscope;·len:·62,·SHA:·08c05ae5f855368e255c51945ed5572423ad7787a7d2cf5c61719fd2a76285df·...·]/core/primitive.bool.html">bool</a></h4></section></summary><div·class='docblock'>This·method·tests·for·<code>!=</code>.·The·default·implementation·is·almost·always4 by·<code>==</code>.</div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.ne"·class="method·trait-impl"><a·class="src·rightside"·href="https://doc.rust-lang.org/1.78.0/src/core/cmp.rs.html#263">source</a><a·href="#method.ne"·class="anchor">§</a><h4·class="code-header">fn·<a·href="https://doc.rust-lang.org/1.78.0/core/cmp/trait.PartialEq.html#method.ne"·class="fn">ne</a>(&amp;self,·other:·[·...·truncated·by·diffoscope;·len:·170,·SHA:·7c0c9680b4d89f8edf1ab3e11bac78a0c9f93eef84e615310dcfa7ec178d9955·...·]/core/primitive.bool.html">bool</a></h4></section></summary><div·class='docblock'>This·method·tests·for·<code>!=</code>.·The·default·implementation·is·almost·always
5 sufficient,·and·should·not·be·overridden·without·very·good·reason.</div></details></div></details><section·id="impl-Eq-for-ParseBoolError"·class="impl"><a·class="src·rightside"·href="../../src/core/str/error.rs.html#137">source</a><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="struc[·...·truncated·by·diffoscope;·len:·3677,·SHA:·63dd718e1bab6e5b5b75f74c1f1e457046111206348288ead984f3dec46b5a75·...·]/core/any/trait.Any.html"·title="trait·core::any::Any">Any</a>·for·T<div·class="where">where5 sufficient,·and·should·not·be·overridden·without·very·good·reason.</div></details></div></details><section·id="impl-Eq-for-ParseBoolError"·class="impl"><a·class="src·rightside"·href="https://doc.rust-lang.org/1.78.0/src/core/str/error.rs.html#137">source</a><a·href="#impl-Eq-for-ParseBoolError"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/cmp/trait.Eq.html"·title="trait·c[·...·truncated·by·diffoscope;·len:·4001,·SHA:·73eee92b7f638bb3cc842008b82fdd7a1d72980cd579a3caab80286ad9b11df7·...·]/core/any/trait.Any.html"·title="trait·core::any::Any">Any</a>·for·T<div·class="where">where
6 ····T:·'static·+·?<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.type_id"·class="method·trait-impl"><a·class="src·[·...·truncated·by·diffoscope;·len:·672,·SHA:·9db8bacb767d75cc3351ca7341c388130aa05ebef490d992be5374f16eedc378·...·]/src/core/borrow.rs.html#208">source</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.78.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">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:·039b8952ccb1ab7d8f15cd519cbc10f4afc149276d0f9cfd3a53117d606059df·...·]/src/core/borrow.rs.html#208">source</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="src·r[·...·truncated·by·diffoscope;·len:·629,·SHA:·b2ffbab17ff1ef71ba4c506a3aaa515da2082da6f02a53862ce1ca2b2b25f5b4·...·]/src/core/borrow.rs.html#216">source</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.78.0/core/marker/trait.Sized.html"·title="trait·core::marker::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:·952d76e7bcf7b521fffa418ce638abf69976de0942360e56f93e419ca3389394·...·]/src/core/borrow.rs.html#216">source</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="s[·...·truncated·by·diffoscope;·len:·1227,·SHA:·befefcb8cb29dc857e1f3050572f6f470317e3350e0851c4ed6e56cc38673a92·...·]/core/convert/trait.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.78.0/core/marker/trait.Sized.html"·title="trait·core::marker::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:·204bc28c8766993ff59d26bb790f1469ab686e6f172c57f35aa987a81507a7b1·...·]/core/convert/trait.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.78.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.78.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.78.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:·2cf76a8ca501b2a1fef209fed846779ab1bed3b75f52c7425335e3ce04e6b272·...·]/core/convert/trait.Into.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.78.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#83-95">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#83-95">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·href="#associ[·...·truncated·by·diffoscope;·len:·1220,·SHA:·3cbf0f64542b816603968ea3c1b51d1b1eb93d99770d50fed747c05540b0e6b0·...·]/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#2543-2557">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.78.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:·1274,·SHA:·0c080e1e1236f77ce91b20fef8bb17c6bc50a069d2e16d2b40ea7b4298dec09f·...·]/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#2543-2557">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:·bf3a3f8ffed9dcfc973405dddaf9f278663007cc35ca5daa38b602630201cbf0·...·]/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.78.0/core/marker/trait.Sized.html"·title="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:·531ea7c1ecd9197e925ea3063788b96ffe9ed8291f75ffba5fcab4c2298b41ca·...·]/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"·class="associatedtype·trait-impl"><a·hre[·...·truncated·by·diffoscope;·len:·1591,·SHA:·8537afacf1b3cf6b9fb7db778975d49d8a8e5988d420715e464ff4a79dd696c5·...·]/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.78.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"·class="associ[·...·truncated·by·diffoscope;·len:·1861,·SHA:·78398046ba16de2f66a8201a11d6a2dd405fceedeabfcaa37481e77092687e6f·...·]/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-1"·class="associatedtype·trait-i[·...·truncated·by·diffoscope;·len:·1231,·SHA:·7843e7b6cca73922417e4154886c0df66f016d274b48933c21bdb75b67479d5b·...·]/core/convert/trait.TryFrom.html#associatedtype.Error"·title="type·core::convert::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.78.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-1"·cl[·...·truncated·by·diffoscope;·len:·1474,·SHA:·ca90cccb6c86c654c95a1aaec456fbbe4b115f0d5a700e7d156e823346d70894·...·]/core/convert/trait.TryFrom.html#associatedtype.Error"·title="type·core::convert::TryFrom::Error">Error</a>&gt;</h4></section></summary><div·class='docblock'>Performs·the·conversion.</div></details></div></details></div></section></div></main></body></html>
301 KB
./usr/share/doc/rust-web-doc/html/alloc/str/struct.RMatchIndices.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="Created·with·the·method·`rmatch_indices`."><title>RMatchIndices·in·alloc::str·-·Rust</title><script>·if·(window.location.protocol·!==·"file:")·document.write(`<link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/SourceSerif4-Regular-46f98efaafac5295.ttf.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/FiraSans-Regular-018c141bf0843ffd.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/FiraSans-Medium-8f9a781e4970d388.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/SourceCodePro-Regular-562dcc5011b6de7d.ttf.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/SourceCodePro-Semibold-d899c5a5c4aeb14a.ttf.woff2">`)</script><link·rel="stylesheet"·href="../../static.files/normalize-76eba96aa4d2e634.css"><link·rel="stylesheet"·href="../../static.files/rustdoc-35f9e32502181f1e.css"><meta·name="rustdoc-vars"·data-root-path="../../"·data-static-root-path="../../static.files/"·data-current-crate="alloc"·data-themes=""·data-resource-suffix="1.78.0"·data-rustdoc-version="1.78.0"·data-channel="1.78.0"·data-search-js="search-42d8da7a6b9792c2.js"·data-settings-js="settings-4313503d2e1961c2.js"·><script·src="../../static.files/storage-4c98445ec4002617.js"></script><script·defer·src="sidebar-items1.78.0.js"></script><script·defer·src="../../static.files/main-12cf3b4f4f9dc36d.js"></script><noscript><link·rel="stylesheet"·href="../../static.files/noscript-04d5337699b92874.css"></noscript><link·rel="alternate·icon"·type="image/png"·href="../../static.files/favicon-16x16-8b506e7a72182f1c.png"><link·rel="alternate·icon"·type="image/png"·href="../../static.files/favicon-32x32-422f7d1d52889060.png"><link·rel="icon"·type="image/svg+xml"·href="../../static.files/favicon-2c020d218678b618.svg"></head><body·class="rustdoc·struct"><!--[if·lte·IE·11]><div·class="warning">This·old·browser·is·unsupported·and·will·most·likely·display·funky·things.</div><![endif]--><nav·class="mobile-topbar"><button·class="sidebar-menu-toggle"·title="show·sidebar"></button><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-151179464ae7ed46.svg"·alt=""></a></nav><nav·class="sidebar"><div·class="sidebar-crate"><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-151179464ae7ed46.svg"·alt="logo"></a><h2><a·href="../../alloc/index.html">alloc</a><span·class="version">1.78.0</span></h2></div><h2·class="location"><a·href="#">RMatchIndices</a></h2><div·class="sidebar-elems"><section><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">Clone</a></li><li><a·href="#impl-Debug-for-RMatchIndices%3C'a,+P%3E">Debug</a></li><li><a·href="#impl-DoubleEndedIterator-for-RMatchIndices%3C'a,+P%3E">DoubleEndedIterator</a></li><li><a·href="#impl-FusedIterator-for-RMatchIndices%3C'a,+P%3E">FusedIterator</a></li><li><a·href="#impl-Iterator-for-RMatchIndices%3C'a,+P%3E">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">Freeze</a></li><li><a·href="#impl-RefUnwindSafe-for-RMatchIndices%3C'a,+P%3E">RefUnwindSafe</a></li><li><a·href="#impl-Send-for-RMatchIndices%3C'a,+P%3E">Send</a></li><li><a·href="#impl-Sync-for-RMatchIndices%3C'a,+P%3E">Sync</a></li><li><a·href="#impl-Unpin-for-RMatchIndices%3C'a,+P%3E">Unpin</a></li><li><a·href="#impl-UnwindSafe-for-RMatchIndices%3C'a,+P%3E">UnwindSafe</a></li></ul><h3><a·href="#blanket-implementations">Blanket·Implementations</a></h3><ul·class="block·blanket-implementation"><li><a·href="#impl-Any-for-T">Any</a></li><li><a·href="#impl-Borrow%3CT%3E-for-T">Borrow&lt;T&gt;</a></li><li><a·href="#impl-BorrowMut%3CT%3E-for-T">BorrowMut&lt;T&gt;</a></li><li><a·href="#impl-From%3CT%3E-for-T">From&lt;T&gt;</a></li><li><a·href="#impl-Into%3CU%3E-for-T">Into&lt;U&gt;</a></li><li><a·href="#impl-IntoIterator-for-I">IntoIterator</a></li><li><a·href="#impl-ToOwned-for-T">ToOwned</a></li><li><a·href="#impl-TryFrom%3CU%3E-for-T">TryFrom&lt;U&gt;</a></li><li><a·href="#impl-TryInto%3CU%3E-for-T">TryInto&lt;U&gt;</a></li></ul></section><h2><a·href="index.html">In·alloc::str</a></h2></div></nav><div·class="sidebar-resizer"></div>1 <!DOCTYPE·html><html·lang="en"><head><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.write(`<link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/SourceSerif4-Regular-46f98efaafac5295.ttf.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/FiraSans-Regular-018c141bf0843ffd.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/FiraSans-Medium-8f9a781e4970d388.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/SourceCodePro-Regular-562dcc5011b6de7d.ttf.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/SourceCodePro-Semibold-d899c5a5c4aeb14a.ttf.woff2">`)</script><link·rel="stylesheet"·href="../../static.files/normalize-76eba96aa4d2e634.css"><link·rel="stylesheet"·href="../../static.files/rustdoc-35f9e32502181f1e.css"><meta·name="rustdoc-vars"·data-root-path="../../"·data-static-root-path="../../static.files/"·data-current-crate="alloc"·data-themes=""·data-resource-suffix="1.78.0"·data-rustdoc-version="1.78.0"·data-channel="1.78.0"·data-search-js="search-42d8da7a6b9792c2.js"·data-settings-js="settings-4313503d2e1961c2.js"·><script·src="../../static.files/storage-4c98445ec4002617.js"></script><script·defer·src="sidebar-items1.78.0.js"></script><script·defer·src="../../static.files/main-12cf3b4f4f9dc36d.js"></script><noscript><link·rel="stylesheet"·href="../../static.files/noscript-04d5337699b92874.css"></noscript><link·rel="alternate·icon"·type="image/png"·href="../../static.files/favicon-16x16-8b506e7a72182f1c.png"><link·rel="alternate·icon"·type="image/png"·href="../../static.files/favicon-32x32-422f7d1d52889060.png"><link·rel="icon"·type="image/svg+xml"·href="../../static.files/favicon-2c020d218678b618.svg"></head><body·class="rustdoc·struct"><!--[if·lte·IE·11]><div·class="warning">This·old·browser·is·unsupported·and·will·most·likely·display·funky·things.</div><![endif]--><nav·class="mobile-topbar"><button·class="sidebar-menu-toggle"·title="show·sidebar"></button><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-151179464ae7ed46.svg"·alt=""></a></nav><nav·class="sidebar"><div·class="sidebar-crate"><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-151179464ae7ed46.svg"·alt="logo"></a><h2><a·href="../../alloc/index.html">alloc</a><span·class="version">1.78.0</span></h2></div><h2·class="location"><a·href="#">RMatchIndices</a></h2><div·class="sidebar-elems"><section><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">Clone</a></li><li><a·href="#impl-Debug-for-RMatchIndices%3C'a,+P%3E">Debug</a></li><li><a·href="#impl-DoubleEndedIterator-for-RMatchIndices%3C'a,+P%3E">DoubleEndedIterator</a></li><li><a·href="#impl-FusedIterator-for-RMatchIndices%3C'a,+P%3E">FusedIterator</a></li><li><a·href="#impl-Iterator-for-RMatchIndices%3C'a,+P%3E">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">Freeze</a></li><li><a·href="#impl-RefUnwindSafe-for-RMatchIndices%3C'a,+P%3E">RefUnwindSafe</a></li><li><a·href="#impl-Send-for-RMatchIndices%3C'a,+P%3E">Send</a></li><li><a·href="#impl-Sync-for-RMatchIndices%3C'a,+P%3E">Sync</a></li><li><a·href="#impl-Unpin-for-RMatchIndices%3C'a,+P%3E">Unpin</a></li><li><a·href="#impl-UnwindSafe-for-RMatchIndices%3C'a,+P%3E">UnwindSafe</a></li></ul><h3><a·href="#blanket-implementations">Blanket·Implementations</a></h3><ul·class="block·blanket-implementation"><li><a·href="#impl-Any-for-T">Any</a></li><li><a·href="#impl-Borrow%3CT%3E-for-T">Borrow&lt;T&gt;</a></li><li><a·href="#impl-BorrowMut%3CT%3E-for-T">BorrowMut&lt;T&gt;</a></li><li><a·href="#impl-From%3CT%3E-for-T">From&lt;T&gt;</a></li><li><a·href="#impl-Into%3CU%3E-for-T">Into&lt;U&gt;</a></li><li><a·href="#impl-IntoIterator-for-I">IntoIterator</a></li><li><a·href="#impl-ToOwned-for-T">ToOwned</a></li><li><a·href="#impl-TryFrom%3CU%3E-for-T">TryFrom&lt;U&gt;</a></li><li><a·href="#impl-TryInto%3CU%3E-for-T">TryInto&lt;U&gt;</a></li></ul></section><h2><a·href="index.html">In·alloc::str</a></h2></div></nav><div·class="sidebar-resizer"></div>
2 ····<main><div·class="width-limiter"><nav·class="sub"><form·class="search-form"><span></span><div·id="sidebar-button"·tabindex="-1"><a·href="../../alloc/all.html"·title="show·sidebar"></a></div><input·class="search-input"·name="search"·aria-label="Run·search·in·the·documentation"·autocomplete="off"·spellcheck="false"·placeholder="Click·or·press·‘S’·to·search,·‘?’·for·more·options…"·type="search"><div·id="help-button"·tabindex="-1"><a·href="../../help.html"·title="help">?</a></div><div·id="settings-menu"·tabindex="-1"><a·href="../../settings.html"·title="settings"><img·width="22"·height="22"·alt="Change·settings"·src="../../static.files/wheel-7b819b6101059cd0.svg"></a></div></form></nav><section·id="main-content"·class="content"><div·class="main-heading"><h1>Struct·<a·href="../index.html">alloc</a>::<wbr><a·href="index.html">str</a>::<wbr><a·class="struct"·href="#">RMatchIndices</a><button·id="copy-path"·title="Copy·item·path·to·clipboard"><img·src="../../static.files/clipboard-7571035ce49a181d.svg"·width="19"·height="18"·alt="Copy·item·path"></button></h1><span·class="out-of-band"><span·class="since"·title="Stable·since·Rust·version·1.5.0">1.5.0</span>···<a·class="src"·href="../../src/core/str/iter.rs.html#1073-1089">source</a>···<button·id="toggle-all-docs"·title="collapse·all·docs">[<span>&#x2212;</span>]</button></span></div><pre·class="rust·item-decl"><code>pub·struct·RMatchIndices&lt;'a,·P&gt;(<span·class="comment">/*·private·fields·*/</span>)2 ····<main><div·class="width-limiter"><nav·class="sub"><form·class="search-form"><span></span><div·id="sidebar-button"·tabindex="-1"><a·href="../../alloc/all.html"·title="show·sidebar"></a></div><input·class="search-input"·name="search"·aria-label="Run·search·in·the·documentation"·autocomplete="off"·spellcheck="false"·placeholder="Click·or·press·‘S’·to·search,·‘?’·for·more·options…"·type="search"><div·id="help-button"·tabindex="-1"><a·href="../../help.html"·title="help">?</a></div><div·id="settings-menu"·tabindex="-1"><a·href="../../settings.html"·title="settings"><img·width="22"·height="22"·alt="Change·settings"·src="../../static.files/wheel-7b819b6101059cd0.svg"></a></div></form></nav><section·id="main-content"·class="content"><div·class="main-heading"><h1>Struct·<a·href="../index.html">alloc</a>::<wbr><a·href="index.html">str</a>::<wbr><a·class="struct"·href="#">RMatchIndices</a><button·id="copy-path"·title="Copy·item·path·to·clipboard"><img·src="../../static.files/clipboard-7571035ce49a181d.svg"·width="19"·height="18"·alt="Copy·item·path"></button></h1><span·class="out-of-band"><span·class="since"·title="Stable·since·Rust·version·1.5.0">1.5.0</span>···<a·class="src"·href="https://doc.rust-lang.org/1.78.0/src/core/str/iter.rs.html#1073-1089">source</a>···<button·id="toggle-all-docs"·title="collapse·all·docs">[<span>&#x2212;</span>]</button></span></div><pre·class="rust·item-decl"><code>pub·struct·RMatchIndices&lt;'a,·P&gt;(<span·class="comment">/*·private·fields·*/</span>)
3 <span·class="where">where3 <span·class="where">where
4 ····P:·<a·class="trait"·href="pattern/trait.Pattern.html"·title="trait·alloc::str::pattern::Pattern">Pattern</a>&lt;'a&gt;</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>4 ····P:·<a·class="trait"·href="pattern/trait.Pattern.html"·title="trait·alloc::str::pattern::Pattern">Pattern</a>&lt;'a&gt;</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.78.0/core/primitive.str.html#method.rmatch_indices"·title="method·str::rmatch_indices"><code>rmatch_indices</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-RMatchIndices%3C'a,+P%3E"·class="impl"><a·class="src·rightside"·href="../../src/core/str/iter.rs.html#1073-1089">source</a><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">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-Clone-for-RMatchIndices%3C'a,+P%3E"·class="impl"><a·class="src·rightside"·href="https://doc.rust-lang.org/1.78.0/src/core/str/iter.rs.html#1073-1089">source</a><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.78.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
6 ····P:·<a·class="trait"·href="pattern/trait.Pattern.html"·title="trait·alloc::str::pattern::Pattern">Pattern</a>&lt;'a&gt;,6 ····P:·<a·class="trait"·href="pattern/trait.Pattern.html"·title="trait·alloc::str::pattern::Pattern">Pattern</a>&lt;'a&gt;,
7 ····&lt;P·as·<a·class="trait"·href="pattern/trait.Pattern.html"·title="trait·alloc::str::pattern::Pattern">Pattern</a>&lt;'a&gt;&gt;::<a·class="associatedtype"·href="pattern/trait.Pattern.html#associatedtype.Searcher"·title="type·alloc::str::pattern::Pattern::Searcher">Searcher</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"><details·class="toggle·method-toggle"·open><summary><section·id="method.clone"·class="method·trait-impl"><a·class="src·righ[·...·truncated·by·diffoscope;·len:·1515,·SHA:·77283fe7482005a3af62823fcdf2bba961aca63a7328ad6d80b9aeb76b91b29e·...·]/src/core/str/iter.rs.html#1073-1089">source</a><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">where7 ····&lt;P·as·<a·class="trait"·href="pattern/trait.Pattern.html"·title="trait·alloc::str::pattern::Pattern">Pattern</a>&lt;'a&gt;&gt;::<a·class="associatedtype"·href="pattern/trait.Pattern.html#associatedtype.Searcher"·title="type·alloc::str::pattern::Pattern::Searcher">Searcher</a>:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.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:·1758,·SHA:·fa35d44097bf99bff43defab2a159a0e24be7e89d5b416c3292ce56c87d60be1·...·]/src/core/str/iter.rs.html#1073-1089">source</a><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
8 ····P:·<a·class="trait"·href="pattern/trait.Pattern.html"·title="trait·alloc::str::pattern::Pattern">Pattern</a>&lt;'a&gt;,8 ····P:·<a·class="trait"·href="pattern/trait.Pattern.html"·title="trait·alloc::str::pattern::Pattern">Pattern</a>&lt;'a&gt;,
9 ····&lt;P·as·<a·class="trait"·href="pattern/trait.Pattern.html"·title="trait·alloc::str::pattern::Pattern">Pattern</a>&lt;'a&gt;&gt;::<a·class="associatedtype"·href="pattern/trait.Pattern.html#associatedtype.Searcher"·title="type·alloc::str::pattern::Pattern::Searcher">Searcher</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/str/iter.rs.html#1073-1089">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:·908,·SHA:·70ec4d9bfb45819db1445d3c0f648f6964366afc4b9ac2d59149c5a85a8ff697·...·]/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">where9 ····&lt;P·as·<a·class="trait"·href="pattern/trait.Pattern.html"·title="trait·alloc::str::pattern::Pattern">Pattern</a>&lt;'a&gt;&gt;::<a·class="associatedtype"·href="pattern/trait.Pattern.html#associatedtype.Searcher"·title="type·alloc::str::pattern::Pattern::Searcher">Searcher</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.78.0/src/core/str/iter.rs.html#1073-1089">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:·1043,·SHA:·995efc660c77b6f4ac110f1da6af01951d97bcd66bc9dbd840072af833719321·...·]/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
10 ····P:·<a·class="trait"·href="pattern/trait.Pattern.html"·title="trait·alloc::str::pattern::Pattern">Pattern</a>&lt;'a&gt;,10 ····P:·<a·class="trait"·href="pattern/trait.Pattern.html"·title="trait·alloc::str::pattern::Pattern">Pattern</a>&lt;'a&gt;,
11 ····&lt;P·as·<a·class="trait"·href="pattern/trait.Pattern.html"·title="trait·alloc::str::pattern::Pattern">Pattern</a>&lt;'a&gt;&gt;::<a·class="associatedtype"·href="pattern/trait.Pattern.html#associatedtype.Searcher"·title="type·alloc::str::pattern::Pattern::Searcher">Searcher</a>:·<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#1073-1089">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:·fe7e9bae2f15951043a387f53b2d262d22333ed6e34b3cb76b5dcade1268b5b6·...·]/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 ····&lt;P·as·<a·class="trait"·href="pattern/trait.Pattern.html"·title="trait·alloc::str::pattern::Pattern">Pattern</a>&lt;'a&gt;&gt;::<a·class="associatedtype"·href="pattern/trait.Pattern.html#associatedtype.Searcher"·title="type·alloc::str::pattern::Pattern::Searcher">Searcher</a>:·<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.78.0/src/core/str/iter.rs.html#1073-1089">source</a><a·href="#method.next_back"·class="anchor">§</a><h4·class="code-header">fn·<a·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/double_ended/trait.DoubleEndedIterator.htm[·...·truncated·by·diffoscope;·len:·3981,·SHA:·ff3dbf308388b4175fb01a5afa3c0bbed07f0b38bff17f8fe60ffbe73b4eb2fd·...·]/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.78.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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(B,·Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.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.78.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.7[·...·truncated·by·diffoscope;·len:·3,·SHA:·7b1bd53949b752d143d871408483b5382371b5bc48d195d0c040ec93cfa2748b·...·]/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:·74b709f2c818a4eda5d85ea863eb2d8af72c87564dbab2746e67feafb0cbb9a3·...·]/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.78.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:·d66ed7e195a53e9945339ef1976aed455dcf80228d8e5b7b0c69a64c3983fea1·...·]/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.78.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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(B,·Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/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:·f8bdf1e28866c7668477ab391452c7cfa7fd52cc69b633e782a157931421b39b·...·]/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.78.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:·c264047794019a6dcf05728ba6a6ee1f8f07c7209958b3366ba94546b527ecdc·...·]/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.78.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:·720,·SHA:·20c06f30252c31461283b4028b6801d6a6b34abd95769869ed7212790ea6f1b3·...·]/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">where20 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·882,·SHA:·139a0d022087de05bd2c0cd3589429d6c63b84a94b68b779e999d8a6083b6e1b·...·]/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
21 ····P:·<a·class="trait"·href="pattern/trait.Pattern.html"·title="trait·alloc::str::pattern::Pattern">Pattern</a>&lt;'a&gt;,21 ····P:·<a·class="trait"·href="pattern/trait.Pattern.html"·title="trait·alloc::str::pattern::Pattern">Pattern</a>&lt;'a&gt;,
22 ····&lt;P·as·<a·class="trait"·href="pattern/trait.Pattern.html"·title="trait·alloc::str::pattern::Pattern">Pattern</a>&lt;'a&gt;&gt;::<a·class="associatedtype"·href="pattern/trait.Pattern.html#associatedtype.Searcher"·title="type·alloc::str::pattern::Pattern::Searcher">Searcher</a>:·<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·href="#associatedtype.Item"·class="anchor">§</a><h4·class="code-header">type·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·class="associatedtype">Item</a>·=·(<a·class="primitive"·href="../../core/primitive.usize.html">usize</a>,·&amp;'a·<a·class="primitive"·href="../../core/primitive.str.html">str</a>)</h[·...·truncated·by·diffoscope;·len:·1368,·SHA:·13d5c0262f7288bcfc6a88bad3b48a1462a9dadb074b518aabdbd00ce61cb28d·...·]/core/primitive.usize.html">usize</a>&gt;(22 ····&lt;P·as·<a·class="trait"·href="pattern/trait.Pattern.html"·title="trait·alloc::str::pattern::Pattern">Pattern</a>&lt;'a&gt;&gt;::<a·class="associatedtype"·href="pattern/trait.Pattern.html#associatedtype.Searcher"·title="type·alloc::str::pattern::Pattern::Searcher">Searcher</a>:·<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·href="#associatedtype.Item"·class="anchor">§</a><h4·class="code-header">type·<a·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·class="associatedtype">Item</a>·=·(<a·class="primitive"·href="https://doc.rust-lang.org/1.78.0/core/primitive.usize.html">usize</a>,·&amp;'a·<a·class="primi[·...·truncated·by·diffoscope;·len:·1692,·SHA:·e25ca0313ff8a3a8fb918a98191c4da653c1e56bf7fcabb17bea98547868b50c·...·]/core/primitive.usize.html">usize</a>&gt;(
23 ····&amp;mut·self23 ····&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.78.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.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title=[·...·truncated·by·diffoscope;·len:·381,·SHA:·88c48923c9b7ea5cc47c1087c60e09656e81d4671c58071ba2bef826335388bc·...·]/core/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:·1785,·SHA:·19053018de1acf5c85a547b4f740a12b61b1dafeb5940dd6e6ded8d48e943731·...·]/core/primitive.usize.html">usize</a><div·class="where">where25 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></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:·402867e9e3549fef747dcb22b92bda79093f02d1378ea733f633e3a91e074bca·...·]/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:·5b5aaec46c04cf77d2fa06e88cd6f0a2bd8d201412bc325302bd2f8f21b39207·...·]/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.78.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:·84ae0beb16240102bae2355bb8c543b17f3f107e3c06b320839aa401eebb1945·...·]/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:·6b808f54a13578d2e276864bb3eb79ae7b452b8959e79f7ea7ab1180574b77fc·...·]/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.78.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.78.0/cor[·...·truncated·by·diffoscope;·len:·3504,·SHA:·6d21b6d637e0b2e9953a37a26fd19e00da089147d4acaf696c94d448de4ce419·...·]/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.78.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:·5667b9b6c9778ff3b9d23ed0a110e7ab9d3fccc786fdcaca8c17edf996236439·...·]/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.78.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:·e83c903581753673e083ce8dd809879a2fc81ab3050eb6db267d7fa26b15e035·...·]/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.78.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:·1c6bb9803ee8832ebd4c28a08a952178165595b6870cf35d3c89454b9da828b2·...·]/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.78.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.78.0/core/iter/traits/it[·...·truncated·by·diffoscope;·len:·1329,·SHA:·d9299c8edc606ed82f24d61ce441bec451141d684c2a9a75074f5b19c57f196c·...·]/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.78.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:·c1b5e692e89c9c809075ee8ee72fb15a9ec46c075b08450e1f707d672a224750·...·]/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.78.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:·98627729f77dcf1c9d258f343354ba600b7134c6b3929080f231e8de7155b70b·...·]/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.78.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.78.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.78.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:·d6282409add0999f2130eb6bbe6d0473ce96bf2544799e8bc22156f3c2d2e0dd·...·]/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.78.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:·7301b6beba7b6885849be90a625df68ef739a5374af456c51fe2e81d91a25363·...·]/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.78.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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::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:·fb4c9589a16c7b6d697c109d1193d2f1e763e5dd967101c2fd92b32416972229·...·]/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.78.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:·98f6effefa44d759c249143d83623f0055d937382bfc398b7e1f5e92cd413657·...·]/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.78.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:·7abbad666ec88a1053b8aca2a481d629a3ef3596eddb570c381205fa2d859a52·...·]/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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·916,·SHA:·30d0b2a76513c5a880e9aee43e92b18805845cfcfe5783f62dc090167a439e63·...·]/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.78.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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·140,·SHA:·752f473b57e7444ebfddf5ea7fd40a332e83ec55524a6c31b5ee0f82a5dea819·...·]/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:·7da07154834a15b8ae55b4fd41479da070ccbd27e071909f81698570c306a081·...·]/core/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.78.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:·76aa2ad154f88085ee3f8a22721a7e6812680bac785d19059532407f50da1801·...·]/core/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.78.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:·c89169e5bf1c4724c7b411e568b6dad6475896f2606f557b3d708359ef71f5cc·...·]/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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·1052,·SHA:·110b47c7083083d565fcfc89337fddc8e5c87e81b2f720f3f7b0ded55e8500fb·...·]/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.78.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:·53634008856676c70c32b501f7ec498c1f86d123cc9b5b898256a69895ff31fc·...·]/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.78.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:·8464264e074dde5d84f0414ab3b5b2d8da83f3c9e3ca04c45458241580a8c80d·...·]/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.78.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.78.0/core/iter/adapte[·...·truncated·by·diffoscope;·len:·175,·SHA:·16fe7225bf05b478e2828b347c3d23ded9a22f89d8887a2c65d9f7b3faf1b0e7·...·]/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:·77dd41e041d66c618d306e900a9159cf1b00478b8f37e5692be62119a1d4fcda·...·]/core/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.78.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:·00ccbb673c11ed48d8c6aa2a3f8984fb298202e7bccfa42f1ac21290fcc0fb06·...·]/core/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.78.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:·c18326af66652e52fa627bfd0312af7fa2ad0ddc162b12a46e61047a031b0264·...·]/core/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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·1234,·SHA:·3b805567411cdcebed740f9e8d400dbe7fb487504f40e284544a140155090fdf·...·]/core/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.78.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:·39eeddf219b211245393e51a591d5064c740fa9be49d88883d8a6474679741ad·...·]/core/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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·1058,·SHA:·b390dbdda8d7e93604b5ecd906a93efd03fe19bdaf41cf12893fd361bf974307·...·]/core/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.78.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:·9369fa85b74ff841f7401949cadba6dfbbbeead2a99568f20dcfd5aab20d61ab·...·]/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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·1163,·SHA:·5772149166d344bf8fa5ebbd9db8693a8f2e5f031c50338e8f1523ef72f814d6·...·]/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:·a25e81a74cc82c1837477e2b0cea682fff9f43550640901b8010ac501ca69e3d·...·]/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.78.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:·6216516fe581c401abda3c95818192e8f030e2008c9bbdbaafebba16f33ea9bd·...·]/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.78.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:·de8f1023275132502c1569b0ef9a557dc98eaf60aae97cdb916e52f9f55100aa·...·]/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.78.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:·485843399c56e24bdf020ff0610d0ce1f62fbac5530d9880a1a7417105e3d70f·...·]/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.78.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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(<a·class="primitive"·href="https://doc.rust-lang.org/1.78.0/core/primitive.reference.html">&amp;mut·St</a>,·Self::<a·class="associatedty[·...·truncated·by·diffoscope;·len:·449,·SHA:·f12c268a8a8111b9e7126ad78bf5523a63733caa63d187c4fe792309ea41acdf·...·]/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:·8b31595e3cee3022819032aac82e3df712188a2a6dcc20da6939262e5e528591·...·]/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.78.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.78.0/core/iter/trai[·...·truncated·by·diffoscope;·len:·690,·SHA:·371190e5c1bf9b7dde6e84447965a69946212b977b9eb6d89048fbe34c5dda1c·...·]/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.78.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.78.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:·9b6a337a3ad68c2a987b52450c153f87a04a8ed9e83603d26077fe6e70d61edf·...·]/core/iter/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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·976,·SHA:·2a9182f6fe88e0b8a9b1ae1f46cace940cc0b8736033c354c0f0ccbf1c196e7a·...·]/core/iter/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.78.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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;[Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtyp[·...·truncated·by·diffoscope;·len:·135,·SHA:·0b06a6094d42ccbc8bce5b01c4383961fe7f1967f05e4c9f1ff33e71e425fb26·...·]/core/primitive.array.html">N</a>])·-&gt;·R,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iter_map_windows</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/87155">#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.78.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:·238f6b49b3e28d725c57040edaa60bfbb34f140155e6af1d30eab52da1c7274f·...·]/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.78.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:·0d33056cee8a4f9b70b573c0adecc2f3599a2f8d9fa9f2c2044e9118ab134f73·...·]/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:·cfd3edf89fe5aca24b994f83b0d7da765620394e35140e694d98233d4d92481b·...·]/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.78.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.78.0/core/op[·...·truncated·by·diffoscope;·len:·841,·SHA:·9cba1b175fb3726d7f1f01da9be7c1a56568a68e4ce7915a468b730902daf8d3·...·]/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.78.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:·772,·SHA:·31d2052382378512fa905c6d5297d384eac7b7f126141ce561719c0e27cc9d39·...·]/core/primitive.reference.html">&amp;mut·Self</a><div·class="where">where73 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·934,·SHA:·ea20d2e0fe9388580ea08100baa9120b5e9b6cb48f43fc846f15db8b9649e7f6·...·]/core/primitive.reference.html">&amp;mut·Self</a><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:·98760b16b1ed91f9558e6e2637724a4608316181d5f6f4d236e896a83eca9af9·...·]/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.78.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.78.0/core/it[·...·truncated·by·diffoscope;·len:·523,·SHA:·97064c705f6f4bdf74469c54fabcf580d21893127d1b4cd9a9c1018a717ef153·...·]/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.78.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.78.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:·e5d524e874326d0b9b733f5ee809c6595cde869afab0cc3d4ba8454093f420da·...·]/core/primitive.reference.html">&amp;mut·E</a><div·class="where">where76 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.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.78.0/core/iter/tr[·...·truncated·by·diffoscope;·len:·728,·SHA:·01937c2dc314c259495665570ae249c94b4a5b0719718f5f1188e6fc64ecf487·...·]/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.78.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.78.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:·b0297783e056393a542c4058b42c18523a86c961c1b6ce3bc94342c1a2c10c58·...·]/core/primitive.tuple.html">(B,·B)</a><div·class="where">where78 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></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:·00bd47017b1bdd1bbe2c3fc932d955a8aa2f7f5eff8c00e3001ae28a982a5883·...·]/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.78.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.78.0/core/default/trait.Default.html"·title="trait·core::default::Default">Default</a>·+·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/collect/trait.Extend.html"·title="trait·core::iter::traits::collec[·...·truncated·by·diffoscope;·len:·95,·SHA:·8b3be1d0042cae0550f865faf5849221240bdf04eb1b2107605b72d48c3ad29c·...·]/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:·783,·SHA:·f8b50287f3e106633ed79a84072d3ddd9d98672efd685d2433c61b5549ce051e·...·]/core/primitive.bool.html">bool</a><div·class="where">where81 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·972,·SHA:·6de765542031617a9c28ac98fe6df619e58e62d9c65ec5b1c185a7152b8944e5·...·]/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.78.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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·135,·SHA:·51ff5f5c7ebd8440623ea71b125c5a5837e809e308fe1a13fbe19cddb941dbd9·...·]/core/primitive.bool.html">bool</a>,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iter_is_partitioned</code>&nbsp;<a·href="https://github.com/rust-lang/rust/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:·6f406a351b93047f56fa70265a6bf28ec6874f75cd6cc5a39d51c7af462f2992·...·]/core/iter/traits/iterator/trait.Iterator.html#method.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.78.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:·2c74873f4e5ba70004a1c7edd1cc3f9e2d91271295dd1591e2d26848df4c02ba·...·]/core/iter/traits/iterator/trait.Iterator.html#method.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.78.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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(B,·Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.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.78.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:·eecdce021399d206eb3ef5af12ee7663b4eb0dca55b0f411c7fa66f605b6b2e2·...·]/core/iter/traits/iterator/trait.Iterator.html#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.78.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:·52912e82c4b0a760d06f77eb4ee3a59ba70dd76cb532954900c73ae94c652674·...·]/core/iter/traits/iterator/trait.Iterator.html#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.78.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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.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.78.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.78.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:·ffdacd6b524bc823efebbf23dc0f77317a07fe9c8b691f2ea18db7aa0c08b146·...·]/core/iter/traits/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.78.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:·1d6c4809cea8748e901d3f94777f450d430f3161f6ac05ed1c178d9327f966a3·...·]/core/iter/traits/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.78.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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(B,·Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::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:·dbe3a08fe63abd47570741e71208c31aaf51152feac5917db07665a1f56bb3e3·...·]/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.78.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:·b60215068a6d9721be05f81098c51167d7138c4042f140cad42f77c4df43f597·...·]/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.78.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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·352,·SHA:·e7c3c296abe2c0a183967153e4ae7fd50bafa2ae7088e3e78b3b48fee253adc6·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::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:·a9dce8bb557b5a11426bf2ffcbd5eea7c6c870833e3ee5bb072dcaaa11687b0c·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_reduce"·class="fn">try_reduce</a>&lt;F,·R&gt;(98 operation.·<a·href="https://doc.rust-lang.org/1.78.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:·7a18fdd041b1a001b4a8feb289ee127fd9240232239269eb35dc3b8f74783ec9·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_reduce"·class="fn">try_reduce</a>&lt;F,·R&gt;(
99 ····&amp;mut·self,99 ····&amp;mut·self,
100 ····f:·F100 ····f:·F
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.78.0/core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&gt;::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/ops/try_trait/trait.Try.html#associatedtype.Residual"·title="type[·...·truncated·by·diffoscope;·len:·754,·SHA:·6fb4dfdb6b4da68921c1e7f8b75d99cf293d58318d684a840254ce9576957bea·...·]/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.78.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:·59,·SHA:·3d53eece7c48858eda31192ab2620ae144896b35400c945bbf3eb5dc06bf8d12·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·R,103 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·140,·SHA:·c27972e6fa3464c9476eaa185e8657edb6bb294f148403f3d079285294a9f909·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·R,
104 ····R:·<a·class="trait"·href="../../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.78.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.78.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.78.0/core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&gt;::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/ops/try_trait/trait.Try.html#associatedtype.Residual"·title="type[·...·truncated·by·diffoscope;·len:·412,·SHA:·22b8cbb007e5cce82b9d13a65bfa56aa8d83c32541fac25f4d9b3857b0540908·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;&gt;,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iterator_try_reduce</code>&nbsp;<a·href="https://github.com/rust-lang/rust/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:·65b80c848af6e465c8c5aef4ec8d3faaa399d30c8427c9507fda7b3bd1d3ea93·...·]/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.78.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:·bc0d658d56e348823de15386e1cd4ab49109f3a7a055a4573a19391b47071193·...·]/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.78.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:·95a840b532d3d621bde4032d63854eb0a481248e2b4bbb3ef058dbffb4dae4fa·...·]/core/primitive.bool.html">bool</a><div·class="where">where108 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·1018,·SHA:·e61cd6bdd36729cc38e57fcaea2ccb91a23a5acbda3c8986071f19bf1ecfc52a·...·]/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.78.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:·f828c62edd4fe85e217286f359b56c116e14ed18bb292ba1cc13d3ed7146909e·...·]/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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·1172,·SHA:·e64ab74d116d286191ad43d9d9e10411fc011c23724aa806e9a8f9b0be0757e3·...·]/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.78.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:·21d7086b3ce0092e3f7a6a41174339bbd8724e7d186158db4db3385a73d94e8e·...·]/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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·1051,·SHA:·ecc0b8fccd861464760f9ae047ff6ab98c91a1db010cb5fa59a8c2ab883db7c4·...·]/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.78.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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·130,·SHA:·130a13019dc175d02304b4f550157e2f13ac15c2f25a979c74161d10b146ab89·...·]/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:·ac4da3337aac1ec10038e246be9cb719eeb5af1acc709f5a6a25b91900c56f53·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_find"·class="fn">try_find</a>&lt;F,·R&gt;(115 the·first·non-none·result.·<a·href="https://doc.rust-lang.org/1.78.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:·8ced1b10e78750774c5c8ed995ed83dcd13983aa75d329acf8069da106ab9f4a·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_find"·class="fn">try_find</a>&lt;F,·R&gt;(
116 ····&amp;mut·self,116 ····&amp;mut·self,
117 ····f:·F117 ····f:·F
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.78.0/core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&gt;::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/ops/try_trait/trait.Try.html#associatedtype.Residual"·title="type[·...·truncated·by·diffoscope;·len:·626,·SHA:·95f9831257b68862cbcbf54f0ad2ff4e597a4c9f763112d1da8a0897dadcf872·...·]/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.78.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;·R,120 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·R,
121 ····R:·<a·class="trait"·href="../../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.78.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.78.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.78.0/core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&gt;::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/ops/try_trait/trait.Try.html#associatedtype.Residual"·title="type[·...·truncated·by·diffoscope;·len:·412,·SHA:·22b8cbb007e5cce82b9d13a65bfa56aa8d83c32541fac25f4d9b3857b0540908·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;&gt;,</div></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.78.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:·fa9d94b216f6e4ce6035b4762e3bf17cb86a0272db0a55a056f05c68bcaeb0da·...·]/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.78.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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·1190,·SHA:·882e9e9a037f916d0ed4aa6d749399e6e01ca81811eacfc54a484818cb5d5029·...·]/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.78.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.78.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
Max diff block lines reached; 90095/308290 bytes (29.22%) of diff not shown.
301 KB
./usr/share/doc/rust-web-doc/html/alloc/str/struct.RMatches.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="Created·with·the·method·`rmatches`."><title>RMatches·in·alloc::str·-·Rust</title><script>·if·(window.location.protocol·!==·"file:")·document.write(`<link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/SourceSerif4-Regular-46f98efaafac5295.ttf.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/FiraSans-Regular-018c141bf0843ffd.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/FiraSans-Medium-8f9a781e4970d388.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/SourceCodePro-Regular-562dcc5011b6de7d.ttf.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/SourceCodePro-Semibold-d899c5a5c4aeb14a.ttf.woff2">`)</script><link·rel="stylesheet"·href="../../static.files/normalize-76eba96aa4d2e634.css"><link·rel="stylesheet"·href="../../static.files/rustdoc-35f9e32502181f1e.css"><meta·name="rustdoc-vars"·data-root-path="../../"·data-static-root-path="../../static.files/"·data-current-crate="alloc"·data-themes=""·data-resource-suffix="1.78.0"·data-rustdoc-version="1.78.0"·data-channel="1.78.0"·data-search-js="search-42d8da7a6b9792c2.js"·data-settings-js="settings-4313503d2e1961c2.js"·><script·src="../../static.files/storage-4c98445ec4002617.js"></script><script·defer·src="sidebar-items1.78.0.js"></script><script·defer·src="../../static.files/main-12cf3b4f4f9dc36d.js"></script><noscript><link·rel="stylesheet"·href="../../static.files/noscript-04d5337699b92874.css"></noscript><link·rel="alternate·icon"·type="image/png"·href="../../static.files/favicon-16x16-8b506e7a72182f1c.png"><link·rel="alternate·icon"·type="image/png"·href="../../static.files/favicon-32x32-422f7d1d52889060.png"><link·rel="icon"·type="image/svg+xml"·href="../../static.files/favicon-2c020d218678b618.svg"></head><body·class="rustdoc·struct"><!--[if·lte·IE·11]><div·class="warning">This·old·browser·is·unsupported·and·will·most·likely·display·funky·things.</div><![endif]--><nav·class="mobile-topbar"><button·class="sidebar-menu-toggle"·title="show·sidebar"></button><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-151179464ae7ed46.svg"·alt=""></a></nav><nav·class="sidebar"><div·class="sidebar-crate"><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-151179464ae7ed46.svg"·alt="logo"></a><h2><a·href="../../alloc/index.html">alloc</a><span·class="version">1.78.0</span></h2></div><h2·class="location"><a·href="#">RMatches</a></h2><div·class="sidebar-elems"><section><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">Clone</a></li><li><a·href="#impl-Debug-for-RMatches%3C'a,+P%3E">Debug</a></li><li><a·href="#impl-DoubleEndedIterator-for-RMatches%3C'a,+P%3E">DoubleEndedIterator</a></li><li><a·href="#impl-FusedIterator-for-RMatches%3C'a,+P%3E">FusedIterator</a></li><li><a·href="#impl-Iterator-for-RMatches%3C'a,+P%3E">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">Freeze</a></li><li><a·href="#impl-RefUnwindSafe-for-RMatches%3C'a,+P%3E">RefUnwindSafe</a></li><li><a·href="#impl-Send-for-RMatches%3C'a,+P%3E">Send</a></li><li><a·href="#impl-Sync-for-RMatches%3C'a,+P%3E">Sync</a></li><li><a·href="#impl-Unpin-for-RMatches%3C'a,+P%3E">Unpin</a></li><li><a·href="#impl-UnwindSafe-for-RMatches%3C'a,+P%3E">UnwindSafe</a></li></ul><h3><a·href="#blanket-implementations">Blanket·Implementations</a></h3><ul·class="block·blanket-implementation"><li><a·href="#impl-Any-for-T">Any</a></li><li><a·href="#impl-Borrow%3CT%3E-for-T">Borrow&lt;T&gt;</a></li><li><a·href="#impl-BorrowMut%3CT%3E-for-T">BorrowMut&lt;T&gt;</a></li><li><a·href="#impl-From%3CT%3E-for-T">From&lt;T&gt;</a></li><li><a·href="#impl-Into%3CU%3E-for-T">Into&lt;U&gt;</a></li><li><a·href="#impl-IntoIterator-for-I">IntoIterator</a></li><li><a·href="#impl-ToOwned-for-T">ToOwned</a></li><li><a·href="#impl-TryFrom%3CU%3E-for-T">TryFrom&lt;U&gt;</a></li><li><a·href="#impl-TryInto%3CU%3E-for-T">TryInto&lt;U&gt;</a></li></ul></section><h2><a·href="index.html">In·alloc::str</a></h2></div></nav><div·class="sidebar-resizer"></div>1 <!DOCTYPE·html><html·lang="en"><head><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.write(`<link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/SourceSerif4-Regular-46f98efaafac5295.ttf.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/FiraSans-Regular-018c141bf0843ffd.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/FiraSans-Medium-8f9a781e4970d388.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/SourceCodePro-Regular-562dcc5011b6de7d.ttf.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/SourceCodePro-Semibold-d899c5a5c4aeb14a.ttf.woff2">`)</script><link·rel="stylesheet"·href="../../static.files/normalize-76eba96aa4d2e634.css"><link·rel="stylesheet"·href="../../static.files/rustdoc-35f9e32502181f1e.css"><meta·name="rustdoc-vars"·data-root-path="../../"·data-static-root-path="../../static.files/"·data-current-crate="alloc"·data-themes=""·data-resource-suffix="1.78.0"·data-rustdoc-version="1.78.0"·data-channel="1.78.0"·data-search-js="search-42d8da7a6b9792c2.js"·data-settings-js="settings-4313503d2e1961c2.js"·><script·src="../../static.files/storage-4c98445ec4002617.js"></script><script·defer·src="sidebar-items1.78.0.js"></script><script·defer·src="../../static.files/main-12cf3b4f4f9dc36d.js"></script><noscript><link·rel="stylesheet"·href="../../static.files/noscript-04d5337699b92874.css"></noscript><link·rel="alternate·icon"·type="image/png"·href="../../static.files/favicon-16x16-8b506e7a72182f1c.png"><link·rel="alternate·icon"·type="image/png"·href="../../static.files/favicon-32x32-422f7d1d52889060.png"><link·rel="icon"·type="image/svg+xml"·href="../../static.files/favicon-2c020d218678b618.svg"></head><body·class="rustdoc·struct"><!--[if·lte·IE·11]><div·class="warning">This·old·browser·is·unsupported·and·will·most·likely·display·funky·things.</div><![endif]--><nav·class="mobile-topbar"><button·class="sidebar-menu-toggle"·title="show·sidebar"></button><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-151179464ae7ed46.svg"·alt=""></a></nav><nav·class="sidebar"><div·class="sidebar-crate"><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-151179464ae7ed46.svg"·alt="logo"></a><h2><a·href="../../alloc/index.html">alloc</a><span·class="version">1.78.0</span></h2></div><h2·class="location"><a·href="#">RMatches</a></h2><div·class="sidebar-elems"><section><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">Clone</a></li><li><a·href="#impl-Debug-for-RMatches%3C'a,+P%3E">Debug</a></li><li><a·href="#impl-DoubleEndedIterator-for-RMatches%3C'a,+P%3E">DoubleEndedIterator</a></li><li><a·href="#impl-FusedIterator-for-RMatches%3C'a,+P%3E">FusedIterator</a></li><li><a·href="#impl-Iterator-for-RMatches%3C'a,+P%3E">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">Freeze</a></li><li><a·href="#impl-RefUnwindSafe-for-RMatches%3C'a,+P%3E">RefUnwindSafe</a></li><li><a·href="#impl-Send-for-RMatches%3C'a,+P%3E">Send</a></li><li><a·href="#impl-Sync-for-RMatches%3C'a,+P%3E">Sync</a></li><li><a·href="#impl-Unpin-for-RMatches%3C'a,+P%3E">Unpin</a></li><li><a·href="#impl-UnwindSafe-for-RMatches%3C'a,+P%3E">UnwindSafe</a></li></ul><h3><a·href="#blanket-implementations">Blanket·Implementations</a></h3><ul·class="block·blanket-implementation"><li><a·href="#impl-Any-for-T">Any</a></li><li><a·href="#impl-Borrow%3CT%3E-for-T">Borrow&lt;T&gt;</a></li><li><a·href="#impl-BorrowMut%3CT%3E-for-T">BorrowMut&lt;T&gt;</a></li><li><a·href="#impl-From%3CT%3E-for-T">From&lt;T&gt;</a></li><li><a·href="#impl-Into%3CU%3E-for-T">Into&lt;U&gt;</a></li><li><a·href="#impl-IntoIterator-for-I">IntoIterator</a></li><li><a·href="#impl-ToOwned-for-T">ToOwned</a></li><li><a·href="#impl-TryFrom%3CU%3E-for-T">TryFrom&lt;U&gt;</a></li><li><a·href="#impl-TryInto%3CU%3E-for-T">TryInto&lt;U&gt;</a></li></ul></section><h2><a·href="index.html">In·alloc::str</a></h2></div></nav><div·class="sidebar-resizer"></div>
2 ····<main><div·class="width-limiter"><nav·class="sub"><form·class="search-form"><span></span><div·id="sidebar-button"·tabindex="-1"><a·href="../../alloc/all.html"·title="show·sidebar"></a></div><input·class="search-input"·name="search"·aria-label="Run·search·in·the·documentation"·autocomplete="off"·spellcheck="false"·placeholder="Click·or·press·‘S’·to·search,·‘?’·for·more·options…"·type="search"><div·id="help-button"·tabindex="-1"><a·href="../../help.html"·title="help">?</a></div><div·id="settings-menu"·tabindex="-1"><a·href="../../settings.html"·title="settings"><img·width="22"·height="22"·alt="Change·settings"·src="../../static.files/wheel-7b819b6101059cd0.svg"></a></div></form></nav><section·id="main-content"·class="content"><div·class="main-heading"><h1>Struct·<a·href="../index.html">alloc</a>::<wbr><a·href="index.html">str</a>::<wbr><a·class="struct"·href="#">RMatches</a><button·id="copy-path"·title="Copy·item·path·to·clipboard"><img·src="../../static.files/clipboard-7571035ce49a181d.svg"·width="19"·height="18"·alt="Copy·item·path"></button></h1><span·class="out-of-band"><span·class="since"·title="Stable·since·Rust·version·1.2.0">1.2.0</span>···<a·class="src"·href="../../src/core/str/iter.rs.html#1130-1146">source</a>···<button·id="toggle-all-docs"·title="collapse·all·docs">[<span>&#x2212;</span>]</button></span></div><pre·class="rust·item-decl"><code>pub·struct·RMatches&lt;'a,·P&gt;(<span·class="comment">/*·private·fields·*/</span>)2 ····<main><div·class="width-limiter"><nav·class="sub"><form·class="search-form"><span></span><div·id="sidebar-button"·tabindex="-1"><a·href="../../alloc/all.html"·title="show·sidebar"></a></div><input·class="search-input"·name="search"·aria-label="Run·search·in·the·documentation"·autocomplete="off"·spellcheck="false"·placeholder="Click·or·press·‘S’·to·search,·‘?’·for·more·options…"·type="search"><div·id="help-button"·tabindex="-1"><a·href="../../help.html"·title="help">?</a></div><div·id="settings-menu"·tabindex="-1"><a·href="../../settings.html"·title="settings"><img·width="22"·height="22"·alt="Change·settings"·src="../../static.files/wheel-7b819b6101059cd0.svg"></a></div></form></nav><section·id="main-content"·class="content"><div·class="main-heading"><h1>Struct·<a·href="../index.html">alloc</a>::<wbr><a·href="index.html">str</a>::<wbr><a·class="struct"·href="#">RMatches</a><button·id="copy-path"·title="Copy·item·path·to·clipboard"><img·src="../../static.files/clipboard-7571035ce49a181d.svg"·width="19"·height="18"·alt="Copy·item·path"></button></h1><span·class="out-of-band"><span·class="since"·title="Stable·since·Rust·version·1.2.0">1.2.0</span>···<a·class="src"·href="https://doc.rust-lang.org/1.78.0/src/core/str/iter.rs.html#1130-1146">source</a>···<button·id="toggle-all-docs"·title="collapse·all·docs">[<span>&#x2212;</span>]</button></span></div><pre·class="rust·item-decl"><code>pub·struct·RMatches&lt;'a,·P&gt;(<span·class="comment">/*·private·fields·*/</span>)
3 <span·class="where">where3 <span·class="where">where
4 ····P:·<a·class="trait"·href="pattern/trait.Pattern.html"·title="trait·alloc::str::pattern::Pattern">Pattern</a>&lt;'a&gt;</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>4 ····P:·<a·class="trait"·href="pattern/trait.Pattern.html"·title="trait·alloc::str::pattern::Pattern">Pattern</a>&lt;'a&gt;</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.78.0/core/primitive.str.html#method.rmatches"·title="method·str::rmatches"><code>rmatches</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-RMatches%3C'a,+P%3E"·class="impl"><a·class="src·rightside"·href="../../src/core/str/iter.rs.html#1130-1146">source</a><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">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-Clone-for-RMatches%3C'a,+P%3E"·class="impl"><a·class="src·rightside"·href="https://doc.rust-lang.org/1.78.0/src/core/str/iter.rs.html#1130-1146">source</a><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.78.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
6 ····P:·<a·class="trait"·href="pattern/trait.Pattern.html"·title="trait·alloc::str::pattern::Pattern">Pattern</a>&lt;'a&gt;,6 ····P:·<a·class="trait"·href="pattern/trait.Pattern.html"·title="trait·alloc::str::pattern::Pattern">Pattern</a>&lt;'a&gt;,
7 ····&lt;P·as·<a·class="trait"·href="pattern/trait.Pattern.html"·title="trait·alloc::str::pattern::Pattern">Pattern</a>&lt;'a&gt;&gt;::<a·class="associatedtype"·href="pattern/trait.Pattern.html#associatedtype.Searcher"·title="type·alloc::str::pattern::Pattern::Searcher">Searcher</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"><details·class="toggle·method-toggle"·open><summary><section·id="method.clone"·class="method·trait-impl"><a·class="src·righ[·...·truncated·by·diffoscope;·len:·1490,·SHA:·7d927bbbdbe333c0eb23ab9b638d0018723fbe7ad04f1a27f57f38f7ba5a8525·...·]/src/core/str/iter.rs.html#1130-1146">source</a><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">where7 ····&lt;P·as·<a·class="trait"·href="pattern/trait.Pattern.html"·title="trait·alloc::str::pattern::Pattern">Pattern</a>&lt;'a&gt;&gt;::<a·class="associatedtype"·href="pattern/trait.Pattern.html#associatedtype.Searcher"·title="type·alloc::str::pattern::Pattern::Searcher">Searcher</a>:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.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:·1733,·SHA:·33e1758424cff0541b169c6482474910df83f756a49f0e08cdb33c6cdf394d79·...·]/src/core/str/iter.rs.html#1130-1146">source</a><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
8 ····P:·<a·class="trait"·href="pattern/trait.Pattern.html"·title="trait·alloc::str::pattern::Pattern">Pattern</a>&lt;'a&gt;,8 ····P:·<a·class="trait"·href="pattern/trait.Pattern.html"·title="trait·alloc::str::pattern::Pattern">Pattern</a>&lt;'a&gt;,
9 ····&lt;P·as·<a·class="trait"·href="pattern/trait.Pattern.html"·title="trait·alloc::str::pattern::Pattern">Pattern</a>&lt;'a&gt;&gt;::<a·class="associatedtype"·href="pattern/trait.Pattern.html#associatedtype.Searcher"·title="type·alloc::str::pattern::Pattern::Searcher">Searcher</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/str/iter.rs.html#1130-1146">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:·898,·SHA:·dd9d78eb961a366e09a63a5f896ccc5fa19a1d869d8b28e731ae5b7a41843fe1·...·]/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">where9 ····&lt;P·as·<a·class="trait"·href="pattern/trait.Pattern.html"·title="trait·alloc::str::pattern::Pattern">Pattern</a>&lt;'a&gt;&gt;::<a·class="associatedtype"·href="pattern/trait.Pattern.html#associatedtype.Searcher"·title="type·alloc::str::pattern::Pattern::Searcher">Searcher</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.78.0/src/core/str/iter.rs.html#1130-1146">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:·1033,·SHA:·ec0a209f19107e25d7cd847fcd1de7252158bc6453cacba92c9ea0e2e60301f6·...·]/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
10 ····P:·<a·class="trait"·href="pattern/trait.Pattern.html"·title="trait·alloc::str::pattern::Pattern">Pattern</a>&lt;'a&gt;,10 ····P:·<a·class="trait"·href="pattern/trait.Pattern.html"·title="trait·alloc::str::pattern::Pattern">Pattern</a>&lt;'a&gt;,
11 ····&lt;P·as·<a·class="trait"·href="pattern/trait.Pattern.html"·title="trait·alloc::str::pattern::Pattern">Pattern</a>&lt;'a&gt;&gt;::<a·class="associatedtype"·href="pattern/trait.Pattern.html#associatedtype.Searcher"·title="type·alloc::str::pattern::Pattern::Searcher">Searcher</a>:·<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#1130-1146">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:·80c7b69efa426fdbb087a1dcea10dc61c3171f74e485024828f8d0098278c0ac·...·]/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 ····&lt;P·as·<a·class="trait"·href="pattern/trait.Pattern.html"·title="trait·alloc::str::pattern::Pattern">Pattern</a>&lt;'a&gt;&gt;::<a·class="associatedtype"·href="pattern/trait.Pattern.html#associatedtype.Searcher"·title="type·alloc::str::pattern::Pattern::Searcher">Searcher</a>:·<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.78.0/src/core/str/iter.rs.html#1130-1146">source</a><a·href="#method.next_back"·class="anchor">§</a><h4·class="code-header">fn·<a·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/double_ended/trait.DoubleEndedIterator.htm[·...·truncated·by·diffoscope;·len:·3881,·SHA:·b6c2ed22867955d27a011b82e17aadda5566677f15cf1ad98881543883017ed9·...·]/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.78.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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(B,·Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.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.78.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.7[·...·truncated·by·diffoscope;·len:·3,·SHA:·7b1bd53949b752d143d871408483b5382371b5bc48d195d0c040ec93cfa2748b·...·]/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:·74b709f2c818a4eda5d85ea863eb2d8af72c87564dbab2746e67feafb0cbb9a3·...·]/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.78.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:·d66ed7e195a53e9945339ef1976aed455dcf80228d8e5b7b0c69a64c3983fea1·...·]/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.78.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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(B,·Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/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:·f8bdf1e28866c7668477ab391452c7cfa7fd52cc69b633e782a157931421b39b·...·]/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.78.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:·c264047794019a6dcf05728ba6a6ee1f8f07c7209958b3366ba94546b527ecdc·...·]/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.78.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:·710,·SHA:·a399b0cb609dbe57728b698640afebd15a7ed0ed5316ca0a76a64f93503786b8·...·]/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">where20 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·872,·SHA:·1662b52d67ac682dfb6250d41e737d22658949db4e199a4f12e092027031524f·...·]/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
21 ····P:·<a·class="trait"·href="pattern/trait.Pattern.html"·title="trait·alloc::str::pattern::Pattern">Pattern</a>&lt;'a&gt;,21 ····P:·<a·class="trait"·href="pattern/trait.Pattern.html"·title="trait·alloc::str::pattern::Pattern">Pattern</a>&lt;'a&gt;,
22 ····&lt;P·as·<a·class="trait"·href="pattern/trait.Pattern.html"·title="trait·alloc::str::pattern::Pattern">Pattern</a>&lt;'a&gt;&gt;::<a·class="associatedtype"·href="pattern/trait.Pattern.html#associatedtype.Searcher"·title="type·alloc::str::pattern::Pattern::Searcher">Searcher</a>:·<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·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·class="primitive"·href="../../core/primitive.str.html">str</a></h4></section></summary><div·class='docblock'>The·type·of·the·elements·bein[·...·truncated·by·diffoscope;·len:·1222,·SHA:·939983051d97c94a9233d24ef6db1791b8479542a632a26e6248aa1742ec3712·...·]/core/primitive.usize.html">usize</a>&gt;(22 ····&lt;P·as·<a·class="trait"·href="pattern/trait.Pattern.html"·title="trait·alloc::str::pattern::Pattern">Pattern</a>&lt;'a&gt;&gt;::<a·class="associatedtype"·href="pattern/trait.Pattern.html#associatedtype.Searcher"·title="type·alloc::str::pattern::Pattern::Searcher">Searcher</a>:·<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·href="#associatedtype.Item"·class="anchor">§</a><h4·class="code-header">type·<a·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·class="associatedtype">Item</a>·=·&amp;'a·<a·class="primitive"·href="https://doc.rust-lang.org/1.78.0/core/primitive.str.html">str</a></h4></section></summa[·...·truncated·by·diffoscope;·len:·1492,·SHA:·05157a7e562ac8d0a89b82ec6b40311c1f51ad23f08da6b9b955a89fc24179b2·...·]/core/primitive.usize.html">usize</a>&gt;(
23 ····&amp;mut·self23 ····&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.78.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.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title=[·...·truncated·by·diffoscope;·len:·381,·SHA:·88c48923c9b7ea5cc47c1087c60e09656e81d4671c58071ba2bef826335388bc·...·]/core/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:·1785,·SHA:·19053018de1acf5c85a547b4f740a12b61b1dafeb5940dd6e6ded8d48e943731·...·]/core/primitive.usize.html">usize</a><div·class="where">where25 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></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:·402867e9e3549fef747dcb22b92bda79093f02d1378ea733f633e3a91e074bca·...·]/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:·5b5aaec46c04cf77d2fa06e88cd6f0a2bd8d201412bc325302bd2f8f21b39207·...·]/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.78.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:·84ae0beb16240102bae2355bb8c543b17f3f107e3c06b320839aa401eebb1945·...·]/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:·6b808f54a13578d2e276864bb3eb79ae7b452b8959e79f7ea7ab1180574b77fc·...·]/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.78.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.78.0/cor[·...·truncated·by·diffoscope;·len:·3504,·SHA:·6d21b6d637e0b2e9953a37a26fd19e00da089147d4acaf696c94d448de4ce419·...·]/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.78.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:·5667b9b6c9778ff3b9d23ed0a110e7ab9d3fccc786fdcaca8c17edf996236439·...·]/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.78.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:·e83c903581753673e083ce8dd809879a2fc81ab3050eb6db267d7fa26b15e035·...·]/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.78.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:·1c6bb9803ee8832ebd4c28a08a952178165595b6870cf35d3c89454b9da828b2·...·]/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.78.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.78.0/core/iter/traits/it[·...·truncated·by·diffoscope;·len:·1329,·SHA:·d9299c8edc606ed82f24d61ce441bec451141d684c2a9a75074f5b19c57f196c·...·]/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.78.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:·c1b5e692e89c9c809075ee8ee72fb15a9ec46c075b08450e1f707d672a224750·...·]/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.78.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:·98627729f77dcf1c9d258f343354ba600b7134c6b3929080f231e8de7155b70b·...·]/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.78.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.78.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.78.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:·d6282409add0999f2130eb6bbe6d0473ce96bf2544799e8bc22156f3c2d2e0dd·...·]/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.78.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:·7301b6beba7b6885849be90a625df68ef739a5374af456c51fe2e81d91a25363·...·]/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.78.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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::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:·fb4c9589a16c7b6d697c109d1193d2f1e763e5dd967101c2fd92b32416972229·...·]/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.78.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:·98f6effefa44d759c249143d83623f0055d937382bfc398b7e1f5e92cd413657·...·]/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.78.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:·7abbad666ec88a1053b8aca2a481d629a3ef3596eddb570c381205fa2d859a52·...·]/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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·916,·SHA:·30d0b2a76513c5a880e9aee43e92b18805845cfcfe5783f62dc090167a439e63·...·]/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.78.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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·140,·SHA:·752f473b57e7444ebfddf5ea7fd40a332e83ec55524a6c31b5ee0f82a5dea819·...·]/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:·7da07154834a15b8ae55b4fd41479da070ccbd27e071909f81698570c306a081·...·]/core/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.78.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:·76aa2ad154f88085ee3f8a22721a7e6812680bac785d19059532407f50da1801·...·]/core/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.78.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:·c89169e5bf1c4724c7b411e568b6dad6475896f2606f557b3d708359ef71f5cc·...·]/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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·1052,·SHA:·110b47c7083083d565fcfc89337fddc8e5c87e81b2f720f3f7b0ded55e8500fb·...·]/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.78.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:·53634008856676c70c32b501f7ec498c1f86d123cc9b5b898256a69895ff31fc·...·]/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.78.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:·8464264e074dde5d84f0414ab3b5b2d8da83f3c9e3ca04c45458241580a8c80d·...·]/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.78.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.78.0/core/iter/adapte[·...·truncated·by·diffoscope;·len:·175,·SHA:·16fe7225bf05b478e2828b347c3d23ded9a22f89d8887a2c65d9f7b3faf1b0e7·...·]/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:·77dd41e041d66c618d306e900a9159cf1b00478b8f37e5692be62119a1d4fcda·...·]/core/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.78.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:·00ccbb673c11ed48d8c6aa2a3f8984fb298202e7bccfa42f1ac21290fcc0fb06·...·]/core/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.78.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:·c18326af66652e52fa627bfd0312af7fa2ad0ddc162b12a46e61047a031b0264·...·]/core/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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·1234,·SHA:·3b805567411cdcebed740f9e8d400dbe7fb487504f40e284544a140155090fdf·...·]/core/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.78.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:·39eeddf219b211245393e51a591d5064c740fa9be49d88883d8a6474679741ad·...·]/core/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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·1058,·SHA:·b390dbdda8d7e93604b5ecd906a93efd03fe19bdaf41cf12893fd361bf974307·...·]/core/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.78.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:·9369fa85b74ff841f7401949cadba6dfbbbeead2a99568f20dcfd5aab20d61ab·...·]/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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·1163,·SHA:·5772149166d344bf8fa5ebbd9db8693a8f2e5f031c50338e8f1523ef72f814d6·...·]/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:·a25e81a74cc82c1837477e2b0cea682fff9f43550640901b8010ac501ca69e3d·...·]/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.78.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:·6216516fe581c401abda3c95818192e8f030e2008c9bbdbaafebba16f33ea9bd·...·]/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.78.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:·de8f1023275132502c1569b0ef9a557dc98eaf60aae97cdb916e52f9f55100aa·...·]/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.78.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:·485843399c56e24bdf020ff0610d0ce1f62fbac5530d9880a1a7417105e3d70f·...·]/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.78.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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(<a·class="primitive"·href="https://doc.rust-lang.org/1.78.0/core/primitive.reference.html">&amp;mut·St</a>,·Self::<a·class="associatedty[·...·truncated·by·diffoscope;·len:·449,·SHA:·f12c268a8a8111b9e7126ad78bf5523a63733caa63d187c4fe792309ea41acdf·...·]/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:·8b31595e3cee3022819032aac82e3df712188a2a6dcc20da6939262e5e528591·...·]/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.78.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.78.0/core/iter/trai[·...·truncated·by·diffoscope;·len:·690,·SHA:·371190e5c1bf9b7dde6e84447965a69946212b977b9eb6d89048fbe34c5dda1c·...·]/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.78.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.78.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:·9b6a337a3ad68c2a987b52450c153f87a04a8ed9e83603d26077fe6e70d61edf·...·]/core/iter/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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·976,·SHA:·2a9182f6fe88e0b8a9b1ae1f46cace940cc0b8736033c354c0f0ccbf1c196e7a·...·]/core/iter/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.78.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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;[Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtyp[·...·truncated·by·diffoscope;·len:·135,·SHA:·0b06a6094d42ccbc8bce5b01c4383961fe7f1967f05e4c9f1ff33e71e425fb26·...·]/core/primitive.array.html">N</a>])·-&gt;·R,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iter_map_windows</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/87155">#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.78.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:·238f6b49b3e28d725c57040edaa60bfbb34f140155e6af1d30eab52da1c7274f·...·]/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.78.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:·0d33056cee8a4f9b70b573c0adecc2f3599a2f8d9fa9f2c2044e9118ab134f73·...·]/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:·cfd3edf89fe5aca24b994f83b0d7da765620394e35140e694d98233d4d92481b·...·]/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.78.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.78.0/core/op[·...·truncated·by·diffoscope;·len:·841,·SHA:·9cba1b175fb3726d7f1f01da9be7c1a56568a68e4ce7915a468b730902daf8d3·...·]/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.78.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:·772,·SHA:·31d2052382378512fa905c6d5297d384eac7b7f126141ce561719c0e27cc9d39·...·]/core/primitive.reference.html">&amp;mut·Self</a><div·class="where">where73 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·934,·SHA:·ea20d2e0fe9388580ea08100baa9120b5e9b6cb48f43fc846f15db8b9649e7f6·...·]/core/primitive.reference.html">&amp;mut·Self</a><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:·98760b16b1ed91f9558e6e2637724a4608316181d5f6f4d236e896a83eca9af9·...·]/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.78.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.78.0/core/it[·...·truncated·by·diffoscope;·len:·523,·SHA:·97064c705f6f4bdf74469c54fabcf580d21893127d1b4cd9a9c1018a717ef153·...·]/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.78.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.78.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:·e5d524e874326d0b9b733f5ee809c6595cde869afab0cc3d4ba8454093f420da·...·]/core/primitive.reference.html">&amp;mut·E</a><div·class="where">where76 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.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.78.0/core/iter/tr[·...·truncated·by·diffoscope;·len:·728,·SHA:·01937c2dc314c259495665570ae249c94b4a5b0719718f5f1188e6fc64ecf487·...·]/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.78.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.78.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:·b0297783e056393a542c4058b42c18523a86c961c1b6ce3bc94342c1a2c10c58·...·]/core/primitive.tuple.html">(B,·B)</a><div·class="where">where78 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></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:·00bd47017b1bdd1bbe2c3fc932d955a8aa2f7f5eff8c00e3001ae28a982a5883·...·]/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.78.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.78.0/core/default/trait.Default.html"·title="trait·core::default::Default">Default</a>·+·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/collect/trait.Extend.html"·title="trait·core::iter::traits::collec[·...·truncated·by·diffoscope;·len:·95,·SHA:·8b3be1d0042cae0550f865faf5849221240bdf04eb1b2107605b72d48c3ad29c·...·]/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:·783,·SHA:·f8b50287f3e106633ed79a84072d3ddd9d98672efd685d2433c61b5549ce051e·...·]/core/primitive.bool.html">bool</a><div·class="where">where81 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·972,·SHA:·6de765542031617a9c28ac98fe6df619e58e62d9c65ec5b1c185a7152b8944e5·...·]/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.78.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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·135,·SHA:·51ff5f5c7ebd8440623ea71b125c5a5837e809e308fe1a13fbe19cddb941dbd9·...·]/core/primitive.bool.html">bool</a>,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iter_is_partitioned</code>&nbsp;<a·href="https://github.com/rust-lang/rust/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:·6f406a351b93047f56fa70265a6bf28ec6874f75cd6cc5a39d51c7af462f2992·...·]/core/iter/traits/iterator/trait.Iterator.html#method.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.78.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:·2c74873f4e5ba70004a1c7edd1cc3f9e2d91271295dd1591e2d26848df4c02ba·...·]/core/iter/traits/iterator/trait.Iterator.html#method.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.78.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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(B,·Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.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.78.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:·eecdce021399d206eb3ef5af12ee7663b4eb0dca55b0f411c7fa66f605b6b2e2·...·]/core/iter/traits/iterator/trait.Iterator.html#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.78.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:·52912e82c4b0a760d06f77eb4ee3a59ba70dd76cb532954900c73ae94c652674·...·]/core/iter/traits/iterator/trait.Iterator.html#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.78.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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.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.78.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.78.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:·ffdacd6b524bc823efebbf23dc0f77317a07fe9c8b691f2ea18db7aa0c08b146·...·]/core/iter/traits/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.78.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:·1d6c4809cea8748e901d3f94777f450d430f3161f6ac05ed1c178d9327f966a3·...·]/core/iter/traits/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.78.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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(B,·Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::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:·dbe3a08fe63abd47570741e71208c31aaf51152feac5917db07665a1f56bb3e3·...·]/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.78.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:·b60215068a6d9721be05f81098c51167d7138c4042f140cad42f77c4df43f597·...·]/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.78.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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·352,·SHA:·e7c3c296abe2c0a183967153e4ae7fd50bafa2ae7088e3e78b3b48fee253adc6·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::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:·a9dce8bb557b5a11426bf2ffcbd5eea7c6c870833e3ee5bb072dcaaa11687b0c·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_reduce"·class="fn">try_reduce</a>&lt;F,·R&gt;(98 operation.·<a·href="https://doc.rust-lang.org/1.78.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:·7a18fdd041b1a001b4a8feb289ee127fd9240232239269eb35dc3b8f74783ec9·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_reduce"·class="fn">try_reduce</a>&lt;F,·R&gt;(
99 ····&amp;mut·self,99 ····&amp;mut·self,
100 ····f:·F100 ····f:·F
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.78.0/core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&gt;::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/ops/try_trait/trait.Try.html#associatedtype.Residual"·title="type[·...·truncated·by·diffoscope;·len:·754,·SHA:·6fb4dfdb6b4da68921c1e7f8b75d99cf293d58318d684a840254ce9576957bea·...·]/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.78.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:·59,·SHA:·3d53eece7c48858eda31192ab2620ae144896b35400c945bbf3eb5dc06bf8d12·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·R,103 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·140,·SHA:·c27972e6fa3464c9476eaa185e8657edb6bb294f148403f3d079285294a9f909·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·R,
104 ····R:·<a·class="trait"·href="../../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.78.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.78.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.78.0/core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&gt;::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/ops/try_trait/trait.Try.html#associatedtype.Residual"·title="type[·...·truncated·by·diffoscope;·len:·412,·SHA:·22b8cbb007e5cce82b9d13a65bfa56aa8d83c32541fac25f4d9b3857b0540908·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;&gt;,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iterator_try_reduce</code>&nbsp;<a·href="https://github.com/rust-lang/rust/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:·65b80c848af6e465c8c5aef4ec8d3faaa399d30c8427c9507fda7b3bd1d3ea93·...·]/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.78.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:·bc0d658d56e348823de15386e1cd4ab49109f3a7a055a4573a19391b47071193·...·]/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.78.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:·95a840b532d3d621bde4032d63854eb0a481248e2b4bbb3ef058dbffb4dae4fa·...·]/core/primitive.bool.html">bool</a><div·class="where">where108 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·1018,·SHA:·e61cd6bdd36729cc38e57fcaea2ccb91a23a5acbda3c8986071f19bf1ecfc52a·...·]/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.78.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:·f828c62edd4fe85e217286f359b56c116e14ed18bb292ba1cc13d3ed7146909e·...·]/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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·1172,·SHA:·e64ab74d116d286191ad43d9d9e10411fc011c23724aa806e9a8f9b0be0757e3·...·]/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.78.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:·21d7086b3ce0092e3f7a6a41174339bbd8724e7d186158db4db3385a73d94e8e·...·]/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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·1051,·SHA:·ecc0b8fccd861464760f9ae047ff6ab98c91a1db010cb5fa59a8c2ab883db7c4·...·]/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.78.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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·130,·SHA:·130a13019dc175d02304b4f550157e2f13ac15c2f25a979c74161d10b146ab89·...·]/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:·ac4da3337aac1ec10038e246be9cb719eeb5af1acc709f5a6a25b91900c56f53·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_find"·class="fn">try_find</a>&lt;F,·R&gt;(115 the·first·non-none·result.·<a·href="https://doc.rust-lang.org/1.78.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:·8ced1b10e78750774c5c8ed995ed83dcd13983aa75d329acf8069da106ab9f4a·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_find"·class="fn">try_find</a>&lt;F,·R&gt;(
116 ····&amp;mut·self,116 ····&amp;mut·self,
117 ····f:·F117 ····f:·F
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.78.0/core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&gt;::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/ops/try_trait/trait.Try.html#associatedtype.Residual"·title="type[·...·truncated·by·diffoscope;·len:·626,·SHA:·95f9831257b68862cbcbf54f0ad2ff4e597a4c9f763112d1da8a0897dadcf872·...·]/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.78.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;·R,120 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·R,
121 ····R:·<a·class="trait"·href="../../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.78.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.78.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.78.0/core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&gt;::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/ops/try_trait/trait.Try.html#associatedtype.Residual"·title="type[·...·truncated·by·diffoscope;·len:·412,·SHA:·22b8cbb007e5cce82b9d13a65bfa56aa8d83c32541fac25f4d9b3857b0540908·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;&gt;,</div></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.78.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:·fa9d94b216f6e4ce6035b4762e3bf17cb86a0272db0a55a056f05c68bcaeb0da·...·]/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.78.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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·1190,·SHA:·882e9e9a037f916d0ed4aa6d749399e6e01ca81811eacfc54a484818cb5d5029·...·]/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.78.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.78.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
Max diff block lines reached; 90646/308147 bytes (29.42%) of diff not shown.
300 KB
./usr/share/doc/rust-web-doc/html/alloc/str/struct.RSplit.html
    
Offset 1, 230 lines modifiedOffset 1, 230 lines modified
1 <!DOCTYPE·html><html·lang="en"><head><meta·charset="utf-8"><meta·name="viewport"·content="width=device-width,·initial-scale=1.0"><meta·name="generator"·content="rustdoc"><meta·name="description"·content="Created·with·the·method·`rsplit`."><title>RSplit·in·alloc::str·-·Rust</title><script>·if·(window.location.protocol·!==·"file:")·document.write(`<link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/SourceSerif4-Regular-46f98efaafac5295.ttf.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/FiraSans-Regular-018c141bf0843ffd.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/FiraSans-Medium-8f9a781e4970d388.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/SourceCodePro-Regular-562dcc5011b6de7d.ttf.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/SourceCodePro-Semibold-d899c5a5c4aeb14a.ttf.woff2">`)</script><link·rel="stylesheet"·href="../../static.files/normalize-76eba96aa4d2e634.css"><link·rel="stylesheet"·href="../../static.files/rustdoc-35f9e32502181f1e.css"><meta·name="rustdoc-vars"·data-root-path="../../"·data-static-root-path="../../static.files/"·data-current-crate="alloc"·data-themes=""·data-resource-suffix="1.78.0"·data-rustdoc-version="1.78.0"·data-channel="1.78.0"·data-search-js="search-42d8da7a6b9792c2.js"·data-settings-js="settings-4313503d2e1961c2.js"·><script·src="../../static.files/storage-4c98445ec4002617.js"></script><script·defer·src="sidebar-items1.78.0.js"></script><script·defer·src="../../static.files/main-12cf3b4f4f9dc36d.js"></script><noscript><link·rel="stylesheet"·href="../../static.files/noscript-04d5337699b92874.css"></noscript><link·rel="alternate·icon"·type="image/png"·href="../../static.files/favicon-16x16-8b506e7a72182f1c.png"><link·rel="alternate·icon"·type="image/png"·href="../../static.files/favicon-32x32-422f7d1d52889060.png"><link·rel="icon"·type="image/svg+xml"·href="../../static.files/favicon-2c020d218678b618.svg"></head><body·class="rustdoc·struct"><!--[if·lte·IE·11]><div·class="warning">This·old·browser·is·unsupported·and·will·most·likely·display·funky·things.</div><![endif]--><nav·class="mobile-topbar"><button·class="sidebar-menu-toggle"·title="show·sidebar"></button><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-151179464ae7ed46.svg"·alt=""></a></nav><nav·class="sidebar"><div·class="sidebar-crate"><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-151179464ae7ed46.svg"·alt="logo"></a><h2><a·href="../../alloc/index.html">alloc</a><span·class="version">1.78.0</span></h2></div><h2·class="location"><a·href="#">RSplit</a></h2><div·class="sidebar-elems"><section><h3><a·href="#implementations">Methods</a></h3><ul·class="block·method"><li><a·href="#method.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">Clone</a></li><li><a·href="#impl-Debug-for-RSplit%3C'a,+P%3E">Debug</a></li><li><a·href="#impl-DoubleEndedIterator-for-RSplit%3C'a,+P%3E">DoubleEndedIterator</a></li><li><a·href="#impl-FusedIterator-for-RSplit%3C'a,+P%3E">FusedIterator</a></li><li><a·href="#impl-Iterator-for-RSplit%3C'a,+P%3E">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">Freeze</a></li><li><a·href="#impl-RefUnwindSafe-for-RSplit%3C'a,+P%3E">RefUnwindSafe</a></li><li><a·href="#impl-Send-for-RSplit%3C'a,+P%3E">Send</a></li><li><a·href="#impl-Sync-for-RSplit%3C'a,+P%3E">Sync</a></li><li><a·href="#impl-Unpin-for-RSplit%3C'a,+P%3E">Unpin</a></li><li><a·href="#impl-UnwindSafe-for-RSplit%3C'a,+P%3E">UnwindSafe</a></li></ul><h3><a·href="#blanket-implementations">Blanket·Implementations</a></h3><ul·class="block·blanket-implementation"><li><a·href="#impl-Any-for-T">Any</a></li><li><a·href="#impl-Borrow%3CT%3E-for-T">Borrow&lt;T&gt;</a></li><li><a·href="#impl-BorrowMut%3CT%3E-for-T">BorrowMut&lt;T&gt;</a></li><li><a·href="#impl-From%3CT%3E-for-T">From&lt;T&gt;</a></li><li><a·href="#impl-Into%3CU%3E-for-T">Into&lt;U&gt;</a></li><li><a·href="#impl-IntoIterator-for-I">IntoIterator</a></li><li><a·href="#impl-ToOwned-for-T">ToOwned</a></li><li><a·href="#impl-TryFrom%3CU%3E-for-T">TryFrom&lt;U&gt;</a></li><li><a·href="#impl-TryInto%3CU%3E-for-T">TryInto&lt;U&gt;</a></li></ul></section><h2><a·href="index.html">In·alloc::str</a></h2></div></nav><div·class="sidebar-resizer"></div>1 <!DOCTYPE·html><html·lang="en"><head><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.write(`<link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/SourceSerif4-Regular-46f98efaafac5295.ttf.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/FiraSans-Regular-018c141bf0843ffd.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/FiraSans-Medium-8f9a781e4970d388.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/SourceCodePro-Regular-562dcc5011b6de7d.ttf.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/SourceCodePro-Semibold-d899c5a5c4aeb14a.ttf.woff2">`)</script><link·rel="stylesheet"·href="../../static.files/normalize-76eba96aa4d2e634.css"><link·rel="stylesheet"·href="../../static.files/rustdoc-35f9e32502181f1e.css"><meta·name="rustdoc-vars"·data-root-path="../../"·data-static-root-path="../../static.files/"·data-current-crate="alloc"·data-themes=""·data-resource-suffix="1.78.0"·data-rustdoc-version="1.78.0"·data-channel="1.78.0"·data-search-js="search-42d8da7a6b9792c2.js"·data-settings-js="settings-4313503d2e1961c2.js"·><script·src="../../static.files/storage-4c98445ec4002617.js"></script><script·defer·src="sidebar-items1.78.0.js"></script><script·defer·src="../../static.files/main-12cf3b4f4f9dc36d.js"></script><noscript><link·rel="stylesheet"·href="../../static.files/noscript-04d5337699b92874.css"></noscript><link·rel="alternate·icon"·type="image/png"·href="../../static.files/favicon-16x16-8b506e7a72182f1c.png"><link·rel="alternate·icon"·type="image/png"·href="../../static.files/favicon-32x32-422f7d1d52889060.png"><link·rel="icon"·type="image/svg+xml"·href="../../static.files/favicon-2c020d218678b618.svg"></head><body·class="rustdoc·struct"><!--[if·lte·IE·11]><div·class="warning">This·old·browser·is·unsupported·and·will·most·likely·display·funky·things.</div><![endif]--><nav·class="mobile-topbar"><button·class="sidebar-menu-toggle"·title="show·sidebar"></button><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-151179464ae7ed46.svg"·alt=""></a></nav><nav·class="sidebar"><div·class="sidebar-crate"><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-151179464ae7ed46.svg"·alt="logo"></a><h2><a·href="../../alloc/index.html">alloc</a><span·class="version">1.78.0</span></h2></div><h2·class="location"><a·href="#">RSplit</a></h2><div·class="sidebar-elems"><section><h3><a·href="#implementations">Methods</a></h3><ul·class="block·method"><li><a·href="#method.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">Clone</a></li><li><a·href="#impl-Debug-for-RSplit%3C'a,+P%3E">Debug</a></li><li><a·href="#impl-DoubleEndedIterator-for-RSplit%3C'a,+P%3E">DoubleEndedIterator</a></li><li><a·href="#impl-FusedIterator-for-RSplit%3C'a,+P%3E">FusedIterator</a></li><li><a·href="#impl-Iterator-for-RSplit%3C'a,+P%3E">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">Freeze</a></li><li><a·href="#impl-RefUnwindSafe-for-RSplit%3C'a,+P%3E">RefUnwindSafe</a></li><li><a·href="#impl-Send-for-RSplit%3C'a,+P%3E">Send</a></li><li><a·href="#impl-Sync-for-RSplit%3C'a,+P%3E">Sync</a></li><li><a·href="#impl-Unpin-for-RSplit%3C'a,+P%3E">Unpin</a></li><li><a·href="#impl-UnwindSafe-for-RSplit%3C'a,+P%3E">UnwindSafe</a></li></ul><h3><a·href="#blanket-implementations">Blanket·Implementations</a></h3><ul·class="block·blanket-implementation"><li><a·href="#impl-Any-for-T">Any</a></li><li><a·href="#impl-Borrow%3CT%3E-for-T">Borrow&lt;T&gt;</a></li><li><a·href="#impl-BorrowMut%3CT%3E-for-T">BorrowMut&lt;T&gt;</a></li><li><a·href="#impl-From%3CT%3E-for-T">From&lt;T&gt;</a></li><li><a·href="#impl-Into%3CU%3E-for-T">Into&lt;U&gt;</a></li><li><a·href="#impl-IntoIterator-for-I">IntoIterator</a></li><li><a·href="#impl-ToOwned-for-T">ToOwned</a></li><li><a·href="#impl-TryFrom%3CU%3E-for-T">TryFrom&lt;U&gt;</a></li><li><a·href="#impl-TryInto%3CU%3E-for-T">TryInto&lt;U&gt;</a></li></ul></section><h2><a·href="index.html">In·alloc::str</a></h2></div></nav><div·class="sidebar-resizer"></div>
2 ····<main><div·class="width-limiter"><nav·class="sub"><form·class="search-form"><span></span><div·id="sidebar-button"·tabindex="-1"><a·href="../../alloc/all.html"·title="show·sidebar"></a></div><input·class="search-input"·name="search"·aria-label="Run·search·in·the·documentation"·autocomplete="off"·spellcheck="false"·placeholder="Click·or·press·‘S’·to·search,·‘?’·for·more·options…"·type="search"><div·id="help-button"·tabindex="-1"><a·href="../../help.html"·title="help">?</a></div><div·id="settings-menu"·tabindex="-1"><a·href="../../settings.html"·title="settings"><img·width="22"·height="22"·alt="Change·settings"·src="../../static.files/wheel-7b819b6101059cd0.svg"></a></div></form></nav><section·id="main-content"·class="content"><div·class="main-heading"><h1>Struct·<a·href="../index.html">alloc</a>::<wbr><a·href="index.html">str</a>::<wbr><a·class="struct"·href="#">RSplit</a><button·id="copy-path"·title="Copy·item·path·to·clipboard"><img·src="../../static.files/clipboard-7571035ce49a181d.svg"·width="19"·height="18"·alt="Copy·item·path"></button></h1><span·class="out-of-band"><span·class="since"·title="Stable·since·Rust·version·1.0.0">1.0.0</span>···<a·class="src"·href="../../src/core/str/iter.rs.html#781-797">source</a>···<button·id="toggle-all-docs"·title="collapse·all·docs">[<span>&#x2212;</span>]</button></span></div><pre·class="rust·item-decl"><code>pub·struct·RSplit&lt;'a,·P&gt;(<span·class="comment">/*·private·fields·*/</span>)2 ····<main><div·class="width-limiter"><nav·class="sub"><form·class="search-form"><span></span><div·id="sidebar-button"·tabindex="-1"><a·href="../../alloc/all.html"·title="show·sidebar"></a></div><input·class="search-input"·name="search"·aria-label="Run·search·in·the·documentation"·autocomplete="off"·spellcheck="false"·placeholder="Click·or·press·‘S’·to·search,·‘?’·for·more·options…"·type="search"><div·id="help-button"·tabindex="-1"><a·href="../../help.html"·title="help">?</a></div><div·id="settings-menu"·tabindex="-1"><a·href="../../settings.html"·title="settings"><img·width="22"·height="22"·alt="Change·settings"·src="../../static.files/wheel-7b819b6101059cd0.svg"></a></div></form></nav><section·id="main-content"·class="content"><div·class="main-heading"><h1>Struct·<a·href="../index.html">alloc</a>::<wbr><a·href="index.html">str</a>::<wbr><a·class="struct"·href="#">RSplit</a><button·id="copy-path"·title="Copy·item·path·to·clipboard"><img·src="../../static.files/clipboard-7571035ce49a181d.svg"·width="19"·height="18"·alt="Copy·item·path"></button></h1><span·class="out-of-band"><span·class="since"·title="Stable·since·Rust·version·1.0.0">1.0.0</span>···<a·class="src"·href="https://doc.rust-lang.org/1.78.0/src/core/str/iter.rs.html#781-797">source</a>···<button·id="toggle-all-docs"·title="collapse·all·docs">[<span>&#x2212;</span>]</button></span></div><pre·class="rust·item-decl"><code>pub·struct·RSplit&lt;'a,·P&gt;(<span·class="comment">/*·private·fields·*/</span>)
3 <span·class="where">where3 <span·class="where">where
4 ····P:·<a·class="trait"·href="pattern/trait.Pattern.html"·title="trait·alloc::str::pattern::Pattern">Pattern</a>&lt;'a&gt;</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>4 ····P:·<a·class="trait"·href="pattern/trait.Pattern.html"·title="trait·alloc::str::pattern::Pattern">Pattern</a>&lt;'a&gt;</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.78.0/core/primitive.str.html#method.rsplit"·title="method·str::rsplit"><code>rsplit</code></a>.</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-RSplit%3C'a,+P%3E"·class="impl"><a·class="src·rightside"·href="../../src/core/str/iter.rs.html#822">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">where5 </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.78.0/src/core/str/iter.rs.html#822">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
6 ····P:·<a·class="trait"·href="pattern/trait.Pattern.html"·title="trait·alloc::str::pattern::Pattern">Pattern</a>&lt;'a&gt;,</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#840">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>6 ····P:·<a·class="trait"·href="pattern/trait.Pattern.html"·title="trait·alloc::str::pattern::Pattern">Pattern</a>&lt;'a&gt;,</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.78.0/src/core/str/iter.rs.html#840">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.78.0/core/option/enum.Option.ht[·...·truncated·by·diffoscope;·len:·119,·SHA:·93ff891486a9feb9f66ae41889129f6d0e1c0abe8a2d0e28ca30689ceede13fe·...·]/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>
7 <p>If·the·iterator·is·empty,·returns·<code>None</code>.</p>7 <p>If·the·iterator·is·empty,·returns·<code>None</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="attr">#![feature(str_split_remainder)]9 <div·class="example-wrap"><pre·class="rust·rust-example-rendered"><code><span·class="attr">#![feature(str_split_remainder)]
10 </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><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>);
11 <span·class="macro">assert_eq!</span>(split.remainder(),·<span·class="prelude-val">Some</span>(<span·class="string">"Mary·had·a·little·lamb"</span>));11 <span·class="macro">assert_eq!</span>(split.remainder(),·<span·class="prelude-val">Some</span>(<span·class="string">"Mary·had·a·little·lamb"</span>));
12 split.next();12 split.next();
13 <span·class="macro">assert_eq!</span>(split.remainder(),·<span·class="prelude-val">Some</span>(<span·class="string">"Mary·had·a·little"</span>));13 <span·class="macro">assert_eq!</span>(split.remainder(),·<span·class="prelude-val">Some</span>(<span·class="string">"Mary·had·a·little"</span>));
14 split.by_ref().for_each(drop);14 split.by_ref().for_each(drop);
15 <span·class="macro">assert_eq!</span>(split.remainder(),·<span·class="prelude-val">None</span>);</code></pre><a·class="test-arrow"·target="_blank"·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">Run</a></div>15 <span·class="macro">assert_eq!</span>(split.remainder(),·<span·class="prelude-val">None</span>);</code></pre><a·class="test-arrow"·target="_blank"·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">Run</a></div>
16 </div></details></div></details></div><h2·id="trait-implementations"·class="section-header">Trait·Implementations<a·href="#trait-implementations"·class="anchor">§</a></h2><div·id="trait-implementations-list"><details·class="toggle·implementors-toggle"·open><summary><section·id="impl-Clone-for-RSplit%3C'a,+P%3E"·class="impl"><a·class="src·rightside"·href="../../src/core/str/iter.rs.html#781-797">source</a><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">where16 </div></details></div></details></div><h2·id="trait-implementations"·class="section-header">Trait·Implementations<a·href="#trait-implementations"·class="anchor">§</a></h2><div·id="trait-implementations-list"><details·class="toggle·implementors-toggle"·open><summary><section·id="impl-Clone-for-RSplit%3C'a,+P%3E"·class="impl"><a·class="src·rightside"·href="https://doc.rust-lang.org/1.78.0/src/core/str/iter.rs.html#781-797">source</a><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.78.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
17 ····P:·<a·class="trait"·href="pattern/trait.Pattern.html"·title="trait·alloc::str::pattern::Pattern">Pattern</a>&lt;'a&gt;,17 ····P:·<a·class="trait"·href="pattern/trait.Pattern.html"·title="trait·alloc::str::pattern::Pattern">Pattern</a>&lt;'a&gt;,
18 ····&lt;P·as·<a·class="trait"·href="pattern/trait.Pattern.html"·title="trait·alloc::str::pattern::Pattern">Pattern</a>&lt;'a&gt;&gt;::<a·class="associatedtype"·href="pattern/trait.Pattern.html#associatedtype.Searcher"·title="type·alloc::str::pattern::Pattern::Searcher">Searcher</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"><details·class="toggle·method-toggle"·open><summary><section·id="method.clone"·class="method·trait-impl"><a·class="src·righ[·...·truncated·by·diffoscope;·len:·1382,·SHA:·94ae27254089bffcdb03d3acb1b100430d8b0d884c51449deb3c77e84e8516f9·...·]/src/core/str/iter.rs.html#781-797">source</a><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">where18 ····&lt;P·as·<a·class="trait"·href="pattern/trait.Pattern.html"·title="trait·alloc::str::pattern::Pattern">Pattern</a>&lt;'a&gt;&gt;::<a·class="associatedtype"·href="pattern/trait.Pattern.html#associatedtype.Searcher"·title="type·alloc::str::pattern::Pattern::Searcher">Searcher</a>:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.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:·1625,·SHA:·6239498c4b278448239c05939006b44f59189fc29270cfd3997ba35d1006b610·...·]/src/core/str/iter.rs.html#781-797">source</a><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
19 ····P:·<a·class="trait"·href="pattern/trait.Pattern.html"·title="trait·alloc::str::pattern::Pattern">Pattern</a>&lt;'a&gt;,19 ····P:·<a·class="trait"·href="pattern/trait.Pattern.html"·title="trait·alloc::str::pattern::Pattern">Pattern</a>&lt;'a&gt;,
20 ····&lt;P·as·<a·class="trait"·href="pattern/trait.Pattern.html"·title="trait·alloc::str::pattern::Pattern">Pattern</a>&lt;'a&gt;&gt;::<a·class="associatedtype"·href="pattern/trait.Pattern.html#associatedtype.Searcher"·title="type·alloc::str::pattern::Pattern::Searcher">Searcher</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/str/iter.rs.html#781-797">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:·890,·SHA:·024f187fd2b8685c1bf59c3ac513cb66192e73d39a22564af507681ae22a6829·...·]/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">where20 ····&lt;P·as·<a·class="trait"·href="pattern/trait.Pattern.html"·title="trait·alloc::str::pattern::Pattern">Pattern</a>&lt;'a&gt;&gt;::<a·class="associatedtype"·href="pattern/trait.Pattern.html#associatedtype.Searcher"·title="type·alloc::str::pattern::Pattern::Searcher">Searcher</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.78.0/src/core/str/iter.rs.html#781-797">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:·1025,·SHA:·b7c30d172350f37934d86ab7234fe7ceab85198af2a58ea670750e1c4f58147a·...·]/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
21 ····P:·<a·class="trait"·href="pattern/trait.Pattern.html"·title="trait·alloc::str::pattern::Pattern">Pattern</a>&lt;'a&gt;,21 ····P:·<a·class="trait"·href="pattern/trait.Pattern.html"·title="trait·alloc::str::pattern::Pattern">Pattern</a>&lt;'a&gt;,
22 ····&lt;P·as·<a·class="trait"·href="pattern/trait.Pattern.html"·title="trait·alloc::str::pattern::Pattern">Pattern</a>&lt;'a&gt;&gt;::<a·class="associatedtype"·href="pattern/trait.Pattern.html#associatedtype.Searcher"·title="type·alloc::str::pattern::Pattern::Searcher">Searcher</a>:·<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#781-797">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:·f450b5ec6dde2d20b913426da21476cc812de295a72a8928004347c5e0863d1e·...·]/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 ····&lt;P·as·<a·class="trait"·href="pattern/trait.Pattern.html"·title="trait·alloc::str::pattern::Pattern">Pattern</a>&lt;'a&gt;&gt;::<a·class="associatedtype"·href="pattern/trait.Pattern.html#associatedtype.Searcher"·title="type·alloc::str::pattern::Pattern::Searcher">Searcher</a>:·<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.78.0/src/core/str/iter.rs.html#781-797">source</a><a·href="#method.next_back"·class="anchor">§</a><h4·class="code-header">fn·<a·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/double_ended/trait.DoubleEndedIterator.html#[·...·truncated·by·diffoscope;·len:·3879,·SHA:·ef0eb7471a86048ca9de83512c9d7ea22311d3dce456ac9cee2bdbed9030cd3b·...·]/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.78.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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(B,·Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.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.78.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.7[·...·truncated·by·diffoscope;·len:·3,·SHA:·7b1bd53949b752d143d871408483b5382371b5bc48d195d0c040ec93cfa2748b·...·]/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:·74b709f2c818a4eda5d85ea863eb2d8af72c87564dbab2746e67feafb0cbb9a3·...·]/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.78.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:·d66ed7e195a53e9945339ef1976aed455dcf80228d8e5b7b0c69a64c3983fea1·...·]/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.78.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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(B,·Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/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:·f8bdf1e28866c7668477ab391452c7cfa7fd52cc69b633e782a157931421b39b·...·]/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.78.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:·c264047794019a6dcf05728ba6a6ee1f8f07c7209958b3366ba94546b527ecdc·...·]/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.78.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:·704,·SHA:·c22c7a324b166ee2ffd89e91fb465a9e447e1af9ec813be5247115b13e64e657·...·]/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">where31 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·866,·SHA:·32601d43bafd7a2800e21d9ce521f3f059e6c0b3a9d2c8b6d5d3a42ca06c718f·...·]/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
32 ····P:·<a·class="trait"·href="pattern/trait.Pattern.html"·title="trait·alloc::str::pattern::Pattern">Pattern</a>&lt;'a&gt;,32 ····P:·<a·class="trait"·href="pattern/trait.Pattern.html"·title="trait·alloc::str::pattern::Pattern">Pattern</a>&lt;'a&gt;,
33 ····&lt;P·as·<a·class="trait"·href="pattern/trait.Pattern.html"·title="trait·alloc::str::pattern::Pattern">Pattern</a>&lt;'a&gt;&gt;::<a·class="associatedtype"·href="pattern/trait.Pattern.html#associatedtype.Searcher"·title="type·alloc::str::pattern::Pattern::Searcher">Searcher</a>:·<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·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·class="primitive"·href="../../core/primitive.str.html">str</a></h4></section></summary><div·class='docblock'>The·type·of·the·elements·bein[·...·truncated·by·diffoscope;·len:·1220,·SHA:·ed13b94d90443ad6ec7fc9f3da159199f8b5bf3f0ddf049f859c6ed5a30d5f3b·...·]/core/primitive.usize.html">usize</a>&gt;(33 ····&lt;P·as·<a·class="trait"·href="pattern/trait.Pattern.html"·title="trait·alloc::str::pattern::Pattern">Pattern</a>&lt;'a&gt;&gt;::<a·class="associatedtype"·href="pattern/trait.Pattern.html#associatedtype.Searcher"·title="type·alloc::str::pattern::Pattern::Searcher">Searcher</a>:·<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·href="#associatedtype.Item"·class="anchor">§</a><h4·class="code-header">type·<a·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·class="associatedtype">Item</a>·=·&amp;'a·<a·class="primitive"·href="https://doc.rust-lang.org/1.78.0/core/primitive.str.html">str</a></h4></section></summa[·...·truncated·by·diffoscope;·len:·1490,·SHA:·ab0e41fb55d63e4264a6005e7b98b16230468f5f7c38c6a9e0a3433e89c673e6·...·]/core/primitive.usize.html">usize</a>&gt;(
34 ····&amp;mut·self34 ····&amp;mut·self
35 )·-&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">where35 )·-&gt;·<a·class="enum"·href="https://doc.rust-lang.org/1.78.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.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title=[·...·truncated·by·diffoscope;·len:·381,·SHA:·88c48923c9b7ea5cc47c1087c60e09656e81d4671c58071ba2bef826335388bc·...·]/core/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
36 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></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:·1593,·SHA:·59204fc1883bd9e8d10e390b843913f01f97378e05bff840116b149bc5b4dc00·...·]/core/primitive.usize.html">usize</a><div·class="where">where36 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experiment[·...·truncated·by·diffoscope;·len:·1890,·SHA:·62ca204af9e3eb9911a3bbbf9669088b55c64885573e7f4b900a3761d117ab1a·...·]/core/primitive.usize.html">usize</a><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,·counting·the·number·of·iterations·and·returning·it.·<a·href="../../core/iter/traits/iterator/trait.I[·...·truncated·by·diffoscope;·len:·579,·SHA:·97df9cdc3f1cc1461e704ebdf0c047ac7c0165f9aec8e9afdc069209b7a15a36·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;<div·class="where">where37 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.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:·741,·SHA:·f3078cc3fddd62af2c1a8814c5854bb49f40b79e4fbc9b3addf5862a72370f82·...·]/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>,</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:·2868,·SHA:·9ec21b8470b914406f4216b9bac831bf85cccf58579bd476408d6168be7cd43e·...·]/core/iter/adapters/step_by/struct.StepBy.html"·title="struct·core::iter::adapters::step_by::StepBy">StepBy</a>&lt;Self&gt;<div·class="where">where38 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.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.78.0/cor[·...·truncated·by·diffoscope;·len:·3408,·SHA:·b62c6ed65b31a8b555c142d9d15f3ce30e5c76ad2630a0e5a9b13cfd478c6eee·...·]/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
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·starting·at·the·same·point,·but·stepping·by39 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.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
40 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"><a·class="src·rightside"·href="../../src/core/iter/tra[·...·truncated·by·diffoscope;·len:·584,·SHA:·fd3e570373eb5121d35d7e22cdd5dd5fbf7183ee80147135a591fd1285174e82·...·]/core/iter/traits/collect/trait.IntoIterator.html#associatedtype.IntoIter"·title="type·core::iter::traits::collect::IntoIterator::IntoIter">IntoIter</a>&gt;<div·class="where">where40 the·given·amount·at·each·iteration.·<a·href="https://doc.rust-lang.org/1.78.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"><a·class="src·rightside"·hr[·...·truncated·by·diffoscope;·len:·746,·SHA:·f1f70d650c102c8658e13890c7dbfc87418f07e7b522246fb579ec434ef64f7c·...·]/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.78.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>&lt;Item·=·Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title=[·...·truncated·by·diffoscope;·len:·1017,·SHA:·c0f5f8cfd297e1678ac0ee2fd847fb6f0577665ac326e8e2e9d6414a710c8f98·...·]/core/iter/traits/collect/trait.IntoIterator.html#associatedtype.IntoIter"·title="type·core::iter::traits::collect::IntoIterator::IntoIter">IntoIter</a>&gt;<div·class="where">where42 ····U:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.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.78.0/core/iter/traits/it[·...·truncated·by·diffoscope;·len:·1233,·SHA:·f677df2d893dfe0dc1a9d31ebb0ba71a346d265781813e0d664d3f18369b6163·...·]/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.78.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>,</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:·c1b5e692e89c9c809075ee8ee72fb15a9ec46c075b08450e1f707d672a224750·...·]/core/iter/adapters/intersperse/struct.IntersperseWith.html"·title="struct·core::iter::adapters::intersperse::IntersperseWith">IntersperseWith</a>&lt;Self,·G&gt;<div·class="where">where44 ····U:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.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:·98627729f77dcf1c9d258f343354ba600b7134c6b3929080f231e8de7155b70b·...·]/core/iter/adapters/intersperse/struct.IntersperseWith.html"·title="struct·core::iter::adapters::intersperse::IntersperseWith">IntersperseWith</a>&lt;Self,·G&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.78.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
46 ····G:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>()·-&gt;·Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iter_intersperse</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/79524">#79524</a>)</span></div></span><div·class='docblock'>Creates·a·new·iterator·which·places·an·item·generated·by·<code>separator</code>46 ····G:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.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.78.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>
47 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"><a·class="src·rightside"·href="../../src/core/i[·...·truncated·by·diffoscope;·len:·267,·SHA:·1764c9d6d2e39e1367ae2111c28ab846e66ecf12617fbff35e0132e82e5c8b13·...·]/core/iter/adapters/map/struct.Map.html"·title="struct·core::iter::adapters::map::Map">Map</a>&lt;Self,·F&gt;<div·class="where">where47 between·adjacent·items·of·the·original·iterator.·<a·href="https://doc.rust-lang.org/1.78.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"><a·class="src·rights[·...·truncated·by·diffoscope;·len:·375,·SHA:·58419346f92e1709dadb70cc3cf356e3cd27972451bdc6b4fc4267e6f7e8bdae·...·]/core/iter/adapters/map/struct.Map.html"·title="struct·core::iter::adapters::map::Map">Map</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.78.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::Item">Item</a>)·-&gt;·B,</div></h4></section></summary><div·class='docblock'>Takes·a·closure·and·creates·an·iterator·which·calls·that·closure·on·each49 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::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
50 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:·fb4c9589a16c7b6d697c109d1193d2f1e763e5dd967101c2fd92b32416972229·...·]/core/iter/traits/iterator/trait.Iterator.html#method.for_each"·class="fn">for_each</a>&lt;F&gt;(self,·f:·F)<div·class="where">where50 element.·<a·href="https://doc.rust-lang.org/1.78.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:·98f6effefa44d759c249143d83623f0055d937382bfc398b7e1f5e92cd413657·...·]/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
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.78.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::[·...·truncated·by·diffoscope;·len:·658,·SHA:·e4449b6c00d036dd30444817045eddaf2697443d65789bb5c0b585ed1bc77702·...·]/core/iter/adapters/filter/struct.Filter.html"·title="struct·core::iter::adapters::filter::Filter">Filter</a>&lt;Self,·P&gt;<div·class="where">where52 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·820,·SHA:·a664bbcbc0891663662e4eb7b4394d0fcd72e568136fc4d34097fea242cc32e7·...·]/core/iter/adapters/filter/struct.Filter.html"·title="struct·core::iter::adapters::filter::Filter">Filter</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.78.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:·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·element54 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·140,·SHA:·752f473b57e7444ebfddf5ea7fd40a332e83ec55524a6c31b5ee0f82a5dea819·...·]/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
55 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"><a·class="src·rightside"·href="../../src/core/iter[·...·truncated·by·diffoscope;·len:·285,·SHA:·738ce0440ff568829f40d141e38e2c0da2fd05d2b73d1a574be0ed9baa32e827·...·]/core/iter/adapters/filter_map/struct.FilterMap.html"·title="struct·core::iter::adapters::filter_map::FilterMap">FilterMap</a>&lt;Self,·F&gt;<div·class="where">where55 should·be·yielded.·<a·href="https://doc.rust-lang.org/1.78.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"><a·class="src·rightside[·...·truncated·by·diffoscope;·len:·393,·SHA:·2e2aa7c9c9c087e7b346da376749064ab8c1894795a2f0a0f646cdc8c7bea997·...·]/core/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
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.78.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:·767,·SHA:·da0fc5bc95a3398627e0c5836423b719ccea45d351e21ddaa96f793f67f9c6de·...·]/core/iter/adapters/enumerate/struct.Enumerate.html"·title="struct·core::iter::adapters::enumerate::Enumerate">Enumerate</a>&lt;Self&gt;<div·class="where">where57 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·956,·SHA:·faba0521e870dbbd26d466fadba3522e7d29013a9b86376fffafffac11a57e0e·...·]/core/iter/adapters/enumerate/struct.Enumerate.html"·title="struct·core::iter::adapters::enumerate::Enumerate">Enumerate</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·gives·the·current·iteration·count·as·well·as58 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.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
59 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"><a·class="src·rightside"·href="../../src/core/ite[·...·truncated·by·diffoscope;·len:·264,·SHA:·e3fa7ab43c6353bc2216a22d7010c41a8ab50d273a128d15d0eff050c058993a·...·]/core/iter/adapters/peekable/struct.Peekable.html"·title="struct·core::iter::adapters::peekable::Peekable">Peekable</a>&lt;Self&gt;<div·class="where">where59 the·next·value.·<a·href="https://doc.rust-lang.org/1.78.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"><a·class="src·rightsid[·...·truncated·by·diffoscope;·len:·372,·SHA:·03eea0861575eb80d3f7a87a3ba747adb1a33fe7e9ce72aa2172e7a287c63a94·...·]/core/iter/adapters/peekable/struct.Peekable.html"·title="struct·core::iter::adapters::peekable::Peekable">Peekable</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·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>·methods60 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.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.78.0/core/iter/adapte[·...·truncated·by·diffoscope;·len:·175,·SHA:·16fe7225bf05b478e2828b347c3d23ded9a22f89d8887a2c65d9f7b3faf1b0e7·...·]/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
61 to·look·at·the·next·element·of·the·iterator·without·consuming·it.·See61 to·look·at·the·next·element·of·the·iterator·without·consuming·it.·See
62 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"><a·class="src·rightside"·href="../../src/core/it[·...·truncated·by·diffoscope;·len:·294,·SHA:·c0aee2077af6a4f81ed47e37c84a75b5f9b941875509fbe0b3d352866f825f45·...·]/core/iter/adapters/skip_while/struct.SkipWhile.html"·title="struct·core::iter::adapters::skip_while::SkipWhile">SkipWhile</a>&lt;Self,·P&gt;<div·class="where">where62 their·documentation·for·more·information.·<a·href="https://doc.rust-lang.org/1.78.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"><a·class="src·rightsi[·...·truncated·by·diffoscope;·len:·402,·SHA:·7689a974f800fd069d1b4453ef62d6d6ad1b654462d624d36e3672051d502030·...·]/core/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
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.78.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:·922,·SHA:·5220bbb4db3c3cd3d7ca7c27520f44f04fe367ee2f0f407fb1d50c0a327a2f99·...·]/core/iter/adapters/take_while/struct.TakeWhile.html"·title="struct·core::iter::adapters::take_while::TakeWhile">TakeWhile</a>&lt;Self,·P&gt;<div·class="where">where64 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·1138,·SHA:·f6ae06b7de8e94df014341c5cf589a5e4a1298367b2ef7a968ec499c5170a70e·...·]/core/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
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.78.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:·869,·SHA:·39eeddf219b211245393e51a591d5064c740fa9be49d88883d8a6474679741ad·...·]/core/iter/adapters/map_while/struct.MapWhile.html"·title="struct·core::iter::adapters::map_while::MapWhile">MapWhile</a>&lt;Self,·P&gt;<div·class="where">where66 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·1058,·SHA:·b390dbdda8d7e93604b5ecd906a93efd03fe19bdaf41cf12893fd361bf974307·...·]/core/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
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.78.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::Iterator::[·...·truncated·by·diffoscope;·len:·851,·SHA:·ad2e090d21a034b7c3836ed38a686f4c483f9a929132fef846d48271f749a79c·...·]/core/iter/adapters/skip/struct.Skip.html"·title="struct·core::iter::adapters::skip::Skip">Skip</a>&lt;Self&gt;<div·class="where">where68 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·1067,·SHA:·415d32e1211c35d3bb405de1d6e51c2102c14cadc3333894f063148dbe0b1f69·...·]/core/iter/adapters/skip/struct.Skip.html"·title="struct·core::iter::adapters::skip::Skip">Skip</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·skips·the·first·<code>n</code>·elements.·<a·href="../../core/iter/traits/iterator/trait.Iterator.h[·...·truncated·by·diffoscope;·len:·525,·SHA:·6471f48fecadc56edf21fc04794b884b96ce06d339c715e410f5a906e028bc28·...·]/core/iter/adapters/take/struct.Take.html"·title="struct·core::iter::adapters::take::Take">Take</a>&lt;Self&gt;<div·class="where">where69 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.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:·687,·SHA:·7f5256104c35c5948a2cb42b55f3048c9d2887e48a4a8226537a284f959c562a·...·]/core/iter/adapters/take/struct.Take.html"·title="struct·core::iter::adapters::take::Take">Take</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·that·yields·the·first·<code>n</code>·elements,·or·fewer70 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.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
71 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"><a·class="src·rightside"·href="../../src/core/iter/traits/[·...·truncated·by·diffoscope;·len:·284,·SHA:·aee83f38f8c40848e159b12a8faa43b9dadf589fe974632a1f15ce2a15834071·...·]/core/iter/adapters/scan/struct.Scan.html"·title="struct·core::iter::adapters::scan::Scan">Scan</a>&lt;Self,·St,·F&gt;<div·class="where">where71 if·the·underlying·iterator·ends·sooner.·<a·href="https://doc.rust-lang.org/1.78.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"><a·class="src·rightside"·href="[·...·truncated·by·diffoscope;·len:·392,·SHA:·4e7da68f7be2622ef173653eca78d58e1f202b544a2e6abd14d8335c298c93a7·...·]/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
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.78.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>(<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,·but73 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(<a·class="primitive"·href="https://doc.rust-lang.org/1.78.0/core/primitive.reference.html">&amp;mut·St</a>,·Self::<a·class="associatedty[·...·truncated·by·diffoscope;·len:·449,·SHA:·f12c268a8a8111b9e7126ad78bf5523a63733caa63d187c4fe792309ea41acdf·...·]/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
74 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:·459,·SHA:·b825570d9672670eacd8828b3abec12cd1c35433286857de28f5ea8d5e300e03·...·]/core/iter/adapters/flatten/struct.FlatMap.html"·title="struct·core::iter::adapters::flatten::FlatMap">FlatMap</a>&lt;Self,·U,·F&gt;<div·class="where">where74 unlike·<a·href="https://doc.rust-lang.org/1.78.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.78.0/core/iter/trai[·...·truncated·by·diffoscope;·len:·594,·SHA:·02960742fa7892efaa08f289ce85865fc5efb6a4cd138c22e3566ca6fc727d78·...·]/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
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.78.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
76 ····U:·<a·class="trait"·href="../../core/iter/traits/collect/trait.IntoIterator.html"·title="trait·core::iter::traits::collect::IntoIterator">IntoIterator</a>,76 ····U:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/collect/trait.IntoIterator.html"·title="trait·core::iter::traits::collect::IntoIterator">IntoIterator</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::Iterator::[·...·truncated·by·diffoscope;·len:·787,·SHA:·9b6a337a3ad68c2a987b52450c153f87a04a8ed9e83603d26077fe6e70d61edf·...·]/core/iter/adapters/map_windows/struct.MapWindows.html"·title="struct·core::iter::adapters::map_windows::MapWindows">MapWindows</a>&lt;Self,·F,·N&gt;<div·class="where">where77 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·976,·SHA:·2a9182f6fe88e0b8a9b1ae1f46cace940cc0b8736033c354c0f0ccbf1c196e7a·...·]/core/iter/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
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.78.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>(&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>·over79 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;[Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtyp[·...·truncated·by·diffoscope;·len:·135,·SHA:·0b06a6094d42ccbc8bce5b01c4383961fe7f1967f05e4c9f1ff33e71e425fb26·...·]/core/primitive.array.html">N</a>])·-&gt;·R,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iter_map_windows</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/87155">#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
80 <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>,80 <code>self</code>·and·returns·an·iterator·over·the·outputs·of·<code>f</code>.·Like·<a·href="https://doc.rust-lang.org/1.78.0/core/primitive.slice.html#method.windows"·title="method·slice::windows"><code>slice::windows()</code></a>,
81 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"><a·class="src·rightside"·href="../../src/core/iter/[·...·truncated·by·diffoscope;·len:·250,·SHA:·e355ddd0f04b2470ee915aec3ad97857be56b95e6a1f3d733d6c477453f4cf0d·...·]/core/iter/adapters/fuse/struct.Fuse.html"·title="struct·core::iter::adapters::fuse::Fuse">Fuse</a>&lt;Self&gt;<div·class="where">where81 the·windows·during·mapping·overlap·as·well.·<a·href="https://doc.rust-lang.org/1.78.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"><a·class="src·rightside"[·...·truncated·by·diffoscope;·len:·358,·SHA:·d91b2ab18e0ce069e262cf523c6ef961f56eecad042ea1e9bcefe33cff28fc8f·...·]/core/iter/adapters/fuse/struct.Fuse.html"·title="struct·core::iter::adapters::fuse::Fuse">Fuse</a>&lt;Self&gt;<div·class="where">where
82 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Creates·an·iterator·which·ends·after·the·first·<a·href="../../core/option/enum.Option.html#variant.None"·title="variant·cor[·...·truncated·by·diffoscope;·len:·583,·SHA:·b7d7d6125e8980756a2636a6b6e01600057c98a027dcf7d267b1f61538a7b6b0·...·]/core/iter/adapters/inspect/struct.Inspect.html"·title="struct·core::iter::adapters::inspect::Inspect">Inspect</a>&lt;Self,·F&gt;<div·class="where">where82 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.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.78.0/core/op[·...·truncated·by·diffoscope;·len:·745,·SHA:·424783f22102f4446d3ad4d362b1aafdb7531fa777213f97ee138aa878f67bd1·...·]/core/iter/adapters/inspect/struct.Inspect.html"·title="struct·core::iter::adapters::inspect::Inspect">Inspect</a>&lt;Self,·F&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.78.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::Itera[·...·truncated·by·diffoscope;·len:·676,·SHA:·ae75f35cafbae1e0e695226baca09b0bec6e4a0ed5656a83c3357b29fb00442d·...·]/core/primitive.reference.html">&amp;mut·Self</a><div·class="where">where84 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·838,·SHA:·9b4fd8df7f41e9a76fd4cfca0a233b74b9bd27c3fe8228248abc3f940425a3e3·...·]/core/primitive.reference.html">&amp;mut·Self</a><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'>Borrows·an·iterator,·rather·than·consuming·it.·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.by_ref">[·...·truncated·by·diffoscope;·len:·319,·SHA:·bbb653fcb1f5ad46e04905bf78a76b9dd63ea5d49a2d8cd5b7b36efbb0f7e105·...·]/core/iter/traits/iterator/trait.Iterator.html#method.collect"·class="fn">collect</a>&lt;B&gt;(self)·-&gt;·B<div·class="where">where85 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.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.78.0/core/it[·...·truncated·by·diffoscope;·len:·427,·SHA:·ecfaaac5d1d10c1bc4fcee9a050af0a268bee0b528c2d8ea4e9774440bd8a279·...·]/core/iter/traits/iterator/trait.Iterator.html#method.collect"·class="fn">collect</a>&lt;B&gt;(self)·-&gt;·B<div·class="where">where
86 ····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;,86 ····B:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.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.78.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><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:·e5d524e874326d0b9b733f5ee809c6595cde869afab0cc3d4ba8454093f420da·...·]/core/primitive.reference.html">&amp;mut·E</a><div·class="where">where87 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.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.78.0/core/iter/tr[·...·truncated·by·diffoscope;·len:·728,·SHA:·01937c2dc314c259495665570ae249c94b4a5b0719718f5f1188e6fc64ecf487·...·]/core/primitive.reference.html">&amp;mut·E</a><div·class="where">where
88 ····E:·<a·class="trait"·href="../../core/iter/traits/collect/trait.Extend.html"·title="trait·core::iter::traits::collect::Extend">Extend</a>&lt;Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;,88 ····E:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.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.78.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><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:·744,·SHA:·a7446142ab67c3f20d866315fbe6cb9c57cd4af012812d6dd19d5061aee6e97b·...·]/core/primitive.tuple.html">(B,·B)</a><div·class="where">where89 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experiment[·...·truncated·by·diffoscope;·len:·879,·SHA:·e773b2222c92d001e295030cb47a780ab0c1132d7fc8e9e3a98de4f532e6c520·...·]/core/primitive.tuple.html">(B,·B)</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.78.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
91 ····B:·<a·class="trait"·href="../../core/default/trait.Default.html"·title="trait·core::default::Default">Default</a>·+·<a·class="trait"·href="../../core/iter/traits/collect/trait.Extend.html"·title="trait·core::iter::traits::collect::Extend">Extend</a>&lt;Self::<a·class="associatedtyp[·...·truncated·by·diffoscope;·len:·14,·SHA:·4105980ca4887a52797067761af25a11e3de6069cd8d7c8ce82cd885bb798fe8·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;,91 ····B:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/default/trait.Default.html"·title="trait·core::default::Default">Default</a>·+·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/collect/trait.Extend.html"·title="trait·core::iter::traits::collec[·...·truncated·by·diffoscope;·len:·95,·SHA:·8b3be1d0042cae0550f865faf5849221240bdf04eb1b2107605b72d48c3ad29c·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;,
92 ····F:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<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:·f8b50287f3e106633ed79a84072d3ddd9d98672efd685d2433c61b5549ce051e·...·]/core/primitive.bool.html">bool</a><div·class="where">where92 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·972,·SHA:·6de765542031617a9c28ac98fe6df619e58e62d9c65ec5b1c185a7152b8944e5·...·]/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.78.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>(Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::[·...·truncated·by·diffoscope;·len:·54,·SHA:·d5ac304cc26edf57442227b641dd21c427d0f9cb322b79986f5b15fc49f867b0·...·]/core/primitive.bool.html">bool</a>,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iter_is_partitioned</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/62544">#62544</a>)</span></div></span><div·class='docblock'>Checks·if·the·elements·of·this·iterator·are·partitioned·according·to·the·given·predicate,94 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·135,·SHA:·51ff5f5c7ebd8440623ea71b125c5a5837e809e308fe1a13fbe19cddb941dbd9·...·]/core/primitive.bool.html">bool</a>,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iter_is_partitioned</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/62544">#62544</a>)</span></div></span><div·class='docblock'>Checks·if·the·elements·of·this·iterator·are·partitioned·according·to·the·given·predicate,
95 such·that·all·those·that·return·<code>true</code>·precede·all·those·that·return·<code>false</code>.·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.is_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:·6f406a351b93047f56fa70265a6bf28ec6874f75cd6cc5a39d51c7af462f2992·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_fold"·class="fn">try_fold</a>&lt;B,·F,·R&gt;(&amp;mut·self,·init:·B,·f:·F)·-&gt;·R<div·class="where">where95 such·that·all·those·that·return·<code>true</code>·precede·all·those·that·return·<code>false</code>.·<a·href="https://doc.rust-lang.org/1.78.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:·2c74873f4e5ba70004a1c7edd1cc3f9e2d91271295dd1591e2d26848df4c02ba·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_fold"·class="fn">try_fold</a>&lt;B,·F,·R&gt;(&amp;mut·self,·init:·B,·f:·F)·-&gt;·R<div·class="where">where
96 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,96 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.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>(B,·Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·R,97 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(B,·Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·R,
98 ····R:·<a·class="trait"·href="../../core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&lt;Output·=·B&gt;,</div></h4></section></summary><div·class='docblock'>An·iterator·method·that·applies·a·function·as·long·as·it·returns98 ····R:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.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
99 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:·eecdce021399d206eb3ef5af12ee7663b4eb0dca55b0f411c7fa66f605b6b2e2·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_for_each"·class="fn">try_for_each</a>&lt;F,·R&gt;(&amp;mut·self,·f:·F)·-&gt;·R<div·class="where">where99 successfully,·producing·a·single,·final·value.·<a·href="https://doc.rust-lang.org/1.78.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:·52912e82c4b0a760d06f77eb4ee3a59ba70dd76cb532954900c73ae94c652674·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_for_each"·class="fn">try_for_each</a>&lt;F,·R&gt;(&amp;mut·self,·f:·F)·-&gt;·R<div·class="where">where
100 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,100 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.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::Item">Item</a>)·-&gt;·R,101 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·R,
102 ····R:·<a·class="trait"·href="../../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·the102 ····R:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.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.78.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
103 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"><a·class="src·rightside"·href="../../src/core/iter[·...·truncated·by·diffoscope;·len:·130,·SHA:·75c0150024fe6cdc702d7337508ab57600248490dd062768204ddb064c9a1b8b·...·]/core/iter/traits/iterator/trait.Iterator.html#method.fold"·class="fn">fold</a>&lt;B,·F&gt;(self,·init:·B,·f:·F)·-&gt;·B<div·class="where">where103 iterator,·stopping·at·the·first·error·and·returning·that·error.·<a·href="https://doc.rust-lang.org/1.78.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"><a·class="src·rightside[·...·truncated·by·diffoscope;·len:·211,·SHA:·924e062acd8127e8d6158162219ee5d57a941854e14063d21d7768edae549431·...·]/core/iter/traits/iterator/trait.Iterator.html#method.fold"·class="fn">fold</a>&lt;B,·F&gt;(self,·init:·B,·f:·F)·-&gt;·B<div·class="where">where
104 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,104 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.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>(B,·Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·B,</div></h4></section></summary><div·class='docblock'>Folds·every·element·into·an·accumulator·by·applying·an·operation,105 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(B,·Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·B,</div></h4></section></summary><div·class='docblock'>Folds·every·element·into·an·accumulator·by·applying·an·operation,
106 returning·the·final·result.·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.fold">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:·dbe3a08fe63abd47570741e71208c31aaf51152feac5917db07665a1f56bb3e3·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;<div·class="where">where106 returning·the·final·result.·<a·href="https://doc.rust-lang.org/1.78.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:·b60215068a6d9721be05f81098c51167d7138c4042f140cad42f77c4df43f597·...·]/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.78.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:·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·reducing108 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·352,·SHA:·e7c3c296abe2c0a183967153e4ae7fd50bafa2ae7088e3e78b3b48fee253adc6·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>,</div></h4></section></summary><div·class='docblock'>Reduces·the·elements·to·a·single·one,·by·repeatedly·applying·a·reducing
109 operation.·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.reduce">Read·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:·a9dce8bb557b5a11426bf2ffcbd5eea7c6c870833e3ee5bb072dcaaa11687b0c·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_reduce"·class="fn">try_reduce</a>&lt;F,·R&gt;(109 operation.·<a·href="https://doc.rust-lang.org/1.78.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:·7a18fdd041b1a001b4a8feb289ee127fd9240232239269eb35dc3b8f74783ec9·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_reduce"·class="fn">try_reduce</a>&lt;F,·R&gt;(
110 ····&amp;mut·self,110 ····&amp;mut·self,
111 ····f:·F111 ····f:·F
112 )·-&gt;·&lt;&lt;R·as·<a·class="trait"·href="../../core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&gt;::<a·class="associatedtype"·href="../../core/ops/try_trait/trait.Try.html#associatedtype.Residual"·title="type·core::ops::try_trait::Try::Residual">Residual</a>·as·[·...·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">where112 )·-&gt;·&lt;&lt;R·as·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&gt;::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/ops/try_trait/trait.Try.html#associatedtype.Residual"·title="type[·...·truncated·by·diffoscope;·len:·754,·SHA:·6fb4dfdb6b4da68921c1e7f8b75d99cf293d58318d684a840254ce9576957bea·...·]/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.78.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:·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:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·140,·SHA:·c27972e6fa3464c9476eaa185e8657edb6bb294f148403f3d079285294a9f909·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·R,
115 ····R:·<a·class="trait"·href="../../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.78.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.78.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.78.0/core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&gt;::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/ops/try_trait/trait.Try.html#associatedtype.Residual"·title="type[·...·truncated·by·diffoscope;·len:·412,·SHA:·22b8cbb007e5cce82b9d13a65bfa56aa8d83c32541fac25f4d9b3857b0540908·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;&gt;,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iterator_try_reduce</code>&nbsp;<a·href="https://github.com/rust-lang/rust/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"><a·class="src·rightside"·href="../../src/core/iter/tr[·...·truncated·by·diffoscope;·len:·272,·SHA:·97959736d897a01242f49f2e45854ab874bf0c9bbe30acad9a49eb73169e457c·...·]/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.78.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"><a·class="src·rightside"·h[·...·truncated·by·diffoscope;·len:·380,·SHA:·29c4004d4d8b0c8c9dfe9023f8b2c5ef801d9dc4688893035d182c1ae774c453·...·]/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.78.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:·733,·SHA:·9bb9f0199d90f78ad65c59dbe67a1c751cd5a681130a03bef3b1e8ed907a3bba·...·]/core/primitive.bool.html">bool</a><div·class="where">where119 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·922,·SHA:·f4fd532c280e18f28bd6dda6c2a129e2e92114b67f27235bb5fd39f725be9c43·...·]/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.78.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:·860,·SHA:·6a94ae33b82eb12a91660811a8ab9d243468d885c07ac766a2507d25a4e7ee62·...·]/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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·1076,·SHA:·2dd9de8adaee4a5ee96501d9a58bfac2fea00ba8d78b834bfca29949b3afe18b·...·]/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.78.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:·21d7086b3ce0092e3f7a6a41174339bbd8724e7d186158db4db3385a73d94e8e·...·]/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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·1051,·SHA:·ecc0b8fccd861464760f9ae047ff6ab98c91a1db010cb5fa59a8c2ab883db7c4·...·]/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.78.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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·130,·SHA:·130a13019dc175d02304b4f550157e2f13ac15c2f25a979c74161d10b146ab89·...·]/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:·ac4da3337aac1ec10038e246be9cb719eeb5af1acc709f5a6a25b91900c56f53·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_find"·class="fn">try_find</a>&lt;F,·R&gt;(126 the·first·non-none·result.·<a·href="https://doc.rust-lang.org/1.78.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:·8ced1b10e78750774c5c8ed995ed83dcd13983aa75d329acf8069da106ab9f4a·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_find"·class="fn">try_find</a>&lt;F,·R&gt;(
127 ····&amp;mut·self,127 ····&amp;mut·self,
Max diff block lines reached; 140930/306834 bytes (45.93%) of diff not shown.
281 KB
./usr/share/doc/rust-web-doc/html/alloc/str/struct.RSplitN.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="Created·with·the·method·`rsplitn`."><title>RSplitN·in·alloc::str·-·Rust</title><script>·if·(window.location.protocol·!==·"file:")·document.write(`<link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/SourceSerif4-Regular-46f98efaafac5295.ttf.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/FiraSans-Regular-018c141bf0843ffd.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/FiraSans-Medium-8f9a781e4970d388.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/SourceCodePro-Regular-562dcc5011b6de7d.ttf.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/SourceCodePro-Semibold-d899c5a5c4aeb14a.ttf.woff2">`)</script><link·rel="stylesheet"·href="../../static.files/normalize-76eba96aa4d2e634.css"><link·rel="stylesheet"·href="../../static.files/rustdoc-35f9e32502181f1e.css"><meta·name="rustdoc-vars"·data-root-path="../../"·data-static-root-path="../../static.files/"·data-current-crate="alloc"·data-themes=""·data-resource-suffix="1.78.0"·data-rustdoc-version="1.78.0"·data-channel="1.78.0"·data-search-js="search-42d8da7a6b9792c2.js"·data-settings-js="settings-4313503d2e1961c2.js"·><script·src="../../static.files/storage-4c98445ec4002617.js"></script><script·defer·src="sidebar-items1.78.0.js"></script><script·defer·src="../../static.files/main-12cf3b4f4f9dc36d.js"></script><noscript><link·rel="stylesheet"·href="../../static.files/noscript-04d5337699b92874.css"></noscript><link·rel="alternate·icon"·type="image/png"·href="../../static.files/favicon-16x16-8b506e7a72182f1c.png"><link·rel="alternate·icon"·type="image/png"·href="../../static.files/favicon-32x32-422f7d1d52889060.png"><link·rel="icon"·type="image/svg+xml"·href="../../static.files/favicon-2c020d218678b618.svg"></head><body·class="rustdoc·struct"><!--[if·lte·IE·11]><div·class="warning">This·old·browser·is·unsupported·and·will·most·likely·display·funky·things.</div><![endif]--><nav·class="mobile-topbar"><button·class="sidebar-menu-toggle"·title="show·sidebar"></button><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-151179464ae7ed46.svg"·alt=""></a></nav><nav·class="sidebar"><div·class="sidebar-crate"><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-151179464ae7ed46.svg"·alt="logo"></a><h2><a·href="../../alloc/index.html">alloc</a><span·class="version">1.78.0</span></h2></div><h2·class="location"><a·href="#">RSplitN</a></h2><div·class="sidebar-elems"><section><h3><a·href="#implementations">Methods</a></h3><ul·class="block·method"><li><a·href="#method.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">Clone</a></li><li><a·href="#impl-Debug-for-RSplitN%3C'a,+P%3E">Debug</a></li><li><a·href="#impl-FusedIterator-for-RSplitN%3C'a,+P%3E">FusedIterator</a></li><li><a·href="#impl-Iterator-for-RSplitN%3C'a,+P%3E">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">Freeze</a></li><li><a·href="#impl-RefUnwindSafe-for-RSplitN%3C'a,+P%3E">RefUnwindSafe</a></li><li><a·href="#impl-Send-for-RSplitN%3C'a,+P%3E">Send</a></li><li><a·href="#impl-Sync-for-RSplitN%3C'a,+P%3E">Sync</a></li><li><a·href="#impl-Unpin-for-RSplitN%3C'a,+P%3E">Unpin</a></li><li><a·href="#impl-UnwindSafe-for-RSplitN%3C'a,+P%3E">UnwindSafe</a></li></ul><h3><a·href="#blanket-implementations">Blanket·Implementations</a></h3><ul·class="block·blanket-implementation"><li><a·href="#impl-Any-for-T">Any</a></li><li><a·href="#impl-Borrow%3CT%3E-for-T">Borrow&lt;T&gt;</a></li><li><a·href="#impl-BorrowMut%3CT%3E-for-T">BorrowMut&lt;T&gt;</a></li><li><a·href="#impl-From%3CT%3E-for-T">From&lt;T&gt;</a></li><li><a·href="#impl-Into%3CU%3E-for-T">Into&lt;U&gt;</a></li><li><a·href="#impl-IntoIterator-for-I">IntoIterator</a></li><li><a·href="#impl-ToOwned-for-T">ToOwned</a></li><li><a·href="#impl-TryFrom%3CU%3E-for-T">TryFrom&lt;U&gt;</a></li><li><a·href="#impl-TryInto%3CU%3E-for-T">TryInto&lt;U&gt;</a></li></ul></section><h2><a·href="index.html">In·alloc::str</a></h2></div></nav><div·class="sidebar-resizer"></div>1 <!DOCTYPE·html><html·lang="en"><head><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.write(`<link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/SourceSerif4-Regular-46f98efaafac5295.ttf.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/FiraSans-Regular-018c141bf0843ffd.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/FiraSans-Medium-8f9a781e4970d388.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/SourceCodePro-Regular-562dcc5011b6de7d.ttf.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/SourceCodePro-Semibold-d899c5a5c4aeb14a.ttf.woff2">`)</script><link·rel="stylesheet"·href="../../static.files/normalize-76eba96aa4d2e634.css"><link·rel="stylesheet"·href="../../static.files/rustdoc-35f9e32502181f1e.css"><meta·name="rustdoc-vars"·data-root-path="../../"·data-static-root-path="../../static.files/"·data-current-crate="alloc"·data-themes=""·data-resource-suffix="1.78.0"·data-rustdoc-version="1.78.0"·data-channel="1.78.0"·data-search-js="search-42d8da7a6b9792c2.js"·data-settings-js="settings-4313503d2e1961c2.js"·><script·src="../../static.files/storage-4c98445ec4002617.js"></script><script·defer·src="sidebar-items1.78.0.js"></script><script·defer·src="../../static.files/main-12cf3b4f4f9dc36d.js"></script><noscript><link·rel="stylesheet"·href="../../static.files/noscript-04d5337699b92874.css"></noscript><link·rel="alternate·icon"·type="image/png"·href="../../static.files/favicon-16x16-8b506e7a72182f1c.png"><link·rel="alternate·icon"·type="image/png"·href="../../static.files/favicon-32x32-422f7d1d52889060.png"><link·rel="icon"·type="image/svg+xml"·href="../../static.files/favicon-2c020d218678b618.svg"></head><body·class="rustdoc·struct"><!--[if·lte·IE·11]><div·class="warning">This·old·browser·is·unsupported·and·will·most·likely·display·funky·things.</div><![endif]--><nav·class="mobile-topbar"><button·class="sidebar-menu-toggle"·title="show·sidebar"></button><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-151179464ae7ed46.svg"·alt=""></a></nav><nav·class="sidebar"><div·class="sidebar-crate"><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-151179464ae7ed46.svg"·alt="logo"></a><h2><a·href="../../alloc/index.html">alloc</a><span·class="version">1.78.0</span></h2></div><h2·class="location"><a·href="#">RSplitN</a></h2><div·class="sidebar-elems"><section><h3><a·href="#implementations">Methods</a></h3><ul·class="block·method"><li><a·href="#method.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">Clone</a></li><li><a·href="#impl-Debug-for-RSplitN%3C'a,+P%3E">Debug</a></li><li><a·href="#impl-FusedIterator-for-RSplitN%3C'a,+P%3E">FusedIterator</a></li><li><a·href="#impl-Iterator-for-RSplitN%3C'a,+P%3E">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">Freeze</a></li><li><a·href="#impl-RefUnwindSafe-for-RSplitN%3C'a,+P%3E">RefUnwindSafe</a></li><li><a·href="#impl-Send-for-RSplitN%3C'a,+P%3E">Send</a></li><li><a·href="#impl-Sync-for-RSplitN%3C'a,+P%3E">Sync</a></li><li><a·href="#impl-Unpin-for-RSplitN%3C'a,+P%3E">Unpin</a></li><li><a·href="#impl-UnwindSafe-for-RSplitN%3C'a,+P%3E">UnwindSafe</a></li></ul><h3><a·href="#blanket-implementations">Blanket·Implementations</a></h3><ul·class="block·blanket-implementation"><li><a·href="#impl-Any-for-T">Any</a></li><li><a·href="#impl-Borrow%3CT%3E-for-T">Borrow&lt;T&gt;</a></li><li><a·href="#impl-BorrowMut%3CT%3E-for-T">BorrowMut&lt;T&gt;</a></li><li><a·href="#impl-From%3CT%3E-for-T">From&lt;T&gt;</a></li><li><a·href="#impl-Into%3CU%3E-for-T">Into&lt;U&gt;</a></li><li><a·href="#impl-IntoIterator-for-I">IntoIterator</a></li><li><a·href="#impl-ToOwned-for-T">ToOwned</a></li><li><a·href="#impl-TryFrom%3CU%3E-for-T">TryFrom&lt;U&gt;</a></li><li><a·href="#impl-TryInto%3CU%3E-for-T">TryInto&lt;U&gt;</a></li></ul></section><h2><a·href="index.html">In·alloc::str</a></h2></div></nav><div·class="sidebar-resizer"></div>
2 ····<main><div·class="width-limiter"><nav·class="sub"><form·class="search-form"><span></span><div·id="sidebar-button"·tabindex="-1"><a·href="../../alloc/all.html"·title="show·sidebar"></a></div><input·class="search-input"·name="search"·aria-label="Run·search·in·the·documentation"·autocomplete="off"·spellcheck="false"·placeholder="Click·or·press·‘S’·to·search,·‘?’·for·more·options…"·type="search"><div·id="help-button"·tabindex="-1"><a·href="../../help.html"·title="help">?</a></div><div·id="settings-menu"·tabindex="-1"><a·href="../../settings.html"·title="settings"><img·width="22"·height="22"·alt="Change·settings"·src="../../static.files/wheel-7b819b6101059cd0.svg"></a></div></form></nav><section·id="main-content"·class="content"><div·class="main-heading"><h1>Struct·<a·href="../index.html">alloc</a>::<wbr><a·href="index.html">str</a>::<wbr><a·class="struct"·href="#">RSplitN</a><button·id="copy-path"·title="Copy·item·path·to·clipboard"><img·src="../../static.files/clipboard-7571035ce49a181d.svg"·width="19"·height="18"·alt="Copy·item·path"></button></h1><span·class="out-of-band"><span·class="since"·title="Stable·since·Rust·version·1.0.0">1.0.0</span>···<a·class="src"·href="../../src/core/str/iter.rs.html#972-988">source</a>···<button·id="toggle-all-docs"·title="collapse·all·docs">[<span>&#x2212;</span>]</button></span></div><pre·class="rust·item-decl"><code>pub·struct·RSplitN&lt;'a,·P&gt;(<span·class="comment">/*·private·fields·*/</span>)2 ····<main><div·class="width-limiter"><nav·class="sub"><form·class="search-form"><span></span><div·id="sidebar-button"·tabindex="-1"><a·href="../../alloc/all.html"·title="show·sidebar"></a></div><input·class="search-input"·name="search"·aria-label="Run·search·in·the·documentation"·autocomplete="off"·spellcheck="false"·placeholder="Click·or·press·‘S’·to·search,·‘?’·for·more·options…"·type="search"><div·id="help-button"·tabindex="-1"><a·href="../../help.html"·title="help">?</a></div><div·id="settings-menu"·tabindex="-1"><a·href="../../settings.html"·title="settings"><img·width="22"·height="22"·alt="Change·settings"·src="../../static.files/wheel-7b819b6101059cd0.svg"></a></div></form></nav><section·id="main-content"·class="content"><div·class="main-heading"><h1>Struct·<a·href="../index.html">alloc</a>::<wbr><a·href="index.html">str</a>::<wbr><a·class="struct"·href="#">RSplitN</a><button·id="copy-path"·title="Copy·item·path·to·clipboard"><img·src="../../static.files/clipboard-7571035ce49a181d.svg"·width="19"·height="18"·alt="Copy·item·path"></button></h1><span·class="out-of-band"><span·class="since"·title="Stable·since·Rust·version·1.0.0">1.0.0</span>···<a·class="src"·href="https://doc.rust-lang.org/1.78.0/src/core/str/iter.rs.html#972-988">source</a>···<button·id="toggle-all-docs"·title="collapse·all·docs">[<span>&#x2212;</span>]</button></span></div><pre·class="rust·item-decl"><code>pub·struct·RSplitN&lt;'a,·P&gt;(<span·class="comment">/*·private·fields·*/</span>)
3 <span·class="where">where3 <span·class="where">where
4 ····P:·<a·class="trait"·href="pattern/trait.Pattern.html"·title="trait·alloc::str::pattern::Pattern">Pattern</a>&lt;'a&gt;</span>;</code></pre><details·class="toggle·top-doc"·open><summary·class="hideme"><span>Expand·description</span></summary><div·class="docblock"><p>Created·with·the·method·<a·href="../../core/primitive.str.html#method.rsplitn"·title="method·str::rsplitn"><code>rsplitn</code></a>.</p>4 ····P:·<a·class="trait"·href="pattern/trait.Pattern.html"·title="trait·alloc::str::pattern::Pattern">Pattern</a>&lt;'a&gt;</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.78.0/core/primitive.str.html#method.rsplitn"·title="method·str::rsplitn"><code>rsplitn</code></a>.</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-RSplitN%3C'a,+P%3E"·class="impl"><a·class="src·rightside"·href="../../src/core/str/iter.rs.html#1013">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">where5 </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.78.0/src/core/str/iter.rs.html#1013">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
6 ····P:·<a·class="trait"·href="pattern/trait.Pattern.html"·title="trait·alloc::str::pattern::Pattern">Pattern</a>&lt;'a&gt;,</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#1031">source</a><h4·class="code-header">pub·fn·<a·href="#method.remainder"·class="fn">remainder</a>(&amp;self)·-&gt;·<a·class="enum"·href="../../core/option/enum.Option.html"·title="enum·core::option::Option">Option</a>&lt;&[·...·truncated·by·diffoscope;·len:·39,·SHA:·41bc7c8805f528ad91e84bb44389035feda1ffcf00c9068bb255ec8aab508c79·...·]/core/primitive.str.html">str</a>&gt;</h4></section><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>str_split_remainder</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/77998">#77998</a>)</span></div></span></summary><div·class="docblock"><p>Returns·remainder·of·the·split·string.</p>6 ····P:·<a·class="trait"·href="pattern/trait.Pattern.html"·title="trait·alloc::str::pattern::Pattern">Pattern</a>&lt;'a&gt;,</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.78.0/src/core/str/iter.rs.html#1031">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.78.0/core/option/enum.Option.h[·...·truncated·by·diffoscope;·len:·120,·SHA:·24a3d8de8932a0d2d085ee46870b5ae0d77fff28a02c3dbb30118574fc961eef·...·]/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>
7 <p>If·the·iterator·is·empty,·returns·<code>None</code>.</p>7 <p>If·the·iterator·is·empty,·returns·<code>None</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="attr">#![feature(str_split_remainder)]9 <div·class="example-wrap"><pre·class="rust·rust-example-rendered"><code><span·class="attr">#![feature(str_split_remainder)]
10 </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><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>);
11 <span·class="macro">assert_eq!</span>(split.remainder(),·<span·class="prelude-val">Some</span>(<span·class="string">"Mary·had·a·little·lamb"</span>));11 <span·class="macro">assert_eq!</span>(split.remainder(),·<span·class="prelude-val">Some</span>(<span·class="string">"Mary·had·a·little·lamb"</span>));
12 split.next();12 split.next();
13 <span·class="macro">assert_eq!</span>(split.remainder(),·<span·class="prelude-val">Some</span>(<span·class="string">"Mary·had·a·little"</span>));13 <span·class="macro">assert_eq!</span>(split.remainder(),·<span·class="prelude-val">Some</span>(<span·class="string">"Mary·had·a·little"</span>));
14 split.by_ref().for_each(drop);14 split.by_ref().for_each(drop);
15 <span·class="macro">assert_eq!</span>(split.remainder(),·<span·class="prelude-val">None</span>);</code></pre><a·class="test-arrow"·target="_blank"·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">Run</a></div>15 <span·class="macro">assert_eq!</span>(split.remainder(),·<span·class="prelude-val">None</span>);</code></pre><a·class="test-arrow"·target="_blank"·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">Run</a></div>
16 </div></details></div></details></div><h2·id="trait-implementations"·class="section-header">Trait·Implementations<a·href="#trait-implementations"·class="anchor">§</a></h2><div·id="trait-implementations-list"><details·class="toggle·implementors-toggle"·open><summary><section·id="impl-Clone-for-RSplitN%3C'a,+P%3E"·class="impl"><a·class="src·rightside"·href="../../src/core/str/iter.rs.html#972-988">source</a><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">where16 </div></details></div></details></div><h2·id="trait-implementations"·class="section-header">Trait·Implementations<a·href="#trait-implementations"·class="anchor">§</a></h2><div·id="trait-implementations-list"><details·class="toggle·implementors-toggle"·open><summary><section·id="impl-Clone-for-RSplitN%3C'a,+P%3E"·class="impl"><a·class="src·rightside"·href="https://doc.rust-lang.org/1.78.0/src/core/str/iter.rs.html#972-988">source</a><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.78.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
17 ····P:·<a·class="trait"·href="pattern/trait.Pattern.html"·title="trait·alloc::str::pattern::Pattern">Pattern</a>&lt;'a&gt;,17 ····P:·<a·class="trait"·href="pattern/trait.Pattern.html"·title="trait·alloc::str::pattern::Pattern">Pattern</a>&lt;'a&gt;,
18 ····&lt;P·as·<a·class="trait"·href="pattern/trait.Pattern.html"·title="trait·alloc::str::pattern::Pattern">Pattern</a>&lt;'a&gt;&gt;::<a·class="associatedtype"·href="pattern/trait.Pattern.html#associatedtype.Searcher"·title="type·alloc::str::pattern::Pattern::Searcher">Searcher</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"><details·class="toggle·method-toggle"·open><summary><section·id="method.clone"·class="method·trait-impl"><a·class="src·righ[·...·truncated·by·diffoscope;·len:·1387,·SHA:·0e6b408acefed251d75172e123a22d1e91eb2029767505e787abfb0fe0f55727·...·]/src/core/str/iter.rs.html#972-988">source</a><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">where18 ····&lt;P·as·<a·class="trait"·href="pattern/trait.Pattern.html"·title="trait·alloc::str::pattern::Pattern">Pattern</a>&lt;'a&gt;&gt;::<a·class="associatedtype"·href="pattern/trait.Pattern.html#associatedtype.Searcher"·title="type·alloc::str::pattern::Pattern::Searcher">Searcher</a>:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.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:·1630,·SHA:·88248750cc8fad2ff566dd1534239541c6fa11651223459ddac685c5d5aa3be2·...·]/src/core/str/iter.rs.html#972-988">source</a><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
19 ····P:·<a·class="trait"·href="pattern/trait.Pattern.html"·title="trait·alloc::str::pattern::Pattern">Pattern</a>&lt;'a&gt;,19 ····P:·<a·class="trait"·href="pattern/trait.Pattern.html"·title="trait·alloc::str::pattern::Pattern">Pattern</a>&lt;'a&gt;,
20 ····&lt;P·as·<a·class="trait"·href="pattern/trait.Pattern.html"·title="trait·alloc::str::pattern::Pattern">Pattern</a>&lt;'a&gt;&gt;::<a·class="associatedtype"·href="pattern/trait.Pattern.html#associatedtype.Searcher"·title="type·alloc::str::pattern::Pattern::Searcher">Searcher</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/str/iter.rs.html#972-988">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:·870,·SHA:·2694b1ddab4e12f5f6ed774ad3f94ead148e3f9253567c6930291599280c5e63·...·]/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">where20 ····&lt;P·as·<a·class="trait"·href="pattern/trait.Pattern.html"·title="trait·alloc::str::pattern::Pattern">Pattern</a>&lt;'a&gt;&gt;::<a·class="associatedtype"·href="pattern/trait.Pattern.html#associatedtype.Searcher"·title="type·alloc::str::pattern::Pattern::Searcher">Searcher</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.78.0/src/core/str/iter.rs.html#972-988">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:·1005,·SHA:·4f51671c67bdb7aa37771923ca0b41b94c234b613a4d2ce9c7327f5ba254a8c7·...·]/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
21 ····P:·<a·class="trait"·href="pattern/trait.Pattern.html"·title="trait·alloc::str::pattern::Pattern">Pattern</a>&lt;'a&gt;,21 ····P:·<a·class="trait"·href="pattern/trait.Pattern.html"·title="trait·alloc::str::pattern::Pattern">Pattern</a>&lt;'a&gt;,
22 ····&lt;P·as·<a·class="trait"·href="pattern/trait.Pattern.html"·title="trait·alloc::str::pattern::Pattern">Pattern</a>&lt;'a&gt;&gt;::<a·class="associatedtype"·href="pattern/trait.Pattern.html#associatedtype.Searcher"·title="type·alloc::str::pattern::Pattern::Searcher">Searcher</a>:·<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·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·class="primitive"·href="../../core/primitive.str.html">str</a></h4></section></summary><div·class='docblock'>The·type·of·the·elements·bein[·...·truncated·by·diffoscope;·len:·1220,·SHA:·96a568135243441563bd55abb9f71b31a3a23df690c583a964a52261d16db208·...·]/core/primitive.usize.html">usize</a>&gt;(22 ····&lt;P·as·<a·class="trait"·href="pattern/trait.Pattern.html"·title="trait·alloc::str::pattern::Pattern">Pattern</a>&lt;'a&gt;&gt;::<a·class="associatedtype"·href="pattern/trait.Pattern.html#associatedtype.Searcher"·title="type·alloc::str::pattern::Pattern::Searcher">Searcher</a>:·<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·href="#associatedtype.Item"·class="anchor">§</a><h4·class="code-header">type·<a·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·class="associatedtype">Item</a>·=·&amp;'a·<a·class="primitive"·href="https://doc.rust-lang.org/1.78.0/core/primitive.str.html">str</a></h4></section></summa[·...·truncated·by·diffoscope;·len:·1490,·SHA:·0be776785993c7313becb7769d9b2f2d61459bd8ae21dad545be73b562a91475·...·]/core/primitive.usize.html">usize</a>&gt;(
23 ····&amp;mut·self23 ····&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.78.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.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title=[·...·truncated·by·diffoscope;·len:·381,·SHA:·88c48923c9b7ea5cc47c1087c60e09656e81d4671c58071ba2bef826335388bc·...·]/core/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:·1593,·SHA:·59204fc1883bd9e8d10e390b843913f01f97378e05bff840116b149bc5b4dc00·...·]/core/primitive.usize.html">usize</a><div·class="where">where25 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experiment[·...·truncated·by·diffoscope;·len:·1890,·SHA:·62ca204af9e3eb9911a3bbbf9669088b55c64885573e7f4b900a3761d117ab1a·...·]/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:·579,·SHA:·97df9cdc3f1cc1461e704ebdf0c047ac7c0165f9aec8e9afdc069209b7a15a36·...·]/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.78.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:·741,·SHA:·f3078cc3fddd62af2c1a8814c5854bb49f40b79e4fbc9b3addf5862a72370f82·...·]/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:·2868,·SHA:·9ec21b8470b914406f4216b9bac831bf85cccf58579bd476408d6168be7cd43e·...·]/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.78.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.78.0/cor[·...·truncated·by·diffoscope;·len:·3408,·SHA:·b62c6ed65b31a8b555c142d9d15f3ce30e5c76ad2630a0e5a9b13cfd478c6eee·...·]/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.78.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"><a·class="src·rightside"·href="../../src/core/iter/tra[·...·truncated·by·diffoscope;·len:·584,·SHA:·fd3e570373eb5121d35d7e22cdd5dd5fbf7183ee80147135a591fd1285174e82·...·]/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.78.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"><a·class="src·rightside"·hr[·...·truncated·by·diffoscope;·len:·746,·SHA:·f1f70d650c102c8658e13890c7dbfc87418f07e7b522246fb579ec434ef64f7c·...·]/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.78.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:·1017,·SHA:·c0f5f8cfd297e1678ac0ee2fd847fb6f0577665ac326e8e2e9d6414a710c8f98·...·]/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.78.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.78.0/core/iter/traits/it[·...·truncated·by·diffoscope;·len:·1233,·SHA:·f677df2d893dfe0dc1a9d31ebb0ba71a346d265781813e0d664d3f18369b6163·...·]/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.78.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:·c1b5e692e89c9c809075ee8ee72fb15a9ec46c075b08450e1f707d672a224750·...·]/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.78.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:·98627729f77dcf1c9d258f343354ba600b7134c6b3929080f231e8de7155b70b·...·]/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.78.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.78.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.78.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"><a·class="src·rightside"·href="../../src/core/i[·...·truncated·by·diffoscope;·len:·267,·SHA:·1764c9d6d2e39e1367ae2111c28ab846e66ecf12617fbff35e0132e82e5c8b13·...·]/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.78.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"><a·class="src·rights[·...·truncated·by·diffoscope;·len:·375,·SHA:·58419346f92e1709dadb70cc3cf356e3cd27972451bdc6b4fc4267e6f7e8bdae·...·]/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.78.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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::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:·fb4c9589a16c7b6d697c109d1193d2f1e763e5dd967101c2fd92b32416972229·...·]/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.78.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:·98f6effefa44d759c249143d83623f0055d937382bfc398b7e1f5e92cd413657·...·]/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.78.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:·658,·SHA:·e4449b6c00d036dd30444817045eddaf2697443d65789bb5c0b585ed1bc77702·...·]/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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·820,·SHA:·a664bbcbc0891663662e4eb7b4394d0fcd72e568136fc4d34097fea242cc32e7·...·]/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.78.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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·140,·SHA:·752f473b57e7444ebfddf5ea7fd40a332e83ec55524a6c31b5ee0f82a5dea819·...·]/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"><a·class="src·rightside"·href="../../src/core/iter[·...·truncated·by·diffoscope;·len:·285,·SHA:·738ce0440ff568829f40d141e38e2c0da2fd05d2b73d1a574be0ed9baa32e827·...·]/core/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.78.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"><a·class="src·rightside[·...·truncated·by·diffoscope;·len:·393,·SHA:·2e2aa7c9c9c087e7b346da376749064ab8c1894795a2f0a0f646cdc8c7bea997·...·]/core/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.78.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:·767,·SHA:·da0fc5bc95a3398627e0c5836423b719ccea45d351e21ddaa96f793f67f9c6de·...·]/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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·956,·SHA:·faba0521e870dbbd26d466fadba3522e7d29013a9b86376fffafffac11a57e0e·...·]/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.78.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"><a·class="src·rightside"·href="../../src/core/ite[·...·truncated·by·diffoscope;·len:·264,·SHA:·e3fa7ab43c6353bc2216a22d7010c41a8ab50d273a128d15d0eff050c058993a·...·]/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.78.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"><a·class="src·rightsid[·...·truncated·by·diffoscope;·len:·372,·SHA:·03eea0861575eb80d3f7a87a3ba747adb1a33fe7e9ce72aa2172e7a287c63a94·...·]/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.78.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.78.0/core/iter/adapte[·...·truncated·by·diffoscope;·len:·175,·SHA:·16fe7225bf05b478e2828b347c3d23ded9a22f89d8887a2c65d9f7b3faf1b0e7·...·]/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"><a·class="src·rightside"·href="../../src/core/it[·...·truncated·by·diffoscope;·len:·294,·SHA:·c0aee2077af6a4f81ed47e37c84a75b5f9b941875509fbe0b3d352866f825f45·...·]/core/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.78.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"><a·class="src·rightsi[·...·truncated·by·diffoscope;·len:·402,·SHA:·7689a974f800fd069d1b4453ef62d6d6ad1b654462d624d36e3672051d502030·...·]/core/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.78.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:·922,·SHA:·5220bbb4db3c3cd3d7ca7c27520f44f04fe367ee2f0f407fb1d50c0a327a2f99·...·]/core/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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·1138,·SHA:·f6ae06b7de8e94df014341c5cf589a5e4a1298367b2ef7a968ec499c5170a70e·...·]/core/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.78.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:·39eeddf219b211245393e51a591d5064c740fa9be49d88883d8a6474679741ad·...·]/core/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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·1058,·SHA:·b390dbdda8d7e93604b5ecd906a93efd03fe19bdaf41cf12893fd361bf974307·...·]/core/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.78.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:·851,·SHA:·ad2e090d21a034b7c3836ed38a686f4c483f9a929132fef846d48271f749a79c·...·]/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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·1067,·SHA:·415d32e1211c35d3bb405de1d6e51c2102c14cadc3333894f063148dbe0b1f69·...·]/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:·525,·SHA:·6471f48fecadc56edf21fc04794b884b96ce06d339c715e410f5a906e028bc28·...·]/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.78.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:·687,·SHA:·7f5256104c35c5948a2cb42b55f3048c9d2887e48a4a8226537a284f959c562a·...·]/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.78.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"><a·class="src·rightside"·href="../../src/core/iter/traits/[·...·truncated·by·diffoscope;·len:·284,·SHA:·aee83f38f8c40848e159b12a8faa43b9dadf589fe974632a1f15ce2a15834071·...·]/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.78.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"><a·class="src·rightside"·href="[·...·truncated·by·diffoscope;·len:·392,·SHA:·4e7da68f7be2622ef173653eca78d58e1f202b544a2e6abd14d8335c298c93a7·...·]/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.78.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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(<a·class="primitive"·href="https://doc.rust-lang.org/1.78.0/core/primitive.reference.html">&amp;mut·St</a>,·Self::<a·class="associatedty[·...·truncated·by·diffoscope;·len:·449,·SHA:·f12c268a8a8111b9e7126ad78bf5523a63733caa63d187c4fe792309ea41acdf·...·]/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:·459,·SHA:·b825570d9672670eacd8828b3abec12cd1c35433286857de28f5ea8d5e300e03·...·]/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.78.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.78.0/core/iter/trai[·...·truncated·by·diffoscope;·len:·594,·SHA:·02960742fa7892efaa08f289ce85865fc5efb6a4cd138c22e3566ca6fc727d78·...·]/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.78.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.78.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:·9b6a337a3ad68c2a987b52450c153f87a04a8ed9e83603d26077fe6e70d61edf·...·]/core/iter/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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·976,·SHA:·2a9182f6fe88e0b8a9b1ae1f46cace940cc0b8736033c354c0f0ccbf1c196e7a·...·]/core/iter/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.78.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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;[Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtyp[·...·truncated·by·diffoscope;·len:·135,·SHA:·0b06a6094d42ccbc8bce5b01c4383961fe7f1967f05e4c9f1ff33e71e425fb26·...·]/core/primitive.array.html">N</a>])·-&gt;·R,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iter_map_windows</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/87155">#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.78.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"><a·class="src·rightside"·href="../../src/core/iter/[·...·truncated·by·diffoscope;·len:·250,·SHA:·e355ddd0f04b2470ee915aec3ad97857be56b95e6a1f3d733d6c477453f4cf0d·...·]/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.78.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"><a·class="src·rightside"[·...·truncated·by·diffoscope;·len:·358,·SHA:·d91b2ab18e0ce069e262cf523c6ef961f56eecad042ea1e9bcefe33cff28fc8f·...·]/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:·583,·SHA:·b7d7d6125e8980756a2636a6b6e01600057c98a027dcf7d267b1f61538a7b6b0·...·]/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.78.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.78.0/core/op[·...·truncated·by·diffoscope;·len:·745,·SHA:·424783f22102f4446d3ad4d362b1aafdb7531fa777213f97ee138aa878f67bd1·...·]/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.78.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:·676,·SHA:·ae75f35cafbae1e0e695226baca09b0bec6e4a0ed5656a83c3357b29fb00442d·...·]/core/primitive.reference.html">&amp;mut·Self</a><div·class="where">where73 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·838,·SHA:·9b4fd8df7f41e9a76fd4cfca0a233b74b9bd27c3fe8228248abc3f940425a3e3·...·]/core/primitive.reference.html">&amp;mut·Self</a><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:·319,·SHA:·bbb653fcb1f5ad46e04905bf78a76b9dd63ea5d49a2d8cd5b7b36efbb0f7e105·...·]/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.78.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.78.0/core/it[·...·truncated·by·diffoscope;·len:·427,·SHA:·ecfaaac5d1d10c1bc4fcee9a050af0a268bee0b528c2d8ea4e9774440bd8a279·...·]/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.78.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.78.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:·e5d524e874326d0b9b733f5ee809c6595cde869afab0cc3d4ba8454093f420da·...·]/core/primitive.reference.html">&amp;mut·E</a><div·class="where">where76 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.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.78.0/core/iter/tr[·...·truncated·by·diffoscope;·len:·728,·SHA:·01937c2dc314c259495665570ae249c94b4a5b0719718f5f1188e6fc64ecf487·...·]/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.78.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.78.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:·744,·SHA:·a7446142ab67c3f20d866315fbe6cb9c57cd4af012812d6dd19d5061aee6e97b·...·]/core/primitive.tuple.html">(B,·B)</a><div·class="where">where78 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experiment[·...·truncated·by·diffoscope;·len:·879,·SHA:·e773b2222c92d001e295030cb47a780ab0c1132d7fc8e9e3a98de4f532e6c520·...·]/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.78.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.78.0/core/default/trait.Default.html"·title="trait·core::default::Default">Default</a>·+·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/collect/trait.Extend.html"·title="trait·core::iter::traits::collec[·...·truncated·by·diffoscope;·len:·95,·SHA:·8b3be1d0042cae0550f865faf5849221240bdf04eb1b2107605b72d48c3ad29c·...·]/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:·783,·SHA:·f8b50287f3e106633ed79a84072d3ddd9d98672efd685d2433c61b5549ce051e·...·]/core/primitive.bool.html">bool</a><div·class="where">where81 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·972,·SHA:·6de765542031617a9c28ac98fe6df619e58e62d9c65ec5b1c185a7152b8944e5·...·]/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.78.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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·135,·SHA:·51ff5f5c7ebd8440623ea71b125c5a5837e809e308fe1a13fbe19cddb941dbd9·...·]/core/primitive.bool.html">bool</a>,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iter_is_partitioned</code>&nbsp;<a·href="https://github.com/rust-lang/rust/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:·6f406a351b93047f56fa70265a6bf28ec6874f75cd6cc5a39d51c7af462f2992·...·]/core/iter/traits/iterator/trait.Iterator.html#method.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.78.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:·2c74873f4e5ba70004a1c7edd1cc3f9e2d91271295dd1591e2d26848df4c02ba·...·]/core/iter/traits/iterator/trait.Iterator.html#method.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.78.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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(B,·Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.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.78.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:·eecdce021399d206eb3ef5af12ee7663b4eb0dca55b0f411c7fa66f605b6b2e2·...·]/core/iter/traits/iterator/trait.Iterator.html#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.78.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:·52912e82c4b0a760d06f77eb4ee3a59ba70dd76cb532954900c73ae94c652674·...·]/core/iter/traits/iterator/trait.Iterator.html#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.78.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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.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.78.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.78.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"><a·class="src·rightside"·href="../../src/core/iter[·...·truncated·by·diffoscope;·len:·130,·SHA:·75c0150024fe6cdc702d7337508ab57600248490dd062768204ddb064c9a1b8b·...·]/core/iter/traits/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.78.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"><a·class="src·rightside[·...·truncated·by·diffoscope;·len:·211,·SHA:·924e062acd8127e8d6158162219ee5d57a941854e14063d21d7768edae549431·...·]/core/iter/traits/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.78.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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(B,·Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::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:·dbe3a08fe63abd47570741e71208c31aaf51152feac5917db07665a1f56bb3e3·...·]/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.78.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:·b60215068a6d9721be05f81098c51167d7138c4042f140cad42f77c4df43f597·...·]/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.78.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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·352,·SHA:·e7c3c296abe2c0a183967153e4ae7fd50bafa2ae7088e3e78b3b48fee253adc6·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::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:·a9dce8bb557b5a11426bf2ffcbd5eea7c6c870833e3ee5bb072dcaaa11687b0c·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_reduce"·class="fn">try_reduce</a>&lt;F,·R&gt;(98 operation.·<a·href="https://doc.rust-lang.org/1.78.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:·7a18fdd041b1a001b4a8feb289ee127fd9240232239269eb35dc3b8f74783ec9·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_reduce"·class="fn">try_reduce</a>&lt;F,·R&gt;(
99 ····&amp;mut·self,99 ····&amp;mut·self,
100 ····f:·F100 ····f:·F
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.78.0/core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&gt;::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/ops/try_trait/trait.Try.html#associatedtype.Residual"·title="type[·...·truncated·by·diffoscope;·len:·754,·SHA:·6fb4dfdb6b4da68921c1e7f8b75d99cf293d58318d684a840254ce9576957bea·...·]/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.78.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:·59,·SHA:·3d53eece7c48858eda31192ab2620ae144896b35400c945bbf3eb5dc06bf8d12·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·R,103 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·140,·SHA:·c27972e6fa3464c9476eaa185e8657edb6bb294f148403f3d079285294a9f909·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·R,
104 ····R:·<a·class="trait"·href="../../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.78.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.78.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.78.0/core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&gt;::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/ops/try_trait/trait.Try.html#associatedtype.Residual"·title="type[·...·truncated·by·diffoscope;·len:·412,·SHA:·22b8cbb007e5cce82b9d13a65bfa56aa8d83c32541fac25f4d9b3857b0540908·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;&gt;,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iterator_try_reduce</code>&nbsp;<a·href="https://github.com/rust-lang/rust/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"><a·class="src·rightside"·href="../../src/core/iter/tr[·...·truncated·by·diffoscope;·len:·272,·SHA:·97959736d897a01242f49f2e45854ab874bf0c9bbe30acad9a49eb73169e457c·...·]/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.78.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"><a·class="src·rightside"·h[·...·truncated·by·diffoscope;·len:·380,·SHA:·29c4004d4d8b0c8c9dfe9023f8b2c5ef801d9dc4688893035d182c1ae774c453·...·]/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.78.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:·733,·SHA:·9bb9f0199d90f78ad65c59dbe67a1c751cd5a681130a03bef3b1e8ed907a3bba·...·]/core/primitive.bool.html">bool</a><div·class="where">where108 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·922,·SHA:·f4fd532c280e18f28bd6dda6c2a129e2e92114b67f27235bb5fd39f725be9c43·...·]/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.78.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:·860,·SHA:·6a94ae33b82eb12a91660811a8ab9d243468d885c07ac766a2507d25a4e7ee62·...·]/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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·1076,·SHA:·2dd9de8adaee4a5ee96501d9a58bfac2fea00ba8d78b834bfca29949b3afe18b·...·]/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.78.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:·21d7086b3ce0092e3f7a6a41174339bbd8724e7d186158db4db3385a73d94e8e·...·]/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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·1051,·SHA:·ecc0b8fccd861464760f9ae047ff6ab98c91a1db010cb5fa59a8c2ab883db7c4·...·]/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.78.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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·130,·SHA:·130a13019dc175d02304b4f550157e2f13ac15c2f25a979c74161d10b146ab89·...·]/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:·ac4da3337aac1ec10038e246be9cb719eeb5af1acc709f5a6a25b91900c56f53·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_find"·class="fn">try_find</a>&lt;F,·R&gt;(115 the·first·non-none·result.·<a·href="https://doc.rust-lang.org/1.78.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:·8ced1b10e78750774c5c8ed995ed83dcd13983aa75d329acf8069da106ab9f4a·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_find"·class="fn">try_find</a>&lt;F,·R&gt;(
116 ····&amp;mut·self,116 ····&amp;mut·self,
117 ····f:·F117 ····f:·F
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.78.0/core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&gt;::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/ops/try_trait/trait.Try.html#associatedtype.Residual"·title="type[·...·truncated·by·diffoscope;·len:·626,·SHA:·95f9831257b68862cbcbf54f0ad2ff4e597a4c9f763112d1da8a0897dadcf872·...·]/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.78.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;·R,120 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·R,
121 ····R:·<a·class="trait"·href="../../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.78.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.78.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.78.0/core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&gt;::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/ops/try_trait/trait.Try.html#associatedtype.Residual"·title="type[·...·truncated·by·diffoscope;·len:·412,·SHA:·22b8cbb007e5cce82b9d13a65bfa56aa8d83c32541fac25f4d9b3857b0540908·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;&gt;,</div></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"><a·class="src·rightside"·href="../../src/core/iter[·...·truncated·by·diffoscope;·len:·404,·SHA:·f45e13f24791f759991b5b3c0f29ce7cc9019b87d7ca444f65464e8a939e287c·...·]/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.78.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"><a·class="src·rightside[·...·truncated·by·diffoscope;·len:·539,·SHA:·04e329705f11ed9ec269a68b0b75ac4ab26c78e4316a571ee9336c28bbca6359·...·]/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.78.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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·1190,·SHA:·882e9e9a037f916d0ed4aa6d749399e6e01ca81811eacfc54a484818cb5d5029·...·]/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.78.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.78.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
Max diff block lines reached; 90558/287816 bytes (31.46%) of diff not shown.
301 KB
./usr/share/doc/rust-web-doc/html/alloc/str/struct.RSplitTerminator.html
    
Offset 1, 230 lines modifiedOffset 1, 230 lines modified
1 <!DOCTYPE·html><html·lang="en"><head><meta·charset="utf-8"><meta·name="viewport"·content="width=device-width,·initial-scale=1.0"><meta·name="generator"·content="rustdoc"><meta·name="description"·content="Created·with·the·method·`rsplit_terminator`."><title>RSplitTerminator·in·alloc::str·-·Rust</title><script>·if·(window.location.protocol·!==·"file:")·document.write(`<link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/SourceSerif4-Regular-46f98efaafac5295.ttf.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/FiraSans-Regular-018c141bf0843ffd.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/FiraSans-Medium-8f9a781e4970d388.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/SourceCodePro-Regular-562dcc5011b6de7d.ttf.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/SourceCodePro-Semibold-d899c5a5c4aeb14a.ttf.woff2">`)</script><link·rel="stylesheet"·href="../../static.files/normalize-76eba96aa4d2e634.css"><link·rel="stylesheet"·href="../../static.files/rustdoc-35f9e32502181f1e.css"><meta·name="rustdoc-vars"·data-root-path="../../"·data-static-root-path="../../static.files/"·data-current-crate="alloc"·data-themes=""·data-resource-suffix="1.78.0"·data-rustdoc-version="1.78.0"·data-channel="1.78.0"·data-search-js="search-42d8da7a6b9792c2.js"·data-settings-js="settings-4313503d2e1961c2.js"·><script·src="../../static.files/storage-4c98445ec4002617.js"></script><script·defer·src="sidebar-items1.78.0.js"></script><script·defer·src="../../static.files/main-12cf3b4f4f9dc36d.js"></script><noscript><link·rel="stylesheet"·href="../../static.files/noscript-04d5337699b92874.css"></noscript><link·rel="alternate·icon"·type="image/png"·href="../../static.files/favicon-16x16-8b506e7a72182f1c.png"><link·rel="alternate·icon"·type="image/png"·href="../../static.files/favicon-32x32-422f7d1d52889060.png"><link·rel="icon"·type="image/svg+xml"·href="../../static.files/favicon-2c020d218678b618.svg"></head><body·class="rustdoc·struct"><!--[if·lte·IE·11]><div·class="warning">This·old·browser·is·unsupported·and·will·most·likely·display·funky·things.</div><![endif]--><nav·class="mobile-topbar"><button·class="sidebar-menu-toggle"·title="show·sidebar"></button><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-151179464ae7ed46.svg"·alt=""></a></nav><nav·class="sidebar"><div·class="sidebar-crate"><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-151179464ae7ed46.svg"·alt="logo"></a><h2><a·href="../../alloc/index.html">alloc</a><span·class="version">1.78.0</span></h2></div><h2·class="location"><a·href="#">RSplitTerminator</a></h2><div·class="sidebar-elems"><section><h3><a·href="#implementations">Methods</a></h3><ul·class="block·method"><li><a·href="#method.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">Clone</a></li><li><a·href="#impl-Debug-for-RSplitTerminator%3C'a,+P%3E">Debug</a></li><li><a·href="#impl-DoubleEndedIterator-for-RSplitTerminator%3C'a,+P%3E">DoubleEndedIterator</a></li><li><a·href="#impl-FusedIterator-for-RSplitTerminator%3C'a,+P%3E">FusedIterator</a></li><li><a·href="#impl-Iterator-for-RSplitTerminator%3C'a,+P%3E">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">Freeze</a></li><li><a·href="#impl-RefUnwindSafe-for-RSplitTerminator%3C'a,+P%3E">RefUnwindSafe</a></li><li><a·href="#impl-Send-for-RSplitTerminator%3C'a,+P%3E">Send</a></li><li><a·href="#impl-Sync-for-RSplitTerminator%3C'a,+P%3E">Sync</a></li><li><a·href="#impl-Unpin-for-RSplitTerminator%3C'a,+P%3E">Unpin</a></li><li><a·href="#impl-UnwindSafe-for-RSplitTerminator%3C'a,+P%3E">UnwindSafe</a></li></ul><h3><a·href="#blanket-implementations">Blanket·Implementations</a></h3><ul·class="block·blanket-implementation"><li><a·href="#impl-Any-for-T">Any</a></li><li><a·href="#impl-Borrow%3CT%3E-for-T">Borrow&lt;T&gt;</a></li><li><a·href="#impl-BorrowMut%3CT%3E-for-T">BorrowMut&lt;T&gt;</a></li><li><a·href="#impl-From%3CT%3E-for-T">From&lt;T&gt;</a></li><li><a·href="#impl-Into%3CU%3E-for-T">Into&lt;U&gt;</a></li><li><a·href="#impl-IntoIterator-for-I">IntoIterator</a></li><li><a·href="#impl-ToOwned-for-T">ToOwned</a></li><li><a·href="#impl-TryFrom%3CU%3E-for-T">TryFrom&lt;U&gt;</a></li><li><a·href="#impl-TryInto%3CU%3E-for-T">TryInto&lt;U&gt;</a></li></ul></section><h2><a·href="index.html">In·alloc::str</a></h2></div></nav><div·class="sidebar-resizer"></div>1 <!DOCTYPE·html><html·lang="en"><head><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.write(`<link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/SourceSerif4-Regular-46f98efaafac5295.ttf.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/FiraSans-Regular-018c141bf0843ffd.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/FiraSans-Medium-8f9a781e4970d388.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/SourceCodePro-Regular-562dcc5011b6de7d.ttf.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/SourceCodePro-Semibold-d899c5a5c4aeb14a.ttf.woff2">`)</script><link·rel="stylesheet"·href="../../static.files/normalize-76eba96aa4d2e634.css"><link·rel="stylesheet"·href="../../static.files/rustdoc-35f9e32502181f1e.css"><meta·name="rustdoc-vars"·data-root-path="../../"·data-static-root-path="../../static.files/"·data-current-crate="alloc"·data-themes=""·data-resource-suffix="1.78.0"·data-rustdoc-version="1.78.0"·data-channel="1.78.0"·data-search-js="search-42d8da7a6b9792c2.js"·data-settings-js="settings-4313503d2e1961c2.js"·><script·src="../../static.files/storage-4c98445ec4002617.js"></script><script·defer·src="sidebar-items1.78.0.js"></script><script·defer·src="../../static.files/main-12cf3b4f4f9dc36d.js"></script><noscript><link·rel="stylesheet"·href="../../static.files/noscript-04d5337699b92874.css"></noscript><link·rel="alternate·icon"·type="image/png"·href="../../static.files/favicon-16x16-8b506e7a72182f1c.png"><link·rel="alternate·icon"·type="image/png"·href="../../static.files/favicon-32x32-422f7d1d52889060.png"><link·rel="icon"·type="image/svg+xml"·href="../../static.files/favicon-2c020d218678b618.svg"></head><body·class="rustdoc·struct"><!--[if·lte·IE·11]><div·class="warning">This·old·browser·is·unsupported·and·will·most·likely·display·funky·things.</div><![endif]--><nav·class="mobile-topbar"><button·class="sidebar-menu-toggle"·title="show·sidebar"></button><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-151179464ae7ed46.svg"·alt=""></a></nav><nav·class="sidebar"><div·class="sidebar-crate"><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-151179464ae7ed46.svg"·alt="logo"></a><h2><a·href="../../alloc/index.html">alloc</a><span·class="version">1.78.0</span></h2></div><h2·class="location"><a·href="#">RSplitTerminator</a></h2><div·class="sidebar-elems"><section><h3><a·href="#implementations">Methods</a></h3><ul·class="block·method"><li><a·href="#method.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">Clone</a></li><li><a·href="#impl-Debug-for-RSplitTerminator%3C'a,+P%3E">Debug</a></li><li><a·href="#impl-DoubleEndedIterator-for-RSplitTerminator%3C'a,+P%3E">DoubleEndedIterator</a></li><li><a·href="#impl-FusedIterator-for-RSplitTerminator%3C'a,+P%3E">FusedIterator</a></li><li><a·href="#impl-Iterator-for-RSplitTerminator%3C'a,+P%3E">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">Freeze</a></li><li><a·href="#impl-RefUnwindSafe-for-RSplitTerminator%3C'a,+P%3E">RefUnwindSafe</a></li><li><a·href="#impl-Send-for-RSplitTerminator%3C'a,+P%3E">Send</a></li><li><a·href="#impl-Sync-for-RSplitTerminator%3C'a,+P%3E">Sync</a></li><li><a·href="#impl-Unpin-for-RSplitTerminator%3C'a,+P%3E">Unpin</a></li><li><a·href="#impl-UnwindSafe-for-RSplitTerminator%3C'a,+P%3E">UnwindSafe</a></li></ul><h3><a·href="#blanket-implementations">Blanket·Implementations</a></h3><ul·class="block·blanket-implementation"><li><a·href="#impl-Any-for-T">Any</a></li><li><a·href="#impl-Borrow%3CT%3E-for-T">Borrow&lt;T&gt;</a></li><li><a·href="#impl-BorrowMut%3CT%3E-for-T">BorrowMut&lt;T&gt;</a></li><li><a·href="#impl-From%3CT%3E-for-T">From&lt;T&gt;</a></li><li><a·href="#impl-Into%3CU%3E-for-T">Into&lt;U&gt;</a></li><li><a·href="#impl-IntoIterator-for-I">IntoIterator</a></li><li><a·href="#impl-ToOwned-for-T">ToOwned</a></li><li><a·href="#impl-TryFrom%3CU%3E-for-T">TryFrom&lt;U&gt;</a></li><li><a·href="#impl-TryInto%3CU%3E-for-T">TryInto&lt;U&gt;</a></li></ul></section><h2><a·href="index.html">In·alloc::str</a></h2></div></nav><div·class="sidebar-resizer"></div>
2 ····<main><div·class="width-limiter"><nav·class="sub"><form·class="search-form"><span></span><div·id="sidebar-button"·tabindex="-1"><a·href="../../alloc/all.html"·title="show·sidebar"></a></div><input·class="search-input"·name="search"·aria-label="Run·search·in·the·documentation"·autocomplete="off"·spellcheck="false"·placeholder="Click·or·press·‘S’·to·search,·‘?’·for·more·options…"·type="search"><div·id="help-button"·tabindex="-1"><a·href="../../help.html"·title="help">?</a></div><div·id="settings-menu"·tabindex="-1"><a·href="../../settings.html"·title="settings"><img·width="22"·height="22"·alt="Change·settings"·src="../../static.files/wheel-7b819b6101059cd0.svg"></a></div></form></nav><section·id="main-content"·class="content"><div·class="main-heading"><h1>Struct·<a·href="../index.html">alloc</a>::<wbr><a·href="index.html">str</a>::<wbr><a·class="struct"·href="#">RSplitTerminator</a><button·id="copy-path"·title="Copy·item·path·to·clipboard"><img·src="../../static.files/clipboard-7571035ce49a181d.svg"·width="19"·height="18"·alt="Copy·item·path"></button></h1><span·class="out-of-band"><span·class="since"·title="Stable·since·Rust·version·1.0.0">1.0.0</span>···<a·class="src"·href="../../src/core/str/iter.rs.html#845-861">source</a>···<button·id="toggle-all-docs"·title="collapse·all·docs">[<span>&#x2212;</span>]</button></span></div><pre·class="rust·item-decl"><code>pub·struct·RSplitTerminator&lt;'a,·P&gt;(<span·class="comment">/*·private·fields·*/</span>)2 ····<main><div·class="width-limiter"><nav·class="sub"><form·class="search-form"><span></span><div·id="sidebar-button"·tabindex="-1"><a·href="../../alloc/all.html"·title="show·sidebar"></a></div><input·class="search-input"·name="search"·aria-label="Run·search·in·the·documentation"·autocomplete="off"·spellcheck="false"·placeholder="Click·or·press·‘S’·to·search,·‘?’·for·more·options…"·type="search"><div·id="help-button"·tabindex="-1"><a·href="../../help.html"·title="help">?</a></div><div·id="settings-menu"·tabindex="-1"><a·href="../../settings.html"·title="settings"><img·width="22"·height="22"·alt="Change·settings"·src="../../static.files/wheel-7b819b6101059cd0.svg"></a></div></form></nav><section·id="main-content"·class="content"><div·class="main-heading"><h1>Struct·<a·href="../index.html">alloc</a>::<wbr><a·href="index.html">str</a>::<wbr><a·class="struct"·href="#">RSplitTerminator</a><button·id="copy-path"·title="Copy·item·path·to·clipboard"><img·src="../../static.files/clipboard-7571035ce49a181d.svg"·width="19"·height="18"·alt="Copy·item·path"></button></h1><span·class="out-of-band"><span·class="since"·title="Stable·since·Rust·version·1.0.0">1.0.0</span>···<a·class="src"·href="https://doc.rust-lang.org/1.78.0/src/core/str/iter.rs.html#845-861">source</a>···<button·id="toggle-all-docs"·title="collapse·all·docs">[<span>&#x2212;</span>]</button></span></div><pre·class="rust·item-decl"><code>pub·struct·RSplitTerminator&lt;'a,·P&gt;(<span·class="comment">/*·private·fields·*/</span>)
3 <span·class="where">where3 <span·class="where">where
4 ····P:·<a·class="trait"·href="pattern/trait.Pattern.html"·title="trait·alloc::str::pattern::Pattern">Pattern</a>&lt;'a&gt;</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>4 ····P:·<a·class="trait"·href="pattern/trait.Pattern.html"·title="trait·alloc::str::pattern::Pattern">Pattern</a>&lt;'a&gt;</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.78.0/core/primitive.str.html#method.rsplit_terminator"·title="method·str::rsplit_terminator"><code>rsplit_terminator</code></a>.</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-RSplitTerminator%3C'a,+P%3E"·class="impl"><a·class="src·rightside"·href="../../src/core/str/iter.rs.html#886">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">where5 </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.78.0/src/core/str/iter.rs.html#886">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
6 ····P:·<a·class="trait"·href="pattern/trait.Pattern.html"·title="trait·alloc::str::pattern::Pattern">Pattern</a>&lt;'a&gt;,</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#904">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>6 ····P:·<a·class="trait"·href="pattern/trait.Pattern.html"·title="trait·alloc::str::pattern::Pattern">Pattern</a>&lt;'a&gt;,</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.78.0/src/core/str/iter.rs.html#904">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.78.0/core/option/enum.Option.ht[·...·truncated·by·diffoscope;·len:·119,·SHA:·93ff891486a9feb9f66ae41889129f6d0e1c0abe8a2d0e28ca30689ceede13fe·...·]/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>
7 <p>If·the·iterator·is·empty,·returns·<code>None</code>.</p>7 <p>If·the·iterator·is·empty,·returns·<code>None</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="attr">#![feature(str_split_remainder)]9 <div·class="example-wrap"><pre·class="rust·rust-example-rendered"><code><span·class="attr">#![feature(str_split_remainder)]
10 </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><span·class="kw">let·</span><span·class="kw-2">mut·</span>split·=·<span·class="string">"A..B.."</span>.rsplit_terminator(<span·class="string">'.'</span>);
11 <span·class="macro">assert_eq!</span>(split.remainder(),·<span·class="prelude-val">Some</span>(<span·class="string">"A..B.."</span>));11 <span·class="macro">assert_eq!</span>(split.remainder(),·<span·class="prelude-val">Some</span>(<span·class="string">"A..B.."</span>));
12 split.next();12 split.next();
13 <span·class="macro">assert_eq!</span>(split.remainder(),·<span·class="prelude-val">Some</span>(<span·class="string">"A..B"</span>));13 <span·class="macro">assert_eq!</span>(split.remainder(),·<span·class="prelude-val">Some</span>(<span·class="string">"A..B"</span>));
14 split.by_ref().for_each(drop);14 split.by_ref().for_each(drop);
15 <span·class="macro">assert_eq!</span>(split.remainder(),·<span·class="prelude-val">None</span>);</code></pre><a·class="test-arrow"·target="_blank"·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">Run</a></div>15 <span·class="macro">assert_eq!</span>(split.remainder(),·<span·class="prelude-val">None</span>);</code></pre><a·class="test-arrow"·target="_blank"·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">Run</a></div>
16 </div></details></div></details></div><h2·id="trait-implementations"·class="section-header">Trait·Implementations<a·href="#trait-implementations"·class="anchor">§</a></h2><div·id="trait-implementations-list"><details·class="toggle·implementors-toggle"·open><summary><section·id="impl-Clone-for-RSplitTerminator%3C'a,+P%3E"·class="impl"><a·class="src·rightside"·href="../../src/core/str/iter.rs.html#845-861">source</a><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">where16 </div></details></div></details></div><h2·id="trait-implementations"·class="section-header">Trait·Implementations<a·href="#trait-implementations"·class="anchor">§</a></h2><div·id="trait-implementations-list"><details·class="toggle·implementors-toggle"·open><summary><section·id="impl-Clone-for-RSplitTerminator%3C'a,+P%3E"·class="impl"><a·class="src·rightside"·href="https://doc.rust-lang.org/1.78.0/src/core/str/iter.rs.html#845-861">source</a><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.78.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
17 ····P:·<a·class="trait"·href="pattern/trait.Pattern.html"·title="trait·alloc::str::pattern::Pattern">Pattern</a>&lt;'a&gt;,17 ····P:·<a·class="trait"·href="pattern/trait.Pattern.html"·title="trait·alloc::str::pattern::Pattern">Pattern</a>&lt;'a&gt;,
18 ····&lt;P·as·<a·class="trait"·href="pattern/trait.Pattern.html"·title="trait·alloc::str::pattern::Pattern">Pattern</a>&lt;'a&gt;&gt;::<a·class="associatedtype"·href="pattern/trait.Pattern.html#associatedtype.Searcher"·title="type·alloc::str::pattern::Pattern::Searcher">Searcher</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"><details·class="toggle·method-toggle"·open><summary><section·id="method.clone"·class="method·trait-impl"><a·class="src·righ[·...·truncated·by·diffoscope;·len:·1432,·SHA:·683e7a6f0a04471aa4bb1092bf8bc32e2537251f4bf80df7836da38750a0409a·...·]/src/core/str/iter.rs.html#845-861">source</a><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">where18 ····&lt;P·as·<a·class="trait"·href="pattern/trait.Pattern.html"·title="trait·alloc::str::pattern::Pattern">Pattern</a>&lt;'a&gt;&gt;::<a·class="associatedtype"·href="pattern/trait.Pattern.html#associatedtype.Searcher"·title="type·alloc::str::pattern::Pattern::Searcher">Searcher</a>:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.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:·1675,·SHA:·927129491765120afdb060d46eddc97337fdd35095de64ddb28e4ff9e07ffd96·...·]/src/core/str/iter.rs.html#845-861">source</a><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
19 ····P:·<a·class="trait"·href="pattern/trait.Pattern.html"·title="trait·alloc::str::pattern::Pattern">Pattern</a>&lt;'a&gt;,19 ····P:·<a·class="trait"·href="pattern/trait.Pattern.html"·title="trait·alloc::str::pattern::Pattern">Pattern</a>&lt;'a&gt;,
20 ····&lt;P·as·<a·class="trait"·href="pattern/trait.Pattern.html"·title="trait·alloc::str::pattern::Pattern">Pattern</a>&lt;'a&gt;&gt;::<a·class="associatedtype"·href="pattern/trait.Pattern.html#associatedtype.Searcher"·title="type·alloc::str::pattern::Pattern::Searcher">Searcher</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/str/iter.rs.html#845-861">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:·910,·SHA:·42c2e4f379f79c495fb995158a7fef0e348043f86ccc7622958780b26f393e93·...·]/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">where20 ····&lt;P·as·<a·class="trait"·href="pattern/trait.Pattern.html"·title="trait·alloc::str::pattern::Pattern">Pattern</a>&lt;'a&gt;&gt;::<a·class="associatedtype"·href="pattern/trait.Pattern.html#associatedtype.Searcher"·title="type·alloc::str::pattern::Pattern::Searcher">Searcher</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.78.0/src/core/str/iter.rs.html#845-861">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:·1045,·SHA:·3aba4feee934382376a11c0480de46da99ae611a18f0dcae51ee2dccb6f7bbe5·...·]/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
21 ····P:·<a·class="trait"·href="pattern/trait.Pattern.html"·title="trait·alloc::str::pattern::Pattern">Pattern</a>&lt;'a&gt;,21 ····P:·<a·class="trait"·href="pattern/trait.Pattern.html"·title="trait·alloc::str::pattern::Pattern">Pattern</a>&lt;'a&gt;,
22 ····&lt;P·as·<a·class="trait"·href="pattern/trait.Pattern.html"·title="trait·alloc::str::pattern::Pattern">Pattern</a>&lt;'a&gt;&gt;::<a·class="associatedtype"·href="pattern/trait.Pattern.html#associatedtype.Searcher"·title="type·alloc::str::pattern::Pattern::Searcher">Searcher</a>:·<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#845-861">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:·f450b5ec6dde2d20b913426da21476cc812de295a72a8928004347c5e0863d1e·...·]/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 ····&lt;P·as·<a·class="trait"·href="pattern/trait.Pattern.html"·title="trait·alloc::str::pattern::Pattern">Pattern</a>&lt;'a&gt;&gt;::<a·class="associatedtype"·href="pattern/trait.Pattern.html#associatedtype.Searcher"·title="type·alloc::str::pattern::Pattern::Searcher">Searcher</a>:·<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.78.0/src/core/str/iter.rs.html#845-861">source</a><a·href="#method.next_back"·class="anchor">§</a><h4·class="code-header">fn·<a·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/double_ended/trait.DoubleEndedIterator.html#[·...·truncated·by·diffoscope;·len:·3879,·SHA:·ef0eb7471a86048ca9de83512c9d7ea22311d3dce456ac9cee2bdbed9030cd3b·...·]/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.78.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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(B,·Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.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.78.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.7[·...·truncated·by·diffoscope;·len:·3,·SHA:·7b1bd53949b752d143d871408483b5382371b5bc48d195d0c040ec93cfa2748b·...·]/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:·74b709f2c818a4eda5d85ea863eb2d8af72c87564dbab2746e67feafb0cbb9a3·...·]/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.78.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:·d66ed7e195a53e9945339ef1976aed455dcf80228d8e5b7b0c69a64c3983fea1·...·]/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.78.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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(B,·Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/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:·f8bdf1e28866c7668477ab391452c7cfa7fd52cc69b633e782a157931421b39b·...·]/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.78.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:·c264047794019a6dcf05728ba6a6ee1f8f07c7209958b3366ba94546b527ecdc·...·]/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.78.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:·724,·SHA:·e56f7b9573958172de8c54fd5df7b7f774b86f906b7c00ec12dbaa05536165a3·...·]/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">where31 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·886,·SHA:·39fc39e947bad05312ae7ed45968a9e1fdc0f89bce2fe92fe020dabe62d4bfce·...·]/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
32 ····P:·<a·class="trait"·href="pattern/trait.Pattern.html"·title="trait·alloc::str::pattern::Pattern">Pattern</a>&lt;'a&gt;,32 ····P:·<a·class="trait"·href="pattern/trait.Pattern.html"·title="trait·alloc::str::pattern::Pattern">Pattern</a>&lt;'a&gt;,
33 ····&lt;P·as·<a·class="trait"·href="pattern/trait.Pattern.html"·title="trait·alloc::str::pattern::Pattern">Pattern</a>&lt;'a&gt;&gt;::<a·class="associatedtype"·href="pattern/trait.Pattern.html#associatedtype.Searcher"·title="type·alloc::str::pattern::Pattern::Searcher">Searcher</a>:·<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·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·class="primitive"·href="../../core/primitive.str.html">str</a></h4></section></summary><div·class='docblock'>The·type·of·the·elements·bein[·...·truncated·by·diffoscope;·len:·1220,·SHA:·419ad4ca10c18e1309efc804f2af411c06ed8405eff508da664edca05f4b135e·...·]/core/primitive.usize.html">usize</a>&gt;(33 ····&lt;P·as·<a·class="trait"·href="pattern/trait.Pattern.html"·title="trait·alloc::str::pattern::Pattern">Pattern</a>&lt;'a&gt;&gt;::<a·class="associatedtype"·href="pattern/trait.Pattern.html#associatedtype.Searcher"·title="type·alloc::str::pattern::Pattern::Searcher">Searcher</a>:·<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·href="#associatedtype.Item"·class="anchor">§</a><h4·class="code-header">type·<a·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·class="associatedtype">Item</a>·=·&amp;'a·<a·class="primitive"·href="https://doc.rust-lang.org/1.78.0/core/primitive.str.html">str</a></h4></section></summa[·...·truncated·by·diffoscope;·len:·1490,·SHA:·8a120f61614286e2c395182b26908b9ad35b854a6207dd660d398f4290bb1b33·...·]/core/primitive.usize.html">usize</a>&gt;(
34 ····&amp;mut·self34 ····&amp;mut·self
35 )·-&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">where35 )·-&gt;·<a·class="enum"·href="https://doc.rust-lang.org/1.78.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.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title=[·...·truncated·by·diffoscope;·len:·381,·SHA:·88c48923c9b7ea5cc47c1087c60e09656e81d4671c58071ba2bef826335388bc·...·]/core/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
36 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></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:·1593,·SHA:·59204fc1883bd9e8d10e390b843913f01f97378e05bff840116b149bc5b4dc00·...·]/core/primitive.usize.html">usize</a><div·class="where">where36 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experiment[·...·truncated·by·diffoscope;·len:·1890,·SHA:·62ca204af9e3eb9911a3bbbf9669088b55c64885573e7f4b900a3761d117ab1a·...·]/core/primitive.usize.html">usize</a><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,·counting·the·number·of·iterations·and·returning·it.·<a·href="../../core/iter/traits/iterator/trait.I[·...·truncated·by·diffoscope;·len:·579,·SHA:·97df9cdc3f1cc1461e704ebdf0c047ac7c0165f9aec8e9afdc069209b7a15a36·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;<div·class="where">where37 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.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:·741,·SHA:·f3078cc3fddd62af2c1a8814c5854bb49f40b79e4fbc9b3addf5862a72370f82·...·]/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>,</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:·2868,·SHA:·9ec21b8470b914406f4216b9bac831bf85cccf58579bd476408d6168be7cd43e·...·]/core/iter/adapters/step_by/struct.StepBy.html"·title="struct·core::iter::adapters::step_by::StepBy">StepBy</a>&lt;Self&gt;<div·class="where">where38 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.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.78.0/cor[·...·truncated·by·diffoscope;·len:·3408,·SHA:·b62c6ed65b31a8b555c142d9d15f3ce30e5c76ad2630a0e5a9b13cfd478c6eee·...·]/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
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·starting·at·the·same·point,·but·stepping·by39 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.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
40 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"><a·class="src·rightside"·href="../../src/core/iter/tra[·...·truncated·by·diffoscope;·len:·584,·SHA:·fd3e570373eb5121d35d7e22cdd5dd5fbf7183ee80147135a591fd1285174e82·...·]/core/iter/traits/collect/trait.IntoIterator.html#associatedtype.IntoIter"·title="type·core::iter::traits::collect::IntoIterator::IntoIter">IntoIter</a>&gt;<div·class="where">where40 the·given·amount·at·each·iteration.·<a·href="https://doc.rust-lang.org/1.78.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"><a·class="src·rightside"·hr[·...·truncated·by·diffoscope;·len:·746,·SHA:·f1f70d650c102c8658e13890c7dbfc87418f07e7b522246fb579ec434ef64f7c·...·]/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.78.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>&lt;Item·=·Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title=[·...·truncated·by·diffoscope;·len:·1017,·SHA:·c0f5f8cfd297e1678ac0ee2fd847fb6f0577665ac326e8e2e9d6414a710c8f98·...·]/core/iter/traits/collect/trait.IntoIterator.html#associatedtype.IntoIter"·title="type·core::iter::traits::collect::IntoIterator::IntoIter">IntoIter</a>&gt;<div·class="where">where42 ····U:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.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.78.0/core/iter/traits/it[·...·truncated·by·diffoscope;·len:·1233,·SHA:·f677df2d893dfe0dc1a9d31ebb0ba71a346d265781813e0d664d3f18369b6163·...·]/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.78.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>,</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:·c1b5e692e89c9c809075ee8ee72fb15a9ec46c075b08450e1f707d672a224750·...·]/core/iter/adapters/intersperse/struct.IntersperseWith.html"·title="struct·core::iter::adapters::intersperse::IntersperseWith">IntersperseWith</a>&lt;Self,·G&gt;<div·class="where">where44 ····U:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.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:·98627729f77dcf1c9d258f343354ba600b7134c6b3929080f231e8de7155b70b·...·]/core/iter/adapters/intersperse/struct.IntersperseWith.html"·title="struct·core::iter::adapters::intersperse::IntersperseWith">IntersperseWith</a>&lt;Self,·G&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.78.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
46 ····G:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>()·-&gt;·Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iter_intersperse</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/79524">#79524</a>)</span></div></span><div·class='docblock'>Creates·a·new·iterator·which·places·an·item·generated·by·<code>separator</code>46 ····G:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.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.78.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>
47 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"><a·class="src·rightside"·href="../../src/core/i[·...·truncated·by·diffoscope;·len:·267,·SHA:·1764c9d6d2e39e1367ae2111c28ab846e66ecf12617fbff35e0132e82e5c8b13·...·]/core/iter/adapters/map/struct.Map.html"·title="struct·core::iter::adapters::map::Map">Map</a>&lt;Self,·F&gt;<div·class="where">where47 between·adjacent·items·of·the·original·iterator.·<a·href="https://doc.rust-lang.org/1.78.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"><a·class="src·rights[·...·truncated·by·diffoscope;·len:·375,·SHA:·58419346f92e1709dadb70cc3cf356e3cd27972451bdc6b4fc4267e6f7e8bdae·...·]/core/iter/adapters/map/struct.Map.html"·title="struct·core::iter::adapters::map::Map">Map</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.78.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::Item">Item</a>)·-&gt;·B,</div></h4></section></summary><div·class='docblock'>Takes·a·closure·and·creates·an·iterator·which·calls·that·closure·on·each49 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::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
50 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:·fb4c9589a16c7b6d697c109d1193d2f1e763e5dd967101c2fd92b32416972229·...·]/core/iter/traits/iterator/trait.Iterator.html#method.for_each"·class="fn">for_each</a>&lt;F&gt;(self,·f:·F)<div·class="where">where50 element.·<a·href="https://doc.rust-lang.org/1.78.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:·98f6effefa44d759c249143d83623f0055d937382bfc398b7e1f5e92cd413657·...·]/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
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.78.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::[·...·truncated·by·diffoscope;·len:·658,·SHA:·e4449b6c00d036dd30444817045eddaf2697443d65789bb5c0b585ed1bc77702·...·]/core/iter/adapters/filter/struct.Filter.html"·title="struct·core::iter::adapters::filter::Filter">Filter</a>&lt;Self,·P&gt;<div·class="where">where52 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·820,·SHA:·a664bbcbc0891663662e4eb7b4394d0fcd72e568136fc4d34097fea242cc32e7·...·]/core/iter/adapters/filter/struct.Filter.html"·title="struct·core::iter::adapters::filter::Filter">Filter</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.78.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:·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·element54 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·140,·SHA:·752f473b57e7444ebfddf5ea7fd40a332e83ec55524a6c31b5ee0f82a5dea819·...·]/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
55 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"><a·class="src·rightside"·href="../../src/core/iter[·...·truncated·by·diffoscope;·len:·285,·SHA:·738ce0440ff568829f40d141e38e2c0da2fd05d2b73d1a574be0ed9baa32e827·...·]/core/iter/adapters/filter_map/struct.FilterMap.html"·title="struct·core::iter::adapters::filter_map::FilterMap">FilterMap</a>&lt;Self,·F&gt;<div·class="where">where55 should·be·yielded.·<a·href="https://doc.rust-lang.org/1.78.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"><a·class="src·rightside[·...·truncated·by·diffoscope;·len:·393,·SHA:·2e2aa7c9c9c087e7b346da376749064ab8c1894795a2f0a0f646cdc8c7bea997·...·]/core/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
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.78.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:·767,·SHA:·da0fc5bc95a3398627e0c5836423b719ccea45d351e21ddaa96f793f67f9c6de·...·]/core/iter/adapters/enumerate/struct.Enumerate.html"·title="struct·core::iter::adapters::enumerate::Enumerate">Enumerate</a>&lt;Self&gt;<div·class="where">where57 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·956,·SHA:·faba0521e870dbbd26d466fadba3522e7d29013a9b86376fffafffac11a57e0e·...·]/core/iter/adapters/enumerate/struct.Enumerate.html"·title="struct·core::iter::adapters::enumerate::Enumerate">Enumerate</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·gives·the·current·iteration·count·as·well·as58 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.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
59 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"><a·class="src·rightside"·href="../../src/core/ite[·...·truncated·by·diffoscope;·len:·264,·SHA:·e3fa7ab43c6353bc2216a22d7010c41a8ab50d273a128d15d0eff050c058993a·...·]/core/iter/adapters/peekable/struct.Peekable.html"·title="struct·core::iter::adapters::peekable::Peekable">Peekable</a>&lt;Self&gt;<div·class="where">where59 the·next·value.·<a·href="https://doc.rust-lang.org/1.78.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"><a·class="src·rightsid[·...·truncated·by·diffoscope;·len:·372,·SHA:·03eea0861575eb80d3f7a87a3ba747adb1a33fe7e9ce72aa2172e7a287c63a94·...·]/core/iter/adapters/peekable/struct.Peekable.html"·title="struct·core::iter::adapters::peekable::Peekable">Peekable</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·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>·methods60 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.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.78.0/core/iter/adapte[·...·truncated·by·diffoscope;·len:·175,·SHA:·16fe7225bf05b478e2828b347c3d23ded9a22f89d8887a2c65d9f7b3faf1b0e7·...·]/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
61 to·look·at·the·next·element·of·the·iterator·without·consuming·it.·See61 to·look·at·the·next·element·of·the·iterator·without·consuming·it.·See
62 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"><a·class="src·rightside"·href="../../src/core/it[·...·truncated·by·diffoscope;·len:·294,·SHA:·c0aee2077af6a4f81ed47e37c84a75b5f9b941875509fbe0b3d352866f825f45·...·]/core/iter/adapters/skip_while/struct.SkipWhile.html"·title="struct·core::iter::adapters::skip_while::SkipWhile">SkipWhile</a>&lt;Self,·P&gt;<div·class="where">where62 their·documentation·for·more·information.·<a·href="https://doc.rust-lang.org/1.78.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"><a·class="src·rightsi[·...·truncated·by·diffoscope;·len:·402,·SHA:·7689a974f800fd069d1b4453ef62d6d6ad1b654462d624d36e3672051d502030·...·]/core/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
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.78.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:·922,·SHA:·5220bbb4db3c3cd3d7ca7c27520f44f04fe367ee2f0f407fb1d50c0a327a2f99·...·]/core/iter/adapters/take_while/struct.TakeWhile.html"·title="struct·core::iter::adapters::take_while::TakeWhile">TakeWhile</a>&lt;Self,·P&gt;<div·class="where">where64 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·1138,·SHA:·f6ae06b7de8e94df014341c5cf589a5e4a1298367b2ef7a968ec499c5170a70e·...·]/core/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
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.78.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:·869,·SHA:·39eeddf219b211245393e51a591d5064c740fa9be49d88883d8a6474679741ad·...·]/core/iter/adapters/map_while/struct.MapWhile.html"·title="struct·core::iter::adapters::map_while::MapWhile">MapWhile</a>&lt;Self,·P&gt;<div·class="where">where66 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·1058,·SHA:·b390dbdda8d7e93604b5ecd906a93efd03fe19bdaf41cf12893fd361bf974307·...·]/core/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
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.78.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::Iterator::[·...·truncated·by·diffoscope;·len:·851,·SHA:·ad2e090d21a034b7c3836ed38a686f4c483f9a929132fef846d48271f749a79c·...·]/core/iter/adapters/skip/struct.Skip.html"·title="struct·core::iter::adapters::skip::Skip">Skip</a>&lt;Self&gt;<div·class="where">where68 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·1067,·SHA:·415d32e1211c35d3bb405de1d6e51c2102c14cadc3333894f063148dbe0b1f69·...·]/core/iter/adapters/skip/struct.Skip.html"·title="struct·core::iter::adapters::skip::Skip">Skip</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·skips·the·first·<code>n</code>·elements.·<a·href="../../core/iter/traits/iterator/trait.Iterator.h[·...·truncated·by·diffoscope;·len:·525,·SHA:·6471f48fecadc56edf21fc04794b884b96ce06d339c715e410f5a906e028bc28·...·]/core/iter/adapters/take/struct.Take.html"·title="struct·core::iter::adapters::take::Take">Take</a>&lt;Self&gt;<div·class="where">where69 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.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:·687,·SHA:·7f5256104c35c5948a2cb42b55f3048c9d2887e48a4a8226537a284f959c562a·...·]/core/iter/adapters/take/struct.Take.html"·title="struct·core::iter::adapters::take::Take">Take</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·that·yields·the·first·<code>n</code>·elements,·or·fewer70 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.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
71 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"><a·class="src·rightside"·href="../../src/core/iter/traits/[·...·truncated·by·diffoscope;·len:·284,·SHA:·aee83f38f8c40848e159b12a8faa43b9dadf589fe974632a1f15ce2a15834071·...·]/core/iter/adapters/scan/struct.Scan.html"·title="struct·core::iter::adapters::scan::Scan">Scan</a>&lt;Self,·St,·F&gt;<div·class="where">where71 if·the·underlying·iterator·ends·sooner.·<a·href="https://doc.rust-lang.org/1.78.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"><a·class="src·rightside"·href="[·...·truncated·by·diffoscope;·len:·392,·SHA:·4e7da68f7be2622ef173653eca78d58e1f202b544a2e6abd14d8335c298c93a7·...·]/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
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.78.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>(<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,·but73 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(<a·class="primitive"·href="https://doc.rust-lang.org/1.78.0/core/primitive.reference.html">&amp;mut·St</a>,·Self::<a·class="associatedty[·...·truncated·by·diffoscope;·len:·449,·SHA:·f12c268a8a8111b9e7126ad78bf5523a63733caa63d187c4fe792309ea41acdf·...·]/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
74 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:·459,·SHA:·b825570d9672670eacd8828b3abec12cd1c35433286857de28f5ea8d5e300e03·...·]/core/iter/adapters/flatten/struct.FlatMap.html"·title="struct·core::iter::adapters::flatten::FlatMap">FlatMap</a>&lt;Self,·U,·F&gt;<div·class="where">where74 unlike·<a·href="https://doc.rust-lang.org/1.78.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.78.0/core/iter/trai[·...·truncated·by·diffoscope;·len:·594,·SHA:·02960742fa7892efaa08f289ce85865fc5efb6a4cd138c22e3566ca6fc727d78·...·]/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
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.78.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
76 ····U:·<a·class="trait"·href="../../core/iter/traits/collect/trait.IntoIterator.html"·title="trait·core::iter::traits::collect::IntoIterator">IntoIterator</a>,76 ····U:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/collect/trait.IntoIterator.html"·title="trait·core::iter::traits::collect::IntoIterator">IntoIterator</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::Iterator::[·...·truncated·by·diffoscope;·len:·787,·SHA:·9b6a337a3ad68c2a987b52450c153f87a04a8ed9e83603d26077fe6e70d61edf·...·]/core/iter/adapters/map_windows/struct.MapWindows.html"·title="struct·core::iter::adapters::map_windows::MapWindows">MapWindows</a>&lt;Self,·F,·N&gt;<div·class="where">where77 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·976,·SHA:·2a9182f6fe88e0b8a9b1ae1f46cace940cc0b8736033c354c0f0ccbf1c196e7a·...·]/core/iter/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
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.78.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>(&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>·over79 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;[Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtyp[·...·truncated·by·diffoscope;·len:·135,·SHA:·0b06a6094d42ccbc8bce5b01c4383961fe7f1967f05e4c9f1ff33e71e425fb26·...·]/core/primitive.array.html">N</a>])·-&gt;·R,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iter_map_windows</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/87155">#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
80 <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>,80 <code>self</code>·and·returns·an·iterator·over·the·outputs·of·<code>f</code>.·Like·<a·href="https://doc.rust-lang.org/1.78.0/core/primitive.slice.html#method.windows"·title="method·slice::windows"><code>slice::windows()</code></a>,
81 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"><a·class="src·rightside"·href="../../src/core/iter/[·...·truncated·by·diffoscope;·len:·250,·SHA:·e355ddd0f04b2470ee915aec3ad97857be56b95e6a1f3d733d6c477453f4cf0d·...·]/core/iter/adapters/fuse/struct.Fuse.html"·title="struct·core::iter::adapters::fuse::Fuse">Fuse</a>&lt;Self&gt;<div·class="where">where81 the·windows·during·mapping·overlap·as·well.·<a·href="https://doc.rust-lang.org/1.78.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"><a·class="src·rightside"[·...·truncated·by·diffoscope;·len:·358,·SHA:·d91b2ab18e0ce069e262cf523c6ef961f56eecad042ea1e9bcefe33cff28fc8f·...·]/core/iter/adapters/fuse/struct.Fuse.html"·title="struct·core::iter::adapters::fuse::Fuse">Fuse</a>&lt;Self&gt;<div·class="where">where
82 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Creates·an·iterator·which·ends·after·the·first·<a·href="../../core/option/enum.Option.html#variant.None"·title="variant·cor[·...·truncated·by·diffoscope;·len:·583,·SHA:·b7d7d6125e8980756a2636a6b6e01600057c98a027dcf7d267b1f61538a7b6b0·...·]/core/iter/adapters/inspect/struct.Inspect.html"·title="struct·core::iter::adapters::inspect::Inspect">Inspect</a>&lt;Self,·F&gt;<div·class="where">where82 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.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.78.0/core/op[·...·truncated·by·diffoscope;·len:·745,·SHA:·424783f22102f4446d3ad4d362b1aafdb7531fa777213f97ee138aa878f67bd1·...·]/core/iter/adapters/inspect/struct.Inspect.html"·title="struct·core::iter::adapters::inspect::Inspect">Inspect</a>&lt;Self,·F&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.78.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::Itera[·...·truncated·by·diffoscope;·len:·676,·SHA:·ae75f35cafbae1e0e695226baca09b0bec6e4a0ed5656a83c3357b29fb00442d·...·]/core/primitive.reference.html">&amp;mut·Self</a><div·class="where">where84 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·838,·SHA:·9b4fd8df7f41e9a76fd4cfca0a233b74b9bd27c3fe8228248abc3f940425a3e3·...·]/core/primitive.reference.html">&amp;mut·Self</a><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'>Borrows·an·iterator,·rather·than·consuming·it.·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.by_ref">[·...·truncated·by·diffoscope;·len:·319,·SHA:·bbb653fcb1f5ad46e04905bf78a76b9dd63ea5d49a2d8cd5b7b36efbb0f7e105·...·]/core/iter/traits/iterator/trait.Iterator.html#method.collect"·class="fn">collect</a>&lt;B&gt;(self)·-&gt;·B<div·class="where">where85 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.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.78.0/core/it[·...·truncated·by·diffoscope;·len:·427,·SHA:·ecfaaac5d1d10c1bc4fcee9a050af0a268bee0b528c2d8ea4e9774440bd8a279·...·]/core/iter/traits/iterator/trait.Iterator.html#method.collect"·class="fn">collect</a>&lt;B&gt;(self)·-&gt;·B<div·class="where">where
86 ····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;,86 ····B:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.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.78.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><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:·e5d524e874326d0b9b733f5ee809c6595cde869afab0cc3d4ba8454093f420da·...·]/core/primitive.reference.html">&amp;mut·E</a><div·class="where">where87 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.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.78.0/core/iter/tr[·...·truncated·by·diffoscope;·len:·728,·SHA:·01937c2dc314c259495665570ae249c94b4a5b0719718f5f1188e6fc64ecf487·...·]/core/primitive.reference.html">&amp;mut·E</a><div·class="where">where
88 ····E:·<a·class="trait"·href="../../core/iter/traits/collect/trait.Extend.html"·title="trait·core::iter::traits::collect::Extend">Extend</a>&lt;Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;,88 ····E:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.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.78.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><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:·744,·SHA:·a7446142ab67c3f20d866315fbe6cb9c57cd4af012812d6dd19d5061aee6e97b·...·]/core/primitive.tuple.html">(B,·B)</a><div·class="where">where89 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experiment[·...·truncated·by·diffoscope;·len:·879,·SHA:·e773b2222c92d001e295030cb47a780ab0c1132d7fc8e9e3a98de4f532e6c520·...·]/core/primitive.tuple.html">(B,·B)</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.78.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
91 ····B:·<a·class="trait"·href="../../core/default/trait.Default.html"·title="trait·core::default::Default">Default</a>·+·<a·class="trait"·href="../../core/iter/traits/collect/trait.Extend.html"·title="trait·core::iter::traits::collect::Extend">Extend</a>&lt;Self::<a·class="associatedtyp[·...·truncated·by·diffoscope;·len:·14,·SHA:·4105980ca4887a52797067761af25a11e3de6069cd8d7c8ce82cd885bb798fe8·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;,91 ····B:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/default/trait.Default.html"·title="trait·core::default::Default">Default</a>·+·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/collect/trait.Extend.html"·title="trait·core::iter::traits::collec[·...·truncated·by·diffoscope;·len:·95,·SHA:·8b3be1d0042cae0550f865faf5849221240bdf04eb1b2107605b72d48c3ad29c·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;,
92 ····F:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<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:·f8b50287f3e106633ed79a84072d3ddd9d98672efd685d2433c61b5549ce051e·...·]/core/primitive.bool.html">bool</a><div·class="where">where92 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·972,·SHA:·6de765542031617a9c28ac98fe6df619e58e62d9c65ec5b1c185a7152b8944e5·...·]/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.78.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>(Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::[·...·truncated·by·diffoscope;·len:·54,·SHA:·d5ac304cc26edf57442227b641dd21c427d0f9cb322b79986f5b15fc49f867b0·...·]/core/primitive.bool.html">bool</a>,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iter_is_partitioned</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/62544">#62544</a>)</span></div></span><div·class='docblock'>Checks·if·the·elements·of·this·iterator·are·partitioned·according·to·the·given·predicate,94 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·135,·SHA:·51ff5f5c7ebd8440623ea71b125c5a5837e809e308fe1a13fbe19cddb941dbd9·...·]/core/primitive.bool.html">bool</a>,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iter_is_partitioned</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/62544">#62544</a>)</span></div></span><div·class='docblock'>Checks·if·the·elements·of·this·iterator·are·partitioned·according·to·the·given·predicate,
95 such·that·all·those·that·return·<code>true</code>·precede·all·those·that·return·<code>false</code>.·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.is_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:·6f406a351b93047f56fa70265a6bf28ec6874f75cd6cc5a39d51c7af462f2992·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_fold"·class="fn">try_fold</a>&lt;B,·F,·R&gt;(&amp;mut·self,·init:·B,·f:·F)·-&gt;·R<div·class="where">where95 such·that·all·those·that·return·<code>true</code>·precede·all·those·that·return·<code>false</code>.·<a·href="https://doc.rust-lang.org/1.78.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:·2c74873f4e5ba70004a1c7edd1cc3f9e2d91271295dd1591e2d26848df4c02ba·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_fold"·class="fn">try_fold</a>&lt;B,·F,·R&gt;(&amp;mut·self,·init:·B,·f:·F)·-&gt;·R<div·class="where">where
96 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,96 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.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>(B,·Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·R,97 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(B,·Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·R,
98 ····R:·<a·class="trait"·href="../../core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&lt;Output·=·B&gt;,</div></h4></section></summary><div·class='docblock'>An·iterator·method·that·applies·a·function·as·long·as·it·returns98 ····R:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.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
99 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:·eecdce021399d206eb3ef5af12ee7663b4eb0dca55b0f411c7fa66f605b6b2e2·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_for_each"·class="fn">try_for_each</a>&lt;F,·R&gt;(&amp;mut·self,·f:·F)·-&gt;·R<div·class="where">where99 successfully,·producing·a·single,·final·value.·<a·href="https://doc.rust-lang.org/1.78.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:·52912e82c4b0a760d06f77eb4ee3a59ba70dd76cb532954900c73ae94c652674·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_for_each"·class="fn">try_for_each</a>&lt;F,·R&gt;(&amp;mut·self,·f:·F)·-&gt;·R<div·class="where">where
100 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,100 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.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::Item">Item</a>)·-&gt;·R,101 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·R,
102 ····R:·<a·class="trait"·href="../../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·the102 ····R:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.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.78.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
103 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"><a·class="src·rightside"·href="../../src/core/iter[·...·truncated·by·diffoscope;·len:·130,·SHA:·75c0150024fe6cdc702d7337508ab57600248490dd062768204ddb064c9a1b8b·...·]/core/iter/traits/iterator/trait.Iterator.html#method.fold"·class="fn">fold</a>&lt;B,·F&gt;(self,·init:·B,·f:·F)·-&gt;·B<div·class="where">where103 iterator,·stopping·at·the·first·error·and·returning·that·error.·<a·href="https://doc.rust-lang.org/1.78.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"><a·class="src·rightside[·...·truncated·by·diffoscope;·len:·211,·SHA:·924e062acd8127e8d6158162219ee5d57a941854e14063d21d7768edae549431·...·]/core/iter/traits/iterator/trait.Iterator.html#method.fold"·class="fn">fold</a>&lt;B,·F&gt;(self,·init:·B,·f:·F)·-&gt;·B<div·class="where">where
104 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,104 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.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>(B,·Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·B,</div></h4></section></summary><div·class='docblock'>Folds·every·element·into·an·accumulator·by·applying·an·operation,105 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(B,·Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·B,</div></h4></section></summary><div·class='docblock'>Folds·every·element·into·an·accumulator·by·applying·an·operation,
106 returning·the·final·result.·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.fold">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:·dbe3a08fe63abd47570741e71208c31aaf51152feac5917db07665a1f56bb3e3·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;<div·class="where">where106 returning·the·final·result.·<a·href="https://doc.rust-lang.org/1.78.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:·b60215068a6d9721be05f81098c51167d7138c4042f140cad42f77c4df43f597·...·]/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.78.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:·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·reducing108 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·352,·SHA:·e7c3c296abe2c0a183967153e4ae7fd50bafa2ae7088e3e78b3b48fee253adc6·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>,</div></h4></section></summary><div·class='docblock'>Reduces·the·elements·to·a·single·one,·by·repeatedly·applying·a·reducing
109 operation.·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.reduce">Read·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:·a9dce8bb557b5a11426bf2ffcbd5eea7c6c870833e3ee5bb072dcaaa11687b0c·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_reduce"·class="fn">try_reduce</a>&lt;F,·R&gt;(109 operation.·<a·href="https://doc.rust-lang.org/1.78.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:·7a18fdd041b1a001b4a8feb289ee127fd9240232239269eb35dc3b8f74783ec9·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_reduce"·class="fn">try_reduce</a>&lt;F,·R&gt;(
110 ····&amp;mut·self,110 ····&amp;mut·self,
111 ····f:·F111 ····f:·F
112 )·-&gt;·&lt;&lt;R·as·<a·class="trait"·href="../../core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&gt;::<a·class="associatedtype"·href="../../core/ops/try_trait/trait.Try.html#associatedtype.Residual"·title="type·core::ops::try_trait::Try::Residual">Residual</a>·as·[·...·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">where112 )·-&gt;·&lt;&lt;R·as·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&gt;::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/ops/try_trait/trait.Try.html#associatedtype.Residual"·title="type[·...·truncated·by·diffoscope;·len:·754,·SHA:·6fb4dfdb6b4da68921c1e7f8b75d99cf293d58318d684a840254ce9576957bea·...·]/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.78.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:·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:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·140,·SHA:·c27972e6fa3464c9476eaa185e8657edb6bb294f148403f3d079285294a9f909·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·R,
115 ····R:·<a·class="trait"·href="../../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.78.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.78.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.78.0/core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&gt;::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/ops/try_trait/trait.Try.html#associatedtype.Residual"·title="type[·...·truncated·by·diffoscope;·len:·412,·SHA:·22b8cbb007e5cce82b9d13a65bfa56aa8d83c32541fac25f4d9b3857b0540908·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;&gt;,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iterator_try_reduce</code>&nbsp;<a·href="https://github.com/rust-lang/rust/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"><a·class="src·rightside"·href="../../src/core/iter/tr[·...·truncated·by·diffoscope;·len:·272,·SHA:·97959736d897a01242f49f2e45854ab874bf0c9bbe30acad9a49eb73169e457c·...·]/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.78.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"><a·class="src·rightside"·h[·...·truncated·by·diffoscope;·len:·380,·SHA:·29c4004d4d8b0c8c9dfe9023f8b2c5ef801d9dc4688893035d182c1ae774c453·...·]/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.78.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:·733,·SHA:·9bb9f0199d90f78ad65c59dbe67a1c751cd5a681130a03bef3b1e8ed907a3bba·...·]/core/primitive.bool.html">bool</a><div·class="where">where119 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·922,·SHA:·f4fd532c280e18f28bd6dda6c2a129e2e92114b67f27235bb5fd39f725be9c43·...·]/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.78.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:·860,·SHA:·6a94ae33b82eb12a91660811a8ab9d243468d885c07ac766a2507d25a4e7ee62·...·]/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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·1076,·SHA:·2dd9de8adaee4a5ee96501d9a58bfac2fea00ba8d78b834bfca29949b3afe18b·...·]/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.78.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:·21d7086b3ce0092e3f7a6a41174339bbd8724e7d186158db4db3385a73d94e8e·...·]/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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·1051,·SHA:·ecc0b8fccd861464760f9ae047ff6ab98c91a1db010cb5fa59a8c2ab883db7c4·...·]/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.78.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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·130,·SHA:·130a13019dc175d02304b4f550157e2f13ac15c2f25a979c74161d10b146ab89·...·]/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:·ac4da3337aac1ec10038e246be9cb719eeb5af1acc709f5a6a25b91900c56f53·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_find"·class="fn">try_find</a>&lt;F,·R&gt;(126 the·first·non-none·result.·<a·href="https://doc.rust-lang.org/1.78.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:·8ced1b10e78750774c5c8ed995ed83dcd13983aa75d329acf8069da106ab9f4a·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_find"·class="fn">try_find</a>&lt;F,·R&gt;(
127 ····&amp;mut·self,127 ····&amp;mut·self,
Max diff block lines reached; 141770/308433 bytes (45.96%) of diff not shown.
297 KB
./usr/share/doc/rust-web-doc/html/alloc/str/struct.Split.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·`split`."><title>Split·in·alloc::str·-·Rust</title><script>·if·(window.location.protocol·!==·"file:")·document.write(`<link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/SourceSerif4-Regular-46f98efaafac5295.ttf.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/FiraSans-Regular-018c141bf0843ffd.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/FiraSans-Medium-8f9a781e4970d388.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/SourceCodePro-Regular-562dcc5011b6de7d.ttf.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/SourceCodePro-Semibold-d899c5a5c4aeb14a.ttf.woff2">`)</script><link·rel="stylesheet"·href="../../static.files/normalize-76eba96aa4d2e634.css"><link·rel="stylesheet"·href="../../static.files/rustdoc-35f9e32502181f1e.css"><meta·name="rustdoc-vars"·data-root-path="../../"·data-static-root-path="../../static.files/"·data-current-crate="alloc"·data-themes=""·data-resource-suffix="1.78.0"·data-rustdoc-version="1.78.0"·data-channel="1.78.0"·data-search-js="search-42d8da7a6b9792c2.js"·data-settings-js="settings-4313503d2e1961c2.js"·><script·src="../../static.files/storage-4c98445ec4002617.js"></script><script·defer·src="sidebar-items1.78.0.js"></script><script·defer·src="../../static.files/main-12cf3b4f4f9dc36d.js"></script><noscript><link·rel="stylesheet"·href="../../static.files/noscript-04d5337699b92874.css"></noscript><link·rel="alternate·icon"·type="image/png"·href="../../static.files/favicon-16x16-8b506e7a72182f1c.png"><link·rel="alternate·icon"·type="image/png"·href="../../static.files/favicon-32x32-422f7d1d52889060.png"><link·rel="icon"·type="image/svg+xml"·href="../../static.files/favicon-2c020d218678b618.svg"></head><body·class="rustdoc·struct"><!--[if·lte·IE·11]><div·class="warning">This·old·browser·is·unsupported·and·will·most·likely·display·funky·things.</div><![endif]--><nav·class="mobile-topbar"><button·class="sidebar-menu-toggle"·title="show·sidebar"></button><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-151179464ae7ed46.svg"·alt=""></a></nav><nav·class="sidebar"><div·class="sidebar-crate"><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-151179464ae7ed46.svg"·alt="logo"></a><h2><a·href="../../alloc/index.html">alloc</a><span·class="version">1.78.0</span></h2></div><h2·class="location"><a·href="#">Split</a></h2><div·class="sidebar-elems"><section><h3><a·href="#implementations">Methods</a></h3><ul·class="block·method"><li><a·href="#method.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">Clone</a></li><li><a·href="#impl-Debug-for-Split%3C'a,+P%3E">Debug</a></li><li><a·href="#impl-DoubleEndedIterator-for-Split%3C'a,+P%3E">DoubleEndedIterator</a></li><li><a·href="#impl-FusedIterator-for-Split%3C'a,+P%3E">FusedIterator</a></li><li><a·href="#impl-Iterator-for-Split%3C'a,+P%3E">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">Freeze</a></li><li><a·href="#impl-RefUnwindSafe-for-Split%3C'a,+P%3E">RefUnwindSafe</a></li><li><a·href="#impl-Send-for-Split%3C'a,+P%3E">Send</a></li><li><a·href="#impl-Sync-for-Split%3C'a,+P%3E">Sync</a></li><li><a·href="#impl-Unpin-for-Split%3C'a,+P%3E">Unpin</a></li><li><a·href="#impl-UnwindSafe-for-Split%3C'a,+P%3E">UnwindSafe</a></li></ul><h3><a·href="#blanket-implementations">Blanket·Implementations</a></h3><ul·class="block·blanket-implementation"><li><a·href="#impl-Any-for-T">Any</a></li><li><a·href="#impl-Borrow%3CT%3E-for-T">Borrow&lt;T&gt;</a></li><li><a·href="#impl-BorrowMut%3CT%3E-for-T">BorrowMut&lt;T&gt;</a></li><li><a·href="#impl-From%3CT%3E-for-T">From&lt;T&gt;</a></li><li><a·href="#impl-Into%3CU%3E-for-T">Into&lt;U&gt;</a></li><li><a·href="#impl-IntoIterator-for-I">IntoIterator</a></li><li><a·href="#impl-ToOwned-for-T">ToOwned</a></li><li><a·href="#impl-TryFrom%3CU%3E-for-T">TryFrom&lt;U&gt;</a></li><li><a·href="#impl-TryInto%3CU%3E-for-T">TryInto&lt;U&gt;</a></li></ul></section><h2><a·href="index.html">In·alloc::str</a></h2></div></nav><div·class="sidebar-resizer"></div>1 <!DOCTYPE·html><html·lang="en"><head><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.write(`<link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/SourceSerif4-Regular-46f98efaafac5295.ttf.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/FiraSans-Regular-018c141bf0843ffd.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/FiraSans-Medium-8f9a781e4970d388.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/SourceCodePro-Regular-562dcc5011b6de7d.ttf.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/SourceCodePro-Semibold-d899c5a5c4aeb14a.ttf.woff2">`)</script><link·rel="stylesheet"·href="../../static.files/normalize-76eba96aa4d2e634.css"><link·rel="stylesheet"·href="../../static.files/rustdoc-35f9e32502181f1e.css"><meta·name="rustdoc-vars"·data-root-path="../../"·data-static-root-path="../../static.files/"·data-current-crate="alloc"·data-themes=""·data-resource-suffix="1.78.0"·data-rustdoc-version="1.78.0"·data-channel="1.78.0"·data-search-js="search-42d8da7a6b9792c2.js"·data-settings-js="settings-4313503d2e1961c2.js"·><script·src="../../static.files/storage-4c98445ec4002617.js"></script><script·defer·src="sidebar-items1.78.0.js"></script><script·defer·src="../../static.files/main-12cf3b4f4f9dc36d.js"></script><noscript><link·rel="stylesheet"·href="../../static.files/noscript-04d5337699b92874.css"></noscript><link·rel="alternate·icon"·type="image/png"·href="../../static.files/favicon-16x16-8b506e7a72182f1c.png"><link·rel="alternate·icon"·type="image/png"·href="../../static.files/favicon-32x32-422f7d1d52889060.png"><link·rel="icon"·type="image/svg+xml"·href="../../static.files/favicon-2c020d218678b618.svg"></head><body·class="rustdoc·struct"><!--[if·lte·IE·11]><div·class="warning">This·old·browser·is·unsupported·and·will·most·likely·display·funky·things.</div><![endif]--><nav·class="mobile-topbar"><button·class="sidebar-menu-toggle"·title="show·sidebar"></button><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-151179464ae7ed46.svg"·alt=""></a></nav><nav·class="sidebar"><div·class="sidebar-crate"><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-151179464ae7ed46.svg"·alt="logo"></a><h2><a·href="../../alloc/index.html">alloc</a><span·class="version">1.78.0</span></h2></div><h2·class="location"><a·href="#">Split</a></h2><div·class="sidebar-elems"><section><h3><a·href="#implementations">Methods</a></h3><ul·class="block·method"><li><a·href="#method.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">Clone</a></li><li><a·href="#impl-Debug-for-Split%3C'a,+P%3E">Debug</a></li><li><a·href="#impl-DoubleEndedIterator-for-Split%3C'a,+P%3E">DoubleEndedIterator</a></li><li><a·href="#impl-FusedIterator-for-Split%3C'a,+P%3E">FusedIterator</a></li><li><a·href="#impl-Iterator-for-Split%3C'a,+P%3E">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">Freeze</a></li><li><a·href="#impl-RefUnwindSafe-for-Split%3C'a,+P%3E">RefUnwindSafe</a></li><li><a·href="#impl-Send-for-Split%3C'a,+P%3E">Send</a></li><li><a·href="#impl-Sync-for-Split%3C'a,+P%3E">Sync</a></li><li><a·href="#impl-Unpin-for-Split%3C'a,+P%3E">Unpin</a></li><li><a·href="#impl-UnwindSafe-for-Split%3C'a,+P%3E">UnwindSafe</a></li></ul><h3><a·href="#blanket-implementations">Blanket·Implementations</a></h3><ul·class="block·blanket-implementation"><li><a·href="#impl-Any-for-T">Any</a></li><li><a·href="#impl-Borrow%3CT%3E-for-T">Borrow&lt;T&gt;</a></li><li><a·href="#impl-BorrowMut%3CT%3E-for-T">BorrowMut&lt;T&gt;</a></li><li><a·href="#impl-From%3CT%3E-for-T">From&lt;T&gt;</a></li><li><a·href="#impl-Into%3CU%3E-for-T">Into&lt;U&gt;</a></li><li><a·href="#impl-IntoIterator-for-I">IntoIterator</a></li><li><a·href="#impl-ToOwned-for-T">ToOwned</a></li><li><a·href="#impl-TryFrom%3CU%3E-for-T">TryFrom&lt;U&gt;</a></li><li><a·href="#impl-TryInto%3CU%3E-for-T">TryInto&lt;U&gt;</a></li></ul></section><h2><a·href="index.html">In·alloc::str</a></h2></div></nav><div·class="sidebar-resizer"></div>
2 ····<main><div·class="width-limiter"><nav·class="sub"><form·class="search-form"><span></span><div·id="sidebar-button"·tabindex="-1"><a·href="../../alloc/all.html"·title="show·sidebar"></a></div><input·class="search-input"·name="search"·aria-label="Run·search·in·the·documentation"·autocomplete="off"·spellcheck="false"·placeholder="Click·or·press·‘S’·to·search,·‘?’·for·more·options…"·type="search"><div·id="help-button"·tabindex="-1"><a·href="../../help.html"·title="help">?</a></div><div·id="settings-menu"·tabindex="-1"><a·href="../../settings.html"·title="settings"><img·width="22"·height="22"·alt="Change·settings"·src="../../static.files/wheel-7b819b6101059cd0.svg"></a></div></form></nav><section·id="main-content"·class="content"><div·class="main-heading"><h1>Struct·<a·href="../index.html">alloc</a>::<wbr><a·href="index.html">str</a>::<wbr><a·class="struct"·href="#">Split</a><button·id="copy-path"·title="Copy·item·path·to·clipboard"><img·src="../../static.files/clipboard-7571035ce49a181d.svg"·width="19"·height="18"·alt="Copy·item·path"></button></h1><span·class="out-of-band"><span·class="since"·title="Stable·since·Rust·version·1.0.0">1.0.0</span>···<a·class="src"·href="../../src/core/str/iter.rs.html#781-797">source</a>···<button·id="toggle-all-docs"·title="collapse·all·docs">[<span>&#x2212;</span>]</button></span></div><pre·class="rust·item-decl"><code>pub·struct·Split&lt;'a,·P&gt;(<span·class="comment">/*·private·fields·*/</span>)2 ····<main><div·class="width-limiter"><nav·class="sub"><form·class="search-form"><span></span><div·id="sidebar-button"·tabindex="-1"><a·href="../../alloc/all.html"·title="show·sidebar"></a></div><input·class="search-input"·name="search"·aria-label="Run·search·in·the·documentation"·autocomplete="off"·spellcheck="false"·placeholder="Click·or·press·‘S’·to·search,·‘?’·for·more·options…"·type="search"><div·id="help-button"·tabindex="-1"><a·href="../../help.html"·title="help">?</a></div><div·id="settings-menu"·tabindex="-1"><a·href="../../settings.html"·title="settings"><img·width="22"·height="22"·alt="Change·settings"·src="../../static.files/wheel-7b819b6101059cd0.svg"></a></div></form></nav><section·id="main-content"·class="content"><div·class="main-heading"><h1>Struct·<a·href="../index.html">alloc</a>::<wbr><a·href="index.html">str</a>::<wbr><a·class="struct"·href="#">Split</a><button·id="copy-path"·title="Copy·item·path·to·clipboard"><img·src="../../static.files/clipboard-7571035ce49a181d.svg"·width="19"·height="18"·alt="Copy·item·path"></button></h1><span·class="out-of-band"><span·class="since"·title="Stable·since·Rust·version·1.0.0">1.0.0</span>···<a·class="src"·href="https://doc.rust-lang.org/1.78.0/src/core/str/iter.rs.html#781-797">source</a>···<button·id="toggle-all-docs"·title="collapse·all·docs">[<span>&#x2212;</span>]</button></span></div><pre·class="rust·item-decl"><code>pub·struct·Split&lt;'a,·P&gt;(<span·class="comment">/*·private·fields·*/</span>)
3 <span·class="where">where3 <span·class="where">where
4 ····P:·<a·class="trait"·href="pattern/trait.Pattern.html"·title="trait·alloc::str::pattern::Pattern">Pattern</a>&lt;'a&gt;</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>4 ····P:·<a·class="trait"·href="pattern/trait.Pattern.html"·title="trait·alloc::str::pattern::Pattern">Pattern</a>&lt;'a&gt;</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.78.0/core/primitive.str.html#method.split"·title="method·str::split"><code>split</code></a>.</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-Split%3C'a,+P%3E"·class="impl"><a·class="src·rightside"·href="../../src/core/str/iter.rs.html#799">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">where5 </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.78.0/src/core/str/iter.rs.html#799">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
6 ····P:·<a·class="trait"·href="pattern/trait.Pattern.html"·title="trait·alloc::str::pattern::Pattern">Pattern</a>&lt;'a&gt;,</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#817">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>6 ····P:·<a·class="trait"·href="pattern/trait.Pattern.html"·title="trait·alloc::str::pattern::Pattern">Pattern</a>&lt;'a&gt;,</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.78.0/src/core/str/iter.rs.html#817">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.78.0/core/option/enum.Option.ht[·...·truncated·by·diffoscope;·len:·119,·SHA:·93ff891486a9feb9f66ae41889129f6d0e1c0abe8a2d0e28ca30689ceede13fe·...·]/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>
7 <p>If·the·iterator·is·empty,·returns·<code>None</code>.</p>7 <p>If·the·iterator·is·empty,·returns·<code>None</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="attr">#![feature(str_split_remainder)]9 <div·class="example-wrap"><pre·class="rust·rust-example-rendered"><code><span·class="attr">#![feature(str_split_remainder)]
10 </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><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>);
11 <span·class="macro">assert_eq!</span>(split.remainder(),·<span·class="prelude-val">Some</span>(<span·class="string">"Mary·had·a·little·lamb"</span>));11 <span·class="macro">assert_eq!</span>(split.remainder(),·<span·class="prelude-val">Some</span>(<span·class="string">"Mary·had·a·little·lamb"</span>));
12 split.next();12 split.next();
13 <span·class="macro">assert_eq!</span>(split.remainder(),·<span·class="prelude-val">Some</span>(<span·class="string">"had·a·little·lamb"</span>));13 <span·class="macro">assert_eq!</span>(split.remainder(),·<span·class="prelude-val">Some</span>(<span·class="string">"had·a·little·lamb"</span>));
14 split.by_ref().for_each(drop);14 split.by_ref().for_each(drop);
15 <span·class="macro">assert_eq!</span>(split.remainder(),·<span·class="prelude-val">None</span>);</code></pre><a·class="test-arrow"·target="_blank"·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">Run</a></div>15 <span·class="macro">assert_eq!</span>(split.remainder(),·<span·class="prelude-val">None</span>);</code></pre><a·class="test-arrow"·target="_blank"·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">Run</a></div>
16 </div></details></div></details></div><h2·id="trait-implementations"·class="section-header">Trait·Implementations<a·href="#trait-implementations"·class="anchor">§</a></h2><div·id="trait-implementations-list"><details·class="toggle·implementors-toggle"·open><summary><section·id="impl-Clone-for-Split%3C'a,+P%3E"·class="impl"><a·class="src·rightside"·href="../../src/core/str/iter.rs.html#781-797">source</a><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">where16 </div></details></div></details></div><h2·id="trait-implementations"·class="section-header">Trait·Implementations<a·href="#trait-implementations"·class="anchor">§</a></h2><div·id="trait-implementations-list"><details·class="toggle·implementors-toggle"·open><summary><section·id="impl-Clone-for-Split%3C'a,+P%3E"·class="impl"><a·class="src·rightside"·href="https://doc.rust-lang.org/1.78.0/src/core/str/iter.rs.html#781-797">source</a><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.78.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
17 ····P:·<a·class="trait"·href="pattern/trait.Pattern.html"·title="trait·alloc::str::pattern::Pattern">Pattern</a>&lt;'a&gt;,17 ····P:·<a·class="trait"·href="pattern/trait.Pattern.html"·title="trait·alloc::str::pattern::Pattern">Pattern</a>&lt;'a&gt;,
18 ····&lt;P·as·<a·class="trait"·href="pattern/trait.Pattern.html"·title="trait·alloc::str::pattern::Pattern">Pattern</a>&lt;'a&gt;&gt;::<a·class="associatedtype"·href="pattern/trait.Pattern.html#associatedtype.Searcher"·title="type·alloc::str::pattern::Pattern::Searcher">Searcher</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"><details·class="toggle·method-toggle"·open><summary><section·id="method.clone"·class="method·trait-impl"><a·class="src·righ[·...·truncated·by·diffoscope;·len:·1377,·SHA:·3baeb7afd398ed438346c4e76958586e499c1b96045a0c6d67362e8e4914336a·...·]/src/core/str/iter.rs.html#781-797">source</a><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">where18 ····&lt;P·as·<a·class="trait"·href="pattern/trait.Pattern.html"·title="trait·alloc::str::pattern::Pattern">Pattern</a>&lt;'a&gt;&gt;::<a·class="associatedtype"·href="pattern/trait.Pattern.html#associatedtype.Searcher"·title="type·alloc::str::pattern::Pattern::Searcher">Searcher</a>:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.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:·1620,·SHA:·d7a6827e047ae071d438de1af31dd3e2c289fd42d5472d1edf797a4c80bbf089·...·]/src/core/str/iter.rs.html#781-797">source</a><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
19 ····P:·<a·class="trait"·href="pattern/trait.Pattern.html"·title="trait·alloc::str::pattern::Pattern">Pattern</a>&lt;'a&gt;,19 ····P:·<a·class="trait"·href="pattern/trait.Pattern.html"·title="trait·alloc::str::pattern::Pattern">Pattern</a>&lt;'a&gt;,
20 ····&lt;P·as·<a·class="trait"·href="pattern/trait.Pattern.html"·title="trait·alloc::str::pattern::Pattern">Pattern</a>&lt;'a&gt;&gt;::<a·class="associatedtype"·href="pattern/trait.Pattern.html#associatedtype.Searcher"·title="type·alloc::str::pattern::Pattern::Searcher">Searcher</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/str/iter.rs.html#781-797">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:·888,·SHA:·6c1823ace3a5b203b180d61acd5a5a134e9ace438ef8eb091f9f9c3788190280·...·]/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">where20 ····&lt;P·as·<a·class="trait"·href="pattern/trait.Pattern.html"·title="trait·alloc::str::pattern::Pattern">Pattern</a>&lt;'a&gt;&gt;::<a·class="associatedtype"·href="pattern/trait.Pattern.html#associatedtype.Searcher"·title="type·alloc::str::pattern::Pattern::Searcher">Searcher</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.78.0/src/core/str/iter.rs.html#781-797">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:·1023,·SHA:·54d85601a9c159559dbd18b083131377c930c7d51c06cad605876e78acfadfc2·...·]/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
21 ····P:·<a·class="trait"·href="pattern/trait.Pattern.html"·title="trait·alloc::str::pattern::Pattern">Pattern</a>&lt;'a&gt;,21 ····P:·<a·class="trait"·href="pattern/trait.Pattern.html"·title="trait·alloc::str::pattern::Pattern">Pattern</a>&lt;'a&gt;,
22 ····&lt;P·as·<a·class="trait"·href="pattern/trait.Pattern.html"·title="trait·alloc::str::pattern::Pattern">Pattern</a>&lt;'a&gt;&gt;::<a·class="associatedtype"·href="pattern/trait.Pattern.html#associatedtype.Searcher"·title="type·alloc::str::pattern::Pattern::Searcher">Searcher</a>:·<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#781-797">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:·f450b5ec6dde2d20b913426da21476cc812de295a72a8928004347c5e0863d1e·...·]/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 ····&lt;P·as·<a·class="trait"·href="pattern/trait.Pattern.html"·title="trait·alloc::str::pattern::Pattern">Pattern</a>&lt;'a&gt;&gt;::<a·class="associatedtype"·href="pattern/trait.Pattern.html#associatedtype.Searcher"·title="type·alloc::str::pattern::Pattern::Searcher">Searcher</a>:·<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.78.0/src/core/str/iter.rs.html#781-797">source</a><a·href="#method.next_back"·class="anchor">§</a><h4·class="code-header">fn·<a·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/double_ended/trait.DoubleEndedIterator.html#[·...·truncated·by·diffoscope;·len:·3879,·SHA:·ef0eb7471a86048ca9de83512c9d7ea22311d3dce456ac9cee2bdbed9030cd3b·...·]/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.78.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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(B,·Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.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.78.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.7[·...·truncated·by·diffoscope;·len:·3,·SHA:·7b1bd53949b752d143d871408483b5382371b5bc48d195d0c040ec93cfa2748b·...·]/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:·74b709f2c818a4eda5d85ea863eb2d8af72c87564dbab2746e67feafb0cbb9a3·...·]/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.78.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:·d66ed7e195a53e9945339ef1976aed455dcf80228d8e5b7b0c69a64c3983fea1·...·]/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.78.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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(B,·Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/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:·f8bdf1e28866c7668477ab391452c7cfa7fd52cc69b633e782a157931421b39b·...·]/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.78.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:·c264047794019a6dcf05728ba6a6ee1f8f07c7209958b3366ba94546b527ecdc·...·]/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.78.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:·702,·SHA:·5b285696ea1fb98579d46b6b3efc41a0a614a5fb091303bbbc49190759e1d8dd·...·]/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">where31 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·864,·SHA:·efc38adb67318e50a15c1928433e48492f2f169dd0182bf9b3d65dec756f1a3a·...·]/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
32 ····P:·<a·class="trait"·href="pattern/trait.Pattern.html"·title="trait·alloc::str::pattern::Pattern">Pattern</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·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·class="primitive"·href="../../core/primitive.str.html">str</a></h4></section></summary><div·class='docblock'>The·type·of·the·elements·bein[·...·truncated·by·diffoscope;·len:·1220,·SHA:·ed13b94d90443ad6ec7fc9f3da159199f8b5bf3f0ddf049f859c6ed5a30d5f3b·...·]/core/primitive.usize.html">usize</a>&gt;(32 ····P:·<a·class="trait"·href="pattern/trait.Pattern.html"·title="trait·alloc::str::pattern::Pattern">Pattern</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·href="#associatedtype.Item"·class="anchor">§</a><h4·class="code-header">type·<a·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·class="associatedtype">Item</a>·=·&amp;'a·<a·class="primitive"·href="https://doc.rust-lang.org/1.78.0/core/primitive.str.html">str</a></h4></section></summa[·...·truncated·by·diffoscope;·len:·1490,·SHA:·ab0e41fb55d63e4264a6005e7b98b16230468f5f7c38c6a9e0a3433e89c673e6·...·]/core/primitive.usize.html">usize</a>&gt;(
33 ····&amp;mut·self33 ····&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.78.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.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title=[·...·truncated·by·diffoscope;·len:·381,·SHA:·88c48923c9b7ea5cc47c1087c60e09656e81d4671c58071ba2bef826335388bc·...·]/core/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:·1593,·SHA:·59204fc1883bd9e8d10e390b843913f01f97378e05bff840116b149bc5b4dc00·...·]/core/primitive.usize.html">usize</a><div·class="where">where35 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experiment[·...·truncated·by·diffoscope;·len:·1890,·SHA:·62ca204af9e3eb9911a3bbbf9669088b55c64885573e7f4b900a3761d117ab1a·...·]/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:·579,·SHA:·97df9cdc3f1cc1461e704ebdf0c047ac7c0165f9aec8e9afdc069209b7a15a36·...·]/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.78.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:·741,·SHA:·f3078cc3fddd62af2c1a8814c5854bb49f40b79e4fbc9b3addf5862a72370f82·...·]/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:·2868,·SHA:·9ec21b8470b914406f4216b9bac831bf85cccf58579bd476408d6168be7cd43e·...·]/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.78.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.78.0/cor[·...·truncated·by·diffoscope;·len:·3408,·SHA:·b62c6ed65b31a8b555c142d9d15f3ce30e5c76ad2630a0e5a9b13cfd478c6eee·...·]/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.78.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"><a·class="src·rightside"·href="../../src/core/iter/tra[·...·truncated·by·diffoscope;·len:·584,·SHA:·fd3e570373eb5121d35d7e22cdd5dd5fbf7183ee80147135a591fd1285174e82·...·]/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.78.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"><a·class="src·rightside"·hr[·...·truncated·by·diffoscope;·len:·746,·SHA:·f1f70d650c102c8658e13890c7dbfc87418f07e7b522246fb579ec434ef64f7c·...·]/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.78.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:·1017,·SHA:·c0f5f8cfd297e1678ac0ee2fd847fb6f0577665ac326e8e2e9d6414a710c8f98·...·]/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.78.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.78.0/core/iter/traits/it[·...·truncated·by·diffoscope;·len:·1233,·SHA:·f677df2d893dfe0dc1a9d31ebb0ba71a346d265781813e0d664d3f18369b6163·...·]/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.78.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:·c1b5e692e89c9c809075ee8ee72fb15a9ec46c075b08450e1f707d672a224750·...·]/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.78.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:·98627729f77dcf1c9d258f343354ba600b7134c6b3929080f231e8de7155b70b·...·]/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.78.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.78.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.78.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"><a·class="src·rightside"·href="../../src/core/i[·...·truncated·by·diffoscope;·len:·267,·SHA:·1764c9d6d2e39e1367ae2111c28ab846e66ecf12617fbff35e0132e82e5c8b13·...·]/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.78.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"><a·class="src·rights[·...·truncated·by·diffoscope;·len:·375,·SHA:·58419346f92e1709dadb70cc3cf356e3cd27972451bdc6b4fc4267e6f7e8bdae·...·]/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.78.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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::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:·fb4c9589a16c7b6d697c109d1193d2f1e763e5dd967101c2fd92b32416972229·...·]/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.78.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:·98f6effefa44d759c249143d83623f0055d937382bfc398b7e1f5e92cd413657·...·]/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.78.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:·658,·SHA:·e4449b6c00d036dd30444817045eddaf2697443d65789bb5c0b585ed1bc77702·...·]/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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·820,·SHA:·a664bbcbc0891663662e4eb7b4394d0fcd72e568136fc4d34097fea242cc32e7·...·]/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.78.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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·140,·SHA:·752f473b57e7444ebfddf5ea7fd40a332e83ec55524a6c31b5ee0f82a5dea819·...·]/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"><a·class="src·rightside"·href="../../src/core/iter[·...·truncated·by·diffoscope;·len:·285,·SHA:·738ce0440ff568829f40d141e38e2c0da2fd05d2b73d1a574be0ed9baa32e827·...·]/core/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.78.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"><a·class="src·rightside[·...·truncated·by·diffoscope;·len:·393,·SHA:·2e2aa7c9c9c087e7b346da376749064ab8c1894795a2f0a0f646cdc8c7bea997·...·]/core/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.78.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:·767,·SHA:·da0fc5bc95a3398627e0c5836423b719ccea45d351e21ddaa96f793f67f9c6de·...·]/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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·956,·SHA:·faba0521e870dbbd26d466fadba3522e7d29013a9b86376fffafffac11a57e0e·...·]/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.78.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"><a·class="src·rightside"·href="../../src/core/ite[·...·truncated·by·diffoscope;·len:·264,·SHA:·e3fa7ab43c6353bc2216a22d7010c41a8ab50d273a128d15d0eff050c058993a·...·]/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.78.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"><a·class="src·rightsid[·...·truncated·by·diffoscope;·len:·372,·SHA:·03eea0861575eb80d3f7a87a3ba747adb1a33fe7e9ce72aa2172e7a287c63a94·...·]/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.78.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.78.0/core/iter/adapte[·...·truncated·by·diffoscope;·len:·175,·SHA:·16fe7225bf05b478e2828b347c3d23ded9a22f89d8887a2c65d9f7b3faf1b0e7·...·]/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"><a·class="src·rightside"·href="../../src/core/it[·...·truncated·by·diffoscope;·len:·294,·SHA:·c0aee2077af6a4f81ed47e37c84a75b5f9b941875509fbe0b3d352866f825f45·...·]/core/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.78.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"><a·class="src·rightsi[·...·truncated·by·diffoscope;·len:·402,·SHA:·7689a974f800fd069d1b4453ef62d6d6ad1b654462d624d36e3672051d502030·...·]/core/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.78.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:·922,·SHA:·5220bbb4db3c3cd3d7ca7c27520f44f04fe367ee2f0f407fb1d50c0a327a2f99·...·]/core/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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·1138,·SHA:·f6ae06b7de8e94df014341c5cf589a5e4a1298367b2ef7a968ec499c5170a70e·...·]/core/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.78.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:·39eeddf219b211245393e51a591d5064c740fa9be49d88883d8a6474679741ad·...·]/core/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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·1058,·SHA:·b390dbdda8d7e93604b5ecd906a93efd03fe19bdaf41cf12893fd361bf974307·...·]/core/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.78.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:·851,·SHA:·ad2e090d21a034b7c3836ed38a686f4c483f9a929132fef846d48271f749a79c·...·]/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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·1067,·SHA:·415d32e1211c35d3bb405de1d6e51c2102c14cadc3333894f063148dbe0b1f69·...·]/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:·525,·SHA:·6471f48fecadc56edf21fc04794b884b96ce06d339c715e410f5a906e028bc28·...·]/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.78.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:·687,·SHA:·7f5256104c35c5948a2cb42b55f3048c9d2887e48a4a8226537a284f959c562a·...·]/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.78.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"><a·class="src·rightside"·href="../../src/core/iter/traits/[·...·truncated·by·diffoscope;·len:·284,·SHA:·aee83f38f8c40848e159b12a8faa43b9dadf589fe974632a1f15ce2a15834071·...·]/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.78.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"><a·class="src·rightside"·href="[·...·truncated·by·diffoscope;·len:·392,·SHA:·4e7da68f7be2622ef173653eca78d58e1f202b544a2e6abd14d8335c298c93a7·...·]/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.78.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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(<a·class="primitive"·href="https://doc.rust-lang.org/1.78.0/core/primitive.reference.html">&amp;mut·St</a>,·Self::<a·class="associatedty[·...·truncated·by·diffoscope;·len:·449,·SHA:·f12c268a8a8111b9e7126ad78bf5523a63733caa63d187c4fe792309ea41acdf·...·]/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:·459,·SHA:·b825570d9672670eacd8828b3abec12cd1c35433286857de28f5ea8d5e300e03·...·]/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.78.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.78.0/core/iter/trai[·...·truncated·by·diffoscope;·len:·594,·SHA:·02960742fa7892efaa08f289ce85865fc5efb6a4cd138c22e3566ca6fc727d78·...·]/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.78.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.78.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:·9b6a337a3ad68c2a987b52450c153f87a04a8ed9e83603d26077fe6e70d61edf·...·]/core/iter/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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·976,·SHA:·2a9182f6fe88e0b8a9b1ae1f46cace940cc0b8736033c354c0f0ccbf1c196e7a·...·]/core/iter/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.78.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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;[Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtyp[·...·truncated·by·diffoscope;·len:·135,·SHA:·0b06a6094d42ccbc8bce5b01c4383961fe7f1967f05e4c9f1ff33e71e425fb26·...·]/core/primitive.array.html">N</a>])·-&gt;·R,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iter_map_windows</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/87155">#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.78.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"><a·class="src·rightside"·href="../../src/core/iter/[·...·truncated·by·diffoscope;·len:·250,·SHA:·e355ddd0f04b2470ee915aec3ad97857be56b95e6a1f3d733d6c477453f4cf0d·...·]/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.78.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"><a·class="src·rightside"[·...·truncated·by·diffoscope;·len:·358,·SHA:·d91b2ab18e0ce069e262cf523c6ef961f56eecad042ea1e9bcefe33cff28fc8f·...·]/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:·583,·SHA:·b7d7d6125e8980756a2636a6b6e01600057c98a027dcf7d267b1f61538a7b6b0·...·]/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.78.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.78.0/core/op[·...·truncated·by·diffoscope;·len:·745,·SHA:·424783f22102f4446d3ad4d362b1aafdb7531fa777213f97ee138aa878f67bd1·...·]/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.78.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:·676,·SHA:·ae75f35cafbae1e0e695226baca09b0bec6e4a0ed5656a83c3357b29fb00442d·...·]/core/primitive.reference.html">&amp;mut·Self</a><div·class="where">where83 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·838,·SHA:·9b4fd8df7f41e9a76fd4cfca0a233b74b9bd27c3fe8228248abc3f940425a3e3·...·]/core/primitive.reference.html">&amp;mut·Self</a><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:·319,·SHA:·bbb653fcb1f5ad46e04905bf78a76b9dd63ea5d49a2d8cd5b7b36efbb0f7e105·...·]/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.78.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.78.0/core/it[·...·truncated·by·diffoscope;·len:·427,·SHA:·ecfaaac5d1d10c1bc4fcee9a050af0a268bee0b528c2d8ea4e9774440bd8a279·...·]/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.78.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.78.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:·e5d524e874326d0b9b733f5ee809c6595cde869afab0cc3d4ba8454093f420da·...·]/core/primitive.reference.html">&amp;mut·E</a><div·class="where">where86 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.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.78.0/core/iter/tr[·...·truncated·by·diffoscope;·len:·728,·SHA:·01937c2dc314c259495665570ae249c94b4a5b0719718f5f1188e6fc64ecf487·...·]/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.78.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.78.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:·744,·SHA:·a7446142ab67c3f20d866315fbe6cb9c57cd4af012812d6dd19d5061aee6e97b·...·]/core/primitive.tuple.html">(B,·B)</a><div·class="where">where88 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experiment[·...·truncated·by·diffoscope;·len:·879,·SHA:·e773b2222c92d001e295030cb47a780ab0c1132d7fc8e9e3a98de4f532e6c520·...·]/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.78.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.78.0/core/default/trait.Default.html"·title="trait·core::default::Default">Default</a>·+·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/collect/trait.Extend.html"·title="trait·core::iter::traits::collec[·...·truncated·by·diffoscope;·len:·95,·SHA:·8b3be1d0042cae0550f865faf5849221240bdf04eb1b2107605b72d48c3ad29c·...·]/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:·f8b50287f3e106633ed79a84072d3ddd9d98672efd685d2433c61b5549ce051e·...·]/core/primitive.bool.html">bool</a><div·class="where">where91 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·972,·SHA:·6de765542031617a9c28ac98fe6df619e58e62d9c65ec5b1c185a7152b8944e5·...·]/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.78.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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·135,·SHA:·51ff5f5c7ebd8440623ea71b125c5a5837e809e308fe1a13fbe19cddb941dbd9·...·]/core/primitive.bool.html">bool</a>,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iter_is_partitioned</code>&nbsp;<a·href="https://github.com/rust-lang/rust/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:·6f406a351b93047f56fa70265a6bf28ec6874f75cd6cc5a39d51c7af462f2992·...·]/core/iter/traits/iterator/trait.Iterator.html#method.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.78.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:·2c74873f4e5ba70004a1c7edd1cc3f9e2d91271295dd1591e2d26848df4c02ba·...·]/core/iter/traits/iterator/trait.Iterator.html#method.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.78.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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(B,·Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.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.78.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:·eecdce021399d206eb3ef5af12ee7663b4eb0dca55b0f411c7fa66f605b6b2e2·...·]/core/iter/traits/iterator/trait.Iterator.html#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.78.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:·52912e82c4b0a760d06f77eb4ee3a59ba70dd76cb532954900c73ae94c652674·...·]/core/iter/traits/iterator/trait.Iterator.html#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.78.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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.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.78.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.78.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"><a·class="src·rightside"·href="../../src/core/iter[·...·truncated·by·diffoscope;·len:·130,·SHA:·75c0150024fe6cdc702d7337508ab57600248490dd062768204ddb064c9a1b8b·...·]/core/iter/traits/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.78.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"><a·class="src·rightside[·...·truncated·by·diffoscope;·len:·211,·SHA:·924e062acd8127e8d6158162219ee5d57a941854e14063d21d7768edae549431·...·]/core/iter/traits/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.78.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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(B,·Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::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:·dbe3a08fe63abd47570741e71208c31aaf51152feac5917db07665a1f56bb3e3·...·]/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.78.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:·b60215068a6d9721be05f81098c51167d7138c4042f140cad42f77c4df43f597·...·]/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.78.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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·352,·SHA:·e7c3c296abe2c0a183967153e4ae7fd50bafa2ae7088e3e78b3b48fee253adc6·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::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:·a9dce8bb557b5a11426bf2ffcbd5eea7c6c870833e3ee5bb072dcaaa11687b0c·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_reduce"·class="fn">try_reduce</a>&lt;F,·R&gt;(108 operation.·<a·href="https://doc.rust-lang.org/1.78.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:·7a18fdd041b1a001b4a8feb289ee127fd9240232239269eb35dc3b8f74783ec9·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_reduce"·class="fn">try_reduce</a>&lt;F,·R&gt;(
109 ····&amp;mut·self,109 ····&amp;mut·self,
110 ····f:·F110 ····f:·F
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.78.0/core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&gt;::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/ops/try_trait/trait.Try.html#associatedtype.Residual"·title="type[·...·truncated·by·diffoscope;·len:·754,·SHA:·6fb4dfdb6b4da68921c1e7f8b75d99cf293d58318d684a840254ce9576957bea·...·]/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.78.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:·59,·SHA:·3d53eece7c48858eda31192ab2620ae144896b35400c945bbf3eb5dc06bf8d12·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·R,113 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·140,·SHA:·c27972e6fa3464c9476eaa185e8657edb6bb294f148403f3d079285294a9f909·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·R,
114 ····R:·<a·class="trait"·href="../../core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&lt;Output·=·Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;,114 ····R:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.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.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;,
115 ····&lt;R·as·<a·class="trait"·href="../../core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&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·the115 ····&lt;R·as·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&gt;::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/ops/try_trait/trait.Try.html#associatedtype.Residual"·title="type[·...·truncated·by·diffoscope;·len:·412,·SHA:·22b8cbb007e5cce82b9d13a65bfa56aa8d83c32541fac25f4d9b3857b0540908·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;&gt;,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iterator_try_reduce</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/87053">#87053</a>)</span></div></span><div·class='docblock'>Reduces·the·elements·to·a·single·one·by·repeatedly·applying·a·reducing·operation.·If·the
116 closure·returns·a·failure,·the·failure·is·propagated·back·to·the·caller·immediately.·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.try_reduce">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.all"·class="method·trait-impl"><a·class="src·rightside"·href="../../src/core/iter/tr[·...·truncated·by·diffoscope;·len:·272,·SHA:·97959736d897a01242f49f2e45854ab874bf0c9bbe30acad9a49eb73169e457c·...·]/core/primitive.bool.html">bool</a><div·class="where">where116 closure·returns·a·failure,·the·failure·is·propagated·back·to·the·caller·immediately.·<a·href="https://doc.rust-lang.org/1.78.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"><a·class="src·rightside"·h[·...·truncated·by·diffoscope;·len:·380,·SHA:·29c4004d4d8b0c8c9dfe9023f8b2c5ef801d9dc4688893035d182c1ae774c453·...·]/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.78.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:·733,·SHA:·9bb9f0199d90f78ad65c59dbe67a1c751cd5a681130a03bef3b1e8ed907a3bba·...·]/core/primitive.bool.html">bool</a><div·class="where">where118 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·922,·SHA:·f4fd532c280e18f28bd6dda6c2a129e2e92114b67f27235bb5fd39f725be9c43·...·]/core/primitive.bool.html">bool</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.78.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>(Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::[·...·truncated·by·diffoscope;·len:·860,·SHA:·6a94ae33b82eb12a91660811a8ab9d243468d885c07ac766a2507d25a4e7ee62·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;<div·class="where">where120 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·1076,·SHA:·2dd9de8adaee4a5ee96501d9a58bfac2fea00ba8d78b834bfca29949b3afe18b·...·]/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.78.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>(&amp;Self::<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:·21d7086b3ce0092e3f7a6a41174339bbd8724e7d186158db4db3385a73d94e8e·...·]/core/option/enum.Option.html"·title="enum·core::option::Option">Option</a>&lt;B&gt;<div·class="where">where122 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·1051,·SHA:·ecc0b8fccd861464760f9ae047ff6ab98c91a1db010cb5fa59a8c2ab883db7c4·...·]/core/option/enum.Option.html"·title="enum·core::option::Option">Option</a>&lt;B&gt;<div·class="where">where
123 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,123 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.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>(Self::<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·returns124 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·130,·SHA:·130a13019dc175d02304b4f550157e2f13ac15c2f25a979c74161d10b146ab89·...·]/core/option/enum.Option.html"·title="enum·core::option::Option">Option</a>&lt;B&gt;,</div></h4></section></summary><div·class='docblock'>Applies·function·to·the·elements·of·iterator·and·returns
125 the·first·non-none·result.·<a·href="../../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:·ac4da3337aac1ec10038e246be9cb719eeb5af1acc709f5a6a25b91900c56f53·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_find"·class="fn">try_find</a>&lt;F,·R&gt;(125 the·first·non-none·result.·<a·href="https://doc.rust-lang.org/1.78.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:·8ced1b10e78750774c5c8ed995ed83dcd13983aa75d329acf8069da106ab9f4a·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_find"·class="fn">try_find</a>&lt;F,·R&gt;(
126 ····&amp;mut·self,126 ····&amp;mut·self,
127 ····f:·F127 ····f:·F
Max diff block lines reached; 88775/304324 bytes (29.17%) of diff not shown.
303 KB
./usr/share/doc/rust-web-doc/html/alloc/str/struct.SplitAsciiWhitespace.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·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.write(`<link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/SourceSerif4-Regular-46f98efaafac5295.ttf.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/FiraSans-Regular-018c141bf0843ffd.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/FiraSans-Medium-8f9a781e4970d388.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/SourceCodePro-Regular-562dcc5011b6de7d.ttf.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/SourceCodePro-Semibold-d899c5a5c4aeb14a.ttf.woff2">`)</script><link·rel="stylesheet"·href="../../static.files/normalize-76eba96aa4d2e634.css"><link·rel="stylesheet"·href="../../static.files/rustdoc-35f9e32502181f1e.css"><meta·name="rustdoc-vars"·data-root-path="../../"·data-static-root-path="../../static.files/"·data-current-crate="alloc"·data-themes=""·data-resource-suffix="1.78.0"·data-rustdoc-version="1.78.0"·data-channel="1.78.0"·data-search-js="search-42d8da7a6b9792c2.js"·data-settings-js="settings-4313503d2e1961c2.js"·><script·src="../../static.files/storage-4c98445ec4002617.js"></script><script·defer·src="sidebar-items1.78.0.js"></script><script·defer·src="../../static.files/main-12cf3b4f4f9dc36d.js"></script><noscript><link·rel="stylesheet"·href="../../static.files/noscript-04d5337699b92874.css"></noscript><link·rel="alternate·icon"·type="image/png"·href="../../static.files/favicon-16x16-8b506e7a72182f1c.png"><link·rel="alternate·icon"·type="image/png"·href="../../static.files/favicon-32x32-422f7d1d52889060.png"><link·rel="icon"·type="image/svg+xml"·href="../../static.files/favicon-2c020d218678b618.svg"></head><body·class="rustdoc·struct"><!--[if·lte·IE·11]><div·class="warning">This·old·browser·is·unsupported·and·will·most·likely·display·funky·things.</div><![endif]--><nav·class="mobile-topbar"><button·class="sidebar-menu-toggle"·title="show·sidebar"></button><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-151179464ae7ed46.svg"·alt=""></a></nav><nav·class="sidebar"><div·class="sidebar-crate"><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-151179464ae7ed46.svg"·alt="logo"></a><h2><a·href="../../alloc/index.html">alloc</a><span·class="version">1.78.0</span></h2></div><h2·class="location"><a·href="#">SplitAsciiWhitespace</a></h2><div·class="sidebar-elems"><section><h3><a·href="#implementations">Methods</a></h3><ul·class="block·method"><li><a·href="#method.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">Clone</a></li><li><a·href="#impl-Debug-for-SplitAsciiWhitespace%3C'a%3E">Debug</a></li><li><a·href="#impl-DoubleEndedIterator-for-SplitAsciiWhitespace%3C'a%3E">DoubleEndedIterator</a></li><li><a·href="#impl-FusedIterator-for-SplitAsciiWhitespace%3C'_%3E">FusedIterator</a></li><li><a·href="#impl-Iterator-for-SplitAsciiWhitespace%3C'a%3E">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">Freeze</a></li><li><a·href="#impl-RefUnwindSafe-for-SplitAsciiWhitespace%3C'a%3E">RefUnwindSafe</a></li><li><a·href="#impl-Send-for-SplitAsciiWhitespace%3C'a%3E">Send</a></li><li><a·href="#impl-Sync-for-SplitAsciiWhitespace%3C'a%3E">Sync</a></li><li><a·href="#impl-Unpin-for-SplitAsciiWhitespace%3C'a%3E">Unpin</a></li><li><a·href="#impl-UnwindSafe-for-SplitAsciiWhitespace%3C'a%3E">UnwindSafe</a></li></ul><h3><a·href="#blanket-implementations">Blanket·Implementations</a></h3><ul·class="block·blanket-implementation"><li><a·href="#impl-Any-for-T">Any</a></li><li><a·href="#impl-Borrow%3CT%3E-for-T">Borrow&lt;T&gt;</a></li><li><a·href="#impl-BorrowMut%3CT%3E-for-T">BorrowMut&lt;T&gt;</a></li><li><a·href="#impl-From%3CT%3E-for-T">From&lt;T&gt;</a></li><li><a·href="#impl-Into%3CU%3E-for-T">Into&lt;U&gt;</a></li><li><a·href="#impl-IntoIterator-for-I">IntoIterator</a></li><li><a·href="#impl-ToOwned-for-T">ToOwned</a></li><li><a·href="#impl-TryFrom%3CU%3E-for-T">TryFrom&lt;U&gt;</a></li><li><a·href="#impl-TryInto%3CU%3E-for-T">TryInto&lt;U&gt;</a></li></ul></section><h2><a·href="index.html">In·alloc::str</a></h2></div></nav><div·class="sidebar-resizer"></div>1 <!DOCTYPE·html><html·lang="en"><head><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.write(`<link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/SourceSerif4-Regular-46f98efaafac5295.ttf.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/FiraSans-Regular-018c141bf0843ffd.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/FiraSans-Medium-8f9a781e4970d388.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/SourceCodePro-Regular-562dcc5011b6de7d.ttf.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/SourceCodePro-Semibold-d899c5a5c4aeb14a.ttf.woff2">`)</script><link·rel="stylesheet"·href="../../static.files/normalize-76eba96aa4d2e634.css"><link·rel="stylesheet"·href="../../static.files/rustdoc-35f9e32502181f1e.css"><meta·name="rustdoc-vars"·data-root-path="../../"·data-static-root-path="../../static.files/"·data-current-crate="alloc"·data-themes=""·data-resource-suffix="1.78.0"·data-rustdoc-version="1.78.0"·data-channel="1.78.0"·data-search-js="search-42d8da7a6b9792c2.js"·data-settings-js="settings-4313503d2e1961c2.js"·><script·src="../../static.files/storage-4c98445ec4002617.js"></script><script·defer·src="sidebar-items1.78.0.js"></script><script·defer·src="../../static.files/main-12cf3b4f4f9dc36d.js"></script><noscript><link·rel="stylesheet"·href="../../static.files/noscript-04d5337699b92874.css"></noscript><link·rel="alternate·icon"·type="image/png"·href="../../static.files/favicon-16x16-8b506e7a72182f1c.png"><link·rel="alternate·icon"·type="image/png"·href="../../static.files/favicon-32x32-422f7d1d52889060.png"><link·rel="icon"·type="image/svg+xml"·href="../../static.files/favicon-2c020d218678b618.svg"></head><body·class="rustdoc·struct"><!--[if·lte·IE·11]><div·class="warning">This·old·browser·is·unsupported·and·will·most·likely·display·funky·things.</div><![endif]--><nav·class="mobile-topbar"><button·class="sidebar-menu-toggle"·title="show·sidebar"></button><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-151179464ae7ed46.svg"·alt=""></a></nav><nav·class="sidebar"><div·class="sidebar-crate"><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-151179464ae7ed46.svg"·alt="logo"></a><h2><a·href="../../alloc/index.html">alloc</a><span·class="version">1.78.0</span></h2></div><h2·class="location"><a·href="#">SplitAsciiWhitespace</a></h2><div·class="sidebar-elems"><section><h3><a·href="#implementations">Methods</a></h3><ul·class="block·method"><li><a·href="#method.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">Clone</a></li><li><a·href="#impl-Debug-for-SplitAsciiWhitespace%3C'a%3E">Debug</a></li><li><a·href="#impl-DoubleEndedIterator-for-SplitAsciiWhitespace%3C'a%3E">DoubleEndedIterator</a></li><li><a·href="#impl-FusedIterator-for-SplitAsciiWhitespace%3C'_%3E">FusedIterator</a></li><li><a·href="#impl-Iterator-for-SplitAsciiWhitespace%3C'a%3E">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">Freeze</a></li><li><a·href="#impl-RefUnwindSafe-for-SplitAsciiWhitespace%3C'a%3E">RefUnwindSafe</a></li><li><a·href="#impl-Send-for-SplitAsciiWhitespace%3C'a%3E">Send</a></li><li><a·href="#impl-Sync-for-SplitAsciiWhitespace%3C'a%3E">Sync</a></li><li><a·href="#impl-Unpin-for-SplitAsciiWhitespace%3C'a%3E">Unpin</a></li><li><a·href="#impl-UnwindSafe-for-SplitAsciiWhitespace%3C'a%3E">UnwindSafe</a></li></ul><h3><a·href="#blanket-implementations">Blanket·Implementations</a></h3><ul·class="block·blanket-implementation"><li><a·href="#impl-Any-for-T">Any</a></li><li><a·href="#impl-Borrow%3CT%3E-for-T">Borrow&lt;T&gt;</a></li><li><a·href="#impl-BorrowMut%3CT%3E-for-T">BorrowMut&lt;T&gt;</a></li><li><a·href="#impl-From%3CT%3E-for-T">From&lt;T&gt;</a></li><li><a·href="#impl-Into%3CU%3E-for-T">Into&lt;U&gt;</a></li><li><a·href="#impl-IntoIterator-for-I">IntoIterator</a></li><li><a·href="#impl-ToOwned-for-T">ToOwned</a></li><li><a·href="#impl-TryFrom%3CU%3E-for-T">TryFrom&lt;U&gt;</a></li><li><a·href="#impl-TryInto%3CU%3E-for-T">TryInto&lt;U&gt;</a></li></ul></section><h2><a·href="index.html">In·alloc::str</a></h2></div></nav><div·class="sidebar-resizer"></div>
2 ····<main><div·class="width-limiter"><nav·class="sub"><form·class="search-form"><span></span><div·id="sidebar-button"·tabindex="-1"><a·href="../../alloc/all.html"·title="show·sidebar"></a></div><input·class="search-input"·name="search"·aria-label="Run·search·in·the·documentation"·autocomplete="off"·spellcheck="false"·placeholder="Click·or·press·‘S’·to·search,·‘?’·for·more·options…"·type="search"><div·id="help-button"·tabindex="-1"><a·href="../../help.html"·title="help">?</a></div><div·id="settings-menu"·tabindex="-1"><a·href="../../settings.html"·title="settings"><img·width="22"·height="22"·alt="Change·settings"·src="../../static.files/wheel-7b819b6101059cd0.svg"></a></div></form></nav><section·id="main-content"·class="content"><div·class="main-heading"><h1>Struct·<a·href="../index.html">alloc</a>::<wbr><a·href="index.html">str</a>::<wbr><a·class="struct"·href="#">SplitAsciiWhitespace</a><button·id="copy-path"·title="Copy·item·path·to·clipboard"><img·src="../../static.files/clipboard-7571035ce49a181d.svg"·width="19"·height="18"·alt="Copy·item·path"></button></h1><span·class="out-of-band"><span·class="since"·title="Stable·since·Rust·version·1.34.0">1.34.0</span>···<a·class="src"·href="../../src/core/str/iter.rs.html#1276">source</a>···<button·id="toggle-all-docs"·title="collapse·all·docs">[<span>&#x2212;</span>]</button></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 ····<main><div·class="width-limiter"><nav·class="sub"><form·class="search-form"><span></span><div·id="sidebar-button"·tabindex="-1"><a·href="../../alloc/all.html"·title="show·sidebar"></a></div><input·class="search-input"·name="search"·aria-label="Run·search·in·the·documentation"·autocomplete="off"·spellcheck="false"·placeholder="Click·or·press·‘S’·to·search,·‘?’·for·more·options…"·type="search"><div·id="help-button"·tabindex="-1"><a·href="../../help.html"·title="help">?</a></div><div·id="settings-menu"·tabindex="-1"><a·href="../../settings.html"·title="settings"><img·width="22"·height="22"·alt="Change·settings"·src="../../static.files/wheel-7b819b6101059cd0.svg"></a></div></form></nav><section·id="main-content"·class="content"><div·class="main-heading"><h1>Struct·<a·href="../index.html">alloc</a>::<wbr><a·href="index.html">str</a>::<wbr><a·class="struct"·href="#">SplitAsciiWhitespace</a><button·id="copy-path"·title="Copy·item·path·to·clipboard"><img·src="../../static.files/clipboard-7571035ce49a181d.svg"·width="19"·height="18"·alt="Copy·item·path"></button></h1><span·class="out-of-band"><span·class="since"·title="Stable·since·Rust·version·1.34.0">1.34.0</span>···<a·class="src"·href="https://doc.rust-lang.org/1.78.0/src/core/str/iter.rs.html#1276">source</a>···<button·id="toggle-all-docs"·title="collapse·all·docs">[<span>&#x2212;</span>]</button></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,
3 separated·by·any·amount·of·ASCII·whitespace.</p>3 separated·by·any·amount·of·ASCII·whitespace.</p>
4 <p>This·struct·is·created·by·the·<a·href="../../core/primitive.str.html#method.split_ascii_whitespace"·title="method·str::split_ascii_whitespace"><code>split_ascii_whitespace</code></a>·method·on·<a·href="../../core/primitive.str.html"·title="primitive·str"><code>str</code></a>.4 <p>This·struct·is·created·by·the·<a·href="https://doc.rust-lang.org/1.78.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.78.0/core/primitive.str.html"·title="primitive·str"><code>str</code></a>.
5 See·its·documentation·for·more.</p>5 See·its·documentation·for·more.</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-SplitAsciiWhitespace%3C'a%3E"·class="impl"><a·class="src·rightside"·href="../../src/core/str/iter.rs.html#1380">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:·26b8f07a9f8d3314368c1397179cb440996996612c24a6cb2adc0ad10aa70263·...·]/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 </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.78.0/src/core/str/iter.rs.html#1380">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:·607713536a0009c521e9f3b5244d58e795685eaec88f5cc72eb3da80f3c129ec·...·]/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>
7 <p>If·the·iterator·is·empty,·returns·<code>None</code>.</p>7 <p>If·the·iterator·is·empty,·returns·<code>None</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="attr">#![feature(str_split_whitespace_remainder)]9 <div·class="example-wrap"><pre·class="rust·rust-example-rendered"><code><span·class="attr">#![feature(str_split_whitespace_remainder)]
  
10 </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><span·class="kw">let·</span><span·class="kw-2">mut·</span>split·=·<span·class="string">"Mary·had·a·little·lamb"</span>.split_ascii_whitespace();
11 <span·class="macro">assert_eq!</span>(split.remainder(),·<span·class="prelude-val">Some</span>(<span·class="string">"Mary·had·a·little·lamb"</span>));11 <span·class="macro">assert_eq!</span>(split.remainder(),·<span·class="prelude-val">Some</span>(<span·class="string">"Mary·had·a·little·lamb"</span>));
  
12 split.next();12 split.next();
13 <span·class="macro">assert_eq!</span>(split.remainder(),·<span·class="prelude-val">Some</span>(<span·class="string">"had·a·little·lamb"</span>));13 <span·class="macro">assert_eq!</span>(split.remainder(),·<span·class="prelude-val">Some</span>(<span·class="string">"had·a·little·lamb"</span>));
  
14 split.by_ref().for_each(drop);14 split.by_ref().for_each(drop);
15 <span·class="macro">assert_eq!</span>(split.remainder(),·<span·class="prelude-val">None</span>);</code></pre><a·class="test-arrow"·target="_blank"·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">Run</a></div>15 <span·class="macro">assert_eq!</span>(split.remainder(),·<span·class="prelude-val">None</span>);</code></pre><a·class="test-arrow"·target="_blank"·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">Run</a></div>
16 </div></details></div></details></div><h2·id="trait-implementations"·class="section-header">Trait·Implementations<a·href="#trait-implementations"·class="anchor">§</a></h2><div·id="trait-implementations-list"><details·class="toggle·implementors-toggle"·open><summary><section·id="impl-Clone-for-SplitAsciiWhitespace%3C'a%3E"·class="impl"><a·class="src·rightside"·href="../../src/core/str/iter.rs.html#1275">source</a><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::Clone">Clo[·...·truncated·by·diffoscope;·len:·7645,·SHA:·2774fca4c8d7c5decd1e3b152719ee8ee44175ac142bbee9b31539da87dfb793·...·]/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 </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"><a·class="src·rightside"·href="https://doc.rust-lang.org/1.78.0/src/core/str/iter.rs.html#1275">source</a><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.78.0/core/clone/[·...·truncated·by·diffoscope;·len:·8617,·SHA:·ce9f7ce4c735e139fd3fa2cebe1f178c568e26ab7e00cc5625dcd3af90303eb1·...·]/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.78.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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(B,·Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.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.78.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.7[·...·truncated·by·diffoscope;·len:·3,·SHA:·7b1bd53949b752d143d871408483b5382371b5bc48d195d0c040ec93cfa2748b·...·]/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:·74b709f2c818a4eda5d85ea863eb2d8af72c87564dbab2746e67feafb0cbb9a3·...·]/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.78.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:·d66ed7e195a53e9945339ef1976aed455dcf80228d8e5b7b0c69a64c3983fea1·...·]/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.78.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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(B,·Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/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:·f8bdf1e28866c7668477ab391452c7cfa7fd52cc69b633e782a157931421b39b·...·]/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.78.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:·c264047794019a6dcf05728ba6a6ee1f8f07c7209958b3366ba94546b527ecdc·...·]/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.78.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:·4289,·SHA:·c2031f904acebd1be0d0410118ac0b2da7e5c6833c1d631bc9894becd81d0003·...·]/core/primitive.usize.html">usize</a>&gt;(25 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·5018,·SHA:·701cf2e8ca73afcb2003ac8c575cc514c8a95587ceb4c9607b597b2ee7eb71f7·...·]/core/primitive.usize.html">usize</a>&gt;(
26 ····&amp;mut·self26 ····&amp;mut·self
27 )·-&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">where27 )·-&gt;·<a·class="enum"·href="https://doc.rust-lang.org/1.78.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.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title=[·...·truncated·by·diffoscope;·len:·381,·SHA:·88c48923c9b7ea5cc47c1087c60e09656e81d4671c58071ba2bef826335388bc·...·]/core/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
28 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></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:·602d17b58d1cf716882ddc867fc66cfda4f899bef17b038a48553e9133f60097·...·]/core/primitive.usize.html">usize</a><div·class="where">where28 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></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:·89791450da70cbd536c3cf8fbf2dd9891668362f9a252d3ee098222d19960bae·...·]/core/primitive.usize.html">usize</a><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'>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:·f92dde8c48ff35deb05a51084054ecdf425850256e0755fd705ef0e8dee5a42a·...·]/core/iter/adapters/step_by/struct.StepBy.html"·title="struct·core::iter::adapters::step_by::StepBy">StepBy</a>&lt;Self&gt;<div·class="where">where29 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.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:·5acc2bcc91ab2687c8137eaa20bd4287e0b901b846fa877b4a1d59df04bc4956·...·]/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
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·starting·at·the·same·point,·but·stepping·by30 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.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
31 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:·5667b9b6c9778ff3b9d23ed0a110e7ab9d3fccc786fdcaca8c17edf996236439·...·]/core/iter/traits/collect/trait.IntoIterator.html#associatedtype.IntoIter"·title="type·core::iter::traits::collect::IntoIterator::IntoIter">IntoIter</a>&gt;<div·class="where">where31 the·given·amount·at·each·iteration.·<a·href="https://doc.rust-lang.org/1.78.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:·e83c903581753673e083ce8dd809879a2fc81ab3050eb6db267d7fa26b15e035·...·]/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.78.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>&lt;Item·=·Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title=[·...·truncated·by·diffoscope;·len:·1113,·SHA:·1c6bb9803ee8832ebd4c28a08a952178165595b6870cf35d3c89454b9da828b2·...·]/core/iter/traits/collect/trait.IntoIterator.html#associatedtype.IntoIter"·title="type·core::iter::traits::collect::IntoIterator::IntoIter">IntoIter</a>&gt;<div·class="where">where33 ····U:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.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.78.0/core/iter/traits/it[·...·truncated·by·diffoscope;·len:·1329,·SHA:·d9299c8edc606ed82f24d61ce441bec451141d684c2a9a75074f5b19c57f196c·...·]/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.78.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>,</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:·c1b5e692e89c9c809075ee8ee72fb15a9ec46c075b08450e1f707d672a224750·...·]/core/iter/adapters/intersperse/struct.IntersperseWith.html"·title="struct·core::iter::adapters::intersperse::IntersperseWith">IntersperseWith</a>&lt;Self,·G&gt;<div·class="where">where35 ····U:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.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:·98627729f77dcf1c9d258f343354ba600b7134c6b3929080f231e8de7155b70b·...·]/core/iter/adapters/intersperse/struct.IntersperseWith.html"·title="struct·core::iter::adapters::intersperse::IntersperseWith">IntersperseWith</a>&lt;Self,·G&gt;<div·class="where">where
36 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,36 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
37 ····G:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>()·-&gt;·Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iter_intersperse</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/79524">#79524</a>)</span></div></span><div·class='docblock'>Creates·a·new·iterator·which·places·an·item·generated·by·<code>separator</code>37 ····G:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.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.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iter_intersperse</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/79524">#79524</a>)</span></div></span><div·class='docblock'>Creates·a·new·iterator·which·places·an·item·generated·by·<code>separator</code>
38 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:·d6282409add0999f2130eb6bbe6d0473ce96bf2544799e8bc22156f3c2d2e0dd·...·]/core/iter/adapters/map/struct.Map.html"·title="struct·core::iter::adapters::map::Map">Map</a>&lt;Self,·F&gt;<div·class="where">where38 between·adjacent·items·of·the·original·iterator.·<a·href="https://doc.rust-lang.org/1.78.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:·7301b6beba7b6885849be90a625df68ef739a5374af456c51fe2e81d91a25363·...·]/core/iter/adapters/map/struct.Map.html"·title="struct·core::iter::adapters::map::Map">Map</a>&lt;Self,·F&gt;<div·class="where">where
39 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,39 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.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::Item">Item</a>)·-&gt;·B,</div></h4></section></summary><div·class='docblock'>Takes·a·closure·and·creates·an·iterator·which·calls·that·closure·on·each40 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·B,</div></h4></section></summary><div·class='docblock'>Takes·a·closure·and·creates·an·iterator·which·calls·that·closure·on·each
41 element.·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.map">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:·fb4c9589a16c7b6d697c109d1193d2f1e763e5dd967101c2fd92b32416972229·...·]/core/iter/traits/iterator/trait.Iterator.html#method.for_each"·class="fn">for_each</a>&lt;F&gt;(self,·f:·F)<div·class="where">where41 element.·<a·href="https://doc.rust-lang.org/1.78.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:·98f6effefa44d759c249143d83623f0055d937382bfc398b7e1f5e92cd413657·...·]/core/iter/traits/iterator/trait.Iterator.html#method.for_each"·class="fn">for_each</a>&lt;F&gt;(self,·f:·F)<div·class="where">where
42 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,42 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.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:·754,·SHA:·7abbad666ec88a1053b8aca2a481d629a3ef3596eddb570c381205fa2d859a52·...·]/core/iter/adapters/filter/struct.Filter.html"·title="struct·core::iter::adapters::filter::Filter">Filter</a>&lt;Self,·P&gt;<div·class="where">where43 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·916,·SHA:·30d0b2a76513c5a880e9aee43e92b18805845cfcfe5783f62dc090167a439e63·...·]/core/iter/adapters/filter/struct.Filter.html"·title="struct·core::iter::adapters::filter::Filter">Filter</a>&lt;Self,·P&gt;<div·class="where">where
44 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,44 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.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:·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·element45 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·140,·SHA:·752f473b57e7444ebfddf5ea7fd40a332e83ec55524a6c31b5ee0f82a5dea819·...·]/core/primitive.bool.html">bool</a>,</div></h4></section></summary><div·class='docblock'>Creates·an·iterator·which·uses·a·closure·to·determine·if·an·element
46 should·be·yielded.·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.filter">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:·7da07154834a15b8ae55b4fd41479da070ccbd27e071909f81698570c306a081·...·]/core/iter/adapters/filter_map/struct.FilterMap.html"·title="struct·core::iter::adapters::filter_map::FilterMap">FilterMap</a>&lt;Self,·F&gt;<div·class="where">where46 should·be·yielded.·<a·href="https://doc.rust-lang.org/1.78.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:·76aa2ad154f88085ee3f8a22721a7e6812680bac785d19059532407f50da1801·...·]/core/iter/adapters/filter_map/struct.FilterMap.html"·title="struct·core::iter::adapters::filter_map::FilterMap">FilterMap</a>&lt;Self,·F&gt;<div·class="where">where
47 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,47 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.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:·863,·SHA:·c89169e5bf1c4724c7b411e568b6dad6475896f2606f557b3d708359ef71f5cc·...·]/core/iter/adapters/enumerate/struct.Enumerate.html"·title="struct·core::iter::adapters::enumerate::Enumerate">Enumerate</a>&lt;Self&gt;<div·class="where">where48 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·1052,·SHA:·110b47c7083083d565fcfc89337fddc8e5c87e81b2f720f3f7b0ded55e8500fb·...·]/core/iter/adapters/enumerate/struct.Enumerate.html"·title="struct·core::iter::adapters::enumerate::Enumerate">Enumerate</a>&lt;Self&gt;<div·class="where">where
49 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Creates·an·iterator·which·gives·the·current·iteration·count·as·well·as49 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.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
50 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:·53634008856676c70c32b501f7ec498c1f86d123cc9b5b898256a69895ff31fc·...·]/core/iter/adapters/peekable/struct.Peekable.html"·title="struct·core::iter::adapters::peekable::Peekable">Peekable</a>&lt;Self&gt;<div·class="where">where50 the·next·value.·<a·href="https://doc.rust-lang.org/1.78.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:·8464264e074dde5d84f0414ab3b5b2d8da83f3c9e3ca04c45458241580a8c80d·...·]/core/iter/adapters/peekable/struct.Peekable.html"·title="struct·core::iter::adapters::peekable::Peekable">Peekable</a>&lt;Self&gt;<div·class="where">where
51 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.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>·methods51 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.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.78.0/core/iter/adapte[·...·truncated·by·diffoscope;·len:·175,·SHA:·16fe7225bf05b478e2828b347c3d23ded9a22f89d8887a2c65d9f7b3faf1b0e7·...·]/core/iter/adapters/peekable/struct.Peekable.html#method.peek_mut"·title="method·core::iter::adapters::peekable::Peekable::peek_mut"><code>peek_mut</code></a>·methods
52 to·look·at·the·next·element·of·the·iterator·without·consuming·it.·See52 to·look·at·the·next·element·of·the·iterator·without·consuming·it.·See
53 their·documentation·for·more·information.·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.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:·77dd41e041d66c618d306e900a9159cf1b00478b8f37e5692be62119a1d4fcda·...·]/core/iter/adapters/skip_while/struct.SkipWhile.html"·title="struct·core::iter::adapters::skip_while::SkipWhile">SkipWhile</a>&lt;Self,·P&gt;<div·class="where">where53 their·documentation·for·more·information.·<a·href="https://doc.rust-lang.org/1.78.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:·00ccbb673c11ed48d8c6aa2a3f8984fb298202e7bccfa42f1ac21290fcc0fb06·...·]/core/iter/adapters/skip_while/struct.SkipWhile.html"·title="struct·core::iter::adapters::skip_while::SkipWhile">SkipWhile</a>&lt;Self,·P&gt;<div·class="where">where
54 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,54 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.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:·1018,·SHA:·c18326af66652e52fa627bfd0312af7fa2ad0ddc162b12a46e61047a031b0264·...·]/core/iter/adapters/take_while/struct.TakeWhile.html"·title="struct·core::iter::adapters::take_while::TakeWhile">TakeWhile</a>&lt;Self,·P&gt;<div·class="where">where55 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·1234,·SHA:·3b805567411cdcebed740f9e8d400dbe7fb487504f40e284544a140155090fdf·...·]/core/iter/adapters/take_while/struct.TakeWhile.html"·title="struct·core::iter::adapters::take_while::TakeWhile">TakeWhile</a>&lt;Self,·P&gt;<div·class="where">where
56 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,56 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.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:·869,·SHA:·39eeddf219b211245393e51a591d5064c740fa9be49d88883d8a6474679741ad·...·]/core/iter/adapters/map_while/struct.MapWhile.html"·title="struct·core::iter::adapters::map_while::MapWhile">MapWhile</a>&lt;Self,·P&gt;<div·class="where">where57 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·1058,·SHA:·b390dbdda8d7e93604b5ecd906a93efd03fe19bdaf41cf12893fd361bf974307·...·]/core/iter/adapters/map_while/struct.MapWhile.html"·title="struct·core::iter::adapters::map_while::MapWhile">MapWhile</a>&lt;Self,·P&gt;<div·class="where">where
58 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,58 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.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>(Self::<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:·9369fa85b74ff841f7401949cadba6dfbbbeead2a99568f20dcfd5aab20d61ab·...·]/core/iter/adapters/skip/struct.Skip.html"·title="struct·core::iter::adapters::skip::Skip">Skip</a>&lt;Self&gt;<div·class="where">where59 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·1163,·SHA:·5772149166d344bf8fa5ebbd9db8693a8f2e5f031c50338e8f1523ef72f814d6·...·]/core/iter/adapters/skip/struct.Skip.html"·title="struct·core::iter::adapters::skip::Skip">Skip</a>&lt;Self&gt;<div·class="where">where
60 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::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:·a25e81a74cc82c1837477e2b0cea682fff9f43550640901b8010ac501ca69e3d·...·]/core/iter/adapters/take/struct.Take.html"·title="struct·core::iter::adapters::take::Take">Take</a>&lt;Self&gt;<div·class="where">where60 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.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:·6216516fe581c401abda3c95818192e8f030e2008c9bbdbaafebba16f33ea9bd·...·]/core/iter/adapters/take/struct.Take.html"·title="struct·core::iter::adapters::take::Take">Take</a>&lt;Self&gt;<div·class="where">where
61 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Creates·an·iterator·that·yields·the·first·<code>n</code>·elements,·or·fewer61 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.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
62 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:·de8f1023275132502c1569b0ef9a557dc98eaf60aae97cdb916e52f9f55100aa·...·]/core/iter/adapters/scan/struct.Scan.html"·title="struct·core::iter::adapters::scan::Scan">Scan</a>&lt;Self,·St,·F&gt;<div·class="where">where62 if·the·underlying·iterator·ends·sooner.·<a·href="https://doc.rust-lang.org/1.78.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:·485843399c56e24bdf020ff0610d0ce1f62fbac5530d9880a1a7417105e3d70f·...·]/core/iter/adapters/scan/struct.Scan.html"·title="struct·core::iter::adapters::scan::Scan">Scan</a>&lt;Self,·St,·F&gt;<div·class="where">where
63 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,63 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.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>(<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,·but64 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(<a·class="primitive"·href="https://doc.rust-lang.org/1.78.0/core/primitive.reference.html">&amp;mut·St</a>,·Self::<a·class="associatedty[·...·truncated·by·diffoscope;·len:·449,·SHA:·f12c268a8a8111b9e7126ad78bf5523a63733caa63d187c4fe792309ea41acdf·...·]/core/iter/traits/iterator/trait.Iterator.html#method.fold"·title="method·core::iter::traits::iterator::Iterator::fold"><code>fold</code></a>,·holds·internal·state,·but
65 unlike·<a·href="../../core/iter/traits/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:·8b31595e3cee3022819032aac82e3df712188a2a6dcc20da6939262e5e528591·...·]/core/iter/adapters/flatten/struct.FlatMap.html"·title="struct·core::iter::adapters::flatten::FlatMap">FlatMap</a>&lt;Self,·U,·F&gt;<div·class="where">where65 unlike·<a·href="https://doc.rust-lang.org/1.78.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.78.0/core/iter/trai[·...·truncated·by·diffoscope;·len:·690,·SHA:·371190e5c1bf9b7dde6e84447965a69946212b977b9eb6d89048fbe34c5dda1c·...·]/core/iter/adapters/flatten/struct.FlatMap.html"·title="struct·core::iter::adapters::flatten::FlatMap">FlatMap</a>&lt;Self,·U,·F&gt;<div·class="where">where
66 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,66 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
67 ····U:·<a·class="trait"·href="../../core/iter/traits/collect/trait.IntoIterator.html"·title="trait·core::iter::traits::collect::IntoIterator">IntoIterator</a>,67 ····U:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/collect/trait.IntoIterator.html"·title="trait·core::iter::traits::collect::IntoIterator">IntoIterator</a>,
68 ····F:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<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:·9b6a337a3ad68c2a987b52450c153f87a04a8ed9e83603d26077fe6e70d61edf·...·]/core/iter/adapters/map_windows/struct.MapWindows.html"·title="struct·core::iter::adapters::map_windows::MapWindows">MapWindows</a>&lt;Self,·F,·N&gt;<div·class="where">where68 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·976,·SHA:·2a9182f6fe88e0b8a9b1ae1f46cace940cc0b8736033c354c0f0ccbf1c196e7a·...·]/core/iter/adapters/map_windows/struct.MapWindows.html"·title="struct·core::iter::adapters::map_windows::MapWindows">MapWindows</a>&lt;Self,·F,·N&gt;<div·class="where">where
69 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,69 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.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::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>·over70 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;[Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtyp[·...·truncated·by·diffoscope;·len:·135,·SHA:·0b06a6094d42ccbc8bce5b01c4383961fe7f1967f05e4c9f1ff33e71e425fb26·...·]/core/primitive.array.html">N</a>])·-&gt;·R,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iter_map_windows</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/87155">#87155</a>)</span></div></span><div·class='docblock'>Calls·the·given·function·<code>f</code>·for·each·contiguous·window·of·size·<code>N</code>·over
71 <code>self</code>·and·returns·an·iterator·over·the·outputs·of·<code>f</code>.·Like·<a·href="../../core/primitive.slice.html#method.windows"·title="method·slice::windows"><code>slice::windows()</code></a>,71 <code>self</code>·and·returns·an·iterator·over·the·outputs·of·<code>f</code>.·Like·<a·href="https://doc.rust-lang.org/1.78.0/core/primitive.slice.html#method.windows"·title="method·slice::windows"><code>slice::windows()</code></a>,
72 the·windows·during·mapping·overlap·as·well.·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.map_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:·238f6b49b3e28d725c57040edaa60bfbb34f140155e6af1d30eab52da1c7274f·...·]/core/iter/adapters/fuse/struct.Fuse.html"·title="struct·core::iter::adapters::fuse::Fuse">Fuse</a>&lt;Self&gt;<div·class="where">where72 the·windows·during·mapping·overlap·as·well.·<a·href="https://doc.rust-lang.org/1.78.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:·0d33056cee8a4f9b70b573c0adecc2f3599a2f8d9fa9f2c2044e9118ab134f73·...·]/core/iter/adapters/fuse/struct.Fuse.html"·title="struct·core::iter::adapters::fuse::Fuse">Fuse</a>&lt;Self&gt;<div·class="where">where
73 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·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:·cfd3edf89fe5aca24b994f83b0d7da765620394e35140e694d98233d4d92481b·...·]/core/iter/adapters/inspect/struct.Inspect.html"·title="struct·core::iter::adapters::inspect::Inspect">Inspect</a>&lt;Self,·F&gt;<div·class="where">where73 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.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.78.0/core/op[·...·truncated·by·diffoscope;·len:·841,·SHA:·9cba1b175fb3726d7f1f01da9be7c1a56568a68e4ce7915a468b730902daf8d3·...·]/core/iter/adapters/inspect/struct.Inspect.html"·title="struct·core::iter::adapters::inspect::Inspect">Inspect</a>&lt;Self,·F&gt;<div·class="where">where
74 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,74 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.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::Itera[·...·truncated·by·diffoscope;·len:·772,·SHA:·31d2052382378512fa905c6d5297d384eac7b7f126141ce561719c0e27cc9d39·...·]/core/primitive.reference.html">&amp;mut·Self</a><div·class="where">where75 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·934,·SHA:·ea20d2e0fe9388580ea08100baa9120b5e9b6cb48f43fc846f15db8b9649e7f6·...·]/core/primitive.reference.html">&amp;mut·Self</a><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'>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:·98760b16b1ed91f9558e6e2637724a4608316181d5f6f4d236e896a83eca9af9·...·]/core/iter/traits/iterator/trait.Iterator.html#method.collect"·class="fn">collect</a>&lt;B&gt;(self)·-&gt;·B<div·class="where">where76 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.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.78.0/core/it[·...·truncated·by·diffoscope;·len:·523,·SHA:·97064c705f6f4bdf74469c54fabcf580d21893127d1b4cd9a9c1018a717ef153·...·]/core/iter/traits/iterator/trait.Iterator.html#method.collect"·class="fn">collect</a>&lt;B&gt;(self)·-&gt;·B<div·class="where">where
77 ····B:·<a·class="trait"·href="../../core/iter/traits/collect/trait.FromIterator.html"·title="trait·core::iter::traits::collect::FromIterator">FromIterator</a>&lt;Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;,77 ····B:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.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.78.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><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:·e5d524e874326d0b9b733f5ee809c6595cde869afab0cc3d4ba8454093f420da·...·]/core/primitive.reference.html">&amp;mut·E</a><div·class="where">where78 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.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.78.0/core/iter/tr[·...·truncated·by·diffoscope;·len:·728,·SHA:·01937c2dc314c259495665570ae249c94b4a5b0719718f5f1188e6fc64ecf487·...·]/core/primitive.reference.html">&amp;mut·E</a><div·class="where">where
79 ····E:·<a·class="trait"·href="../../core/iter/traits/collect/trait.Extend.html"·title="trait·core::iter::traits::collect::Extend">Extend</a>&lt;Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;,79 ····E:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.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.78.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><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:·b0297783e056393a542c4058b42c18523a86c961c1b6ce3bc94342c1a2c10c58·...·]/core/primitive.tuple.html">(B,·B)</a><div·class="where">where80 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></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:·00bd47017b1bdd1bbe2c3fc932d955a8aa2f7f5eff8c00e3001ae28a982a5883·...·]/core/primitive.tuple.html">(B,·B)</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.78.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
82 ····B:·<a·class="trait"·href="../../core/default/trait.Default.html"·title="trait·core::default::Default">Default</a>·+·<a·class="trait"·href="../../core/iter/traits/collect/trait.Extend.html"·title="trait·core::iter::traits::collect::Extend">Extend</a>&lt;Self::<a·class="associatedtyp[·...·truncated·by·diffoscope;·len:·14,·SHA:·4105980ca4887a52797067761af25a11e3de6069cd8d7c8ce82cd885bb798fe8·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;,82 ····B:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/default/trait.Default.html"·title="trait·core::default::Default">Default</a>·+·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/collect/trait.Extend.html"·title="trait·core::iter::traits::collec[·...·truncated·by·diffoscope;·len:·95,·SHA:·8b3be1d0042cae0550f865faf5849221240bdf04eb1b2107605b72d48c3ad29c·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;,
83 ····F:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<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:·5a1bcc1ddfc5fccf50d61bf2b8879dae247aa12c0b23ba2f437fd2a345cabac7·...·]/core/primitive.usize.html">usize</a><div·class="where">where83 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·995,·SHA:·bec3765fdab56713186e2454cd84738b5b28e3280a2f3d5a25cefdbc3089b520·...·]/core/primitive.usize.html">usize</a><div·class="where">where
84 ····T:·'a,84 ····T:·'a,
85 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>·+·<a·class="trait"·href="../../core/iter/traits/double_ended/trait.DoubleEndedIterator.html"·title="trait·core::iter::traits::double_ended::DoubleEndedIterator">DoubleEndedIter[·...·truncated·by·diffoscope;·len:·51,·SHA:·c9be73bbed9d11ecac2a179f480a640f51d6255f26712667ffdabc72c1fc7fb0·...·]/core/primitive.reference.html">&amp;'a·mut·T</a>&gt;,85 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>·+·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/double_ended/trait.DoubleEndedIterator.html"·title="trait·core::iter::trai[·...·truncated·by·diffoscope;·len:·132,·SHA:·e5b2cf5f56946ede1e190ed09879c5821e2de04cf8e5d145142eeb40c6340982·...·]/core/primitive.reference.html">&amp;'a·mut·T</a>&gt;,
86 ····P:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(<a·class="primitive"·href="../../core/primitive.reference.html">&amp;T</a>)·-&gt;·<a·class="primitive"·href="../../core/primitive.bool.html">bool</a>,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iter_partition_in_place</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/62543">#62543</a>)</span></div></span><div·class='docblock'>Reorders·the·elements·of·this·iterator·<em>in-place</em>·according·to·the·given·predicate,86 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(<a·class="primitive"·href="https://doc.rust-lang.org/1.78.0/core/primitive.reference.html">&amp;T</a>)·-&gt;·<a·class="primitive"·href="[·...·truncated·by·diffoscope;·len:·32,·SHA:·63d052a8ced32bf927ffadd7e884c08caf4970e85dfdf6be0e568d49b174da96·...·]/core/primitive.bool.html">bool</a>,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iter_partition_in_place</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/62543">#62543</a>)</span></div></span><div·class='docblock'>Reorders·the·elements·of·this·iterator·<em>in-place</em>·according·to·the·given·predicate,
87 such·that·all·those·that·return·<code>true</code>·precede·all·those·that·return·<code>false</code>.87 such·that·all·those·that·return·<code>true</code>·precede·all·those·that·return·<code>false</code>.
88 Returns·the·number·of·<code>true</code>·elements·found.·<a·href="../../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:·97056c44eac6a0f986fb2c8edec37302cc06edf44a6c6f7153a5d8623d8d6c0d·...·]/core/primitive.bool.html">bool</a><div·class="where">where88 Returns·the·number·of·<code>true</code>·elements·found.·<a·href="https://doc.rust-lang.org/1.78.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:·0c224636c18baa273f69de21f90083317f2ea0b7367a3f0d0f1c0ace55a36f79·...·]/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.78.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>(Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::[·...·truncated·by·diffoscope;·len:·54,·SHA:·d5ac304cc26edf57442227b641dd21c427d0f9cb322b79986f5b15fc49f867b0·...·]/core/primitive.bool.html">bool</a>,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iter_is_partitioned</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/62544">#62544</a>)</span></div></span><div·class='docblock'>Checks·if·the·elements·of·this·iterator·are·partitioned·according·to·the·given·predicate,90 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·135,·SHA:·51ff5f5c7ebd8440623ea71b125c5a5837e809e308fe1a13fbe19cddb941dbd9·...·]/core/primitive.bool.html">bool</a>,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iter_is_partitioned</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/62544">#62544</a>)</span></div></span><div·class='docblock'>Checks·if·the·elements·of·this·iterator·are·partitioned·according·to·the·given·predicate,
91 such·that·all·those·that·return·<code>true</code>·precede·all·those·that·return·<code>false</code>.·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.is_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:·6f406a351b93047f56fa70265a6bf28ec6874f75cd6cc5a39d51c7af462f2992·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_fold"·class="fn">try_fold</a>&lt;B,·F,·R&gt;(&amp;mut·self,·init:·B,·f:·F)·-&gt;·R<div·class="where">where91 such·that·all·those·that·return·<code>true</code>·precede·all·those·that·return·<code>false</code>.·<a·href="https://doc.rust-lang.org/1.78.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:·2c74873f4e5ba70004a1c7edd1cc3f9e2d91271295dd1591e2d26848df4c02ba·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_fold"·class="fn">try_fold</a>&lt;B,·F,·R&gt;(&amp;mut·self,·init:·B,·f:·F)·-&gt;·R<div·class="where">where
92 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,92 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.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;·R,93 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(B,·Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·R,
94 ····R:·<a·class="trait"·href="../../core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&lt;Output·=·B&gt;,</div></h4></section></summary><div·class='docblock'>An·iterator·method·that·applies·a·function·as·long·as·it·returns94 ····R:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.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
95 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:·eecdce021399d206eb3ef5af12ee7663b4eb0dca55b0f411c7fa66f605b6b2e2·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_for_each"·class="fn">try_for_each</a>&lt;F,·R&gt;(&amp;mut·self,·f:·F)·-&gt;·R<div·class="where">where95 successfully,·producing·a·single,·final·value.·<a·href="https://doc.rust-lang.org/1.78.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:·52912e82c4b0a760d06f77eb4ee3a59ba70dd76cb532954900c73ae94c652674·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_for_each"·class="fn">try_for_each</a>&lt;F,·R&gt;(&amp;mut·self,·f:·F)·-&gt;·R<div·class="where">where
96 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,96 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.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::Item">Item</a>)·-&gt;·R,97 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·R,
98 ····R:·<a·class="trait"·href="../../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·the98 ····R:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.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.78.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
99 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:·ffdacd6b524bc823efebbf23dc0f77317a07fe9c8b691f2ea18db7aa0c08b146·...·]/core/iter/traits/iterator/trait.Iterator.html#method.fold"·class="fn">fold</a>&lt;B,·F&gt;(self,·init:·B,·f:·F)·-&gt;·B<div·class="where">where99 iterator,·stopping·at·the·first·error·and·returning·that·error.·<a·href="https://doc.rust-lang.org/1.78.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:·1d6c4809cea8748e901d3f94777f450d430f3161f6ac05ed1c178d9327f966a3·...·]/core/iter/traits/iterator/trait.Iterator.html#method.fold"·class="fn">fold</a>&lt;B,·F&gt;(self,·init:·B,·f:·F)·-&gt;·B<div·class="where">where
100 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,100 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.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>(B,·Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·B,</div></h4></section></summary><div·class='docblock'>Folds·every·element·into·an·accumulator·by·applying·an·operation,101 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(B,·Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·B,</div></h4></section></summary><div·class='docblock'>Folds·every·element·into·an·accumulator·by·applying·an·operation,
102 returning·the·final·result.·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.fold">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:·dbe3a08fe63abd47570741e71208c31aaf51152feac5917db07665a1f56bb3e3·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;<div·class="where">where102 returning·the·final·result.·<a·href="https://doc.rust-lang.org/1.78.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:·b60215068a6d9721be05f81098c51167d7138c4042f140cad42f77c4df43f597·...·]/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.78.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:·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·reducing104 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·352,·SHA:·e7c3c296abe2c0a183967153e4ae7fd50bafa2ae7088e3e78b3b48fee253adc6·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>,</div></h4></section></summary><div·class='docblock'>Reduces·the·elements·to·a·single·one,·by·repeatedly·applying·a·reducing
105 operation.·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.reduce">Read·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:·a9dce8bb557b5a11426bf2ffcbd5eea7c6c870833e3ee5bb072dcaaa11687b0c·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_reduce"·class="fn">try_reduce</a>&lt;F,·R&gt;(105 operation.·<a·href="https://doc.rust-lang.org/1.78.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:·7a18fdd041b1a001b4a8feb289ee127fd9240232239269eb35dc3b8f74783ec9·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_reduce"·class="fn">try_reduce</a>&lt;F,·R&gt;(
106 ····&amp;mut·self,106 ····&amp;mut·self,
107 ····f:·F107 ····f:·F
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:·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">where108 )·-&gt;·&lt;&lt;R·as·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&gt;::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/ops/try_trait/trait.Try.html#associatedtype.Residual"·title="type[·...·truncated·by·diffoscope;·len:·754,·SHA:·6fb4dfdb6b4da68921c1e7f8b75d99cf293d58318d684a840254ce9576957bea·...·]/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.78.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:·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:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·140,·SHA:·c27972e6fa3464c9476eaa185e8657edb6bb294f148403f3d079285294a9f909·...·]/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·=·Self::<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.78.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.78.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.78.0/core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&gt;::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/ops/try_trait/trait.Try.html#associatedtype.Residual"·title="type[·...·truncated·by·diffoscope;·len:·412,·SHA:·22b8cbb007e5cce82b9d13a65bfa56aa8d83c32541fac25f4d9b3857b0540908·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;&gt;,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iterator_try_reduce</code>&nbsp;<a·href="https://github.com/rust-lang/rust/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:·65b80c848af6e465c8c5aef4ec8d3faaa399d30c8427c9507fda7b3bd1d3ea93·...·]/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.78.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:·bc0d658d56e348823de15386e1cd4ab49109f3a7a055a4573a19391b47071193·...·]/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.78.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:·95a840b532d3d621bde4032d63854eb0a481248e2b4bbb3ef058dbffb4dae4fa·...·]/core/primitive.bool.html">bool</a><div·class="where">where115 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·1018,·SHA:·e61cd6bdd36729cc38e57fcaea2ccb91a23a5acbda3c8986071f19bf1ecfc52a·...·]/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.78.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:·f828c62edd4fe85e217286f359b56c116e14ed18bb292ba1cc13d3ed7146909e·...·]/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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·1172,·SHA:·e64ab74d116d286191ad43d9d9e10411fc011c23724aa806e9a8f9b0be0757e3·...·]/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.78.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:·21d7086b3ce0092e3f7a6a41174339bbd8724e7d186158db4db3385a73d94e8e·...·]/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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·1051,·SHA:·ecc0b8fccd861464760f9ae047ff6ab98c91a1db010cb5fa59a8c2ab883db7c4·...·]/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.78.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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·130,·SHA:·130a13019dc175d02304b4f550157e2f13ac15c2f25a979c74161d10b146ab89·...·]/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:·ac4da3337aac1ec10038e246be9cb719eeb5af1acc709f5a6a25b91900c56f53·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_find"·class="fn">try_find</a>&lt;F,·R&gt;(122 the·first·non-none·result.·<a·href="https://doc.rust-lang.org/1.78.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:·8ced1b10e78750774c5c8ed995ed83dcd13983aa75d329acf8069da106ab9f4a·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_find"·class="fn">try_find</a>&lt;F,·R&gt;(
123 ····&amp;mut·self,123 ····&amp;mut·self,
124 ····f:·F124 ····f:·F
Max diff block lines reached; 83631/310332 bytes (26.95%) of diff not shown.
304 KB
./usr/share/doc/rust-web-doc/html/alloc/str/struct.SplitInclusive.html
    
Offset 1, 233 lines modifiedOffset 1, 233 lines modified
1 <!DOCTYPE·html><html·lang="en"><head><meta·charset="utf-8"><meta·name="viewport"·content="width=device-width,·initial-scale=1.0"><meta·name="generator"·content="rustdoc"><meta·name="description"·content="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.write(`<link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/SourceSerif4-Regular-46f98efaafac5295.ttf.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/FiraSans-Regular-018c141bf0843ffd.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/FiraSans-Medium-8f9a781e4970d388.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/SourceCodePro-Regular-562dcc5011b6de7d.ttf.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/SourceCodePro-Semibold-d899c5a5c4aeb14a.ttf.woff2">`)</script><link·rel="stylesheet"·href="../../static.files/normalize-76eba96aa4d2e634.css"><link·rel="stylesheet"·href="../../static.files/rustdoc-35f9e32502181f1e.css"><meta·name="rustdoc-vars"·data-root-path="../../"·data-static-root-path="../../static.files/"·data-current-crate="alloc"·data-themes=""·data-resource-suffix="1.78.0"·data-rustdoc-version="1.78.0"·data-channel="1.78.0"·data-search-js="search-42d8da7a6b9792c2.js"·data-settings-js="settings-4313503d2e1961c2.js"·><script·src="../../static.files/storage-4c98445ec4002617.js"></script><script·defer·src="sidebar-items1.78.0.js"></script><script·defer·src="../../static.files/main-12cf3b4f4f9dc36d.js"></script><noscript><link·rel="stylesheet"·href="../../static.files/noscript-04d5337699b92874.css"></noscript><link·rel="alternate·icon"·type="image/png"·href="../../static.files/favicon-16x16-8b506e7a72182f1c.png"><link·rel="alternate·icon"·type="image/png"·href="../../static.files/favicon-32x32-422f7d1d52889060.png"><link·rel="icon"·type="image/svg+xml"·href="../../static.files/favicon-2c020d218678b618.svg"></head><body·class="rustdoc·struct"><!--[if·lte·IE·11]><div·class="warning">This·old·browser·is·unsupported·and·will·most·likely·display·funky·things.</div><![endif]--><nav·class="mobile-topbar"><button·class="sidebar-menu-toggle"·title="show·sidebar"></button><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-151179464ae7ed46.svg"·alt=""></a></nav><nav·class="sidebar"><div·class="sidebar-crate"><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-151179464ae7ed46.svg"·alt="logo"></a><h2><a·href="../../alloc/index.html">alloc</a><span·class="version">1.78.0</span></h2></div><h2·class="location"><a·href="#">SplitInclusive</a></h2><div·class="sidebar-elems"><section><h3><a·href="#implementations">Methods</a></h3><ul·class="block·method"><li><a·href="#method.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">Clone</a></li><li><a·href="#impl-Debug-for-SplitInclusive%3C'a,+P%3E">Debug</a></li><li><a·href="#impl-DoubleEndedIterator-for-SplitInclusive%3C'a,+P%3E">DoubleEndedIterator</a></li><li><a·href="#impl-FusedIterator-for-SplitInclusive%3C'a,+P%3E">FusedIterator</a></li><li><a·href="#impl-Iterator-for-SplitInclusive%3C'a,+P%3E">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">Freeze</a></li><li><a·href="#impl-RefUnwindSafe-for-SplitInclusive%3C'a,+P%3E">RefUnwindSafe</a></li><li><a·href="#impl-Send-for-SplitInclusive%3C'a,+P%3E">Send</a></li><li><a·href="#impl-Sync-for-SplitInclusive%3C'a,+P%3E">Sync</a></li><li><a·href="#impl-Unpin-for-SplitInclusive%3C'a,+P%3E">Unpin</a></li><li><a·href="#impl-UnwindSafe-for-SplitInclusive%3C'a,+P%3E">UnwindSafe</a></li></ul><h3><a·href="#blanket-implementations">Blanket·Implementations</a></h3><ul·class="block·blanket-implementation"><li><a·href="#impl-Any-for-T">Any</a></li><li><a·href="#impl-Borrow%3CT%3E-for-T">Borrow&lt;T&gt;</a></li><li><a·href="#impl-BorrowMut%3CT%3E-for-T">BorrowMut&lt;T&gt;</a></li><li><a·href="#impl-From%3CT%3E-for-T">From&lt;T&gt;</a></li><li><a·href="#impl-Into%3CU%3E-for-T">Into&lt;U&gt;</a></li><li><a·href="#impl-IntoIterator-for-I">IntoIterator</a></li><li><a·href="#impl-ToOwned-for-T">ToOwned</a></li><li><a·href="#impl-TryFrom%3CU%3E-for-T">TryFrom&lt;U&gt;</a></li><li><a·href="#impl-TryInto%3CU%3E-for-T">TryInto&lt;U&gt;</a></li></ul></section><h2><a·href="index.html">In·alloc::str</a></h2></div></nav><div·class="sidebar-resizer"></div>1 <!DOCTYPE·html><html·lang="en"><head><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.write(`<link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/SourceSerif4-Regular-46f98efaafac5295.ttf.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/FiraSans-Regular-018c141bf0843ffd.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/FiraSans-Medium-8f9a781e4970d388.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/SourceCodePro-Regular-562dcc5011b6de7d.ttf.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/SourceCodePro-Semibold-d899c5a5c4aeb14a.ttf.woff2">`)</script><link·rel="stylesheet"·href="../../static.files/normalize-76eba96aa4d2e634.css"><link·rel="stylesheet"·href="../../static.files/rustdoc-35f9e32502181f1e.css"><meta·name="rustdoc-vars"·data-root-path="../../"·data-static-root-path="../../static.files/"·data-current-crate="alloc"·data-themes=""·data-resource-suffix="1.78.0"·data-rustdoc-version="1.78.0"·data-channel="1.78.0"·data-search-js="search-42d8da7a6b9792c2.js"·data-settings-js="settings-4313503d2e1961c2.js"·><script·src="../../static.files/storage-4c98445ec4002617.js"></script><script·defer·src="sidebar-items1.78.0.js"></script><script·defer·src="../../static.files/main-12cf3b4f4f9dc36d.js"></script><noscript><link·rel="stylesheet"·href="../../static.files/noscript-04d5337699b92874.css"></noscript><link·rel="alternate·icon"·type="image/png"·href="../../static.files/favicon-16x16-8b506e7a72182f1c.png"><link·rel="alternate·icon"·type="image/png"·href="../../static.files/favicon-32x32-422f7d1d52889060.png"><link·rel="icon"·type="image/svg+xml"·href="../../static.files/favicon-2c020d218678b618.svg"></head><body·class="rustdoc·struct"><!--[if·lte·IE·11]><div·class="warning">This·old·browser·is·unsupported·and·will·most·likely·display·funky·things.</div><![endif]--><nav·class="mobile-topbar"><button·class="sidebar-menu-toggle"·title="show·sidebar"></button><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-151179464ae7ed46.svg"·alt=""></a></nav><nav·class="sidebar"><div·class="sidebar-crate"><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-151179464ae7ed46.svg"·alt="logo"></a><h2><a·href="../../alloc/index.html">alloc</a><span·class="version">1.78.0</span></h2></div><h2·class="location"><a·href="#">SplitInclusive</a></h2><div·class="sidebar-elems"><section><h3><a·href="#implementations">Methods</a></h3><ul·class="block·method"><li><a·href="#method.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">Clone</a></li><li><a·href="#impl-Debug-for-SplitInclusive%3C'a,+P%3E">Debug</a></li><li><a·href="#impl-DoubleEndedIterator-for-SplitInclusive%3C'a,+P%3E">DoubleEndedIterator</a></li><li><a·href="#impl-FusedIterator-for-SplitInclusive%3C'a,+P%3E">FusedIterator</a></li><li><a·href="#impl-Iterator-for-SplitInclusive%3C'a,+P%3E">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">Freeze</a></li><li><a·href="#impl-RefUnwindSafe-for-SplitInclusive%3C'a,+P%3E">RefUnwindSafe</a></li><li><a·href="#impl-Send-for-SplitInclusive%3C'a,+P%3E">Send</a></li><li><a·href="#impl-Sync-for-SplitInclusive%3C'a,+P%3E">Sync</a></li><li><a·href="#impl-Unpin-for-SplitInclusive%3C'a,+P%3E">Unpin</a></li><li><a·href="#impl-UnwindSafe-for-SplitInclusive%3C'a,+P%3E">UnwindSafe</a></li></ul><h3><a·href="#blanket-implementations">Blanket·Implementations</a></h3><ul·class="block·blanket-implementation"><li><a·href="#impl-Any-for-T">Any</a></li><li><a·href="#impl-Borrow%3CT%3E-for-T">Borrow&lt;T&gt;</a></li><li><a·href="#impl-BorrowMut%3CT%3E-for-T">BorrowMut&lt;T&gt;</a></li><li><a·href="#impl-From%3CT%3E-for-T">From&lt;T&gt;</a></li><li><a·href="#impl-Into%3CU%3E-for-T">Into&lt;U&gt;</a></li><li><a·href="#impl-IntoIterator-for-I">IntoIterator</a></li><li><a·href="#impl-ToOwned-for-T">ToOwned</a></li><li><a·href="#impl-TryFrom%3CU%3E-for-T">TryFrom&lt;U&gt;</a></li><li><a·href="#impl-TryInto%3CU%3E-for-T">TryInto&lt;U&gt;</a></li></ul></section><h2><a·href="index.html">In·alloc::str</a></h2></div></nav><div·class="sidebar-resizer"></div>
2 ····<main><div·class="width-limiter"><nav·class="sub"><form·class="search-form"><span></span><div·id="sidebar-button"·tabindex="-1"><a·href="../../alloc/all.html"·title="show·sidebar"></a></div><input·class="search-input"·name="search"·aria-label="Run·search·in·the·documentation"·autocomplete="off"·spellcheck="false"·placeholder="Click·or·press·‘S’·to·search,·‘?’·for·more·options…"·type="search"><div·id="help-button"·tabindex="-1"><a·href="../../help.html"·title="help">?</a></div><div·id="settings-menu"·tabindex="-1"><a·href="../../settings.html"·title="settings"><img·width="22"·height="22"·alt="Change·settings"·src="../../static.files/wheel-7b819b6101059cd0.svg"></a></div></form></nav><section·id="main-content"·class="content"><div·class="main-heading"><h1>Struct·<a·href="../index.html">alloc</a>::<wbr><a·href="index.html">str</a>::<wbr><a·class="struct"·href="#">SplitInclusive</a><button·id="copy-path"·title="Copy·item·path·to·clipboard"><img·src="../../static.files/clipboard-7571035ce49a181d.svg"·width="19"·height="18"·alt="Copy·item·path"></button></h1><span·class="out-of-band"><span·class="since"·title="Stable·since·Rust·version·1.51.0">1.51.0</span>···<a·class="src"·href="../../src/core/str/iter.rs.html#1291">source</a>···<button·id="toggle-all-docs"·title="collapse·all·docs">[<span>&#x2212;</span>]</button></span></div><pre·class="rust·item-decl"><code>pub·struct·SplitInclusive&lt;'a,·P&gt;(<span·class="comment">/*·private·fields·*/</span>)2 ····<main><div·class="width-limiter"><nav·class="sub"><form·class="search-form"><span></span><div·id="sidebar-button"·tabindex="-1"><a·href="../../alloc/all.html"·title="show·sidebar"></a></div><input·class="search-input"·name="search"·aria-label="Run·search·in·the·documentation"·autocomplete="off"·spellcheck="false"·placeholder="Click·or·press·‘S’·to·search,·‘?’·for·more·options…"·type="search"><div·id="help-button"·tabindex="-1"><a·href="../../help.html"·title="help">?</a></div><div·id="settings-menu"·tabindex="-1"><a·href="../../settings.html"·title="settings"><img·width="22"·height="22"·alt="Change·settings"·src="../../static.files/wheel-7b819b6101059cd0.svg"></a></div></form></nav><section·id="main-content"·class="content"><div·class="main-heading"><h1>Struct·<a·href="../index.html">alloc</a>::<wbr><a·href="index.html">str</a>::<wbr><a·class="struct"·href="#">SplitInclusive</a><button·id="copy-path"·title="Copy·item·path·to·clipboard"><img·src="../../static.files/clipboard-7571035ce49a181d.svg"·width="19"·height="18"·alt="Copy·item·path"></button></h1><span·class="out-of-band"><span·class="since"·title="Stable·since·Rust·version·1.51.0">1.51.0</span>···<a·class="src"·href="https://doc.rust-lang.org/1.78.0/src/core/str/iter.rs.html#1291">source</a>···<button·id="toggle-all-docs"·title="collapse·all·docs">[<span>&#x2212;</span>]</button></span></div><pre·class="rust·item-decl"><code>pub·struct·SplitInclusive&lt;'a,·P&gt;(<span·class="comment">/*·private·fields·*/</span>)
3 <span·class="where">where3 <span·class="where">where
4 ····P:·<a·class="trait"·href="pattern/trait.Pattern.html"·title="trait·alloc::str::pattern::Pattern">Pattern</a>&lt;'a&gt;</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 ····P:·<a·class="trait"·href="pattern/trait.Pattern.html"·title="trait·alloc::str::pattern::Pattern">Pattern</a>&lt;'a&gt;</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,
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.</p>7 of·the·subslice.</p>
8 <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>.8 <p>This·struct·is·created·by·the·<a·href="https://doc.rust-lang.org/1.78.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.78.0/core/primitive.str.html"·title="primitive·str"><code>str</code></a>.
9 See·its·documentation·for·more.</p>9 See·its·documentation·for·more.</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-SplitInclusive%3C'a,+P%3E"·class="impl"><a·class="src·rightside"·href="../../src/core/str/iter.rs.html#1450">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">where10 </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.78.0/src/core/str/iter.rs.html#1450">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
11 ····P:·<a·class="trait"·href="pattern/trait.Pattern.html"·title="trait·alloc::str::pattern::Pattern">Pattern</a>&lt;'a&gt;,</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#1468">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>11 ····P:·<a·class="trait"·href="pattern/trait.Pattern.html"·title="trait·alloc::str::pattern::Pattern">Pattern</a>&lt;'a&gt;,</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.78.0/src/core/str/iter.rs.html#1468">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.78.0/core/option/enum.Option.h[·...·truncated·by·diffoscope;·len:·120,·SHA:·24a3d8de8932a0d2d085ee46870b5ae0d77fff28a02c3dbb30118574fc961eef·...·]/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>
12 <p>If·the·iterator·is·empty,·returns·<code>None</code>.</p>12 <p>If·the·iterator·is·empty,·returns·<code>None</code>.</p>
13 <h5·id="examples"><a·class="doc-anchor"·href="#examples">§</a>Examples</h5>13 <h5·id="examples"><a·class="doc-anchor"·href="#examples">§</a>Examples</h5>
14 <div·class="example-wrap"><pre·class="rust·rust-example-rendered"><code><span·class="attr">#![feature(str_split_inclusive_remainder)]14 <div·class="example-wrap"><pre·class="rust·rust-example-rendered"><code><span·class="attr">#![feature(str_split_inclusive_remainder)]
15 </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><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>);
16 <span·class="macro">assert_eq!</span>(split.remainder(),·<span·class="prelude-val">Some</span>(<span·class="string">"Mary·had·a·little·lamb"</span>));16 <span·class="macro">assert_eq!</span>(split.remainder(),·<span·class="prelude-val">Some</span>(<span·class="string">"Mary·had·a·little·lamb"</span>));
17 split.next();17 split.next();
18 <span·class="macro">assert_eq!</span>(split.remainder(),·<span·class="prelude-val">Some</span>(<span·class="string">"had·a·little·lamb"</span>));18 <span·class="macro">assert_eq!</span>(split.remainder(),·<span·class="prelude-val">Some</span>(<span·class="string">"had·a·little·lamb"</span>));
19 split.by_ref().for_each(drop);19 split.by_ref().for_each(drop);
20 <span·class="macro">assert_eq!</span>(split.remainder(),·<span·class="prelude-val">None</span>);</code></pre><a·class="test-arrow"·target="_blank"·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">Run</a></div>20 <span·class="macro">assert_eq!</span>(split.remainder(),·<span·class="prelude-val">None</span>);</code></pre><a·class="test-arrow"·target="_blank"·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">Run</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-SplitInclusive%3C'a,+P%3E"·class="impl"><a·class="src·rightside"·href="../../src/core/str/iter.rs.html#1431">source</a><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">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-SplitInclusive%3C'a,+P%3E"·class="impl"><a·class="src·rightside"·href="https://doc.rust-lang.org/1.78.0/src/core/str/iter.rs.html#1431">source</a><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.78.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
22 ····P:·<a·class="trait"·href="pattern/trait.Pattern.html"·title="trait·alloc::str::pattern::Pattern">Pattern</a>&lt;'a&gt;,22 ····P:·<a·class="trait"·href="pattern/trait.Pattern.html"·title="trait·alloc::str::pattern::Pattern">Pattern</a>&lt;'a&gt;,
23 ····&lt;P·as·<a·class="trait"·href="pattern/trait.Pattern.html"·title="trait·alloc::str::pattern::Pattern">Pattern</a>&lt;'a&gt;&gt;::<a·class="associatedtype"·href="pattern/trait.Pattern.html#associatedtype.Searcher"·title="type·alloc::str::pattern::Pattern::Searcher">Searcher</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"><details·class="toggle·method-toggle"·open><summary><section·id="method.clone"·class="method·trait-impl"><a·class="src·righ[·...·truncated·by·diffoscope;·len:·1515,·SHA:·8f9a4bfbafe9233cd938ff957d17690066b4ab742281aac5d1e72022512cd3d1·...·]/src/core/str/iter.rs.html#1423">source</a><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">where23 ····&lt;P·as·<a·class="trait"·href="pattern/trait.Pattern.html"·title="trait·alloc::str::pattern::Pattern">Pattern</a>&lt;'a&gt;&gt;::<a·class="associatedtype"·href="pattern/trait.Pattern.html#associatedtype.Searcher"·title="type·alloc::str::pattern::Pattern::Searcher">Searcher</a>:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.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:·1758,·SHA:·830051cfafdcf10a3064b230f34953952e8f9c97a2d0a66b7e19dbb7b3d78ae0·...·]/src/core/str/iter.rs.html#1423">source</a><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
24 ····P:·<a·class="trait"·href="pattern/trait.Pattern.html"·title="trait·alloc::str::pattern::Pattern">Pattern</a>&lt;'a&gt;,24 ····P:·<a·class="trait"·href="pattern/trait.Pattern.html"·title="trait·alloc::str::pattern::Pattern">Pattern</a>&lt;'a&gt;,
25 ····&lt;P·as·<a·class="trait"·href="pattern/trait.Pattern.html"·title="trait·alloc::str::pattern::Pattern">Pattern</a>&lt;'a&gt;&gt;::<a·class="associatedtype"·href="pattern/trait.Pattern.html#associatedtype.Searcher"·title="type·alloc::str::pattern::Pattern::Searcher">Searcher</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/str/iter.rs.html#1424">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:·905,·SHA:·def9367beebfd4f2b38e85c56ce18296029c5b1b1c7f863fb8d61307be765fbf·...·]/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">where25 ····&lt;P·as·<a·class="trait"·href="pattern/trait.Pattern.html"·title="trait·alloc::str::pattern::Pattern">Pattern</a>&lt;'a&gt;&gt;::<a·class="associatedtype"·href="pattern/trait.Pattern.html#associatedtype.Searcher"·title="type·alloc::str::pattern::Pattern::Searcher">Searcher</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.78.0/src/core/str/iter.rs.html#1424">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:·1040,·SHA:·ca2b4fe67c26c3f94f293d2a66f3e877fc5a0e3eb75cbc3ffe1c05f150e290fb·...·]/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
26 ····P:·<a·class="trait"·href="pattern/trait.Pattern.html"·title="trait·alloc::str::pattern::Pattern">Pattern</a>&lt;'a&gt;,26 ····P:·<a·class="trait"·href="pattern/trait.Pattern.html"·title="trait·alloc::str::pattern::Pattern">Pattern</a>&lt;'a&gt;,
27 ····&lt;P·as·<a·class="trait"·href="pattern/trait.Pattern.html"·title="trait·alloc::str::pattern::Pattern">Pattern</a>&lt;'a&gt;&gt;::<a·class="associatedtype"·href="pattern/trait.Pattern.html#associatedtype.Searcher"·title="type·alloc::str::pattern::Pattern::Searcher">Searcher</a>:·<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#1442">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:·e9a6dd3930ba81d4e02ba6a8f8bb67706de7aed7e0fdec05f3fe0b5d916700c5·...·]/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">where27 ····&lt;P·as·<a·class="trait"·href="pattern/trait.Pattern.html"·title="trait·alloc::str::pattern::Pattern">Pattern</a>&lt;'a&gt;&gt;::<a·class="associatedtype"·href="pattern/trait.Pattern.html#associatedtype.Searcher"·title="type·alloc::str::pattern::Pattern::Searcher">Searcher</a>:·<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.78.0/src/core/str/iter.rs.html#1442">source</a><a·href="#method.next_back"·class="anchor">§</a><h4·class="code-header">fn·<a·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/double_ended/trait.DoubleEndedIterator.html#tym[·...·truncated·by·diffoscope;·len:·3876,·SHA:·27cc846004b9ca522cca3f7f5676254de2e62114ee0fa023e28ba3a06fe7310e·...·]/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
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.78.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>(B,·Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·R,29 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(B,·Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·R,
30 ····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·takes30 ····R:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.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.7[·...·truncated·by·diffoscope;·len:·3,·SHA:·7b1bd53949b752d143d871408483b5382371b5bc48d195d0c040ec93cfa2748b·...·]/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
31 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:·74b709f2c818a4eda5d85ea863eb2d8af72c87564dbab2746e67feafb0cbb9a3·...·]/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">where31 elements·starting·from·the·back·of·the·iterator.·<a·href="https://doc.rust-lang.org/1.78.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:·d66ed7e195a53e9945339ef1976aed455dcf80228d8e5b7b0c69a64c3983fea1·...·]/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
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.78.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;·B,</div></h4></section></summary><div·class='docblock'>An·iterator·method·that·reduces·the·iterator’s·elements·to·a·single,33 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(B,·Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/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 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:·f8bdf1e28866c7668477ab391452c7cfa7fd52cc69b633e782a157931421b39b·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;<div·class="where">where34 final·value,·starting·from·the·back.·<a·href="https://doc.rust-lang.org/1.78.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:·c264047794019a6dcf05728ba6a6ee1f8f07c7209958b3366ba94546b527ecdc·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</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.78.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:·717,·SHA:·8d6dea6c163130823bf3a405af1595a14dfefab6f13ddd092ef51422dae269c9·...·]/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">where36 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·879,·SHA:·923b001c9aa029f824c0c1301422977cd603aa3254a83b457316c448937d03b1·...·]/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
37 ····P:·<a·class="trait"·href="pattern/trait.Pattern.html"·title="trait·alloc::str::pattern::Pattern">Pattern</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·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·class="primitive"·href="../../core/primitive.str.html">str</a></h4></section></summary><div·class='docblock'>The·type·of·the·elements·bein[·...·truncated·by·diffoscope;·len:·1217,·SHA:·cdbf1a21a5a3722611b593189e4869c4faee36f2a82970a128b99d55a306a144·...·]/core/primitive.usize.html">usize</a>&gt;(37 ····P:·<a·class="trait"·href="pattern/trait.Pattern.html"·title="trait·alloc::str::pattern::Pattern">Pattern</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·href="#associatedtype.Item"·class="anchor">§</a><h4·class="code-header">type·<a·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·class="associatedtype">Item</a>·=·&amp;'a·<a·class="primitive"·href="https://doc.rust-lang.org/1.78.0/core/primitive.str.html">str</a></h4></section></summa[·...·truncated·by·diffoscope;·len:·1487,·SHA:·ed719cd07e9f26cb618aa5b9683468e82a5401da4ab90bded14e7af6293c99cd·...·]/core/primitive.usize.html">usize</a>&gt;(
38 ····&amp;mut·self38 ····&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.78.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.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title=[·...·truncated·by·diffoscope;·len:·381,·SHA:·88c48923c9b7ea5cc47c1087c60e09656e81d4671c58071ba2bef826335388bc·...·]/core/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:·1785,·SHA:·19053018de1acf5c85a547b4f740a12b61b1dafeb5940dd6e6ded8d48e943731·...·]/core/primitive.usize.html">usize</a><div·class="where">where40 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></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:·402867e9e3549fef747dcb22b92bda79093f02d1378ea733f633e3a91e074bca·...·]/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:·5b5aaec46c04cf77d2fa06e88cd6f0a2bd8d201412bc325302bd2f8f21b39207·...·]/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.78.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:·84ae0beb16240102bae2355bb8c543b17f3f107e3c06b320839aa401eebb1945·...·]/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:·6b808f54a13578d2e276864bb3eb79ae7b452b8959e79f7ea7ab1180574b77fc·...·]/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.78.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.78.0/cor[·...·truncated·by·diffoscope;·len:·3504,·SHA:·6d21b6d637e0b2e9953a37a26fd19e00da089147d4acaf696c94d448de4ce419·...·]/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.78.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:·5667b9b6c9778ff3b9d23ed0a110e7ab9d3fccc786fdcaca8c17edf996236439·...·]/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.78.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:·e83c903581753673e083ce8dd809879a2fc81ab3050eb6db267d7fa26b15e035·...·]/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.78.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:·1c6bb9803ee8832ebd4c28a08a952178165595b6870cf35d3c89454b9da828b2·...·]/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.78.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.78.0/core/iter/traits/it[·...·truncated·by·diffoscope;·len:·1329,·SHA:·d9299c8edc606ed82f24d61ce441bec451141d684c2a9a75074f5b19c57f196c·...·]/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.78.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:·c1b5e692e89c9c809075ee8ee72fb15a9ec46c075b08450e1f707d672a224750·...·]/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.78.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:·98627729f77dcf1c9d258f343354ba600b7134c6b3929080f231e8de7155b70b·...·]/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.78.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.78.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.78.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:·d6282409add0999f2130eb6bbe6d0473ce96bf2544799e8bc22156f3c2d2e0dd·...·]/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.78.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:·7301b6beba7b6885849be90a625df68ef739a5374af456c51fe2e81d91a25363·...·]/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.78.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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::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:·fb4c9589a16c7b6d697c109d1193d2f1e763e5dd967101c2fd92b32416972229·...·]/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.78.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:·98f6effefa44d759c249143d83623f0055d937382bfc398b7e1f5e92cd413657·...·]/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.78.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:·7abbad666ec88a1053b8aca2a481d629a3ef3596eddb570c381205fa2d859a52·...·]/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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·916,·SHA:·30d0b2a76513c5a880e9aee43e92b18805845cfcfe5783f62dc090167a439e63·...·]/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.78.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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·140,·SHA:·752f473b57e7444ebfddf5ea7fd40a332e83ec55524a6c31b5ee0f82a5dea819·...·]/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:·7da07154834a15b8ae55b4fd41479da070ccbd27e071909f81698570c306a081·...·]/core/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.78.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:·76aa2ad154f88085ee3f8a22721a7e6812680bac785d19059532407f50da1801·...·]/core/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.78.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:·c89169e5bf1c4724c7b411e568b6dad6475896f2606f557b3d708359ef71f5cc·...·]/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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·1052,·SHA:·110b47c7083083d565fcfc89337fddc8e5c87e81b2f720f3f7b0ded55e8500fb·...·]/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.78.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:·53634008856676c70c32b501f7ec498c1f86d123cc9b5b898256a69895ff31fc·...·]/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.78.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:·8464264e074dde5d84f0414ab3b5b2d8da83f3c9e3ca04c45458241580a8c80d·...·]/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.78.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.78.0/core/iter/adapte[·...·truncated·by·diffoscope;·len:·175,·SHA:·16fe7225bf05b478e2828b347c3d23ded9a22f89d8887a2c65d9f7b3faf1b0e7·...·]/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:·77dd41e041d66c618d306e900a9159cf1b00478b8f37e5692be62119a1d4fcda·...·]/core/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.78.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:·00ccbb673c11ed48d8c6aa2a3f8984fb298202e7bccfa42f1ac21290fcc0fb06·...·]/core/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.78.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:·c18326af66652e52fa627bfd0312af7fa2ad0ddc162b12a46e61047a031b0264·...·]/core/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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·1234,·SHA:·3b805567411cdcebed740f9e8d400dbe7fb487504f40e284544a140155090fdf·...·]/core/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.78.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:·39eeddf219b211245393e51a591d5064c740fa9be49d88883d8a6474679741ad·...·]/core/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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·1058,·SHA:·b390dbdda8d7e93604b5ecd906a93efd03fe19bdaf41cf12893fd361bf974307·...·]/core/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.78.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:·9369fa85b74ff841f7401949cadba6dfbbbeead2a99568f20dcfd5aab20d61ab·...·]/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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·1163,·SHA:·5772149166d344bf8fa5ebbd9db8693a8f2e5f031c50338e8f1523ef72f814d6·...·]/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:·a25e81a74cc82c1837477e2b0cea682fff9f43550640901b8010ac501ca69e3d·...·]/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.78.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:·6216516fe581c401abda3c95818192e8f030e2008c9bbdbaafebba16f33ea9bd·...·]/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.78.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:·de8f1023275132502c1569b0ef9a557dc98eaf60aae97cdb916e52f9f55100aa·...·]/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.78.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:·485843399c56e24bdf020ff0610d0ce1f62fbac5530d9880a1a7417105e3d70f·...·]/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.78.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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(<a·class="primitive"·href="https://doc.rust-lang.org/1.78.0/core/primitive.reference.html">&amp;mut·St</a>,·Self::<a·class="associatedty[·...·truncated·by·diffoscope;·len:·449,·SHA:·f12c268a8a8111b9e7126ad78bf5523a63733caa63d187c4fe792309ea41acdf·...·]/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:·8b31595e3cee3022819032aac82e3df712188a2a6dcc20da6939262e5e528591·...·]/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.78.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.78.0/core/iter/trai[·...·truncated·by·diffoscope;·len:·690,·SHA:·371190e5c1bf9b7dde6e84447965a69946212b977b9eb6d89048fbe34c5dda1c·...·]/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.78.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.78.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:·9b6a337a3ad68c2a987b52450c153f87a04a8ed9e83603d26077fe6e70d61edf·...·]/core/iter/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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·976,·SHA:·2a9182f6fe88e0b8a9b1ae1f46cace940cc0b8736033c354c0f0ccbf1c196e7a·...·]/core/iter/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.78.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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;[Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtyp[·...·truncated·by·diffoscope;·len:·135,·SHA:·0b06a6094d42ccbc8bce5b01c4383961fe7f1967f05e4c9f1ff33e71e425fb26·...·]/core/primitive.array.html">N</a>])·-&gt;·R,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iter_map_windows</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/87155">#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.78.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:·238f6b49b3e28d725c57040edaa60bfbb34f140155e6af1d30eab52da1c7274f·...·]/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.78.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:·0d33056cee8a4f9b70b573c0adecc2f3599a2f8d9fa9f2c2044e9118ab134f73·...·]/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:·cfd3edf89fe5aca24b994f83b0d7da765620394e35140e694d98233d4d92481b·...·]/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.78.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.78.0/core/op[·...·truncated·by·diffoscope;·len:·841,·SHA:·9cba1b175fb3726d7f1f01da9be7c1a56568a68e4ce7915a468b730902daf8d3·...·]/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.78.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:·772,·SHA:·31d2052382378512fa905c6d5297d384eac7b7f126141ce561719c0e27cc9d39·...·]/core/primitive.reference.html">&amp;mut·Self</a><div·class="where">where88 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·934,·SHA:·ea20d2e0fe9388580ea08100baa9120b5e9b6cb48f43fc846f15db8b9649e7f6·...·]/core/primitive.reference.html">&amp;mut·Self</a><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:·98760b16b1ed91f9558e6e2637724a4608316181d5f6f4d236e896a83eca9af9·...·]/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.78.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.78.0/core/it[·...·truncated·by·diffoscope;·len:·523,·SHA:·97064c705f6f4bdf74469c54fabcf580d21893127d1b4cd9a9c1018a717ef153·...·]/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.78.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.78.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:·e5d524e874326d0b9b733f5ee809c6595cde869afab0cc3d4ba8454093f420da·...·]/core/primitive.reference.html">&amp;mut·E</a><div·class="where">where91 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.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.78.0/core/iter/tr[·...·truncated·by·diffoscope;·len:·728,·SHA:·01937c2dc314c259495665570ae249c94b4a5b0719718f5f1188e6fc64ecf487·...·]/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.78.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.78.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:·b0297783e056393a542c4058b42c18523a86c961c1b6ce3bc94342c1a2c10c58·...·]/core/primitive.tuple.html">(B,·B)</a><div·class="where">where93 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></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:·00bd47017b1bdd1bbe2c3fc932d955a8aa2f7f5eff8c00e3001ae28a982a5883·...·]/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.78.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.78.0/core/default/trait.Default.html"·title="trait·core::default::Default">Default</a>·+·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/collect/trait.Extend.html"·title="trait·core::iter::traits::collec[·...·truncated·by·diffoscope;·len:·95,·SHA:·8b3be1d0042cae0550f865faf5849221240bdf04eb1b2107605b72d48c3ad29c·...·]/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:·783,·SHA:·f8b50287f3e106633ed79a84072d3ddd9d98672efd685d2433c61b5549ce051e·...·]/core/primitive.bool.html">bool</a><div·class="where">where96 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·972,·SHA:·6de765542031617a9c28ac98fe6df619e58e62d9c65ec5b1c185a7152b8944e5·...·]/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.78.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
98 ····P:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::[·...·truncated·by·diffoscope;·len:·54,·SHA:·d5ac304cc26edf57442227b641dd21c427d0f9cb322b79986f5b15fc49f867b0·...·]/core/primitive.bool.html">bool</a>,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iter_is_partitioned</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/62544">#62544</a>)</span></div></span><div·class='docblock'>Checks·if·the·elements·of·this·iterator·are·partitioned·according·to·the·given·predicate,98 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·135,·SHA:·51ff5f5c7ebd8440623ea71b125c5a5837e809e308fe1a13fbe19cddb941dbd9·...·]/core/primitive.bool.html">bool</a>,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iter_is_partitioned</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/62544">#62544</a>)</span></div></span><div·class='docblock'>Checks·if·the·elements·of·this·iterator·are·partitioned·according·to·the·given·predicate,
99 such·that·all·those·that·return·<code>true</code>·precede·all·those·that·return·<code>false</code>.·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.is_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:·6f406a351b93047f56fa70265a6bf28ec6874f75cd6cc5a39d51c7af462f2992·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_fold"·class="fn">try_fold</a>&lt;B,·F,·R&gt;(&amp;mut·self,·init:·B,·f:·F)·-&gt;·R<div·class="where">where99 such·that·all·those·that·return·<code>true</code>·precede·all·those·that·return·<code>false</code>.·<a·href="https://doc.rust-lang.org/1.78.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:·2c74873f4e5ba70004a1c7edd1cc3f9e2d91271295dd1591e2d26848df4c02ba·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_fold"·class="fn">try_fold</a>&lt;B,·F,·R&gt;(&amp;mut·self,·init:·B,·f:·F)·-&gt;·R<div·class="where">where
100 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,100 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.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>(B,·Self::<a·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:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(B,·Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·R,
102 ····R:·<a·class="trait"·href="../../core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&lt;Output·=·B&gt;,</div></h4></section></summary><div·class='docblock'>An·iterator·method·that·applies·a·function·as·long·as·it·returns102 ····R:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.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
103 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:·eecdce021399d206eb3ef5af12ee7663b4eb0dca55b0f411c7fa66f605b6b2e2·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_for_each"·class="fn">try_for_each</a>&lt;F,·R&gt;(&amp;mut·self,·f:·F)·-&gt;·R<div·class="where">where103 successfully,·producing·a·single,·final·value.·<a·href="https://doc.rust-lang.org/1.78.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:·52912e82c4b0a760d06f77eb4ee3a59ba70dd76cb532954900c73ae94c652674·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_for_each"·class="fn">try_for_each</a>&lt;F,·R&gt;(&amp;mut·self,·f:·F)·-&gt;·R<div·class="where">where
104 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,104 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.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::Item">Item</a>)·-&gt;·R,105 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·R,
106 ····R:·<a·class="trait"·href="../../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·the106 ····R:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.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.78.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
107 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:·ffdacd6b524bc823efebbf23dc0f77317a07fe9c8b691f2ea18db7aa0c08b146·...·]/core/iter/traits/iterator/trait.Iterator.html#method.fold"·class="fn">fold</a>&lt;B,·F&gt;(self,·init:·B,·f:·F)·-&gt;·B<div·class="where">where107 iterator,·stopping·at·the·first·error·and·returning·that·error.·<a·href="https://doc.rust-lang.org/1.78.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:·1d6c4809cea8748e901d3f94777f450d430f3161f6ac05ed1c178d9327f966a3·...·]/core/iter/traits/iterator/trait.Iterator.html#method.fold"·class="fn">fold</a>&lt;B,·F&gt;(self,·init:·B,·f:·F)·-&gt;·B<div·class="where">where
108 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,108 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.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>(B,·Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·B,</div></h4></section></summary><div·class='docblock'>Folds·every·element·into·an·accumulator·by·applying·an·operation,109 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(B,·Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·B,</div></h4></section></summary><div·class='docblock'>Folds·every·element·into·an·accumulator·by·applying·an·operation,
110 returning·the·final·result.·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.fold">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.reduce"·class="method·trait-impl"><a·class="src·rightside"·href="../../src/core/iter/trait[·...·truncated·by·diffoscope;·len:·386,·SHA:·810f9139cdcd3d4f700c99b5f53be62aa7fdf60caeee4e9c913e260800114d7e·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;<div·class="where">where110 returning·the·final·result.·<a·href="https://doc.rust-lang.org/1.78.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"><a·class="src·rightside"·href[·...·truncated·by·diffoscope;·len:·521,·SHA:·6f59bffc98a694c5ac5b474ae46226046b0a79a9e465f8d981b677b39a8a9f33·...·]/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.78.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:·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·reducing112 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·352,·SHA:·e7c3c296abe2c0a183967153e4ae7fd50bafa2ae7088e3e78b3b48fee253adc6·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>,</div></h4></section></summary><div·class='docblock'>Reduces·the·elements·to·a·single·one,·by·repeatedly·applying·a·reducing
113 operation.·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.reduce">Read·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:·a9dce8bb557b5a11426bf2ffcbd5eea7c6c870833e3ee5bb072dcaaa11687b0c·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_reduce"·class="fn">try_reduce</a>&lt;F,·R&gt;(113 operation.·<a·href="https://doc.rust-lang.org/1.78.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:·7a18fdd041b1a001b4a8feb289ee127fd9240232239269eb35dc3b8f74783ec9·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_reduce"·class="fn">try_reduce</a>&lt;F,·R&gt;(
114 ····&amp;mut·self,114 ····&amp;mut·self,
115 ····f:·F115 ····f:·F
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:·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">where116 )·-&gt;·&lt;&lt;R·as·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&gt;::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/ops/try_trait/trait.Try.html#associatedtype.Residual"·title="type[·...·truncated·by·diffoscope;·len:·754,·SHA:·6fb4dfdb6b4da68921c1e7f8b75d99cf293d58318d684a840254ce9576957bea·...·]/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.78.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:·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:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·140,·SHA:·c27972e6fa3464c9476eaa185e8657edb6bb294f148403f3d079285294a9f909·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·R,
119 ····R:·<a·class="trait"·href="../../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.78.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.78.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.78.0/core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&gt;::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/ops/try_trait/trait.Try.html#associatedtype.Residual"·title="type[·...·truncated·by·diffoscope;·len:·412,·SHA:·22b8cbb007e5cce82b9d13a65bfa56aa8d83c32541fac25f4d9b3857b0540908·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;&gt;,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iterator_try_reduce</code>&nbsp;<a·href="https://github.com/rust-lang/rust/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:·65b80c848af6e465c8c5aef4ec8d3faaa399d30c8427c9507fda7b3bd1d3ea93·...·]/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.78.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:·bc0d658d56e348823de15386e1cd4ab49109f3a7a055a4573a19391b47071193·...·]/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.78.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:·95a840b532d3d621bde4032d63854eb0a481248e2b4bbb3ef058dbffb4dae4fa·...·]/core/primitive.bool.html">bool</a><div·class="where">where123 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·1018,·SHA:·e61cd6bdd36729cc38e57fcaea2ccb91a23a5acbda3c8986071f19bf1ecfc52a·...·]/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.78.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:·f828c62edd4fe85e217286f359b56c116e14ed18bb292ba1cc13d3ed7146909e·...·]/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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·1172,·SHA:·e64ab74d116d286191ad43d9d9e10411fc011c23724aa806e9a8f9b0be0757e3·...·]/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.78.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>(&amp;Self::<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:·21d7086b3ce0092e3f7a6a41174339bbd8724e7d186158db4db3385a73d94e8e·...·]/core/option/enum.Option.html"·title="enum·core::option::Option">Option</a>&lt;B&gt;<div·class="where">where127 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·1051,·SHA:·ecc0b8fccd861464760f9ae047ff6ab98c91a1db010cb5fa59a8c2ab883db7c4·...·]/core/option/enum.Option.html"·title="enum·core::option::Option">Option</a>&lt;B&gt;<div·class="where">where
Max diff block lines reached; 140371/311541 bytes (45.06%) of diff not shown.
279 KB
./usr/share/doc/rust-web-doc/html/alloc/str/struct.SplitN.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·`splitn`."><title>SplitN·in·alloc::str·-·Rust</title><script>·if·(window.location.protocol·!==·"file:")·document.write(`<link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/SourceSerif4-Regular-46f98efaafac5295.ttf.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/FiraSans-Regular-018c141bf0843ffd.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/FiraSans-Medium-8f9a781e4970d388.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/SourceCodePro-Regular-562dcc5011b6de7d.ttf.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/SourceCodePro-Semibold-d899c5a5c4aeb14a.ttf.woff2">`)</script><link·rel="stylesheet"·href="../../static.files/normalize-76eba96aa4d2e634.css"><link·rel="stylesheet"·href="../../static.files/rustdoc-35f9e32502181f1e.css"><meta·name="rustdoc-vars"·data-root-path="../../"·data-static-root-path="../../static.files/"·data-current-crate="alloc"·data-themes=""·data-resource-suffix="1.78.0"·data-rustdoc-version="1.78.0"·data-channel="1.78.0"·data-search-js="search-42d8da7a6b9792c2.js"·data-settings-js="settings-4313503d2e1961c2.js"·><script·src="../../static.files/storage-4c98445ec4002617.js"></script><script·defer·src="sidebar-items1.78.0.js"></script><script·defer·src="../../static.files/main-12cf3b4f4f9dc36d.js"></script><noscript><link·rel="stylesheet"·href="../../static.files/noscript-04d5337699b92874.css"></noscript><link·rel="alternate·icon"·type="image/png"·href="../../static.files/favicon-16x16-8b506e7a72182f1c.png"><link·rel="alternate·icon"·type="image/png"·href="../../static.files/favicon-32x32-422f7d1d52889060.png"><link·rel="icon"·type="image/svg+xml"·href="../../static.files/favicon-2c020d218678b618.svg"></head><body·class="rustdoc·struct"><!--[if·lte·IE·11]><div·class="warning">This·old·browser·is·unsupported·and·will·most·likely·display·funky·things.</div><![endif]--><nav·class="mobile-topbar"><button·class="sidebar-menu-toggle"·title="show·sidebar"></button><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-151179464ae7ed46.svg"·alt=""></a></nav><nav·class="sidebar"><div·class="sidebar-crate"><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-151179464ae7ed46.svg"·alt="logo"></a><h2><a·href="../../alloc/index.html">alloc</a><span·class="version">1.78.0</span></h2></div><h2·class="location"><a·href="#">SplitN</a></h2><div·class="sidebar-elems"><section><h3><a·href="#implementations">Methods</a></h3><ul·class="block·method"><li><a·href="#method.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">Clone</a></li><li><a·href="#impl-Debug-for-SplitN%3C'a,+P%3E">Debug</a></li><li><a·href="#impl-FusedIterator-for-SplitN%3C'a,+P%3E">FusedIterator</a></li><li><a·href="#impl-Iterator-for-SplitN%3C'a,+P%3E">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">Freeze</a></li><li><a·href="#impl-RefUnwindSafe-for-SplitN%3C'a,+P%3E">RefUnwindSafe</a></li><li><a·href="#impl-Send-for-SplitN%3C'a,+P%3E">Send</a></li><li><a·href="#impl-Sync-for-SplitN%3C'a,+P%3E">Sync</a></li><li><a·href="#impl-Unpin-for-SplitN%3C'a,+P%3E">Unpin</a></li><li><a·href="#impl-UnwindSafe-for-SplitN%3C'a,+P%3E">UnwindSafe</a></li></ul><h3><a·href="#blanket-implementations">Blanket·Implementations</a></h3><ul·class="block·blanket-implementation"><li><a·href="#impl-Any-for-T">Any</a></li><li><a·href="#impl-Borrow%3CT%3E-for-T">Borrow&lt;T&gt;</a></li><li><a·href="#impl-BorrowMut%3CT%3E-for-T">BorrowMut&lt;T&gt;</a></li><li><a·href="#impl-From%3CT%3E-for-T">From&lt;T&gt;</a></li><li><a·href="#impl-Into%3CU%3E-for-T">Into&lt;U&gt;</a></li><li><a·href="#impl-IntoIterator-for-I">IntoIterator</a></li><li><a·href="#impl-ToOwned-for-T">ToOwned</a></li><li><a·href="#impl-TryFrom%3CU%3E-for-T">TryFrom&lt;U&gt;</a></li><li><a·href="#impl-TryInto%3CU%3E-for-T">TryInto&lt;U&gt;</a></li></ul></section><h2><a·href="index.html">In·alloc::str</a></h2></div></nav><div·class="sidebar-resizer"></div>1 <!DOCTYPE·html><html·lang="en"><head><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.write(`<link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/SourceSerif4-Regular-46f98efaafac5295.ttf.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/FiraSans-Regular-018c141bf0843ffd.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/FiraSans-Medium-8f9a781e4970d388.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/SourceCodePro-Regular-562dcc5011b6de7d.ttf.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/SourceCodePro-Semibold-d899c5a5c4aeb14a.ttf.woff2">`)</script><link·rel="stylesheet"·href="../../static.files/normalize-76eba96aa4d2e634.css"><link·rel="stylesheet"·href="../../static.files/rustdoc-35f9e32502181f1e.css"><meta·name="rustdoc-vars"·data-root-path="../../"·data-static-root-path="../../static.files/"·data-current-crate="alloc"·data-themes=""·data-resource-suffix="1.78.0"·data-rustdoc-version="1.78.0"·data-channel="1.78.0"·data-search-js="search-42d8da7a6b9792c2.js"·data-settings-js="settings-4313503d2e1961c2.js"·><script·src="../../static.files/storage-4c98445ec4002617.js"></script><script·defer·src="sidebar-items1.78.0.js"></script><script·defer·src="../../static.files/main-12cf3b4f4f9dc36d.js"></script><noscript><link·rel="stylesheet"·href="../../static.files/noscript-04d5337699b92874.css"></noscript><link·rel="alternate·icon"·type="image/png"·href="../../static.files/favicon-16x16-8b506e7a72182f1c.png"><link·rel="alternate·icon"·type="image/png"·href="../../static.files/favicon-32x32-422f7d1d52889060.png"><link·rel="icon"·type="image/svg+xml"·href="../../static.files/favicon-2c020d218678b618.svg"></head><body·class="rustdoc·struct"><!--[if·lte·IE·11]><div·class="warning">This·old·browser·is·unsupported·and·will·most·likely·display·funky·things.</div><![endif]--><nav·class="mobile-topbar"><button·class="sidebar-menu-toggle"·title="show·sidebar"></button><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-151179464ae7ed46.svg"·alt=""></a></nav><nav·class="sidebar"><div·class="sidebar-crate"><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-151179464ae7ed46.svg"·alt="logo"></a><h2><a·href="../../alloc/index.html">alloc</a><span·class="version">1.78.0</span></h2></div><h2·class="location"><a·href="#">SplitN</a></h2><div·class="sidebar-elems"><section><h3><a·href="#implementations">Methods</a></h3><ul·class="block·method"><li><a·href="#method.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">Clone</a></li><li><a·href="#impl-Debug-for-SplitN%3C'a,+P%3E">Debug</a></li><li><a·href="#impl-FusedIterator-for-SplitN%3C'a,+P%3E">FusedIterator</a></li><li><a·href="#impl-Iterator-for-SplitN%3C'a,+P%3E">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">Freeze</a></li><li><a·href="#impl-RefUnwindSafe-for-SplitN%3C'a,+P%3E">RefUnwindSafe</a></li><li><a·href="#impl-Send-for-SplitN%3C'a,+P%3E">Send</a></li><li><a·href="#impl-Sync-for-SplitN%3C'a,+P%3E">Sync</a></li><li><a·href="#impl-Unpin-for-SplitN%3C'a,+P%3E">Unpin</a></li><li><a·href="#impl-UnwindSafe-for-SplitN%3C'a,+P%3E">UnwindSafe</a></li></ul><h3><a·href="#blanket-implementations">Blanket·Implementations</a></h3><ul·class="block·blanket-implementation"><li><a·href="#impl-Any-for-T">Any</a></li><li><a·href="#impl-Borrow%3CT%3E-for-T">Borrow&lt;T&gt;</a></li><li><a·href="#impl-BorrowMut%3CT%3E-for-T">BorrowMut&lt;T&gt;</a></li><li><a·href="#impl-From%3CT%3E-for-T">From&lt;T&gt;</a></li><li><a·href="#impl-Into%3CU%3E-for-T">Into&lt;U&gt;</a></li><li><a·href="#impl-IntoIterator-for-I">IntoIterator</a></li><li><a·href="#impl-ToOwned-for-T">ToOwned</a></li><li><a·href="#impl-TryFrom%3CU%3E-for-T">TryFrom&lt;U&gt;</a></li><li><a·href="#impl-TryInto%3CU%3E-for-T">TryInto&lt;U&gt;</a></li></ul></section><h2><a·href="index.html">In·alloc::str</a></h2></div></nav><div·class="sidebar-resizer"></div>
2 ····<main><div·class="width-limiter"><nav·class="sub"><form·class="search-form"><span></span><div·id="sidebar-button"·tabindex="-1"><a·href="../../alloc/all.html"·title="show·sidebar"></a></div><input·class="search-input"·name="search"·aria-label="Run·search·in·the·documentation"·autocomplete="off"·spellcheck="false"·placeholder="Click·or·press·‘S’·to·search,·‘?’·for·more·options…"·type="search"><div·id="help-button"·tabindex="-1"><a·href="../../help.html"·title="help">?</a></div><div·id="settings-menu"·tabindex="-1"><a·href="../../settings.html"·title="settings"><img·width="22"·height="22"·alt="Change·settings"·src="../../static.files/wheel-7b819b6101059cd0.svg"></a></div></form></nav><section·id="main-content"·class="content"><div·class="main-heading"><h1>Struct·<a·href="../index.html">alloc</a>::<wbr><a·href="index.html">str</a>::<wbr><a·class="struct"·href="#">SplitN</a><button·id="copy-path"·title="Copy·item·path·to·clipboard"><img·src="../../static.files/clipboard-7571035ce49a181d.svg"·width="19"·height="18"·alt="Copy·item·path"></button></h1><span·class="out-of-band"><span·class="since"·title="Stable·since·Rust·version·1.0.0">1.0.0</span>···<a·class="src"·href="../../src/core/str/iter.rs.html#972-988">source</a>···<button·id="toggle-all-docs"·title="collapse·all·docs">[<span>&#x2212;</span>]</button></span></div><pre·class="rust·item-decl"><code>pub·struct·SplitN&lt;'a,·P&gt;(<span·class="comment">/*·private·fields·*/</span>)2 ····<main><div·class="width-limiter"><nav·class="sub"><form·class="search-form"><span></span><div·id="sidebar-button"·tabindex="-1"><a·href="../../alloc/all.html"·title="show·sidebar"></a></div><input·class="search-input"·name="search"·aria-label="Run·search·in·the·documentation"·autocomplete="off"·spellcheck="false"·placeholder="Click·or·press·‘S’·to·search,·‘?’·for·more·options…"·type="search"><div·id="help-button"·tabindex="-1"><a·href="../../help.html"·title="help">?</a></div><div·id="settings-menu"·tabindex="-1"><a·href="../../settings.html"·title="settings"><img·width="22"·height="22"·alt="Change·settings"·src="../../static.files/wheel-7b819b6101059cd0.svg"></a></div></form></nav><section·id="main-content"·class="content"><div·class="main-heading"><h1>Struct·<a·href="../index.html">alloc</a>::<wbr><a·href="index.html">str</a>::<wbr><a·class="struct"·href="#">SplitN</a><button·id="copy-path"·title="Copy·item·path·to·clipboard"><img·src="../../static.files/clipboard-7571035ce49a181d.svg"·width="19"·height="18"·alt="Copy·item·path"></button></h1><span·class="out-of-band"><span·class="since"·title="Stable·since·Rust·version·1.0.0">1.0.0</span>···<a·class="src"·href="https://doc.rust-lang.org/1.78.0/src/core/str/iter.rs.html#972-988">source</a>···<button·id="toggle-all-docs"·title="collapse·all·docs">[<span>&#x2212;</span>]</button></span></div><pre·class="rust·item-decl"><code>pub·struct·SplitN&lt;'a,·P&gt;(<span·class="comment">/*·private·fields·*/</span>)
3 <span·class="where">where3 <span·class="where">where
4 ····P:·<a·class="trait"·href="pattern/trait.Pattern.html"·title="trait·alloc::str::pattern::Pattern">Pattern</a>&lt;'a&gt;</span>;</code></pre><details·class="toggle·top-doc"·open><summary·class="hideme"><span>Expand·description</span></summary><div·class="docblock"><p>Created·with·the·method·<a·href="../../core/primitive.str.html#method.splitn"·title="method·str::splitn"><code>splitn</code></a>.</p>4 ····P:·<a·class="trait"·href="pattern/trait.Pattern.html"·title="trait·alloc::str::pattern::Pattern">Pattern</a>&lt;'a&gt;</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.78.0/core/primitive.str.html#method.splitn"·title="method·str::splitn"><code>splitn</code></a>.</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-SplitN%3C'a,+P%3E"·class="impl"><a·class="src·rightside"·href="../../src/core/str/iter.rs.html#990">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">where5 </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.78.0/src/core/str/iter.rs.html#990">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
6 ····P:·<a·class="trait"·href="pattern/trait.Pattern.html"·title="trait·alloc::str::pattern::Pattern">Pattern</a>&lt;'a&gt;,</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#1008">source</a><h4·class="code-header">pub·fn·<a·href="#method.remainder"·class="fn">remainder</a>(&amp;self)·-&gt;·<a·class="enum"·href="../../core/option/enum.Option.html"·title="enum·core::option::Option">Option</a>&lt;&[·...·truncated·by·diffoscope;·len:·39,·SHA:·41bc7c8805f528ad91e84bb44389035feda1ffcf00c9068bb255ec8aab508c79·...·]/core/primitive.str.html">str</a>&gt;</h4></section><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>str_split_remainder</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/77998">#77998</a>)</span></div></span></summary><div·class="docblock"><p>Returns·remainder·of·the·split·string.</p>6 ····P:·<a·class="trait"·href="pattern/trait.Pattern.html"·title="trait·alloc::str::pattern::Pattern">Pattern</a>&lt;'a&gt;,</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.78.0/src/core/str/iter.rs.html#1008">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.78.0/core/option/enum.Option.h[·...·truncated·by·diffoscope;·len:·120,·SHA:·24a3d8de8932a0d2d085ee46870b5ae0d77fff28a02c3dbb30118574fc961eef·...·]/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>
7 <p>If·the·iterator·is·empty,·returns·<code>None</code>.</p>7 <p>If·the·iterator·is·empty,·returns·<code>None</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="attr">#![feature(str_split_remainder)]9 <div·class="example-wrap"><pre·class="rust·rust-example-rendered"><code><span·class="attr">#![feature(str_split_remainder)]
10 </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><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>);
11 <span·class="macro">assert_eq!</span>(split.remainder(),·<span·class="prelude-val">Some</span>(<span·class="string">"Mary·had·a·little·lamb"</span>));11 <span·class="macro">assert_eq!</span>(split.remainder(),·<span·class="prelude-val">Some</span>(<span·class="string">"Mary·had·a·little·lamb"</span>));
12 split.next();12 split.next();
13 <span·class="macro">assert_eq!</span>(split.remainder(),·<span·class="prelude-val">Some</span>(<span·class="string">"had·a·little·lamb"</span>));13 <span·class="macro">assert_eq!</span>(split.remainder(),·<span·class="prelude-val">Some</span>(<span·class="string">"had·a·little·lamb"</span>));
14 split.by_ref().for_each(drop);14 split.by_ref().for_each(drop);
15 <span·class="macro">assert_eq!</span>(split.remainder(),·<span·class="prelude-val">None</span>);</code></pre><a·class="test-arrow"·target="_blank"·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">Run</a></div>15 <span·class="macro">assert_eq!</span>(split.remainder(),·<span·class="prelude-val">None</span>);</code></pre><a·class="test-arrow"·target="_blank"·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">Run</a></div>
16 </div></details></div></details></div><h2·id="trait-implementations"·class="section-header">Trait·Implementations<a·href="#trait-implementations"·class="anchor">§</a></h2><div·id="trait-implementations-list"><details·class="toggle·implementors-toggle"·open><summary><section·id="impl-Clone-for-SplitN%3C'a,+P%3E"·class="impl"><a·class="src·rightside"·href="../../src/core/str/iter.rs.html#972-988">source</a><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">where16 </div></details></div></details></div><h2·id="trait-implementations"·class="section-header">Trait·Implementations<a·href="#trait-implementations"·class="anchor">§</a></h2><div·id="trait-implementations-list"><details·class="toggle·implementors-toggle"·open><summary><section·id="impl-Clone-for-SplitN%3C'a,+P%3E"·class="impl"><a·class="src·rightside"·href="https://doc.rust-lang.org/1.78.0/src/core/str/iter.rs.html#972-988">source</a><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.78.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
17 ····P:·<a·class="trait"·href="pattern/trait.Pattern.html"·title="trait·alloc::str::pattern::Pattern">Pattern</a>&lt;'a&gt;,17 ····P:·<a·class="trait"·href="pattern/trait.Pattern.html"·title="trait·alloc::str::pattern::Pattern">Pattern</a>&lt;'a&gt;,
18 ····&lt;P·as·<a·class="trait"·href="pattern/trait.Pattern.html"·title="trait·alloc::str::pattern::Pattern">Pattern</a>&lt;'a&gt;&gt;::<a·class="associatedtype"·href="pattern/trait.Pattern.html#associatedtype.Searcher"·title="type·alloc::str::pattern::Pattern::Searcher">Searcher</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"><details·class="toggle·method-toggle"·open><summary><section·id="method.clone"·class="method·trait-impl"><a·class="src·righ[·...·truncated·by·diffoscope;·len:·1382,·SHA:·abdf9dca1d5a774773d88cf1caf576761d6309d077237fe5d899ff435f92d1d9·...·]/src/core/str/iter.rs.html#972-988">source</a><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">where18 ····&lt;P·as·<a·class="trait"·href="pattern/trait.Pattern.html"·title="trait·alloc::str::pattern::Pattern">Pattern</a>&lt;'a&gt;&gt;::<a·class="associatedtype"·href="pattern/trait.Pattern.html#associatedtype.Searcher"·title="type·alloc::str::pattern::Pattern::Searcher">Searcher</a>:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.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:·1625,·SHA:·48a459f328af682febf9555a71fbc8e9da7d54b02f2bba5b37a51f9ea5418a28·...·]/src/core/str/iter.rs.html#972-988">source</a><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
19 ····P:·<a·class="trait"·href="pattern/trait.Pattern.html"·title="trait·alloc::str::pattern::Pattern">Pattern</a>&lt;'a&gt;,19 ····P:·<a·class="trait"·href="pattern/trait.Pattern.html"·title="trait·alloc::str::pattern::Pattern">Pattern</a>&lt;'a&gt;,
20 ····&lt;P·as·<a·class="trait"·href="pattern/trait.Pattern.html"·title="trait·alloc::str::pattern::Pattern">Pattern</a>&lt;'a&gt;&gt;::<a·class="associatedtype"·href="pattern/trait.Pattern.html#associatedtype.Searcher"·title="type·alloc::str::pattern::Pattern::Searcher">Searcher</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/str/iter.rs.html#972-988">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:·868,·SHA:·0ab502c05f9dedcdf4498195087b61f617d7029d11ed6335780decd885226c32·...·]/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">where20 ····&lt;P·as·<a·class="trait"·href="pattern/trait.Pattern.html"·title="trait·alloc::str::pattern::Pattern">Pattern</a>&lt;'a&gt;&gt;::<a·class="associatedtype"·href="pattern/trait.Pattern.html#associatedtype.Searcher"·title="type·alloc::str::pattern::Pattern::Searcher">Searcher</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.78.0/src/core/str/iter.rs.html#972-988">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:·1003,·SHA:·5234944aaafaeff2fc134b6e912ac70dd4962dddf95c55dcaa073c083ab37a44·...·]/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
21 ····P:·<a·class="trait"·href="pattern/trait.Pattern.html"·title="trait·alloc::str::pattern::Pattern">Pattern</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·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·class="primitive"·href="../../core/primitive.str.html">str</a></h4></section></summary><div·class='docblock'>The·type·of·the·elements·bein[·...·truncated·by·diffoscope;·len:·1220,·SHA:·96a568135243441563bd55abb9f71b31a3a23df690c583a964a52261d16db208·...·]/core/primitive.usize.html">usize</a>&gt;(21 ····P:·<a·class="trait"·href="pattern/trait.Pattern.html"·title="trait·alloc::str::pattern::Pattern">Pattern</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·href="#associatedtype.Item"·class="anchor">§</a><h4·class="code-header">type·<a·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·class="associatedtype">Item</a>·=·&amp;'a·<a·class="primitive"·href="https://doc.rust-lang.org/1.78.0/core/primitive.str.html">str</a></h4></section></summa[·...·truncated·by·diffoscope;·len:·1490,·SHA:·0be776785993c7313becb7769d9b2f2d61459bd8ae21dad545be73b562a91475·...·]/core/primitive.usize.html">usize</a>&gt;(
22 ····&amp;mut·self22 ····&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.78.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.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title=[·...·truncated·by·diffoscope;·len:·381,·SHA:·88c48923c9b7ea5cc47c1087c60e09656e81d4671c58071ba2bef826335388bc·...·]/core/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:·1593,·SHA:·59204fc1883bd9e8d10e390b843913f01f97378e05bff840116b149bc5b4dc00·...·]/core/primitive.usize.html">usize</a><div·class="where">where24 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experiment[·...·truncated·by·diffoscope;·len:·1890,·SHA:·62ca204af9e3eb9911a3bbbf9669088b55c64885573e7f4b900a3761d117ab1a·...·]/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:·579,·SHA:·97df9cdc3f1cc1461e704ebdf0c047ac7c0165f9aec8e9afdc069209b7a15a36·...·]/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.78.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:·741,·SHA:·f3078cc3fddd62af2c1a8814c5854bb49f40b79e4fbc9b3addf5862a72370f82·...·]/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:·2868,·SHA:·9ec21b8470b914406f4216b9bac831bf85cccf58579bd476408d6168be7cd43e·...·]/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.78.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.78.0/cor[·...·truncated·by·diffoscope;·len:·3408,·SHA:·b62c6ed65b31a8b555c142d9d15f3ce30e5c76ad2630a0e5a9b13cfd478c6eee·...·]/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.78.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"><a·class="src·rightside"·href="../../src/core/iter/tra[·...·truncated·by·diffoscope;·len:·584,·SHA:·fd3e570373eb5121d35d7e22cdd5dd5fbf7183ee80147135a591fd1285174e82·...·]/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.78.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"><a·class="src·rightside"·hr[·...·truncated·by·diffoscope;·len:·746,·SHA:·f1f70d650c102c8658e13890c7dbfc87418f07e7b522246fb579ec434ef64f7c·...·]/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.78.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:·1017,·SHA:·c0f5f8cfd297e1678ac0ee2fd847fb6f0577665ac326e8e2e9d6414a710c8f98·...·]/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.78.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.78.0/core/iter/traits/it[·...·truncated·by·diffoscope;·len:·1233,·SHA:·f677df2d893dfe0dc1a9d31ebb0ba71a346d265781813e0d664d3f18369b6163·...·]/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.78.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:·c1b5e692e89c9c809075ee8ee72fb15a9ec46c075b08450e1f707d672a224750·...·]/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.78.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:·98627729f77dcf1c9d258f343354ba600b7134c6b3929080f231e8de7155b70b·...·]/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.78.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.78.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.78.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"><a·class="src·rightside"·href="../../src/core/i[·...·truncated·by·diffoscope;·len:·267,·SHA:·1764c9d6d2e39e1367ae2111c28ab846e66ecf12617fbff35e0132e82e5c8b13·...·]/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.78.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"><a·class="src·rights[·...·truncated·by·diffoscope;·len:·375,·SHA:·58419346f92e1709dadb70cc3cf356e3cd27972451bdc6b4fc4267e6f7e8bdae·...·]/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.78.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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::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:·fb4c9589a16c7b6d697c109d1193d2f1e763e5dd967101c2fd92b32416972229·...·]/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.78.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:·98f6effefa44d759c249143d83623f0055d937382bfc398b7e1f5e92cd413657·...·]/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.78.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:·658,·SHA:·e4449b6c00d036dd30444817045eddaf2697443d65789bb5c0b585ed1bc77702·...·]/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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·820,·SHA:·a664bbcbc0891663662e4eb7b4394d0fcd72e568136fc4d34097fea242cc32e7·...·]/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.78.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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·140,·SHA:·752f473b57e7444ebfddf5ea7fd40a332e83ec55524a6c31b5ee0f82a5dea819·...·]/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"><a·class="src·rightside"·href="../../src/core/iter[·...·truncated·by·diffoscope;·len:·285,·SHA:·738ce0440ff568829f40d141e38e2c0da2fd05d2b73d1a574be0ed9baa32e827·...·]/core/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.78.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"><a·class="src·rightside[·...·truncated·by·diffoscope;·len:·393,·SHA:·2e2aa7c9c9c087e7b346da376749064ab8c1894795a2f0a0f646cdc8c7bea997·...·]/core/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.78.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:·767,·SHA:·da0fc5bc95a3398627e0c5836423b719ccea45d351e21ddaa96f793f67f9c6de·...·]/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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·956,·SHA:·faba0521e870dbbd26d466fadba3522e7d29013a9b86376fffafffac11a57e0e·...·]/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.78.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"><a·class="src·rightside"·href="../../src/core/ite[·...·truncated·by·diffoscope;·len:·264,·SHA:·e3fa7ab43c6353bc2216a22d7010c41a8ab50d273a128d15d0eff050c058993a·...·]/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.78.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"><a·class="src·rightsid[·...·truncated·by·diffoscope;·len:·372,·SHA:·03eea0861575eb80d3f7a87a3ba747adb1a33fe7e9ce72aa2172e7a287c63a94·...·]/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.78.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.78.0/core/iter/adapte[·...·truncated·by·diffoscope;·len:·175,·SHA:·16fe7225bf05b478e2828b347c3d23ded9a22f89d8887a2c65d9f7b3faf1b0e7·...·]/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"><a·class="src·rightside"·href="../../src/core/it[·...·truncated·by·diffoscope;·len:·294,·SHA:·c0aee2077af6a4f81ed47e37c84a75b5f9b941875509fbe0b3d352866f825f45·...·]/core/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.78.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"><a·class="src·rightsi[·...·truncated·by·diffoscope;·len:·402,·SHA:·7689a974f800fd069d1b4453ef62d6d6ad1b654462d624d36e3672051d502030·...·]/core/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.78.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:·922,·SHA:·5220bbb4db3c3cd3d7ca7c27520f44f04fe367ee2f0f407fb1d50c0a327a2f99·...·]/core/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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·1138,·SHA:·f6ae06b7de8e94df014341c5cf589a5e4a1298367b2ef7a968ec499c5170a70e·...·]/core/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.78.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:·39eeddf219b211245393e51a591d5064c740fa9be49d88883d8a6474679741ad·...·]/core/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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·1058,·SHA:·b390dbdda8d7e93604b5ecd906a93efd03fe19bdaf41cf12893fd361bf974307·...·]/core/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.78.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:·851,·SHA:·ad2e090d21a034b7c3836ed38a686f4c483f9a929132fef846d48271f749a79c·...·]/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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·1067,·SHA:·415d32e1211c35d3bb405de1d6e51c2102c14cadc3333894f063148dbe0b1f69·...·]/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:·525,·SHA:·6471f48fecadc56edf21fc04794b884b96ce06d339c715e410f5a906e028bc28·...·]/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.78.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:·687,·SHA:·7f5256104c35c5948a2cb42b55f3048c9d2887e48a4a8226537a284f959c562a·...·]/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.78.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"><a·class="src·rightside"·href="../../src/core/iter/traits/[·...·truncated·by·diffoscope;·len:·284,·SHA:·aee83f38f8c40848e159b12a8faa43b9dadf589fe974632a1f15ce2a15834071·...·]/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.78.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"><a·class="src·rightside"·href="[·...·truncated·by·diffoscope;·len:·392,·SHA:·4e7da68f7be2622ef173653eca78d58e1f202b544a2e6abd14d8335c298c93a7·...·]/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.78.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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(<a·class="primitive"·href="https://doc.rust-lang.org/1.78.0/core/primitive.reference.html">&amp;mut·St</a>,·Self::<a·class="associatedty[·...·truncated·by·diffoscope;·len:·449,·SHA:·f12c268a8a8111b9e7126ad78bf5523a63733caa63d187c4fe792309ea41acdf·...·]/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:·459,·SHA:·b825570d9672670eacd8828b3abec12cd1c35433286857de28f5ea8d5e300e03·...·]/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.78.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.78.0/core/iter/trai[·...·truncated·by·diffoscope;·len:·594,·SHA:·02960742fa7892efaa08f289ce85865fc5efb6a4cd138c22e3566ca6fc727d78·...·]/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.78.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.78.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:·9b6a337a3ad68c2a987b52450c153f87a04a8ed9e83603d26077fe6e70d61edf·...·]/core/iter/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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·976,·SHA:·2a9182f6fe88e0b8a9b1ae1f46cace940cc0b8736033c354c0f0ccbf1c196e7a·...·]/core/iter/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.78.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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;[Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtyp[·...·truncated·by·diffoscope;·len:·135,·SHA:·0b06a6094d42ccbc8bce5b01c4383961fe7f1967f05e4c9f1ff33e71e425fb26·...·]/core/primitive.array.html">N</a>])·-&gt;·R,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iter_map_windows</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/87155">#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.78.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"><a·class="src·rightside"·href="../../src/core/iter/[·...·truncated·by·diffoscope;·len:·250,·SHA:·e355ddd0f04b2470ee915aec3ad97857be56b95e6a1f3d733d6c477453f4cf0d·...·]/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.78.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"><a·class="src·rightside"[·...·truncated·by·diffoscope;·len:·358,·SHA:·d91b2ab18e0ce069e262cf523c6ef961f56eecad042ea1e9bcefe33cff28fc8f·...·]/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:·583,·SHA:·b7d7d6125e8980756a2636a6b6e01600057c98a027dcf7d267b1f61538a7b6b0·...·]/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.78.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.78.0/core/op[·...·truncated·by·diffoscope;·len:·745,·SHA:·424783f22102f4446d3ad4d362b1aafdb7531fa777213f97ee138aa878f67bd1·...·]/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.78.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:·676,·SHA:·ae75f35cafbae1e0e695226baca09b0bec6e4a0ed5656a83c3357b29fb00442d·...·]/core/primitive.reference.html">&amp;mut·Self</a><div·class="where">where72 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·838,·SHA:·9b4fd8df7f41e9a76fd4cfca0a233b74b9bd27c3fe8228248abc3f940425a3e3·...·]/core/primitive.reference.html">&amp;mut·Self</a><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:·319,·SHA:·bbb653fcb1f5ad46e04905bf78a76b9dd63ea5d49a2d8cd5b7b36efbb0f7e105·...·]/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.78.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.78.0/core/it[·...·truncated·by·diffoscope;·len:·427,·SHA:·ecfaaac5d1d10c1bc4fcee9a050af0a268bee0b528c2d8ea4e9774440bd8a279·...·]/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.78.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.78.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:·e5d524e874326d0b9b733f5ee809c6595cde869afab0cc3d4ba8454093f420da·...·]/core/primitive.reference.html">&amp;mut·E</a><div·class="where">where75 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.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.78.0/core/iter/tr[·...·truncated·by·diffoscope;·len:·728,·SHA:·01937c2dc314c259495665570ae249c94b4a5b0719718f5f1188e6fc64ecf487·...·]/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.78.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.78.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:·744,·SHA:·a7446142ab67c3f20d866315fbe6cb9c57cd4af012812d6dd19d5061aee6e97b·...·]/core/primitive.tuple.html">(B,·B)</a><div·class="where">where77 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experiment[·...·truncated·by·diffoscope;·len:·879,·SHA:·e773b2222c92d001e295030cb47a780ab0c1132d7fc8e9e3a98de4f532e6c520·...·]/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.78.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.78.0/core/default/trait.Default.html"·title="trait·core::default::Default">Default</a>·+·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/collect/trait.Extend.html"·title="trait·core::iter::traits::collec[·...·truncated·by·diffoscope;·len:·95,·SHA:·8b3be1d0042cae0550f865faf5849221240bdf04eb1b2107605b72d48c3ad29c·...·]/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:·f8b50287f3e106633ed79a84072d3ddd9d98672efd685d2433c61b5549ce051e·...·]/core/primitive.bool.html">bool</a><div·class="where">where80 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·972,·SHA:·6de765542031617a9c28ac98fe6df619e58e62d9c65ec5b1c185a7152b8944e5·...·]/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.78.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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·135,·SHA:·51ff5f5c7ebd8440623ea71b125c5a5837e809e308fe1a13fbe19cddb941dbd9·...·]/core/primitive.bool.html">bool</a>,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iter_is_partitioned</code>&nbsp;<a·href="https://github.com/rust-lang/rust/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:·6f406a351b93047f56fa70265a6bf28ec6874f75cd6cc5a39d51c7af462f2992·...·]/core/iter/traits/iterator/trait.Iterator.html#method.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.78.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:·2c74873f4e5ba70004a1c7edd1cc3f9e2d91271295dd1591e2d26848df4c02ba·...·]/core/iter/traits/iterator/trait.Iterator.html#method.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.78.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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(B,·Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.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.78.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:·eecdce021399d206eb3ef5af12ee7663b4eb0dca55b0f411c7fa66f605b6b2e2·...·]/core/iter/traits/iterator/trait.Iterator.html#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.78.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:·52912e82c4b0a760d06f77eb4ee3a59ba70dd76cb532954900c73ae94c652674·...·]/core/iter/traits/iterator/trait.Iterator.html#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.78.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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.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.78.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.78.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"><a·class="src·rightside"·href="../../src/core/iter[·...·truncated·by·diffoscope;·len:·130,·SHA:·75c0150024fe6cdc702d7337508ab57600248490dd062768204ddb064c9a1b8b·...·]/core/iter/traits/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.78.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"><a·class="src·rightside[·...·truncated·by·diffoscope;·len:·211,·SHA:·924e062acd8127e8d6158162219ee5d57a941854e14063d21d7768edae549431·...·]/core/iter/traits/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.78.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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(B,·Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::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:·dbe3a08fe63abd47570741e71208c31aaf51152feac5917db07665a1f56bb3e3·...·]/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.78.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:·b60215068a6d9721be05f81098c51167d7138c4042f140cad42f77c4df43f597·...·]/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.78.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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·352,·SHA:·e7c3c296abe2c0a183967153e4ae7fd50bafa2ae7088e3e78b3b48fee253adc6·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::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:·a9dce8bb557b5a11426bf2ffcbd5eea7c6c870833e3ee5bb072dcaaa11687b0c·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_reduce"·class="fn">try_reduce</a>&lt;F,·R&gt;(97 operation.·<a·href="https://doc.rust-lang.org/1.78.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:·7a18fdd041b1a001b4a8feb289ee127fd9240232239269eb35dc3b8f74783ec9·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_reduce"·class="fn">try_reduce</a>&lt;F,·R&gt;(
98 ····&amp;mut·self,98 ····&amp;mut·self,
99 ····f:·F99 ····f:·F
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.78.0/core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&gt;::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/ops/try_trait/trait.Try.html#associatedtype.Residual"·title="type[·...·truncated·by·diffoscope;·len:·754,·SHA:·6fb4dfdb6b4da68921c1e7f8b75d99cf293d58318d684a840254ce9576957bea·...·]/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.78.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:·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:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·140,·SHA:·c27972e6fa3464c9476eaa185e8657edb6bb294f148403f3d079285294a9f909·...·]/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·=·Self::<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.78.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.78.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.78.0/core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&gt;::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/ops/try_trait/trait.Try.html#associatedtype.Residual"·title="type[·...·truncated·by·diffoscope;·len:·412,·SHA:·22b8cbb007e5cce82b9d13a65bfa56aa8d83c32541fac25f4d9b3857b0540908·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;&gt;,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iterator_try_reduce</code>&nbsp;<a·href="https://github.com/rust-lang/rust/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"><a·class="src·rightside"·href="../../src/core/iter/tr[·...·truncated·by·diffoscope;·len:·272,·SHA:·97959736d897a01242f49f2e45854ab874bf0c9bbe30acad9a49eb73169e457c·...·]/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.78.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"><a·class="src·rightside"·h[·...·truncated·by·diffoscope;·len:·380,·SHA:·29c4004d4d8b0c8c9dfe9023f8b2c5ef801d9dc4688893035d182c1ae774c453·...·]/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.78.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:·733,·SHA:·9bb9f0199d90f78ad65c59dbe67a1c751cd5a681130a03bef3b1e8ed907a3bba·...·]/core/primitive.bool.html">bool</a><div·class="where">where107 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·922,·SHA:·f4fd532c280e18f28bd6dda6c2a129e2e92114b67f27235bb5fd39f725be9c43·...·]/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.78.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:·860,·SHA:·6a94ae33b82eb12a91660811a8ab9d243468d885c07ac766a2507d25a4e7ee62·...·]/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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·1076,·SHA:·2dd9de8adaee4a5ee96501d9a58bfac2fea00ba8d78b834bfca29949b3afe18b·...·]/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.78.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:·21d7086b3ce0092e3f7a6a41174339bbd8724e7d186158db4db3385a73d94e8e·...·]/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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·1051,·SHA:·ecc0b8fccd861464760f9ae047ff6ab98c91a1db010cb5fa59a8c2ab883db7c4·...·]/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.78.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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·130,·SHA:·130a13019dc175d02304b4f550157e2f13ac15c2f25a979c74161d10b146ab89·...·]/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:·ac4da3337aac1ec10038e246be9cb719eeb5af1acc709f5a6a25b91900c56f53·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_find"·class="fn">try_find</a>&lt;F,·R&gt;(114 the·first·non-none·result.·<a·href="https://doc.rust-lang.org/1.78.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:·8ced1b10e78750774c5c8ed995ed83dcd13983aa75d329acf8069da106ab9f4a·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_find"·class="fn">try_find</a>&lt;F,·R&gt;(
115 ····&amp;mut·self,115 ····&amp;mut·self,
116 ····f:·F116 ····f:·F
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.78.0/core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&gt;::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/ops/try_trait/trait.Try.html#associatedtype.Residual"·title="type[·...·truncated·by·diffoscope;·len:·626,·SHA:·95f9831257b68862cbcbf54f0ad2ff4e597a4c9f763112d1da8a0897dadcf872·...·]/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.78.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;·R,119 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·R,
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.78.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.78.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.78.0/core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&gt;::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/ops/try_trait/trait.Try.html#associatedtype.Residual"·title="type[·...·truncated·by·diffoscope;·len:·412,·SHA:·22b8cbb007e5cce82b9d13a65bfa56aa8d83c32541fac25f4d9b3857b0540908·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;&gt;,</div></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"><a·class="src·rightside"·href="../../src/core/iter[·...·truncated·by·diffoscope;·len:·404,·SHA:·f45e13f24791f759991b5b3c0f29ce7cc9019b87d7ca444f65464e8a939e287c·...·]/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.78.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"><a·class="src·rightside[·...·truncated·by·diffoscope;·len:·539,·SHA:·04e329705f11ed9ec269a68b0b75ac4ab26c78e4316a571ee9336c28bbca6359·...·]/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.78.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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·1190,·SHA:·882e9e9a037f916d0ed4aa6d749399e6e01ca81811eacfc54a484818cb5d5029·...·]/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.78.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.78.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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/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; 88859/285315 bytes (31.14%) of diff not shown.
299 KB
./usr/share/doc/rust-web-doc/html/alloc/str/struct.SplitTerminator.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·`split_terminator`."><title>SplitTerminator·in·alloc::str·-·Rust</title><script>·if·(window.location.protocol·!==·"file:")·document.write(`<link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/SourceSerif4-Regular-46f98efaafac5295.ttf.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/FiraSans-Regular-018c141bf0843ffd.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/FiraSans-Medium-8f9a781e4970d388.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/SourceCodePro-Regular-562dcc5011b6de7d.ttf.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/SourceCodePro-Semibold-d899c5a5c4aeb14a.ttf.woff2">`)</script><link·rel="stylesheet"·href="../../static.files/normalize-76eba96aa4d2e634.css"><link·rel="stylesheet"·href="../../static.files/rustdoc-35f9e32502181f1e.css"><meta·name="rustdoc-vars"·data-root-path="../../"·data-static-root-path="../../static.files/"·data-current-crate="alloc"·data-themes=""·data-resource-suffix="1.78.0"·data-rustdoc-version="1.78.0"·data-channel="1.78.0"·data-search-js="search-42d8da7a6b9792c2.js"·data-settings-js="settings-4313503d2e1961c2.js"·><script·src="../../static.files/storage-4c98445ec4002617.js"></script><script·defer·src="sidebar-items1.78.0.js"></script><script·defer·src="../../static.files/main-12cf3b4f4f9dc36d.js"></script><noscript><link·rel="stylesheet"·href="../../static.files/noscript-04d5337699b92874.css"></noscript><link·rel="alternate·icon"·type="image/png"·href="../../static.files/favicon-16x16-8b506e7a72182f1c.png"><link·rel="alternate·icon"·type="image/png"·href="../../static.files/favicon-32x32-422f7d1d52889060.png"><link·rel="icon"·type="image/svg+xml"·href="../../static.files/favicon-2c020d218678b618.svg"></head><body·class="rustdoc·struct"><!--[if·lte·IE·11]><div·class="warning">This·old·browser·is·unsupported·and·will·most·likely·display·funky·things.</div><![endif]--><nav·class="mobile-topbar"><button·class="sidebar-menu-toggle"·title="show·sidebar"></button><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-151179464ae7ed46.svg"·alt=""></a></nav><nav·class="sidebar"><div·class="sidebar-crate"><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-151179464ae7ed46.svg"·alt="logo"></a><h2><a·href="../../alloc/index.html">alloc</a><span·class="version">1.78.0</span></h2></div><h2·class="location"><a·href="#">SplitTerminator</a></h2><div·class="sidebar-elems"><section><h3><a·href="#implementations">Methods</a></h3><ul·class="block·method"><li><a·href="#method.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">Clone</a></li><li><a·href="#impl-Debug-for-SplitTerminator%3C'a,+P%3E">Debug</a></li><li><a·href="#impl-DoubleEndedIterator-for-SplitTerminator%3C'a,+P%3E">DoubleEndedIterator</a></li><li><a·href="#impl-FusedIterator-for-SplitTerminator%3C'a,+P%3E">FusedIterator</a></li><li><a·href="#impl-Iterator-for-SplitTerminator%3C'a,+P%3E">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">Freeze</a></li><li><a·href="#impl-RefUnwindSafe-for-SplitTerminator%3C'a,+P%3E">RefUnwindSafe</a></li><li><a·href="#impl-Send-for-SplitTerminator%3C'a,+P%3E">Send</a></li><li><a·href="#impl-Sync-for-SplitTerminator%3C'a,+P%3E">Sync</a></li><li><a·href="#impl-Unpin-for-SplitTerminator%3C'a,+P%3E">Unpin</a></li><li><a·href="#impl-UnwindSafe-for-SplitTerminator%3C'a,+P%3E">UnwindSafe</a></li></ul><h3><a·href="#blanket-implementations">Blanket·Implementations</a></h3><ul·class="block·blanket-implementation"><li><a·href="#impl-Any-for-T">Any</a></li><li><a·href="#impl-Borrow%3CT%3E-for-T">Borrow&lt;T&gt;</a></li><li><a·href="#impl-BorrowMut%3CT%3E-for-T">BorrowMut&lt;T&gt;</a></li><li><a·href="#impl-From%3CT%3E-for-T">From&lt;T&gt;</a></li><li><a·href="#impl-Into%3CU%3E-for-T">Into&lt;U&gt;</a></li><li><a·href="#impl-IntoIterator-for-I">IntoIterator</a></li><li><a·href="#impl-ToOwned-for-T">ToOwned</a></li><li><a·href="#impl-TryFrom%3CU%3E-for-T">TryFrom&lt;U&gt;</a></li><li><a·href="#impl-TryInto%3CU%3E-for-T">TryInto&lt;U&gt;</a></li></ul></section><h2><a·href="index.html">In·alloc::str</a></h2></div></nav><div·class="sidebar-resizer"></div>1 <!DOCTYPE·html><html·lang="en"><head><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.write(`<link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/SourceSerif4-Regular-46f98efaafac5295.ttf.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/FiraSans-Regular-018c141bf0843ffd.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/FiraSans-Medium-8f9a781e4970d388.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/SourceCodePro-Regular-562dcc5011b6de7d.ttf.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/SourceCodePro-Semibold-d899c5a5c4aeb14a.ttf.woff2">`)</script><link·rel="stylesheet"·href="../../static.files/normalize-76eba96aa4d2e634.css"><link·rel="stylesheet"·href="../../static.files/rustdoc-35f9e32502181f1e.css"><meta·name="rustdoc-vars"·data-root-path="../../"·data-static-root-path="../../static.files/"·data-current-crate="alloc"·data-themes=""·data-resource-suffix="1.78.0"·data-rustdoc-version="1.78.0"·data-channel="1.78.0"·data-search-js="search-42d8da7a6b9792c2.js"·data-settings-js="settings-4313503d2e1961c2.js"·><script·src="../../static.files/storage-4c98445ec4002617.js"></script><script·defer·src="sidebar-items1.78.0.js"></script><script·defer·src="../../static.files/main-12cf3b4f4f9dc36d.js"></script><noscript><link·rel="stylesheet"·href="../../static.files/noscript-04d5337699b92874.css"></noscript><link·rel="alternate·icon"·type="image/png"·href="../../static.files/favicon-16x16-8b506e7a72182f1c.png"><link·rel="alternate·icon"·type="image/png"·href="../../static.files/favicon-32x32-422f7d1d52889060.png"><link·rel="icon"·type="image/svg+xml"·href="../../static.files/favicon-2c020d218678b618.svg"></head><body·class="rustdoc·struct"><!--[if·lte·IE·11]><div·class="warning">This·old·browser·is·unsupported·and·will·most·likely·display·funky·things.</div><![endif]--><nav·class="mobile-topbar"><button·class="sidebar-menu-toggle"·title="show·sidebar"></button><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-151179464ae7ed46.svg"·alt=""></a></nav><nav·class="sidebar"><div·class="sidebar-crate"><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-151179464ae7ed46.svg"·alt="logo"></a><h2><a·href="../../alloc/index.html">alloc</a><span·class="version">1.78.0</span></h2></div><h2·class="location"><a·href="#">SplitTerminator</a></h2><div·class="sidebar-elems"><section><h3><a·href="#implementations">Methods</a></h3><ul·class="block·method"><li><a·href="#method.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">Clone</a></li><li><a·href="#impl-Debug-for-SplitTerminator%3C'a,+P%3E">Debug</a></li><li><a·href="#impl-DoubleEndedIterator-for-SplitTerminator%3C'a,+P%3E">DoubleEndedIterator</a></li><li><a·href="#impl-FusedIterator-for-SplitTerminator%3C'a,+P%3E">FusedIterator</a></li><li><a·href="#impl-Iterator-for-SplitTerminator%3C'a,+P%3E">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">Freeze</a></li><li><a·href="#impl-RefUnwindSafe-for-SplitTerminator%3C'a,+P%3E">RefUnwindSafe</a></li><li><a·href="#impl-Send-for-SplitTerminator%3C'a,+P%3E">Send</a></li><li><a·href="#impl-Sync-for-SplitTerminator%3C'a,+P%3E">Sync</a></li><li><a·href="#impl-Unpin-for-SplitTerminator%3C'a,+P%3E">Unpin</a></li><li><a·href="#impl-UnwindSafe-for-SplitTerminator%3C'a,+P%3E">UnwindSafe</a></li></ul><h3><a·href="#blanket-implementations">Blanket·Implementations</a></h3><ul·class="block·blanket-implementation"><li><a·href="#impl-Any-for-T">Any</a></li><li><a·href="#impl-Borrow%3CT%3E-for-T">Borrow&lt;T&gt;</a></li><li><a·href="#impl-BorrowMut%3CT%3E-for-T">BorrowMut&lt;T&gt;</a></li><li><a·href="#impl-From%3CT%3E-for-T">From&lt;T&gt;</a></li><li><a·href="#impl-Into%3CU%3E-for-T">Into&lt;U&gt;</a></li><li><a·href="#impl-IntoIterator-for-I">IntoIterator</a></li><li><a·href="#impl-ToOwned-for-T">ToOwned</a></li><li><a·href="#impl-TryFrom%3CU%3E-for-T">TryFrom&lt;U&gt;</a></li><li><a·href="#impl-TryInto%3CU%3E-for-T">TryInto&lt;U&gt;</a></li></ul></section><h2><a·href="index.html">In·alloc::str</a></h2></div></nav><div·class="sidebar-resizer"></div>
2 ····<main><div·class="width-limiter"><nav·class="sub"><form·class="search-form"><span></span><div·id="sidebar-button"·tabindex="-1"><a·href="../../alloc/all.html"·title="show·sidebar"></a></div><input·class="search-input"·name="search"·aria-label="Run·search·in·the·documentation"·autocomplete="off"·spellcheck="false"·placeholder="Click·or·press·‘S’·to·search,·‘?’·for·more·options…"·type="search"><div·id="help-button"·tabindex="-1"><a·href="../../help.html"·title="help">?</a></div><div·id="settings-menu"·tabindex="-1"><a·href="../../settings.html"·title="settings"><img·width="22"·height="22"·alt="Change·settings"·src="../../static.files/wheel-7b819b6101059cd0.svg"></a></div></form></nav><section·id="main-content"·class="content"><div·class="main-heading"><h1>Struct·<a·href="../index.html">alloc</a>::<wbr><a·href="index.html">str</a>::<wbr><a·class="struct"·href="#">SplitTerminator</a><button·id="copy-path"·title="Copy·item·path·to·clipboard"><img·src="../../static.files/clipboard-7571035ce49a181d.svg"·width="19"·height="18"·alt="Copy·item·path"></button></h1><span·class="out-of-band"><span·class="since"·title="Stable·since·Rust·version·1.0.0">1.0.0</span>···<a·class="src"·href="../../src/core/str/iter.rs.html#845-861">source</a>···<button·id="toggle-all-docs"·title="collapse·all·docs">[<span>&#x2212;</span>]</button></span></div><pre·class="rust·item-decl"><code>pub·struct·SplitTerminator&lt;'a,·P&gt;(<span·class="comment">/*·private·fields·*/</span>)2 ····<main><div·class="width-limiter"><nav·class="sub"><form·class="search-form"><span></span><div·id="sidebar-button"·tabindex="-1"><a·href="../../alloc/all.html"·title="show·sidebar"></a></div><input·class="search-input"·name="search"·aria-label="Run·search·in·the·documentation"·autocomplete="off"·spellcheck="false"·placeholder="Click·or·press·‘S’·to·search,·‘?’·for·more·options…"·type="search"><div·id="help-button"·tabindex="-1"><a·href="../../help.html"·title="help">?</a></div><div·id="settings-menu"·tabindex="-1"><a·href="../../settings.html"·title="settings"><img·width="22"·height="22"·alt="Change·settings"·src="../../static.files/wheel-7b819b6101059cd0.svg"></a></div></form></nav><section·id="main-content"·class="content"><div·class="main-heading"><h1>Struct·<a·href="../index.html">alloc</a>::<wbr><a·href="index.html">str</a>::<wbr><a·class="struct"·href="#">SplitTerminator</a><button·id="copy-path"·title="Copy·item·path·to·clipboard"><img·src="../../static.files/clipboard-7571035ce49a181d.svg"·width="19"·height="18"·alt="Copy·item·path"></button></h1><span·class="out-of-band"><span·class="since"·title="Stable·since·Rust·version·1.0.0">1.0.0</span>···<a·class="src"·href="https://doc.rust-lang.org/1.78.0/src/core/str/iter.rs.html#845-861">source</a>···<button·id="toggle-all-docs"·title="collapse·all·docs">[<span>&#x2212;</span>]</button></span></div><pre·class="rust·item-decl"><code>pub·struct·SplitTerminator&lt;'a,·P&gt;(<span·class="comment">/*·private·fields·*/</span>)
3 <span·class="where">where3 <span·class="where">where
4 ····P:·<a·class="trait"·href="pattern/trait.Pattern.html"·title="trait·alloc::str::pattern::Pattern">Pattern</a>&lt;'a&gt;</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>4 ····P:·<a·class="trait"·href="pattern/trait.Pattern.html"·title="trait·alloc::str::pattern::Pattern">Pattern</a>&lt;'a&gt;</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.78.0/core/primitive.str.html#method.split_terminator"·title="method·str::split_terminator"><code>split_terminator</code></a>.</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-SplitTerminator%3C'a,+P%3E"·class="impl"><a·class="src·rightside"·href="../../src/core/str/iter.rs.html#863">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">where5 </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.78.0/src/core/str/iter.rs.html#863">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
6 ····P:·<a·class="trait"·href="pattern/trait.Pattern.html"·title="trait·alloc::str::pattern::Pattern">Pattern</a>&lt;'a&gt;,</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#881">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>6 ····P:·<a·class="trait"·href="pattern/trait.Pattern.html"·title="trait·alloc::str::pattern::Pattern">Pattern</a>&lt;'a&gt;,</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.78.0/src/core/str/iter.rs.html#881">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.78.0/core/option/enum.Option.ht[·...·truncated·by·diffoscope;·len:·119,·SHA:·93ff891486a9feb9f66ae41889129f6d0e1c0abe8a2d0e28ca30689ceede13fe·...·]/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>
7 <p>If·the·iterator·is·empty,·returns·<code>None</code>.</p>7 <p>If·the·iterator·is·empty,·returns·<code>None</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="attr">#![feature(str_split_remainder)]9 <div·class="example-wrap"><pre·class="rust·rust-example-rendered"><code><span·class="attr">#![feature(str_split_remainder)]
10 </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><span·class="kw">let·</span><span·class="kw-2">mut·</span>split·=·<span·class="string">"A..B.."</span>.split_terminator(<span·class="string">'.'</span>);
11 <span·class="macro">assert_eq!</span>(split.remainder(),·<span·class="prelude-val">Some</span>(<span·class="string">"A..B.."</span>));11 <span·class="macro">assert_eq!</span>(split.remainder(),·<span·class="prelude-val">Some</span>(<span·class="string">"A..B.."</span>));
12 split.next();12 split.next();
13 <span·class="macro">assert_eq!</span>(split.remainder(),·<span·class="prelude-val">Some</span>(<span·class="string">".B.."</span>));13 <span·class="macro">assert_eq!</span>(split.remainder(),·<span·class="prelude-val">Some</span>(<span·class="string">".B.."</span>));
14 split.by_ref().for_each(drop);14 split.by_ref().for_each(drop);
15 <span·class="macro">assert_eq!</span>(split.remainder(),·<span·class="prelude-val">None</span>);</code></pre><a·class="test-arrow"·target="_blank"·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">Run</a></div>15 <span·class="macro">assert_eq!</span>(split.remainder(),·<span·class="prelude-val">None</span>);</code></pre><a·class="test-arrow"·target="_blank"·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">Run</a></div>
16 </div></details></div></details></div><h2·id="trait-implementations"·class="section-header">Trait·Implementations<a·href="#trait-implementations"·class="anchor">§</a></h2><div·id="trait-implementations-list"><details·class="toggle·implementors-toggle"·open><summary><section·id="impl-Clone-for-SplitTerminator%3C'a,+P%3E"·class="impl"><a·class="src·rightside"·href="../../src/core/str/iter.rs.html#845-861">source</a><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">where16 </div></details></div></details></div><h2·id="trait-implementations"·class="section-header">Trait·Implementations<a·href="#trait-implementations"·class="anchor">§</a></h2><div·id="trait-implementations-list"><details·class="toggle·implementors-toggle"·open><summary><section·id="impl-Clone-for-SplitTerminator%3C'a,+P%3E"·class="impl"><a·class="src·rightside"·href="https://doc.rust-lang.org/1.78.0/src/core/str/iter.rs.html#845-861">source</a><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.78.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
17 ····P:·<a·class="trait"·href="pattern/trait.Pattern.html"·title="trait·alloc::str::pattern::Pattern">Pattern</a>&lt;'a&gt;,17 ····P:·<a·class="trait"·href="pattern/trait.Pattern.html"·title="trait·alloc::str::pattern::Pattern">Pattern</a>&lt;'a&gt;,
18 ····&lt;P·as·<a·class="trait"·href="pattern/trait.Pattern.html"·title="trait·alloc::str::pattern::Pattern">Pattern</a>&lt;'a&gt;&gt;::<a·class="associatedtype"·href="pattern/trait.Pattern.html#associatedtype.Searcher"·title="type·alloc::str::pattern::Pattern::Searcher">Searcher</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"><details·class="toggle·method-toggle"·open><summary><section·id="method.clone"·class="method·trait-impl"><a·class="src·righ[·...·truncated·by·diffoscope;·len:·1427,·SHA:·4dc800b8073d60ec78c0a8213f33b729b7f804aabafc880cb40fd3a27a9b8adc·...·]/src/core/str/iter.rs.html#845-861">source</a><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">where18 ····&lt;P·as·<a·class="trait"·href="pattern/trait.Pattern.html"·title="trait·alloc::str::pattern::Pattern">Pattern</a>&lt;'a&gt;&gt;::<a·class="associatedtype"·href="pattern/trait.Pattern.html#associatedtype.Searcher"·title="type·alloc::str::pattern::Pattern::Searcher">Searcher</a>:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.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:·1670,·SHA:·bae15240f547dea4a62ebb99a7dc346b970f2179dc0af1f983f463bac14fcbc0·...·]/src/core/str/iter.rs.html#845-861">source</a><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
19 ····P:·<a·class="trait"·href="pattern/trait.Pattern.html"·title="trait·alloc::str::pattern::Pattern">Pattern</a>&lt;'a&gt;,19 ····P:·<a·class="trait"·href="pattern/trait.Pattern.html"·title="trait·alloc::str::pattern::Pattern">Pattern</a>&lt;'a&gt;,
20 ····&lt;P·as·<a·class="trait"·href="pattern/trait.Pattern.html"·title="trait·alloc::str::pattern::Pattern">Pattern</a>&lt;'a&gt;&gt;::<a·class="associatedtype"·href="pattern/trait.Pattern.html#associatedtype.Searcher"·title="type·alloc::str::pattern::Pattern::Searcher">Searcher</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/str/iter.rs.html#845-861">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:·908,·SHA:·29cf8b39710bf0cc023bddce12c4e300342876e3c896f9c96e4ac3d56205d87a·...·]/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">where20 ····&lt;P·as·<a·class="trait"·href="pattern/trait.Pattern.html"·title="trait·alloc::str::pattern::Pattern">Pattern</a>&lt;'a&gt;&gt;::<a·class="associatedtype"·href="pattern/trait.Pattern.html#associatedtype.Searcher"·title="type·alloc::str::pattern::Pattern::Searcher">Searcher</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.78.0/src/core/str/iter.rs.html#845-861">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:·1043,·SHA:·20764d8b553ccd7d830422047a93bf6b135051e8b9ae3a1667c0556eb5a4c69d·...·]/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
21 ····P:·<a·class="trait"·href="pattern/trait.Pattern.html"·title="trait·alloc::str::pattern::Pattern">Pattern</a>&lt;'a&gt;,21 ····P:·<a·class="trait"·href="pattern/trait.Pattern.html"·title="trait·alloc::str::pattern::Pattern">Pattern</a>&lt;'a&gt;,
22 ····&lt;P·as·<a·class="trait"·href="pattern/trait.Pattern.html"·title="trait·alloc::str::pattern::Pattern">Pattern</a>&lt;'a&gt;&gt;::<a·class="associatedtype"·href="pattern/trait.Pattern.html#associatedtype.Searcher"·title="type·alloc::str::pattern::Pattern::Searcher">Searcher</a>:·<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#845-861">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:·f450b5ec6dde2d20b913426da21476cc812de295a72a8928004347c5e0863d1e·...·]/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 ····&lt;P·as·<a·class="trait"·href="pattern/trait.Pattern.html"·title="trait·alloc::str::pattern::Pattern">Pattern</a>&lt;'a&gt;&gt;::<a·class="associatedtype"·href="pattern/trait.Pattern.html#associatedtype.Searcher"·title="type·alloc::str::pattern::Pattern::Searcher">Searcher</a>:·<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.78.0/src/core/str/iter.rs.html#845-861">source</a><a·href="#method.next_back"·class="anchor">§</a><h4·class="code-header">fn·<a·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/double_ended/trait.DoubleEndedIterator.html#[·...·truncated·by·diffoscope;·len:·3879,·SHA:·ef0eb7471a86048ca9de83512c9d7ea22311d3dce456ac9cee2bdbed9030cd3b·...·]/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.78.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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(B,·Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.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.78.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.7[·...·truncated·by·diffoscope;·len:·3,·SHA:·7b1bd53949b752d143d871408483b5382371b5bc48d195d0c040ec93cfa2748b·...·]/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:·74b709f2c818a4eda5d85ea863eb2d8af72c87564dbab2746e67feafb0cbb9a3·...·]/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.78.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:·d66ed7e195a53e9945339ef1976aed455dcf80228d8e5b7b0c69a64c3983fea1·...·]/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.78.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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(B,·Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/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:·f8bdf1e28866c7668477ab391452c7cfa7fd52cc69b633e782a157931421b39b·...·]/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.78.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:·c264047794019a6dcf05728ba6a6ee1f8f07c7209958b3366ba94546b527ecdc·...·]/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.78.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:·722,·SHA:·5e9405b777f5e6010e7f311b099b4f2381367ad573ab5cd627c325833c4e235a·...·]/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">where31 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·884,·SHA:·b1b8e100d1f0a20a2a3281f38648d32f0ec274bd41139522bee5a100c7c8b06f·...·]/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
32 ····P:·<a·class="trait"·href="pattern/trait.Pattern.html"·title="trait·alloc::str::pattern::Pattern">Pattern</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·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·class="primitive"·href="../../core/primitive.str.html">str</a></h4></section></summary><div·class='docblock'>The·type·of·the·elements·bein[·...·truncated·by·diffoscope;·len:·1220,·SHA:·419ad4ca10c18e1309efc804f2af411c06ed8405eff508da664edca05f4b135e·...·]/core/primitive.usize.html">usize</a>&gt;(32 ····P:·<a·class="trait"·href="pattern/trait.Pattern.html"·title="trait·alloc::str::pattern::Pattern">Pattern</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·href="#associatedtype.Item"·class="anchor">§</a><h4·class="code-header">type·<a·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·class="associatedtype">Item</a>·=·&amp;'a·<a·class="primitive"·href="https://doc.rust-lang.org/1.78.0/core/primitive.str.html">str</a></h4></section></summa[·...·truncated·by·diffoscope;·len:·1490,·SHA:·8a120f61614286e2c395182b26908b9ad35b854a6207dd660d398f4290bb1b33·...·]/core/primitive.usize.html">usize</a>&gt;(
33 ····&amp;mut·self33 ····&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.78.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.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title=[·...·truncated·by·diffoscope;·len:·381,·SHA:·88c48923c9b7ea5cc47c1087c60e09656e81d4671c58071ba2bef826335388bc·...·]/core/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:·1593,·SHA:·59204fc1883bd9e8d10e390b843913f01f97378e05bff840116b149bc5b4dc00·...·]/core/primitive.usize.html">usize</a><div·class="where">where35 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experiment[·...·truncated·by·diffoscope;·len:·1890,·SHA:·62ca204af9e3eb9911a3bbbf9669088b55c64885573e7f4b900a3761d117ab1a·...·]/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:·579,·SHA:·97df9cdc3f1cc1461e704ebdf0c047ac7c0165f9aec8e9afdc069209b7a15a36·...·]/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.78.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:·741,·SHA:·f3078cc3fddd62af2c1a8814c5854bb49f40b79e4fbc9b3addf5862a72370f82·...·]/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:·2868,·SHA:·9ec21b8470b914406f4216b9bac831bf85cccf58579bd476408d6168be7cd43e·...·]/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.78.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.78.0/cor[·...·truncated·by·diffoscope;·len:·3408,·SHA:·b62c6ed65b31a8b555c142d9d15f3ce30e5c76ad2630a0e5a9b13cfd478c6eee·...·]/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.78.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"><a·class="src·rightside"·href="../../src/core/iter/tra[·...·truncated·by·diffoscope;·len:·584,·SHA:·fd3e570373eb5121d35d7e22cdd5dd5fbf7183ee80147135a591fd1285174e82·...·]/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.78.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"><a·class="src·rightside"·hr[·...·truncated·by·diffoscope;·len:·746,·SHA:·f1f70d650c102c8658e13890c7dbfc87418f07e7b522246fb579ec434ef64f7c·...·]/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.78.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:·1017,·SHA:·c0f5f8cfd297e1678ac0ee2fd847fb6f0577665ac326e8e2e9d6414a710c8f98·...·]/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.78.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.78.0/core/iter/traits/it[·...·truncated·by·diffoscope;·len:·1233,·SHA:·f677df2d893dfe0dc1a9d31ebb0ba71a346d265781813e0d664d3f18369b6163·...·]/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.78.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:·c1b5e692e89c9c809075ee8ee72fb15a9ec46c075b08450e1f707d672a224750·...·]/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.78.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:·98627729f77dcf1c9d258f343354ba600b7134c6b3929080f231e8de7155b70b·...·]/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.78.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.78.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.78.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"><a·class="src·rightside"·href="../../src/core/i[·...·truncated·by·diffoscope;·len:·267,·SHA:·1764c9d6d2e39e1367ae2111c28ab846e66ecf12617fbff35e0132e82e5c8b13·...·]/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.78.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"><a·class="src·rights[·...·truncated·by·diffoscope;·len:·375,·SHA:·58419346f92e1709dadb70cc3cf356e3cd27972451bdc6b4fc4267e6f7e8bdae·...·]/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.78.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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::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:·fb4c9589a16c7b6d697c109d1193d2f1e763e5dd967101c2fd92b32416972229·...·]/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.78.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:·98f6effefa44d759c249143d83623f0055d937382bfc398b7e1f5e92cd413657·...·]/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.78.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:·658,·SHA:·e4449b6c00d036dd30444817045eddaf2697443d65789bb5c0b585ed1bc77702·...·]/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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·820,·SHA:·a664bbcbc0891663662e4eb7b4394d0fcd72e568136fc4d34097fea242cc32e7·...·]/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.78.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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·140,·SHA:·752f473b57e7444ebfddf5ea7fd40a332e83ec55524a6c31b5ee0f82a5dea819·...·]/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"><a·class="src·rightside"·href="../../src/core/iter[·...·truncated·by·diffoscope;·len:·285,·SHA:·738ce0440ff568829f40d141e38e2c0da2fd05d2b73d1a574be0ed9baa32e827·...·]/core/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.78.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"><a·class="src·rightside[·...·truncated·by·diffoscope;·len:·393,·SHA:·2e2aa7c9c9c087e7b346da376749064ab8c1894795a2f0a0f646cdc8c7bea997·...·]/core/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.78.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:·767,·SHA:·da0fc5bc95a3398627e0c5836423b719ccea45d351e21ddaa96f793f67f9c6de·...·]/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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·956,·SHA:·faba0521e870dbbd26d466fadba3522e7d29013a9b86376fffafffac11a57e0e·...·]/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.78.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"><a·class="src·rightside"·href="../../src/core/ite[·...·truncated·by·diffoscope;·len:·264,·SHA:·e3fa7ab43c6353bc2216a22d7010c41a8ab50d273a128d15d0eff050c058993a·...·]/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.78.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"><a·class="src·rightsid[·...·truncated·by·diffoscope;·len:·372,·SHA:·03eea0861575eb80d3f7a87a3ba747adb1a33fe7e9ce72aa2172e7a287c63a94·...·]/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.78.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.78.0/core/iter/adapte[·...·truncated·by·diffoscope;·len:·175,·SHA:·16fe7225bf05b478e2828b347c3d23ded9a22f89d8887a2c65d9f7b3faf1b0e7·...·]/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"><a·class="src·rightside"·href="../../src/core/it[·...·truncated·by·diffoscope;·len:·294,·SHA:·c0aee2077af6a4f81ed47e37c84a75b5f9b941875509fbe0b3d352866f825f45·...·]/core/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.78.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"><a·class="src·rightsi[·...·truncated·by·diffoscope;·len:·402,·SHA:·7689a974f800fd069d1b4453ef62d6d6ad1b654462d624d36e3672051d502030·...·]/core/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.78.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:·922,·SHA:·5220bbb4db3c3cd3d7ca7c27520f44f04fe367ee2f0f407fb1d50c0a327a2f99·...·]/core/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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·1138,·SHA:·f6ae06b7de8e94df014341c5cf589a5e4a1298367b2ef7a968ec499c5170a70e·...·]/core/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.78.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:·39eeddf219b211245393e51a591d5064c740fa9be49d88883d8a6474679741ad·...·]/core/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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·1058,·SHA:·b390dbdda8d7e93604b5ecd906a93efd03fe19bdaf41cf12893fd361bf974307·...·]/core/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.78.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:·851,·SHA:·ad2e090d21a034b7c3836ed38a686f4c483f9a929132fef846d48271f749a79c·...·]/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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·1067,·SHA:·415d32e1211c35d3bb405de1d6e51c2102c14cadc3333894f063148dbe0b1f69·...·]/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:·525,·SHA:·6471f48fecadc56edf21fc04794b884b96ce06d339c715e410f5a906e028bc28·...·]/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.78.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:·687,·SHA:·7f5256104c35c5948a2cb42b55f3048c9d2887e48a4a8226537a284f959c562a·...·]/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.78.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"><a·class="src·rightside"·href="../../src/core/iter/traits/[·...·truncated·by·diffoscope;·len:·284,·SHA:·aee83f38f8c40848e159b12a8faa43b9dadf589fe974632a1f15ce2a15834071·...·]/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.78.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"><a·class="src·rightside"·href="[·...·truncated·by·diffoscope;·len:·392,·SHA:·4e7da68f7be2622ef173653eca78d58e1f202b544a2e6abd14d8335c298c93a7·...·]/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.78.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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(<a·class="primitive"·href="https://doc.rust-lang.org/1.78.0/core/primitive.reference.html">&amp;mut·St</a>,·Self::<a·class="associatedty[·...·truncated·by·diffoscope;·len:·449,·SHA:·f12c268a8a8111b9e7126ad78bf5523a63733caa63d187c4fe792309ea41acdf·...·]/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:·459,·SHA:·b825570d9672670eacd8828b3abec12cd1c35433286857de28f5ea8d5e300e03·...·]/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.78.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.78.0/core/iter/trai[·...·truncated·by·diffoscope;·len:·594,·SHA:·02960742fa7892efaa08f289ce85865fc5efb6a4cd138c22e3566ca6fc727d78·...·]/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.78.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.78.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:·9b6a337a3ad68c2a987b52450c153f87a04a8ed9e83603d26077fe6e70d61edf·...·]/core/iter/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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·976,·SHA:·2a9182f6fe88e0b8a9b1ae1f46cace940cc0b8736033c354c0f0ccbf1c196e7a·...·]/core/iter/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.78.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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;[Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtyp[·...·truncated·by·diffoscope;·len:·135,·SHA:·0b06a6094d42ccbc8bce5b01c4383961fe7f1967f05e4c9f1ff33e71e425fb26·...·]/core/primitive.array.html">N</a>])·-&gt;·R,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iter_map_windows</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/87155">#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.78.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"><a·class="src·rightside"·href="../../src/core/iter/[·...·truncated·by·diffoscope;·len:·250,·SHA:·e355ddd0f04b2470ee915aec3ad97857be56b95e6a1f3d733d6c477453f4cf0d·...·]/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.78.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"><a·class="src·rightside"[·...·truncated·by·diffoscope;·len:·358,·SHA:·d91b2ab18e0ce069e262cf523c6ef961f56eecad042ea1e9bcefe33cff28fc8f·...·]/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:·583,·SHA:·b7d7d6125e8980756a2636a6b6e01600057c98a027dcf7d267b1f61538a7b6b0·...·]/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.78.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.78.0/core/op[·...·truncated·by·diffoscope;·len:·745,·SHA:·424783f22102f4446d3ad4d362b1aafdb7531fa777213f97ee138aa878f67bd1·...·]/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.78.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:·676,·SHA:·ae75f35cafbae1e0e695226baca09b0bec6e4a0ed5656a83c3357b29fb00442d·...·]/core/primitive.reference.html">&amp;mut·Self</a><div·class="where">where83 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·838,·SHA:·9b4fd8df7f41e9a76fd4cfca0a233b74b9bd27c3fe8228248abc3f940425a3e3·...·]/core/primitive.reference.html">&amp;mut·Self</a><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:·319,·SHA:·bbb653fcb1f5ad46e04905bf78a76b9dd63ea5d49a2d8cd5b7b36efbb0f7e105·...·]/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.78.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.78.0/core/it[·...·truncated·by·diffoscope;·len:·427,·SHA:·ecfaaac5d1d10c1bc4fcee9a050af0a268bee0b528c2d8ea4e9774440bd8a279·...·]/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.78.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.78.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:·e5d524e874326d0b9b733f5ee809c6595cde869afab0cc3d4ba8454093f420da·...·]/core/primitive.reference.html">&amp;mut·E</a><div·class="where">where86 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.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.78.0/core/iter/tr[·...·truncated·by·diffoscope;·len:·728,·SHA:·01937c2dc314c259495665570ae249c94b4a5b0719718f5f1188e6fc64ecf487·...·]/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.78.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.78.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:·744,·SHA:·a7446142ab67c3f20d866315fbe6cb9c57cd4af012812d6dd19d5061aee6e97b·...·]/core/primitive.tuple.html">(B,·B)</a><div·class="where">where88 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experiment[·...·truncated·by·diffoscope;·len:·879,·SHA:·e773b2222c92d001e295030cb47a780ab0c1132d7fc8e9e3a98de4f532e6c520·...·]/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.78.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.78.0/core/default/trait.Default.html"·title="trait·core::default::Default">Default</a>·+·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/collect/trait.Extend.html"·title="trait·core::iter::traits::collec[·...·truncated·by·diffoscope;·len:·95,·SHA:·8b3be1d0042cae0550f865faf5849221240bdf04eb1b2107605b72d48c3ad29c·...·]/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:·f8b50287f3e106633ed79a84072d3ddd9d98672efd685d2433c61b5549ce051e·...·]/core/primitive.bool.html">bool</a><div·class="where">where91 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·972,·SHA:·6de765542031617a9c28ac98fe6df619e58e62d9c65ec5b1c185a7152b8944e5·...·]/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.78.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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·135,·SHA:·51ff5f5c7ebd8440623ea71b125c5a5837e809e308fe1a13fbe19cddb941dbd9·...·]/core/primitive.bool.html">bool</a>,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iter_is_partitioned</code>&nbsp;<a·href="https://github.com/rust-lang/rust/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:·6f406a351b93047f56fa70265a6bf28ec6874f75cd6cc5a39d51c7af462f2992·...·]/core/iter/traits/iterator/trait.Iterator.html#method.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.78.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:·2c74873f4e5ba70004a1c7edd1cc3f9e2d91271295dd1591e2d26848df4c02ba·...·]/core/iter/traits/iterator/trait.Iterator.html#method.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.78.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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(B,·Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.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.78.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:·eecdce021399d206eb3ef5af12ee7663b4eb0dca55b0f411c7fa66f605b6b2e2·...·]/core/iter/traits/iterator/trait.Iterator.html#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.78.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:·52912e82c4b0a760d06f77eb4ee3a59ba70dd76cb532954900c73ae94c652674·...·]/core/iter/traits/iterator/trait.Iterator.html#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.78.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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.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.78.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.78.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"><a·class="src·rightside"·href="../../src/core/iter[·...·truncated·by·diffoscope;·len:·130,·SHA:·75c0150024fe6cdc702d7337508ab57600248490dd062768204ddb064c9a1b8b·...·]/core/iter/traits/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.78.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"><a·class="src·rightside[·...·truncated·by·diffoscope;·len:·211,·SHA:·924e062acd8127e8d6158162219ee5d57a941854e14063d21d7768edae549431·...·]/core/iter/traits/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.78.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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(B,·Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::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:·dbe3a08fe63abd47570741e71208c31aaf51152feac5917db07665a1f56bb3e3·...·]/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.78.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:·b60215068a6d9721be05f81098c51167d7138c4042f140cad42f77c4df43f597·...·]/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.78.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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·352,·SHA:·e7c3c296abe2c0a183967153e4ae7fd50bafa2ae7088e3e78b3b48fee253adc6·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::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:·a9dce8bb557b5a11426bf2ffcbd5eea7c6c870833e3ee5bb072dcaaa11687b0c·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_reduce"·class="fn">try_reduce</a>&lt;F,·R&gt;(108 operation.·<a·href="https://doc.rust-lang.org/1.78.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:·7a18fdd041b1a001b4a8feb289ee127fd9240232239269eb35dc3b8f74783ec9·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_reduce"·class="fn">try_reduce</a>&lt;F,·R&gt;(
109 ····&amp;mut·self,109 ····&amp;mut·self,
110 ····f:·F110 ····f:·F
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.78.0/core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&gt;::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/ops/try_trait/trait.Try.html#associatedtype.Residual"·title="type[·...·truncated·by·diffoscope;·len:·754,·SHA:·6fb4dfdb6b4da68921c1e7f8b75d99cf293d58318d684a840254ce9576957bea·...·]/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.78.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:·59,·SHA:·3d53eece7c48858eda31192ab2620ae144896b35400c945bbf3eb5dc06bf8d12·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·R,113 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·140,·SHA:·c27972e6fa3464c9476eaa185e8657edb6bb294f148403f3d079285294a9f909·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·R,
114 ····R:·<a·class="trait"·href="../../core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&lt;Output·=·Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;,114 ····R:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.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.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;,
115 ····&lt;R·as·<a·class="trait"·href="../../core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&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·the115 ····&lt;R·as·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&gt;::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/ops/try_trait/trait.Try.html#associatedtype.Residual"·title="type[·...·truncated·by·diffoscope;·len:·412,·SHA:·22b8cbb007e5cce82b9d13a65bfa56aa8d83c32541fac25f4d9b3857b0540908·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;&gt;,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iterator_try_reduce</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/87053">#87053</a>)</span></div></span><div·class='docblock'>Reduces·the·elements·to·a·single·one·by·repeatedly·applying·a·reducing·operation.·If·the
116 closure·returns·a·failure,·the·failure·is·propagated·back·to·the·caller·immediately.·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.try_reduce">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.all"·class="method·trait-impl"><a·class="src·rightside"·href="../../src/core/iter/tr[·...·truncated·by·diffoscope;·len:·272,·SHA:·97959736d897a01242f49f2e45854ab874bf0c9bbe30acad9a49eb73169e457c·...·]/core/primitive.bool.html">bool</a><div·class="where">where116 closure·returns·a·failure,·the·failure·is·propagated·back·to·the·caller·immediately.·<a·href="https://doc.rust-lang.org/1.78.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"><a·class="src·rightside"·h[·...·truncated·by·diffoscope;·len:·380,·SHA:·29c4004d4d8b0c8c9dfe9023f8b2c5ef801d9dc4688893035d182c1ae774c453·...·]/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.78.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:·733,·SHA:·9bb9f0199d90f78ad65c59dbe67a1c751cd5a681130a03bef3b1e8ed907a3bba·...·]/core/primitive.bool.html">bool</a><div·class="where">where118 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·922,·SHA:·f4fd532c280e18f28bd6dda6c2a129e2e92114b67f27235bb5fd39f725be9c43·...·]/core/primitive.bool.html">bool</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.78.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>(Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::[·...·truncated·by·diffoscope;·len:·860,·SHA:·6a94ae33b82eb12a91660811a8ab9d243468d885c07ac766a2507d25a4e7ee62·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;<div·class="where">where120 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·1076,·SHA:·2dd9de8adaee4a5ee96501d9a58bfac2fea00ba8d78b834bfca29949b3afe18b·...·]/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.78.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>(&amp;Self::<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:·21d7086b3ce0092e3f7a6a41174339bbd8724e7d186158db4db3385a73d94e8e·...·]/core/option/enum.Option.html"·title="enum·core::option::Option">Option</a>&lt;B&gt;<div·class="where">where122 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·1051,·SHA:·ecc0b8fccd861464760f9ae047ff6ab98c91a1db010cb5fa59a8c2ab883db7c4·...·]/core/option/enum.Option.html"·title="enum·core::option::Option">Option</a>&lt;B&gt;<div·class="where">where
123 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,123 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.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>(Self::<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·returns124 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·130,·SHA:·130a13019dc175d02304b4f550157e2f13ac15c2f25a979c74161d10b146ab89·...·]/core/option/enum.Option.html"·title="enum·core::option::Option">Option</a>&lt;B&gt;,</div></h4></section></summary><div·class='docblock'>Applies·function·to·the·elements·of·iterator·and·returns
125 the·first·non-none·result.·<a·href="../../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:·ac4da3337aac1ec10038e246be9cb719eeb5af1acc709f5a6a25b91900c56f53·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_find"·class="fn">try_find</a>&lt;F,·R&gt;(125 the·first·non-none·result.·<a·href="https://doc.rust-lang.org/1.78.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:·8ced1b10e78750774c5c8ed995ed83dcd13983aa75d329acf8069da106ab9f4a·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_find"·class="fn">try_find</a>&lt;F,·R&gt;(
126 ····&amp;mut·self,126 ····&amp;mut·self,
127 ····f:·F127 ····f:·F
Max diff block lines reached; 89615/305923 bytes (29.29%) of diff not shown.
302 KB
./usr/share/doc/rust-web-doc/html/alloc/str/struct.SplitWhitespace.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·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.write(`<link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/SourceSerif4-Regular-46f98efaafac5295.ttf.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/FiraSans-Regular-018c141bf0843ffd.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/FiraSans-Medium-8f9a781e4970d388.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/SourceCodePro-Regular-562dcc5011b6de7d.ttf.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/SourceCodePro-Semibold-d899c5a5c4aeb14a.ttf.woff2">`)</script><link·rel="stylesheet"·href="../../static.files/normalize-76eba96aa4d2e634.css"><link·rel="stylesheet"·href="../../static.files/rustdoc-35f9e32502181f1e.css"><meta·name="rustdoc-vars"·data-root-path="../../"·data-static-root-path="../../static.files/"·data-current-crate="alloc"·data-themes=""·data-resource-suffix="1.78.0"·data-rustdoc-version="1.78.0"·data-channel="1.78.0"·data-search-js="search-42d8da7a6b9792c2.js"·data-settings-js="settings-4313503d2e1961c2.js"·><script·src="../../static.files/storage-4c98445ec4002617.js"></script><script·defer·src="sidebar-items1.78.0.js"></script><script·defer·src="../../static.files/main-12cf3b4f4f9dc36d.js"></script><noscript><link·rel="stylesheet"·href="../../static.files/noscript-04d5337699b92874.css"></noscript><link·rel="alternate·icon"·type="image/png"·href="../../static.files/favicon-16x16-8b506e7a72182f1c.png"><link·rel="alternate·icon"·type="image/png"·href="../../static.files/favicon-32x32-422f7d1d52889060.png"><link·rel="icon"·type="image/svg+xml"·href="../../static.files/favicon-2c020d218678b618.svg"></head><body·class="rustdoc·struct"><!--[if·lte·IE·11]><div·class="warning">This·old·browser·is·unsupported·and·will·most·likely·display·funky·things.</div><![endif]--><nav·class="mobile-topbar"><button·class="sidebar-menu-toggle"·title="show·sidebar"></button><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-151179464ae7ed46.svg"·alt=""></a></nav><nav·class="sidebar"><div·class="sidebar-crate"><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-151179464ae7ed46.svg"·alt="logo"></a><h2><a·href="../../alloc/index.html">alloc</a><span·class="version">1.78.0</span></h2></div><h2·class="location"><a·href="#">SplitWhitespace</a></h2><div·class="sidebar-elems"><section><h3><a·href="#implementations">Methods</a></h3><ul·class="block·method"><li><a·href="#method.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">Clone</a></li><li><a·href="#impl-Debug-for-SplitWhitespace%3C'a%3E">Debug</a></li><li><a·href="#impl-DoubleEndedIterator-for-SplitWhitespace%3C'a%3E">DoubleEndedIterator</a></li><li><a·href="#impl-FusedIterator-for-SplitWhitespace%3C'_%3E">FusedIterator</a></li><li><a·href="#impl-Iterator-for-SplitWhitespace%3C'a%3E">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">Freeze</a></li><li><a·href="#impl-RefUnwindSafe-for-SplitWhitespace%3C'a%3E">RefUnwindSafe</a></li><li><a·href="#impl-Send-for-SplitWhitespace%3C'a%3E">Send</a></li><li><a·href="#impl-Sync-for-SplitWhitespace%3C'a%3E">Sync</a></li><li><a·href="#impl-Unpin-for-SplitWhitespace%3C'a%3E">Unpin</a></li><li><a·href="#impl-UnwindSafe-for-SplitWhitespace%3C'a%3E">UnwindSafe</a></li></ul><h3><a·href="#blanket-implementations">Blanket·Implementations</a></h3><ul·class="block·blanket-implementation"><li><a·href="#impl-Any-for-T">Any</a></li><li><a·href="#impl-Borrow%3CT%3E-for-T">Borrow&lt;T&gt;</a></li><li><a·href="#impl-BorrowMut%3CT%3E-for-T">BorrowMut&lt;T&gt;</a></li><li><a·href="#impl-From%3CT%3E-for-T">From&lt;T&gt;</a></li><li><a·href="#impl-Into%3CU%3E-for-T">Into&lt;U&gt;</a></li><li><a·href="#impl-IntoIterator-for-I">IntoIterator</a></li><li><a·href="#impl-ToOwned-for-T">ToOwned</a></li><li><a·href="#impl-TryFrom%3CU%3E-for-T">TryFrom&lt;U&gt;</a></li><li><a·href="#impl-TryInto%3CU%3E-for-T">TryInto&lt;U&gt;</a></li></ul></section><h2><a·href="index.html">In·alloc::str</a></h2></div></nav><div·class="sidebar-resizer"></div>1 <!DOCTYPE·html><html·lang="en"><head><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.write(`<link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/SourceSerif4-Regular-46f98efaafac5295.ttf.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/FiraSans-Regular-018c141bf0843ffd.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/FiraSans-Medium-8f9a781e4970d388.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/SourceCodePro-Regular-562dcc5011b6de7d.ttf.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/SourceCodePro-Semibold-d899c5a5c4aeb14a.ttf.woff2">`)</script><link·rel="stylesheet"·href="../../static.files/normalize-76eba96aa4d2e634.css"><link·rel="stylesheet"·href="../../static.files/rustdoc-35f9e32502181f1e.css"><meta·name="rustdoc-vars"·data-root-path="../../"·data-static-root-path="../../static.files/"·data-current-crate="alloc"·data-themes=""·data-resource-suffix="1.78.0"·data-rustdoc-version="1.78.0"·data-channel="1.78.0"·data-search-js="search-42d8da7a6b9792c2.js"·data-settings-js="settings-4313503d2e1961c2.js"·><script·src="../../static.files/storage-4c98445ec4002617.js"></script><script·defer·src="sidebar-items1.78.0.js"></script><script·defer·src="../../static.files/main-12cf3b4f4f9dc36d.js"></script><noscript><link·rel="stylesheet"·href="../../static.files/noscript-04d5337699b92874.css"></noscript><link·rel="alternate·icon"·type="image/png"·href="../../static.files/favicon-16x16-8b506e7a72182f1c.png"><link·rel="alternate·icon"·type="image/png"·href="../../static.files/favicon-32x32-422f7d1d52889060.png"><link·rel="icon"·type="image/svg+xml"·href="../../static.files/favicon-2c020d218678b618.svg"></head><body·class="rustdoc·struct"><!--[if·lte·IE·11]><div·class="warning">This·old·browser·is·unsupported·and·will·most·likely·display·funky·things.</div><![endif]--><nav·class="mobile-topbar"><button·class="sidebar-menu-toggle"·title="show·sidebar"></button><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-151179464ae7ed46.svg"·alt=""></a></nav><nav·class="sidebar"><div·class="sidebar-crate"><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-151179464ae7ed46.svg"·alt="logo"></a><h2><a·href="../../alloc/index.html">alloc</a><span·class="version">1.78.0</span></h2></div><h2·class="location"><a·href="#">SplitWhitespace</a></h2><div·class="sidebar-elems"><section><h3><a·href="#implementations">Methods</a></h3><ul·class="block·method"><li><a·href="#method.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">Clone</a></li><li><a·href="#impl-Debug-for-SplitWhitespace%3C'a%3E">Debug</a></li><li><a·href="#impl-DoubleEndedIterator-for-SplitWhitespace%3C'a%3E">DoubleEndedIterator</a></li><li><a·href="#impl-FusedIterator-for-SplitWhitespace%3C'_%3E">FusedIterator</a></li><li><a·href="#impl-Iterator-for-SplitWhitespace%3C'a%3E">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">Freeze</a></li><li><a·href="#impl-RefUnwindSafe-for-SplitWhitespace%3C'a%3E">RefUnwindSafe</a></li><li><a·href="#impl-Send-for-SplitWhitespace%3C'a%3E">Send</a></li><li><a·href="#impl-Sync-for-SplitWhitespace%3C'a%3E">Sync</a></li><li><a·href="#impl-Unpin-for-SplitWhitespace%3C'a%3E">Unpin</a></li><li><a·href="#impl-UnwindSafe-for-SplitWhitespace%3C'a%3E">UnwindSafe</a></li></ul><h3><a·href="#blanket-implementations">Blanket·Implementations</a></h3><ul·class="block·blanket-implementation"><li><a·href="#impl-Any-for-T">Any</a></li><li><a·href="#impl-Borrow%3CT%3E-for-T">Borrow&lt;T&gt;</a></li><li><a·href="#impl-BorrowMut%3CT%3E-for-T">BorrowMut&lt;T&gt;</a></li><li><a·href="#impl-From%3CT%3E-for-T">From&lt;T&gt;</a></li><li><a·href="#impl-Into%3CU%3E-for-T">Into&lt;U&gt;</a></li><li><a·href="#impl-IntoIterator-for-I">IntoIterator</a></li><li><a·href="#impl-ToOwned-for-T">ToOwned</a></li><li><a·href="#impl-TryFrom%3CU%3E-for-T">TryFrom&lt;U&gt;</a></li><li><a·href="#impl-TryInto%3CU%3E-for-T">TryInto&lt;U&gt;</a></li></ul></section><h2><a·href="index.html">In·alloc::str</a></h2></div></nav><div·class="sidebar-resizer"></div>
2 ····<main><div·class="width-limiter"><nav·class="sub"><form·class="search-form"><span></span><div·id="sidebar-button"·tabindex="-1"><a·href="../../alloc/all.html"·title="show·sidebar"></a></div><input·class="search-input"·name="search"·aria-label="Run·search·in·the·documentation"·autocomplete="off"·spellcheck="false"·placeholder="Click·or·press·‘S’·to·search,·‘?’·for·more·options…"·type="search"><div·id="help-button"·tabindex="-1"><a·href="../../help.html"·title="help">?</a></div><div·id="settings-menu"·tabindex="-1"><a·href="../../settings.html"·title="settings"><img·width="22"·height="22"·alt="Change·settings"·src="../../static.files/wheel-7b819b6101059cd0.svg"></a></div></form></nav><section·id="main-content"·class="content"><div·class="main-heading"><h1>Struct·<a·href="../index.html">alloc</a>::<wbr><a·href="index.html">str</a>::<wbr><a·class="struct"·href="#">SplitWhitespace</a><button·id="copy-path"·title="Copy·item·path·to·clipboard"><img·src="../../static.files/clipboard-7571035ce49a181d.svg"·width="19"·height="18"·alt="Copy·item·path"></button></h1><span·class="out-of-band"><span·class="since"·title="Stable·since·Rust·version·1.1.0">1.1.0</span>···<a·class="src"·href="../../src/core/str/iter.rs.html#1263">source</a>···<button·id="toggle-all-docs"·title="collapse·all·docs">[<span>&#x2212;</span>]</button></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 ····<main><div·class="width-limiter"><nav·class="sub"><form·class="search-form"><span></span><div·id="sidebar-button"·tabindex="-1"><a·href="../../alloc/all.html"·title="show·sidebar"></a></div><input·class="search-input"·name="search"·aria-label="Run·search·in·the·documentation"·autocomplete="off"·spellcheck="false"·placeholder="Click·or·press·‘S’·to·search,·‘?’·for·more·options…"·type="search"><div·id="help-button"·tabindex="-1"><a·href="../../help.html"·title="help">?</a></div><div·id="settings-menu"·tabindex="-1"><a·href="../../settings.html"·title="settings"><img·width="22"·height="22"·alt="Change·settings"·src="../../static.files/wheel-7b819b6101059cd0.svg"></a></div></form></nav><section·id="main-content"·class="content"><div·class="main-heading"><h1>Struct·<a·href="../index.html">alloc</a>::<wbr><a·href="index.html">str</a>::<wbr><a·class="struct"·href="#">SplitWhitespace</a><button·id="copy-path"·title="Copy·item·path·to·clipboard"><img·src="../../static.files/clipboard-7571035ce49a181d.svg"·width="19"·height="18"·alt="Copy·item·path"></button></h1><span·class="out-of-band"><span·class="since"·title="Stable·since·Rust·version·1.1.0">1.1.0</span>···<a·class="src"·href="https://doc.rust-lang.org/1.78.0/src/core/str/iter.rs.html#1263">source</a>···<button·id="toggle-all-docs"·title="collapse·all·docs">[<span>&#x2212;</span>]</button></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,
3 separated·by·any·amount·of·whitespace.</p>3 separated·by·any·amount·of·whitespace.</p>
4 <p>This·struct·is·created·by·the·<a·href="../../core/primitive.str.html#method.split_whitespace"·title="method·str::split_whitespace"><code>split_whitespace</code></a>·method·on·<a·href="../../core/primitive.str.html"·title="primitive·str"><code>str</code></a>.4 <p>This·struct·is·created·by·the·<a·href="https://doc.rust-lang.org/1.78.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.78.0/core/primitive.str.html"·title="primitive·str"><code>str</code></a>.
5 See·its·documentation·for·more.</p>5 See·its·documentation·for·more.</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-SplitWhitespace%3C'a%3E"·class="impl"><a·class="src·rightside"·href="../../src/core/str/iter.rs.html#1324">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:·62ea6143f437d6859d3e85a3e710d3be8e973b0041df88e440b52eca148995d9·...·]/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 </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.78.0/src/core/str/iter.rs.html#1324">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:·aa0c6cea0a042916cd74a659e739319d018777bedf96fa8d9cdb8caa969c1ece·...·]/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>
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_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_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"·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">Run</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"·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">Run</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-SplitWhitespace%3C'a%3E"·class="impl"><a·class="src·rightside"·href="../../src/core/str/iter.rs.html#1262">source</a><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">Clone</a[·...·truncated·by·diffoscope;·len:·7555,·SHA:·6ee603381ac0952e8c742a555ba795a0c5f20c06ad5cf243841dce175d531b9f·...·]/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-SplitWhitespace%3C'a%3E"·class="impl"><a·class="src·rightside"·href="https://doc.rust-lang.org/1.78.0/src/core/str/iter.rs.html#1262">source</a><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.78.0/core/clone/trait[·...·truncated·by·diffoscope;·len:·8527,·SHA:·fdafe48f5a34e8298144bdb4912d3105b6f63dd9940186735ed930e61487215b·...·]/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.78.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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(B,·Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.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.78.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.7[·...·truncated·by·diffoscope;·len:·3,·SHA:·7b1bd53949b752d143d871408483b5382371b5bc48d195d0c040ec93cfa2748b·...·]/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:·74b709f2c818a4eda5d85ea863eb2d8af72c87564dbab2746e67feafb0cbb9a3·...·]/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.78.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:·d66ed7e195a53e9945339ef1976aed455dcf80228d8e5b7b0c69a64c3983fea1·...·]/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.78.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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(B,·Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/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:·f8bdf1e28866c7668477ab391452c7cfa7fd52cc69b633e782a157931421b39b·...·]/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.78.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:·c264047794019a6dcf05728ba6a6ee1f8f07c7209958b3366ba94546b527ecdc·...·]/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.78.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:·4264,·SHA:·26d596e91dba1c5bf35b09efd65ee00ae1e76af02e8500d59f5dbc959fb55d44·...·]/core/primitive.usize.html">usize</a>&gt;(24 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·4993,·SHA:·8c44da04eb6bb7ade34cfa0b6293c65033aba9212b003f88b57e2c94f9de72bb·...·]/core/primitive.usize.html">usize</a>&gt;(
25 ····&amp;mut·self25 ····&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.78.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.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title=[·...·truncated·by·diffoscope;·len:·381,·SHA:·88c48923c9b7ea5cc47c1087c60e09656e81d4671c58071ba2bef826335388bc·...·]/core/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:·602d17b58d1cf716882ddc867fc66cfda4f899bef17b038a48553e9133f60097·...·]/core/primitive.usize.html">usize</a><div·class="where">where27 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></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:·89791450da70cbd536c3cf8fbf2dd9891668362f9a252d3ee098222d19960bae·...·]/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:·f92dde8c48ff35deb05a51084054ecdf425850256e0755fd705ef0e8dee5a42a·...·]/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.78.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:·5acc2bcc91ab2687c8137eaa20bd4287e0b901b846fa877b4a1d59df04bc4956·...·]/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.78.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:·5667b9b6c9778ff3b9d23ed0a110e7ab9d3fccc786fdcaca8c17edf996236439·...·]/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.78.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:·e83c903581753673e083ce8dd809879a2fc81ab3050eb6db267d7fa26b15e035·...·]/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.78.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:·1c6bb9803ee8832ebd4c28a08a952178165595b6870cf35d3c89454b9da828b2·...·]/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.78.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.78.0/core/iter/traits/it[·...·truncated·by·diffoscope;·len:·1329,·SHA:·d9299c8edc606ed82f24d61ce441bec451141d684c2a9a75074f5b19c57f196c·...·]/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.78.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:·c1b5e692e89c9c809075ee8ee72fb15a9ec46c075b08450e1f707d672a224750·...·]/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.78.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:·98627729f77dcf1c9d258f343354ba600b7134c6b3929080f231e8de7155b70b·...·]/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.78.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.78.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.78.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:·d6282409add0999f2130eb6bbe6d0473ce96bf2544799e8bc22156f3c2d2e0dd·...·]/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.78.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:·7301b6beba7b6885849be90a625df68ef739a5374af456c51fe2e81d91a25363·...·]/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.78.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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::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:·fb4c9589a16c7b6d697c109d1193d2f1e763e5dd967101c2fd92b32416972229·...·]/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.78.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:·98f6effefa44d759c249143d83623f0055d937382bfc398b7e1f5e92cd413657·...·]/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.78.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:·7abbad666ec88a1053b8aca2a481d629a3ef3596eddb570c381205fa2d859a52·...·]/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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·916,·SHA:·30d0b2a76513c5a880e9aee43e92b18805845cfcfe5783f62dc090167a439e63·...·]/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.78.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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·140,·SHA:·752f473b57e7444ebfddf5ea7fd40a332e83ec55524a6c31b5ee0f82a5dea819·...·]/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:·7da07154834a15b8ae55b4fd41479da070ccbd27e071909f81698570c306a081·...·]/core/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.78.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:·76aa2ad154f88085ee3f8a22721a7e6812680bac785d19059532407f50da1801·...·]/core/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.78.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:·c89169e5bf1c4724c7b411e568b6dad6475896f2606f557b3d708359ef71f5cc·...·]/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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·1052,·SHA:·110b47c7083083d565fcfc89337fddc8e5c87e81b2f720f3f7b0ded55e8500fb·...·]/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.78.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:·53634008856676c70c32b501f7ec498c1f86d123cc9b5b898256a69895ff31fc·...·]/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.78.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:·8464264e074dde5d84f0414ab3b5b2d8da83f3c9e3ca04c45458241580a8c80d·...·]/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.78.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.78.0/core/iter/adapte[·...·truncated·by·diffoscope;·len:·175,·SHA:·16fe7225bf05b478e2828b347c3d23ded9a22f89d8887a2c65d9f7b3faf1b0e7·...·]/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:·77dd41e041d66c618d306e900a9159cf1b00478b8f37e5692be62119a1d4fcda·...·]/core/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.78.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:·00ccbb673c11ed48d8c6aa2a3f8984fb298202e7bccfa42f1ac21290fcc0fb06·...·]/core/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.78.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:·c18326af66652e52fa627bfd0312af7fa2ad0ddc162b12a46e61047a031b0264·...·]/core/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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·1234,·SHA:·3b805567411cdcebed740f9e8d400dbe7fb487504f40e284544a140155090fdf·...·]/core/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.78.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:·39eeddf219b211245393e51a591d5064c740fa9be49d88883d8a6474679741ad·...·]/core/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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·1058,·SHA:·b390dbdda8d7e93604b5ecd906a93efd03fe19bdaf41cf12893fd361bf974307·...·]/core/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.78.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:·9369fa85b74ff841f7401949cadba6dfbbbeead2a99568f20dcfd5aab20d61ab·...·]/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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·1163,·SHA:·5772149166d344bf8fa5ebbd9db8693a8f2e5f031c50338e8f1523ef72f814d6·...·]/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:·a25e81a74cc82c1837477e2b0cea682fff9f43550640901b8010ac501ca69e3d·...·]/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.78.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:·6216516fe581c401abda3c95818192e8f030e2008c9bbdbaafebba16f33ea9bd·...·]/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.78.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:·de8f1023275132502c1569b0ef9a557dc98eaf60aae97cdb916e52f9f55100aa·...·]/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.78.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:·485843399c56e24bdf020ff0610d0ce1f62fbac5530d9880a1a7417105e3d70f·...·]/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.78.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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(<a·class="primitive"·href="https://doc.rust-lang.org/1.78.0/core/primitive.reference.html">&amp;mut·St</a>,·Self::<a·class="associatedty[·...·truncated·by·diffoscope;·len:·449,·SHA:·f12c268a8a8111b9e7126ad78bf5523a63733caa63d187c4fe792309ea41acdf·...·]/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:·8b31595e3cee3022819032aac82e3df712188a2a6dcc20da6939262e5e528591·...·]/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.78.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.78.0/core/iter/trai[·...·truncated·by·diffoscope;·len:·690,·SHA:·371190e5c1bf9b7dde6e84447965a69946212b977b9eb6d89048fbe34c5dda1c·...·]/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.78.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.78.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:·9b6a337a3ad68c2a987b52450c153f87a04a8ed9e83603d26077fe6e70d61edf·...·]/core/iter/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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·976,·SHA:·2a9182f6fe88e0b8a9b1ae1f46cace940cc0b8736033c354c0f0ccbf1c196e7a·...·]/core/iter/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.78.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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;[Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtyp[·...·truncated·by·diffoscope;·len:·135,·SHA:·0b06a6094d42ccbc8bce5b01c4383961fe7f1967f05e4c9f1ff33e71e425fb26·...·]/core/primitive.array.html">N</a>])·-&gt;·R,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iter_map_windows</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/87155">#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.78.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:·238f6b49b3e28d725c57040edaa60bfbb34f140155e6af1d30eab52da1c7274f·...·]/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.78.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:·0d33056cee8a4f9b70b573c0adecc2f3599a2f8d9fa9f2c2044e9118ab134f73·...·]/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:·cfd3edf89fe5aca24b994f83b0d7da765620394e35140e694d98233d4d92481b·...·]/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.78.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.78.0/core/op[·...·truncated·by·diffoscope;·len:·841,·SHA:·9cba1b175fb3726d7f1f01da9be7c1a56568a68e4ce7915a468b730902daf8d3·...·]/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.78.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:·772,·SHA:·31d2052382378512fa905c6d5297d384eac7b7f126141ce561719c0e27cc9d39·...·]/core/primitive.reference.html">&amp;mut·Self</a><div·class="where">where74 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·934,·SHA:·ea20d2e0fe9388580ea08100baa9120b5e9b6cb48f43fc846f15db8b9649e7f6·...·]/core/primitive.reference.html">&amp;mut·Self</a><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:·98760b16b1ed91f9558e6e2637724a4608316181d5f6f4d236e896a83eca9af9·...·]/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.78.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.78.0/core/it[·...·truncated·by·diffoscope;·len:·523,·SHA:·97064c705f6f4bdf74469c54fabcf580d21893127d1b4cd9a9c1018a717ef153·...·]/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.78.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.78.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:·e5d524e874326d0b9b733f5ee809c6595cde869afab0cc3d4ba8454093f420da·...·]/core/primitive.reference.html">&amp;mut·E</a><div·class="where">where77 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.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.78.0/core/iter/tr[·...·truncated·by·diffoscope;·len:·728,·SHA:·01937c2dc314c259495665570ae249c94b4a5b0719718f5f1188e6fc64ecf487·...·]/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.78.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.78.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:·b0297783e056393a542c4058b42c18523a86c961c1b6ce3bc94342c1a2c10c58·...·]/core/primitive.tuple.html">(B,·B)</a><div·class="where">where79 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></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:·00bd47017b1bdd1bbe2c3fc932d955a8aa2f7f5eff8c00e3001ae28a982a5883·...·]/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.78.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.78.0/core/default/trait.Default.html"·title="trait·core::default::Default">Default</a>·+·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/collect/trait.Extend.html"·title="trait·core::iter::traits::collec[·...·truncated·by·diffoscope;·len:·95,·SHA:·8b3be1d0042cae0550f865faf5849221240bdf04eb1b2107605b72d48c3ad29c·...·]/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:·5a1bcc1ddfc5fccf50d61bf2b8879dae247aa12c0b23ba2f437fd2a345cabac7·...·]/core/primitive.usize.html">usize</a><div·class="where">where82 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·995,·SHA:·bec3765fdab56713186e2454cd84738b5b28e3280a2f3d5a25cefdbc3089b520·...·]/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.78.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>·+·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/double_ended/trait.DoubleEndedIterator.html"·title="trait·core::iter::trai[·...·truncated·by·diffoscope;·len:·132,·SHA:·e5b2cf5f56946ede1e190ed09879c5821e2de04cf8e5d145142eeb40c6340982·...·]/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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(<a·class="primitive"·href="https://doc.rust-lang.org/1.78.0/core/primitive.reference.html">&amp;T</a>)·-&gt;·<a·class="primitive"·href="[·...·truncated·by·diffoscope;·len:·32,·SHA:·63d052a8ced32bf927ffadd7e884c08caf4970e85dfdf6be0e568d49b174da96·...·]/core/primitive.bool.html">bool</a>,</div></h4></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:·97056c44eac6a0f986fb2c8edec37302cc06edf44a6c6f7153a5d8623d8d6c0d·...·]/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.78.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:·0c224636c18baa273f69de21f90083317f2ea0b7367a3f0d0f1c0ace55a36f79·...·]/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.78.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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·135,·SHA:·51ff5f5c7ebd8440623ea71b125c5a5837e809e308fe1a13fbe19cddb941dbd9·...·]/core/primitive.bool.html">bool</a>,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iter_is_partitioned</code>&nbsp;<a·href="https://github.com/rust-lang/rust/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:·6f406a351b93047f56fa70265a6bf28ec6874f75cd6cc5a39d51c7af462f2992·...·]/core/iter/traits/iterator/trait.Iterator.html#method.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.78.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:·2c74873f4e5ba70004a1c7edd1cc3f9e2d91271295dd1591e2d26848df4c02ba·...·]/core/iter/traits/iterator/trait.Iterator.html#method.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.78.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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(B,·Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.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.78.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:·eecdce021399d206eb3ef5af12ee7663b4eb0dca55b0f411c7fa66f605b6b2e2·...·]/core/iter/traits/iterator/trait.Iterator.html#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.78.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:·52912e82c4b0a760d06f77eb4ee3a59ba70dd76cb532954900c73ae94c652674·...·]/core/iter/traits/iterator/trait.Iterator.html#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.78.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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.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.78.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.78.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:·ffdacd6b524bc823efebbf23dc0f77317a07fe9c8b691f2ea18db7aa0c08b146·...·]/core/iter/traits/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.78.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:·1d6c4809cea8748e901d3f94777f450d430f3161f6ac05ed1c178d9327f966a3·...·]/core/iter/traits/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.78.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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(B,·Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::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:·dbe3a08fe63abd47570741e71208c31aaf51152feac5917db07665a1f56bb3e3·...·]/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.78.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:·b60215068a6d9721be05f81098c51167d7138c4042f140cad42f77c4df43f597·...·]/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.78.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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·352,·SHA:·e7c3c296abe2c0a183967153e4ae7fd50bafa2ae7088e3e78b3b48fee253adc6·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::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:·a9dce8bb557b5a11426bf2ffcbd5eea7c6c870833e3ee5bb072dcaaa11687b0c·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_reduce"·class="fn">try_reduce</a>&lt;F,·R&gt;(104 operation.·<a·href="https://doc.rust-lang.org/1.78.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:·7a18fdd041b1a001b4a8feb289ee127fd9240232239269eb35dc3b8f74783ec9·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_reduce"·class="fn">try_reduce</a>&lt;F,·R&gt;(
105 ····&amp;mut·self,105 ····&amp;mut·self,
106 ····f:·F106 ····f:·F
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.78.0/core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&gt;::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/ops/try_trait/trait.Try.html#associatedtype.Residual"·title="type[·...·truncated·by·diffoscope;·len:·754,·SHA:·6fb4dfdb6b4da68921c1e7f8b75d99cf293d58318d684a840254ce9576957bea·...·]/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.78.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:·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:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·140,·SHA:·c27972e6fa3464c9476eaa185e8657edb6bb294f148403f3d079285294a9f909·...·]/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·=·Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;,110 ····R:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.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.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;,
111 ····&lt;R·as·<a·class="trait"·href="../../core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&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·the111 ····&lt;R·as·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&gt;::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/ops/try_trait/trait.Try.html#associatedtype.Residual"·title="type[·...·truncated·by·diffoscope;·len:·412,·SHA:·22b8cbb007e5cce82b9d13a65bfa56aa8d83c32541fac25f4d9b3857b0540908·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;&gt;,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iterator_try_reduce</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/87053">#87053</a>)</span></div></span><div·class='docblock'>Reduces·the·elements·to·a·single·one·by·repeatedly·applying·a·reducing·operation.·If·the
112 closure·returns·a·failure,·the·failure·is·propagated·back·to·the·caller·immediately.·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.try_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:·65b80c848af6e465c8c5aef4ec8d3faaa399d30c8427c9507fda7b3bd1d3ea93·...·]/core/primitive.bool.html">bool</a><div·class="where">where112 closure·returns·a·failure,·the·failure·is·propagated·back·to·the·caller·immediately.·<a·href="https://doc.rust-lang.org/1.78.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:·bc0d658d56e348823de15386e1cd4ab49109f3a7a055a4573a19391b47071193·...·]/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.78.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:·829,·SHA:·95a840b532d3d621bde4032d63854eb0a481248e2b4bbb3ef058dbffb4dae4fa·...·]/core/primitive.bool.html">bool</a><div·class="where">where114 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·1018,·SHA:·e61cd6bdd36729cc38e57fcaea2ccb91a23a5acbda3c8986071f19bf1ecfc52a·...·]/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.78.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:·956,·SHA:·f828c62edd4fe85e217286f359b56c116e14ed18bb292ba1cc13d3ed7146909e·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;<div·class="where">where116 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·1172,·SHA:·e64ab74d116d286191ad43d9d9e10411fc011c23724aa806e9a8f9b0be0757e3·...·]/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.78.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>(&amp;Self::<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:·21d7086b3ce0092e3f7a6a41174339bbd8724e7d186158db4db3385a73d94e8e·...·]/core/option/enum.Option.html"·title="enum·core::option::Option">Option</a>&lt;B&gt;<div·class="where">where118 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·1051,·SHA:·ecc0b8fccd861464760f9ae047ff6ab98c91a1db010cb5fa59a8c2ab883db7c4·...·]/core/option/enum.Option.html"·title="enum·core::option::Option">Option</a>&lt;B&gt;<div·class="where">where
119 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,119 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.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>(Self::<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·returns120 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·130,·SHA:·130a13019dc175d02304b4f550157e2f13ac15c2f25a979c74161d10b146ab89·...·]/core/option/enum.Option.html"·title="enum·core::option::Option">Option</a>&lt;B&gt;,</div></h4></section></summary><div·class='docblock'>Applies·function·to·the·elements·of·iterator·and·returns
121 the·first·non-none·result.·<a·href="../../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:·ac4da3337aac1ec10038e246be9cb719eeb5af1acc709f5a6a25b91900c56f53·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_find"·class="fn">try_find</a>&lt;F,·R&gt;(121 the·first·non-none·result.·<a·href="https://doc.rust-lang.org/1.78.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:·8ced1b10e78750774c5c8ed995ed83dcd13983aa75d329acf8069da106ab9f4a·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_find"·class="fn">try_find</a>&lt;F,·R&gt;(
122 ····&amp;mut·self,122 ····&amp;mut·self,
123 ····f:·F123 ····f:·F
124 )·-&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">where124 )·-&gt;·&lt;&lt;R·as·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&gt;::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/ops/try_trait/trait.Try.html#associatedtype.Residual"·title="type[·...·truncated·by·diffoscope;·len:·626,·SHA:·95f9831257b68862cbcbf54f0ad2ff4e597a4c9f763112d1da8a0897dadcf872·...·]/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; 83407/309588 bytes (26.94%) of diff not shown.
59.2 KB
./usr/share/doc/rust-web-doc/html/alloc/str/struct.Utf8Chunk.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="An·item·returned·by·the·`Utf8Chunks`·iterator."><title>Utf8Chunk·in·alloc::str·-·Rust</title><script>·if·(window.location.protocol·!==·"file:")·document.write(`<link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/SourceSerif4-Regular-46f98efaafac5295.ttf.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/FiraSans-Regular-018c141bf0843ffd.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/FiraSans-Medium-8f9a781e4970d388.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/SourceCodePro-Regular-562dcc5011b6de7d.ttf.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/SourceCodePro-Semibold-d899c5a5c4aeb14a.ttf.woff2">`)</script><link·rel="stylesheet"·href="../../static.files/normalize-76eba96aa4d2e634.css"><link·rel="stylesheet"·href="../../static.files/rustdoc-35f9e32502181f1e.css"><meta·name="rustdoc-vars"·data-root-path="../../"·data-static-root-path="../../static.files/"·data-current-crate="alloc"·data-themes=""·data-resource-suffix="1.78.0"·data-rustdoc-version="1.78.0"·data-channel="1.78.0"·data-search-js="search-42d8da7a6b9792c2.js"·data-settings-js="settings-4313503d2e1961c2.js"·><script·src="../../static.files/storage-4c98445ec4002617.js"></script><script·defer·src="sidebar-items1.78.0.js"></script><script·defer·src="../../static.files/main-12cf3b4f4f9dc36d.js"></script><noscript><link·rel="stylesheet"·href="../../static.files/noscript-04d5337699b92874.css"></noscript><link·rel="alternate·icon"·type="image/png"·href="../../static.files/favicon-16x16-8b506e7a72182f1c.png"><link·rel="alternate·icon"·type="image/png"·href="../../static.files/favicon-32x32-422f7d1d52889060.png"><link·rel="icon"·type="image/svg+xml"·href="../../static.files/favicon-2c020d218678b618.svg"></head><body·class="rustdoc·struct"><!--[if·lte·IE·11]><div·class="warning">This·old·browser·is·unsupported·and·will·most·likely·display·funky·things.</div><![endif]--><nav·class="mobile-topbar"><button·class="sidebar-menu-toggle"·title="show·sidebar"></button><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-151179464ae7ed46.svg"·alt=""></a></nav><nav·class="sidebar"><div·class="sidebar-crate"><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-151179464ae7ed46.svg"·alt="logo"></a><h2><a·href="../../alloc/index.html">alloc</a><span·class="version">1.78.0</span></h2></div><h2·class="location"><a·href="#">Utf8Chunk</a></h2><div·class="sidebar-elems"><section><h3><a·href="#implementations">Methods</a></h3><ul·class="block·method"><li><a·href="#method.invalid">invalid</a></li><li><a·href="#method.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">Clone</a></li><li><a·href="#impl-Debug-for-Utf8Chunk%3C'a%3E">Debug</a></li><li><a·href="#impl-Eq-for-Utf8Chunk%3C'a%3E">Eq</a></li><li><a·href="#impl-PartialEq-for-Utf8Chunk%3C'a%3E">PartialEq</a></li><li><a·href="#impl-StructuralPartialEq-for-Utf8Chunk%3C'a%3E">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">Freeze</a></li><li><a·href="#impl-RefUnwindSafe-for-Utf8Chunk%3C'a%3E">RefUnwindSafe</a></li><li><a·href="#impl-Send-for-Utf8Chunk%3C'a%3E">Send</a></li><li><a·href="#impl-Sync-for-Utf8Chunk%3C'a%3E">Sync</a></li><li><a·href="#impl-Unpin-for-Utf8Chunk%3C'a%3E">Unpin</a></li><li><a·href="#impl-UnwindSafe-for-Utf8Chunk%3C'a%3E">UnwindSafe</a></li></ul><h3><a·href="#blanket-implementations">Blanket·Implementations</a></h3><ul·class="block·blanket-implementation"><li><a·href="#impl-Any-for-T">Any</a></li><li><a·href="#impl-Borrow%3CT%3E-for-T">Borrow&lt;T&gt;</a></li><li><a·href="#impl-BorrowMut%3CT%3E-for-T">BorrowMut&lt;T&gt;</a></li><li><a·href="#impl-From%3CT%3E-for-T">From&lt;T&gt;</a></li><li><a·href="#impl-Into%3CU%3E-for-T">Into&lt;U&gt;</a></li><li><a·href="#impl-ToOwned-for-T">ToOwned</a></li><li><a·href="#impl-TryFrom%3CU%3E-for-T">TryFrom&lt;U&gt;</a></li><li><a·href="#impl-TryInto%3CU%3E-for-T">TryInto&lt;U&gt;</a></li></ul></section><h2><a·href="index.html">In·alloc::str</a></h2></div></nav><div·class="sidebar-resizer"></div>1 <!DOCTYPE·html><html·lang="en"><head><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.write(`<link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/SourceSerif4-Regular-46f98efaafac5295.ttf.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/FiraSans-Regular-018c141bf0843ffd.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/FiraSans-Medium-8f9a781e4970d388.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/SourceCodePro-Regular-562dcc5011b6de7d.ttf.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/SourceCodePro-Semibold-d899c5a5c4aeb14a.ttf.woff2">`)</script><link·rel="stylesheet"·href="../../static.files/normalize-76eba96aa4d2e634.css"><link·rel="stylesheet"·href="../../static.files/rustdoc-35f9e32502181f1e.css"><meta·name="rustdoc-vars"·data-root-path="../../"·data-static-root-path="../../static.files/"·data-current-crate="alloc"·data-themes=""·data-resource-suffix="1.78.0"·data-rustdoc-version="1.78.0"·data-channel="1.78.0"·data-search-js="search-42d8da7a6b9792c2.js"·data-settings-js="settings-4313503d2e1961c2.js"·><script·src="../../static.files/storage-4c98445ec4002617.js"></script><script·defer·src="sidebar-items1.78.0.js"></script><script·defer·src="../../static.files/main-12cf3b4f4f9dc36d.js"></script><noscript><link·rel="stylesheet"·href="../../static.files/noscript-04d5337699b92874.css"></noscript><link·rel="alternate·icon"·type="image/png"·href="../../static.files/favicon-16x16-8b506e7a72182f1c.png"><link·rel="alternate·icon"·type="image/png"·href="../../static.files/favicon-32x32-422f7d1d52889060.png"><link·rel="icon"·type="image/svg+xml"·href="../../static.files/favicon-2c020d218678b618.svg"></head><body·class="rustdoc·struct"><!--[if·lte·IE·11]><div·class="warning">This·old·browser·is·unsupported·and·will·most·likely·display·funky·things.</div><![endif]--><nav·class="mobile-topbar"><button·class="sidebar-menu-toggle"·title="show·sidebar"></button><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-151179464ae7ed46.svg"·alt=""></a></nav><nav·class="sidebar"><div·class="sidebar-crate"><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-151179464ae7ed46.svg"·alt="logo"></a><h2><a·href="../../alloc/index.html">alloc</a><span·class="version">1.78.0</span></h2></div><h2·class="location"><a·href="#">Utf8Chunk</a></h2><div·class="sidebar-elems"><section><h3><a·href="#implementations">Methods</a></h3><ul·class="block·method"><li><a·href="#method.invalid">invalid</a></li><li><a·href="#method.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">Clone</a></li><li><a·href="#impl-Debug-for-Utf8Chunk%3C'a%3E">Debug</a></li><li><a·href="#impl-Eq-for-Utf8Chunk%3C'a%3E">Eq</a></li><li><a·href="#impl-PartialEq-for-Utf8Chunk%3C'a%3E">PartialEq</a></li><li><a·href="#impl-StructuralPartialEq-for-Utf8Chunk%3C'a%3E">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">Freeze</a></li><li><a·href="#impl-RefUnwindSafe-for-Utf8Chunk%3C'a%3E">RefUnwindSafe</a></li><li><a·href="#impl-Send-for-Utf8Chunk%3C'a%3E">Send</a></li><li><a·href="#impl-Sync-for-Utf8Chunk%3C'a%3E">Sync</a></li><li><a·href="#impl-Unpin-for-Utf8Chunk%3C'a%3E">Unpin</a></li><li><a·href="#impl-UnwindSafe-for-Utf8Chunk%3C'a%3E">UnwindSafe</a></li></ul><h3><a·href="#blanket-implementations">Blanket·Implementations</a></h3><ul·class="block·blanket-implementation"><li><a·href="#impl-Any-for-T">Any</a></li><li><a·href="#impl-Borrow%3CT%3E-for-T">Borrow&lt;T&gt;</a></li><li><a·href="#impl-BorrowMut%3CT%3E-for-T">BorrowMut&lt;T&gt;</a></li><li><a·href="#impl-From%3CT%3E-for-T">From&lt;T&gt;</a></li><li><a·href="#impl-Into%3CU%3E-for-T">Into&lt;U&gt;</a></li><li><a·href="#impl-ToOwned-for-T">ToOwned</a></li><li><a·href="#impl-TryFrom%3CU%3E-for-T">TryFrom&lt;U&gt;</a></li><li><a·href="#impl-TryInto%3CU%3E-for-T">TryInto&lt;U&gt;</a></li></ul></section><h2><a·href="index.html">In·alloc::str</a></h2></div></nav><div·class="sidebar-resizer"></div>
2 ····<main><div·class="width-limiter"><nav·class="sub"><form·class="search-form"><span></span><div·id="sidebar-button"·tabindex="-1"><a·href="../../alloc/all.html"·title="show·sidebar"></a></div><input·class="search-input"·name="search"·aria-label="Run·search·in·the·documentation"·autocomplete="off"·spellcheck="false"·placeholder="Click·or·press·‘S’·to·search,·‘?’·for·more·options…"·type="search"><div·id="help-button"·tabindex="-1"><a·href="../../help.html"·title="help">?</a></div><div·id="settings-menu"·tabindex="-1"><a·href="../../settings.html"·title="settings"><img·width="22"·height="22"·alt="Change·settings"·src="../../static.files/wheel-7b819b6101059cd0.svg"></a></div></form></nav><section·id="main-content"·class="content"><div·class="main-heading"><h1>Struct·<a·href="../index.html">alloc</a>::<wbr><a·href="index.html">str</a>::<wbr><a·class="struct"·href="#">Utf8Chunk</a><button·id="copy-path"·title="Copy·item·path·to·clipboard"><img·src="../../static.files/clipboard-7571035ce49a181d.svg"·width="19"·height="18"·alt="Copy·item·path"></button></h1><span·class="out-of-band"><a·class="src"·href="../../src/core/str/lossy.rs.html#35">source</a>···<button·id="toggle-all-docs"·title="collapse·all·docs">[<span>&#x2212;</span>]</button></span></div><pre·class="rust·item-decl"><code>pub·struct·Utf8Chunk&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>utf8_chunks</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/99543">#99543</a>)</span></div></span><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 ····<main><div·class="width-limiter"><nav·class="sub"><form·class="search-form"><span></span><div·id="sidebar-button"·tabindex="-1"><a·href="../../alloc/all.html"·title="show·sidebar"></a></div><input·class="search-input"·name="search"·aria-label="Run·search·in·the·documentation"·autocomplete="off"·spellcheck="false"·placeholder="Click·or·press·‘S’·to·search,·‘?’·for·more·options…"·type="search"><div·id="help-button"·tabindex="-1"><a·href="../../help.html"·title="help">?</a></div><div·id="settings-menu"·tabindex="-1"><a·href="../../settings.html"·title="settings"><img·width="22"·height="22"·alt="Change·settings"·src="../../static.files/wheel-7b819b6101059cd0.svg"></a></div></form></nav><section·id="main-content"·class="content"><div·class="main-heading"><h1>Struct·<a·href="../index.html">alloc</a>::<wbr><a·href="index.html">str</a>::<wbr><a·class="struct"·href="#">Utf8Chunk</a><button·id="copy-path"·title="Copy·item·path·to·clipboard"><img·src="../../static.files/clipboard-7571035ce49a181d.svg"·width="19"·height="18"·alt="Copy·item·path"></button></h1><span·class="out-of-band"><a·class="src"·href="https://doc.rust-lang.org/1.78.0/src/core/str/lossy.rs.html#35">source</a>···<button·id="toggle-all-docs"·title="collapse·all·docs">[<span>&#x2212;</span>]</button></span></div><pre·class="rust·item-decl"><code>pub·struct·Utf8Chunk&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>utf8_chunks</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/99543">#99543</a>)</span></div></span><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>
3 <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·character3 <p>A·<code>Utf8Chunk</code>·stores·a·sequence·of·<a·href="https://doc.rust-lang.org/1.78.0/core/primitive.u8.html"·title="primitive·u8"><code>u8</code></a>·up·to·the·first·broken·character
4 when·decoding·a·UTF-8·string.</p>4 when·decoding·a·UTF-8·string.</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 <div·class="example-wrap"><pre·class="rust·rust-example-rendered"><code><span·class="attr">#![feature(utf8_chunks)]6 <div·class="example-wrap"><pre·class="rust·rust-example-rendered"><code><span·class="attr">#![feature(utf8_chunks)]
  
7 </span><span·class="kw">use·</span>std::str::Utf8Chunks;7 </span><span·class="kw">use·</span>std::str::Utf8Chunks;
  
8 <span·class="comment">//·An·invalid·UTF-8·string8 <span·class="comment">//·An·invalid·UTF-8·string
Offset 14, 31 lines modifiedOffset 14, 31 lines modified
14 </span><span·class="kw">let·</span>chunk·=·Utf8Chunks::new(bytes).next().unwrap();14 </span><span·class="kw">let·</span>chunk·=·Utf8Chunks::new(bytes).next().unwrap();
  
15 <span·class="comment">//·The·first·three·characters·are·valid·UTF-815 <span·class="comment">//·The·first·three·characters·are·valid·UTF-8
16 </span><span·class="macro">assert_eq!</span>(<span·class="string">"foo"</span>,·chunk.valid());16 </span><span·class="macro">assert_eq!</span>(<span·class="string">"foo"</span>,·chunk.valid());
  
17 <span·class="comment">//·The·fourth·character·is·broken17 <span·class="comment">//·The·fourth·character·is·broken
18 </span><span·class="macro">assert_eq!</span>(<span·class="string">b"\xF1\x80"</span>,·chunk.invalid());</code></pre><a·class="test-arrow"·target="_blank"·href="https://play.rust-lang.org/?code=%23!%5Ballow(unused)%5D%0A%23!%5Bfeature(utf8_chunks)%5D%0A%0Afn+main()+%7B%0A++++use+std::str::Utf8Chunks;%0A++++%0A++++//+An+invalid+UTF-8+string%0A++++let+bytes+=+b%22foo%5CxF1%5Cx80bar%22;%0A++++%0A++++//+Decode+the+first+%60Utf8Chunk%60%0A++++let+chunk+=+Utf8Chunks::new(bytes).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;version=nightly&amp;edition=2021">Run</a></div>18 </span><span·class="macro">assert_eq!</span>(<span·class="string">b"\xF1\x80"</span>,·chunk.invalid());</code></pre><a·class="test-arrow"·target="_blank"·href="https://play.rust-lang.org/?code=%23!%5Ballow(unused)%5D%0A%23!%5Bfeature(utf8_chunks)%5D%0A%0Afn+main()+%7B%0A++++use+std::str::Utf8Chunks;%0A++++%0A++++//+An+invalid+UTF-8+string%0A++++let+bytes+=+b%22foo%5CxF1%5Cx80bar%22;%0A++++%0A++++//+Decode+the+first+%60Utf8Chunk%60%0A++++let+chunk+=+Utf8Chunks::new(bytes).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;version=nightly&amp;edition=2021">Run</a></div>
19 </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#40">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:·345,·SHA:·5c4deb76d1142ee1bb78493d883912ac3189234f9280441a151060a32c0013f1·...·]/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>utf8_chunks</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/99543">#99543</a>)</span></div></span></summary><div·class="docblock"><p>Returns·the·next·validated·UTF-8·substring.</p>19 </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.78.0/src/core/str/lossy.rs.html#40">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:·426,·SHA:·09051dc517cd9f49200c71ab13e7636d48452ae04585d4f5dd5546c2a398a1c5·...·]/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>utf8_chunks</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/99543">#99543</a>)</span></div></span></summary><div·class="docblock"><p>Returns·the·next·validated·UTF-8·substring.</p>
20 <p>This·substring·can·be·empty·at·the·start·of·the·string·or·between20 <p>This·substring·can·be·empty·at·the·start·of·the·string·or·between
21 broken·UTF-8·characters.</p>21 broken·UTF-8·characters.</p>
22 </div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.invalid"·class="method"><a·class="src·rightside"·href="../../src/core/str/lossy.rs.html#67">source</a><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><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>utf8_chunks</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/99543">#99543</a>)</span></div></span></summary><div·class="docblock"><p>Returns·the·invalid·sequence·that·caused·a·failure.</p>22 </div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.invalid"·class="method"><a·class="src·rightside"·href="https://doc.rust-lang.org/1.78.0/src/core/str/lossy.rs.html#67">source</a><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.78.0/core/primitive.u8.html">u8</a>]</h4></section><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>utf8_chunks</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/99543">#99543</a>)</span></div></span></summary><div·class="docblock"><p>Returns·the·invalid·sequence·that·caused·a·failure.</p>
23 <p>The·returned·slice·will·have·a·maximum·length·of·3·and·starts·after·the23 <p>The·returned·slice·will·have·a·maximum·length·of·3·and·starts·after·the
24 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>24 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>
25 <p>If·empty,·this·is·the·last·chunk·in·the·string.·If·non-empty,·an25 <p>If·empty,·this·is·the·last·chunk·in·the·string.·If·non-empty,·an
26 unexpected·byte·was·encountered·or·the·end·of·the·input·was·reached26 unexpected·byte·was·encountered·or·the·end·of·the·input·was·reached
27 unexpectedly.</p>27 unexpectedly.</p>
28 <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>28 <p>Lossy·decoding·would·replace·this·sequence·with·<a·href="https://doc.rust-lang.org/1.78.0/core/char/constant.REPLACEMENT_CHARACTER.html"·title="constant·core::char::REPLACEMENT_CHARACTER"><code>U+FFFD·REPLACEMENT·CHARACTER</code></a>.</p>
29 </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"><a·class="src·rightside"·href="../../src/core/str/lossy.rs.html#34">source</a><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>·for·<[·...·truncated·by·diffoscope;·len:·4061,·SHA:·27424dcbd8003bff31d08f78f687dd886820ac436166f26e43585a2f1b1e2735·...·]/core/primitive.bool.html">bool</a></h4></section></summary><div·class='docblock'>This·method·tests·for·<code>self</code>·and·<code>other</code>·values·to·be·equal,·and·is·used29 </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"><a·class="src·rightside"·href="https://doc.rust-lang.org/1.78.0/src/core/str/lossy.rs.html#34">source</a><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.78.0/core/clone/trait.Clone.[·...·truncated·by·diffoscope;·len:·4547,·SHA:·6b562f1b824235fd7c8f4036bc00c5dd31f739002a80cb2c77f9c1d156649b5d·...·]/core/primitive.bool.html">bool</a></h4></section></summary><div·class='docblock'>This·method·tests·for·<code>self</code>·and·<code>other</code>·values·to·be·equal,·and·is·used
30 by·<code>==</code>.</div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.ne"·class="method·trait-impl"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.0.0">1.0.0</span>···<a·class="src"·href="../../src/core/cmp.rs.html#263">source</a></span><a·href="#method.ne"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../../core/cmp/trait.PartialEq.html#method.ne"·class="fn">ne</a>(&amp;self,·other:·<a·class="primitive"·href="../../core/primitive[·...·truncated·by·diffoscope;·len:·69,·SHA:·bb676445ed4716783d5d8ed2fb1ff635f2577a6cd8b41db49822f9e352e394c1·...·]/core/primitive.bool.html">bool</a></h4></section></summary><div·class='docblock'>This·method·tests·for·<code>!=</code>.·The·default·implementation·is·almost·always30 by·<code>==</code>.</div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.ne"·class="method·trait-impl"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.0.0">1.0.0</span>···<a·class="src"·href="https://doc.rust-lang.org/1.78.0/src/core/cmp.rs.html#263">source</a></span><a·href="#method.ne"·class="anchor">§</a><h4·class="code-header">fn·<a·href="https://doc.rust-lang.org/1.78.0/core/cmp/trait.PartialEq.html#method.ne"·class="fn">ne</a>(&amp;self,·[·...·truncated·by·diffoscope;·len:·177,·SHA:·e1e3f9b9b78644c807cda06ba58cbf80a7a50ed17e7136cd156da5dd11dec66f·...·]/core/primitive.bool.html">bool</a></h4></section></summary><div·class='docblock'>This·method·tests·for·<code>!=</code>.·The·default·implementation·is·almost·always
31 sufficient,·and·should·not·be·overridden·without·very·good·reason.</div></details></div></details><section·id="impl-Eq-for-Utf8Chunk%3C'a%3E"·class="impl"><a·class="src·rightside"·href="../../src/core/str/lossy.rs.html#34">source</a><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="struct"[·...·truncated·by·diffoscope;·len:·3760,·SHA:·1253f3f9f87554e59613af8495d0d6a2d4116fdcfadafb46becb8d0c919ad0ab·...·]/core/any/trait.Any.html"·title="trait·core::any::Any">Any</a>·for·T<div·class="where">where31 sufficient,·and·should·not·be·overridden·without·very·good·reason.</div></details></div></details><section·id="impl-Eq-for-Utf8Chunk%3C'a%3E"·class="impl"><a·class="src·rightside"·href="https://doc.rust-lang.org/1.78.0/src/core/str/lossy.rs.html#34">source</a><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.78.0/core/cmp/trait.Eq.html"·ti[·...·truncated·by·diffoscope;·len:·4084,·SHA:·ec28964e15eda45b2838ef2c4d34436b24cab36eceb08b57659ac0196132aa9b·...·]/core/any/trait.Any.html"·title="trait·core::any::Any">Any</a>·for·T<div·class="where">where
32 ····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:·9db8bacb767d75cc3351ca7341c388130aa05ebef490d992be5374f16eedc378·...·]/src/core/borrow.rs.html#208">source</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">where32 ····T:·'static·+·?<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">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:·039b8952ccb1ab7d8f15cd519cbc10f4afc149276d0f9cfd3a53117d606059df·...·]/src/core/borrow.rs.html#208">source</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
33 ····T:·?<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.borrow"·class="method·trait-impl"><a·class="src·r[·...·truncated·by·diffoscope;·len:·629,·SHA:·b2ffbab17ff1ef71ba4c506a3aaa515da2082da6f02a53862ce1ca2b2b25f5b4·...·]/src/core/borrow.rs.html#216">source</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">where33 ····T:·?<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/marker/trait.Sized.html"·title="trait·core::marker::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:·952d76e7bcf7b521fffa418ce638abf69976de0942360e56f93e419ca3389394·...·]/src/core/borrow.rs.html#216">source</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
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_mut"·class="method·trait-impl"><a·class="s[·...·truncated·by·diffoscope;·len:·1227,·SHA:·befefcb8cb29dc857e1f3050572f6f470317e3350e0851c4ed6e56cc38673a92·...·]/core/convert/trait.From.html#tymethod.from"·class="fn">from</a>(t:·T)·-&gt;·T</h4></section></summary><div·class="docblock"><p>Returns·the·argument·unchanged.</p>34 ····T:·?<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/marker/trait.Sized.html"·title="trait·core::marker::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:·204bc28c8766993ff59d26bb790f1469ab686e6f172c57f35aa987a81507a7b1·...·]/core/convert/trait.From.html#tymethod.from"·class="fn">from</a>(t:·T)·-&gt;·T</h4></section></summary><div·class="docblock"><p>Returns·the·argument·unchanged.</p>
35 </div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-Into%3CU%3E-for-T"·class="impl"><a·class="src·rightside"·href="../../src/core/convert/mod.rs.html#748-750">source</a><a·href="#impl-Into%3CU%3E-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T,·U&gt;·<a·class="trait"·href="../../core/convert/trait.Into.html"·title="trait·core::convert::Into">Into</a>&lt;U&gt;·for·T<div·class="where">where35 </div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-Into%3CU%3E-for-T"·class="impl"><a·class="src·rightside"·href="https://doc.rust-lang.org/1.78.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.78.0/core/convert/trait.Into.html"·title="trait·core::convert::Into">Into</a>&lt;U&gt;·for·T<div·class="where">where
36 ····U:·<a·class="trait"·href="../../core/convert/trait.From.html"·title="trait·core::convert::From">From</a>&lt;T&gt;,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.into"·class="method·trait-impl"><a·class=[·...·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>36 ····U:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.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:·2cf76a8ca501b2a1fef209fed846779ab1bed3b75f52c7425335e3ce04e6b272·...·]/core/convert/trait.Into.html#tymethod.into"·class="fn">into</a>(self)·-&gt;·U</h4></section></summary><div·class="docblock"><p>Calls·<code>U::from(self)</code>.</p>
37 <p>That·is,·this·conversion·is·whatever·the·implementation·of37 <p>That·is,·this·conversion·is·whatever·the·implementation·of
38 <code><a·href="../../core/convert/trait.From.html"·title="trait·core::convert::From">From</a>&lt;T&gt;·for·U</code>·chooses·to·do.</p>38 <code><a·href="https://doc.rust-lang.org/1.78.0/core/convert/trait.From.html"·title="trait·core::convert::From">From</a>&lt;T&gt;·for·U</code>·chooses·to·do.</p>
39 </div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-ToOwned-for-T"·class="impl"><a·class="src·rightside"·href="../../src/alloc/borrow.rs.html#83-95">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">where39 </div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-ToOwned-for-T"·class="impl"><a·class="src·rightside"·href="../../src/alloc/borrow.rs.html#83-95">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
40 ····T:·<a·class="trait"·href="../../core/clone/trait.Clone.html"·title="trait·core::clone::Clone">Clone</a>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle"·open><summary><section·id="associatedtype.Owned"·class="associatedtype·trait-impl"><a·href="#associ[·...·truncated·by·diffoscope;·len:·1795,·SHA:·b8c26d2756505ca680539dc8d84062e328ba98d1ac09cee9448c528adf7cafc0·...·]/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="https://doc.rust-lang.org/1.78.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:·1903,·SHA:·9a4eb5c800ed211d64f5ef4bbb9fe5e4bfede4b7cdffd1e1968bf0b3d77a2705·...·]/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"·class="associatedtype·trait-impl"><a·hre[·...·truncated·by·diffoscope;·len:·1591,·SHA:·8537afacf1b3cf6b9fb7db778975d49d8a8e5988d420715e464ff4a79dd696c5·...·]/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.78.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"·class="associ[·...·truncated·by·diffoscope;·len:·1861,·SHA:·78398046ba16de2f66a8201a11d6a2dd405fceedeabfcaa37481e77092687e6f·...·]/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-1"·class="associatedtype·trait-i[·...·truncated·by·diffoscope;·len:·1231,·SHA:·7843e7b6cca73922417e4154886c0df66f016d274b48933c21bdb75b67479d5b·...·]/core/convert/trait.TryFrom.html#associatedtype.Error"·title="type·core::convert::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.78.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-1"·cl[·...·truncated·by·diffoscope;·len:·1474,·SHA:·ca90cccb6c86c654c95a1aaec456fbbe4b115f0d5a700e7d156e823346d70894·...·]/core/convert/trait.TryFrom.html#associatedtype.Error"·title="type·core::convert::TryFrom::Error">Error</a>&gt;</h4></section></summary><div·class='docblock'>Performs·the·conversion.</div></details></div></details></div></section></div></main></body></html>
279 KB
./usr/share/doc/rust-web-doc/html/alloc/str/struct.Utf8Chunks.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="An·iterator·used·to·decode·a·slice·of·mostly·UTF-8·bytes·to·string·slices·(`&amp;str`)·and·byte·slices·(`&amp;[u8]`)."><title>Utf8Chunks·in·alloc::str·-·Rust</title><script>·if·(window.location.protocol·!==·"file:")·document.write(`<link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/SourceSerif4-Regular-46f98efaafac5295.ttf.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/FiraSans-Regular-018c141bf0843ffd.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/FiraSans-Medium-8f9a781e4970d388.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/SourceCodePro-Regular-562dcc5011b6de7d.ttf.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/SourceCodePro-Semibold-d899c5a5c4aeb14a.ttf.woff2">`)</script><link·rel="stylesheet"·href="../../static.files/normalize-76eba96aa4d2e634.css"><link·rel="stylesheet"·href="../../static.files/rustdoc-35f9e32502181f1e.css"><meta·name="rustdoc-vars"·data-root-path="../../"·data-static-root-path="../../static.files/"·data-current-crate="alloc"·data-themes=""·data-resource-suffix="1.78.0"·data-rustdoc-version="1.78.0"·data-channel="1.78.0"·data-search-js="search-42d8da7a6b9792c2.js"·data-settings-js="settings-4313503d2e1961c2.js"·><script·src="../../static.files/storage-4c98445ec4002617.js"></script><script·defer·src="sidebar-items1.78.0.js"></script><script·defer·src="../../static.files/main-12cf3b4f4f9dc36d.js"></script><noscript><link·rel="stylesheet"·href="../../static.files/noscript-04d5337699b92874.css"></noscript><link·rel="alternate·icon"·type="image/png"·href="../../static.files/favicon-16x16-8b506e7a72182f1c.png"><link·rel="alternate·icon"·type="image/png"·href="../../static.files/favicon-32x32-422f7d1d52889060.png"><link·rel="icon"·type="image/svg+xml"·href="../../static.files/favicon-2c020d218678b618.svg"></head><body·class="rustdoc·struct"><!--[if·lte·IE·11]><div·class="warning">This·old·browser·is·unsupported·and·will·most·likely·display·funky·things.</div><![endif]--><nav·class="mobile-topbar"><button·class="sidebar-menu-toggle"·title="show·sidebar"></button><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-151179464ae7ed46.svg"·alt=""></a></nav><nav·class="sidebar"><div·class="sidebar-crate"><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-151179464ae7ed46.svg"·alt="logo"></a><h2><a·href="../../alloc/index.html">alloc</a><span·class="version">1.78.0</span></h2></div><h2·class="location"><a·href="#">Utf8Chunks</a></h2><div·class="sidebar-elems"><section><h3><a·href="#implementations">Methods</a></h3><ul·class="block·method"><li><a·href="#method.new">new</a></li></ul><h3><a·href="#trait-implementations">Trait·Implementations</a></h3><ul·class="block·trait-implementation"><li><a·href="#impl-Clone-for-Utf8Chunks%3C'a%3E">Clone</a></li><li><a·href="#impl-Debug-for-Utf8Chunks%3C'_%3E">Debug</a></li><li><a·href="#impl-FusedIterator-for-Utf8Chunks%3C'_%3E">FusedIterator</a></li><li><a·href="#impl-Iterator-for-Utf8Chunks%3C'a%3E">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">Freeze</a></li><li><a·href="#impl-RefUnwindSafe-for-Utf8Chunks%3C'a%3E">RefUnwindSafe</a></li><li><a·href="#impl-Send-for-Utf8Chunks%3C'a%3E">Send</a></li><li><a·href="#impl-Sync-for-Utf8Chunks%3C'a%3E">Sync</a></li><li><a·href="#impl-Unpin-for-Utf8Chunks%3C'a%3E">Unpin</a></li><li><a·href="#impl-UnwindSafe-for-Utf8Chunks%3C'a%3E">UnwindSafe</a></li></ul><h3><a·href="#blanket-implementations">Blanket·Implementations</a></h3><ul·class="block·blanket-implementation"><li><a·href="#impl-Any-for-T">Any</a></li><li><a·href="#impl-Borrow%3CT%3E-for-T">Borrow&lt;T&gt;</a></li><li><a·href="#impl-BorrowMut%3CT%3E-for-T">BorrowMut&lt;T&gt;</a></li><li><a·href="#impl-From%3CT%3E-for-T">From&lt;T&gt;</a></li><li><a·href="#impl-Into%3CU%3E-for-T">Into&lt;U&gt;</a></li><li><a·href="#impl-IntoIterator-for-I">IntoIterator</a></li><li><a·href="#impl-ToOwned-for-T">ToOwned</a></li><li><a·href="#impl-TryFrom%3CU%3E-for-T">TryFrom&lt;U&gt;</a></li><li><a·href="#impl-TryInto%3CU%3E-for-T">TryInto&lt;U&gt;</a></li></ul></section><h2><a·href="index.html">In·alloc::str</a></h2></div></nav><div·class="sidebar-resizer"></div>1 <!DOCTYPE·html><html·lang="en"><head><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·(`&amp;str`)·and·byte·slices·(`&amp;[u8]`)."><title>Utf8Chunks·in·alloc::str·-·Rust</title><script>·if·(window.location.protocol·!==·"file:")·document.write(`<link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/SourceSerif4-Regular-46f98efaafac5295.ttf.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/FiraSans-Regular-018c141bf0843ffd.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/FiraSans-Medium-8f9a781e4970d388.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/SourceCodePro-Regular-562dcc5011b6de7d.ttf.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/SourceCodePro-Semibold-d899c5a5c4aeb14a.ttf.woff2">`)</script><link·rel="stylesheet"·href="../../static.files/normalize-76eba96aa4d2e634.css"><link·rel="stylesheet"·href="../../static.files/rustdoc-35f9e32502181f1e.css"><meta·name="rustdoc-vars"·data-root-path="../../"·data-static-root-path="../../static.files/"·data-current-crate="alloc"·data-themes=""·data-resource-suffix="1.78.0"·data-rustdoc-version="1.78.0"·data-channel="1.78.0"·data-search-js="search-42d8da7a6b9792c2.js"·data-settings-js="settings-4313503d2e1961c2.js"·><script·src="../../static.files/storage-4c98445ec4002617.js"></script><script·defer·src="sidebar-items1.78.0.js"></script><script·defer·src="../../static.files/main-12cf3b4f4f9dc36d.js"></script><noscript><link·rel="stylesheet"·href="../../static.files/noscript-04d5337699b92874.css"></noscript><link·rel="alternate·icon"·type="image/png"·href="../../static.files/favicon-16x16-8b506e7a72182f1c.png"><link·rel="alternate·icon"·type="image/png"·href="../../static.files/favicon-32x32-422f7d1d52889060.png"><link·rel="icon"·type="image/svg+xml"·href="../../static.files/favicon-2c020d218678b618.svg"></head><body·class="rustdoc·struct"><!--[if·lte·IE·11]><div·class="warning">This·old·browser·is·unsupported·and·will·most·likely·display·funky·things.</div><![endif]--><nav·class="mobile-topbar"><button·class="sidebar-menu-toggle"·title="show·sidebar"></button><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-151179464ae7ed46.svg"·alt=""></a></nav><nav·class="sidebar"><div·class="sidebar-crate"><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-151179464ae7ed46.svg"·alt="logo"></a><h2><a·href="../../alloc/index.html">alloc</a><span·class="version">1.78.0</span></h2></div><h2·class="location"><a·href="#">Utf8Chunks</a></h2><div·class="sidebar-elems"><section><h3><a·href="#implementations">Methods</a></h3><ul·class="block·method"><li><a·href="#method.new">new</a></li></ul><h3><a·href="#trait-implementations">Trait·Implementations</a></h3><ul·class="block·trait-implementation"><li><a·href="#impl-Clone-for-Utf8Chunks%3C'a%3E">Clone</a></li><li><a·href="#impl-Debug-for-Utf8Chunks%3C'_%3E">Debug</a></li><li><a·href="#impl-FusedIterator-for-Utf8Chunks%3C'_%3E">FusedIterator</a></li><li><a·href="#impl-Iterator-for-Utf8Chunks%3C'a%3E">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">Freeze</a></li><li><a·href="#impl-RefUnwindSafe-for-Utf8Chunks%3C'a%3E">RefUnwindSafe</a></li><li><a·href="#impl-Send-for-Utf8Chunks%3C'a%3E">Send</a></li><li><a·href="#impl-Sync-for-Utf8Chunks%3C'a%3E">Sync</a></li><li><a·href="#impl-Unpin-for-Utf8Chunks%3C'a%3E">Unpin</a></li><li><a·href="#impl-UnwindSafe-for-Utf8Chunks%3C'a%3E">UnwindSafe</a></li></ul><h3><a·href="#blanket-implementations">Blanket·Implementations</a></h3><ul·class="block·blanket-implementation"><li><a·href="#impl-Any-for-T">Any</a></li><li><a·href="#impl-Borrow%3CT%3E-for-T">Borrow&lt;T&gt;</a></li><li><a·href="#impl-BorrowMut%3CT%3E-for-T">BorrowMut&lt;T&gt;</a></li><li><a·href="#impl-From%3CT%3E-for-T">From&lt;T&gt;</a></li><li><a·href="#impl-Into%3CU%3E-for-T">Into&lt;U&gt;</a></li><li><a·href="#impl-IntoIterator-for-I">IntoIterator</a></li><li><a·href="#impl-ToOwned-for-T">ToOwned</a></li><li><a·href="#impl-TryFrom%3CU%3E-for-T">TryFrom&lt;U&gt;</a></li><li><a·href="#impl-TryInto%3CU%3E-for-T">TryInto&lt;U&gt;</a></li></ul></section><h2><a·href="index.html">In·alloc::str</a></h2></div></nav><div·class="sidebar-resizer"></div>
2 ····<main><div·class="width-limiter"><nav·class="sub"><form·class="search-form"><span></span><div·id="sidebar-button"·tabindex="-1"><a·href="../../alloc/all.html"·title="show·sidebar"></a></div><input·class="search-input"·name="search"·aria-label="Run·search·in·the·documentation"·autocomplete="off"·spellcheck="false"·placeholder="Click·or·press·‘S’·to·search,·‘?’·for·more·options…"·type="search"><div·id="help-button"·tabindex="-1"><a·href="../../help.html"·title="help">?</a></div><div·id="settings-menu"·tabindex="-1"><a·href="../../settings.html"·title="settings"><img·width="22"·height="22"·alt="Change·settings"·src="../../static.files/wheel-7b819b6101059cd0.svg"></a></div></form></nav><section·id="main-content"·class="content"><div·class="main-heading"><h1>Struct·<a·href="../index.html">alloc</a>::<wbr><a·href="index.html">str</a>::<wbr><a·class="struct"·href="#">Utf8Chunks</a><button·id="copy-path"·title="Copy·item·path·to·clipboard"><img·src="../../static.files/clipboard-7571035ce49a181d.svg"·width="19"·height="18"·alt="Copy·item·path"></button></h1><span·class="out-of-band"><a·class="src"·href="../../src/core/str/lossy.rs.html#145">source</a>···<button·id="toggle-all-docs"·title="collapse·all·docs">[<span>&#x2212;</span>]</button></span></div><pre·class="rust·item-decl"><code>pub·struct·Utf8Chunks&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>utf8_chunks</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/99543">#99543</a>)</span></div></span><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·slices2 ····<main><div·class="width-limiter"><nav·class="sub"><form·class="search-form"><span></span><div·id="sidebar-button"·tabindex="-1"><a·href="../../alloc/all.html"·title="show·sidebar"></a></div><input·class="search-input"·name="search"·aria-label="Run·search·in·the·documentation"·autocomplete="off"·spellcheck="false"·placeholder="Click·or·press·‘S’·to·search,·‘?’·for·more·options…"·type="search"><div·id="help-button"·tabindex="-1"><a·href="../../help.html"·title="help">?</a></div><div·id="settings-menu"·tabindex="-1"><a·href="../../settings.html"·title="settings"><img·width="22"·height="22"·alt="Change·settings"·src="../../static.files/wheel-7b819b6101059cd0.svg"></a></div></form></nav><section·id="main-content"·class="content"><div·class="main-heading"><h1>Struct·<a·href="../index.html">alloc</a>::<wbr><a·href="index.html">str</a>::<wbr><a·class="struct"·href="#">Utf8Chunks</a><button·id="copy-path"·title="Copy·item·path·to·clipboard"><img·src="../../static.files/clipboard-7571035ce49a181d.svg"·width="19"·height="18"·alt="Copy·item·path"></button></h1><span·class="out-of-band"><a·class="src"·href="https://doc.rust-lang.org/1.78.0/src/core/str/lossy.rs.html#145">source</a>···<button·id="toggle-all-docs"·title="collapse·all·docs">[<span>&#x2212;</span>]</button></span></div><pre·class="rust·item-decl"><code>pub·struct·Utf8Chunks&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>utf8_chunks</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/99543">#99543</a>)</span></div></span><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
3 (<a·href="../../core/primitive.str.html"·title="primitive·str"><code>&amp;str</code></a>)·and·byte·slices·(<a·href="../../core/primitive.slice.html"·title="primitive·slice"><code>&amp;[u8]</code></a>).</p>3 (<a·href="https://doc.rust-lang.org/1.78.0/core/primitive.str.html"·title="primitive·str"><code>&amp;str</code></a>)·and·byte·slices·(<a·href="https://doc.rust-lang.org/1.78.0/core/primitive.slice.html"·title="primitive·slice"><code>&amp;[u8]</code></a>).</p>
4 <p>If·you·want·a·simple·conversion·from·UTF-8·byte·slices·to·string·slices,4 <p>If·you·want·a·simple·conversion·from·UTF-8·byte·slices·to·string·slices,
5 <a·href="fn.from_utf8.html"·title="fn·alloc::str::from_utf8"><code>from_utf8</code></a>·is·easier·to·use.</p>5 <a·href="fn.from_utf8.html"·title="fn·alloc::str::from_utf8"><code>from_utf8</code></a>·is·easier·to·use.</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>
  
9 <div·class="example-wrap"><pre·class="rust·rust-example-rendered"><code><span·class="attr">#![feature(utf8_chunks)]9 <div·class="example-wrap"><pre·class="rust·rust-example-rendered"><code><span·class="attr">#![feature(utf8_chunks)]
Offset 16, 199 lines modifiedOffset 16, 199 lines modified
16 ········push(chunk.valid());16 ········push(chunk.valid());
  
17 ········<span·class="kw">if·</span>!chunk.invalid().is_empty()·{17 ········<span·class="kw">if·</span>!chunk.invalid().is_empty()·{
18 ············push(<span·class="string">"\u{FFFD}"</span>);18 ············push(<span·class="string">"\u{FFFD}"</span>);
19 ········}19 ········}
20 ····}20 ····}
21 }</code></pre><a·class="test-arrow"·target="_blank"·href="https://play.rust-lang.org/?code=%23!%5Ballow(unused)%5D%0A%23!%5Bfeature(utf8_chunks)%5D%0A%0Afn+main()+%7B%0A++++use+std::str::Utf8Chunks;%0A++++%0A++++fn+from_utf8_lossy%3CF%3E(input:+%26%5Bu8%5D,+mut+push:+F)+where+F:+FnMut(%26str)+%7B%0A++++++++for+chunk+in+Utf8Chunks::new(input)+%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;version=nightly&amp;edition=2021">Run</a></div>21 }</code></pre><a·class="test-arrow"·target="_blank"·href="https://play.rust-lang.org/?code=%23!%5Ballow(unused)%5D%0A%23!%5Bfeature(utf8_chunks)%5D%0A%0Afn+main()+%7B%0A++++use+std::str::Utf8Chunks;%0A++++%0A++++fn+from_utf8_lossy%3CF%3E(input:+%26%5Bu8%5D,+mut+push:+F)+where+F:+FnMut(%26str)+%7B%0A++++++++for+chunk+in+Utf8Chunks::new(input)+%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;version=nightly&amp;edition=2021">Run</a></div>
22 </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-Utf8Chunks%3C'a%3E"·class="impl"><a·class="src·rightside"·href="../../src/core/str/lossy.rs.html#149">source</a><a·href="#impl-Utf8Chunks%3C'a%3E"·class="anchor">§</a><h3·class="code-header">impl&lt;'a&gt;·<a·class="struct"·href="struct.Utf8Chunks.html"·title="struct·alloc::str::Utf8Chunks">Utf8Chunks</a>&lt;'a&gt;</h3[·...·truncated·by·diffoscope;·len:·336,·SHA:·96670bc8227e53d8cb20d77bf0970e05b048a1ba4a3f6cf4200397823439b95d·...·]/core/primitive.u8.html">u8</a>])·-&gt;·<a·class="struct"·href="struct.Utf8Chunks.html"·title="struct·alloc::str::Utf8Chunks">Utf8Chunks</a>&lt;'a&gt;·<a·href="#"·class="tooltip"·data-notable-ty="Utf8Chunks&lt;&#39;a&gt;">ⓘ</a></h4></section><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>utf8_chunks</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/99543">#99543</a>)</span></div></span></summary><div·class="docblock"><p>Creates·a·new·iterator·to·decode·the·bytes.</p>22 </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-Utf8Chunks%3C'a%3E"·class="impl"><a·class="src·rightside"·href="https://doc.rust-lang.org/1.78.0/src/core/str/lossy.rs.html#149">source</a><a·href="#impl-Utf8Chunks%3C'a%3E"·class="anchor">§</a><h3·class="code-header">impl&lt;'a&gt;·<a·class="struct"·href="struct.Utf8Chunks.html"·title="struct·alloc::str::Utf8Chunks">U[·...·truncated·by·diffoscope;·len:·417,·SHA:·5a2867bc69f2790c62d5cdfd57f3679edb6eae64fcbc59f893239b389ee3ce65·...·]/core/primitive.u8.html">u8</a>])·-&gt;·<a·class="struct"·href="struct.Utf8Chunks.html"·title="struct·alloc::str::Utf8Chunks">Utf8Chunks</a>&lt;'a&gt;·<a·href="#"·class="tooltip"·data-notable-ty="Utf8Chunks&lt;&#39;a&gt;">ⓘ</a></h4></section><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>utf8_chunks</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/99543">#99543</a>)</span></div></span></summary><div·class="docblock"><p>Creates·a·new·iterator·to·decode·the·bytes.</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-Utf8Chunks%3C'a%3E"·class="impl"><a·class="src·rightside"·href="../../src/core/str/lossy.rs.html#144">source</a><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</a>·for[·...·truncated·by·diffoscope;·len:·5423,·SHA:·da4eab5353d885c36a5a278237e08c29e7ba0f09584f34806b9525c2928269f9·...·]/core/primitive.usize.html">usize</a>&gt;(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-Utf8Chunks%3C'a%3E"·class="impl"><a·class="src·rightside"·href="https://doc.rust-lang.org/1.78.0/src/core/str/lossy.rs.html#144">source</a><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.78.0/core/clone/trait.Clon[·...·truncated·by·diffoscope;·len:·6044,·SHA:·4d61dc95a419177c07ae2021055a661d44b2d82d7167340583f43ab74c74f56f·...·]/core/primitive.usize.html">usize</a>&gt;(
24 ····&amp;mut·self24 ····&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.78.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.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title=[·...·truncated·by·diffoscope;·len:·381,·SHA:·88c48923c9b7ea5cc47c1087c60e09656e81d4671c58071ba2bef826335388bc·...·]/core/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:·1785,·SHA:·19053018de1acf5c85a547b4f740a12b61b1dafeb5940dd6e6ded8d48e943731·...·]/core/primitive.usize.html">usize</a><div·class="where">where26 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></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:·402867e9e3549fef747dcb22b92bda79093f02d1378ea733f633e3a91e074bca·...·]/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:·5b5aaec46c04cf77d2fa06e88cd6f0a2bd8d201412bc325302bd2f8f21b39207·...·]/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.78.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:·84ae0beb16240102bae2355bb8c543b17f3f107e3c06b320839aa401eebb1945·...·]/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:·6b808f54a13578d2e276864bb3eb79ae7b452b8959e79f7ea7ab1180574b77fc·...·]/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.78.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.78.0/cor[·...·truncated·by·diffoscope;·len:·3504,·SHA:·6d21b6d637e0b2e9953a37a26fd19e00da089147d4acaf696c94d448de4ce419·...·]/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.78.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:·5667b9b6c9778ff3b9d23ed0a110e7ab9d3fccc786fdcaca8c17edf996236439·...·]/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.78.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:·e83c903581753673e083ce8dd809879a2fc81ab3050eb6db267d7fa26b15e035·...·]/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.78.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:·1c6bb9803ee8832ebd4c28a08a952178165595b6870cf35d3c89454b9da828b2·...·]/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.78.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.78.0/core/iter/traits/it[·...·truncated·by·diffoscope;·len:·1329,·SHA:·d9299c8edc606ed82f24d61ce441bec451141d684c2a9a75074f5b19c57f196c·...·]/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.78.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:·c1b5e692e89c9c809075ee8ee72fb15a9ec46c075b08450e1f707d672a224750·...·]/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.78.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:·98627729f77dcf1c9d258f343354ba600b7134c6b3929080f231e8de7155b70b·...·]/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.78.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.78.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.78.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:·d6282409add0999f2130eb6bbe6d0473ce96bf2544799e8bc22156f3c2d2e0dd·...·]/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.78.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:·7301b6beba7b6885849be90a625df68ef739a5374af456c51fe2e81d91a25363·...·]/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.78.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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::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:·fb4c9589a16c7b6d697c109d1193d2f1e763e5dd967101c2fd92b32416972229·...·]/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.78.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:·98f6effefa44d759c249143d83623f0055d937382bfc398b7e1f5e92cd413657·...·]/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.78.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:·7abbad666ec88a1053b8aca2a481d629a3ef3596eddb570c381205fa2d859a52·...·]/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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·916,·SHA:·30d0b2a76513c5a880e9aee43e92b18805845cfcfe5783f62dc090167a439e63·...·]/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.78.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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·140,·SHA:·752f473b57e7444ebfddf5ea7fd40a332e83ec55524a6c31b5ee0f82a5dea819·...·]/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:·7da07154834a15b8ae55b4fd41479da070ccbd27e071909f81698570c306a081·...·]/core/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.78.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:·76aa2ad154f88085ee3f8a22721a7e6812680bac785d19059532407f50da1801·...·]/core/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.78.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:·c89169e5bf1c4724c7b411e568b6dad6475896f2606f557b3d708359ef71f5cc·...·]/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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·1052,·SHA:·110b47c7083083d565fcfc89337fddc8e5c87e81b2f720f3f7b0ded55e8500fb·...·]/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.78.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:·53634008856676c70c32b501f7ec498c1f86d123cc9b5b898256a69895ff31fc·...·]/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.78.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:·8464264e074dde5d84f0414ab3b5b2d8da83f3c9e3ca04c45458241580a8c80d·...·]/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.78.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.78.0/core/iter/adapte[·...·truncated·by·diffoscope;·len:·175,·SHA:·16fe7225bf05b478e2828b347c3d23ded9a22f89d8887a2c65d9f7b3faf1b0e7·...·]/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:·77dd41e041d66c618d306e900a9159cf1b00478b8f37e5692be62119a1d4fcda·...·]/core/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.78.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:·00ccbb673c11ed48d8c6aa2a3f8984fb298202e7bccfa42f1ac21290fcc0fb06·...·]/core/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.78.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:·c18326af66652e52fa627bfd0312af7fa2ad0ddc162b12a46e61047a031b0264·...·]/core/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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·1234,·SHA:·3b805567411cdcebed740f9e8d400dbe7fb487504f40e284544a140155090fdf·...·]/core/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.78.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:·39eeddf219b211245393e51a591d5064c740fa9be49d88883d8a6474679741ad·...·]/core/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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·1058,·SHA:·b390dbdda8d7e93604b5ecd906a93efd03fe19bdaf41cf12893fd361bf974307·...·]/core/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.78.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:·9369fa85b74ff841f7401949cadba6dfbbbeead2a99568f20dcfd5aab20d61ab·...·]/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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·1163,·SHA:·5772149166d344bf8fa5ebbd9db8693a8f2e5f031c50338e8f1523ef72f814d6·...·]/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:·a25e81a74cc82c1837477e2b0cea682fff9f43550640901b8010ac501ca69e3d·...·]/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.78.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:·6216516fe581c401abda3c95818192e8f030e2008c9bbdbaafebba16f33ea9bd·...·]/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.78.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:·de8f1023275132502c1569b0ef9a557dc98eaf60aae97cdb916e52f9f55100aa·...·]/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.78.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:·485843399c56e24bdf020ff0610d0ce1f62fbac5530d9880a1a7417105e3d70f·...·]/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.78.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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(<a·class="primitive"·href="https://doc.rust-lang.org/1.78.0/core/primitive.reference.html">&amp;mut·St</a>,·Self::<a·class="associatedty[·...·truncated·by·diffoscope;·len:·449,·SHA:·f12c268a8a8111b9e7126ad78bf5523a63733caa63d187c4fe792309ea41acdf·...·]/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:·8b31595e3cee3022819032aac82e3df712188a2a6dcc20da6939262e5e528591·...·]/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.78.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.78.0/core/iter/trai[·...·truncated·by·diffoscope;·len:·690,·SHA:·371190e5c1bf9b7dde6e84447965a69946212b977b9eb6d89048fbe34c5dda1c·...·]/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.78.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.78.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:·9b6a337a3ad68c2a987b52450c153f87a04a8ed9e83603d26077fe6e70d61edf·...·]/core/iter/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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·976,·SHA:·2a9182f6fe88e0b8a9b1ae1f46cace940cc0b8736033c354c0f0ccbf1c196e7a·...·]/core/iter/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.78.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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;[Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtyp[·...·truncated·by·diffoscope;·len:·135,·SHA:·0b06a6094d42ccbc8bce5b01c4383961fe7f1967f05e4c9f1ff33e71e425fb26·...·]/core/primitive.array.html">N</a>])·-&gt;·R,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iter_map_windows</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/87155">#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.78.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:·238f6b49b3e28d725c57040edaa60bfbb34f140155e6af1d30eab52da1c7274f·...·]/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.78.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:·0d33056cee8a4f9b70b573c0adecc2f3599a2f8d9fa9f2c2044e9118ab134f73·...·]/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:·cfd3edf89fe5aca24b994f83b0d7da765620394e35140e694d98233d4d92481b·...·]/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.78.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.78.0/core/op[·...·truncated·by·diffoscope;·len:·841,·SHA:·9cba1b175fb3726d7f1f01da9be7c1a56568a68e4ce7915a468b730902daf8d3·...·]/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.78.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:·772,·SHA:·31d2052382378512fa905c6d5297d384eac7b7f126141ce561719c0e27cc9d39·...·]/core/primitive.reference.html">&amp;mut·Self</a><div·class="where">where74 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·934,·SHA:·ea20d2e0fe9388580ea08100baa9120b5e9b6cb48f43fc846f15db8b9649e7f6·...·]/core/primitive.reference.html">&amp;mut·Self</a><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:·98760b16b1ed91f9558e6e2637724a4608316181d5f6f4d236e896a83eca9af9·...·]/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.78.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.78.0/core/it[·...·truncated·by·diffoscope;·len:·523,·SHA:·97064c705f6f4bdf74469c54fabcf580d21893127d1b4cd9a9c1018a717ef153·...·]/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.78.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.78.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:·e5d524e874326d0b9b733f5ee809c6595cde869afab0cc3d4ba8454093f420da·...·]/core/primitive.reference.html">&amp;mut·E</a><div·class="where">where77 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.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.78.0/core/iter/tr[·...·truncated·by·diffoscope;·len:·728,·SHA:·01937c2dc314c259495665570ae249c94b4a5b0719718f5f1188e6fc64ecf487·...·]/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.78.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.78.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:·b0297783e056393a542c4058b42c18523a86c961c1b6ce3bc94342c1a2c10c58·...·]/core/primitive.tuple.html">(B,·B)</a><div·class="where">where79 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></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:·00bd47017b1bdd1bbe2c3fc932d955a8aa2f7f5eff8c00e3001ae28a982a5883·...·]/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.78.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.78.0/core/default/trait.Default.html"·title="trait·core::default::Default">Default</a>·+·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/collect/trait.Extend.html"·title="trait·core::iter::traits::collec[·...·truncated·by·diffoscope;·len:·95,·SHA:·8b3be1d0042cae0550f865faf5849221240bdf04eb1b2107605b72d48c3ad29c·...·]/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:·783,·SHA:·f8b50287f3e106633ed79a84072d3ddd9d98672efd685d2433c61b5549ce051e·...·]/core/primitive.bool.html">bool</a><div·class="where">where82 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·972,·SHA:·6de765542031617a9c28ac98fe6df619e58e62d9c65ec5b1c185a7152b8944e5·...·]/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.78.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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·135,·SHA:·51ff5f5c7ebd8440623ea71b125c5a5837e809e308fe1a13fbe19cddb941dbd9·...·]/core/primitive.bool.html">bool</a>,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iter_is_partitioned</code>&nbsp;<a·href="https://github.com/rust-lang/rust/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:·6f406a351b93047f56fa70265a6bf28ec6874f75cd6cc5a39d51c7af462f2992·...·]/core/iter/traits/iterator/trait.Iterator.html#method.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.78.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:·2c74873f4e5ba70004a1c7edd1cc3f9e2d91271295dd1591e2d26848df4c02ba·...·]/core/iter/traits/iterator/trait.Iterator.html#method.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.78.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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(B,·Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.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.78.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:·eecdce021399d206eb3ef5af12ee7663b4eb0dca55b0f411c7fa66f605b6b2e2·...·]/core/iter/traits/iterator/trait.Iterator.html#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.78.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:·52912e82c4b0a760d06f77eb4ee3a59ba70dd76cb532954900c73ae94c652674·...·]/core/iter/traits/iterator/trait.Iterator.html#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.78.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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.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.78.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.78.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:·ffdacd6b524bc823efebbf23dc0f77317a07fe9c8b691f2ea18db7aa0c08b146·...·]/core/iter/traits/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.78.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:·1d6c4809cea8748e901d3f94777f450d430f3161f6ac05ed1c178d9327f966a3·...·]/core/iter/traits/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.78.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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(B,·Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::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:·dbe3a08fe63abd47570741e71208c31aaf51152feac5917db07665a1f56bb3e3·...·]/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.78.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:·b60215068a6d9721be05f81098c51167d7138c4042f140cad42f77c4df43f597·...·]/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.78.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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·352,·SHA:·e7c3c296abe2c0a183967153e4ae7fd50bafa2ae7088e3e78b3b48fee253adc6·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::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:·a9dce8bb557b5a11426bf2ffcbd5eea7c6c870833e3ee5bb072dcaaa11687b0c·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_reduce"·class="fn">try_reduce</a>&lt;F,·R&gt;(99 operation.·<a·href="https://doc.rust-lang.org/1.78.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:·7a18fdd041b1a001b4a8feb289ee127fd9240232239269eb35dc3b8f74783ec9·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_reduce"·class="fn">try_reduce</a>&lt;F,·R&gt;(
100 ····&amp;mut·self,100 ····&amp;mut·self,
101 ····f:·F101 ····f:·F
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.78.0/core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&gt;::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/ops/try_trait/trait.Try.html#associatedtype.Residual"·title="type[·...·truncated·by·diffoscope;·len:·754,·SHA:·6fb4dfdb6b4da68921c1e7f8b75d99cf293d58318d684a840254ce9576957bea·...·]/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.78.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:·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:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·140,·SHA:·c27972e6fa3464c9476eaa185e8657edb6bb294f148403f3d079285294a9f909·...·]/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·=·Self::<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.78.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.78.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.78.0/core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&gt;::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/ops/try_trait/trait.Try.html#associatedtype.Residual"·title="type[·...·truncated·by·diffoscope;·len:·412,·SHA:·22b8cbb007e5cce82b9d13a65bfa56aa8d83c32541fac25f4d9b3857b0540908·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;&gt;,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iterator_try_reduce</code>&nbsp;<a·href="https://github.com/rust-lang/rust/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:·65b80c848af6e465c8c5aef4ec8d3faaa399d30c8427c9507fda7b3bd1d3ea93·...·]/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.78.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:·bc0d658d56e348823de15386e1cd4ab49109f3a7a055a4573a19391b47071193·...·]/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.78.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:·95a840b532d3d621bde4032d63854eb0a481248e2b4bbb3ef058dbffb4dae4fa·...·]/core/primitive.bool.html">bool</a><div·class="where">where109 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·1018,·SHA:·e61cd6bdd36729cc38e57fcaea2ccb91a23a5acbda3c8986071f19bf1ecfc52a·...·]/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.78.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:·f828c62edd4fe85e217286f359b56c116e14ed18bb292ba1cc13d3ed7146909e·...·]/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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·1172,·SHA:·e64ab74d116d286191ad43d9d9e10411fc011c23724aa806e9a8f9b0be0757e3·...·]/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.78.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:·21d7086b3ce0092e3f7a6a41174339bbd8724e7d186158db4db3385a73d94e8e·...·]/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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·1051,·SHA:·ecc0b8fccd861464760f9ae047ff6ab98c91a1db010cb5fa59a8c2ab883db7c4·...·]/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.78.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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·130,·SHA:·130a13019dc175d02304b4f550157e2f13ac15c2f25a979c74161d10b146ab89·...·]/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:·ac4da3337aac1ec10038e246be9cb719eeb5af1acc709f5a6a25b91900c56f53·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_find"·class="fn">try_find</a>&lt;F,·R&gt;(116 the·first·non-none·result.·<a·href="https://doc.rust-lang.org/1.78.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:·8ced1b10e78750774c5c8ed995ed83dcd13983aa75d329acf8069da106ab9f4a·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_find"·class="fn">try_find</a>&lt;F,·R&gt;(
117 ····&amp;mut·self,117 ····&amp;mut·self,
118 ····f:·F118 ····f:·F
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.78.0/core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&gt;::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/ops/try_trait/trait.Try.html#associatedtype.Residual"·title="type[·...·truncated·by·diffoscope;·len:·626,·SHA:·95f9831257b68862cbcbf54f0ad2ff4e597a4c9f763112d1da8a0897dadcf872·...·]/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.78.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::Iterator::Item">Item</a>)·-&gt;·R,121 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·R,
122 ····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;,122 ····R:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.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.78.0/core/primitive.bool.html">bool</a>&gt;,
123 ····&lt;R·as·<a·class="trait"·href="../../core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&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·returns123 ····&lt;R·as·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&gt;::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/ops/try_trait/trait.Try.html#associatedtype.Residual"·title="type[·...·truncated·by·diffoscope;·len:·412,·SHA:·22b8cbb007e5cce82b9d13a65bfa56aa8d83c32541fac25f4d9b3857b0540908·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;&gt;,</div></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
124 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">where124 the·first·true·result·or·the·first·error.·<a·href="https://doc.rust-lang.org/1.78.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:·fa9d94b216f6e4ce6035b4762e3bf17cb86a0272db0a55a056f05c68bcaeb0da·...·]/core/primitive.usize.html">usize</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.78.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
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:·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">where126 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·1190,·SHA:·882e9e9a037f916d0ed4aa6d749399e6e01ca81811eacfc54a484818cb5d5029·...·]/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.78.0/core/cmp/trait.Ord.html"·title="trait·core::cmp::Ord">Ord</a>,
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.78.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>(&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·the129 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/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
130 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">where130 specified·function.·<a·href="https://doc.rust-lang.org/1.78.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:·0367b1bacc0a7d8e05f1c5181f8c4ea428f3f11edbae0e76811f3ef1d4925e41·...·]/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; 82836/285362 bytes (29.03%) of diff not shown.
73.5 KB
./usr/share/doc/rust-web-doc/html/alloc/str/struct.Utf8Error.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="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.write(`<link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/SourceSerif4-Regular-46f98efaafac5295.ttf.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/FiraSans-Regular-018c141bf0843ffd.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/FiraSans-Medium-8f9a781e4970d388.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/SourceCodePro-Regular-562dcc5011b6de7d.ttf.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/SourceCodePro-Semibold-d899c5a5c4aeb14a.ttf.woff2">`)</script><link·rel="stylesheet"·href="../../static.files/normalize-76eba96aa4d2e634.css"><link·rel="stylesheet"·href="../../static.files/rustdoc-35f9e32502181f1e.css"><meta·name="rustdoc-vars"·data-root-path="../../"·data-static-root-path="../../static.files/"·data-current-crate="alloc"·data-themes=""·data-resource-suffix="1.78.0"·data-rustdoc-version="1.78.0"·data-channel="1.78.0"·data-search-js="search-42d8da7a6b9792c2.js"·data-settings-js="settings-4313503d2e1961c2.js"·><script·src="../../static.files/storage-4c98445ec4002617.js"></script><script·defer·src="sidebar-items1.78.0.js"></script><script·defer·src="../../static.files/main-12cf3b4f4f9dc36d.js"></script><noscript><link·rel="stylesheet"·href="../../static.files/noscript-04d5337699b92874.css"></noscript><link·rel="alternate·icon"·type="image/png"·href="../../static.files/favicon-16x16-8b506e7a72182f1c.png"><link·rel="alternate·icon"·type="image/png"·href="../../static.files/favicon-32x32-422f7d1d52889060.png"><link·rel="icon"·type="image/svg+xml"·href="../../static.files/favicon-2c020d218678b618.svg"></head><body·class="rustdoc·struct"><!--[if·lte·IE·11]><div·class="warning">This·old·browser·is·unsupported·and·will·most·likely·display·funky·things.</div><![endif]--><nav·class="mobile-topbar"><button·class="sidebar-menu-toggle"·title="show·sidebar"></button><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-151179464ae7ed46.svg"·alt=""></a></nav><nav·class="sidebar"><div·class="sidebar-crate"><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-151179464ae7ed46.svg"·alt="logo"></a><h2><a·href="../../alloc/index.html">alloc</a><span·class="version">1.78.0</span></h2></div><h2·class="location"><a·href="#">Utf8Error</a></h2><div·class="sidebar-elems"><section><h3><a·href="#implementations">Methods</a></h3><ul·class="block·method"><li><a·href="#method.error_len">error_len</a></li><li><a·href="#method.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">Clone</a></li><li><a·href="#impl-Copy-for-Utf8Error">Copy</a></li><li><a·href="#impl-Debug-for-Utf8Error">Debug</a></li><li><a·href="#impl-Display-for-Utf8Error">Display</a></li><li><a·href="#impl-Eq-for-Utf8Error">Eq</a></li><li><a·href="#impl-Error-for-Utf8Error">Error</a></li><li><a·href="#impl-PartialEq-for-Utf8Error">PartialEq</a></li><li><a·href="#impl-StructuralPartialEq-for-Utf8Error">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">Freeze</a></li><li><a·href="#impl-RefUnwindSafe-for-Utf8Error">RefUnwindSafe</a></li><li><a·href="#impl-Send-for-Utf8Error">Send</a></li><li><a·href="#impl-Sync-for-Utf8Error">Sync</a></li><li><a·href="#impl-Unpin-for-Utf8Error">Unpin</a></li><li><a·href="#impl-UnwindSafe-for-Utf8Error">UnwindSafe</a></li></ul><h3><a·href="#blanket-implementations">Blanket·Implementations</a></h3><ul·class="block·blanket-implementation"><li><a·href="#impl-Any-for-T">Any</a></li><li><a·href="#impl-Borrow%3CT%3E-for-T">Borrow&lt;T&gt;</a></li><li><a·href="#impl-BorrowMut%3CT%3E-for-T">BorrowMut&lt;T&gt;</a></li><li><a·href="#impl-From%3CT%3E-for-T">From&lt;T&gt;</a></li><li><a·href="#impl-Into%3CU%3E-for-T">Into&lt;U&gt;</a></li><li><a·href="#impl-ToOwned-for-T">ToOwned</a></li><li><a·href="#impl-ToString-for-T">ToString</a></li><li><a·href="#impl-TryFrom%3CU%3E-for-T">TryFrom&lt;U&gt;</a></li><li><a·href="#impl-TryInto%3CU%3E-for-T">TryInto&lt;U&gt;</a></li></ul></section><h2><a·href="index.html">In·alloc::str</a></h2></div></nav><div·class="sidebar-resizer"></div>1 <!DOCTYPE·html><html·lang="en"><head><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.write(`<link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/SourceSerif4-Regular-46f98efaafac5295.ttf.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/FiraSans-Regular-018c141bf0843ffd.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/FiraSans-Medium-8f9a781e4970d388.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/SourceCodePro-Regular-562dcc5011b6de7d.ttf.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/SourceCodePro-Semibold-d899c5a5c4aeb14a.ttf.woff2">`)</script><link·rel="stylesheet"·href="../../static.files/normalize-76eba96aa4d2e634.css"><link·rel="stylesheet"·href="../../static.files/rustdoc-35f9e32502181f1e.css"><meta·name="rustdoc-vars"·data-root-path="../../"·data-static-root-path="../../static.files/"·data-current-crate="alloc"·data-themes=""·data-resource-suffix="1.78.0"·data-rustdoc-version="1.78.0"·data-channel="1.78.0"·data-search-js="search-42d8da7a6b9792c2.js"·data-settings-js="settings-4313503d2e1961c2.js"·><script·src="../../static.files/storage-4c98445ec4002617.js"></script><script·defer·src="sidebar-items1.78.0.js"></script><script·defer·src="../../static.files/main-12cf3b4f4f9dc36d.js"></script><noscript><link·rel="stylesheet"·href="../../static.files/noscript-04d5337699b92874.css"></noscript><link·rel="alternate·icon"·type="image/png"·href="../../static.files/favicon-16x16-8b506e7a72182f1c.png"><link·rel="alternate·icon"·type="image/png"·href="../../static.files/favicon-32x32-422f7d1d52889060.png"><link·rel="icon"·type="image/svg+xml"·href="../../static.files/favicon-2c020d218678b618.svg"></head><body·class="rustdoc·struct"><!--[if·lte·IE·11]><div·class="warning">This·old·browser·is·unsupported·and·will·most·likely·display·funky·things.</div><![endif]--><nav·class="mobile-topbar"><button·class="sidebar-menu-toggle"·title="show·sidebar"></button><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-151179464ae7ed46.svg"·alt=""></a></nav><nav·class="sidebar"><div·class="sidebar-crate"><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-151179464ae7ed46.svg"·alt="logo"></a><h2><a·href="../../alloc/index.html">alloc</a><span·class="version">1.78.0</span></h2></div><h2·class="location"><a·href="#">Utf8Error</a></h2><div·class="sidebar-elems"><section><h3><a·href="#implementations">Methods</a></h3><ul·class="block·method"><li><a·href="#method.error_len">error_len</a></li><li><a·href="#method.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">Clone</a></li><li><a·href="#impl-Copy-for-Utf8Error">Copy</a></li><li><a·href="#impl-Debug-for-Utf8Error">Debug</a></li><li><a·href="#impl-Display-for-Utf8Error">Display</a></li><li><a·href="#impl-Eq-for-Utf8Error">Eq</a></li><li><a·href="#impl-Error-for-Utf8Error">Error</a></li><li><a·href="#impl-PartialEq-for-Utf8Error">PartialEq</a></li><li><a·href="#impl-StructuralPartialEq-for-Utf8Error">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">Freeze</a></li><li><a·href="#impl-RefUnwindSafe-for-Utf8Error">RefUnwindSafe</a></li><li><a·href="#impl-Send-for-Utf8Error">Send</a></li><li><a·href="#impl-Sync-for-Utf8Error">Sync</a></li><li><a·href="#impl-Unpin-for-Utf8Error">Unpin</a></li><li><a·href="#impl-UnwindSafe-for-Utf8Error">UnwindSafe</a></li></ul><h3><a·href="#blanket-implementations">Blanket·Implementations</a></h3><ul·class="block·blanket-implementation"><li><a·href="#impl-Any-for-T">Any</a></li><li><a·href="#impl-Borrow%3CT%3E-for-T">Borrow&lt;T&gt;</a></li><li><a·href="#impl-BorrowMut%3CT%3E-for-T">BorrowMut&lt;T&gt;</a></li><li><a·href="#impl-From%3CT%3E-for-T">From&lt;T&gt;</a></li><li><a·href="#impl-Into%3CU%3E-for-T">Into&lt;U&gt;</a></li><li><a·href="#impl-ToOwned-for-T">ToOwned</a></li><li><a·href="#impl-ToString-for-T">ToString</a></li><li><a·href="#impl-TryFrom%3CU%3E-for-T">TryFrom&lt;U&gt;</a></li><li><a·href="#impl-TryInto%3CU%3E-for-T">TryInto&lt;U&gt;</a></li></ul></section><h2><a·href="index.html">In·alloc::str</a></h2></div></nav><div·class="sidebar-resizer"></div>
2 ····<main><div·class="width-limiter"><nav·class="sub"><form·class="search-form"><span></span><div·id="sidebar-button"·tabindex="-1"><a·href="../../alloc/all.html"·title="show·sidebar"></a></div><input·class="search-input"·name="search"·aria-label="Run·search·in·the·documentation"·autocomplete="off"·spellcheck="false"·placeholder="Click·or·press·‘S’·to·search,·‘?’·for·more·options…"·type="search"><div·id="help-button"·tabindex="-1"><a·href="../../help.html"·title="help">?</a></div><div·id="settings-menu"·tabindex="-1"><a·href="../../settings.html"·title="settings"><img·width="22"·height="22"·alt="Change·settings"·src="../../static.files/wheel-7b819b6101059cd0.svg"></a></div></form></nav><section·id="main-content"·class="content"><div·class="main-heading"><h1>Struct·<a·href="../index.html">alloc</a>::<wbr><a·href="index.html">str</a>::<wbr><a·class="struct"·href="#">Utf8Error</a><button·id="copy-path"·title="Copy·item·path·to·clipboard"><img·src="../../static.files/clipboard-7571035ce49a181d.svg"·width="19"·height="18"·alt="Copy·item·path"></button></h1><span·class="out-of-band"><span·class="since"·title="Stable·since·Rust·version·1.0.0">1.0.0</span>···<a·class="src"·href="../../src/core/str/error.rs.html#47">source</a>···<button·id="toggle-all-docs"·title="collapse·all·docs">[<span>&#x2212;</span>]</button></span></div><pre·class="rust·item-decl"><code>pub·struct·Utf8Error·{·<span·class="comment">/*·private·fields·*/</span>[·...·truncated·by·diffoscope;·len:·222,·SHA:·4b1a44b18656ca0d9ab3bf25644b2c4655c25ce8b6780faaf6a622e36d89fb9c·...·]/core/primitive.u8.html"·title="primitive·u8"><code>u8</code></a>2 ····<main><div·class="width-limiter"><nav·class="sub"><form·class="search-form"><span></span><div·id="sidebar-button"·tabindex="-1"><a·href="../../alloc/all.html"·title="show·sidebar"></a></div><input·class="search-input"·name="search"·aria-label="Run·search·in·the·documentation"·autocomplete="off"·spellcheck="false"·placeholder="Click·or·press·‘S’·to·search,·‘?’·for·more·options…"·type="search"><div·id="help-button"·tabindex="-1"><a·href="../../help.html"·title="help">?</a></div><div·id="settings-menu"·tabindex="-1"><a·href="../../settings.html"·title="settings"><img·width="22"·height="22"·alt="Change·settings"·src="../../static.files/wheel-7b819b6101059cd0.svg"></a></div></form></nav><section·id="main-content"·class="content"><div·class="main-heading"><h1>Struct·<a·href="../index.html">alloc</a>::<wbr><a·href="index.html">str</a>::<wbr><a·class="struct"·href="#">Utf8Error</a><button·id="copy-path"·title="Copy·item·path·to·clipboard"><img·src="../../static.files/clipboard-7571035ce49a181d.svg"·width="19"·height="18"·alt="Copy·item·path"></button></h1><span·class="out-of-band"><span·class="since"·title="Stable·since·Rust·version·1.0.0">1.0.0</span>···<a·class="src"·href="https://doc.rust-lang.org/1.78.0/src/core/str/error.rs.html#47">source</a>···<button·id="toggle-all-docs"·title="collapse·all·docs">[<span>&#x2212;</span>]</button></span></div><pre·class="rust·item-decl"><code>pub·struct·Utf8Error·{·<span·class="comment">[·...·truncated·by·diffoscope;·len:·276,·SHA:·719be1ac19d1fc1aa5aab3a0cb2f063a1e17ee25140faba46bffe83e2caae319·...·]/core/primitive.u8.html"·title="primitive·u8"><code>u8</code></a>
3 as·a·string.</p>3 as·a·string.</p>
4 <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>s4 <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
5 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 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>
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·error·type’s·methods·can·be·used·to·create·functionality7 <p>This·error·type’s·methods·can·be·used·to·create·functionality
8 similar·to·<code>String::from_utf8_lossy</code>·without·allocating·heap·memory:</p>8 similar·to·<code>String::from_utf8_lossy</code>·without·allocating·heap·memory:</p>
  
Offset 26, 15 lines modifiedOffset 26, 15 lines modified
26 ················}·<span·class="kw">else·</span>{26 ················}·<span·class="kw">else·</span>{
27 ····················<span·class="kw">break27 ····················<span·class="kw">break
28 ················</span>}28 ················</span>}
29 ············}29 ············}
30 ········}30 ········}
31 ····}31 ····}
32 }</code></pre><a·class="test-arrow"·target="_blank"·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">Run</a></div>32 }</code></pre><a·class="test-arrow"·target="_blank"·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">Run</a></div>
33 </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·was33 </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.78.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:·1927bb1f858640a98b2dc539d77411c6cf7af95d3294e397ae453a5bf64c6e58·...·]/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
34 verified.</p>34 verified.</p>
35 <p>It·is·the·maximum·index·such·that·<code>from_utf8(&amp;input[..index])</code>35 <p>It·is·the·maximum·index·such·that·<code>from_utf8(&amp;input[..index])</code>
36 would·return·<code>Ok(_)</code>.</p>36 would·return·<code>Ok(_)</code>.</p>
37 <h5·id="examples-1"><a·class="doc-anchor"·href="#examples-1">§</a>Examples</h5>37 <h5·id="examples-1"><a·class="doc-anchor"·href="#examples-1">§</a>Examples</h5>
38 <p>Basic·usage:</p>38 <p>Basic·usage:</p>
  
39 <div·class="example-wrap"><pre·class="rust·rust-example-rendered"><code><span·class="kw">use·</span>std::str;39 <div·class="example-wrap"><pre·class="rust·rust-example-rendered"><code><span·class="kw">use·</span>std::str;
Offset 43, 15 lines modifiedOffset 43, 15 lines modified
43 </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><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>];
  
44 <span·class="comment">//·std::str::from_utf8·returns·a·Utf8Error44 <span·class="comment">//·std::str::from_utf8·returns·a·Utf8Error
45 </span><span·class="kw">let·</span>error·=·str::from_utf8(<span·class="kw-2">&amp;</span>sparkle_heart).unwrap_err();45 </span><span·class="kw">let·</span>error·=·str::from_utf8(<span·class="kw-2">&amp;</span>sparkle_heart).unwrap_err();
  
46 <span·class="comment">//·the·second·byte·is·invalid·here46 <span·class="comment">//·the·second·byte·is·invalid·here
47 </span><span·class="macro">assert_eq!</span>(<span·class="number">1</span>,·error.valid_up_to());</code></pre><a·class="test-arrow"·target="_blank"·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">Run</a></div>47 </span><span·class="macro">assert_eq!</span>(<span·class="number">1</span>,·error.valid_up_to());</code></pre><a·class="test-arrow"·target="_blank"·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">Run</a></div>
48 </div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.error_len"·class="method"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.20.0,·const·since·1.63.0">1.20.0·(const:·1.63.0)</span>···<a·class="src"·href="../../src/core/str/error.rs.html#102">source</a></span><h4·class="code-header">pub·const·fn·<a·href="#method.error_len"·class="fn">error_len</a>(&amp;self)·-&gt;·<a·class="enum"·href="../../core/option/enum.Option.html"·title="enum·core::option::Option">Op[·...·truncated·by·diffoscope;·len:·44,·SHA:·b3db8ff9848b72304ade983229cd0418789960cded4adabe78ce3f1c8bfd2591·...·]/core/primitive.usize.html">usize</a>&gt;</h4></section></summary><div·class="docblock"><p>Provides·more·information·about·the·failure:</p>48 </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.78.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.78.0/core/option/[·...·truncated·by·diffoscope;·len:·125,·SHA:·17f16933d62875784a41143288d0bd10b8fe9c327403631ac17152e29835027f·...·]/core/primitive.usize.html">usize</a>&gt;</h4></section></summary><div·class="docblock"><p>Provides·more·information·about·the·failure:</p>
49 <ul>49 <ul>
50 <li>50 <li>
51 <p><code>None</code>:·the·end·of·the·input·was·reached·unexpectedly.51 <p><code>None</code>:·the·end·of·the·input·was·reached·unexpectedly.
52 <code>self.valid_up_to()</code>·is·1·to·3·bytes·from·the·end·of·the·input.52 <code>self.valid_up_to()</code>·is·1·to·3·bytes·from·the·end·of·the·input.
53 If·a·byte·stream·(such·as·a·file·or·a·network·socket)·is·being·decoded·incrementally,53 If·a·byte·stream·(such·as·a·file·or·a·network·socket)·is·being·decoded·incrementally,
54 this·could·be·a·valid·<code>char</code>·whose·UTF-8·byte·sequence·is·spanning·multiple·chunks.</p>54 this·could·be·a·valid·<code>char</code>·whose·UTF-8·byte·sequence·is·spanning·multiple·chunks.</p>
55 </li>55 </li>
Offset 60, 22 lines modifiedOffset 60, 22 lines modified
60 The·length·provided·is·that·of·the·invalid·byte·sequence60 The·length·provided·is·that·of·the·invalid·byte·sequence
61 that·starts·at·the·index·given·by·<code>valid_up_to()</code>.61 that·starts·at·the·index·given·by·<code>valid_up_to()</code>.
62 Decoding·should·resume·after·that·sequence62 Decoding·should·resume·after·that·sequence
63 (after·inserting·a·<a·href="../../std/char/constant.REPLACEMENT_CHARACTER.html"><code>U+FFFD·REPLACEMENT·CHARACTER</code></a>)·in·case·of63 (after·inserting·a·<a·href="../../std/char/constant.REPLACEMENT_CHARACTER.html"><code>U+FFFD·REPLACEMENT·CHARACTER</code></a>)·in·case·of
64 lossy·decoding.</p>64 lossy·decoding.</p>
65 </li>65 </li>
66 </ul>66 </ul>
67 </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"><a·class="src·rightside"·href="../../src/core/str/error.rs.html#45">source</a><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="struct"·h[·...·truncated·by·diffoscope;·len:·9191,·SHA:·9a963bb40644d705abc808c2f9a6bb5a735701ac767f6d2db97daa117f1435cb·...·]/core/primitive.bool.html">bool</a></h4></section></summary><div·class='docblock'>This·method·tests·for·<code>self</code>·and·<code>other</code>·values·to·be·equal,·and·is·used67 </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"><a·class="src·rightside"·href="https://doc.rust-lang.org/1.78.0/src/core/str/error.rs.html#45">source</a><a·href="#impl-Clone-for-Utf8Error"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/clone/trait.Clone.html"·title="trait[·...·truncated·by·diffoscope;·len:·10298,·SHA:·fdb7978829ca3877ddef95ef08eb2eacd9eb993f6d7c0e95509b104219493814·...·]/core/primitive.bool.html">bool</a></h4></section></summary><div·class='docblock'>This·method·tests·for·<code>self</code>·and·<code>other</code>·values·to·be·equal,·and·is·used
68 by·<code>==</code>.</div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.ne"·class="method·trait-impl"><a·class="src·rightside"·href="../../src/core/cmp.rs.html#263">source</a><a·href="#method.ne"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../../core/cmp/trait.PartialEq.html#method.ne"·class="fn">ne</a>(&amp;self,·other:·<a·class="primitive"·href="../../core/primitive.refere[·...·truncated·by·diffoscope;·len:·62,·SHA:·08c05ae5f855368e255c51945ed5572423ad7787a7d2cf5c61719fd2a76285df·...·]/core/primitive.bool.html">bool</a></h4></section></summary><div·class='docblock'>This·method·tests·for·<code>!=</code>.·The·default·implementation·is·almost·always68 by·<code>==</code>.</div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.ne"·class="method·trait-impl"><a·class="src·rightside"·href="https://doc.rust-lang.org/1.78.0/src/core/cmp.rs.html#263">source</a><a·href="#method.ne"·class="anchor">§</a><h4·class="code-header">fn·<a·href="https://doc.rust-lang.org/1.78.0/core/cmp/trait.PartialEq.html#method.ne"·class="fn">ne</a>(&amp;self,·other:·[·...·truncated·by·diffoscope;·len:·170,·SHA:·7c0c9680b4d89f8edf1ab3e11bac78a0c9f93eef84e615310dcfa7ec178d9955·...·]/core/primitive.bool.html">bool</a></h4></section></summary><div·class='docblock'>This·method·tests·for·<code>!=</code>.·The·default·implementation·is·almost·always
69 sufficient,·and·should·not·be·overridden·without·very·good·reason.</div></details></div></details><section·id="impl-Copy-for-Utf8Error"·class="impl"><a·class="src·rightside"·href="../../src/core/str/error.rs.html#45">source</a><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="struct"·hre[·...·truncated·by·diffoscope;·len:·3907,·SHA:·0e14bfffa64100b7812080a4bc7230bc6b73cd8d35c83a9d23581830c580bdbf·...·]/core/any/trait.Any.html"·title="trait·core::any::Any">Any</a>·for·T<div·class="where">where69 sufficient,·and·should·not·be·overridden·without·very·good·reason.</div></details></div></details><section·id="impl-Copy-for-Utf8Error"·class="impl"><a·class="src·rightside"·href="https://doc.rust-lang.org/1.78.0/src/core/str/error.rs.html#45">source</a><a·href="#impl-Copy-for-Utf8Error"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/marker/trait.Copy.html"·title="trait·[·...·truncated·by·diffoscope;·len:·4285,·SHA:·87891b2bdce34e9126fa9b90c02e90d1c6ba7eb177c630f16612a164dcbe9bb7·...·]/core/any/trait.Any.html"·title="trait·core::any::Any">Any</a>·for·T<div·class="where">where
70 ····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:·9db8bacb767d75cc3351ca7341c388130aa05ebef490d992be5374f16eedc378·...·]/src/core/borrow.rs.html#208">source</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">where70 ····T:·'static·+·?<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">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:·039b8952ccb1ab7d8f15cd519cbc10f4afc149276d0f9cfd3a53117d606059df·...·]/src/core/borrow.rs.html#208">source</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
71 ····T:·?<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::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:·b2ffbab17ff1ef71ba4c506a3aaa515da2082da6f02a53862ce1ca2b2b25f5b4·...·]/src/core/borrow.rs.html#216">source</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">where71 ····T:·?<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/marker/trait.Sized.html"·title="trait·core::marker::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:·952d76e7bcf7b521fffa418ce638abf69976de0942360e56f93e419ca3389394·...·]/src/core/borrow.rs.html#216">source</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
72 ····T:·?<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::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:·befefcb8cb29dc857e1f3050572f6f470317e3350e0851c4ed6e56cc38673a92·...·]/core/convert/trait.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 ····T:·?<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/marker/trait.Sized.html"·title="trait·core::marker::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:·204bc28c8766993ff59d26bb790f1469ab686e6f172c57f35aa987a81507a7b1·...·]/core/convert/trait.From.html#tymethod.from"·class="fn">from</a>(t:·T)·-&gt;·T</h4></section></summary><div·class="docblock"><p>Returns·the·argument·unchanged.</p>
73 </div></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">where73 </div></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.78.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.78.0/core/convert/trait.Into.html"·title="trait·core::convert::Into">Into</a>&lt;U&gt;·for·T<div·class="where">where
74 ····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>74 ····U:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.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:·2cf76a8ca501b2a1fef209fed846779ab1bed3b75f52c7425335e3ce04e6b272·...·]/core/convert/trait.Into.html#tymethod.into"·class="fn">into</a>(self)·-&gt;·U</h4></section></summary><div·class="docblock"><p>Calls·<code>U::from(self)</code>.</p>
75 <p>That·is,·this·conversion·is·whatever·the·implementation·of75 <p>That·is,·this·conversion·is·whatever·the·implementation·of
76 <code><a·href="../../core/convert/trait.From.html"·title="trait·core::convert::From">From</a>&lt;T&gt;·for·U</code>·chooses·to·do.</p>76 <code><a·href="https://doc.rust-lang.org/1.78.0/core/convert/trait.From.html"·title="trait·core::convert::From">From</a>&lt;T&gt;·for·U</code>·chooses·to·do.</p>
77 </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#83-95">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">where77 </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#83-95">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
78 ····T:·<a·class="trait"·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·href="#associ[·...·truncated·by·diffoscope;·len:·1220,·SHA:·3cbf0f64542b816603968ea3c1b51d1b1eb93d99770d50fed747c05540b0e6b0·...·]/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#2543-2557">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">where78 ····T:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.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:·1274,·SHA:·0c080e1e1236f77ce91b20fef8bb17c6bc50a069d2e16d2b40ea7b4298dec09f·...·]/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#2543-2557">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
79 ····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:·bf3a3f8ffed9dcfc973405dddaf9f278663007cc35ca5daa38b602630201cbf0·...·]/core/convert/trait.TryFrom.html"·title="trait·core::convert::TryFrom">TryFrom</a>&lt;U&gt;·for·T<div·class="where">where79 ····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.78.0/core/marker/trait.Sized.html"·title="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:·531ea7c1ecd9197e925ea3063788b96ffe9ed8291f75ffba5fcab4c2298b41ca·...·]/core/convert/trait.TryFrom.html"·title="trait·core::convert::TryFrom">TryFrom</a>&lt;U&gt;·for·T<div·class="where">where
80 ····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"·class="associatedtype·trait-impl"><a·hre[·...·truncated·by·diffoscope;·len:·1591,·SHA:·8537afacf1b3cf6b9fb7db778975d49d8a8e5988d420715e464ff4a79dd696c5·...·]/core/convert/trait.TryInto.html"·title="trait·core::convert::TryInto">TryInto</a>&lt;U&gt;·for·T<div·class="where">where80 ····U:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.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"·class="associ[·...·truncated·by·diffoscope;·len:·1861,·SHA:·78398046ba16de2f66a8201a11d6a2dd405fceedeabfcaa37481e77092687e6f·...·]/core/convert/trait.TryInto.html"·title="trait·core::convert::TryInto">TryInto</a>&lt;U&gt;·for·T<div·class="where">where
81 ····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-1"·class="associatedtype·trait-i[·...·truncated·by·diffoscope;·len:·1231,·SHA:·7843e7b6cca73922417e4154886c0df66f016d274b48933c21bdb75b67479d5b·...·]/core/convert/trait.TryFrom.html#associatedtype.Error"·title="type·core::convert::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 ····U:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.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-1"·cl[·...·truncated·by·diffoscope;·len:·1474,·SHA:·ca90cccb6c86c654c95a1aaec456fbbe4b115f0d5a700e7d156e823346d70894·...·]/core/convert/trait.TryFrom.html#associatedtype.Error"·title="type·core::convert::TryFrom::Error">Error</a>&gt;</h4></section></summary><div·class='docblock'>Performs·the·conversion.</div></details></div></details></div></section></div></main></body></html>
86.5 KB
./usr/share/doc/rust-web-doc/html/alloc/str/trait.FromStr.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="Parse·a·value·from·a·string"><title>FromStr·in·alloc::str·-·Rust</title><script>·if·(window.location.protocol·!==·"file:")·document.write(`<link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/SourceSerif4-Regular-46f98efaafac5295.ttf.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/FiraSans-Regular-018c141bf0843ffd.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/FiraSans-Medium-8f9a781e4970d388.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/SourceCodePro-Regular-562dcc5011b6de7d.ttf.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/SourceCodePro-Semibold-d899c5a5c4aeb14a.ttf.woff2">`)</script><link·rel="stylesheet"·href="../../static.files/normalize-76eba96aa4d2e634.css"><link·rel="stylesheet"·href="../../static.files/rustdoc-35f9e32502181f1e.css"><meta·name="rustdoc-vars"·data-root-path="../../"·data-static-root-path="../../static.files/"·data-current-crate="alloc"·data-themes=""·data-resource-suffix="1.78.0"·data-rustdoc-version="1.78.0"·data-channel="1.78.0"·data-search-js="search-42d8da7a6b9792c2.js"·data-settings-js="settings-4313503d2e1961c2.js"·><script·src="../../static.files/storage-4c98445ec4002617.js"></script><script·defer·src="sidebar-items1.78.0.js"></script><script·defer·src="../../static.files/main-12cf3b4f4f9dc36d.js"></script><noscript><link·rel="stylesheet"·href="../../static.files/noscript-04d5337699b92874.css"></noscript><link·rel="alternate·icon"·type="image/png"·href="../../static.files/favicon-16x16-8b506e7a72182f1c.png"><link·rel="alternate·icon"·type="image/png"·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.78.0</span></h2></div><h2·class="location"><a·href="#">FromStr</a></h2><div·class="sidebar-elems"><section><h3><a·href="#required-associated-types">Required·Associated·Types</a></h3><ul·class="block"><li><a·href="#associatedtype.Err">Err</a></li></ul><h3><a·href="#required-methods">Required·Methods</a></h3><ul·class="block"><li><a·href="#tymethod.from_str">from_str</a></li></ul><h3><a·href="#object-safety">Object·Safety</a></h3><h3><a·href="#implementors">Implementors</a></h3></section><h2><a·href="index.html">In·alloc::str</a></h2></div></nav><div·class="sidebar-resizer"></div>1 <!DOCTYPE·html><html·lang="en"><head><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.write(`<link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/SourceSerif4-Regular-46f98efaafac5295.ttf.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/FiraSans-Regular-018c141bf0843ffd.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/FiraSans-Medium-8f9a781e4970d388.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/SourceCodePro-Regular-562dcc5011b6de7d.ttf.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/SourceCodePro-Semibold-d899c5a5c4aeb14a.ttf.woff2">`)</script><link·rel="stylesheet"·href="../../static.files/normalize-76eba96aa4d2e634.css"><link·rel="stylesheet"·href="../../static.files/rustdoc-35f9e32502181f1e.css"><meta·name="rustdoc-vars"·data-root-path="../../"·data-static-root-path="../../static.files/"·data-current-crate="alloc"·data-themes=""·data-resource-suffix="1.78.0"·data-rustdoc-version="1.78.0"·data-channel="1.78.0"·data-search-js="search-42d8da7a6b9792c2.js"·data-settings-js="settings-4313503d2e1961c2.js"·><script·src="../../static.files/storage-4c98445ec4002617.js"></script><script·defer·src="sidebar-items1.78.0.js"></script><script·defer·src="../../static.files/main-12cf3b4f4f9dc36d.js"></script><noscript><link·rel="stylesheet"·href="../../static.files/noscript-04d5337699b92874.css"></noscript><link·rel="alternate·icon"·type="image/png"·href="../../static.files/favicon-16x16-8b506e7a72182f1c.png"><link·rel="alternate·icon"·type="image/png"·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.78.0</span></h2></div><h2·class="location"><a·href="#">FromStr</a></h2><div·class="sidebar-elems"><section><h3><a·href="#required-associated-types">Required·Associated·Types</a></h3><ul·class="block"><li><a·href="#associatedtype.Err">Err</a></li></ul><h3><a·href="#required-methods">Required·Methods</a></h3><ul·class="block"><li><a·href="#tymethod.from_str">from_str</a></li></ul><h3><a·href="#object-safety">Object·Safety</a></h3><h3><a·href="#implementors">Implementors</a></h3></section><h2><a·href="index.html">In·alloc::str</a></h2></div></nav><div·class="sidebar-resizer"></div>
2 ····<main><div·class="width-limiter"><nav·class="sub"><form·class="search-form"><span></span><div·id="sidebar-button"·tabindex="-1"><a·href="../../alloc/all.html"·title="show·sidebar"></a></div><input·class="search-input"·name="search"·aria-label="Run·search·in·the·documentation"·autocomplete="off"·spellcheck="false"·placeholder="Click·or·press·‘S’·to·search,·‘?’·for·more·options…"·type="search"><div·id="help-button"·tabindex="-1"><a·href="../../help.html"·title="help">?</a></div><div·id="settings-menu"·tabindex="-1"><a·href="../../settings.html"·title="settings"><img·width="22"·height="22"·alt="Change·settings"·src="../../static.files/wheel-7b819b6101059cd0.svg"></a></div></form></nav><section·id="main-content"·class="content"><div·class="main-heading"><h1>Trait·<a·href="../index.html">alloc</a>::<wbr><a·href="index.html">str</a>::<wbr><a·class="trait"·href="#">FromStr</a><button·id="copy-path"·title="Copy·item·path·to·clipboard"><img·src="../../static.files/clipboard-7571035ce49a181d.svg"·width="19"·height="18"·alt="Copy·item·path"></button></h1><span·class="out-of-band"><span·class="since"·title="Stable·since·Rust·version·1.0.0">1.0.0</span>···<a·class="src"·href="../../src/core/str/traits.rs.html#609">source</a>···<button·id="toggle-all-docs"·title="collapse·all·docs">[<span>&#x2212;</span>]</button></span></div><pre·class="rust·item-decl"><code>pub·trait·FromStr:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>·{2 ····<main><div·class="width-limiter"><nav·class="sub"><form·class="search-form"><span></span><div·id="sidebar-button"·tabindex="-1"><a·href="../../alloc/all.html"·title="show·sidebar"></a></div><input·class="search-input"·name="search"·aria-label="Run·search·in·the·documentation"·autocomplete="off"·spellcheck="false"·placeholder="Click·or·press·‘S’·to·search,·‘?’·for·more·options…"·type="search"><div·id="help-button"·tabindex="-1"><a·href="../../help.html"·title="help">?</a></div><div·id="settings-menu"·tabindex="-1"><a·href="../../settings.html"·title="settings"><img·width="22"·height="22"·alt="Change·settings"·src="../../static.files/wheel-7b819b6101059cd0.svg"></a></div></form></nav><section·id="main-content"·class="content"><div·class="main-heading"><h1>Trait·<a·href="../index.html">alloc</a>::<wbr><a·href="index.html">str</a>::<wbr><a·class="trait"·href="#">FromStr</a><button·id="copy-path"·title="Copy·item·path·to·clipboard"><img·src="../../static.files/clipboard-7571035ce49a181d.svg"·width="19"·height="18"·alt="Copy·item·path"></button></h1><span·class="out-of-band"><span·class="since"·title="Stable·since·Rust·version·1.0.0">1.0.0</span>···<a·class="src"·href="https://doc.rust-lang.org/1.78.0/src/core/str/traits.rs.html#609">source</a>···<button·id="toggle-all-docs"·title="collapse·all·docs">[<span>&#x2212;</span>]</button></span></div><pre·class="rust·item-decl"><code>pub·trait·FromStr:·<a·class="trait"·href="h[·...·truncated·by·diffoscope;·len:·31,·SHA:·07bc31d6f61bfc8486a220fe8252ad65d817fb232c756dc0dbaa314d7d4c9d7a·...·]/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>·{
3 ····type·<a·href="#associatedtype.Err"·class="associatedtype">Err</a>;3 ····type·<a·href="#associatedtype.Err"·class="associatedtype">Err</a>;
  
4 ····//·Required·method4 ····//·Required·method
5 ····fn·<a·href="#tymethod.from_str"·class="fn">from_str</a>(s:·&amp;<a·class="primitive"·href="../../core/primitive.str.html">str</a>)·-&gt;·<a·class="enum"·href="../../core/result/enum.Result.html"·title="enum·core::result::Result">Result</a>&lt;Self,·Self::<a·class="associatedtype"·href="trait.FromStr.html#associatedtype.Err"·title="type·alloc::str::FromStr::Err">Err</a>&gt;;5 ····fn·<a·href="#tymethod.from_str"·class="fn">from_str</a>(s:·&amp;<a·class="primitive"·href="https://doc.rust-lang.org/1.78.0/core/primitive.str.html">str</a>)·-&gt;·<a·class="enum"·href="https://doc.rust-lang.org/1.78.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;;
6 }</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 }</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>
7 <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,·through7 <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
8 <a·href="../../core/primitive.str.html"·title="primitive·str"><code>str</code></a>’s·<a·href="../../core/primitive.str.html#method.parse"·title="method·str::parse"><code>parse</code></a>·method.·See·<a·href="../../core/primitive.str.html#method.parse"·title="method·str::parse"><code>parse</code></a>’s·documentation·for·examples.</p>8 <a·href="https://doc.rust-lang.org/1.78.0/core/primitive.str.html"·title="primitive·str"><code>str</code></a>’s·<a·href="https://doc.rust-lang.org/1.78.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:·e254d4ac740689e983d2c757af00dd20905b873614aa658484586b954106a938·...·]/core/primitive.str.html#method.parse"·title="method·str::parse"><code>parse</code></a>’s·documentation·for·examples.</p>
9 <p><code>FromStr</code>·does·not·have·a·lifetime·parameter,·and·so·you·can·only·parse·types9 <p><code>FromStr</code>·does·not·have·a·lifetime·parameter,·and·so·you·can·only·parse·types
10 that·do·not·contain·a·lifetime·parameter·themselves.·In·other·words,·you·can10 that·do·not·contain·a·lifetime·parameter·themselves.·In·other·words,·you·can
11 parse·an·<code>i32</code>·with·<code>FromStr</code>,·but·not·a·<code>&amp;i32</code>.·You·can·parse·a·struct·that11 parse·an·<code>i32</code>·with·<code>FromStr</code>,·but·not·a·<code>&amp;i32</code>.·You·can·parse·a·struct·that
12 contains·an·<code>i32</code>,·but·not·one·that·contains·an·<code>&amp;i32</code>.</p>12 contains·an·<code>i32</code>,·but·not·one·that·contains·an·<code>&amp;i32</code>.</p>
13 <h2·id="examples"><a·class="doc-anchor"·href="#examples">§</a>Examples</h2>13 <h2·id="examples"><a·class="doc-anchor"·href="#examples">§</a>Examples</h2>
14 <p>Basic·implementation·of·<code>FromStr</code>·on·an·example·<code>Point</code>·type:</p>14 <p>Basic·implementation·of·<code>FromStr</code>·on·an·example·<code>Point</code>·type:</p>
  
Offset 46, 22 lines modifiedOffset 46, 22 lines modified
46 <span·class="comment">//·Explicit·call46 <span·class="comment">//·Explicit·call
47 </span><span·class="macro">assert_eq!</span>(Point::from_str(<span·class="string">"(1,2)"</span>),·expected);47 </span><span·class="macro">assert_eq!</span>(Point::from_str(<span·class="string">"(1,2)"</span>),·expected);
48 <span·class="comment">//·Implicit·calls,·through·parse48 <span·class="comment">//·Implicit·calls,·through·parse
49 </span><span·class="macro">assert_eq!</span>(<span·class="string">"(1,2)"</span>.parse(),·expected);49 </span><span·class="macro">assert_eq!</span>(<span·class="string">"(1,2)"</span>.parse(),·expected);
50 <span·class="macro">assert_eq!</span>(<span·class="string">"(1,2)"</span>.parse::&lt;Point&gt;(),·expected);50 <span·class="macro">assert_eq!</span>(<span·class="string">"(1,2)"</span>.parse::&lt;Point&gt;(),·expected);
51 <span·class="comment">//·Invalid·input·string51 <span·class="comment">//·Invalid·input·string
52 </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"·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">Run</a></div>52 </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"·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">Run</a></div>
53 </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"><a·class="src·rightside"·href="../../src/core/str/traits.rs.html#612">source</a><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><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"><a·class="src·rightside"·href="https://doc.rust-lang.org/1.78.0/src/core/str/traits.rs.html#612">source</a><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>
54 </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"><a·class="src·rightside"·href="../../src/core/str/traits.rs.html#634">source</a><h4·class="code-header">fn·<a·href="#tymethod.from_str"·class="fn">from_str</a>(s:·&amp;<a·class="primitive"·href="../../core/primitive.str.html">str</a>)·-&gt;·<a·class="enum"·href="../../core/result/enum.Result.html"·title="enum·core::result::Result">Result</a>&lt;Self,·Self::<a·class="associatedtype"·href="trait.FromStr.html#associatedtype.Err"·title="type·alloc::str::FromStr::Err">Err</a>&gt;</h4></section></summary><div·class="docblock"><p>Parses·a·string·<code>s</code>·to·return·a·value·of·this·type.</p>54 </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"><a·class="src·rightside"·href="https://doc.rust-lang.org/1.78.0/src/core/str/traits.rs.html#634">source</a><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.78.0/core/primitive.str.html">str</a>[·...·truncated·by·diffoscope;·len:·62,·SHA:·81eafa68cf164be943a6b8fe45f68d361205034296f3072ce8b21ea7418f63da·...·]/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>
55 <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>,·otherwise55 <p>If·parsing·succeeds,·return·the·value·inside·<a·href="https://doc.rust-lang.org/1.78.0/core/result/enum.Result.html#variant.Ok"·title="variant·core::result::Result::Ok"><code>Ok</code></a>,·otherwise
56 when·the·string·is·ill-formatted·return·an·error·specific·to·the56 when·the·string·is·ill-formatted·return·an·error·specific·to·the
57 inside·<a·href="../../core/result/enum.Result.html#variant.Err"·title="variant·core::result::Result::Err"><code>Err</code></a>.·The·error·type·is·specific·to·the·implementation·of·the·trait.</p>57 inside·<a·href="https://doc.rust-lang.org/1.78.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>
58 <h5·id="examples-1"><a·class="doc-anchor"·href="#examples-1">§</a>Examples</h5>58 <h5·id="examples-1"><a·class="doc-anchor"·href="#examples-1">§</a>Examples</h5>
59 <p>Basic·usage·with·<a·href="../../core/primitive.i32.html"·title="primitive·i32"><code>i32</code></a>,·a·type·that·implements·<code>FromStr</code>:</p>59 <p>Basic·usage·with·<a·href="https://doc.rust-lang.org/1.78.0/core/primitive.i32.html"·title="primitive·i32"><code>i32</code></a>,·a·type·that·implements·<code>FromStr</code>:</p>
  
60 <div·class="example-wrap"><pre·class="rust·rust-example-rendered"><code><span·class="kw">use·</span>std::str::FromStr;60 <div·class="example-wrap"><pre·class="rust·rust-example-rendered"><code><span·class="kw">use·</span>std::str::FromStr;
  
61 <span·class="kw">let·</span>s·=·<span·class="string">"5"</span>;61 <span·class="kw">let·</span>s·=·<span·class="string">"5"</span>;
62 <span·class="kw">let·</span>x·=·i32::from_str(s).unwrap();62 <span·class="kw">let·</span>x·=·i32::from_str(s).unwrap();
  
63 <span·class="macro">assert_eq!</span>(<span·class="number">5</span>,·x);</code></pre><a·class="test-arrow"·target="_blank"·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">Run</a></div>63 <span·class="macro">assert_eq!</span>(<span·class="number">5</span>,·x);</code></pre><a·class="test-arrow"·target="_blank"·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">Run</a></div>
64 </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.78.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#325">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:·33330,·SHA:·2ba6cca581c4839e8f5280cd3f223f7d7f0fe31ff187d8f03426b9de59d1c39d·...·]</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>64 </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.78.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.78.0/src/core/net/parser.rs.html#325">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:·36408,·SHA:·fcc6b41ec0242ad19fffd0004e13c0046bf20979c540755de5412720e8f373ae·...·]</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>
700 B
html2text {}
    
Offset 158, 14 lines modifiedOffset 158, 18 lines modified
158 §158 §
159 ***·type·Err·=·ParseIntError·***159 ***·type·Err·=·ParseIntError·***
160 source§160 source§
161 ****·impl·FromStr·for·usize·****161 ****·impl·FromStr·for·usize·****
162 §162 §
163 ***·type·Err·=·ParseIntError·***163 ***·type·Err·=·ParseIntError·***
164 source§164 source§
 165 ****·impl·FromStr·for·String·****
 166 §
 167 ***·type·Err·=·Infallible·***
 168 source§
165 ****·impl·FromStr·for·Ipv4Addr·****169 ****·impl·FromStr·for·Ipv4Addr·****
166 §170 §
167 ***·type·Err·=·AddrParseError·***171 ***·type·Err·=·AddrParseError·***
168 source§172 source§
169 ****·impl·FromStr·for·Ipv6Addr·****173 ****·impl·FromStr·for·Ipv6Addr·****
170 §174 §
171 ***·type·Err·=·AddrParseError·***175 ***·type·Err·=·AddrParseError·***
Offset 221, 11 lines modifiedOffset 225, 7 lines modified
221 ****·impl·FromStr·for·NonZero<u128>·****225 ****·impl·FromStr·for·NonZero<u128>·****
222 §226 §
223 ***·type·Err·=·ParseIntError·***227 ***·type·Err·=·ParseIntError·***
224 1.35.0·Â··source§228 1.35.0·Â··source§
225 ****·impl·FromStr·for·NonZero<usize>·****229 ****·impl·FromStr·for·NonZero<usize>·****
226 §230 §
227 ***·type·Err·=·ParseIntError·***231 ***·type·Err·=·ParseIntError·***
228 source§ 
229 ****·impl·FromStr·for·String·**** 
230 § 
231 ***·type·Err·=·Infallible·*** 
4.81 KB
./usr/share/doc/rust-web-doc/html/alloc/string/index.html
    
Offset 25, 8 lines modifiedOffset 25, 8 lines modified
25 </span><span·class="kw">let·</span>sparkle_heart·=·String::from_utf8(sparkle_heart).unwrap();25 </span><span·class="kw">let·</span>sparkle_heart·=·String::from_utf8(sparkle_heart).unwrap();
  
26 <span·class="macro">assert_eq!</span>(<span·class="string">"💖"</span>,·sparkle_heart);26 <span·class="macro">assert_eq!</span>(<span·class="string">"💖"</span>,·sparkle_heart);
  
27 <span·class="kw">let·</span>bytes·=·sparkle_heart.into_bytes();27 <span·class="kw">let·</span>bytes·=·sparkle_heart.into_bytes();
  
28 <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"·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">Run</a></div>28 <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"·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">Run</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::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">FromUtf8Error</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">FromUtf16Error</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">ParseError</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>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::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">FromUtf8Error</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">FromUtf16Error</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">ParseError</a></div><div·class="desc·docblock-short">A·type·alias·for·<a·href="https://doc.rust-lang.org/1.78.0/core/convert/enum.Infallible.html"·title="convert::Infallible"><code>Infallible</code></a>.</div></li></ul></section></div></main></body></html>
293 KB
./usr/share/doc/rust-web-doc/html/alloc/string/struct.Drain.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="A·draining·iterator·for·`String`."><title>Drain·in·alloc::string·-·Rust</title><script>·if·(window.location.protocol·!==·"file:")·document.write(`<link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/SourceSerif4-Regular-46f98efaafac5295.ttf.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/FiraSans-Regular-018c141bf0843ffd.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/FiraSans-Medium-8f9a781e4970d388.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/SourceCodePro-Regular-562dcc5011b6de7d.ttf.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/SourceCodePro-Semibold-d899c5a5c4aeb14a.ttf.woff2">`)</script><link·rel="stylesheet"·href="../../static.files/normalize-76eba96aa4d2e634.css"><link·rel="stylesheet"·href="../../static.files/rustdoc-35f9e32502181f1e.css"><meta·name="rustdoc-vars"·data-root-path="../../"·data-static-root-path="../../static.files/"·data-current-crate="alloc"·data-themes=""·data-resource-suffix="1.78.0"·data-rustdoc-version="1.78.0"·data-channel="1.78.0"·data-search-js="search-42d8da7a6b9792c2.js"·data-settings-js="settings-4313503d2e1961c2.js"·><script·src="../../static.files/storage-4c98445ec4002617.js"></script><script·defer·src="sidebar-items1.78.0.js"></script><script·defer·src="../../static.files/main-12cf3b4f4f9dc36d.js"></script><noscript><link·rel="stylesheet"·href="../../static.files/noscript-04d5337699b92874.css"></noscript><link·rel="alternate·icon"·type="image/png"·href="../../static.files/favicon-16x16-8b506e7a72182f1c.png"><link·rel="alternate·icon"·type="image/png"·href="../../static.files/favicon-32x32-422f7d1d52889060.png"><link·rel="icon"·type="image/svg+xml"·href="../../static.files/favicon-2c020d218678b618.svg"></head><body·class="rustdoc·struct"><!--[if·lte·IE·11]><div·class="warning">This·old·browser·is·unsupported·and·will·most·likely·display·funky·things.</div><![endif]--><nav·class="mobile-topbar"><button·class="sidebar-menu-toggle"·title="show·sidebar"></button><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-151179464ae7ed46.svg"·alt=""></a></nav><nav·class="sidebar"><div·class="sidebar-crate"><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-151179464ae7ed46.svg"·alt="logo"></a><h2><a·href="../../alloc/index.html">alloc</a><span·class="version">1.78.0</span></h2></div><h2·class="location"><a·href="#">Drain</a></h2><div·class="sidebar-elems"><section><h3><a·href="#implementations">Methods</a></h3><ul·class="block·method"><li><a·href="#method.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">AsRef&lt;[u8]&gt;</a></li><li><a·href="#impl-AsRef%3Cstr%3E-for-Drain%3C'a%3E">AsRef&lt;str&gt;</a></li><li><a·href="#impl-Debug-for-Drain%3C'_%3E">Debug</a></li><li><a·href="#impl-DoubleEndedIterator-for-Drain%3C'_%3E">DoubleEndedIterator</a></li><li><a·href="#impl-Drop-for-Drain%3C'_%3E">Drop</a></li><li><a·href="#impl-FusedIterator-for-Drain%3C'_%3E">FusedIterator</a></li><li><a·href="#impl-Iterator-for-Drain%3C'_%3E">Iterator</a></li><li><a·href="#impl-Send-for-Drain%3C'_%3E">Send</a></li><li><a·href="#impl-Sync-for-Drain%3C'_%3E">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">Freeze</a></li><li><a·href="#impl-RefUnwindSafe-for-Drain%3C'a%3E">RefUnwindSafe</a></li><li><a·href="#impl-Unpin-for-Drain%3C'a%3E">Unpin</a></li><li><a·href="#impl-UnwindSafe-for-Drain%3C'a%3E">UnwindSafe</a></li></ul><h3><a·href="#blanket-implementations">Blanket·Implementations</a></h3><ul·class="block·blanket-implementation"><li><a·href="#impl-Any-for-T">Any</a></li><li><a·href="#impl-Borrow%3CT%3E-for-T">Borrow&lt;T&gt;</a></li><li><a·href="#impl-BorrowMut%3CT%3E-for-T">BorrowMut&lt;T&gt;</a></li><li><a·href="#impl-From%3CT%3E-for-T">From&lt;T&gt;</a></li><li><a·href="#impl-Into%3CU%3E-for-T">Into&lt;U&gt;</a></li><li><a·href="#impl-IntoIterator-for-I">IntoIterator</a></li><li><a·href="#impl-TryFrom%3CU%3E-for-T">TryFrom&lt;U&gt;</a></li><li><a·href="#impl-TryInto%3CU%3E-for-T">TryInto&lt;U&gt;</a></li></ul></section><h2><a·href="index.html">In·alloc::string</a></h2></div></nav><div·class="sidebar-resizer"></div>1 <!DOCTYPE·html><html·lang="en"><head><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.write(`<link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/SourceSerif4-Regular-46f98efaafac5295.ttf.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/FiraSans-Regular-018c141bf0843ffd.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/FiraSans-Medium-8f9a781e4970d388.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/SourceCodePro-Regular-562dcc5011b6de7d.ttf.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/SourceCodePro-Semibold-d899c5a5c4aeb14a.ttf.woff2">`)</script><link·rel="stylesheet"·href="../../static.files/normalize-76eba96aa4d2e634.css"><link·rel="stylesheet"·href="../../static.files/rustdoc-35f9e32502181f1e.css"><meta·name="rustdoc-vars"·data-root-path="../../"·data-static-root-path="../../static.files/"·data-current-crate="alloc"·data-themes=""·data-resource-suffix="1.78.0"·data-rustdoc-version="1.78.0"·data-channel="1.78.0"·data-search-js="search-42d8da7a6b9792c2.js"·data-settings-js="settings-4313503d2e1961c2.js"·><script·src="../../static.files/storage-4c98445ec4002617.js"></script><script·defer·src="sidebar-items1.78.0.js"></script><script·defer·src="../../static.files/main-12cf3b4f4f9dc36d.js"></script><noscript><link·rel="stylesheet"·href="../../static.files/noscript-04d5337699b92874.css"></noscript><link·rel="alternate·icon"·type="image/png"·href="../../static.files/favicon-16x16-8b506e7a72182f1c.png"><link·rel="alternate·icon"·type="image/png"·href="../../static.files/favicon-32x32-422f7d1d52889060.png"><link·rel="icon"·type="image/svg+xml"·href="../../static.files/favicon-2c020d218678b618.svg"></head><body·class="rustdoc·struct"><!--[if·lte·IE·11]><div·class="warning">This·old·browser·is·unsupported·and·will·most·likely·display·funky·things.</div><![endif]--><nav·class="mobile-topbar"><button·class="sidebar-menu-toggle"·title="show·sidebar"></button><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-151179464ae7ed46.svg"·alt=""></a></nav><nav·class="sidebar"><div·class="sidebar-crate"><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-151179464ae7ed46.svg"·alt="logo"></a><h2><a·href="../../alloc/index.html">alloc</a><span·class="version">1.78.0</span></h2></div><h2·class="location"><a·href="#">Drain</a></h2><div·class="sidebar-elems"><section><h3><a·href="#implementations">Methods</a></h3><ul·class="block·method"><li><a·href="#method.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">AsRef&lt;[u8]&gt;</a></li><li><a·href="#impl-AsRef%3Cstr%3E-for-Drain%3C'a%3E">AsRef&lt;str&gt;</a></li><li><a·href="#impl-Debug-for-Drain%3C'_%3E">Debug</a></li><li><a·href="#impl-DoubleEndedIterator-for-Drain%3C'_%3E">DoubleEndedIterator</a></li><li><a·href="#impl-Drop-for-Drain%3C'_%3E">Drop</a></li><li><a·href="#impl-FusedIterator-for-Drain%3C'_%3E">FusedIterator</a></li><li><a·href="#impl-Iterator-for-Drain%3C'_%3E">Iterator</a></li><li><a·href="#impl-Send-for-Drain%3C'_%3E">Send</a></li><li><a·href="#impl-Sync-for-Drain%3C'_%3E">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">Freeze</a></li><li><a·href="#impl-RefUnwindSafe-for-Drain%3C'a%3E">RefUnwindSafe</a></li><li><a·href="#impl-Unpin-for-Drain%3C'a%3E">Unpin</a></li><li><a·href="#impl-UnwindSafe-for-Drain%3C'a%3E">UnwindSafe</a></li></ul><h3><a·href="#blanket-implementations">Blanket·Implementations</a></h3><ul·class="block·blanket-implementation"><li><a·href="#impl-Any-for-T">Any</a></li><li><a·href="#impl-Borrow%3CT%3E-for-T">Borrow&lt;T&gt;</a></li><li><a·href="#impl-BorrowMut%3CT%3E-for-T">BorrowMut&lt;T&gt;</a></li><li><a·href="#impl-From%3CT%3E-for-T">From&lt;T&gt;</a></li><li><a·href="#impl-Into%3CU%3E-for-T">Into&lt;U&gt;</a></li><li><a·href="#impl-IntoIterator-for-I">IntoIterator</a></li><li><a·href="#impl-TryFrom%3CU%3E-for-T">TryFrom&lt;U&gt;</a></li><li><a·href="#impl-TryInto%3CU%3E-for-T">TryInto&lt;U&gt;</a></li></ul></section><h2><a·href="index.html">In·alloc::string</a></h2></div></nav><div·class="sidebar-resizer"></div>
2 ····<main><div·class="width-limiter"><nav·class="sub"><form·class="search-form"><span></span><div·id="sidebar-button"·tabindex="-1"><a·href="../../alloc/all.html"·title="show·sidebar"></a></div><input·class="search-input"·name="search"·aria-label="Run·search·in·the·documentation"·autocomplete="off"·spellcheck="false"·placeholder="Click·or·press·‘S’·to·search,·‘?’·for·more·options…"·type="search"><div·id="help-button"·tabindex="-1"><a·href="../../help.html"·title="help">?</a></div><div·id="settings-menu"·tabindex="-1"><a·href="../../settings.html"·title="settings"><img·width="22"·height="22"·alt="Change·settings"·src="../../static.files/wheel-7b819b6101059cd0.svg"></a></div></form></nav><section·id="main-content"·class="content"><div·class="main-heading"><h1>Struct·<a·href="../index.html">alloc</a>::<wbr><a·href="index.html">string</a>::<wbr><a·class="struct"·href="#">Drain</a><button·id="copy-path"·title="Copy·item·path·to·clipboard"><img·src="../../static.files/clipboard-7571035ce49a181d.svg"·width="19"·height="18"·alt="Copy·item·path"></button></h1><span·class="out-of-band"><span·class="since"·title="Stable·since·Rust·version·1.6.0">1.6.0</span>···<a·class="src"·href="../../src/alloc/string.rs.html#2930-2939">source</a>···<button·id="toggle-all-docs"·title="collapse·all·docs">[<span>&#x2212;</span>]</button></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 ····<main><div·class="width-limiter"><nav·class="sub"><form·class="search-form"><span></span><div·id="sidebar-button"·tabindex="-1"><a·href="../../alloc/all.html"·title="show·sidebar"></a></div><input·class="search-input"·name="search"·aria-label="Run·search·in·the·documentation"·autocomplete="off"·spellcheck="false"·placeholder="Click·or·press·‘S’·to·search,·‘?’·for·more·options…"·type="search"><div·id="help-button"·tabindex="-1"><a·href="../../help.html"·title="help">?</a></div><div·id="settings-menu"·tabindex="-1"><a·href="../../settings.html"·title="settings"><img·width="22"·height="22"·alt="Change·settings"·src="../../static.files/wheel-7b819b6101059cd0.svg"></a></div></form></nav><section·id="main-content"·class="content"><div·class="main-heading"><h1>Struct·<a·href="../index.html">alloc</a>::<wbr><a·href="index.html">string</a>::<wbr><a·class="struct"·href="#">Drain</a><button·id="copy-path"·title="Copy·item·path·to·clipboard"><img·src="../../static.files/clipboard-7571035ce49a181d.svg"·width="19"·height="18"·alt="Copy·item·path"></button></h1><span·class="out-of-band"><span·class="since"·title="Stable·since·Rust·version·1.6.0">1.6.0</span>···<a·class="src"·href="../../src/alloc/string.rs.html#2930-2939">source</a>···<button·id="toggle-all-docs"·title="collapse·all·docs">[<span>&#x2212;</span>]</button></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>
3 <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·its3 <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
4 documentation·for·more.</p>4 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-Drain%3C'a%3E"·class="impl"><a·class="src·rightside"·href="../../src/alloc/string.rs.html#2967-2984">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#2981-2983">source</a></span><h4·class="code-header">pub·fn·<a·href="#method.as_str"·class="fn">as_str</a>(&amp;self)·-&gt;·&amp;<a·class="primitive"·href="../../core/primitive.str.html">str</a></h4></section></summary><div·class="docblock"><p>Returns·the·remaining·(sub)string·of·this·iterator·as·a·slice.</p>5 </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#2967-2984">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#2981-2983">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.78.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>
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="kw">let·</span><span·class="kw-2">mut·</span>s·=·String::from(<span·class="string">"abc"</span>);7 <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>);
8 <span·class="kw">let·</span><span·class="kw-2">mut·</span>drain·=·s.drain(..);8 <span·class="kw">let·</span><span·class="kw-2">mut·</span>drain·=·s.drain(..);
9 <span·class="macro">assert_eq!</span>(drain.as_str(),·<span·class="string">"abc"</span>);9 <span·class="macro">assert_eq!</span>(drain.as_str(),·<span·class="string">"abc"</span>);
10 <span·class="kw">let·_·</span>=·drain.next().unwrap();10 <span·class="kw">let·_·</span>=·drain.next().unwrap();
11 <span·class="macro">assert_eq!</span>(drain.as_str(),·<span·class="string">"bc"</span>);</code></pre><a·class="test-arrow"·target="_blank"·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">Run</a></div>11 <span·class="macro">assert_eq!</span>(drain.as_str(),·<span·class="string">"bc"</span>);</code></pre><a·class="test-arrow"·target="_blank"·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">Run</a></div>
12 </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#2994-2998">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:·7692,·SHA:·0d8248c1b167ca3d1699b93657a93f3fcd2b8fd58e4ac6f3a7a57be0f2ba3618·...·]/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 </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#2994-2998">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.78.0/core/convert/trait.AsRef.html"·title="trait·core::convert::AsRef">AsRef</a>&lt;[<a·class="primitive"·href="https://doc.rust-lang.org/1.78.0/core/primitive.u8.html">u8</a>]&gt;·for·<a·class="struct"·href="struct.Drain.html"·[·...·truncated·by·diffoscope;·len:·8475,·SHA:·7bab9588d181530aa5854795df3d8397042d112e2daa40d0f54be28a40bf1613·...·]/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.78.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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(B,·Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.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.78.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.7[·...·truncated·by·diffoscope;·len:·3,·SHA:·7b1bd53949b752d143d871408483b5382371b5bc48d195d0c040ec93cfa2748b·...·]/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:·74b709f2c818a4eda5d85ea863eb2d8af72c87564dbab2746e67feafb0cbb9a3·...·]/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.78.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:·d66ed7e195a53e9945339ef1976aed455dcf80228d8e5b7b0c69a64c3983fea1·...·]/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.78.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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(B,·Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/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:·f8bdf1e28866c7668477ab391452c7cfa7fd52cc69b633e782a157931421b39b·...·]/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.78.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:·c264047794019a6dcf05728ba6a6ee1f8f07c7209958b3366ba94546b527ecdc·...·]/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.78.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:·5287,·SHA:·20cc08a40c0a6baa5568bb920aaf14ef57a764d25be73563d64c7957fe68e7f7·...·]/core/primitive.usize.html">usize</a>&gt;(21 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·5989,·SHA:·a82a973a290b5165474761654db66959c64895adad74c2d7412853c9b8aacce1·...·]/core/primitive.usize.html">usize</a>&gt;(
22 ····&amp;mut·self22 ····&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.78.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.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title=[·...·truncated·by·diffoscope;·len:·381,·SHA:·88c48923c9b7ea5cc47c1087c60e09656e81d4671c58071ba2bef826335388bc·...·]/core/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:·827,·SHA:·602d17b58d1cf716882ddc867fc66cfda4f899bef17b038a48553e9133f60097·...·]/core/primitive.usize.html">usize</a><div·class="where">where24 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></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:·89791450da70cbd536c3cf8fbf2dd9891668362f9a252d3ee098222d19960bae·...·]/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:·2989,·SHA:·f92dde8c48ff35deb05a51084054ecdf425850256e0755fd705ef0e8dee5a42a·...·]/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.78.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:·5acc2bcc91ab2687c8137eaa20bd4287e0b901b846fa877b4a1d59df04bc4956·...·]/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.78.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:·5667b9b6c9778ff3b9d23ed0a110e7ab9d3fccc786fdcaca8c17edf996236439·...·]/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.78.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:·e83c903581753673e083ce8dd809879a2fc81ab3050eb6db267d7fa26b15e035·...·]/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.78.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:·1c6bb9803ee8832ebd4c28a08a952178165595b6870cf35d3c89454b9da828b2·...·]/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.78.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.78.0/core/iter/traits/it[·...·truncated·by·diffoscope;·len:·1329,·SHA:·d9299c8edc606ed82f24d61ce441bec451141d684c2a9a75074f5b19c57f196c·...·]/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.78.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:·c1b5e692e89c9c809075ee8ee72fb15a9ec46c075b08450e1f707d672a224750·...·]/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.78.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:·98627729f77dcf1c9d258f343354ba600b7134c6b3929080f231e8de7155b70b·...·]/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.78.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.78.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.78.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:·d6282409add0999f2130eb6bbe6d0473ce96bf2544799e8bc22156f3c2d2e0dd·...·]/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.78.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:·7301b6beba7b6885849be90a625df68ef739a5374af456c51fe2e81d91a25363·...·]/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.78.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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::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:·fb4c9589a16c7b6d697c109d1193d2f1e763e5dd967101c2fd92b32416972229·...·]/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.78.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:·98f6effefa44d759c249143d83623f0055d937382bfc398b7e1f5e92cd413657·...·]/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.78.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:·7abbad666ec88a1053b8aca2a481d629a3ef3596eddb570c381205fa2d859a52·...·]/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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·916,·SHA:·30d0b2a76513c5a880e9aee43e92b18805845cfcfe5783f62dc090167a439e63·...·]/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.78.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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·140,·SHA:·752f473b57e7444ebfddf5ea7fd40a332e83ec55524a6c31b5ee0f82a5dea819·...·]/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:·7da07154834a15b8ae55b4fd41479da070ccbd27e071909f81698570c306a081·...·]/core/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.78.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:·76aa2ad154f88085ee3f8a22721a7e6812680bac785d19059532407f50da1801·...·]/core/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.78.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:·c89169e5bf1c4724c7b411e568b6dad6475896f2606f557b3d708359ef71f5cc·...·]/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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·1052,·SHA:·110b47c7083083d565fcfc89337fddc8e5c87e81b2f720f3f7b0ded55e8500fb·...·]/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.78.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:·53634008856676c70c32b501f7ec498c1f86d123cc9b5b898256a69895ff31fc·...·]/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.78.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:·8464264e074dde5d84f0414ab3b5b2d8da83f3c9e3ca04c45458241580a8c80d·...·]/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.78.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.78.0/core/iter/adapte[·...·truncated·by·diffoscope;·len:·175,·SHA:·16fe7225bf05b478e2828b347c3d23ded9a22f89d8887a2c65d9f7b3faf1b0e7·...·]/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:·77dd41e041d66c618d306e900a9159cf1b00478b8f37e5692be62119a1d4fcda·...·]/core/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.78.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:·00ccbb673c11ed48d8c6aa2a3f8984fb298202e7bccfa42f1ac21290fcc0fb06·...·]/core/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.78.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:·c18326af66652e52fa627bfd0312af7fa2ad0ddc162b12a46e61047a031b0264·...·]/core/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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·1234,·SHA:·3b805567411cdcebed740f9e8d400dbe7fb487504f40e284544a140155090fdf·...·]/core/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.78.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:·39eeddf219b211245393e51a591d5064c740fa9be49d88883d8a6474679741ad·...·]/core/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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·1058,·SHA:·b390dbdda8d7e93604b5ecd906a93efd03fe19bdaf41cf12893fd361bf974307·...·]/core/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.78.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:·9369fa85b74ff841f7401949cadba6dfbbbeead2a99568f20dcfd5aab20d61ab·...·]/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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·1163,·SHA:·5772149166d344bf8fa5ebbd9db8693a8f2e5f031c50338e8f1523ef72f814d6·...·]/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:·a25e81a74cc82c1837477e2b0cea682fff9f43550640901b8010ac501ca69e3d·...·]/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.78.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:·6216516fe581c401abda3c95818192e8f030e2008c9bbdbaafebba16f33ea9bd·...·]/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.78.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:·de8f1023275132502c1569b0ef9a557dc98eaf60aae97cdb916e52f9f55100aa·...·]/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.78.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:·485843399c56e24bdf020ff0610d0ce1f62fbac5530d9880a1a7417105e3d70f·...·]/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.78.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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(<a·class="primitive"·href="https://doc.rust-lang.org/1.78.0/core/primitive.reference.html">&amp;mut·St</a>,·Self::<a·class="associatedty[·...·truncated·by·diffoscope;·len:·449,·SHA:·f12c268a8a8111b9e7126ad78bf5523a63733caa63d187c4fe792309ea41acdf·...·]/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:·8b31595e3cee3022819032aac82e3df712188a2a6dcc20da6939262e5e528591·...·]/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.78.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.78.0/core/iter/trai[·...·truncated·by·diffoscope;·len:·690,·SHA:·371190e5c1bf9b7dde6e84447965a69946212b977b9eb6d89048fbe34c5dda1c·...·]/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.78.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.78.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:·9b6a337a3ad68c2a987b52450c153f87a04a8ed9e83603d26077fe6e70d61edf·...·]/core/iter/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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·976,·SHA:·2a9182f6fe88e0b8a9b1ae1f46cace940cc0b8736033c354c0f0ccbf1c196e7a·...·]/core/iter/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.78.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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;[Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtyp[·...·truncated·by·diffoscope;·len:·135,·SHA:·0b06a6094d42ccbc8bce5b01c4383961fe7f1967f05e4c9f1ff33e71e425fb26·...·]/core/primitive.array.html">N</a>])·-&gt;·R,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iter_map_windows</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/87155">#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.78.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:·238f6b49b3e28d725c57040edaa60bfbb34f140155e6af1d30eab52da1c7274f·...·]/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.78.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:·0d33056cee8a4f9b70b573c0adecc2f3599a2f8d9fa9f2c2044e9118ab134f73·...·]/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:·cfd3edf89fe5aca24b994f83b0d7da765620394e35140e694d98233d4d92481b·...·]/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.78.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.78.0/core/op[·...·truncated·by·diffoscope;·len:·841,·SHA:·9cba1b175fb3726d7f1f01da9be7c1a56568a68e4ce7915a468b730902daf8d3·...·]/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.78.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:·772,·SHA:·31d2052382378512fa905c6d5297d384eac7b7f126141ce561719c0e27cc9d39·...·]/core/primitive.reference.html">&amp;mut·Self</a><div·class="where">where71 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·934,·SHA:·ea20d2e0fe9388580ea08100baa9120b5e9b6cb48f43fc846f15db8b9649e7f6·...·]/core/primitive.reference.html">&amp;mut·Self</a><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:·98760b16b1ed91f9558e6e2637724a4608316181d5f6f4d236e896a83eca9af9·...·]/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.78.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.78.0/core/it[·...·truncated·by·diffoscope;·len:·523,·SHA:·97064c705f6f4bdf74469c54fabcf580d21893127d1b4cd9a9c1018a717ef153·...·]/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.78.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.78.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:·e5d524e874326d0b9b733f5ee809c6595cde869afab0cc3d4ba8454093f420da·...·]/core/primitive.reference.html">&amp;mut·E</a><div·class="where">where74 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.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.78.0/core/iter/tr[·...·truncated·by·diffoscope;·len:·728,·SHA:·01937c2dc314c259495665570ae249c94b4a5b0719718f5f1188e6fc64ecf487·...·]/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.78.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.78.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:·b0297783e056393a542c4058b42c18523a86c961c1b6ce3bc94342c1a2c10c58·...·]/core/primitive.tuple.html">(B,·B)</a><div·class="where">where76 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></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:·00bd47017b1bdd1bbe2c3fc932d955a8aa2f7f5eff8c00e3001ae28a982a5883·...·]/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.78.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.78.0/core/default/trait.Default.html"·title="trait·core::default::Default">Default</a>·+·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/collect/trait.Extend.html"·title="trait·core::iter::traits::collec[·...·truncated·by·diffoscope;·len:·95,·SHA:·8b3be1d0042cae0550f865faf5849221240bdf04eb1b2107605b72d48c3ad29c·...·]/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:·806,·SHA:·5a1bcc1ddfc5fccf50d61bf2b8879dae247aa12c0b23ba2f437fd2a345cabac7·...·]/core/primitive.usize.html">usize</a><div·class="where">where79 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·995,·SHA:·bec3765fdab56713186e2454cd84738b5b28e3280a2f3d5a25cefdbc3089b520·...·]/core/primitive.usize.html">usize</a><div·class="where">where
80 ····T:·'a,80 ····T:·'a,
81 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>·+·<a·class="trait"·href="../../core/iter/traits/double_ended/trait.DoubleEndedIterator.html"·title="trait·core::iter::traits::double_ended::DoubleEndedIterator">DoubleEndedIter[·...·truncated·by·diffoscope;·len:·51,·SHA:·c9be73bbed9d11ecac2a179f480a640f51d6255f26712667ffdabc72c1fc7fb0·...·]/core/primitive.reference.html">&amp;'a·mut·T</a>&gt;,81 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>·+·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/double_ended/trait.DoubleEndedIterator.html"·title="trait·core::iter::trai[·...·truncated·by·diffoscope;·len:·132,·SHA:·e5b2cf5f56946ede1e190ed09879c5821e2de04cf8e5d145142eeb40c6340982·...·]/core/primitive.reference.html">&amp;'a·mut·T</a>&gt;,
82 ····P:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(<a·class="primitive"·href="../../core/primitive.reference.html">&amp;T</a>)·-&gt;·<a·class="primitive"·href="../../core/primitive.bool.html">bool</a>,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iter_partition_in_place</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/62543">#62543</a>)</span></div></span><div·class='docblock'>Reorders·the·elements·of·this·iterator·<em>in-place</em>·according·to·the·given·predicate,82 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(<a·class="primitive"·href="https://doc.rust-lang.org/1.78.0/core/primitive.reference.html">&amp;T</a>)·-&gt;·<a·class="primitive"·href="[·...·truncated·by·diffoscope;·len:·32,·SHA:·63d052a8ced32bf927ffadd7e884c08caf4970e85dfdf6be0e568d49b174da96·...·]/core/primitive.bool.html">bool</a>,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iter_partition_in_place</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/62543">#62543</a>)</span></div></span><div·class='docblock'>Reorders·the·elements·of·this·iterator·<em>in-place</em>·according·to·the·given·predicate,
83 such·that·all·those·that·return·<code>true</code>·precede·all·those·that·return·<code>false</code>.83 such·that·all·those·that·return·<code>true</code>·precede·all·those·that·return·<code>false</code>.
84 Returns·the·number·of·<code>true</code>·elements·found.·<a·href="../../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:·97056c44eac6a0f986fb2c8edec37302cc06edf44a6c6f7153a5d8623d8d6c0d·...·]/core/primitive.bool.html">bool</a><div·class="where">where84 Returns·the·number·of·<code>true</code>·elements·found.·<a·href="https://doc.rust-lang.org/1.78.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:·0c224636c18baa273f69de21f90083317f2ea0b7367a3f0d0f1c0ace55a36f79·...·]/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.78.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
86 ····P:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::[·...·truncated·by·diffoscope;·len:·54,·SHA:·d5ac304cc26edf57442227b641dd21c427d0f9cb322b79986f5b15fc49f867b0·...·]/core/primitive.bool.html">bool</a>,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iter_is_partitioned</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/62544">#62544</a>)</span></div></span><div·class='docblock'>Checks·if·the·elements·of·this·iterator·are·partitioned·according·to·the·given·predicate,86 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·135,·SHA:·51ff5f5c7ebd8440623ea71b125c5a5837e809e308fe1a13fbe19cddb941dbd9·...·]/core/primitive.bool.html">bool</a>,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iter_is_partitioned</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/62544">#62544</a>)</span></div></span><div·class='docblock'>Checks·if·the·elements·of·this·iterator·are·partitioned·according·to·the·given·predicate,
87 such·that·all·those·that·return·<code>true</code>·precede·all·those·that·return·<code>false</code>.·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.is_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:·6f406a351b93047f56fa70265a6bf28ec6874f75cd6cc5a39d51c7af462f2992·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_fold"·class="fn">try_fold</a>&lt;B,·F,·R&gt;(&amp;mut·self,·init:·B,·f:·F)·-&gt;·R<div·class="where">where87 such·that·all·those·that·return·<code>true</code>·precede·all·those·that·return·<code>false</code>.·<a·href="https://doc.rust-lang.org/1.78.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:·2c74873f4e5ba70004a1c7edd1cc3f9e2d91271295dd1591e2d26848df4c02ba·...·]/core/iter/traits/iterator/trait.Iterator.html#method.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
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.78.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;·R,89 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(B,·Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.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·=·B&gt;,</div></h4></section></summary><div·class='docblock'>An·iterator·method·that·applies·a·function·as·long·as·it·returns90 ····R:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.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
91 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:·eecdce021399d206eb3ef5af12ee7663b4eb0dca55b0f411c7fa66f605b6b2e2·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_for_each"·class="fn">try_for_each</a>&lt;F,·R&gt;(&amp;mut·self,·f:·F)·-&gt;·R<div·class="where">where91 successfully,·producing·a·single,·final·value.·<a·href="https://doc.rust-lang.org/1.78.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:·52912e82c4b0a760d06f77eb4ee3a59ba70dd76cb532954900c73ae94c652674·...·]/core/iter/traits/iterator/trait.Iterator.html#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
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.78.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::Item">Item</a>)·-&gt;·R,93 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·R,
94 ····R:·<a·class="trait"·href="../../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·the94 ····R:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.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.78.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
95 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:·ffdacd6b524bc823efebbf23dc0f77317a07fe9c8b691f2ea18db7aa0c08b146·...·]/core/iter/traits/iterator/trait.Iterator.html#method.fold"·class="fn">fold</a>&lt;B,·F&gt;(self,·init:·B,·f:·F)·-&gt;·B<div·class="where">where95 iterator,·stopping·at·the·first·error·and·returning·that·error.·<a·href="https://doc.rust-lang.org/1.78.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:·1d6c4809cea8748e901d3f94777f450d430f3161f6ac05ed1c178d9327f966a3·...·]/core/iter/traits/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
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.78.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>(B,·Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::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 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(B,·Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::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 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:·dbe3a08fe63abd47570741e71208c31aaf51152feac5917db07665a1f56bb3e3·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;<div·class="where">where98 returning·the·final·result.·<a·href="https://doc.rust-lang.org/1.78.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:·b60215068a6d9721be05f81098c51167d7138c4042f140cad42f77c4df43f597·...·]/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.78.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:·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·reducing100 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·352,·SHA:·e7c3c296abe2c0a183967153e4ae7fd50bafa2ae7088e3e78b3b48fee253adc6·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::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
101 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:·a9dce8bb557b5a11426bf2ffcbd5eea7c6c870833e3ee5bb072dcaaa11687b0c·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_reduce"·class="fn">try_reduce</a>&lt;F,·R&gt;(101 operation.·<a·href="https://doc.rust-lang.org/1.78.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:·7a18fdd041b1a001b4a8feb289ee127fd9240232239269eb35dc3b8f74783ec9·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_reduce"·class="fn">try_reduce</a>&lt;F,·R&gt;(
102 ····&amp;mut·self,102 ····&amp;mut·self,
103 ····f:·F103 ····f:·F
104 )·-&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">where104 )·-&gt;·&lt;&lt;R·as·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&gt;::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/ops/try_trait/trait.Try.html#associatedtype.Residual"·title="type[·...·truncated·by·diffoscope;·len:·754,·SHA:·6fb4dfdb6b4da68921c1e7f8b75d99cf293d58318d684a840254ce9576957bea·...·]/core/ops/try_trait/trait.Residual.html#associatedtype.TryType"·title="type·core::ops::try_trait::Residual::TryType">TryType</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.78.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:·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:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·140,·SHA:·c27972e6fa3464c9476eaa185e8657edb6bb294f148403f3d079285294a9f909·...·]/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·=·Self::<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.78.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.78.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.78.0/core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&gt;::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/ops/try_trait/trait.Try.html#associatedtype.Residual"·title="type[·...·truncated·by·diffoscope;·len:·412,·SHA:·22b8cbb007e5cce82b9d13a65bfa56aa8d83c32541fac25f4d9b3857b0540908·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;&gt;,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iterator_try_reduce</code>&nbsp;<a·href="https://github.com/rust-lang/rust/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:·65b80c848af6e465c8c5aef4ec8d3faaa399d30c8427c9507fda7b3bd1d3ea93·...·]/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.78.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:·bc0d658d56e348823de15386e1cd4ab49109f3a7a055a4573a19391b47071193·...·]/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.78.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:·95a840b532d3d621bde4032d63854eb0a481248e2b4bbb3ef058dbffb4dae4fa·...·]/core/primitive.bool.html">bool</a><div·class="where">where111 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·1018,·SHA:·e61cd6bdd36729cc38e57fcaea2ccb91a23a5acbda3c8986071f19bf1ecfc52a·...·]/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.78.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:·f828c62edd4fe85e217286f359b56c116e14ed18bb292ba1cc13d3ed7146909e·...·]/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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·1172,·SHA:·e64ab74d116d286191ad43d9d9e10411fc011c23724aa806e9a8f9b0be0757e3·...·]/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.78.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:·21d7086b3ce0092e3f7a6a41174339bbd8724e7d186158db4db3385a73d94e8e·...·]/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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·1051,·SHA:·ecc0b8fccd861464760f9ae047ff6ab98c91a1db010cb5fa59a8c2ab883db7c4·...·]/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.78.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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·130,·SHA:·130a13019dc175d02304b4f550157e2f13ac15c2f25a979c74161d10b146ab89·...·]/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:·ac4da3337aac1ec10038e246be9cb719eeb5af1acc709f5a6a25b91900c56f53·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_find"·class="fn">try_find</a>&lt;F,·R&gt;(118 the·first·non-none·result.·<a·href="https://doc.rust-lang.org/1.78.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:·8ced1b10e78750774c5c8ed995ed83dcd13983aa75d329acf8069da106ab9f4a·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_find"·class="fn">try_find</a>&lt;F,·R&gt;(
119 ····&amp;mut·self,119 ····&amp;mut·self,
120 ····f:·F120 ····f:·F
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.78.0/core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&gt;::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/ops/try_trait/trait.Try.html#associatedtype.Residual"·title="type[·...·truncated·by·diffoscope;·len:·626,·SHA:·95f9831257b68862cbcbf54f0ad2ff4e597a4c9f763112d1da8a0897dadcf872·...·]/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.78.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;·R,123 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·R,
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.78.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.78.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.78.0/core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&gt;::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/ops/try_trait/trait.Try.html#associatedtype.Residual"·title="type[·...·truncated·by·diffoscope;·len:·412,·SHA:·22b8cbb007e5cce82b9d13a65bfa56aa8d83c32541fac25f4d9b3857b0540908·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;&gt;,</div></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.78.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:·fa9d94b216f6e4ce6035b4762e3bf17cb86a0272db0a55a056f05c68bcaeb0da·...·]/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.78.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,
Max diff block lines reached; 76877/299792 bytes (25.64%) of diff not shown.
43.4 KB
./usr/share/doc/rust-web-doc/html/alloc/string/struct.FromUtf16Error.html
    
Offset 3, 19 lines modifiedOffset 3, 19 lines modified
3 <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 <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>
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">//·𝄞mu&lt;invalid&gt;ic5 <div·class="example-wrap"><pre·class="rust·rust-example-rendered"><code><span·class="comment">//·𝄞mu&lt;invalid&gt;ic
6 </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><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>,
7 ··········<span·class="number">0xD800</span>,·<span·class="number">0x0069</span>,·<span·class="number">0x0063</span>];7 ··········<span·class="number">0xD800</span>,·<span·class="number">0x0069</span>,·<span·class="number">0x0063</span>];
  
8 <span·class="macro">assert!</span>(String::from_utf16(v).is_err());</code></pre><a·class="test-arrow"·target="_blank"·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">Run</a></div>8 <span·class="macro">assert!</span>(String::from_utf16(v).is_err());</code></pre><a·class="test-arrow"·target="_blank"·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">Run</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-FromUtf16Error"·class="impl"><a·class="src·rightside"·href="../../src/alloc/string.rs.html#424">source</a><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-1"·class="method·trait-impl"><a·class="src·rightside"·href="../../src/alloc/string.rs.html#424">source</a><a·href="#method.fmt-1"·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"><a·class="src·rightside"·href="../../src/alloc/string.rs.html#2071-2075">source</a><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"·class="method·trait-impl"><a·class="src·rightside"·href="../../src/alloc/string.rs.html#2072-2074">source</a><a·href="#method.fmt"·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"><a·class="src·rightside"·href="../../src/alloc/string.rs.html#2086-2091">source</a><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:·6435,·SHA:·f6c2c951cad421101b091592953b4ff4c04a925d511cfdd9a52c0088f57021ae·...·]/core/any/trait.Any.html"·title="trait·core::any::Any">Any</a>·for·T<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-FromUtf16Error"·class="impl"><a·class="src·rightside"·href="../../src/alloc/string.rs.html#424">source</a><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-1"·class="method·trait-impl"><a·class="src·rightside"·href="../../src/alloc/string.rs.html#424">source</a><a·href="#method.fmt-1"·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"><a·class="src·rightside"·href="../../src/alloc/string.rs.html#2071-2075">source</a><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"·class="method·trait-impl"><a·class="src·rightside"·href="../../src/alloc/string.rs.html#2072-2074">source</a><a·href="#method.fmt"·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"><a·class="src·rightside"·href="../../src/alloc/string.rs.html#2086-2091">source</a><a·href="#impl-Error-for-FromUtf16Error"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="https://doc.rust-lang.org/1.78.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:·7110,·SHA:·a11a3f0c08a874b6106d9f2827e898d90d39d0f75ca0f64114ff4bb0ba0458f0·...·]/core/any/trait.Any.html"·title="trait·core::any::Any">Any</a>·for·T<div·class="where">where
10 ····T:·'static·+·?<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.type_id"·class="method·trait-impl"><a·class="src·[·...·truncated·by·diffoscope;·len:·672,·SHA:·9db8bacb767d75cc3351ca7341c388130aa05ebef490d992be5374f16eedc378·...·]/src/core/borrow.rs.html#208">source</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">where10 ····T:·'static·+·?<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">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:·039b8952ccb1ab7d8f15cd519cbc10f4afc149276d0f9cfd3a53117d606059df·...·]/src/core/borrow.rs.html#208">source</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
11 ····T:·?<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.borrow"·class="method·trait-impl"><a·class="src·r[·...·truncated·by·diffoscope;·len:·629,·SHA:·b2ffbab17ff1ef71ba4c506a3aaa515da2082da6f02a53862ce1ca2b2b25f5b4·...·]/src/core/borrow.rs.html#216">source</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">where11 ····T:·?<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/marker/trait.Sized.html"·title="trait·core::marker::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:·952d76e7bcf7b521fffa418ce638abf69976de0942360e56f93e419ca3389394·...·]/src/core/borrow.rs.html#216">source</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
12 ····T:·?<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.borrow_mut"·class="method·trait-impl"><a·class="s[·...·truncated·by·diffoscope;·len:·1227,·SHA:·befefcb8cb29dc857e1f3050572f6f470317e3350e0851c4ed6e56cc38673a92·...·]/core/convert/trait.From.html#tymethod.from"·class="fn">from</a>(t:·T)·-&gt;·T</h4></section></summary><div·class="docblock"><p>Returns·the·argument·unchanged.</p>12 ····T:·?<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/marker/trait.Sized.html"·title="trait·core::marker::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:·204bc28c8766993ff59d26bb790f1469ab686e6f172c57f35aa987a81507a7b1·...·]/core/convert/trait.From.html#tymethod.from"·class="fn">from</a>(t:·T)·-&gt;·T</h4></section></summary><div·class="docblock"><p>Returns·the·argument·unchanged.</p>
13 </div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-Into%3CU%3E-for-T"·class="impl"><a·class="src·rightside"·href="../../src/core/convert/mod.rs.html#748-750">source</a><a·href="#impl-Into%3CU%3E-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T,·U&gt;·<a·class="trait"·href="../../core/convert/trait.Into.html"·title="trait·core::convert::Into">Into</a>&lt;U&gt;·for·T<div·class="where">where13 </div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-Into%3CU%3E-for-T"·class="impl"><a·class="src·rightside"·href="https://doc.rust-lang.org/1.78.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.78.0/core/convert/trait.Into.html"·title="trait·core::convert::Into">Into</a>&lt;U&gt;·for·T<div·class="where">where
14 ····U:·<a·class="trait"·href="../../core/convert/trait.From.html"·title="trait·core::convert::From">From</a>&lt;T&gt;,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.into"·class="method·trait-impl"><a·class=[·...·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>14 ····U:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.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:·2cf76a8ca501b2a1fef209fed846779ab1bed3b75f52c7425335e3ce04e6b272·...·]/core/convert/trait.Into.html#tymethod.into"·class="fn">into</a>(self)·-&gt;·U</h4></section></summary><div·class="docblock"><p>Calls·<code>U::from(self)</code>.</p>
15 <p>That·is,·this·conversion·is·whatever·the·implementation·of15 <p>That·is,·this·conversion·is·whatever·the·implementation·of
16 <code><a·href="../../core/convert/trait.From.html"·title="trait·core::convert::From">From</a>&lt;T&gt;·for·U</code>·chooses·to·do.</p>16 <code><a·href="https://doc.rust-lang.org/1.78.0/core/convert/trait.From.html"·title="trait·core::convert::From">From</a>&lt;T&gt;·for·U</code>·chooses·to·do.</p>
17 </div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-ToString-for-T"·class="impl"><a·class="src·rightside"·href="../../src/alloc/string.rs.html#2543-2557">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">where17 </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#2543-2557">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
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:·845,·SHA:·97c1361571015e5434edd8070af816f581f263b88719bb2966c4c1c59bc453a1·...·]/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.78.0/core/marker/trait.Sized.html"·title="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:·8a6926f8c6172f792353b609553fbb0a6d6c2b085639bfe8e0971caf09bae81a·...·]/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"·class="associatedtype·trait-impl"><a·hre[·...·truncated·by·diffoscope;·len:·1591,·SHA:·8537afacf1b3cf6b9fb7db778975d49d8a8e5988d420715e464ff4a79dd696c5·...·]/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.78.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"·class="associ[·...·truncated·by·diffoscope;·len:·1861,·SHA:·78398046ba16de2f66a8201a11d6a2dd405fceedeabfcaa37481e77092687e6f·...·]/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-1"·class="associatedtype·trait-i[·...·truncated·by·diffoscope;·len:·1231,·SHA:·7843e7b6cca73922417e4154886c0df66f016d274b48933c21bdb75b67479d5b·...·]/core/convert/trait.TryFrom.html#associatedtype.Error"·title="type·core::convert::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.78.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-1"·cl[·...·truncated·by·diffoscope;·len:·1474,·SHA:·ca90cccb6c86c654c95a1aaec456fbbe4b115f0d5a700e7d156e823346d70894·...·]/core/convert/trait.TryFrom.html#associatedtype.Error"·title="type·core::convert::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.7 KB
./usr/share/doc/rust-web-doc/html/alloc/string/struct.FromUtf8Error.html
    
Offset 1, 65 lines modifiedOffset 1, 65 lines modified
1 <!DOCTYPE·html><html·lang="en"><head><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.write(`<link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/SourceSerif4-Regular-46f98efaafac5295.ttf.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/FiraSans-Regular-018c141bf0843ffd.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/FiraSans-Medium-8f9a781e4970d388.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/SourceCodePro-Regular-562dcc5011b6de7d.ttf.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/SourceCodePro-Semibold-d899c5a5c4aeb14a.ttf.woff2">`)</script><link·rel="stylesheet"·href="../../static.files/normalize-76eba96aa4d2e634.css"><link·rel="stylesheet"·href="../../static.files/rustdoc-35f9e32502181f1e.css"><meta·name="rustdoc-vars"·data-root-path="../../"·data-static-root-path="../../static.files/"·data-current-crate="alloc"·data-themes=""·data-resource-suffix="1.78.0"·data-rustdoc-version="1.78.0"·data-channel="1.78.0"·data-search-js="search-42d8da7a6b9792c2.js"·data-settings-js="settings-4313503d2e1961c2.js"·><script·src="../../static.files/storage-4c98445ec4002617.js"></script><script·defer·src="sidebar-items1.78.0.js"></script><script·defer·src="../../static.files/main-12cf3b4f4f9dc36d.js"></script><noscript><link·rel="stylesheet"·href="../../static.files/noscript-04d5337699b92874.css"></noscript><link·rel="alternate·icon"·type="image/png"·href="../../static.files/favicon-16x16-8b506e7a72182f1c.png"><link·rel="alternate·icon"·type="image/png"·href="../../static.files/favicon-32x32-422f7d1d52889060.png"><link·rel="icon"·type="image/svg+xml"·href="../../static.files/favicon-2c020d218678b618.svg"></head><body·class="rustdoc·struct"><!--[if·lte·IE·11]><div·class="warning">This·old·browser·is·unsupported·and·will·most·likely·display·funky·things.</div><![endif]--><nav·class="mobile-topbar"><button·class="sidebar-menu-toggle"·title="show·sidebar"></button><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-151179464ae7ed46.svg"·alt=""></a></nav><nav·class="sidebar"><div·class="sidebar-crate"><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-151179464ae7ed46.svg"·alt="logo"></a><h2><a·href="../../alloc/index.html">alloc</a><span·class="version">1.78.0</span></h2></div><h2·class="location"><a·href="#">FromUtf8Error</a></h2><div·class="sidebar-elems"><section><h3><a·href="#implementations">Methods</a></h3><ul·class="block·method"><li><a·href="#method.as_bytes">as_bytes</a></li><li><a·href="#method.into_bytes">into_bytes</a></li><li><a·href="#method.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">Clone</a></li><li><a·href="#impl-Debug-for-FromUtf8Error">Debug</a></li><li><a·href="#impl-Display-for-FromUtf8Error">Display</a></li><li><a·href="#impl-Eq-for-FromUtf8Error">Eq</a></li><li><a·href="#impl-Error-for-FromUtf8Error">Error</a></li><li><a·href="#impl-PartialEq-for-FromUtf8Error">PartialEq</a></li><li><a·href="#impl-StructuralPartialEq-for-FromUtf8Error">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">Freeze</a></li><li><a·href="#impl-RefUnwindSafe-for-FromUtf8Error">RefUnwindSafe</a></li><li><a·href="#impl-Send-for-FromUtf8Error">Send</a></li><li><a·href="#impl-Sync-for-FromUtf8Error">Sync</a></li><li><a·href="#impl-Unpin-for-FromUtf8Error">Unpin</a></li><li><a·href="#impl-UnwindSafe-for-FromUtf8Error">UnwindSafe</a></li></ul><h3><a·href="#blanket-implementations">Blanket·Implementations</a></h3><ul·class="block·blanket-implementation"><li><a·href="#impl-Any-for-T">Any</a></li><li><a·href="#impl-Borrow%3CT%3E-for-T">Borrow&lt;T&gt;</a></li><li><a·href="#impl-BorrowMut%3CT%3E-for-T">BorrowMut&lt;T&gt;</a></li><li><a·href="#impl-From%3CT%3E-for-T">From&lt;T&gt;</a></li><li><a·href="#impl-Into%3CU%3E-for-T">Into&lt;U&gt;</a></li><li><a·href="#impl-ToOwned-for-T">ToOwned</a></li><li><a·href="#impl-ToString-for-T">ToString</a></li><li><a·href="#impl-TryFrom%3CU%3E-for-T">TryFrom&lt;U&gt;</a></li><li><a·href="#impl-TryInto%3CU%3E-for-T">TryInto&lt;U&gt;</a></li></ul></section><h2><a·href="index.html">In·alloc::string</a></h2></div></nav><div·class="sidebar-resizer"></div>1 <!DOCTYPE·html><html·lang="en"><head><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.write(`<link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/SourceSerif4-Regular-46f98efaafac5295.ttf.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/FiraSans-Regular-018c141bf0843ffd.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/FiraSans-Medium-8f9a781e4970d388.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/SourceCodePro-Regular-562dcc5011b6de7d.ttf.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/SourceCodePro-Semibold-d899c5a5c4aeb14a.ttf.woff2">`)</script><link·rel="stylesheet"·href="../../static.files/normalize-76eba96aa4d2e634.css"><link·rel="stylesheet"·href="../../static.files/rustdoc-35f9e32502181f1e.css"><meta·name="rustdoc-vars"·data-root-path="../../"·data-static-root-path="../../static.files/"·data-current-crate="alloc"·data-themes=""·data-resource-suffix="1.78.0"·data-rustdoc-version="1.78.0"·data-channel="1.78.0"·data-search-js="search-42d8da7a6b9792c2.js"·data-settings-js="settings-4313503d2e1961c2.js"·><script·src="../../static.files/storage-4c98445ec4002617.js"></script><script·defer·src="sidebar-items1.78.0.js"></script><script·defer·src="../../static.files/main-12cf3b4f4f9dc36d.js"></script><noscript><link·rel="stylesheet"·href="../../static.files/noscript-04d5337699b92874.css"></noscript><link·rel="alternate·icon"·type="image/png"·href="../../static.files/favicon-16x16-8b506e7a72182f1c.png"><link·rel="alternate·icon"·type="image/png"·href="../../static.files/favicon-32x32-422f7d1d52889060.png"><link·rel="icon"·type="image/svg+xml"·href="../../static.files/favicon-2c020d218678b618.svg"></head><body·class="rustdoc·struct"><!--[if·lte·IE·11]><div·class="warning">This·old·browser·is·unsupported·and·will·most·likely·display·funky·things.</div><![endif]--><nav·class="mobile-topbar"><button·class="sidebar-menu-toggle"·title="show·sidebar"></button><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-151179464ae7ed46.svg"·alt=""></a></nav><nav·class="sidebar"><div·class="sidebar-crate"><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-151179464ae7ed46.svg"·alt="logo"></a><h2><a·href="../../alloc/index.html">alloc</a><span·class="version">1.78.0</span></h2></div><h2·class="location"><a·href="#">FromUtf8Error</a></h2><div·class="sidebar-elems"><section><h3><a·href="#implementations">Methods</a></h3><ul·class="block·method"><li><a·href="#method.as_bytes">as_bytes</a></li><li><a·href="#method.into_bytes">into_bytes</a></li><li><a·href="#method.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">Clone</a></li><li><a·href="#impl-Debug-for-FromUtf8Error">Debug</a></li><li><a·href="#impl-Display-for-FromUtf8Error">Display</a></li><li><a·href="#impl-Eq-for-FromUtf8Error">Eq</a></li><li><a·href="#impl-Error-for-FromUtf8Error">Error</a></li><li><a·href="#impl-PartialEq-for-FromUtf8Error">PartialEq</a></li><li><a·href="#impl-StructuralPartialEq-for-FromUtf8Error">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">Freeze</a></li><li><a·href="#impl-RefUnwindSafe-for-FromUtf8Error">RefUnwindSafe</a></li><li><a·href="#impl-Send-for-FromUtf8Error">Send</a></li><li><a·href="#impl-Sync-for-FromUtf8Error">Sync</a></li><li><a·href="#impl-Unpin-for-FromUtf8Error">Unpin</a></li><li><a·href="#impl-UnwindSafe-for-FromUtf8Error">UnwindSafe</a></li></ul><h3><a·href="#blanket-implementations">Blanket·Implementations</a></h3><ul·class="block·blanket-implementation"><li><a·href="#impl-Any-for-T">Any</a></li><li><a·href="#impl-Borrow%3CT%3E-for-T">Borrow&lt;T&gt;</a></li><li><a·href="#impl-BorrowMut%3CT%3E-for-T">BorrowMut&lt;T&gt;</a></li><li><a·href="#impl-From%3CT%3E-for-T">From&lt;T&gt;</a></li><li><a·href="#impl-Into%3CU%3E-for-T">Into&lt;U&gt;</a></li><li><a·href="#impl-ToOwned-for-T">ToOwned</a></li><li><a·href="#impl-ToString-for-T">ToString</a></li><li><a·href="#impl-TryFrom%3CU%3E-for-T">TryFrom&lt;U&gt;</a></li><li><a·href="#impl-TryInto%3CU%3E-for-T">TryInto&lt;U&gt;</a></li></ul></section><h2><a·href="index.html">In·alloc::string</a></h2></div></nav><div·class="sidebar-resizer"></div>
2 ····<main><div·class="width-limiter"><nav·class="sub"><form·class="search-form"><span></span><div·id="sidebar-button"·tabindex="-1"><a·href="../../alloc/all.html"·title="show·sidebar"></a></div><input·class="search-input"·name="search"·aria-label="Run·search·in·the·documentation"·autocomplete="off"·spellcheck="false"·placeholder="Click·or·press·‘S’·to·search,·‘?’·for·more·options…"·type="search"><div·id="help-button"·tabindex="-1"><a·href="../../help.html"·title="help">?</a></div><div·id="settings-menu"·tabindex="-1"><a·href="../../settings.html"·title="settings"><img·width="22"·height="22"·alt="Change·settings"·src="../../static.files/wheel-7b819b6101059cd0.svg"></a></div></form></nav><section·id="main-content"·class="content"><div·class="main-heading"><h1>Struct·<a·href="../index.html">alloc</a>::<wbr><a·href="index.html">string</a>::<wbr><a·class="struct"·href="#">FromUtf8Error</a><button·id="copy-path"·title="Copy·item·path·to·clipboard"><img·src="../../static.files/clipboard-7571035ce49a181d.svg"·width="19"·height="18"·alt="Copy·item·path"></button></h1><span·class="out-of-band"><span·class="since"·title="Stable·since·Rust·version·1.0.0">1.0.0</span>···<a·class="src"·href="../../src/alloc/string.rs.html#403-406">source</a>···<button·id="toggle-all-docs"·title="collapse·all·docs">[<span>&#x2212;</span>]</button></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 ····<main><div·class="width-limiter"><nav·class="sub"><form·class="search-form"><span></span><div·id="sidebar-button"·tabindex="-1"><a·href="../../alloc/all.html"·title="show·sidebar"></a></div><input·class="search-input"·name="search"·aria-label="Run·search·in·the·documentation"·autocomplete="off"·spellcheck="false"·placeholder="Click·or·press·‘S’·to·search,·‘?’·for·more·options…"·type="search"><div·id="help-button"·tabindex="-1"><a·href="../../help.html"·title="help">?</a></div><div·id="settings-menu"·tabindex="-1"><a·href="../../settings.html"·title="settings"><img·width="22"·height="22"·alt="Change·settings"·src="../../static.files/wheel-7b819b6101059cd0.svg"></a></div></form></nav><section·id="main-content"·class="content"><div·class="main-heading"><h1>Struct·<a·href="../index.html">alloc</a>::<wbr><a·href="index.html">string</a>::<wbr><a·class="struct"·href="#">FromUtf8Error</a><button·id="copy-path"·title="Copy·item·path·to·clipboard"><img·src="../../static.files/clipboard-7571035ce49a181d.svg"·width="19"·height="18"·alt="Copy·item·path"></button></h1><span·class="out-of-band"><span·class="since"·title="Stable·since·Rust·version·1.0.0">1.0.0</span>···<a·class="src"·href="../../src/alloc/string.rs.html#403-406">source</a>···<button·id="toggle-all-docs"·title="collapse·all·docs">[<span>&#x2212;</span>]</button></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>
3 <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>.·It3 <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
4 is·designed·in·such·a·way·to·carefully·avoid·reallocations:·the4 is·designed·in·such·a·way·to·carefully·avoid·reallocations:·the
5 <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·the5 <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
6 conversion·attempt.</p>6 conversion·attempt.</p>
7 <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·may7 <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.78.0/core/str/index.html"·title="std::str"><code>std::str</code></a>·represents·an·error·that·may
8 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’s8 occur·when·converting·a·slice·of·<a·href="https://doc.rust-lang.org/1.78.0/core/primitive.u8.html"·title="primitive·u8"><code>u8</code></a>s·to·a·<a·href="https://doc.rust-lang.org/1.78.0/core/primitive.str.html"·title="&amp;str"><code>&amp;str</code></a>.·In·this·sense,·it’s
9 an·analogue·to·<code>FromUtf8Error</code>,·and·you·can·get·one·from·a·<code>FromUtf8Error</code>9 an·analogue·to·<code>FromUtf8Error</code>,·and·you·can·get·one·from·a·<code>FromUtf8Error</code>
10 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 through·the·<a·href="struct.FromUtf8Error.html#method.utf8_error"·title="method·alloc::string::FromUtf8Error::utf8_error"><code>utf8_error</code></a>·method.</p>
11 <h2·id="examples"><a·class="doc-anchor"·href="#examples">§</a>Examples</h2>11 <h2·id="examples"><a·class="doc-anchor"·href="#examples">§</a>Examples</h2>
12 <div·class="example-wrap"><pre·class="rust·rust-example-rendered"><code><span·class="comment">//·some·invalid·bytes,·in·a·vector12 <div·class="example-wrap"><pre·class="rust·rust-example-rendered"><code><span·class="comment">//·some·invalid·bytes,·in·a·vector
13 </span><span·class="kw">let·</span>bytes·=·<span·class="macro">vec!</span>[<span·class="number">0</span>,·<span·class="number">159</span>];13 </span><span·class="kw">let·</span>bytes·=·<span·class="macro">vec!</span>[<span·class="number">0</span>,·<span·class="number">159</span>];
  
14 <span·class="kw">let·</span>value·=·String::from_utf8(bytes);14 <span·class="kw">let·</span>value·=·String::from_utf8(bytes);
  
15 <span·class="macro">assert!</span>(value.is_err());15 <span·class="macro">assert!</span>(value.is_err());
16 <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"·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">Run</a></div>16 <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"·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">Run</a></div>
17 </div></details><h2·id="implementations"·class="section-header">Implementations<a·href="#implementations"·class="anchor">§</a></h2><div·id="implementations-list"><details·class="toggle·implementors-toggle"·open><summary><section·id="impl-FromUtf8Error"·class="impl"><a·class="src·rightside"·href="../../src/alloc/string.rs.html#1994-2061">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#2009-2011">source</a></span><h4·class="code-header">pub·fn·<a·href="#method.as_bytes"·class="fn">as_bytes</a>(&amp;self)·-&gt;·&amp;[<a·class="primitive"·href="../../core/primitive.u8.html">u8</a>]</h4></section></summary><div·class="docblock"><p>Returns·a·slice·of·<a·href="../../core/primitive.u8.html"·title="primitive·u8"><code>u8</code></a>s·bytes·that·were·attempted·to·convert·to·a·<code>String</code>.</p>17 </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#1994-2061">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#2009-2011">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.78.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.78.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>
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 <div·class="example-wrap"><pre·class="rust·rust-example-rendered"><code><span·class="comment">//·some·invalid·bytes,·in·a·vector19 <div·class="example-wrap"><pre·class="rust·rust-example-rendered"><code><span·class="comment">//·some·invalid·bytes,·in·a·vector
20 </span><span·class="kw">let·</span>bytes·=·<span·class="macro">vec!</span>[<span·class="number">0</span>,·<span·class="number">159</span>];20 </span><span·class="kw">let·</span>bytes·=·<span·class="macro">vec!</span>[<span·class="number">0</span>,·<span·class="number">159</span>];
  
21 <span·class="kw">let·</span>value·=·String::from_utf8(bytes);21 <span·class="kw">let·</span>value·=·String::from_utf8(bytes);
  
22 <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"·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">Run</a></div>22 <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"·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">Run</a></div>
23 </div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.into_bytes"·class="method"><a·class="src·rightside"·href="../../src/alloc/string.rs.html#2031-2033">source</a><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>23 </div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.into_bytes"·class="method"><a·class="src·rightside"·href="../../src/alloc/string.rs.html#2031-2033">source</a><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.78.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>
24 <p>This·method·is·carefully·constructed·to·avoid·allocation.·It·will24 <p>This·method·is·carefully·constructed·to·avoid·allocation.·It·will
25 consume·the·error,·moving·out·the·bytes,·so·that·a·copy·of·the·bytes25 consume·the·error,·moving·out·the·bytes,·so·that·a·copy·of·the·bytes
26 does·not·need·to·be·made.</p>26 does·not·need·to·be·made.</p>
27 <h5·id="examples-2"><a·class="doc-anchor"·href="#examples-2">§</a>Examples</h5>27 <h5·id="examples-2"><a·class="doc-anchor"·href="#examples-2">§</a>Examples</h5>
28 <div·class="example-wrap"><pre·class="rust·rust-example-rendered"><code><span·class="comment">//·some·invalid·bytes,·in·a·vector28 <div·class="example-wrap"><pre·class="rust·rust-example-rendered"><code><span·class="comment">//·some·invalid·bytes,·in·a·vector
29 </span><span·class="kw">let·</span>bytes·=·<span·class="macro">vec!</span>[<span·class="number">0</span>,·<span·class="number">159</span>];29 </span><span·class="kw">let·</span>bytes·=·<span·class="macro">vec!</span>[<span·class="number">0</span>,·<span·class="number">159</span>];
  
30 <span·class="kw">let·</span>value·=·String::from_utf8(bytes);30 <span·class="kw">let·</span>value·=·String::from_utf8(bytes);
  
31 <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"·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">Run</a></div>31 <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"·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">Run</a></div>
32 </div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.utf8_error"·class="method"><a·class="src·rightside"·href="../../src/alloc/string.rs.html#2058-2060">source</a><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>32 </div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.utf8_error"·class="method"><a·class="src·rightside"·href="../../src/alloc/string.rs.html#2058-2060">source</a><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>
33 <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·may33 <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.78.0/core/str/index.html"·title="std::str"><code>std::str</code></a>·represents·an·error·that·may
34 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’s34 occur·when·converting·a·slice·of·<a·href="https://doc.rust-lang.org/1.78.0/core/primitive.u8.html"·title="primitive·u8"><code>u8</code></a>s·to·a·<a·href="https://doc.rust-lang.org/1.78.0/core/primitive.str.html"·title="&amp;str"><code>&amp;str</code></a>.·In·this·sense,·it’s
35 an·analogue·to·<code>FromUtf8Error</code>.·See·its·documentation·for·more·details35 an·analogue·to·<code>FromUtf8Error</code>.·See·its·documentation·for·more·details
36 on·using·it.</p>36 on·using·it.</p>
37 <h5·id="examples-3"><a·class="doc-anchor"·href="#examples-3">§</a>Examples</h5>37 <h5·id="examples-3"><a·class="doc-anchor"·href="#examples-3">§</a>Examples</h5>
38 <div·class="example-wrap"><pre·class="rust·rust-example-rendered"><code><span·class="comment">//·some·invalid·bytes,·in·a·vector38 <div·class="example-wrap"><pre·class="rust·rust-example-rendered"><code><span·class="comment">//·some·invalid·bytes,·in·a·vector
39 </span><span·class="kw">let·</span>bytes·=·<span·class="macro">vec!</span>[<span·class="number">0</span>,·<span·class="number">159</span>];39 </span><span·class="kw">let·</span>bytes·=·<span·class="macro">vec!</span>[<span·class="number">0</span>,·<span·class="number">159</span>];
  
40 <span·class="kw">let·</span>error·=·String::from_utf8(bytes).unwrap_err().utf8_error();40 <span·class="kw">let·</span>error·=·String::from_utf8(bytes).unwrap_err().utf8_error();
  
41 <span·class="comment">//·the·first·byte·is·invalid·here41 <span·class="comment">//·the·first·byte·is·invalid·here
42 </span><span·class="macro">assert_eq!</span>(<span·class="number">1</span>,·error.valid_up_to());</code></pre><a·class="test-arrow"·target="_blank"·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">Run</a></div>42 </span><span·class="macro">assert_eq!</span>(<span·class="number">1</span>,·error.valid_up_to());</code></pre><a·class="test-arrow"·target="_blank"·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">Run</a></div>
43 </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"><a·class="src·rightside"·href="../../src/alloc/string.rs.html#401">source</a><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:·8824,·SHA:·63b8890fd7e8aeeb5d8864fecb846093f2f561b41fb307b8175e905f209d6cb5·...·]/core/primitive.bool.html">bool</a></h4></section></summary><div·class='docblock'>This·method·tests·for·<code>self</code>·and·<code>other</code>·values·to·be·equal,·and·is·used43 </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"><a·class="src·rightside"·href="../../src/alloc/string.rs.html#401">source</a><a·href="#impl-Clone-for-FromUtf8Error"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="https://doc.rust-lang.org/1.78.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:·9553,·SHA:·192525484398e6bcbada91f915cfabbe225f85f6db46e5e83aad27eed1b5c4fd·...·]/core/primitive.bool.html">bool</a></h4></section></summary><div·class='docblock'>This·method·tests·for·<code>self</code>·and·<code>other</code>·values·to·be·equal,·and·is·used
44 by·<code>==</code>.</div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.ne"·class="method·trait-impl"><a·class="src·rightside"·href="../../src/core/cmp.rs.html#263">source</a><a·href="#method.ne"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../../core/cmp/trait.PartialEq.html#method.ne"·class="fn">ne</a>(&amp;self,·other:·<a·class="primitive"·href="../../core/primitive.refere[·...·truncated·by·diffoscope;·len:·62,·SHA:·08c05ae5f855368e255c51945ed5572423ad7787a7d2cf5c61719fd2a76285df·...·]/core/primitive.bool.html">bool</a></h4></section></summary><div·class='docblock'>This·method·tests·for·<code>!=</code>.·The·default·implementation·is·almost·always44 by·<code>==</code>.</div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.ne"·class="method·trait-impl"><a·class="src·rightside"·href="https://doc.rust-lang.org/1.78.0/src/core/cmp.rs.html#263">source</a><a·href="#method.ne"·class="anchor">§</a><h4·class="code-header">fn·<a·href="https://doc.rust-lang.org/1.78.0/core/cmp/trait.PartialEq.html#method.ne"·class="fn">ne</a>(&amp;self,·other:·[·...·truncated·by·diffoscope;·len:·170,·SHA:·7c0c9680b4d89f8edf1ab3e11bac78a0c9f93eef84e615310dcfa7ec178d9955·...·]/core/primitive.bool.html">bool</a></h4></section></summary><div·class='docblock'>This·method·tests·for·<code>!=</code>.·The·default·implementation·is·almost·always
45 sufficient,·and·should·not·be·overridden·without·very·good·reason.</div></details></div></details><section·id="impl-Eq-for-FromUtf8Error"·class="impl"><a·class="src·rightside"·href="../../src/alloc/string.rs.html#402">source</a><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:·3503,·SHA:·639825f841ae328834e464f2137375826bcd37035ef06bc9b4cf93bf855e7c06·...·]/core/any/trait.Any.html"·title="trait·core::any::Any">Any</a>·for·T<div·class="where">where45 sufficient,·and·should·not·be·overridden·without·very·good·reason.</div></details></div></details><section·id="impl-Eq-for-FromUtf8Error"·class="impl"><a·class="src·rightside"·href="../../src/alloc/string.rs.html#402">source</a><a·href="#impl-Eq-for-FromUtf8Error"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="https://doc.rust-lang.org/1.78.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:·3773,·SHA:·8c4a122b8eb4eb0714565f39e409b2c866695108ba8ea546812cf223719a095e·...·]/core/any/trait.Any.html"·title="trait·core::any::Any">Any</a>·for·T<div·class="where">where
46 ····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:·9db8bacb767d75cc3351ca7341c388130aa05ebef490d992be5374f16eedc378·...·]/src/core/borrow.rs.html#208">source</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">where46 ····T:·'static·+·?<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">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:·039b8952ccb1ab7d8f15cd519cbc10f4afc149276d0f9cfd3a53117d606059df·...·]/src/core/borrow.rs.html#208">source</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
47 ····T:·?<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::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:·b2ffbab17ff1ef71ba4c506a3aaa515da2082da6f02a53862ce1ca2b2b25f5b4·...·]/src/core/borrow.rs.html#216">source</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">where47 ····T:·?<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/marker/trait.Sized.html"·title="trait·core::marker::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:·952d76e7bcf7b521fffa418ce638abf69976de0942360e56f93e419ca3389394·...·]/src/core/borrow.rs.html#216">source</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
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_mut"·class="method·trait-impl"><a·class="s[·...·truncated·by·diffoscope;·len:·1227,·SHA:·befefcb8cb29dc857e1f3050572f6f470317e3350e0851c4ed6e56cc38673a92·...·]/core/convert/trait.From.html#tymethod.from"·class="fn">from</a>(t:·T)·-&gt;·T</h4></section></summary><div·class="docblock"><p>Returns·the·argument·unchanged.</p>48 ····T:·?<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/marker/trait.Sized.html"·title="trait·core::marker::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:·204bc28c8766993ff59d26bb790f1469ab686e6f172c57f35aa987a81507a7b1·...·]/core/convert/trait.From.html#tymethod.from"·class="fn">from</a>(t:·T)·-&gt;·T</h4></section></summary><div·class="docblock"><p>Returns·the·argument·unchanged.</p>
49 </div></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">where49 </div></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.78.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.78.0/core/convert/trait.Into.html"·title="trait·core::convert::Into">Into</a>&lt;U&gt;·for·T<div·class="where">where
50 ····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>50 ····U:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.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:·2cf76a8ca501b2a1fef209fed846779ab1bed3b75f52c7425335e3ce04e6b272·...·]/core/convert/trait.Into.html#tymethod.into"·class="fn">into</a>(self)·-&gt;·U</h4></section></summary><div·class="docblock"><p>Calls·<code>U::from(self)</code>.</p>
51 <p>That·is,·this·conversion·is·whatever·the·implementation·of51 <p>That·is,·this·conversion·is·whatever·the·implementation·of
52 <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>52 <code><a·href="https://doc.rust-lang.org/1.78.0/core/convert/trait.From.html"·title="trait·core::convert::From">From</a>&lt;T&gt;·for·U</code>·chooses·to·do.</p>
53 </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#83-95">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">where53 </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#83-95">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
54 ····T:·<a·class="trait"·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·href="#associ[·...·truncated·by·diffoscope;·len:·1220,·SHA:·3cbf0f64542b816603968ea3c1b51d1b1eb93d99770d50fed747c05540b0e6b0·...·]/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#2543-2557">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">where54 ····T:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.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:·1274,·SHA:·0c080e1e1236f77ce91b20fef8bb17c6bc50a069d2e16d2b40ea7b4298dec09f·...·]/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#2543-2557">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
55 ····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:·97c1361571015e5434edd8070af816f581f263b88719bb2966c4c1c59bc453a1·...·]/core/convert/trait.TryFrom.html"·title="trait·core::convert::TryFrom">TryFrom</a>&lt;U&gt;·for·T<div·class="where">where55 ····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.78.0/core/marker/trait.Sized.html"·title="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:·8a6926f8c6172f792353b609553fbb0a6d6c2b085639bfe8e0971caf09bae81a·...·]/core/convert/trait.TryFrom.html"·title="trait·core::convert::TryFrom">TryFrom</a>&lt;U&gt;·for·T<div·class="where">where
56 ····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"·class="associatedtype·trait-impl"><a·hre[·...·truncated·by·diffoscope;·len:·1591,·SHA:·8537afacf1b3cf6b9fb7db778975d49d8a8e5988d420715e464ff4a79dd696c5·...·]/core/convert/trait.TryInto.html"·title="trait·core::convert::TryInto">TryInto</a>&lt;U&gt;·for·T<div·class="where">where56 ····U:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.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"·class="associ[·...·truncated·by·diffoscope;·len:·1861,·SHA:·78398046ba16de2f66a8201a11d6a2dd405fceedeabfcaa37481e77092687e6f·...·]/core/convert/trait.TryInto.html"·title="trait·core::convert::TryInto">TryInto</a>&lt;U&gt;·for·T<div·class="where">where
57 ····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-1"·class="associatedtype·trait-i[·...·truncated·by·diffoscope;·len:·1231,·SHA:·7843e7b6cca73922417e4154886c0df66f016d274b48933c21bdb75b67479d5b·...·]/core/convert/trait.TryFrom.html#associatedtype.Error"·title="type·core::convert::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 ····U:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.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-1"·cl[·...·truncated·by·diffoscope;·len:·1474,·SHA:·ca90cccb6c86c654c95a1aaec456fbbe4b115f0d5a700e7d156e823346d70894·...·]/core/convert/trait.TryFrom.html#associatedtype.Error"·title="type·core::convert::TryFrom::Error">Error</a>&gt;</h4></section></summary><div·class='docblock'>Performs·the·conversion.</div></details></div></details></div></section></div></main></body></html>
745 KB
./usr/share/doc/rust-web-doc/html/alloc/string/struct.String.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="A·UTF-8–encoded,·growable·string."><title>String·in·alloc::string·-·Rust</title><script>·if·(window.location.protocol·!==·"file:")·document.write(`<link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/SourceSerif4-Regular-46f98efaafac5295.ttf.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/FiraSans-Regular-018c141bf0843ffd.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/FiraSans-Medium-8f9a781e4970d388.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/SourceCodePro-Regular-562dcc5011b6de7d.ttf.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/SourceCodePro-Semibold-d899c5a5c4aeb14a.ttf.woff2">`)</script><link·rel="stylesheet"·href="../../static.files/normalize-76eba96aa4d2e634.css"><link·rel="stylesheet"·href="../../static.files/rustdoc-35f9e32502181f1e.css"><meta·name="rustdoc-vars"·data-root-path="../../"·data-static-root-path="../../static.files/"·data-current-crate="alloc"·data-themes=""·data-resource-suffix="1.78.0"·data-rustdoc-version="1.78.0"·data-channel="1.78.0"·data-search-js="search-42d8da7a6b9792c2.js"·data-settings-js="settings-4313503d2e1961c2.js"·><script·src="../../static.files/storage-4c98445ec4002617.js"></script><script·defer·src="sidebar-items1.78.0.js"></script><script·defer·src="../../static.files/main-12cf3b4f4f9dc36d.js"></script><noscript><link·rel="stylesheet"·href="../../static.files/noscript-04d5337699b92874.css"></noscript><link·rel="alternate·icon"·type="image/png"·href="../../static.files/favicon-16x16-8b506e7a72182f1c.png"><link·rel="alternate·icon"·type="image/png"·href="../../static.files/favicon-32x32-422f7d1d52889060.png"><link·rel="icon"·type="image/svg+xml"·href="../../static.files/favicon-2c020d218678b618.svg"></head><body·class="rustdoc·struct"><!--[if·lte·IE·11]><div·class="warning">This·old·browser·is·unsupported·and·will·most·likely·display·funky·things.</div><![endif]--><nav·class="mobile-topbar"><button·class="sidebar-menu-toggle"·title="show·sidebar"></button><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-151179464ae7ed46.svg"·alt=""></a></nav><nav·class="sidebar"><div·class="sidebar-crate"><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-151179464ae7ed46.svg"·alt="logo"></a><h2><a·href="../../alloc/index.html">alloc</a><span·class="version">1.78.0</span></h2></div><h2·class="location"><a·href="#">String</a></h2><div·class="sidebar-elems"><section><h3><a·href="#implementations">Methods</a></h3><ul·class="block·method"><li><a·href="#method.as_bytes">as_bytes</a></li><li><a·href="#method.as_mut_str">as_mut_str</a></li><li><a·href="#method.as_mut_vec">as_mut_vec</a></li><li><a·href="#method.as_str">as_str</a></li><li><a·href="#method.capacity">capacity</a></li><li><a·href="#method.clear">clear</a></li><li><a·href="#method.drain">drain</a></li><li><a·href="#method.extend_from_within">extend_from_within</a></li><li><a·href="#method.from_raw_parts">from_raw_parts</a></li><li><a·href="#method.from_utf16">from_utf16</a></li><li><a·href="#method.from_utf16_lossy">from_utf16_lossy</a></li><li><a·href="#method.from_utf16be">from_utf16be</a></li><li><a·href="#method.from_utf16be_lossy">from_utf16be_lossy</a></li><li><a·href="#method.from_utf16le">from_utf16le</a></li><li><a·href="#method.from_utf16le_lossy">from_utf16le_lossy</a></li><li><a·href="#method.from_utf8">from_utf8</a></li><li><a·href="#method.from_utf8_lossy">from_utf8_lossy</a></li><li><a·href="#method.from_utf8_unchecked">from_utf8_unchecked</a></li><li><a·href="#method.insert">insert</a></li><li><a·href="#method.insert_str">insert_str</a></li><li><a·href="#method.into_boxed_str">into_boxed_str</a></li><li><a·href="#method.into_bytes">into_bytes</a></li><li><a·href="#method.into_raw_parts">into_raw_parts</a></li><li><a·href="#method.is_empty">is_empty</a></li><li><a·href="#method.leak">leak</a></li><li><a·href="#method.len">len</a></li><li><a·href="#method.new">new</a></li><li><a·href="#method.pop">pop</a></li><li><a·href="#method.push">push</a></li><li><a·href="#method.push_str">push_str</a></li><li><a·href="#method.remove">remove</a></li><li><a·href="#method.remove_matches">remove_matches</a></li><li><a·href="#method.replace_range">replace_range</a></li><li><a·href="#method.reserve">reserve</a></li><li><a·href="#method.reserve_exact">reserve_exact</a></li><li><a·href="#method.retain">retain</a></li><li><a·href="#method.shrink_to">shrink_to</a></li><li><a·href="#method.shrink_to_fit">shrink_to_fit</a></li><li><a·href="#method.split_off">split_off</a></li><li><a·href="#method.truncate">truncate</a></li><li><a·href="#method.try_reserve">try_reserve</a></li><li><a·href="#method.try_reserve_exact">try_reserve_exact</a></li><li><a·href="#method.try_with_capacity">try_with_capacity</a></li><li><a·href="#method.with_capacity">with_capacity</a></li></ul><h3><a·href="#deref-methods-str">Methods·from·Deref&lt;Target=str&gt;</a></h3><ul·class="block·deref-methods"><li><a·href="#method.as_ascii">as_ascii</a></li><li><a·href="#method.as_bytes-1">as_bytes</a></li><li><a·href="#method.as_bytes_mut">as_bytes_mut</a></li><li><a·href="#method.as_mut_ptr">as_mut_ptr</a></li><li><a·href="#method.as_ptr">as_ptr</a></li><li><a·href="#method.bytes">bytes</a></li><li><a·href="#method.ceil_char_boundary">ceil_char_boundary</a></li><li><a·href="#method.char_indices">char_indices</a></li><li><a·href="#method.chars">chars</a></li><li><a·href="#method.contains">contains</a></li><li><a·href="#method.encode_utf16">encode_utf16</a></li><li><a·href="#method.ends_with">ends_with</a></li><li><a·href="#method.eq_ignore_ascii_case">eq_ignore_ascii_case</a></li><li><a·href="#method.escape_debug">escape_debug</a></li><li><a·href="#method.escape_default">escape_default</a></li><li><a·href="#method.escape_unicode">escape_unicode</a></li><li><a·href="#method.find">find</a></li><li><a·href="#method.floor_char_boundary">floor_char_boundary</a></li><li><a·href="#method.get">get</a></li><li><a·href="#method.get_mut">get_mut</a></li><li><a·href="#method.get_unchecked">get_unchecked</a></li><li><a·href="#method.get_unchecked_mut">get_unchecked_mut</a></li><li><a·href="#method.is_ascii">is_ascii</a></li><li><a·href="#method.is_char_boundary">is_char_boundary</a></li><li><a·href="#method.is_empty-1">is_empty</a></li><li><a·href="#method.len-1">len</a></li><li><a·href="#method.lines">lines</a></li><li><a·href="#method.lines_any">lines_any</a></li><li><a·href="#method.make_ascii_lowercase">make_ascii_lowercase</a></li><li><a·href="#method.make_ascii_uppercase">make_ascii_uppercase</a></li><li><a·href="#method.match_indices">match_indices</a></li><li><a·href="#method.matches">matches</a></li><li><a·href="#method.parse">parse</a></li><li><a·href="#method.repeat">repeat</a></li><li><a·href="#method.replace">replace</a></li><li><a·href="#method.replacen">replacen</a></li><li><a·href="#method.rfind">rfind</a></li><li><a·href="#method.rmatch_indices">rmatch_indices</a></li><li><a·href="#method.rmatches">rmatches</a></li><li><a·href="#method.rsplit">rsplit</a></li><li><a·href="#method.rsplit_once">rsplit_once</a></li><li><a·href="#method.rsplit_terminator">rsplit_terminator</a></li><li><a·href="#method.rsplitn">rsplitn</a></li><li><a·href="#method.slice_mut_unchecked">slice_mut_unchecked</a></li><li><a·href="#method.slice_unchecked">slice_unchecked</a></li><li><a·href="#method.split">split</a></li><li><a·href="#method.split_ascii_whitespace">split_ascii_whitespace</a></li><li><a·href="#method.split_at">split_at</a></li><li><a·href="#method.split_at_checked">split_at_checked</a></li><li><a·href="#method.split_at_mut">split_at_mut</a></li><li><a·href="#method.split_at_mut_checked">split_at_mut_checked</a></li><li><a·href="#method.split_inclusive">split_inclusive</a></li><li><a·href="#method.split_once">split_once</a></li><li><a·href="#method.split_terminator">split_terminator</a></li><li><a·href="#method.split_whitespace">split_whitespace</a></li><li><a·href="#method.splitn">splitn</a></li><li><a·href="#method.starts_with">starts_with</a></li><li><a·href="#method.strip_prefix">strip_prefix</a></li><li><a·href="#method.strip_suffix">strip_suffix</a></li><li><a·href="#method.to_ascii_lowercase">to_ascii_lowercase</a></li><li><a·href="#method.to_ascii_uppercase">to_ascii_uppercase</a></li><li><a·href="#method.to_lowercase">to_lowercase</a></li><li><a·href="#method.to_uppercase">to_uppercase</a></li><li><a·href="#method.trim">trim</a></li><li><a·href="#method.trim_ascii">trim_ascii</a></li><li><a·href="#method.trim_ascii_end">trim_ascii_end</a></li><li><a·href="#method.trim_ascii_start">trim_ascii_start</a></li><li><a·href="#method.trim_end">trim_end</a></li><li><a·href="#method.trim_end_matches">trim_end_matches</a></li><li><a·href="#method.trim_left">trim_left</a></li><li><a·href="#method.trim_left_matches">trim_left_matches</a></li><li><a·href="#method.trim_matches">trim_matches</a></li><li><a·href="#method.trim_right">trim_right</a></li><li><a·href="#method.trim_right_matches">trim_right_matches</a></li><li><a·href="#method.trim_start">trim_start</a></li><li><a·href="#method.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">Add&lt;&amp;str&gt;</a></li><li><a·href="#impl-AddAssign%3C%26str%3E-for-String">AddAssign&lt;&amp;str&gt;</a></li><li><a·href="#impl-AsMut%3Cstr%3E-for-String">AsMut&lt;str&gt;</a></li><li><a·href="#impl-AsRef%3C%5Bu8%5D%3E-for-String">AsRef&lt;[u8]&gt;</a></li><li><a·href="#impl-AsRef%3Cstr%3E-for-String">AsRef&lt;str&gt;</a></li><li><a·href="#impl-Borrow%3Cstr%3E-for-String">Borrow&lt;str&gt;</a></li><li><a·href="#impl-BorrowMut%3Cstr%3E-for-String">BorrowMut&lt;str&gt;</a></li><li><a·href="#impl-Clone-for-String">Clone</a></li><li><a·href="#impl-Debug-for-String">Debug</a></li><li><a·href="#impl-Default-for-String">Default</a></li><li><a·href="#impl-Deref-for-String">Deref</a></li><li><a·href="#impl-DerefMut-for-String">DerefMut</a></li><li><a·href="#impl-Display-for-String">Display</a></li><li><a·href="#impl-Eq-for-String">Eq</a></li><li><a·href="#impl-Extend%3C%26char%3E-for-String">Extend&lt;&amp;&#x27;a·char&gt;</a></li><li><a·href="#impl-Extend%3C%26str%3E-for-String">Extend&lt;&amp;&#x27;a·str&gt;</a></li><li><a·href="#impl-Extend%3CBox%3Cstr%3E%3E-for-String">Extend&lt;Box&lt;str&gt;&gt;</a></li><li><a·href="#impl-Extend%3CCow%3C'a,+str%3E%3E-for-String">Extend&lt;Cow&lt;&#x27;a,·str&gt;&gt;</a></li><li><a·href="#impl-Extend%3CString%3E-for-String">Extend&lt;String&gt;</a></li><li><a·href="#impl-Extend%3Cchar%3E-for-String">Extend&lt;char&gt;</a></li><li><a·href="#impl-From%3C%26String%3E-for-Cow%3C'a,+str%3E">From&lt;&amp;&#x27;a·String&gt;</a></li><li><a·href="#impl-From%3C%26String%3E-for-String">From&lt;&amp;String&gt;</a></li><li><a·href="#impl-From%3C%26mut+str%3E-for-String">From&lt;&amp;mut·str&gt;</a></li><li><a·href="#impl-From%3C%26str%3E-for-String">From&lt;&amp;str&gt;</a></li><li><a·href="#impl-From%3CBox%3Cstr%3E%3E-for-String">From&lt;Box&lt;str&gt;&gt;</a></li><li><a·href="#impl-From%3CCow%3C'a,+str%3E%3E-for-String">From&lt;Cow&lt;&#x27;a,·str&gt;&gt;</a></li><li><a·href="#impl-From%3CString%3E-for-Arc%3Cstr%3E">From&lt;String&gt;</a></li><li><a·href="#impl-From%3CString%3E-for-Box%3Cdyn+Error%3E">From&lt;String&gt;</a></li><li><a·href="#impl-From%3CString%3E-for-Box%3Cdyn+Error+%2B+Send+%2B+Sync%3E">From&lt;String&gt;</a></li><li><a·href="#impl-From%3CString%3E-for-Box%3Cstr%3E">From&lt;String&gt;</a></li><li><a·href="#impl-From%3CString%3E-for-Cow%3C'a,+str%3E">From&lt;String&gt;</a></li><li><a·href="#impl-From%3CString%3E-for-Rc%3Cstr%3E">From&lt;String&gt;</a></li><li><a·href="#impl-From%3CString%3E-for-Vec%3Cu8%3E">From&lt;String&gt;</a></li><li><a·href="#impl-From%3Cchar%3E-for-String">From&lt;char&gt;</a></li><li><a·href="#impl-FromIterator%3C%26char%3E-for-String">FromIterator&lt;&amp;&#x27;a·char&gt;</a></li><li><a·href="#impl-FromIterator%3C%26str%3E-for-String">FromIterator&lt;&amp;&#x27;a·str&gt;</a></li><li><a·href="#impl-FromIterator%3CBox%3Cstr%3E%3E-for-String">FromIterator&lt;Box&lt;str&gt;&gt;</a></li><li><a·href="#impl-FromIterator%3CCow%3C'a,+str%3E%3E-for-String">FromIterator&lt;Cow&lt;&#x27;a,·str&gt;&gt;</a></li><li><a·href="#impl-FromIterator%3CString%3E-for-Cow%3C'a,+str%3E">FromIterator&lt;String&gt;</a></li><li><a·href="#impl-FromIterator%3CString%3E-for-String">FromIterator&lt;String&gt;</a></li><li><a·href="#impl-FromIterator%3Cchar%3E-for-String">FromIterator&lt;char&gt;</a></li><li><a·href="#impl-FromStr-for-String">FromStr</a></li><li><a·href="#impl-Hash-for-String">Hash</a></li><li><a·href="#impl-Index%3CI%3E-for-String">Index&lt;I&gt;</a></li><li><a·href="#impl-IndexMut%3CI%3E-for-String">IndexMut&lt;I&gt;</a></li><li><a·href="#impl-Ord-for-String">Ord</a></li><li><a·href="#impl-PartialEq-for-String">PartialEq</a></li><li><a·href="#impl-PartialEq%3C%26str%3E-for-String">PartialEq&lt;&amp;&#x27;a·str&gt;</a></li><li><a·href="#impl-PartialEq%3CCow%3C'a,+str%3E%3E-for-String">PartialEq&lt;Cow&lt;&#x27;a,·str&gt;&gt;</a></li><li><a·href="#impl-PartialEq%3CString%3E-for-%26str">PartialEq&lt;String&gt;</a></li><li><a·href="#impl-PartialEq%3CString%3E-for-Cow%3C'a,+str%3E">PartialEq&lt;String&gt;</a></li><li><a·href="#impl-PartialEq%3CString%3E-for-str">PartialEq&lt;String&gt;</a></li><li><a·href="#impl-PartialEq%3Cstr%3E-for-String">PartialEq&lt;str&gt;</a></li><li><a·href="#impl-PartialOrd-for-String">PartialOrd</a></li><li><a·href="#impl-Pattern%3C'a%3E-for-%26String">Pattern&lt;&#x27;a&gt;</a></li><li><a·href="#impl-StructuralPartialEq-for-String">StructuralPartialEq</a></li><li><a·href="#impl-Write-for-String">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">Freeze</a></li><li><a·href="#impl-RefUnwindSafe-for-String">RefUnwindSafe</a></li><li><a·href="#impl-Send-for-String">Send</a></li><li><a·href="#impl-Sync-for-String">Sync</a></li><li><a·href="#impl-Unpin-for-String">Unpin</a></li><li><a·href="#impl-UnwindSafe-for-String">UnwindSafe</a></li></ul><h3><a·href="#blanket-implementations">Blanket·Implementations</a></h3><ul·class="block·blanket-implementation"><li><a·href="#impl-Any-for-T">Any</a></li><li><a·href="#impl-Borrow%3CT%3E-for-T">Borrow&lt;T&gt;</a></li><li><a·href="#impl-BorrowMut%3CT%3E-for-T">BorrowMut&lt;T&gt;</a></li><li><a·href="#impl-From%3CT%3E-for-T">From&lt;T&gt;</a></li><li><a·href="#impl-Into%3CU%3E-for-T">Into&lt;U&gt;</a></li><li><a·href="#impl-ToOwned-for-T">ToOwned</a></li><li><a·href="#impl-ToString-for-T">ToString</a></li><li><a·href="#impl-TryFrom%3CU%3E-for-T">TryFrom&lt;U&gt;</a></li><li><a·href="#impl-TryInto%3CU%3E-for-T">TryInto&lt;U&gt;</a></li></ul></section><h2><a·href="index.html">In·alloc::string</a></h2></div></nav><div·class="sidebar-resizer"></div>1 <!DOCTYPE·html><html·lang="en"><head><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.write(`<link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/SourceSerif4-Regular-46f98efaafac5295.ttf.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/FiraSans-Regular-018c141bf0843ffd.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/FiraSans-Medium-8f9a781e4970d388.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/SourceCodePro-Regular-562dcc5011b6de7d.ttf.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/SourceCodePro-Semibold-d899c5a5c4aeb14a.ttf.woff2">`)</script><link·rel="stylesheet"·href="../../static.files/normalize-76eba96aa4d2e634.css"><link·rel="stylesheet"·href="../../static.files/rustdoc-35f9e32502181f1e.css"><meta·name="rustdoc-vars"·data-root-path="../../"·data-static-root-path="../../static.files/"·data-current-crate="alloc"·data-themes=""·data-resource-suffix="1.78.0"·data-rustdoc-version="1.78.0"·data-channel="1.78.0"·data-search-js="search-42d8da7a6b9792c2.js"·data-settings-js="settings-4313503d2e1961c2.js"·><script·src="../../static.files/storage-4c98445ec4002617.js"></script><script·defer·src="sidebar-items1.78.0.js"></script><script·defer·src="../../static.files/main-12cf3b4f4f9dc36d.js"></script><noscript><link·rel="stylesheet"·href="../../static.files/noscript-04d5337699b92874.css"></noscript><link·rel="alternate·icon"·type="image/png"·href="../../static.files/favicon-16x16-8b506e7a72182f1c.png"><link·rel="alternate·icon"·type="image/png"·href="../../static.files/favicon-32x32-422f7d1d52889060.png"><link·rel="icon"·type="image/svg+xml"·href="../../static.files/favicon-2c020d218678b618.svg"></head><body·class="rustdoc·struct"><!--[if·lte·IE·11]><div·class="warning">This·old·browser·is·unsupported·and·will·most·likely·display·funky·things.</div><![endif]--><nav·class="mobile-topbar"><button·class="sidebar-menu-toggle"·title="show·sidebar"></button><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-151179464ae7ed46.svg"·alt=""></a></nav><nav·class="sidebar"><div·class="sidebar-crate"><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-151179464ae7ed46.svg"·alt="logo"></a><h2><a·href="../../alloc/index.html">alloc</a><span·class="version">1.78.0</span></h2></div><h2·class="location"><a·href="#">String</a></h2><div·class="sidebar-elems"><section><h3><a·href="#implementations">Methods</a></h3><ul·class="block·method"><li><a·href="#method.as_bytes">as_bytes</a></li><li><a·href="#method.as_mut_str">as_mut_str</a></li><li><a·href="#method.as_mut_vec">as_mut_vec</a></li><li><a·href="#method.as_str">as_str</a></li><li><a·href="#method.capacity">capacity</a></li><li><a·href="#method.clear">clear</a></li><li><a·href="#method.drain">drain</a></li><li><a·href="#method.extend_from_within">extend_from_within</a></li><li><a·href="#method.from_raw_parts">from_raw_parts</a></li><li><a·href="#method.from_utf16">from_utf16</a></li><li><a·href="#method.from_utf16_lossy">from_utf16_lossy</a></li><li><a·href="#method.from_utf16be">from_utf16be</a></li><li><a·href="#method.from_utf16be_lossy">from_utf16be_lossy</a></li><li><a·href="#method.from_utf16le">from_utf16le</a></li><li><a·href="#method.from_utf16le_lossy">from_utf16le_lossy</a></li><li><a·href="#method.from_utf8">from_utf8</a></li><li><a·href="#method.from_utf8_lossy">from_utf8_lossy</a></li><li><a·href="#method.from_utf8_unchecked">from_utf8_unchecked</a></li><li><a·href="#method.insert">insert</a></li><li><a·href="#method.insert_str">insert_str</a></li><li><a·href="#method.into_boxed_str">into_boxed_str</a></li><li><a·href="#method.into_bytes">into_bytes</a></li><li><a·href="#method.into_raw_parts">into_raw_parts</a></li><li><a·href="#method.is_empty">is_empty</a></li><li><a·href="#method.leak">leak</a></li><li><a·href="#method.len">len</a></li><li><a·href="#method.new">new</a></li><li><a·href="#method.pop">pop</a></li><li><a·href="#method.push">push</a></li><li><a·href="#method.push_str">push_str</a></li><li><a·href="#method.remove">remove</a></li><li><a·href="#method.remove_matches">remove_matches</a></li><li><a·href="#method.replace_range">replace_range</a></li><li><a·href="#method.reserve">reserve</a></li><li><a·href="#method.reserve_exact">reserve_exact</a></li><li><a·href="#method.retain">retain</a></li><li><a·href="#method.shrink_to">shrink_to</a></li><li><a·href="#method.shrink_to_fit">shrink_to_fit</a></li><li><a·href="#method.split_off">split_off</a></li><li><a·href="#method.truncate">truncate</a></li><li><a·href="#method.try_reserve">try_reserve</a></li><li><a·href="#method.try_reserve_exact">try_reserve_exact</a></li><li><a·href="#method.try_with_capacity">try_with_capacity</a></li><li><a·href="#method.with_capacity">with_capacity</a></li></ul><h3><a·href="#deref-methods-str">Methods·from·Deref&lt;Target=str&gt;</a></h3><ul·class="block·deref-methods"><li><a·href="#method.as_ascii">as_ascii</a></li><li><a·href="#method.as_bytes-1">as_bytes</a></li><li><a·href="#method.as_bytes_mut">as_bytes_mut</a></li><li><a·href="#method.as_mut_ptr">as_mut_ptr</a></li><li><a·href="#method.as_ptr">as_ptr</a></li><li><a·href="#method.bytes">bytes</a></li><li><a·href="#method.ceil_char_boundary">ceil_char_boundary</a></li><li><a·href="#method.char_indices">char_indices</a></li><li><a·href="#method.chars">chars</a></li><li><a·href="#method.contains">contains</a></li><li><a·href="#method.encode_utf16">encode_utf16</a></li><li><a·href="#method.ends_with">ends_with</a></li><li><a·href="#method.eq_ignore_ascii_case">eq_ignore_ascii_case</a></li><li><a·href="#method.escape_debug">escape_debug</a></li><li><a·href="#method.escape_default">escape_default</a></li><li><a·href="#method.escape_unicode">escape_unicode</a></li><li><a·href="#method.find">find</a></li><li><a·href="#method.floor_char_boundary">floor_char_boundary</a></li><li><a·href="#method.get">get</a></li><li><a·href="#method.get_mut">get_mut</a></li><li><a·href="#method.get_unchecked">get_unchecked</a></li><li><a·href="#method.get_unchecked_mut">get_unchecked_mut</a></li><li><a·href="#method.is_ascii">is_ascii</a></li><li><a·href="#method.is_char_boundary">is_char_boundary</a></li><li><a·href="#method.is_empty-1">is_empty</a></li><li><a·href="#method.len-1">len</a></li><li><a·href="#method.lines">lines</a></li><li><a·href="#method.lines_any">lines_any</a></li><li><a·href="#method.make_ascii_lowercase">make_ascii_lowercase</a></li><li><a·href="#method.make_ascii_uppercase">make_ascii_uppercase</a></li><li><a·href="#method.match_indices">match_indices</a></li><li><a·href="#method.matches">matches</a></li><li><a·href="#method.parse">parse</a></li><li><a·href="#method.repeat">repeat</a></li><li><a·href="#method.replace">replace</a></li><li><a·href="#method.replacen">replacen</a></li><li><a·href="#method.rfind">rfind</a></li><li><a·href="#method.rmatch_indices">rmatch_indices</a></li><li><a·href="#method.rmatches">rmatches</a></li><li><a·href="#method.rsplit">rsplit</a></li><li><a·href="#method.rsplit_once">rsplit_once</a></li><li><a·href="#method.rsplit_terminator">rsplit_terminator</a></li><li><a·href="#method.rsplitn">rsplitn</a></li><li><a·href="#method.slice_mut_unchecked">slice_mut_unchecked</a></li><li><a·href="#method.slice_unchecked">slice_unchecked</a></li><li><a·href="#method.split">split</a></li><li><a·href="#method.split_ascii_whitespace">split_ascii_whitespace</a></li><li><a·href="#method.split_at">split_at</a></li><li><a·href="#method.split_at_checked">split_at_checked</a></li><li><a·href="#method.split_at_mut">split_at_mut</a></li><li><a·href="#method.split_at_mut_checked">split_at_mut_checked</a></li><li><a·href="#method.split_inclusive">split_inclusive</a></li><li><a·href="#method.split_once">split_once</a></li><li><a·href="#method.split_terminator">split_terminator</a></li><li><a·href="#method.split_whitespace">split_whitespace</a></li><li><a·href="#method.splitn">splitn</a></li><li><a·href="#method.starts_with">starts_with</a></li><li><a·href="#method.strip_prefix">strip_prefix</a></li><li><a·href="#method.strip_suffix">strip_suffix</a></li><li><a·href="#method.to_ascii_lowercase">to_ascii_lowercase</a></li><li><a·href="#method.to_ascii_uppercase">to_ascii_uppercase</a></li><li><a·href="#method.to_lowercase">to_lowercase</a></li><li><a·href="#method.to_uppercase">to_uppercase</a></li><li><a·href="#method.trim">trim</a></li><li><a·href="#method.trim_ascii">trim_ascii</a></li><li><a·href="#method.trim_ascii_end">trim_ascii_end</a></li><li><a·href="#method.trim_ascii_start">trim_ascii_start</a></li><li><a·href="#method.trim_end">trim_end</a></li><li><a·href="#method.trim_end_matches">trim_end_matches</a></li><li><a·href="#method.trim_left">trim_left</a></li><li><a·href="#method.trim_left_matches">trim_left_matches</a></li><li><a·href="#method.trim_matches">trim_matches</a></li><li><a·href="#method.trim_right">trim_right</a></li><li><a·href="#method.trim_right_matches">trim_right_matches</a></li><li><a·href="#method.trim_start">trim_start</a></li><li><a·href="#method.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">Add&lt;&amp;str&gt;</a></li><li><a·href="#impl-AddAssign%3C%26str%3E-for-String">AddAssign&lt;&amp;str&gt;</a></li><li><a·href="#impl-AsMut%3Cstr%3E-for-String">AsMut&lt;str&gt;</a></li><li><a·href="#impl-AsRef%3C%5Bu8%5D%3E-for-String">AsRef&lt;[u8]&gt;</a></li><li><a·href="#impl-AsRef%3Cstr%3E-for-String">AsRef&lt;str&gt;</a></li><li><a·href="#impl-Borrow%3Cstr%3E-for-String">Borrow&lt;str&gt;</a></li><li><a·href="#impl-BorrowMut%3Cstr%3E-for-String">BorrowMut&lt;str&gt;</a></li><li><a·href="#impl-Clone-for-String">Clone</a></li><li><a·href="#impl-Debug-for-String">Debug</a></li><li><a·href="#impl-Default-for-String">Default</a></li><li><a·href="#impl-Deref-for-String">Deref</a></li><li><a·href="#impl-DerefMut-for-String">DerefMut</a></li><li><a·href="#impl-Display-for-String">Display</a></li><li><a·href="#impl-Eq-for-String">Eq</a></li><li><a·href="#impl-Extend%3C%26char%3E-for-String">Extend&lt;&amp;&#x27;a·char&gt;</a></li><li><a·href="#impl-Extend%3C%26str%3E-for-String">Extend&lt;&amp;&#x27;a·str&gt;</a></li><li><a·href="#impl-Extend%3CBox%3Cstr%3E%3E-for-String">Extend&lt;Box&lt;str&gt;&gt;</a></li><li><a·href="#impl-Extend%3CCow%3C'a,+str%3E%3E-for-String">Extend&lt;Cow&lt;&#x27;a,·str&gt;&gt;</a></li><li><a·href="#impl-Extend%3CString%3E-for-String">Extend&lt;String&gt;</a></li><li><a·href="#impl-Extend%3Cchar%3E-for-String">Extend&lt;char&gt;</a></li><li><a·href="#impl-From%3C%26String%3E-for-Cow%3C'a,+str%3E">From&lt;&amp;&#x27;a·String&gt;</a></li><li><a·href="#impl-From%3C%26String%3E-for-String">From&lt;&amp;String&gt;</a></li><li><a·href="#impl-From%3C%26mut+str%3E-for-String">From&lt;&amp;mut·str&gt;</a></li><li><a·href="#impl-From%3C%26str%3E-for-String">From&lt;&amp;str&gt;</a></li><li><a·href="#impl-From%3CBox%3Cstr%3E%3E-for-String">From&lt;Box&lt;str&gt;&gt;</a></li><li><a·href="#impl-From%3CCow%3C'a,+str%3E%3E-for-String">From&lt;Cow&lt;&#x27;a,·str&gt;&gt;</a></li><li><a·href="#impl-From%3CString%3E-for-Arc%3Cstr%3E">From&lt;String&gt;</a></li><li><a·href="#impl-From%3CString%3E-for-Box%3Cdyn+Error%3E">From&lt;String&gt;</a></li><li><a·href="#impl-From%3CString%3E-for-Box%3Cdyn+Error+%2B+Send+%2B+Sync%3E">From&lt;String&gt;</a></li><li><a·href="#impl-From%3CString%3E-for-Box%3Cstr%3E">From&lt;String&gt;</a></li><li><a·href="#impl-From%3CString%3E-for-Cow%3C'a,+str%3E">From&lt;String&gt;</a></li><li><a·href="#impl-From%3CString%3E-for-Rc%3Cstr%3E">From&lt;String&gt;</a></li><li><a·href="#impl-From%3CString%3E-for-Vec%3Cu8%3E">From&lt;String&gt;</a></li><li><a·href="#impl-From%3Cchar%3E-for-String">From&lt;char&gt;</a></li><li><a·href="#impl-FromIterator%3C%26char%3E-for-String">FromIterator&lt;&amp;&#x27;a·char&gt;</a></li><li><a·href="#impl-FromIterator%3C%26str%3E-for-String">FromIterator&lt;&amp;&#x27;a·str&gt;</a></li><li><a·href="#impl-FromIterator%3CBox%3Cstr%3E%3E-for-String">FromIterator&lt;Box&lt;str&gt;&gt;</a></li><li><a·href="#impl-FromIterator%3CCow%3C'a,+str%3E%3E-for-String">FromIterator&lt;Cow&lt;&#x27;a,·str&gt;&gt;</a></li><li><a·href="#impl-FromIterator%3CString%3E-for-Cow%3C'a,+str%3E">FromIterator&lt;String&gt;</a></li><li><a·href="#impl-FromIterator%3CString%3E-for-String">FromIterator&lt;String&gt;</a></li><li><a·href="#impl-FromIterator%3Cchar%3E-for-String">FromIterator&lt;char&gt;</a></li><li><a·href="#impl-FromStr-for-String">FromStr</a></li><li><a·href="#impl-Hash-for-String">Hash</a></li><li><a·href="#impl-Index%3CI%3E-for-String">Index&lt;I&gt;</a></li><li><a·href="#impl-IndexMut%3CI%3E-for-String">IndexMut&lt;I&gt;</a></li><li><a·href="#impl-Ord-for-String">Ord</a></li><li><a·href="#impl-PartialEq-for-String">PartialEq</a></li><li><a·href="#impl-PartialEq%3C%26str%3E-for-String">PartialEq&lt;&amp;&#x27;a·str&gt;</a></li><li><a·href="#impl-PartialEq%3CCow%3C'a,+str%3E%3E-for-String">PartialEq&lt;Cow&lt;&#x27;a,·str&gt;&gt;</a></li><li><a·href="#impl-PartialEq%3CString%3E-for-%26str">PartialEq&lt;String&gt;</a></li><li><a·href="#impl-PartialEq%3CString%3E-for-Cow%3C'a,+str%3E">PartialEq&lt;String&gt;</a></li><li><a·href="#impl-PartialEq%3CString%3E-for-str">PartialEq&lt;String&gt;</a></li><li><a·href="#impl-PartialEq%3Cstr%3E-for-String">PartialEq&lt;str&gt;</a></li><li><a·href="#impl-PartialOrd-for-String">PartialOrd</a></li><li><a·href="#impl-Pattern%3C'a%3E-for-%26String">Pattern&lt;&#x27;a&gt;</a></li><li><a·href="#impl-StructuralPartialEq-for-String">StructuralPartialEq</a></li><li><a·href="#impl-Write-for-String">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">Freeze</a></li><li><a·href="#impl-RefUnwindSafe-for-String">RefUnwindSafe</a></li><li><a·href="#impl-Send-for-String">Send</a></li><li><a·href="#impl-Sync-for-String">Sync</a></li><li><a·href="#impl-Unpin-for-String">Unpin</a></li><li><a·href="#impl-UnwindSafe-for-String">UnwindSafe</a></li></ul><h3><a·href="#blanket-implementations">Blanket·Implementations</a></h3><ul·class="block·blanket-implementation"><li><a·href="#impl-Any-for-T">Any</a></li><li><a·href="#impl-Borrow%3CT%3E-for-T">Borrow&lt;T&gt;</a></li><li><a·href="#impl-BorrowMut%3CT%3E-for-T">BorrowMut&lt;T&gt;</a></li><li><a·href="#impl-From%3CT%3E-for-T">From&lt;T&gt;</a></li><li><a·href="#impl-Into%3CU%3E-for-T">Into&lt;U&gt;</a></li><li><a·href="#impl-ToOwned-for-T">ToOwned</a></li><li><a·href="#impl-ToString-for-T">ToString</a></li><li><a·href="#impl-TryFrom%3CU%3E-for-T">TryFrom&lt;U&gt;</a></li><li><a·href="#impl-TryInto%3CU%3E-for-T">TryInto&lt;U&gt;</a></li></ul></section><h2><a·href="index.html">In·alloc::string</a></h2></div></nav><div·class="sidebar-resizer"></div>
2 ····<main><div·class="width-limiter"><nav·class="sub"><form·class="search-form"><span></span><div·id="sidebar-button"·tabindex="-1"><a·href="../../alloc/all.html"·title="show·sidebar"></a></div><input·class="search-input"·name="search"·aria-label="Run·search·in·the·documentation"·autocomplete="off"·spellcheck="false"·placeholder="Click·or·press·‘S’·to·search,·‘?’·for·more·options…"·type="search"><div·id="help-button"·tabindex="-1"><a·href="../../help.html"·title="help">?</a></div><div·id="settings-menu"·tabindex="-1"><a·href="../../settings.html"·title="settings"><img·width="22"·height="22"·alt="Change·settings"·src="../../static.files/wheel-7b819b6101059cd0.svg"></a></div></form></nav><section·id="main-content"·class="content"><div·class="main-heading"><h1>Struct·<a·href="../index.html">alloc</a>::<wbr><a·href="index.html">string</a>::<wbr><a·class="struct"·href="#">String</a><button·id="copy-path"·title="Copy·item·path·to·clipboard"><img·src="../../static.files/clipboard-7571035ce49a181d.svg"·width="19"·height="18"·alt="Copy·item·path"></button></h1><span·class="out-of-band"><span·class="since"·title="Stable·since·Rust·version·1.0.0">1.0.0</span>···<a·class="src"·href="../../src/alloc/string.rs.html#365-367">source</a>···<button·id="toggle-all-docs"·title="collapse·all·docs">[<span>&#x2212;</span>]</button></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 ····<main><div·class="width-limiter"><nav·class="sub"><form·class="search-form"><span></span><div·id="sidebar-button"·tabindex="-1"><a·href="../../alloc/all.html"·title="show·sidebar"></a></div><input·class="search-input"·name="search"·aria-label="Run·search·in·the·documentation"·autocomplete="off"·spellcheck="false"·placeholder="Click·or·press·‘S’·to·search,·‘?’·for·more·options…"·type="search"><div·id="help-button"·tabindex="-1"><a·href="../../help.html"·title="help">?</a></div><div·id="settings-menu"·tabindex="-1"><a·href="../../settings.html"·title="settings"><img·width="22"·height="22"·alt="Change·settings"·src="../../static.files/wheel-7b819b6101059cd0.svg"></a></div></form></nav><section·id="main-content"·class="content"><div·class="main-heading"><h1>Struct·<a·href="../index.html">alloc</a>::<wbr><a·href="index.html">string</a>::<wbr><a·class="struct"·href="#">String</a><button·id="copy-path"·title="Copy·item·path·to·clipboard"><img·src="../../static.files/clipboard-7571035ce49a181d.svg"·width="19"·height="18"·alt="Copy·item·path"></button></h1><span·class="out-of-band"><span·class="since"·title="Stable·since·Rust·version·1.0.0">1.0.0</span>···<a·class="src"·href="../../src/alloc/string.rs.html#365-367">source</a>···<button·id="toggle-all-docs"·title="collapse·all·docs">[<span>&#x2212;</span>]</button></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>
3 <p>The·<code>String</code>·type·is·the·most·common·string·type·that·has·ownership·over·the3 <p>The·<code>String</code>·type·is·the·most·common·string·type·that·has·ownership·over·the
4 contents·of·the·string.·It·has·a·close·relationship·with·its·borrowed4 contents·of·the·string.·It·has·a·close·relationship·with·its·borrowed
5 counterpart,·the·primitive·<a·href="../../core/primitive.str.html"·title="str"><code>str</code></a>.</p>5 counterpart,·the·primitive·<a·href="https://doc.rust-lang.org/1.78.0/core/primitive.str.html"·title="str"><code>str</code></a>.</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>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>7 <p>You·can·create·a·<code>String</code>·from·<a·href="https://doc.rust-lang.org/1.78.0/core/primitive.str.html"·title="&amp;str">a·literal·string</a>·with·<a·href="https://doc.rust-lang.org/1.78.0/core/convert/trait.From.html#tymethod.from"·title="associated·function·core::convert::From::from"><code>String::from</code></a>:</p>
  
8 <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"·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">Run</a></div>8 <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"·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">Run</a></div>
9 <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,·and9 <p>You·can·append·a·<a·href="https://doc.rust-lang.org/1.78.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
10 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>10 append·a·<a·href="https://doc.rust-lang.org/1.78.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>
  
11 <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 <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>);
  
12 hello.push(<span·class="string">'w'</span>);12 hello.push(<span·class="string">'w'</span>);
13 hello.push_str(<span·class="string">"orld!"</span>);</code></pre><a·class="test-arrow"·target="_blank"·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">Run</a></div>13 hello.push_str(<span·class="string">"orld!"</span>);</code></pre><a·class="test-arrow"·target="_blank"·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">Run</a></div>
14 <p>If·you·have·a·vector·of·UTF-8·bytes,·you·can·create·a·<code>String</code>·from·it·with14 <p>If·you·have·a·vector·of·UTF-8·bytes,·you·can·create·a·<code>String</code>·from·it·with
15 the·<a·href="struct.String.html#method.from_utf8"·title="associated·function·alloc::string::String::from_utf8"><code>from_utf8</code></a>·method:</p>15 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 50, 28 lines modifiedOffset 50, 28 lines modified
50 <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>s·=·[<span·class="string">'💖'</span>,·<span·class="string">'💖'</span>,·<span·class="string">'💖'</span>,·<span·class="string">'💖'</span>,·<span·class="string">'💖'</span>];
51 <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="kw">let·</span>size:·usize·=·s.into_iter().map(|c|·mem::size_of_val(<span·class="kw-2">&amp;</span>c)).sum();
52 <span·class="macro">assert_eq!</span>(size,·<span·class="number">20</span>);</code></pre><a·class="test-arrow"·target="_blank"·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">Run</a></div>52 <span·class="macro">assert_eq!</span>(size,·<span·class="number">20</span>);</code></pre><a·class="test-arrow"·target="_blank"·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">Run</a></div>
53 <p>This·raises·interesting·questions·as·to·how·<code>s[i]</code>·should·work.53 <p>This·raises·interesting·questions·as·to·how·<code>s[i]</code>·should·work.
54 What·should·<code>i</code>·be·here?·Several·options·include·byte·indices·and54 What·should·<code>i</code>·be·here?·Several·options·include·byte·indices·and
55 <code>char</code>·indices·but,·because·of·UTF-8·encoding,·only·byte·indices55 <code>char</code>·indices·but,·because·of·UTF-8·encoding,·only·byte·indices
56 would·provide·constant·time·indexing.·Getting·the·<code>i</code>th·<code>char</code>,·for56 would·provide·constant·time·indexing.·Getting·the·<code>i</code>th·<code>char</code>,·for
57 example,·is·available·using·<a·href="../../core/primitive.str.html#method.chars"·title="method·str::chars"><code>chars</code></a>:</p>57 example,·is·available·using·<a·href="https://doc.rust-lang.org/1.78.0/core/primitive.str.html#method.chars"·title="method·str::chars"><code>chars</code></a>:</p>
  
58 <div·class="example-wrap"><pre·class="rust·rust-example-rendered"><code><span·class="kw">let·</span>s·=·<span·class="string">"hello"</span>;58 <div·class="example-wrap"><pre·class="rust·rust-example-rendered"><code><span·class="kw">let·</span>s·=·<span·class="string">"hello"</span>;
59 <span·class="kw">let·</span>third_character·=·s.chars().nth(<span·class="number">2</span>);59 <span·class="kw">let·</span>third_character·=·s.chars().nth(<span·class="number">2</span>);
60 <span·class="macro">assert_eq!</span>(third_character,·<span·class="prelude-val">Some</span>(<span·class="string">'l'</span>));60 <span·class="macro">assert_eq!</span>(third_character,·<span·class="prelude-val">Some</span>(<span·class="string">'l'</span>));
  
61 <span·class="kw">let·</span>s·=·<span·class="string">"💖💖💖💖💖"</span>;61 <span·class="kw">let·</span>s·=·<span·class="string">"💖💖💖💖💖"</span>;
62 <span·class="kw">let·</span>third_character·=·s.chars().nth(<span·class="number">2</span>);62 <span·class="kw">let·</span>third_character·=·s.chars().nth(<span·class="number">2</span>);
63 <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"·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">Run</a></div>63 <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"·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">Run</a></div>
64 <p>Next,·what·should·<code>s[i]</code>·return?·Because·indexing·returns·a·reference64 <p>Next,·what·should·<code>s[i]</code>·return?·Because·indexing·returns·a·reference
65 to·underlying·data·it·could·be·<code>&amp;u8</code>,·<code>&amp;[u8]</code>,·or·something·else·similar.65 to·underlying·data·it·could·be·<code>&amp;u8</code>,·<code>&amp;[u8]</code>,·or·something·else·similar.
66 Since·we’re·only·providing·one·index,·<code>&amp;u8</code>·makes·the·most·sense·but·that66 Since·we’re·only·providing·one·index,·<code>&amp;u8</code>·makes·the·most·sense·but·that
67 might·not·be·what·the·user·expects·and·can·be·explicitly·achieved·with67 might·not·be·what·the·user·expects·and·can·be·explicitly·achieved·with
68 <a·href="../../core/primitive.str.html#method.as_bytes"·title="method·str::as_bytes"><code>as_bytes()</code></a>:</p>68 <a·href="https://doc.rust-lang.org/1.78.0/core/primitive.str.html#method.as_bytes"·title="method·str::as_bytes"><code>as_bytes()</code></a>:</p>
  
69 <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 <div·class="example-wrap"><pre·class="rust·rust-example-rendered"><code><span·class="comment">//·The·first·byte·is·104·-·the·byte·value·of·`'h'`
70 </span><span·class="kw">let·</span>s·=·<span·class="string">"hello"</span>;70 </span><span·class="kw">let·</span>s·=·<span·class="string">"hello"</span>;
71 <span·class="macro">assert_eq!</span>(s.as_bytes()[<span·class="number">0</span>],·<span·class="number">104</span>);71 <span·class="macro">assert_eq!</span>(s.as_bytes()[<span·class="number">0</span>],·<span·class="number">104</span>);
72 <span·class="comment">//·or72 <span·class="comment">//·or
73 </span><span·class="macro">assert_eq!</span>(s.as_bytes()[<span·class="number">0</span>],·<span·class="string">b'h'</span>);73 </span><span·class="macro">assert_eq!</span>(s.as_bytes()[<span·class="number">0</span>],·<span·class="string">b'h'</span>);
  
Offset 85, 37 lines modifiedOffset 85, 37 lines modified
  
85 <span·class="comment">//·The·following·will·not·compile!85 <span·class="comment">//·The·following·will·not·compile!
86 </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"·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">Run</a></div>86 </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"·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">Run</a></div>
87 <p>It·is·more·clear,·however,·how·<code>&amp;s[i..j]</code>·should·work·(that·is,87 <p>It·is·more·clear,·however,·how·<code>&amp;s[i..j]</code>·should·work·(that·is,
88 indexing·with·a·range).·It·should·accept·byte·indices·(to·be·constant-time)88 indexing·with·a·range).·It·should·accept·byte·indices·(to·be·constant-time)
89 and·return·a·<code>&amp;str</code>·which·is·UTF-8·encoded.·This·is·also·called·“string·slicing”.89 and·return·a·<code>&amp;str</code>·which·is·UTF-8·encoded.·This·is·also·called·“string·slicing”.
90 Note·this·will·panic·if·the·byte·indices·provided·are·not·character90 Note·this·will·panic·if·the·byte·indices·provided·are·not·character
91 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·implementations91 boundaries·-·see·<a·href="https://doc.rust-lang.org/1.78.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
92 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-panicking92 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
93 version·of·string·slicing,·see·<a·href="../../core/primitive.str.html#method.get"·title="method·str::get"><code>get</code></a>.</p>93 version·of·string·slicing,·see·<a·href="https://doc.rust-lang.org/1.78.0/core/primitive.str.html#method.get"·title="method·str::get"><code>get</code></a>.</p>
94 <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·and94 <p>The·<a·href="https://doc.rust-lang.org/1.78.0/core/primitive.str.html#method.bytes"·title="method·str::bytes"><code>bytes</code></a>·and·<a·href="https://doc.rust-lang.org/1.78.0/core/primitive.str.html#method.chars"·title="method·str::chars"><code>chars</code></a>·methods·return·iterators·over·the·bytes·and
95 codepoints·of·the·string,·respectively.·To·iterate·over·codepoints·along95 codepoints·of·the·string,·respectively.·To·iterate·over·codepoints·along
96 with·byte·indices,·use·<a·href="../../core/primitive.str.html#method.char_indices"·title="method·str::char_indices"><code>char_indices</code></a>.</p>96 with·byte·indices,·use·<a·href="https://doc.rust-lang.org/1.78.0/core/primitive.str.html#method.char_indices"·title="method·str::char_indices"><code>char_indices</code></a>.</p>
97 <h2·id="deref"><a·class="doc-anchor"·href="#deref">§</a>Deref</h2>97 <h2·id="deref"><a·class="doc-anchor"·href="#deref">§</a>Deref</h2>
98 <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>’s98 <p><code>String</code>·implements·<code><a·href="https://doc.rust-lang.org/1.78.0/core/ops/deref/trait.Deref.html"·title="ops::Deref">Deref</a>&lt;Target·=·<a·href="https://doc.rust-lang.org/1.78.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:·0bf63f6d8b41c5f02d8e2702b7e6095d9eafd1ec300db5d1131ecdf37277cc7c·...·]/core/primitive.str.html"·title="str"><code>str</code></a>’s
99 methods.·In·addition,·this·means·that·you·can·pass·a·<code>String</code>·to·a99 methods.·In·addition,·this·means·that·you·can·pass·a·<code>String</code>·to·a
100 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>100 function·which·takes·a·<a·href="https://doc.rust-lang.org/1.78.0/core/primitive.str.html"·title="&amp;str"><code>&amp;str</code></a>·by·using·an·ampersand·(<code>&amp;</code>):</p>
  
101 <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 <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)·{·}
  
102 <span·class="kw">let·</span>s·=·String::from(<span·class="string">"Hello"</span>);102 <span·class="kw">let·</span>s·=·String::from(<span·class="string">"Hello"</span>);
  
103 takes_str(<span·class="kw-2">&amp;</span>s);</code></pre><a·class="test-arrow"·target="_blank"·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">Run</a></div>103 takes_str(<span·class="kw-2">&amp;</span>s);</code></pre><a·class="test-arrow"·target="_blank"·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">Run</a></div>
104 <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.·This104 <p>This·will·create·a·<a·href="https://doc.rust-lang.org/1.78.0/core/primitive.str.html"·title="&amp;str"><code>&amp;str</code></a>·from·the·<code>String</code>·and·pass·it·in.·This
105 conversion·is·very·inexpensive,·and·so·generally,·functions·will·accept105 conversion·is·very·inexpensive,·and·so·generally,·functions·will·accept
106 <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·specific106 <a·href="https://doc.rust-lang.org/1.78.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
107 reason.</p>107 reason.</p>
108 <p>In·certain·cases·Rust·doesn’t·have·enough·information·to·make·this108 <p>In·certain·cases·Rust·doesn’t·have·enough·information·to·make·this
109 conversion,·known·as·<a·href="../../core/ops/deref/trait.Deref.html"·title="ops::Deref"><code>Deref</code></a>·coercion.·In·the·following·example·a·string109 conversion,·known·as·<a·href="https://doc.rust-lang.org/1.78.0/core/ops/deref/trait.Deref.html"·title="ops::Deref"><code>Deref</code></a>·coercion.·In·the·following·example·a·string
110 slice·<a·href="../../core/primitive.str.html"·title="&amp;str"><code>&amp;'a·str</code></a>·implements·the·trait·<code>TraitExample</code>,·and·the·function110 slice·<a·href="https://doc.rust-lang.org/1.78.0/core/primitive.str.html"·title="&amp;str"><code>&amp;'a·str</code></a>·implements·the·trait·<code>TraitExample</code>,·and·the·function
111 <code>example_func</code>·takes·anything·that·implements·the·trait.·In·this·case·Rust111 <code>example_func</code>·takes·anything·that·implements·the·trait.·In·this·case·Rust
112 would·need·to·make·two·implicit·conversions,·which·Rust·doesn’t·have·the112 would·need·to·make·two·implicit·conversions,·which·Rust·doesn’t·have·the
113 means·to·do.·For·that·reason,·the·following·example·will·not·compile.</p>113 means·to·do.·For·that·reason,·the·following·example·will·not·compile.</p>
  
114 <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 <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·{}
  
115 <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·{}115 <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 126, 25 lines modifiedOffset 126, 25 lines modified
126 example_func(<span·class="kw-2">&amp;</span>example_string);</code></pre><a·class="test-arrow"·target="_blank"·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">Run</a></div>126 example_func(<span·class="kw-2">&amp;</span>example_string);</code></pre><a·class="test-arrow"·target="_blank"·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">Run</a></div>
127 <p>There·are·two·options·that·would·work·instead.·The·first·would·be·to127 <p>There·are·two·options·that·would·work·instead.·The·first·would·be·to
128 change·the·line·<code>example_func(&amp;example_string);</code>·to128 change·the·line·<code>example_func(&amp;example_string);</code>·to
129 <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 <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>
130 to·explicitly·extract·the·string·slice·containing·the·string.·The·second130 to·explicitly·extract·the·string·slice·containing·the·string.·The·second
131 way·changes·<code>example_func(&amp;example_string);</code>·to131 way·changes·<code>example_func(&amp;example_string);</code>·to
132 <code>example_func(&amp;*example_string);</code>.·In·this·case·we·are·dereferencing·a132 <code>example_func(&amp;*example_string);</code>.·In·this·case·we·are·dereferencing·a
133 <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·to133 <code>String</code>·to·a·<a·href="https://doc.rust-lang.org/1.78.0/core/primitive.str.html"·title="str"><code>str</code></a>,·then·referencing·the·<a·href="https://doc.rust-lang.org/1.78.0/core/primitive.str.html"·title="str"><code>str</code></a>·back·to
134 <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·the134 <a·href="https://doc.rust-lang.org/1.78.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
135 conversion·explicitly·rather·than·relying·on·the·implicit·conversion.</p>135 conversion·explicitly·rather·than·relying·on·the·implicit·conversion.</p>
136 <h2·id="representation"><a·class="doc-anchor"·href="#representation">§</a>Representation</h2>136 <h2·id="representation"><a·class="doc-anchor"·href="#representation">§</a>Representation</h2>
137 <p>A·<code>String</code>·is·made·up·of·three·components:·a·pointer·to·some·bytes,·a137 <p>A·<code>String</code>·is·made·up·of·three·components:·a·pointer·to·some·bytes,·a
138 length,·and·a·capacity.·The·pointer·points·to·an·internal·buffer·<code>String</code>138 length,·and·a·capacity.·The·pointer·points·to·an·internal·buffer·<code>String</code>
139 uses·to·store·its·data.·The·length·is·the·number·of·bytes·currently·stored139 uses·to·store·its·data.·The·length·is·the·number·of·bytes·currently·stored
140 in·the·buffer,·and·the·capacity·is·the·size·of·the·buffer·in·bytes.·As·such,140 in·the·buffer,·and·the·capacity·is·the·size·of·the·buffer·in·bytes.·As·such,
141 the·length·will·always·be·less·than·or·equal·to·the·capacity.</p>141 the·length·will·always·be·less·than·or·equal·to·the·capacity.</p>
142 <p>This·buffer·is·always·stored·on·the·heap.</p>142 <p>This·buffer·is·always·stored·on·the·heap.</p>
143 <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>143 <p>You·can·look·at·these·with·the·<a·href="https://doc.rust-lang.org/1.78.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>
144 methods:</p>144 methods:</p>
  
145 <div·class="example-wrap"><pre·class="rust·rust-example-rendered"><code><span·class="kw">use·</span>std::mem;145 <div·class="example-wrap"><pre·class="rust·rust-example-rendered"><code><span·class="kw">use·</span>std::mem;
  
146 <span·class="kw">let·</span>story·=·String::from(<span·class="string">"Once·upon·a·time..."</span>);146 <span·class="kw">let·</span>story·=·String::from(<span·class="string">"Once·upon·a·time..."</span>);
  
147 <span·class="comment">//·Prevent·automatically·dropping·the·String's·data147 <span·class="comment">//·Prevent·automatically·dropping·the·String's·data
Offset 208, 15 lines modifiedOffset 208, 15 lines modified
208 buffer.·While·that·means·that·this·initial·operation·is·very208 buffer.·While·that·means·that·this·initial·operation·is·very
209 inexpensive,·it·may·cause·excessive·allocation·later·when·you·add209 inexpensive,·it·may·cause·excessive·allocation·later·when·you·add
210 data.·If·you·have·an·idea·of·how·much·data·the·<code>String</code>·will·hold,210 data.·If·you·have·an·idea·of·how·much·data·the·<code>String</code>·will·hold,
211 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·excessive211 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
212 re-allocation.</p>212 re-allocation.</p>
213 <h5·id="examples-1"><a·class="doc-anchor"·href="#examples-1">§</a>Examples</h5>213 <h5·id="examples-1"><a·class="doc-anchor"·href="#examples-1">§</a>Examples</h5>
214 <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"·href="https://play.rust-lang.org/?code=%23!%5Ballow(unused)%5D%0Afn+main()+%7B%0A++++let+s+=+String::new();%0A%7D&amp;edition=2021">Run</a></div>214 <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"·href="https://play.rust-lang.org/?code=%23!%5Ballow(unused)%5D%0Afn+main()+%7B%0A++++let+s+=+String::new();%0A%7D&amp;edition=2021">Run</a></div>
215 </div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.with_capacity"·class="method"><a·class="src·rightside"·href="../../src/alloc/string.rs.html#491-493">source</a><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>215 </div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.with_capacity"·class="method"><a·class="src·rightside"·href="../../src/alloc/string.rs.html#491-493">source</a><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.78.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>
216 <p><code>String</code>s·have·an·internal·buffer·to·hold·their·data.·The·capacity·is216 <p><code>String</code>s·have·an·internal·buffer·to·hold·their·data.·The·capacity·is
217 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>217 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>
218 method.·This·method·creates·an·empty·<code>String</code>,·but·one·with·an·initial218 method.·This·method·creates·an·empty·<code>String</code>,·but·one·with·an·initial
219 buffer·that·can·hold·at·least·<code>capacity</code>·bytes.·This·is·useful·when·you219 buffer·that·can·hold·at·least·<code>capacity</code>·bytes.·This·is·useful·when·you
220 may·be·appending·a·bunch·of·data·to·the·<code>String</code>,·reducing·the·number·of220 may·be·appending·a·bunch·of·data·to·the·<code>String</code>,·reducing·the·number·of
221 reallocations·it·needs·to·do.</p>221 reallocations·it·needs·to·do.</p>
222 <p>If·the·given·capacity·is·<code>0</code>,·no·allocation·will·occur,·and·this·method222 <p>If·the·given·capacity·is·<code>0</code>,·no·allocation·will·occur,·and·this·method
Max diff block lines reached; 725628/763232 bytes (95.07%) of diff not shown.
3.36 KB
./usr/share/doc/rust-web-doc/html/alloc/string/trait.ToString.html
    
Offset 9, 13 lines modifiedOffset 9, 13 lines modified
9 implementation·for·free.</p>9 implementation·for·free.</p>
10 </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"><a·class="src·rightside"·href="../../src/alloc/string.rs.html#2532">source</a><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 </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"><a·class="src·rightside"·href="../../src/alloc/string.rs.html#2532">source</a><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>
11 <h5·id="examples"><a·class="doc-anchor"·href="#examples">§</a>Examples</h5>11 <h5·id="examples"><a·class="doc-anchor"·href="#examples">§</a>Examples</h5>
12 <div·class="example-wrap"><pre·class="rust·rust-example-rendered"><code><span·class="kw">let·</span>i·=·<span·class="number">5</span>;12 <div·class="example-wrap"><pre·class="rust·rust-example-rendered"><code><span·class="kw">let·</span>i·=·<span·class="number">5</span>;
13 <span·class="kw">let·</span>five·=·String::from(<span·class="string">"5"</span>);13 <span·class="kw">let·</span>five·=·String::from(<span·class="string">"5"</span>);
  
14 <span·class="macro">assert_eq!</span>(five,·i.to_string());</code></pre><a·class="test-arrow"·target="_blank"·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">Run</a></div>14 <span·class="macro">assert_eq!</span>(five,·i.to_string());</code></pre><a·class="test-arrow"·target="_blank"·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">Run</a></div>
15 </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"><a·class="src·rightside"·href="../../src/alloc/string.rs.html#2543-2557">source</a><a·href="#impl-ToString-for-T"·class="anchor">§</a><h3·class="code-header">impl&lt;T:·<a·class="trait"·href="../fmt/trait.Display.html"·title="trait·alloc::fmt::Display">Display</a>·+·?<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>&gt;·<a·class="trait"·href="trait.ToString.html"·title="trait·alloc::string::ToString">ToString</a>·for·T</h3></section><div·class="docblock"><h4·id="panics"><a·class="doc-anchor"·href="#panics">§</a>Panics</h4>15 </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"><a·class="src·rightside"·href="../../src/alloc/string.rs.html#2543-2557">source</a><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.78.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>
16 <p>In·this·implementation,·the·<code>to_string</code>·method·panics16 <p>In·this·implementation,·the·<code>to_string</code>·method·panics
17 if·the·<code>Display</code>·implementation·returns·an·error.17 if·the·<code>Display</code>·implementation·returns·an·error.
18 This·indicates·an·incorrect·<code>Display</code>·implementation18 This·indicates·an·incorrect·<code>Display</code>·implementation
19 since·<code>fmt::Write·for·String</code>·never·returns·an·error·itself.</p>19 since·<code>fmt::Write·for·String</code>·never·returns·an·error·itself.</p>
20 </div></div><script·src="../../trait.impl/alloc/string/trait.ToString.js"·async></script></section></div></main></body></html>20 </div></div><script·src="../../trait.impl/alloc/string/trait.ToString.js"·async></script></section></div></main></body></html>
7.21 KB
./usr/share/doc/rust-web-doc/html/alloc/string/type.ParseError.html
    
Offset 1, 4 lines modifiedOffset 1, 4 lines modified
1 <!DOCTYPE·html><html·lang="en"><head><meta·charset="utf-8"><meta·name="viewport"·content="width=device-width,·initial-scale=1.0"><meta·name="generator"·content="rustdoc"><meta·name="description"·content="A·type·alias·for·`Infallible`."><title>ParseError·in·alloc::string·-·Rust</title><script>·if·(window.location.protocol·!==·"file:")·document.write(`<link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/SourceSerif4-Regular-46f98efaafac5295.ttf.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/FiraSans-Regular-018c141bf0843ffd.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/FiraSans-Medium-8f9a781e4970d388.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/SourceCodePro-Regular-562dcc5011b6de7d.ttf.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/SourceCodePro-Semibold-d899c5a5c4aeb14a.ttf.woff2">`)</script><link·rel="stylesheet"·href="../../static.files/normalize-76eba96aa4d2e634.css"><link·rel="stylesheet"·href="../../static.files/rustdoc-35f9e32502181f1e.css"><meta·name="rustdoc-vars"·data-root-path="../../"·data-static-root-path="../../static.files/"·data-current-crate="alloc"·data-themes=""·data-resource-suffix="1.78.0"·data-rustdoc-version="1.78.0"·data-channel="1.78.0"·data-search-js="search-42d8da7a6b9792c2.js"·data-settings-js="settings-4313503d2e1961c2.js"·><script·src="../../static.files/storage-4c98445ec4002617.js"></script><script·defer·src="sidebar-items1.78.0.js"></script><script·defer·src="../../static.files/main-12cf3b4f4f9dc36d.js"></script><noscript><link·rel="stylesheet"·href="../../static.files/noscript-04d5337699b92874.css"></noscript><link·rel="alternate·icon"·type="image/png"·href="../../static.files/favicon-16x16-8b506e7a72182f1c.png"><link·rel="alternate·icon"·type="image/png"·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.78.0</span></h2></div><h2·class="location"><a·href="#">ParseError</a></h2><div·class="sidebar-elems"><section><h3><a·href="#aliased-type">Aliased·type</a></h3></section><h2><a·href="index.html">In·alloc::string</a></h2></div></nav><div·class="sidebar-resizer"></div>1 <!DOCTYPE·html><html·lang="en"><head><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.write(`<link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/SourceSerif4-Regular-46f98efaafac5295.ttf.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/FiraSans-Regular-018c141bf0843ffd.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/FiraSans-Medium-8f9a781e4970d388.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/SourceCodePro-Regular-562dcc5011b6de7d.ttf.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/SourceCodePro-Semibold-d899c5a5c4aeb14a.ttf.woff2">`)</script><link·rel="stylesheet"·href="../../static.files/normalize-76eba96aa4d2e634.css"><link·rel="stylesheet"·href="../../static.files/rustdoc-35f9e32502181f1e.css"><meta·name="rustdoc-vars"·data-root-path="../../"·data-static-root-path="../../static.files/"·data-current-crate="alloc"·data-themes=""·data-resource-suffix="1.78.0"·data-rustdoc-version="1.78.0"·data-channel="1.78.0"·data-search-js="search-42d8da7a6b9792c2.js"·data-settings-js="settings-4313503d2e1961c2.js"·><script·src="../../static.files/storage-4c98445ec4002617.js"></script><script·defer·src="sidebar-items1.78.0.js"></script><script·defer·src="../../static.files/main-12cf3b4f4f9dc36d.js"></script><noscript><link·rel="stylesheet"·href="../../static.files/noscript-04d5337699b92874.css"></noscript><link·rel="alternate·icon"·type="image/png"·href="../../static.files/favicon-16x16-8b506e7a72182f1c.png"><link·rel="alternate·icon"·type="image/png"·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.78.0</span></h2></div><h2·class="location"><a·href="#">ParseError</a></h2><div·class="sidebar-elems"><section><h3><a·href="#aliased-type">Aliased·type</a></h3></section><h2><a·href="index.html">In·alloc::string</a></h2></div></nav><div·class="sidebar-resizer"></div>
2 ····<main><div·class="width-limiter"><nav·class="sub"><form·class="search-form"><span></span><div·id="sidebar-button"·tabindex="-1"><a·href="../../alloc/all.html"·title="show·sidebar"></a></div><input·class="search-input"·name="search"·aria-label="Run·search·in·the·documentation"·autocomplete="off"·spellcheck="false"·placeholder="Click·or·press·‘S’·to·search,·‘?’·for·more·options…"·type="search"><div·id="help-button"·tabindex="-1"><a·href="../../help.html"·title="help">?</a></div><div·id="settings-menu"·tabindex="-1"><a·href="../../settings.html"·title="settings"><img·width="22"·height="22"·alt="Change·settings"·src="../../static.files/wheel-7b819b6101059cd0.svg"></a></div></form></nav><section·id="main-content"·class="content"><div·class="main-heading"><h1>Type·Alias·<a·href="../index.html">alloc</a>::<wbr><a·href="index.html">string</a>::<wbr><a·class="type"·href="#">ParseError</a><button·id="copy-path"·title="Copy·item·path·to·clipboard"><img·src="../../static.files/clipboard-7571035ce49a181d.svg"·width="19"·height="18"·alt="Copy·item·path"></button></h1><span·class="out-of-band"><span·class="since"·title="Stable·since·Rust·version·1.5.0">1.5.0</span>···<a·class="src"·href="../../src/alloc/string.rs.html#2496">source</a>···<button·id="toggle-all-docs"·title="collapse·all·docs">[<span>&#x2212;</span>]</button></span></div><pre·class="rust·item-decl"><code>pub·type·ParseError·=·<a·class="enum"·href="../../core/convert/enum.Infallible.html"·title="enum·core::convert::Infallible">Infallible</a>;</code></pre><details·class="toggle·top-doc"·open><summary·class="hideme"><span>Expand·description</span></summary><div·class="docblock"><p>A·type·alias·for·<a·h[·...·truncated·by·diffoscope;·len:·10,·SHA:·5d82b952069f26991fd9df11e09030c60b3a19360b792cb4ea96d239295c153e·...·]/core/convert/enum.Infallible.html"·title="convert::Infallible"><code>Infallible</code></a>.</p>2 ····<main><div·class="width-limiter"><nav·class="sub"><form·class="search-form"><span></span><div·id="sidebar-button"·tabindex="-1"><a·href="../../alloc/all.html"·title="show·sidebar"></a></div><input·class="search-input"·name="search"·aria-label="Run·search·in·the·documentation"·autocomplete="off"·spellcheck="false"·placeholder="Click·or·press·‘S’·to·search,·‘?’·for·more·options…"·type="search"><div·id="help-button"·tabindex="-1"><a·href="../../help.html"·title="help">?</a></div><div·id="settings-menu"·tabindex="-1"><a·href="../../settings.html"·title="settings"><img·width="22"·height="22"·alt="Change·settings"·src="../../static.files/wheel-7b819b6101059cd0.svg"></a></div></form></nav><section·id="main-content"·class="content"><div·class="main-heading"><h1>Type·Alias·<a·href="../index.html">alloc</a>::<wbr><a·href="index.html">string</a>::<wbr><a·class="type"·href="#">ParseError</a><button·id="copy-path"·title="Copy·item·path·to·clipboard"><img·src="../../static.files/clipboard-7571035ce49a181d.svg"·width="19"·height="18"·alt="Copy·item·path"></button></h1><span·class="out-of-band"><span·class="since"·title="Stable·since·Rust·version·1.5.0">1.5.0</span>···<a·class="src"·href="../../src/alloc/string.rs.html#2496">source</a>···<button·id="toggle-all-docs"·title="collapse·all·docs">[<span>&#x2212;</span>]</button></span></div><pre·class="rust·item-decl"><code>pub·type·ParseError·=·<a·class="enum"·href="https://doc.rust-lang.org/1.78.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:·f3ec8ee8eab5ec6993e7c9d8f37cd3f2aead180b8135d3228f956153e6f6a4cf·...·]/core/convert/enum.Infallible.html"·title="convert::Infallible"><code>Infallible</code></a>.</p>
3 <p>This·alias·exists·for·backwards·compatibility,·and·may·be·eventually·deprecated.</p>3 <p>This·alias·exists·for·backwards·compatibility,·and·may·be·eventually·deprecated.</p>
4 </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>4 </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.88 KB
./usr/share/doc/rust-web-doc/html/alloc/sync/index.html
    
Offset 3, 8 lines modifiedOffset 3, 8 lines modified
3 <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>See·the·<a·href="struct.Arc.html"·title="struct·alloc::sync::Arc"><code>Arc&lt;T&gt;</code></a>·documentation·for·more·details.</p>
4 <p><strong>Note</strong>:·This·module·is·only·available·on·platforms·that·support·atomic4 <p><strong>Note</strong>:·This·module·is·only·available·on·platforms·that·support·atomic
5 loads·and·stores·of·pointers.·This·may·be·detected·at·compile·time·using5 loads·and·stores·of·pointers.·This·may·be·detected·at·compile·time·using
6 <code>#[cfg(target_has_atomic·=·&quot;ptr&quot;)]</code>.</p>6 <code>#[cfg(target_has_atomic·=·&quot;ptr&quot;)]</code>.</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.Arc.html"·title="struct·alloc::sync::Arc">Arc</a></div><div·class="desc·docblock-short">A·thread-safe·reference-counting·pointer.·‘Arc’·stands·for·‘Atomically7 </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
8 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·the8 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
9 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 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>
10 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>10 pointer,·which·returns·an·<code><a·href="https://doc.rust-lang.org/1.78.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>
360 KB
./usr/share/doc/rust-web-doc/html/alloc/sync/struct.Arc.html
    
Offset 1, 50 lines modifiedOffset 1, 50 lines modified
1 <!DOCTYPE·html><html·lang="en"><head><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.write(`<link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/SourceSerif4-Regular-46f98efaafac5295.ttf.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/FiraSans-Regular-018c141bf0843ffd.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/FiraSans-Medium-8f9a781e4970d388.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/SourceCodePro-Regular-562dcc5011b6de7d.ttf.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/SourceCodePro-Semibold-d899c5a5c4aeb14a.ttf.woff2">`)</script><link·rel="stylesheet"·href="../../static.files/normalize-76eba96aa4d2e634.css"><link·rel="stylesheet"·href="../../static.files/rustdoc-35f9e32502181f1e.css"><meta·name="rustdoc-vars"·data-root-path="../../"·data-static-root-path="../../static.files/"·data-current-crate="alloc"·data-themes=""·data-resource-suffix="1.78.0"·data-rustdoc-version="1.78.0"·data-channel="1.78.0"·data-search-js="search-42d8da7a6b9792c2.js"·data-settings-js="settings-4313503d2e1961c2.js"·><script·src="../../static.files/storage-4c98445ec4002617.js"></script><script·defer·src="sidebar-items1.78.0.js"></script><script·defer·src="../../static.files/main-12cf3b4f4f9dc36d.js"></script><noscript><link·rel="stylesheet"·href="../../static.files/noscript-04d5337699b92874.css"></noscript><link·rel="alternate·icon"·type="image/png"·href="../../static.files/favicon-16x16-8b506e7a72182f1c.png"><link·rel="alternate·icon"·type="image/png"·href="../../static.files/favicon-32x32-422f7d1d52889060.png"><link·rel="icon"·type="image/svg+xml"·href="../../static.files/favicon-2c020d218678b618.svg"></head><body·class="rustdoc·struct"><!--[if·lte·IE·11]><div·class="warning">This·old·browser·is·unsupported·and·will·most·likely·display·funky·things.</div><![endif]--><nav·class="mobile-topbar"><button·class="sidebar-menu-toggle"·title="show·sidebar"></button><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-151179464ae7ed46.svg"·alt=""></a></nav><nav·class="sidebar"><div·class="sidebar-crate"><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-151179464ae7ed46.svg"·alt="logo"></a><h2><a·href="../../alloc/index.html">alloc</a><span·class="version">1.78.0</span></h2></div><h2·class="location"><a·href="#">Arc</a></h2><div·class="sidebar-elems"><section><h3><a·href="#implementations">Methods</a></h3><ul·class="block·method"><li><a·href="#method.allocator">allocator</a></li><li><a·href="#method.as_ptr">as_ptr</a></li><li><a·href="#method.assume_init">assume_init</a></li><li><a·href="#method.assume_init-1">assume_init</a></li><li><a·href="#method.decrement_strong_count">decrement_strong_count</a></li><li><a·href="#method.decrement_strong_count_in">decrement_strong_count_in</a></li><li><a·href="#method.downcast">downcast</a></li><li><a·href="#method.downcast_unchecked">downcast_unchecked</a></li><li><a·href="#method.downgrade">downgrade</a></li><li><a·href="#method.from_raw">from_raw</a></li><li><a·href="#method.from_raw_in">from_raw_in</a></li><li><a·href="#method.get_mut">get_mut</a></li><li><a·href="#method.get_mut_unchecked">get_mut_unchecked</a></li><li><a·href="#method.increment_strong_count">increment_strong_count</a></li><li><a·href="#method.increment_strong_count_in">increment_strong_count_in</a></li><li><a·href="#method.into_inner">into_inner</a></li><li><a·href="#method.into_raw">into_raw</a></li><li><a·href="#method.make_mut">make_mut</a></li><li><a·href="#method.new">new</a></li><li><a·href="#method.new_cyclic">new_cyclic</a></li><li><a·href="#method.new_in">new_in</a></li><li><a·href="#method.new_uninit">new_uninit</a></li><li><a·href="#method.new_uninit_in">new_uninit_in</a></li><li><a·href="#method.new_uninit_slice">new_uninit_slice</a></li><li><a·href="#method.new_uninit_slice_in">new_uninit_slice_in</a></li><li><a·href="#method.new_zeroed">new_zeroed</a></li><li><a·href="#method.new_zeroed_in">new_zeroed_in</a></li><li><a·href="#method.new_zeroed_slice">new_zeroed_slice</a></li><li><a·href="#method.new_zeroed_slice_in">new_zeroed_slice_in</a></li><li><a·href="#method.pin">pin</a></li><li><a·href="#method.pin_in">pin_in</a></li><li><a·href="#method.ptr_eq">ptr_eq</a></li><li><a·href="#method.strong_count">strong_count</a></li><li><a·href="#method.try_new">try_new</a></li><li><a·href="#method.try_new_in">try_new_in</a></li><li><a·href="#method.try_new_uninit">try_new_uninit</a></li><li><a·href="#method.try_new_uninit_in">try_new_uninit_in</a></li><li><a·href="#method.try_new_zeroed">try_new_zeroed</a></li><li><a·href="#method.try_new_zeroed_in">try_new_zeroed_in</a></li><li><a·href="#method.try_pin">try_pin</a></li><li><a·href="#method.try_pin_in">try_pin_in</a></li><li><a·href="#method.try_unwrap">try_unwrap</a></li><li><a·href="#method.unwrap_or_clone">unwrap_or_clone</a></li><li><a·href="#method.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">AsRef&lt;T&gt;</a></li><li><a·href="#impl-Borrow%3CT%3E-for-Arc%3CT,+A%3E">Borrow&lt;T&gt;</a></li><li><a·href="#impl-Clone-for-Arc%3CT,+A%3E">Clone</a></li><li><a·href="#impl-CoerceUnsized%3CArc%3CU,+A%3E%3E-for-Arc%3CT,+A%3E">CoerceUnsized&lt;Arc&lt;U,·A&gt;&gt;</a></li><li><a·href="#impl-Debug-for-Arc%3CT,+A%3E">Debug</a></li><li><a·href="#impl-Default-for-Arc%3CT%3E">Default</a></li><li><a·href="#impl-Deref-for-Arc%3CT,+A%3E">Deref</a></li><li><a·href="#impl-DispatchFromDyn%3CArc%3CU%3E%3E-for-Arc%3CT%3E">DispatchFromDyn&lt;Arc&lt;U&gt;&gt;</a></li><li><a·href="#impl-Display-for-Arc%3CT,+A%3E">Display</a></li><li><a·href="#impl-Drop-for-Arc%3CT,+A%3E">Drop</a></li><li><a·href="#impl-Eq-for-Arc%3CT,+A%3E">Eq</a></li><li><a·href="#impl-Error-for-Arc%3CT%3E">Error</a></li><li><a·href="#impl-From%3C%26CStr%3E-for-Arc%3CCStr%3E">From&lt;&amp;CStr&gt;</a></li><li><a·href="#impl-From%3C%26%5BT%5D%3E-for-Arc%3C%5BT%5D%3E">From&lt;&amp;[T]&gt;</a></li><li><a·href="#impl-From%3C%26str%3E-for-Arc%3Cstr%3E">From&lt;&amp;str&gt;</a></li><li><a·href="#impl-From%3CArc%3CW%3E%3E-for-RawWaker">From&lt;Arc&lt;W&gt;&gt;</a></li><li><a·href="#impl-From%3CArc%3CW%3E%3E-for-Waker">From&lt;Arc&lt;W&gt;&gt;</a></li><li><a·href="#impl-From%3CArc%3Cstr%3E%3E-for-Arc%3C%5Bu8%5D%3E">From&lt;Arc&lt;str&gt;&gt;</a></li><li><a·href="#impl-From%3CBox%3CT,+A%3E%3E-for-Arc%3CT,+A%3E">From&lt;Box&lt;T,·A&gt;&gt;</a></li><li><a·href="#impl-From%3CCString%3E-for-Arc%3CCStr%3E">From&lt;CString&gt;</a></li><li><a·href="#impl-From%3CCow%3C'a,+B%3E%3E-for-Arc%3CB%3E">From&lt;Cow&lt;&#x27;a,·B&gt;&gt;</a></li><li><a·href="#impl-From%3CString%3E-for-Arc%3Cstr%3E">From&lt;String&gt;</a></li><li><a·href="#impl-From%3CT%3E-for-Arc%3CT%3E">From&lt;T&gt;</a></li><li><a·href="#impl-From%3CVec%3CT,+A%3E%3E-for-Arc%3C%5BT%5D,+A%3E">From&lt;Vec&lt;T,·A&gt;&gt;</a></li><li><a·href="#impl-From%3C%5BT;+N%5D%3E-for-Arc%3C%5BT%5D%3E">From&lt;[T;·N]&gt;</a></li><li><a·href="#impl-FromIterator%3CT%3E-for-Arc%3C%5BT%5D%3E">FromIterator&lt;T&gt;</a></li><li><a·href="#impl-Hash-for-Arc%3CT,+A%3E">Hash</a></li><li><a·href="#impl-Ord-for-Arc%3CT,+A%3E">Ord</a></li><li><a·href="#impl-PartialEq-for-Arc%3CT,+A%3E">PartialEq</a></li><li><a·href="#impl-PartialOrd-for-Arc%3CT,+A%3E">PartialOrd</a></li><li><a·href="#impl-Pointer-for-Arc%3CT,+A%3E">Pointer</a></li><li><a·href="#impl-Send-for-Arc%3CT,+A%3E">Send</a></li><li><a·href="#impl-Sync-for-Arc%3CT,+A%3E">Sync</a></li><li><a·href="#impl-TryFrom%3CArc%3C%5BT%5D,+A%3E%3E-for-Arc%3C%5BT;+N%5D,+A%3E">TryFrom&lt;Arc&lt;[T],·A&gt;&gt;</a></li><li><a·href="#impl-Unpin-for-Arc%3CT,+A%3E">Unpin</a></li><li><a·href="#impl-UnwindSafe-for-Arc%3CT,+A%3E">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">Freeze</a></li><li><a·href="#impl-RefUnwindSafe-for-Arc%3CT,+A%3E">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">Any</a></li><li><a·href="#impl-Borrow%3CT%3E-for-T">Borrow&lt;T&gt;</a></li><li><a·href="#impl-BorrowMut%3CT%3E-for-T">BorrowMut&lt;T&gt;</a></li><li><a·href="#impl-From%3C!%3E-for-T">From&lt;!&gt;</a></li><li><a·href="#impl-From%3CT%3E-for-T">From&lt;T&gt;</a></li><li><a·href="#impl-Into%3CU%3E-for-T">Into&lt;U&gt;</a></li><li><a·href="#impl-ToOwned-for-T">ToOwned</a></li><li><a·href="#impl-ToString-for-T">ToString</a></li><li><a·href="#impl-TryFrom%3CU%3E-for-T">TryFrom&lt;U&gt;</a></li><li><a·href="#impl-TryInto%3CU%3E-for-T">TryInto&lt;U&gt;</a></li></ul></section><h2><a·href="index.html">In·alloc::sync</a></h2></div></nav><div·class="sidebar-resizer"></div>1 <!DOCTYPE·html><html·lang="en"><head><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.write(`<link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/SourceSerif4-Regular-46f98efaafac5295.ttf.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/FiraSans-Regular-018c141bf0843ffd.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/FiraSans-Medium-8f9a781e4970d388.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/SourceCodePro-Regular-562dcc5011b6de7d.ttf.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/SourceCodePro-Semibold-d899c5a5c4aeb14a.ttf.woff2">`)</script><link·rel="stylesheet"·href="../../static.files/normalize-76eba96aa4d2e634.css"><link·rel="stylesheet"·href="../../static.files/rustdoc-35f9e32502181f1e.css"><meta·name="rustdoc-vars"·data-root-path="../../"·data-static-root-path="../../static.files/"·data-current-crate="alloc"·data-themes=""·data-resource-suffix="1.78.0"·data-rustdoc-version="1.78.0"·data-channel="1.78.0"·data-search-js="search-42d8da7a6b9792c2.js"·data-settings-js="settings-4313503d2e1961c2.js"·><script·src="../../static.files/storage-4c98445ec4002617.js"></script><script·defer·src="sidebar-items1.78.0.js"></script><script·defer·src="../../static.files/main-12cf3b4f4f9dc36d.js"></script><noscript><link·rel="stylesheet"·href="../../static.files/noscript-04d5337699b92874.css"></noscript><link·rel="alternate·icon"·type="image/png"·href="../../static.files/favicon-16x16-8b506e7a72182f1c.png"><link·rel="alternate·icon"·type="image/png"·href="../../static.files/favicon-32x32-422f7d1d52889060.png"><link·rel="icon"·type="image/svg+xml"·href="../../static.files/favicon-2c020d218678b618.svg"></head><body·class="rustdoc·struct"><!--[if·lte·IE·11]><div·class="warning">This·old·browser·is·unsupported·and·will·most·likely·display·funky·things.</div><![endif]--><nav·class="mobile-topbar"><button·class="sidebar-menu-toggle"·title="show·sidebar"></button><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-151179464ae7ed46.svg"·alt=""></a></nav><nav·class="sidebar"><div·class="sidebar-crate"><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-151179464ae7ed46.svg"·alt="logo"></a><h2><a·href="../../alloc/index.html">alloc</a><span·class="version">1.78.0</span></h2></div><h2·class="location"><a·href="#">Arc</a></h2><div·class="sidebar-elems"><section><h3><a·href="#implementations">Methods</a></h3><ul·class="block·method"><li><a·href="#method.allocator">allocator</a></li><li><a·href="#method.as_ptr">as_ptr</a></li><li><a·href="#method.assume_init">assume_init</a></li><li><a·href="#method.assume_init-1">assume_init</a></li><li><a·href="#method.decrement_strong_count">decrement_strong_count</a></li><li><a·href="#method.decrement_strong_count_in">decrement_strong_count_in</a></li><li><a·href="#method.downcast">downcast</a></li><li><a·href="#method.downcast_unchecked">downcast_unchecked</a></li><li><a·href="#method.downgrade">downgrade</a></li><li><a·href="#method.from_raw">from_raw</a></li><li><a·href="#method.from_raw_in">from_raw_in</a></li><li><a·href="#method.get_mut">get_mut</a></li><li><a·href="#method.get_mut_unchecked">get_mut_unchecked</a></li><li><a·href="#method.increment_strong_count">increment_strong_count</a></li><li><a·href="#method.increment_strong_count_in">increment_strong_count_in</a></li><li><a·href="#method.into_inner">into_inner</a></li><li><a·href="#method.into_raw">into_raw</a></li><li><a·href="#method.make_mut">make_mut</a></li><li><a·href="#method.new">new</a></li><li><a·href="#method.new_cyclic">new_cyclic</a></li><li><a·href="#method.new_in">new_in</a></li><li><a·href="#method.new_uninit">new_uninit</a></li><li><a·href="#method.new_uninit_in">new_uninit_in</a></li><li><a·href="#method.new_uninit_slice">new_uninit_slice</a></li><li><a·href="#method.new_uninit_slice_in">new_uninit_slice_in</a></li><li><a·href="#method.new_zeroed">new_zeroed</a></li><li><a·href="#method.new_zeroed_in">new_zeroed_in</a></li><li><a·href="#method.new_zeroed_slice">new_zeroed_slice</a></li><li><a·href="#method.new_zeroed_slice_in">new_zeroed_slice_in</a></li><li><a·href="#method.pin">pin</a></li><li><a·href="#method.pin_in">pin_in</a></li><li><a·href="#method.ptr_eq">ptr_eq</a></li><li><a·href="#method.strong_count">strong_count</a></li><li><a·href="#method.try_new">try_new</a></li><li><a·href="#method.try_new_in">try_new_in</a></li><li><a·href="#method.try_new_uninit">try_new_uninit</a></li><li><a·href="#method.try_new_uninit_in">try_new_uninit_in</a></li><li><a·href="#method.try_new_zeroed">try_new_zeroed</a></li><li><a·href="#method.try_new_zeroed_in">try_new_zeroed_in</a></li><li><a·href="#method.try_pin">try_pin</a></li><li><a·href="#method.try_pin_in">try_pin_in</a></li><li><a·href="#method.try_unwrap">try_unwrap</a></li><li><a·href="#method.unwrap_or_clone">unwrap_or_clone</a></li><li><a·href="#method.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">AsRef&lt;T&gt;</a></li><li><a·href="#impl-Borrow%3CT%3E-for-Arc%3CT,+A%3E">Borrow&lt;T&gt;</a></li><li><a·href="#impl-Clone-for-Arc%3CT,+A%3E">Clone</a></li><li><a·href="#impl-CoerceUnsized%3CArc%3CU,+A%3E%3E-for-Arc%3CT,+A%3E">CoerceUnsized&lt;Arc&lt;U,·A&gt;&gt;</a></li><li><a·href="#impl-Debug-for-Arc%3CT,+A%3E">Debug</a></li><li><a·href="#impl-Default-for-Arc%3CT%3E">Default</a></li><li><a·href="#impl-Deref-for-Arc%3CT,+A%3E">Deref</a></li><li><a·href="#impl-DispatchFromDyn%3CArc%3CU%3E%3E-for-Arc%3CT%3E">DispatchFromDyn&lt;Arc&lt;U&gt;&gt;</a></li><li><a·href="#impl-Display-for-Arc%3CT,+A%3E">Display</a></li><li><a·href="#impl-Drop-for-Arc%3CT,+A%3E">Drop</a></li><li><a·href="#impl-Eq-for-Arc%3CT,+A%3E">Eq</a></li><li><a·href="#impl-Error-for-Arc%3CT%3E">Error</a></li><li><a·href="#impl-From%3C%26CStr%3E-for-Arc%3CCStr%3E">From&lt;&amp;CStr&gt;</a></li><li><a·href="#impl-From%3C%26%5BT%5D%3E-for-Arc%3C%5BT%5D%3E">From&lt;&amp;[T]&gt;</a></li><li><a·href="#impl-From%3C%26str%3E-for-Arc%3Cstr%3E">From&lt;&amp;str&gt;</a></li><li><a·href="#impl-From%3CArc%3CW%3E%3E-for-RawWaker">From&lt;Arc&lt;W&gt;&gt;</a></li><li><a·href="#impl-From%3CArc%3CW%3E%3E-for-Waker">From&lt;Arc&lt;W&gt;&gt;</a></li><li><a·href="#impl-From%3CArc%3Cstr%3E%3E-for-Arc%3C%5Bu8%5D%3E">From&lt;Arc&lt;str&gt;&gt;</a></li><li><a·href="#impl-From%3CBox%3CT,+A%3E%3E-for-Arc%3CT,+A%3E">From&lt;Box&lt;T,·A&gt;&gt;</a></li><li><a·href="#impl-From%3CCString%3E-for-Arc%3CCStr%3E">From&lt;CString&gt;</a></li><li><a·href="#impl-From%3CCow%3C'a,+B%3E%3E-for-Arc%3CB%3E">From&lt;Cow&lt;&#x27;a,·B&gt;&gt;</a></li><li><a·href="#impl-From%3CString%3E-for-Arc%3Cstr%3E">From&lt;String&gt;</a></li><li><a·href="#impl-From%3CT%3E-for-Arc%3CT%3E">From&lt;T&gt;</a></li><li><a·href="#impl-From%3CVec%3CT,+A%3E%3E-for-Arc%3C%5BT%5D,+A%3E">From&lt;Vec&lt;T,·A&gt;&gt;</a></li><li><a·href="#impl-From%3C%5BT;+N%5D%3E-for-Arc%3C%5BT%5D%3E">From&lt;[T;·N]&gt;</a></li><li><a·href="#impl-FromIterator%3CT%3E-for-Arc%3C%5BT%5D%3E">FromIterator&lt;T&gt;</a></li><li><a·href="#impl-Hash-for-Arc%3CT,+A%3E">Hash</a></li><li><a·href="#impl-Ord-for-Arc%3CT,+A%3E">Ord</a></li><li><a·href="#impl-PartialEq-for-Arc%3CT,+A%3E">PartialEq</a></li><li><a·href="#impl-PartialOrd-for-Arc%3CT,+A%3E">PartialOrd</a></li><li><a·href="#impl-Pointer-for-Arc%3CT,+A%3E">Pointer</a></li><li><a·href="#impl-Send-for-Arc%3CT,+A%3E">Send</a></li><li><a·href="#impl-Sync-for-Arc%3CT,+A%3E">Sync</a></li><li><a·href="#impl-TryFrom%3CArc%3C%5BT%5D,+A%3E%3E-for-Arc%3C%5BT;+N%5D,+A%3E">TryFrom&lt;Arc&lt;[T],·A&gt;&gt;</a></li><li><a·href="#impl-Unpin-for-Arc%3CT,+A%3E">Unpin</a></li><li><a·href="#impl-UnwindSafe-for-Arc%3CT,+A%3E">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">Freeze</a></li><li><a·href="#impl-RefUnwindSafe-for-Arc%3CT,+A%3E">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">Any</a></li><li><a·href="#impl-Borrow%3CT%3E-for-T">Borrow&lt;T&gt;</a></li><li><a·href="#impl-BorrowMut%3CT%3E-for-T">BorrowMut&lt;T&gt;</a></li><li><a·href="#impl-From%3C!%3E-for-T">From&lt;!&gt;</a></li><li><a·href="#impl-From%3CT%3E-for-T">From&lt;T&gt;</a></li><li><a·href="#impl-Into%3CU%3E-for-T">Into&lt;U&gt;</a></li><li><a·href="#impl-ToOwned-for-T">ToOwned</a></li><li><a·href="#impl-ToString-for-T">ToString</a></li><li><a·href="#impl-TryFrom%3CU%3E-for-T">TryFrom&lt;U&gt;</a></li><li><a·href="#impl-TryInto%3CU%3E-for-T">TryInto&lt;U&gt;</a></li></ul></section><h2><a·href="index.html">In·alloc::sync</a></h2></div></nav><div·class="sidebar-resizer"></div>
2 ····<main><div·class="width-limiter"><nav·class="sub"><form·class="search-form"><span></span><div·id="sidebar-button"·tabindex="-1"><a·href="../../alloc/all.html"·title="show·sidebar"></a></div><input·class="search-input"·name="search"·aria-label="Run·search·in·the·documentation"·autocomplete="off"·spellcheck="false"·placeholder="Click·or·press·‘S’·to·search,·‘?’·for·more·options…"·type="search"><div·id="help-button"·tabindex="-1"><a·href="../../help.html"·title="help">?</a></div><div·id="settings-menu"·tabindex="-1"><a·href="../../settings.html"·title="settings"><img·width="22"·height="22"·alt="Change·settings"·src="../../static.files/wheel-7b819b6101059cd0.svg"></a></div></form></nav><section·id="main-content"·class="content"><div·class="main-heading"><h1>Struct·<a·href="../index.html">alloc</a>::<wbr><a·href="index.html">sync</a>::<wbr><a·class="struct"·href="#">Arc</a><button·id="copy-path"·title="Copy·item·path·to·clipboard"><img·src="../../static.files/clipboard-7571035ce49a181d.svg"·width="19"·height="18"·alt="Copy·item·path"></button></h1><span·class="out-of-band"><span·class="since"·title="Stable·since·Rust·version·1.0.0">1.0.0</span>···<a·class="src"·href="../../src/alloc/sync.rs.html#248-255">source</a>···<button·id="toggle-all-docs"·title="collapse·all·docs">[<span>&#x2212;</span>]</button></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·‘Atomically2 ····<main><div·class="width-limiter"><nav·class="sub"><form·class="search-form"><span></span><div·id="sidebar-button"·tabindex="-1"><a·href="../../alloc/all.html"·title="show·sidebar"></a></div><input·class="search-input"·name="search"·aria-label="Run·search·in·the·documentation"·autocomplete="off"·spellcheck="false"·placeholder="Click·or·press·‘S’·to·search,·‘?’·for·more·options…"·type="search"><div·id="help-button"·tabindex="-1"><a·href="../../help.html"·title="help">?</a></div><div·id="settings-menu"·tabindex="-1"><a·href="../../settings.html"·title="settings"><img·width="22"·height="22"·alt="Change·settings"·src="../../static.files/wheel-7b819b6101059cd0.svg"></a></div></form></nav><section·id="main-content"·class="content"><div·class="main-heading"><h1>Struct·<a·href="../index.html">alloc</a>::<wbr><a·href="index.html">sync</a>::<wbr><a·class="struct"·href="#">Arc</a><button·id="copy-path"·title="Copy·item·path·to·clipboard"><img·src="../../static.files/clipboard-7571035ce49a181d.svg"·width="19"·height="18"·alt="Copy·item·path"></button></h1><span·class="out-of-band"><span·class="since"·title="Stable·since·Rust·version·1.0.0">1.0.0</span>···<a·class="src"·href="../../src/alloc/sync.rs.html#248-255">source</a>···<button·id="toggle-all-docs"·title="collapse·all·docs">[<span>&#x2212;</span>]</button></span></div><pre·class="rust·item-decl"><code>pub·struct·Arc&lt;T:·?<a·class="trait"·href="https://doc.rust-lang.org/1.78.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
3 Reference·Counted’.</p>3 Reference·Counted’.</p>
4 <p>The·type·<code>Arc&lt;T&gt;</code>·provides·shared·ownership·of·a·value·of·type·<code>T</code>,4 <p>The·type·<code>Arc&lt;T&gt;</code>·provides·shared·ownership·of·a·value·of·type·<code>T</code>,
5 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>·produces5 allocated·in·the·heap.·Invoking·<a·href="https://doc.rust-lang.org/1.78.0/core/clone/trait.Clone.html#tymethod.clone"·title="method·core::clone::Clone::clone"><code>clone</code></a>·on·<code>Arc</code>·produces
6 a·new·<code>Arc</code>·instance,·which·points·to·the·same·allocation·on·the·heap·as·the6 a·new·<code>Arc</code>·instance,·which·points·to·the·same·allocation·on·the·heap·as·the
7 source·<code>Arc</code>,·while·increasing·a·reference·count.·When·the·last·<code>Arc</code>7 source·<code>Arc</code>,·while·increasing·a·reference·count.·When·the·last·<code>Arc</code>
8 pointer·to·a·given·allocation·is·destroyed,·the·value·stored·in·that·allocation·(often8 pointer·to·a·given·allocation·is·destroyed,·the·value·stored·in·that·allocation·(often
9 referred·to·as·“inner·value”)·is·also·dropped.</p>9 referred·to·as·“inner·value”)·is·also·dropped.</p>
10 <p>Shared·references·in·Rust·disallow·mutation·by·default,·and·<code>Arc</code>·is·no10 <p>Shared·references·in·Rust·disallow·mutation·by·default,·and·<code>Arc</code>·is·no
11 exception:·you·cannot·generally·obtain·a·mutable·reference·to·something11 exception:·you·cannot·generally·obtain·a·mutable·reference·to·something
12 inside·an·<code>Arc</code>.·If·you·need·to·mutate·through·an·<code>Arc</code>,·use12 inside·an·<code>Arc</code>.·If·you·need·to·mutate·through·an·<code>Arc</code>,·use
13 <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>13 <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.78.0/core/sync/atomic/index.html"·title="mod·core::sync::atomic"><code>Atomic</code></a>
14 types.</p>14 types.</p>
15 <p><strong>Note</strong>:·This·type·is·only·available·on·platforms·that·support·atomic15 <p><strong>Note</strong>:·This·type·is·only·available·on·platforms·that·support·atomic
16 loads·and·stores·of·pointers,·which·includes·all·platforms·that·support16 loads·and·stores·of·pointers,·which·includes·all·platforms·that·support
17 the·<code>std</code>·crate·but·not·all·those·which·only·support·<a·href="../index.html"·title="mod·alloc"><code>alloc</code></a>.17 the·<code>std</code>·crate·but·not·all·those·which·only·support·<a·href="../index.html"·title="mod·alloc"><code>alloc</code></a>.
18 This·may·be·detected·at·compile·time·using·<code>#[cfg(target_has_atomic·=·&quot;ptr&quot;)]</code>.</p>18 This·may·be·detected·at·compile·time·using·<code>#[cfg(target_has_atomic·=·&quot;ptr&quot;)]</code>.</p>
19 <h3·id="thread-safety"><a·class="doc-anchor"·href="#thread-safety">§</a>Thread·Safety</h3>19 <h3·id="thread-safety"><a·class="doc-anchor"·href="#thread-safety">§</a>Thread·Safety</h3>
20 <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·reference20 <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
21 counting.·This·means·that·it·is·thread-safe.·The·disadvantage·is·that21 counting.·This·means·that·it·is·thread-safe.·The·disadvantage·is·that
22 atomic·operations·are·more·expensive·than·ordinary·memory·accesses.·If·you22 atomic·operations·are·more·expensive·than·ordinary·memory·accesses.·If·you
23 are·not·sharing·reference-counted·allocations·between·threads,·consider·using23 are·not·sharing·reference-counted·allocations·between·threads,·consider·using
24 <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·the24 <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
25 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 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.
26 However,·a·library·might·choose·<code>Arc&lt;T&gt;</code>·in·order·to·give·library·consumers26 However,·a·library·might·choose·<code>Arc&lt;T&gt;</code>·in·order·to·give·library·consumers
27 more·flexibility.</p>27 more·flexibility.</p>
28 <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>·implements28 <p><code>Arc&lt;T&gt;</code>·will·implement·<a·href="https://doc.rust-lang.org/1.78.0/core/marker/trait.Send.html"·title="trait·core::marker::Send"><code>Send</code></a>·and·<a·href="https://doc.rust-lang.org/1.78.0/core/marker/trait.Sync.html"·title="trait·core::marker::Sync"><code>Sync</code></a>·as·long·as·the·<code>T</code>·implements
29 <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·an29 <a·href="https://doc.rust-lang.org/1.78.0/core/marker/trait.Send.html"·title="trait·core::marker::Send"><code>Send</code></a>·and·<a·href="https://doc.rust-lang.org/1.78.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
30 <code>Arc&lt;T&gt;</code>·to·make·it·thread-safe?·This·may·be·a·bit·counter-intuitive·at30 <code>Arc&lt;T&gt;</code>·to·make·it·thread-safe?·This·may·be·a·bit·counter-intuitive·at
31 first:·after·all,·isn’t·the·point·of·<code>Arc&lt;T&gt;</code>·thread·safety?·The·key·is31 first:·after·all,·isn’t·the·point·of·<code>Arc&lt;T&gt;</code>·thread·safety?·The·key·is
32 this:·<code>Arc&lt;T&gt;</code>·makes·it·thread·safe·to·have·multiple·ownership·of·the·same32 this:·<code>Arc&lt;T&gt;</code>·makes·it·thread·safe·to·have·multiple·ownership·of·the·same
33 data,·but·it··doesn’t·add·thread·safety·to·its·data.·Consider33 data,·but·it··doesn’t·add·thread·safety·to·its·data.·Consider
34 <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·always34 <code>Arc&lt;<a·href="https://doc.rust-lang.org/1.78.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.78.0/core/cell/struct.RefCell.html"·title="struct·core::cell::RefCell"><code>RefCell&lt[·...·truncated·by·diffoscope;·len:·65,·SHA:·223391b30ab15f4393b75ce257df006dfd733f8c02e8111b75e6b7d8e2df4f8e·...·]/core/marker/trait.Sync.html"·title="trait·core::marker::Sync"><code>Sync</code></a>,·and·if·<code>Arc&lt;T&gt;</code>·was·always
35 <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:35 <a·href="https://doc.rust-lang.org/1.78.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.78.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:
36 <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·using36 <a·href="https://doc.rust-lang.org/1.78.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
37 non-atomic·operations.</p>37 non-atomic·operations.</p>
38 <p>In·the·end,·this·means·that·you·may·need·to·pair·<code>Arc&lt;T&gt;</code>·with·some·sort·of38 <p>In·the·end,·this·means·that·you·may·need·to·pair·<code>Arc&lt;T&gt;</code>·with·some·sort·of
39 <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 <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>
40 <h3·id="breaking-cycles-with-weak"><a·class="doc-anchor"·href="#breaking-cycles-with-weak">§</a>Breaking·cycles·with·<code>Weak</code></h3>40 <h3·id="breaking-cycles-with-weak"><a·class="doc-anchor"·href="#breaking-cycles-with-weak">§</a>Breaking·cycles·with·<code>Weak</code></h3>
41 <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-owning41 <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
42 <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>d42 <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
43 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·has43 to·an·<code>Arc</code>,·but·this·will·return·<a·href="https://doc.rust-lang.org/1.78.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
44 already·been·dropped.·In·other·words,·<code>Weak</code>·pointers·do·not·keep·the·value44 already·been·dropped.·In·other·words,·<code>Weak</code>·pointers·do·not·keep·the·value
45 inside·the·allocation·alive;·however,·they·<em>do</em>·keep·the·allocation45 inside·the·allocation·alive;·however,·they·<em>do</em>·keep·the·allocation
46 (the·backing·store·for·the·value)·alive.</p>46 (the·backing·store·for·the·value)·alive.</p>
47 <p>A·cycle·between·<code>Arc</code>·pointers·will·never·be·deallocated.·For·this·reason,47 <p>A·cycle·between·<code>Arc</code>·pointers·will·never·be·deallocated.·For·this·reason,
48 <a·href="struct.Weak.html"·title="struct·alloc::sync::Weak"><code>Weak</code></a>·is·used·to·break·cycles.·For·example,·a·tree·could·have48 <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
49 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 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>
50 pointers·from·children·back·to·their·parents.</p>50 pointers·from·children·back·to·their·parents.</p>
Offset 55, 15 lines modifiedOffset 55, 15 lines modified
55 <div·class="example-wrap"><pre·class="rust·rust-example-rendered"><code><span·class="kw">use·</span>std::sync::Arc;55 <div·class="example-wrap"><pre·class="rust·rust-example-rendered"><code><span·class="kw">use·</span>std::sync::Arc;
56 <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="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>]);
57 <span·class="comment">//·The·two·syntaxes·below·are·equivalent.57 <span·class="comment">//·The·two·syntaxes·below·are·equivalent.
58 </span><span·class="kw">let·</span>a·=·foo.clone();58 </span><span·class="kw">let·</span>a·=·foo.clone();
59 <span·class="kw">let·</span>b·=·Arc::clone(<span·class="kw-2">&amp;</span>foo);59 <span·class="kw">let·</span>b·=·Arc::clone(<span·class="kw-2">&amp;</span>foo);
60 <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"·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">Run</a></div>60 <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"·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">Run</a></div>
61 <h3·id="deref-behavior"><a·class="doc-anchor"·href="#deref-behavior">§</a><code>Deref</code>·behavior</h3>61 <h3·id="deref-behavior"><a·class="doc-anchor"·href="#deref-behavior">§</a><code>Deref</code>·behavior</h3>
62 <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),62 <p><code>Arc&lt;T&gt;</code>·automatically·dereferences·to·<code>T</code>·(via·the·<a·href="https://doc.rust-lang.org/1.78.0/core/ops/deref/trait.Deref.html"·title="trait·core::ops::deref::Deref"><code>Deref</code></a>·trait),
63 so·you·can·call·<code>T</code>’s·methods·on·a·value·of·type·<code>Arc&lt;T&gt;</code>.·To·avoid·name63 so·you·can·call·<code>T</code>’s·methods·on·a·value·of·type·<code>Arc&lt;T&gt;</code>.·To·avoid·name
64 clashes·with·<code>T</code>’s·methods,·the·methods·of·<code>Arc&lt;T&gt;</code>·itself·are·associated64 clashes·with·<code>T</code>’s·methods,·the·methods·of·<code>Arc&lt;T&gt;</code>·itself·are·associated
65 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 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>
  
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">let·</span>my_arc·=·Arc::new(());67 <span·class="kw">let·</span>my_arc·=·Arc::new(());
Offset 92, 15 lines modifiedOffset 92, 15 lines modified
92 <span·class="kw">for·_·in·</span><span·class="number">0</span>..<span·class="number">10·</span>{92 <span·class="kw">for·_·in·</span><span·class="number">0</span>..<span·class="number">10·</span>{
93 ····<span·class="kw">let·</span>five·=·Arc::clone(<span·class="kw-2">&amp;</span>five);93 ····<span·class="kw">let·</span>five·=·Arc::clone(<span·class="kw-2">&amp;</span>five);
  
94 ····thread::spawn(<span·class="kw">move·</span>||·{94 ····thread::spawn(<span·class="kw">move·</span>||·{
95 ········<span·class="macro">println!</span>(<span·class="string">"{five:?}"</span>);95 ········<span·class="macro">println!</span>(<span·class="string">"{five:?}"</span>);
96 ····});96 ····});
97 }</code></pre><a·class="test-arrow"·target="_blank"·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">Run</a></div>97 }</code></pre><a·class="test-arrow"·target="_blank"·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">Run</a></div>
98 <p>Sharing·a·mutable·<a·href="../../core/sync/atomic/struct.AtomicUsize.html"·title="sync::atomic::AtomicUsize"><code>AtomicUsize</code></a>:</p>98 <p>Sharing·a·mutable·<a·href="https://doc.rust-lang.org/1.78.0/core/sync/atomic/struct.AtomicUsize.html"·title="sync::atomic::AtomicUsize"><code>AtomicUsize</code></a>:</p>
  
99 <div·class="example-wrap"><pre·class="rust·rust-example-rendered"><code><span·class="kw">use·</span>std::sync::Arc;99 <div·class="example-wrap"><pre·class="rust·rust-example-rendered"><code><span·class="kw">use·</span>std::sync::Arc;
100 <span·class="kw">use·</span>std::sync::atomic::{AtomicUsize,·Ordering};100 <span·class="kw">use·</span>std::sync::atomic::{AtomicUsize,·Ordering};
101 <span·class="kw">use·</span>std::thread;101 <span·class="kw">use·</span>std::thread;
  
102 <span·class="kw">let·</span>val·=·Arc::new(AtomicUsize::new(<span·class="number">5</span>));102 <span·class="kw">let·</span>val·=·Arc::new(AtomicUsize::new(<span·class="number">5</span>));
  
Offset 116, 15 lines modifiedOffset 116, 15 lines modified
116 counting·in·general.</p>116 counting·in·general.</p>
117 </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#379-683">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"><a·class="src·rightside"·href="../../src/alloc/sync.rs.html#392-401">source</a><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 </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#379-683">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"><a·class="src·rightside"·href="../../src/alloc/sync.rs.html#392-401">source</a><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>
118 <h5·id="examples-1"><a·class="doc-anchor"·href="#examples-1">§</a>Examples</h5>118 <h5·id="examples-1"><a·class="doc-anchor"·href="#examples-1">§</a>Examples</h5>
119 <div·class="example-wrap"><pre·class="rust·rust-example-rendered"><code><span·class="kw">use·</span>std::sync::Arc;119 <div·class="example-wrap"><pre·class="rust·rust-example-rendered"><code><span·class="kw">use·</span>std::sync::Arc;
  
120 <span·class="kw">let·</span>five·=·Arc::new(<span·class="number">5</span>);</code></pre><a·class="test-arrow"·target="_blank"·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">Run</a></div>120 <span·class="kw">let·</span>five·=·Arc::new(<span·class="number">5</span>);</code></pre><a·class="test-arrow"·target="_blank"·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">Run</a></div>
121 </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#457-509">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">where121 </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#457-509">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
122 ····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,122 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.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,
123 to·allow·you·to·construct·a·<code>T</code>·which·holds·a·weak·pointer·to·itself.</p>123 to·allow·you·to·construct·a·<code>T</code>·which·holds·a·weak·pointer·to·itself.</p>
124 <p>Generally,·a·structure·circularly·referencing·itself,·either·directly·or124 <p>Generally,·a·structure·circularly·referencing·itself,·either·directly·or
125 indirectly,·should·not·hold·a·strong·reference·to·itself·to·prevent·a·memory·leak.125 indirectly,·should·not·hold·a·strong·reference·to·itself·to·prevent·a·memory·leak.
126 Using·this·function,·you·get·access·to·the·weak·pointer·during·the126 Using·this·function,·you·get·access·to·the·weak·pointer·during·the
127 initialization·of·<code>T</code>,·before·the·<code>Arc&lt;T&gt;</code>·is·created,·such·that·you·can127 initialization·of·<code>T</code>,·before·the·<code>Arc&lt;T&gt;</code>·is·created,·such·that·you·can
128 clone·and·store·it·inside·the·<code>T</code>.</p>128 clone·and·store·it·inside·the·<code>T</code>.</p>
129 <p><code>new_cyclic</code>·first·allocates·the·managed·allocation·for·the·<code>Arc&lt;T&gt;</code>,129 <p><code>new_cyclic</code>·first·allocates·the·managed·allocation·for·the·<code>Arc&lt;T&gt;</code>,
Offset 156, 52 lines modifiedOffset 156, 52 lines modified
156 ····}156 ····}
  
157 ····<span·class="doccomment">///·Return·a·reference·counted·pointer·to·Self.157 ····<span·class="doccomment">///·Return·a·reference·counted·pointer·to·Self.
158 ····</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><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;·{
159 ········<span·class="self">self</span>.me.upgrade().unwrap()159 ········<span·class="self">self</span>.me.upgrade().unwrap()
160 ····}160 ····}
161 }</code></pre><a·class="test-arrow"·target="_blank"·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++++++++///+Construct+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++++++++///+Return+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">Run</a></div>161 }</code></pre><a·class="test-arrow"·target="_blank"·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++++++++///+Construct+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++++++++///+Return+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">Run</a></div>
162 </div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.new_uninit"·class="method"><a·class="src·rightside"·href="../../src/alloc/sync.rs.html#534-542">source</a><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><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>new_uninit</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/63291">#63291</a>)</span></div></span></summary><div·class="docblock"><p>Constructs·a·new·<code>Arc</code>·with·uninitialized·contents.</p>162 </div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.new_uninit"·class="method"><a·class="src·rightside"·href="../../src/alloc/sync.rs.html#534-542">source</a><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.78.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_uninit</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/63291">#63291</a>)</span></div></span></summary><div·class="docblock"><p>Constructs·a·new·<code>Arc</code>·with·uninitialized·contents.</p>
163 <h5·id="examples-2"><a·class="doc-anchor"·href="#examples-2">§</a>Examples</h5>163 <h5·id="examples-2"><a·class="doc-anchor"·href="#examples-2">§</a>Examples</h5>
164 <div·class="example-wrap"><pre·class="rust·rust-example-rendered"><code><span·class="attr">#![feature(new_uninit)]164 <div·class="example-wrap"><pre·class="rust·rust-example-rendered"><code><span·class="attr">#![feature(new_uninit)]
165 #![feature(get_mut_unchecked)]165 #![feature(get_mut_unchecked)]
  
166 </span><span·class="kw">use·</span>std::sync::Arc;166 </span><span·class="kw">use·</span>std::sync::Arc;
  
167 <span·class="kw">let·</span><span·class="kw-2">mut·</span>five·=·Arc::&lt;u32&gt;::new_uninit();167 <span·class="kw">let·</span><span·class="kw-2">mut·</span>five·=·Arc::&lt;u32&gt;::new_uninit();
  
168 <span·class="comment">//·Deferred·initialization:168 <span·class="comment">//·Deferred·initialization:
169 </span>Arc::get_mut(<span·class="kw-2">&amp;mut·</span>five).unwrap().write(<span·class="number">5</span>);169 </span>Arc::get_mut(<span·class="kw-2">&amp;mut·</span>five).unwrap().write(<span·class="number">5</span>);
  
170 <span·class="kw">let·</span>five·=·<span·class="kw">unsafe·</span>{·five.assume_init()·};170 <span·class="kw">let·</span>five·=·<span·class="kw">unsafe·</span>{·five.assume_init()·};
  
171 <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"·href="https://play.rust-lang.org/?code=%23!%5Ballow(unused)%5D%0A%23!%5Bfeature(new_uninit)%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">Run</a></div>171 <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"·href="https://play.rust-lang.org/?code=%23!%5Ballow(unused)%5D%0A%23!%5Bfeature(new_uninit)%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">Run</a></div>
172 </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#568-576">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_uninit</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/63291">#63291</a>)</span></div></span></summary><div·class="docblock"><p>Constructs·a·new·<code>Arc</code>·with·uninitialized·contents,·with·the·memory172 </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#568-576">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.78.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_uninit</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/63291">#63291</a>)</span></div></span></summary><div·class="docblock"><p>Constructs·a·new·<code>Arc</code>·with·uninitialized·contents,·with·the·memory
173 being·filled·with·<code>0</code>·bytes.</p>173 being·filled·with·<code>0</code>·bytes.</p>
174 <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·usage174 <p>See·<a·href="https://doc.rust-lang.org/1.78.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
175 of·this·method.</p>175 of·this·method.</p>
176 <h5·id="examples-3"><a·class="doc-anchor"·href="#examples-3">§</a>Examples</h5>176 <h5·id="examples-3"><a·class="doc-anchor"·href="#examples-3">§</a>Examples</h5>
177 <div·class="example-wrap"><pre·class="rust·rust-example-rendered"><code><span·class="attr">#![feature(new_uninit)]177 <div·class="example-wrap"><pre·class="rust·rust-example-rendered"><code><span·class="attr">#![feature(new_uninit)]
Max diff block lines reached; 332127/368017 bytes (90.25%) of diff not shown.
99.2 KB
./usr/share/doc/rust-web-doc/html/alloc/sync/struct.Weak.html
    
Offset 1, 42 lines modifiedOffset 1, 42 lines modified
1 <!DOCTYPE·html><html·lang="en"><head><meta·charset="utf-8"><meta·name="viewport"·content="width=device-width,·initial-scale=1.0"><meta·name="generator"·content="rustdoc"><meta·name="description"·content="`Weak`·is·a·version·of·`Arc`·that·holds·a·non-owning·reference·to·the·managed·allocation.·The·allocation·is·accessed·by·calling·`upgrade`·on·the·`Weak`·pointer,·which·returns·an·Option&lt;Arc&lt;T&gt;&gt;."><title>Weak·in·alloc::sync·-·Rust</title><script>·if·(window.location.protocol·!==·"file:")·document.write(`<link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/SourceSerif4-Regular-46f98efaafac5295.ttf.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/FiraSans-Regular-018c141bf0843ffd.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/FiraSans-Medium-8f9a781e4970d388.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/SourceCodePro-Regular-562dcc5011b6de7d.ttf.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/SourceCodePro-Semibold-d899c5a5c4aeb14a.ttf.woff2">`)</script><link·rel="stylesheet"·href="../../static.files/normalize-76eba96aa4d2e634.css"><link·rel="stylesheet"·href="../../static.files/rustdoc-35f9e32502181f1e.css"><meta·name="rustdoc-vars"·data-root-path="../../"·data-static-root-path="../../static.files/"·data-current-crate="alloc"·data-themes=""·data-resource-suffix="1.78.0"·data-rustdoc-version="1.78.0"·data-channel="1.78.0"·data-search-js="search-42d8da7a6b9792c2.js"·data-settings-js="settings-4313503d2e1961c2.js"·><script·src="../../static.files/storage-4c98445ec4002617.js"></script><script·defer·src="sidebar-items1.78.0.js"></script><script·defer·src="../../static.files/main-12cf3b4f4f9dc36d.js"></script><noscript><link·rel="stylesheet"·href="../../static.files/noscript-04d5337699b92874.css"></noscript><link·rel="alternate·icon"·type="image/png"·href="../../static.files/favicon-16x16-8b506e7a72182f1c.png"><link·rel="alternate·icon"·type="image/png"·href="../../static.files/favicon-32x32-422f7d1d52889060.png"><link·rel="icon"·type="image/svg+xml"·href="../../static.files/favicon-2c020d218678b618.svg"></head><body·class="rustdoc·struct"><!--[if·lte·IE·11]><div·class="warning">This·old·browser·is·unsupported·and·will·most·likely·display·funky·things.</div><![endif]--><nav·class="mobile-topbar"><button·class="sidebar-menu-toggle"·title="show·sidebar"></button><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-151179464ae7ed46.svg"·alt=""></a></nav><nav·class="sidebar"><div·class="sidebar-crate"><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-151179464ae7ed46.svg"·alt="logo"></a><h2><a·href="../../alloc/index.html">alloc</a><span·class="version">1.78.0</span></h2></div><h2·class="location"><a·href="#">Weak</a></h2><div·class="sidebar-elems"><section><h3><a·href="#implementations">Methods</a></h3><ul·class="block·method"><li><a·href="#method.as_ptr">as_ptr</a></li><li><a·href="#method.from_raw">from_raw</a></li><li><a·href="#method.from_raw_in">from_raw_in</a></li><li><a·href="#method.into_raw">into_raw</a></li><li><a·href="#method.new">new</a></li><li><a·href="#method.new_in">new_in</a></li><li><a·href="#method.ptr_eq">ptr_eq</a></li><li><a·href="#method.strong_count">strong_count</a></li><li><a·href="#method.upgrade">upgrade</a></li><li><a·href="#method.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">Clone</a></li><li><a·href="#impl-CoerceUnsized%3CWeak%3CU,+A%3E%3E-for-Weak%3CT,+A%3E">CoerceUnsized&lt;Weak&lt;U,·A&gt;&gt;</a></li><li><a·href="#impl-Debug-for-Weak%3CT%3E">Debug</a></li><li><a·href="#impl-Default-for-Weak%3CT%3E">Default</a></li><li><a·href="#impl-DispatchFromDyn%3CWeak%3CU%3E%3E-for-Weak%3CT%3E">DispatchFromDyn&lt;Weak&lt;U&gt;&gt;</a></li><li><a·href="#impl-Drop-for-Weak%3CT,+A%3E">Drop</a></li><li><a·href="#impl-Send-for-Weak%3CT,+A%3E">Send</a></li><li><a·href="#impl-Sync-for-Weak%3CT,+A%3E">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">Freeze</a></li><li><a·href="#impl-RefUnwindSafe-for-Weak%3CT,+A%3E">RefUnwindSafe</a></li><li><a·href="#impl-Unpin-for-Weak%3CT,+A%3E">Unpin</a></li><li><a·href="#impl-UnwindSafe-for-Weak%3CT,+A%3E">UnwindSafe</a></li></ul><h3><a·href="#blanket-implementations">Blanket·Implementations</a></h3><ul·class="block·blanket-implementation"><li><a·href="#impl-Any-for-T">Any</a></li><li><a·href="#impl-Borrow%3CT%3E-for-T">Borrow&lt;T&gt;</a></li><li><a·href="#impl-BorrowMut%3CT%3E-for-T">BorrowMut&lt;T&gt;</a></li><li><a·href="#impl-From%3CT%3E-for-T">From&lt;T&gt;</a></li><li><a·href="#impl-Into%3CU%3E-for-T">Into&lt;U&gt;</a></li><li><a·href="#impl-ToOwned-for-T">ToOwned</a></li><li><a·href="#impl-TryFrom%3CU%3E-for-T">TryFrom&lt;U&gt;</a></li><li><a·href="#impl-TryInto%3CU%3E-for-T">TryInto&lt;U&gt;</a></li></ul></section><h2><a·href="index.html">In·alloc::sync</a></h2></div></nav><div·class="sidebar-resizer"></div>1 <!DOCTYPE·html><html·lang="en"><head><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&lt;Arc&lt;T&gt;&gt;."><title>Weak·in·alloc::sync·-·Rust</title><script>·if·(window.location.protocol·!==·"file:")·document.write(`<link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/SourceSerif4-Regular-46f98efaafac5295.ttf.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/FiraSans-Regular-018c141bf0843ffd.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/FiraSans-Medium-8f9a781e4970d388.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/SourceCodePro-Regular-562dcc5011b6de7d.ttf.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/SourceCodePro-Semibold-d899c5a5c4aeb14a.ttf.woff2">`)</script><link·rel="stylesheet"·href="../../static.files/normalize-76eba96aa4d2e634.css"><link·rel="stylesheet"·href="../../static.files/rustdoc-35f9e32502181f1e.css"><meta·name="rustdoc-vars"·data-root-path="../../"·data-static-root-path="../../static.files/"·data-current-crate="alloc"·data-themes=""·data-resource-suffix="1.78.0"·data-rustdoc-version="1.78.0"·data-channel="1.78.0"·data-search-js="search-42d8da7a6b9792c2.js"·data-settings-js="settings-4313503d2e1961c2.js"·><script·src="../../static.files/storage-4c98445ec4002617.js"></script><script·defer·src="sidebar-items1.78.0.js"></script><script·defer·src="../../static.files/main-12cf3b4f4f9dc36d.js"></script><noscript><link·rel="stylesheet"·href="../../static.files/noscript-04d5337699b92874.css"></noscript><link·rel="alternate·icon"·type="image/png"·href="../../static.files/favicon-16x16-8b506e7a72182f1c.png"><link·rel="alternate·icon"·type="image/png"·href="../../static.files/favicon-32x32-422f7d1d52889060.png"><link·rel="icon"·type="image/svg+xml"·href="../../static.files/favicon-2c020d218678b618.svg"></head><body·class="rustdoc·struct"><!--[if·lte·IE·11]><div·class="warning">This·old·browser·is·unsupported·and·will·most·likely·display·funky·things.</div><![endif]--><nav·class="mobile-topbar"><button·class="sidebar-menu-toggle"·title="show·sidebar"></button><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-151179464ae7ed46.svg"·alt=""></a></nav><nav·class="sidebar"><div·class="sidebar-crate"><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-151179464ae7ed46.svg"·alt="logo"></a><h2><a·href="../../alloc/index.html">alloc</a><span·class="version">1.78.0</span></h2></div><h2·class="location"><a·href="#">Weak</a></h2><div·class="sidebar-elems"><section><h3><a·href="#implementations">Methods</a></h3><ul·class="block·method"><li><a·href="#method.as_ptr">as_ptr</a></li><li><a·href="#method.from_raw">from_raw</a></li><li><a·href="#method.from_raw_in">from_raw_in</a></li><li><a·href="#method.into_raw">into_raw</a></li><li><a·href="#method.new">new</a></li><li><a·href="#method.new_in">new_in</a></li><li><a·href="#method.ptr_eq">ptr_eq</a></li><li><a·href="#method.strong_count">strong_count</a></li><li><a·href="#method.upgrade">upgrade</a></li><li><a·href="#method.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">Clone</a></li><li><a·href="#impl-CoerceUnsized%3CWeak%3CU,+A%3E%3E-for-Weak%3CT,+A%3E">CoerceUnsized&lt;Weak&lt;U,·A&gt;&gt;</a></li><li><a·href="#impl-Debug-for-Weak%3CT%3E">Debug</a></li><li><a·href="#impl-Default-for-Weak%3CT%3E">Default</a></li><li><a·href="#impl-DispatchFromDyn%3CWeak%3CU%3E%3E-for-Weak%3CT%3E">DispatchFromDyn&lt;Weak&lt;U&gt;&gt;</a></li><li><a·href="#impl-Drop-for-Weak%3CT,+A%3E">Drop</a></li><li><a·href="#impl-Send-for-Weak%3CT,+A%3E">Send</a></li><li><a·href="#impl-Sync-for-Weak%3CT,+A%3E">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">Freeze</a></li><li><a·href="#impl-RefUnwindSafe-for-Weak%3CT,+A%3E">RefUnwindSafe</a></li><li><a·href="#impl-Unpin-for-Weak%3CT,+A%3E">Unpin</a></li><li><a·href="#impl-UnwindSafe-for-Weak%3CT,+A%3E">UnwindSafe</a></li></ul><h3><a·href="#blanket-implementations">Blanket·Implementations</a></h3><ul·class="block·blanket-implementation"><li><a·href="#impl-Any-for-T">Any</a></li><li><a·href="#impl-Borrow%3CT%3E-for-T">Borrow&lt;T&gt;</a></li><li><a·href="#impl-BorrowMut%3CT%3E-for-T">BorrowMut&lt;T&gt;</a></li><li><a·href="#impl-From%3CT%3E-for-T">From&lt;T&gt;</a></li><li><a·href="#impl-Into%3CU%3E-for-T">Into&lt;U&gt;</a></li><li><a·href="#impl-ToOwned-for-T">ToOwned</a></li><li><a·href="#impl-TryFrom%3CU%3E-for-T">TryFrom&lt;U&gt;</a></li><li><a·href="#impl-TryInto%3CU%3E-for-T">TryInto&lt;U&gt;</a></li></ul></section><h2><a·href="index.html">In·alloc::sync</a></h2></div></nav><div·class="sidebar-resizer"></div>
2 ····<main><div·class="width-limiter"><nav·class="sub"><form·class="search-form"><span></span><div·id="sidebar-button"·tabindex="-1"><a·href="../../alloc/all.html"·title="show·sidebar"></a></div><input·class="search-input"·name="search"·aria-label="Run·search·in·the·documentation"·autocomplete="off"·spellcheck="false"·placeholder="Click·or·press·‘S’·to·search,·‘?’·for·more·options…"·type="search"><div·id="help-button"·tabindex="-1"><a·href="../../help.html"·title="help">?</a></div><div·id="settings-menu"·tabindex="-1"><a·href="../../settings.html"·title="settings"><img·width="22"·height="22"·alt="Change·settings"·src="../../static.files/wheel-7b819b6101059cd0.svg"></a></div></form></nav><section·id="main-content"·class="content"><div·class="main-heading"><h1>Struct·<a·href="../index.html">alloc</a>::<wbr><a·href="index.html">sync</a>::<wbr><a·class="struct"·href="#">Weak</a><button·id="copy-path"·title="Copy·item·path·to·clipboard"><img·src="../../static.files/clipboard-7571035ce49a181d.svg"·width="19"·height="18"·alt="Copy·item·path"></button></h1><span·class="out-of-band"><span·class="since"·title="Stable·since·Rust·version·1.4.0">1.4.0</span>···<a·class="src"·href="../../src/alloc/sync.rs.html#321-333">source</a>···<button·id="toggle-all-docs"·title="collapse·all·docs">[<span>&#x2212;</span>]</button></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·the2 ····<main><div·class="width-limiter"><nav·class="sub"><form·class="search-form"><span></span><div·id="sidebar-button"·tabindex="-1"><a·href="../../alloc/all.html"·title="show·sidebar"></a></div><input·class="search-input"·name="search"·aria-label="Run·search·in·the·documentation"·autocomplete="off"·spellcheck="false"·placeholder="Click·or·press·‘S’·to·search,·‘?’·for·more·options…"·type="search"><div·id="help-button"·tabindex="-1"><a·href="../../help.html"·title="help">?</a></div><div·id="settings-menu"·tabindex="-1"><a·href="../../settings.html"·title="settings"><img·width="22"·height="22"·alt="Change·settings"·src="../../static.files/wheel-7b819b6101059cd0.svg"></a></div></form></nav><section·id="main-content"·class="content"><div·class="main-heading"><h1>Struct·<a·href="../index.html">alloc</a>::<wbr><a·href="index.html">sync</a>::<wbr><a·class="struct"·href="#">Weak</a><button·id="copy-path"·title="Copy·item·path·to·clipboard"><img·src="../../static.files/clipboard-7571035ce49a181d.svg"·width="19"·height="18"·alt="Copy·item·path"></button></h1><span·class="out-of-band"><span·class="since"·title="Stable·since·Rust·version·1.4.0">1.4.0</span>···<a·class="src"·href="../../src/alloc/sync.rs.html#321-333">source</a>···<button·id="toggle-all-docs"·title="collapse·all·docs">[<span>&#x2212;</span>]</button></span></div><pre·class="rust·item-decl"><code>pub·struct·Weak&lt;T:·?<a·class="trait"·href="https://doc.rust-lang.org/1.78.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
3 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 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>
4 pointer,·which·returns·an·<code><a·href="../../core/option/enum.Option.html"·title="enum·core::option::Option">Option</a>&lt;<a·href="struct.Arc.html"·title="struct·alloc::sync::Arc">Arc</a>&lt;T&gt;&gt;</code>.</p>4 pointer,·which·returns·an·<code><a·href="https://doc.rust-lang.org/1.78.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>
5 <p>Since·a·<code>Weak</code>·reference·does·not·count·towards·ownership,·it·will·not5 <p>Since·a·<code>Weak</code>·reference·does·not·count·towards·ownership,·it·will·not
6 prevent·the·value·stored·in·the·allocation·from·being·dropped,·and·<code>Weak</code>·itself·makes·no6 prevent·the·value·stored·in·the·allocation·from·being·dropped,·and·<code>Weak</code>·itself·makes·no
7 guarantees·about·the·value·still·being·present.·Thus·it·may·return·<a·href="../../core/option/enum.Option.html#variant.None"·title="variant·core::option::Option::None"><code>None</code></a>7 guarantees·about·the·value·still·being·present.·Thus·it·may·return·<a·href="https://doc.rust-lang.org/1.78.0/core/option/enum.Option.html#variant.None"·title="variant·core::option::Option::None"><code>None</code></a>
8 when·<a·href="struct.Weak.html#method.upgrade"·title="method·alloc::sync::Weak::upgrade"><code>upgrade</code></a>d.·Note·however·that·a·<code>Weak</code>·reference·<em>does</em>·prevent·the·allocation8 when·<a·href="struct.Weak.html#method.upgrade"·title="method·alloc::sync::Weak::upgrade"><code>upgrade</code></a>d.·Note·however·that·a·<code>Weak</code>·reference·<em>does</em>·prevent·the·allocation
9 itself·(the·backing·store)·from·being·deallocated.</p>9 itself·(the·backing·store)·from·being·deallocated.</p>
10 <p>A·<code>Weak</code>·pointer·is·useful·for·keeping·a·temporary·reference·to·the·allocation10 <p>A·<code>Weak</code>·pointer·is·useful·for·keeping·a·temporary·reference·to·the·allocation
11 managed·by·<a·href="struct.Arc.html"·title="struct·alloc::sync::Arc"><code>Arc</code></a>·without·preventing·its·inner·value·from·being·dropped.·It·is·also·used·to11 managed·by·<a·href="struct.Arc.html"·title="struct·alloc::sync::Arc"><code>Arc</code></a>·without·preventing·its·inner·value·from·being·dropped.·It·is·also·used·to
12 prevent·circular·references·between·<a·href="struct.Arc.html"·title="struct·alloc::sync::Arc"><code>Arc</code></a>·pointers,·since·mutual·owning·references12 prevent·circular·references·between·<a·href="struct.Arc.html"·title="struct·alloc::sync::Arc"><code>Arc</code></a>·pointers,·since·mutual·owning·references
13 would·never·allow·either·<a·href="struct.Arc.html"·title="struct·alloc::sync::Arc"><code>Arc</code></a>·to·be·dropped.·For·example,·a·tree·could13 would·never·allow·either·<a·href="struct.Arc.html"·title="struct·alloc::sync::Arc"><code>Arc</code></a>·to·be·dropped.·For·example,·a·tree·could
14 have·strong·<a·href="struct.Arc.html"·title="struct·alloc::sync::Arc"><code>Arc</code></a>·pointers·from·parent·nodes·to·children,·and·<code>Weak</code>14 have·strong·<a·href="struct.Arc.html"·title="struct·alloc::sync::Arc"><code>Arc</code></a>·pointers·from·parent·nodes·to·children,·and·<code>Weak</code>
15 pointers·from·children·back·to·their·parents.</p>15 pointers·from·children·back·to·their·parents.</p>
16 <p>The·typical·way·to·obtain·a·<code>Weak</code>·pointer·is·to·call·<a·href="struct.Arc.html#method.downgrade"·title="associated·function·alloc::sync::Arc::downgrade"><code>Arc::downgrade</code></a>.</p>16 <p>The·typical·way·to·obtain·a·<code>Weak</code>·pointer·is·to·call·<a·href="struct.Arc.html#method.downgrade"·title="associated·function·alloc::sync::Arc::downgrade"><code>Arc::downgrade</code></a>.</p>
17 </div></details><h2·id="implementations"·class="section-header">Implementations<a·href="#implementations"·class="anchor">§</a></h2><div·id="implementations-list"><details·class="toggle·implementors-toggle"·open><summary><section·id="impl-Weak%3CT%3E"·class="impl"><a·class="src·rightside"·href="../../src/alloc/sync.rs.html#2538-2564">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#2556-2563">source</a></span><h4·class="code-header">pub·const·fn·<a·href="#method.new"·class="fn">new</a>()·-&gt;·<a·class="struct"·href="struct.Weak.html"·title="struct·alloc::sync::Weak">Weak</a>&lt;T&gt;</h4></section></summary><div·class="docblock"><p>Constructs·a·new·<code>Weak&lt;T&gt;</code>,·without·allocating·any·memory.17 </div></details><h2·id="implementations"·class="section-header">Implementations<a·href="#implementations"·class="anchor">§</a></h2><div·id="implementations-list"><details·class="toggle·implementors-toggle"·open><summary><section·id="impl-Weak%3CT%3E"·class="impl"><a·class="src·rightside"·href="../../src/alloc/sync.rs.html#2538-2564">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#2556-2563">source</a></span><h4·class="code-header">pub·const·fn·<a·href="#method.new"·class="fn">new</a>()·-&gt;·<a·class="struct"·href="struct.Weak.html"·title="struct·alloc::sync::Weak">Weak</a>&lt;T&gt;</h4></section></summary><div·class="docblock"><p>Constructs·a·new·<code>Weak&lt;T&gt;</code>,·without·allocating·any·memory.
18 Calling·<a·href="struct.Weak.html#method.upgrade"·title="method·alloc::sync::Weak::upgrade"><code>upgrade</code></a>·on·the·return·value·always·gives·<a·href="../../core/option/enum.Option.html#variant.None"·title="variant·core::option::Option::None"><code>None</code></a>.</p>18 Calling·<a·href="struct.Weak.html#method.upgrade"·title="method·alloc::sync::Weak::upgrade"><code>upgrade</code></a>·on·the·return·value·always·gives·<a·href="https://doc.rust-lang.org/1.78.0/core/option/enum.Option.html#variant.None"·title="variant·core::option::Option::None"><code>None</code></a>.</p>
19 <h5·id="examples"><a·class="doc-anchor"·href="#examples">§</a>Examples</h5>19 <h5·id="examples"><a·class="doc-anchor"·href="#examples">§</a>Examples</h5>
20 <div·class="example-wrap"><pre·class="rust·rust-example-rendered"><code><span·class="kw">use·</span>std::sync::Weak;20 <div·class="example-wrap"><pre·class="rust·rust-example-rendered"><code><span·class="kw">use·</span>std::sync::Weak;
  
21 <span·class="kw">let·</span>empty:·Weak&lt;i64&gt;·=·Weak::new();21 <span·class="kw">let·</span>empty:·Weak&lt;i64&gt;·=·Weak::new();
22 <span·class="macro">assert!</span>(empty.upgrade().is_none());</code></pre><a·class="test-arrow"·target="_blank"·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">Run</a></div>22 <span·class="macro">assert!</span>(empty.upgrade().is_none());</code></pre><a·class="test-arrow"·target="_blank"·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">Run</a></div>
23 </div></details></div></details><details·class="toggle·implementors-toggle"·open><summary><section·id="impl-Weak%3CT,+A%3E"·class="impl"><a·class="src·rightside"·href="../../src/alloc/sync.rs.html#2566-2594">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#2586-2593">source</a><h4·class="code-header">pub·fn·<a·href="#method.new_in"·class="fn">new_in</a>(alloc:·A)·-&gt;·<a·class="struct"·href="struct.Weak.html"·title="struct·alloc::sync::Weak">Weak</a>&lt;T,·A&gt;</h4></section><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>allocator_api</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/32838">#32838</a>)</span></div></span></summary><div·class="docblock"><p>Constructs·a·new·<code>Weak&lt;T,·A&gt;</code>,·without·allocating·any·memory,·technically·in·the·provided23 </div></details></div></details><details·class="toggle·implementors-toggle"·open><summary><section·id="impl-Weak%3CT,+A%3E"·class="impl"><a·class="src·rightside"·href="../../src/alloc/sync.rs.html#2566-2594">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#2586-2593">source</a><h4·class="code-header">pub·fn·<a·href="#method.new_in"·class="fn">new_in</a>(alloc:·A)·-&gt;·<a·class="struct"·href="struct.Weak.html"·title="struct·alloc::sync::Weak">Weak</a>&lt;T,·A&gt;</h4></section><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>allocator_api</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/32838">#32838</a>)</span></div></span></summary><div·class="docblock"><p>Constructs·a·new·<code>Weak&lt;T,·A&gt;</code>,·without·allocating·any·memory,·technically·in·the·provided
24 allocator.24 allocator.
25 Calling·<a·href="struct.Weak.html#method.upgrade"·title="method·alloc::sync::Weak::upgrade"><code>upgrade</code></a>·on·the·return·value·always·gives·<a·href="../../core/option/enum.Option.html#variant.None"·title="variant·core::option::Option::None"><code>None</code></a>.</p>25 Calling·<a·href="struct.Weak.html#method.upgrade"·title="method·alloc::sync::Weak::upgrade"><code>upgrade</code></a>·on·the·return·value·always·gives·<a·href="https://doc.rust-lang.org/1.78.0/core/option/enum.Option.html#variant.None"·title="variant·core::option::Option::None"><code>None</code></a>.</p>
26 <h5·id="examples-1"><a·class="doc-anchor"·href="#examples-1">§</a>Examples</h5>26 <h5·id="examples-1"><a·class="doc-anchor"·href="#examples-1">§</a>Examples</h5>
27 <div·class="example-wrap"><pre·class="rust·rust-example-rendered"><code><span·class="attr">#![feature(allocator_api)]27 <div·class="example-wrap"><pre·class="rust·rust-example-rendered"><code><span·class="attr">#![feature(allocator_api)]
  
28 </span><span·class="kw">use·</span>std::sync::Weak;28 </span><span·class="kw">use·</span>std::sync::Weak;
29 <span·class="kw">use·</span>std::alloc::System;29 <span·class="kw">use·</span>std::alloc::System;
  
30 <span·class="kw">let·</span>empty:·Weak&lt;i64,·<span·class="kw">_</span>&gt;·=·Weak::new_in(System);30 <span·class="kw">let·</span>empty:·Weak&lt;i64,·<span·class="kw">_</span>&gt;·=·Weak::new_in(System);
31 <span·class="macro">assert!</span>(empty.upgrade().is_none());</code></pre><a·class="test-arrow"·target="_blank"·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">Run</a></div>31 <span·class="macro">assert!</span>(empty.upgrade().is_none());</code></pre><a·class="test-arrow"·target="_blank"·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">Run</a></div>
32 </div></details></div></details><details·class="toggle·implementors-toggle"·open><summary><section·id="impl-Weak%3CT%3E-1"·class="impl"><a·class="src·rightside"·href="../../src/alloc/sync.rs.html#2603-2650">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:·5a74bc2bde7865de4cec8a6cd1d929f58579afcefebb32af7a5b0317d0e5afce·...·]/core/primitive.pointer.html">*const·T</a>)·-&gt;·Self</h4></section></summary><div·class="docblock"><p>Converts·a·raw·pointer·previously·created·by·<a·href="struct.Weak.html#method.into_raw"·title="method·alloc::sync::Weak::into_raw"><code>into_raw</code></a>·back·into·<code>Weak&lt;T&gt;</code>.</p>32 </div></details></div></details><details·class="toggle·implementors-toggle"·open><summary><section·id="impl-Weak%3CT%3E-1"·class="impl"><a·class="src·rightside"·href="../../src/alloc/sync.rs.html#2603-2650">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.78.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:·63bd5e8d57764ee84ed96bc0440834bf20cfcf629089a0e42806ed698815ce25·...·]/core/primitive.pointer.html">*const·T</a>)·-&gt;·Self</h4></section></summary><div·class="docblock"><p>Converts·a·raw·pointer·previously·created·by·<a·href="struct.Weak.html#method.into_raw"·title="method·alloc::sync::Weak::into_raw"><code>into_raw</code></a>·back·into·<code>Weak&lt;T&gt;</code>.</p>
33 <p>This·can·be·used·to·safely·get·a·strong·reference·(by·calling·<a·href="struct.Weak.html#method.upgrade"·title="method·alloc::sync::Weak::upgrade"><code>upgrade</code></a>33 <p>This·can·be·used·to·safely·get·a·strong·reference·(by·calling·<a·href="struct.Weak.html#method.upgrade"·title="method·alloc::sync::Weak::upgrade"><code>upgrade</code></a>
34 later)·or·to·deallocate·the·weak·count·by·dropping·the·<code>Weak&lt;T&gt;</code>.</p>34 later)·or·to·deallocate·the·weak·count·by·dropping·the·<code>Weak&lt;T&gt;</code>.</p>
35 <p>It·takes·ownership·of·one·weak·reference·(with·the·exception·of·pointers·created·by·<a·href="struct.Weak.html#method.new"·title="associated·function·alloc::sync::Weak::new"><code>new</code></a>,35 <p>It·takes·ownership·of·one·weak·reference·(with·the·exception·of·pointers·created·by·<a·href="struct.Weak.html#method.new"·title="associated·function·alloc::sync::Weak::new"><code>new</code></a>,
36 as·these·don’t·own·anything;·the·method·still·works·on·them).</p>36 as·these·don’t·own·anything;·the·method·still·works·on·them).</p>
37 <h5·id="safety"><a·class="doc-anchor"·href="#safety">§</a>Safety</h5>37 <h5·id="safety"><a·class="doc-anchor"·href="#safety">§</a>Safety</h5>
38 <p>The·pointer·must·have·originated·from·the·<a·href="struct.Weak.html#method.into_raw"·title="method·alloc::sync::Weak::into_raw"><code>into_raw</code></a>·and·must·still·own·its·potential38 <p>The·pointer·must·have·originated·from·the·<a·href="struct.Weak.html#method.into_raw"·title="method·alloc::sync::Weak::into_raw"><code>into_raw</code></a>·and·must·still·own·its·potential
39 weak·reference.</p>39 weak·reference.</p>
Offset 57, 17 lines modifiedOffset 57, 17 lines modified
57 <span·class="macro">assert_eq!</span>(<span·class="string">"hello"</span>,·<span·class="kw-2">&amp;*</span><span·class="kw">unsafe·</span>{·Weak::from_raw(raw_1)·}.upgrade().unwrap());57 <span·class="macro">assert_eq!</span>(<span·class="string">"hello"</span>,·<span·class="kw-2">&amp;*</span><span·class="kw">unsafe·</span>{·Weak::from_raw(raw_1)·}.upgrade().unwrap());
58 <span·class="macro">assert_eq!</span>(<span·class="number">1</span>,·Arc::weak_count(<span·class="kw-2">&amp;</span>strong));58 <span·class="macro">assert_eq!</span>(<span·class="number">1</span>,·Arc::weak_count(<span·class="kw-2">&amp;</span>strong));
  
59 drop(strong);59 drop(strong);
  
60 <span·class="comment">//·Decrement·the·last·weak·count.60 <span·class="comment">//·Decrement·the·last·weak·count.
61 </span><span·class="macro">assert!</span>(<span·class="kw">unsafe·</span>{·Weak::from_raw(raw_2)·}.upgrade().is_none());</code></pre><a·class="test-arrow"·target="_blank"·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">Run</a></div>61 </span><span·class="macro">assert!</span>(<span·class="kw">unsafe·</span>{·Weak::from_raw(raw_2)·}.upgrade().is_none());</code></pre><a·class="test-arrow"·target="_blank"·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">Run</a></div>
62 </div></details></div></details><details·class="toggle·implementors-toggle"·open><summary><section·id="impl-Weak%3CT,+A%3E-1"·class="impl"><a·class="src·rightside"·href="../../src/alloc/sync.rs.html#2652-2792">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:·483,·SHA:·4eb6446bb3843f6524208990d1db1d6dfd832034641607eb087daa61c091d664·...·]/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></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#2652-2792">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.78.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:·537,·SHA:·e57c6faffe6e6e56922a634785a25edac189a1477d3d70112e2738d128855dd6·...·]/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.78.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"·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">Run</a></div>80 //·assert_eq!("hello",·unsafe·{·&amp;*weak.as_ptr()·});</span></code></pre><a·class="test-arrow"·target="_blank"·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">Run</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#2724-2728">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#2724-2728">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.78.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"·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">Run</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"·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">Run</a></div>
98 </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#2774-2791">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·provided98 </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#2774-2791">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.78.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
99 allocator.</p>99 allocator.</p>
100 <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>100 <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>
101 later)·or·to·deallocate·the·weak·count·by·dropping·the·<code>Weak&lt;T&gt;</code>.</p>101 later)·or·to·deallocate·the·weak·count·by·dropping·the·<code>Weak&lt;T&gt;</code>.</p>
102 <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>,102 <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>,
103 as·these·don’t·own·anything;·the·method·still·works·on·them).</p>103 as·these·don’t·own·anything;·the·method·still·works·on·them).</p>
104 <h5·id="safety-1"><a·class="doc-anchor"·href="#safety-1">§</a>Safety</h5>104 <h5·id="safety-1"><a·class="doc-anchor"·href="#safety-1">§</a>Safety</h5>
105 <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·potential105 <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 123, 18 lines modifiedOffset 123, 18 lines modified
123 <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());123 <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());
124 <span·class="macro">assert_eq!</span>(<span·class="number">1</span>,·Arc::weak_count(<span·class="kw-2">&amp;</span>strong));124 <span·class="macro">assert_eq!</span>(<span·class="number">1</span>,·Arc::weak_count(<span·class="kw-2">&amp;</span>strong));
  
125 drop(strong);125 drop(strong);
  
126 <span·class="comment">//·Decrement·the·last·weak·count.126 <span·class="comment">//·Decrement·the·last·weak·count.
127 </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"·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">Run</a></div>127 </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"·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">Run</a></div>
128 </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#2794-2955">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:·383,·SHA:·cb342c657d79fe2064877929dccd80029aef9944732febac752e02d1c4e19a52·...·]/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">where128 </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#2794-2955">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.78.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:·437,·SHA:·044cb8f1737ef2437272f657c66e485bb84cb187a9dd181ca4e3963927b8758e·...·]/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
129 ····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>,·delaying129 ····A:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.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
130 dropping·of·the·inner·value·if·successful.</p>130 dropping·of·the·inner·value·if·successful.</p>
131 <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>131 <p>Returns·<a·href="https://doc.rust-lang.org/1.78.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>
132 <h5·id="examples-6"><a·class="doc-anchor"·href="#examples-6">§</a>Examples</h5>132 <h5·id="examples-6"><a·class="doc-anchor"·href="#examples-6">§</a>Examples</h5>
133 <div·class="example-wrap"><pre·class="rust·rust-example-rendered"><code><span·class="kw">use·</span>std::sync::Arc;133 <div·class="example-wrap"><pre·class="rust·rust-example-rendered"><code><span·class="kw">use·</span>std::sync::Arc;
  
134 <span·class="kw">let·</span>five·=·Arc::new(<span·class="number">5</span>);134 <span·class="kw">let·</span>five·=·Arc::new(<span·class="number">5</span>);
  
135 <span·class="kw">let·</span>weak_five·=·Arc::downgrade(<span·class="kw-2">&amp;</span>five);135 <span·class="kw">let·</span>weak_five·=·Arc::downgrade(<span·class="kw-2">&amp;</span>five);
  
Offset 142, 25 lines modifiedOffset 142, 25 lines modified
142 <span·class="macro">assert!</span>(strong_five.is_some());142 <span·class="macro">assert!</span>(strong_five.is_some());
  
143 <span·class="comment">//·Destroy·all·strong·pointers.143 <span·class="comment">//·Destroy·all·strong·pointers.
144 </span>drop(strong_five);144 </span>drop(strong_five);
145 drop(five);145 drop(five);
  
146 <span·class="macro">assert!</span>(weak_five.upgrade().is_none());</code></pre><a·class="test-arrow"·target="_blank"·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++++%0A++++let+weak_five+=+Arc::downgrade(%26five);%0A++++%0A++++let+strong_five:+Option%3CArc%3C_%3E%3E+=+weak_five.upgrade();%0A++++assert!(strong_five.is_some());%0A++++%0A++++//+Destroy+all+strong+pointers.%0A++++drop(strong_five);%0A++++drop(five);%0A++++%0A++++assert!(weak_five.upgrade().is_none());%0A%7D&amp;edition=2021">Run</a></div>146 <span·class="macro">assert!</span>(weak_five.upgrade().is_none());</code></pre><a·class="test-arrow"·target="_blank"·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++++%0A++++let+weak_five+=+Arc::downgrade(%26five);%0A++++%0A++++let+strong_five:+Option%3CArc%3C_%3E%3E+=+weak_five.upgrade();%0A++++assert!(strong_five.is_some());%0A++++%0A++++//+Destroy+all+strong+pointers.%0A++++drop(strong_five);%0A++++drop(five);%0A++++%0A++++assert!(weak_five.upgrade().is_none());%0A%7D&amp;edition=2021">Run</a></div>
147 </div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.strong_count"·class="method"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.41.0">1.41.0</span>···<a·class="src"·href="../../src/alloc/sync.rs.html#2857-2859">source</a></span><h4·class="code-header">pub·fn·<a·href="#method.strong_count"·class="fn">strong_count</a>(&amp;self)·-&gt;·<a·class="primitive"·href="../../core/primitive.usize.html">usize</a></h4></section></summary><div·class="docblock"><p>Gets·the·number·of·strong·(<code>Arc</code>)·pointers·pointing·to·this·allocation.</p>147 </div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.strong_count"·class="method"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.41.0">1.41.0</span>···<a·class="src"·href="../../src/alloc/sync.rs.html#2857-2859">source</a></span><h4·class="code-header">pub·fn·<a·href="#method.strong_count"·class="fn">strong_count</a>(&amp;self)·-&gt;·<a·class="primitive"·href="https://doc.rust-lang.org/1.78.0/core/primitive.usize.html">usize</a></h4></section></summary><div·class="docblock"><p>Gets·the·number·of·strong·(<code>Arc</code>)·pointers·pointing·to·this·allocation.</p>
148 <p>If·<code>self</code>·was·created·using·<a·href="struct.Weak.html#method.new"·title="associated·function·alloc::sync::Weak::new"><code>Weak::new</code></a>,·this·will·return·0.</p>148 <p>If·<code>self</code>·was·created·using·<a·href="struct.Weak.html#method.new"·title="associated·function·alloc::sync::Weak::new"><code>Weak::new</code></a>,·this·will·return·0.</p>
149 </div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.weak_count"·class="method"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.41.0">1.41.0</span>···<a·class="src"·href="../../src/alloc/sync.rs.html#2874-2891">source</a></span><h4·class="code-header">pub·fn·<a·href="#method.weak_count"·class="fn">weak_count</a>(&amp;self)·-&gt;·<a·class="primitive"·href="../../core/primitive.usize.html">usize</a></h4></section></summary><div·class="docblock"><p>Gets·an·approximation·of·the·number·of·<code>Weak</code>·pointers·pointing·to·this149 </div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.weak_count"·class="method"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.41.0">1.41.0</span>···<a·class="src"·href="../../src/alloc/sync.rs.html#2874-2891">source</a></span><h4·class="code-header">pub·fn·<a·href="#method.weak_count"·class="fn">weak_count</a>(&amp;self)·-&gt;·<a·class="primitive"·href="https://doc.rust-lang.org/1.78.0/core/primitive.usize.html">usize</a></h4></section></summary><div·class="docblock"><p>Gets·an·approximation·of·the·number·of·<code>Weak</code>·pointers·pointing·to·this
150 allocation.</p>150 allocation.</p>
151 <p>If·<code>self</code>·was·created·using·<a·href="struct.Weak.html#method.new"·title="associated·function·alloc::sync::Weak::new"><code>Weak::new</code></a>,·or·if·there·are·no·remaining151 <p>If·<code>self</code>·was·created·using·<a·href="struct.Weak.html#method.new"·title="associated·function·alloc::sync::Weak::new"><code>Weak::new</code></a>,·or·if·there·are·no·remaining
152 strong·pointers,·this·will·return·0.</p>152 strong·pointers,·this·will·return·0.</p>
153 <h5·id="accuracy"><a·class="doc-anchor"·href="#accuracy">§</a>Accuracy</h5>153 <h5·id="accuracy"><a·class="doc-anchor"·href="#accuracy">§</a>Accuracy</h5>
154 <p>Due·to·implementation·details,·the·returned·value·can·be·off·by·1·in154 <p>Due·to·implementation·details,·the·returned·value·can·be·off·by·1·in
Max diff block lines reached; 60160/101488 bytes (59.28%) of diff not shown.
5.4 KB
./usr/share/doc/rust-web-doc/html/alloc/task/trait.LocalWake.html
    
Offset 85, 9 lines modifiedOffset 85, 9 lines modified
85 block_on(<span·class="kw">async·</span>{85 block_on(<span·class="kw">async·</span>{
86 ····<span·class="macro">println!</span>(<span·class="string">"hello·world"</span>);86 ····<span·class="macro">println!</span>(<span·class="string">"hello·world"</span>);
87 });</code></pre><a·class="test-arrow"·target="_blank"·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">Run</a></div>87 });</code></pre><a·class="test-arrow"·target="_blank"·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">Run</a></div>
88 </div></details><h2·id="required-methods"·class="section-header">Required·Methods<a·href="#required-methods"·class="anchor">§</a></h2><div·class="methods"><details·class="toggle·method-toggle"·open><summary><section·id="tymethod.wake"·class="method"><a·class="src·rightside"·href="../../src/alloc/task.rs.html#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><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>
89 </div></details></div><h2·id="provided-methods"·class="section-header">Provided·Methods<a·href="#provided-methods"·class="anchor">§</a></h2><div·class="methods"><details·class="toggle·method-toggle"·open><summary><section·id="method.wake_by_ref"·class="method"><a·class="src·rightside"·href="../../src/alloc/task.rs.html#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 </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>
90 <p>If·an·executor·supports·a·cheaper·way·to·wake·without·consuming·the90 <p>If·an·executor·supports·a·cheaper·way·to·wake·without·consuming·the
91 waker,·it·should·override·this·method.·By·default,·it·clones·the91 waker,·it·should·override·this·method.·By·default,·it·clones·the
92 <a·href="../rc/struct.Rc.html"·title="struct·alloc::rc::Rc"><code>Rc</code></a>·and·calls·<a·href="../../core/task/wake/struct.LocalWaker.html#method.wake"·title="method·core::task::wake::LocalWaker::wake"><code>wake</code></a>·on·the·clone.</p>92 <a·href="../rc/struct.Rc.html"·title="struct·alloc::rc::Rc"><code>Rc</code></a>·and·calls·<a·href="https://doc.rust-lang.org/1.78.0/core/task/wake/struct.LocalWaker.html#method.wake"·title="method·core::task::wake::LocalWaker::wake"><code>wake</code></a>·on·the·clone.</p>
93 </div></details></div><h2·id="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.78.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>93 </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.78.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>
5.33 KB
./usr/share/doc/rust-web-doc/html/alloc/task/trait.Wake.html
    
Offset 2, 25 lines modifiedOffset 2, 25 lines modified
2 ····<main><div·class="width-limiter"><nav·class="sub"><form·class="search-form"><span></span><div·id="sidebar-button"·tabindex="-1"><a·href="../../alloc/all.html"·title="show·sidebar"></a></div><input·class="search-input"·name="search"·aria-label="Run·search·in·the·documentation"·autocomplete="off"·spellcheck="false"·placeholder="Click·or·press·‘S’·to·search,·‘?’·for·more·options…"·type="search"><div·id="help-button"·tabindex="-1"><a·href="../../help.html"·title="help">?</a></div><div·id="settings-menu"·tabindex="-1"><a·href="../../settings.html"·title="settings"><img·width="22"·height="22"·alt="Change·settings"·src="../../static.files/wheel-7b819b6101059cd0.svg"></a></div></form></nav><section·id="main-content"·class="content"><div·class="main-heading"><h1>Trait·<a·href="../index.html">alloc</a>::<wbr><a·href="index.html">task</a>::<wbr><a·class="trait"·href="#">Wake</a><button·id="copy-path"·title="Copy·item·path·to·clipboard"><img·src="../../static.files/clipboard-7571035ce49a181d.svg"·width="19"·height="18"·alt="Copy·item·path"></button></h1><span·class="out-of-band"><span·class="since"·title="Stable·since·Rust·version·1.51.0">1.51.0</span>···<a·class="src"·href="../../src/alloc/task.rs.html#90-106">source</a>···<button·id="toggle-all-docs"·title="collapse·all·docs">[<span>&#x2212;</span>]</button></span></div><pre·class="rust·item-decl"><code>pub·trait·Wake·{2 ····<main><div·class="width-limiter"><nav·class="sub"><form·class="search-form"><span></span><div·id="sidebar-button"·tabindex="-1"><a·href="../../alloc/all.html"·title="show·sidebar"></a></div><input·class="search-input"·name="search"·aria-label="Run·search·in·the·documentation"·autocomplete="off"·spellcheck="false"·placeholder="Click·or·press·‘S’·to·search,·‘?’·for·more·options…"·type="search"><div·id="help-button"·tabindex="-1"><a·href="../../help.html"·title="help">?</a></div><div·id="settings-menu"·tabindex="-1"><a·href="../../settings.html"·title="settings"><img·width="22"·height="22"·alt="Change·settings"·src="../../static.files/wheel-7b819b6101059cd0.svg"></a></div></form></nav><section·id="main-content"·class="content"><div·class="main-heading"><h1>Trait·<a·href="../index.html">alloc</a>::<wbr><a·href="index.html">task</a>::<wbr><a·class="trait"·href="#">Wake</a><button·id="copy-path"·title="Copy·item·path·to·clipboard"><img·src="../../static.files/clipboard-7571035ce49a181d.svg"·width="19"·height="18"·alt="Copy·item·path"></button></h1><span·class="out-of-band"><span·class="since"·title="Stable·since·Rust·version·1.51.0">1.51.0</span>···<a·class="src"·href="../../src/alloc/task.rs.html#90-106">source</a>···<button·id="toggle-all-docs"·title="collapse·all·docs">[<span>&#x2212;</span>]</button></span></div><pre·class="rust·item-decl"><code>pub·trait·Wake·{
3 ····//·Required·method3 ····//·Required·method
4 ····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 ····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;);
  
5 ····//·Provided·method5 ····//·Provided·method
6 ····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 ····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;)·{·...·}
7 }</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 }</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>
8 <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·an8 <p>This·trait·can·be·used·to·create·a·<a·href="https://doc.rust-lang.org/1.78.0/core/task/wake/struct.Waker.html"·title="struct·core::task::wake::Waker"><code>Waker</code></a>.·An·executor·can·define·an
9 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·pass9 implementation·of·this·trait,·and·use·that·to·construct·a·<a·href="https://doc.rust-lang.org/1.78.0/core/task/wake/struct.Waker.html"·title="struct·core::task::wake::Waker"><code>Waker</code></a>·to·pass
10 to·the·tasks·that·are·executed·on·that·executor.</p>10 to·the·tasks·that·are·executed·on·that·executor.</p>
11 <p>This·trait·is·a·memory-safe·and·ergonomic·alternative·to·constructing·a11 <p>This·trait·is·a·memory-safe·and·ergonomic·alternative·to·constructing·a
12 <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·used12 <a·href="https://doc.rust-lang.org/1.78.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
13 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·(especially13 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
14 those·for·embedded·systems)·cannot·use·this·API,·which·is·why·<a·href="../../core/task/wake/struct.RawWaker.html"·title="struct·core::task::wake::RawWaker"><code>RawWaker</code></a>14 those·for·embedded·systems)·cannot·use·this·API,·which·is·why·<a·href="https://doc.rust-lang.org/1.78.0/core/task/wake/struct.RawWaker.html"·title="struct·core::task::wake::RawWaker"><code>RawWaker</code></a>
15 exists·as·an·alternative·for·those·systems.</p>15 exists·as·an·alternative·for·those·systems.</p>
16 <p>To·construct·a·<a·href="../../core/task/wake/struct.Waker.html"·title="struct·core::task::wake::Waker"><code>Waker</code></a>·from·some·type·<code>W</code>·implementing·this·trait,16 <p>To·construct·a·<a·href="https://doc.rust-lang.org/1.78.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,
17 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 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.
18 It·is·also·possible·to·convert·to·<a·href="../../core/task/wake/struct.RawWaker.html"·title="struct·core::task::wake::RawWaker"><code>RawWaker</code></a>·in·the·same·way.</p>18 It·is·also·possible·to·convert·to·<a·href="https://doc.rust-lang.org/1.78.0/core/task/wake/struct.RawWaker.html"·title="struct·core::task::wake::RawWaker"><code>RawWaker</code></a>·in·the·same·way.</p>
19 <!--·Ideally·we'd·link·to·the·`From`·impl,·but·rustdoc·doesn't·generate·any·page·for·it·within19 <!--·Ideally·we'd·link·to·the·`From`·impl,·but·rustdoc·doesn't·generate·any·page·for·it·within
20 ·····`alloc`·because·`alloc`·neither·defines·nor·re-exports·`From`·or·`Waker`,·and·we·can't20 ·····`alloc`·because·`alloc`·neither·defines·nor·re-exports·`From`·or·`Waker`,·and·we·can't
21 ·····link·../../std/task/struct.Waker.html#impl-From%3CArc%3CW,+Global%3E%3E-for-Waker21 ·····link·../../std/task/struct.Waker.html#impl-From%3CArc%3CW,+Global%3E%3E-for-Waker
22 ·····without·getting·a·link-checking·error·in·CI.·-->22 ·····without·getting·a·link-checking·error·in·CI.·-->
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>A·basic·<code>block_on</code>·function·that·takes·a·future·and·runs·it·to·completion·on24 <p>A·basic·<code>block_on</code>·function·that·takes·a·future·and·runs·it·to·completion·on
25 the·current·thread.</p>25 the·current·thread.</p>
3.57 KB
./usr/share/doc/rust-web-doc/html/alloc/vec/index.html
    
Offset 22, 13 lines modifiedOffset 22, 13 lines modified
  
22 v.push(<span·class="number">3</span>);</code></pre><a·class="test-arrow"·target="_blank"·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">Run</a></div>22 v.push(<span·class="number">3</span>);</code></pre><a·class="test-arrow"·target="_blank"·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">Run</a></div>
23 <p>Popping·values·works·in·much·the·same·way:</p>23 <p>Popping·values·works·in·much·the·same·way:</p>
  
24 <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 <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>];
  
25 <span·class="kw">let·</span>two·=·v.pop();</code></pre><a·class="test-arrow"·target="_blank"·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">Run</a></div>25 <span·class="kw">let·</span>two·=·v.pop();</code></pre><a·class="test-arrow"·target="_blank"·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">Run</a></div>
26 <p>Vectors·also·support·indexing·(through·the·<a·href="../../core/ops/index/trait.Index.html"·title="trait·core::ops::index::Index"><code>Index</code></a>·and·<a·href="../../core/ops/index/trait.IndexMut.html"·title="trait·core::ops::index::IndexMut"><code>IndexMut</code></a>·traits):</p>26 <p>Vectors·also·support·indexing·(through·the·<a·href="https://doc.rust-lang.org/1.78.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.78.0/core/ops/index/trait.IndexMut.html"·title="trait·core::ops::index::IndexMut"><code>IndexMut</code></a>·traits):</p>
  
27 <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 <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>];
28 <span·class="kw">let·</span>three·=·v[<span·class="number">2</span>];28 <span·class="kw">let·</span>three·=·v[<span·class="number">2</span>];
29 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"·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">Run</a></div>29 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"·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">Run</a></div>
30 </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">IntoIter</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">ExtractIf</a><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>30 </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">IntoIter</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">ExtractIf</a><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>
310 KB
./usr/share/doc/rust-web-doc/html/alloc/vec/struct.Drain.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·draining·iterator·for·`Vec&lt;T&gt;`."><title>Drain·in·alloc::vec·-·Rust</title><script>·if·(window.location.protocol·!==·"file:")·document.write(`<link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/SourceSerif4-Regular-46f98efaafac5295.ttf.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/FiraSans-Regular-018c141bf0843ffd.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/FiraSans-Medium-8f9a781e4970d388.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/SourceCodePro-Regular-562dcc5011b6de7d.ttf.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/SourceCodePro-Semibold-d899c5a5c4aeb14a.ttf.woff2">`)</script><link·rel="stylesheet"·href="../../static.files/normalize-76eba96aa4d2e634.css"><link·rel="stylesheet"·href="../../static.files/rustdoc-35f9e32502181f1e.css"><meta·name="rustdoc-vars"·data-root-path="../../"·data-static-root-path="../../static.files/"·data-current-crate="alloc"·data-themes=""·data-resource-suffix="1.78.0"·data-rustdoc-version="1.78.0"·data-channel="1.78.0"·data-search-js="search-42d8da7a6b9792c2.js"·data-settings-js="settings-4313503d2e1961c2.js"·><script·src="../../static.files/storage-4c98445ec4002617.js"></script><script·defer·src="sidebar-items1.78.0.js"></script><script·defer·src="../../static.files/main-12cf3b4f4f9dc36d.js"></script><noscript><link·rel="stylesheet"·href="../../static.files/noscript-04d5337699b92874.css"></noscript><link·rel="alternate·icon"·type="image/png"·href="../../static.files/favicon-16x16-8b506e7a72182f1c.png"><link·rel="alternate·icon"·type="image/png"·href="../../static.files/favicon-32x32-422f7d1d52889060.png"><link·rel="icon"·type="image/svg+xml"·href="../../static.files/favicon-2c020d218678b618.svg"></head><body·class="rustdoc·struct"><!--[if·lte·IE·11]><div·class="warning">This·old·browser·is·unsupported·and·will·most·likely·display·funky·things.</div><![endif]--><nav·class="mobile-topbar"><button·class="sidebar-menu-toggle"·title="show·sidebar"></button><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-151179464ae7ed46.svg"·alt=""></a></nav><nav·class="sidebar"><div·class="sidebar-crate"><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-151179464ae7ed46.svg"·alt="logo"></a><h2><a·href="../../alloc/index.html">alloc</a><span·class="version">1.78.0</span></h2></div><h2·class="location"><a·href="#">Drain</a></h2><div·class="sidebar-elems"><section><h3><a·href="#implementations">Methods</a></h3><ul·class="block·method"><li><a·href="#method.allocator">allocator</a></li><li><a·href="#method.as_slice">as_slice</a></li><li><a·href="#method.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">AsRef&lt;[T]&gt;</a></li><li><a·href="#impl-Debug-for-Drain%3C'_,+T,+A%3E">Debug</a></li><li><a·href="#impl-DoubleEndedIterator-for-Drain%3C'_,+T,+A%3E">DoubleEndedIterator</a></li><li><a·href="#impl-Drop-for-Drain%3C'_,+T,+A%3E">Drop</a></li><li><a·href="#impl-ExactSizeIterator-for-Drain%3C'_,+T,+A%3E">ExactSizeIterator</a></li><li><a·href="#impl-FusedIterator-for-Drain%3C'_,+T,+A%3E">FusedIterator</a></li><li><a·href="#impl-Iterator-for-Drain%3C'_,+T,+A%3E">Iterator</a></li><li><a·href="#impl-Send-for-Drain%3C'_,+T,+A%3E">Send</a></li><li><a·href="#impl-Sync-for-Drain%3C'_,+T,+A%3E">Sync</a></li><li><a·href="#impl-TrustedLen-for-Drain%3C'_,+T,+A%3E">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">Freeze</a></li><li><a·href="#impl-RefUnwindSafe-for-Drain%3C'a,+T,+A%3E">RefUnwindSafe</a></li><li><a·href="#impl-Unpin-for-Drain%3C'a,+T,+A%3E">Unpin</a></li><li><a·href="#impl-UnwindSafe-for-Drain%3C'a,+T,+A%3E">UnwindSafe</a></li></ul><h3><a·href="#blanket-implementations">Blanket·Implementations</a></h3><ul·class="block·blanket-implementation"><li><a·href="#impl-Any-for-T">Any</a></li><li><a·href="#impl-Borrow%3CT%3E-for-T">Borrow&lt;T&gt;</a></li><li><a·href="#impl-BorrowMut%3CT%3E-for-T">BorrowMut&lt;T&gt;</a></li><li><a·href="#impl-From%3CT%3E-for-T">From&lt;T&gt;</a></li><li><a·href="#impl-Into%3CU%3E-for-T">Into&lt;U&gt;</a></li><li><a·href="#impl-IntoIterator-for-I">IntoIterator</a></li><li><a·href="#impl-TryFrom%3CU%3E-for-T">TryFrom&lt;U&gt;</a></li><li><a·href="#impl-TryInto%3CU%3E-for-T">TryInto&lt;U&gt;</a></li></ul></section><h2><a·href="index.html">In·alloc::vec</a></h2></div></nav><div·class="sidebar-resizer"></div>1 <!DOCTYPE·html><html·lang="en"><head><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&lt;T&gt;`."><title>Drain·in·alloc::vec·-·Rust</title><script>·if·(window.location.protocol·!==·"file:")·document.write(`<link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/SourceSerif4-Regular-46f98efaafac5295.ttf.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/FiraSans-Regular-018c141bf0843ffd.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/FiraSans-Medium-8f9a781e4970d388.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/SourceCodePro-Regular-562dcc5011b6de7d.ttf.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/SourceCodePro-Semibold-d899c5a5c4aeb14a.ttf.woff2">`)</script><link·rel="stylesheet"·href="../../static.files/normalize-76eba96aa4d2e634.css"><link·rel="stylesheet"·href="../../static.files/rustdoc-35f9e32502181f1e.css"><meta·name="rustdoc-vars"·data-root-path="../../"·data-static-root-path="../../static.files/"·data-current-crate="alloc"·data-themes=""·data-resource-suffix="1.78.0"·data-rustdoc-version="1.78.0"·data-channel="1.78.0"·data-search-js="search-42d8da7a6b9792c2.js"·data-settings-js="settings-4313503d2e1961c2.js"·><script·src="../../static.files/storage-4c98445ec4002617.js"></script><script·defer·src="sidebar-items1.78.0.js"></script><script·defer·src="../../static.files/main-12cf3b4f4f9dc36d.js"></script><noscript><link·rel="stylesheet"·href="../../static.files/noscript-04d5337699b92874.css"></noscript><link·rel="alternate·icon"·type="image/png"·href="../../static.files/favicon-16x16-8b506e7a72182f1c.png"><link·rel="alternate·icon"·type="image/png"·href="../../static.files/favicon-32x32-422f7d1d52889060.png"><link·rel="icon"·type="image/svg+xml"·href="../../static.files/favicon-2c020d218678b618.svg"></head><body·class="rustdoc·struct"><!--[if·lte·IE·11]><div·class="warning">This·old·browser·is·unsupported·and·will·most·likely·display·funky·things.</div><![endif]--><nav·class="mobile-topbar"><button·class="sidebar-menu-toggle"·title="show·sidebar"></button><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-151179464ae7ed46.svg"·alt=""></a></nav><nav·class="sidebar"><div·class="sidebar-crate"><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-151179464ae7ed46.svg"·alt="logo"></a><h2><a·href="../../alloc/index.html">alloc</a><span·class="version">1.78.0</span></h2></div><h2·class="location"><a·href="#">Drain</a></h2><div·class="sidebar-elems"><section><h3><a·href="#implementations">Methods</a></h3><ul·class="block·method"><li><a·href="#method.allocator">allocator</a></li><li><a·href="#method.as_slice">as_slice</a></li><li><a·href="#method.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">AsRef&lt;[T]&gt;</a></li><li><a·href="#impl-Debug-for-Drain%3C'_,+T,+A%3E">Debug</a></li><li><a·href="#impl-DoubleEndedIterator-for-Drain%3C'_,+T,+A%3E">DoubleEndedIterator</a></li><li><a·href="#impl-Drop-for-Drain%3C'_,+T,+A%3E">Drop</a></li><li><a·href="#impl-ExactSizeIterator-for-Drain%3C'_,+T,+A%3E">ExactSizeIterator</a></li><li><a·href="#impl-FusedIterator-for-Drain%3C'_,+T,+A%3E">FusedIterator</a></li><li><a·href="#impl-Iterator-for-Drain%3C'_,+T,+A%3E">Iterator</a></li><li><a·href="#impl-Send-for-Drain%3C'_,+T,+A%3E">Send</a></li><li><a·href="#impl-Sync-for-Drain%3C'_,+T,+A%3E">Sync</a></li><li><a·href="#impl-TrustedLen-for-Drain%3C'_,+T,+A%3E">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">Freeze</a></li><li><a·href="#impl-RefUnwindSafe-for-Drain%3C'a,+T,+A%3E">RefUnwindSafe</a></li><li><a·href="#impl-Unpin-for-Drain%3C'a,+T,+A%3E">Unpin</a></li><li><a·href="#impl-UnwindSafe-for-Drain%3C'a,+T,+A%3E">UnwindSafe</a></li></ul><h3><a·href="#blanket-implementations">Blanket·Implementations</a></h3><ul·class="block·blanket-implementation"><li><a·href="#impl-Any-for-T">Any</a></li><li><a·href="#impl-Borrow%3CT%3E-for-T">Borrow&lt;T&gt;</a></li><li><a·href="#impl-BorrowMut%3CT%3E-for-T">BorrowMut&lt;T&gt;</a></li><li><a·href="#impl-From%3CT%3E-for-T">From&lt;T&gt;</a></li><li><a·href="#impl-Into%3CU%3E-for-T">Into&lt;U&gt;</a></li><li><a·href="#impl-IntoIterator-for-I">IntoIterator</a></li><li><a·href="#impl-TryFrom%3CU%3E-for-T">TryFrom&lt;U&gt;</a></li><li><a·href="#impl-TryInto%3CU%3E-for-T">TryInto&lt;U&gt;</a></li></ul></section><h2><a·href="index.html">In·alloc::vec</a></h2></div></nav><div·class="sidebar-resizer"></div>
2 ····<main><div·class="width-limiter"><nav·class="sub"><form·class="search-form"><span></span><div·id="sidebar-button"·tabindex="-1"><a·href="../../alloc/all.html"·title="show·sidebar"></a></div><input·class="search-input"·name="search"·aria-label="Run·search·in·the·documentation"·autocomplete="off"·spellcheck="false"·placeholder="Click·or·press·‘S’·to·search,·‘?’·for·more·options…"·type="search"><div·id="help-button"·tabindex="-1"><a·href="../../help.html"·title="help">?</a></div><div·id="settings-menu"·tabindex="-1"><a·href="../../settings.html"·title="settings"><img·width="22"·height="22"·alt="Change·settings"·src="../../static.files/wheel-7b819b6101059cd0.svg"></a></div></form></nav><section·id="main-content"·class="content"><div·class="main-heading"><h1>Struct·<a·href="../index.html">alloc</a>::<wbr><a·href="index.html">vec</a>::<wbr><a·class="struct"·href="#">Drain</a><button·id="copy-path"·title="Copy·item·path·to·clipboard"><img·src="../../static.files/clipboard-7571035ce49a181d.svg"·width="19"·height="18"·alt="Copy·item·path"></button></h1><span·class="out-of-band"><span·class="since"·title="Stable·since·Rust·version·1.6.0">1.6.0</span>···<a·class="src"·href="../../src/alloc/vec/drain.rs.html#22-34">source</a>···<button·id="toggle-all-docs"·title="collapse·all·docs">[<span>&#x2212;</span>]</button></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 ····<main><div·class="width-limiter"><nav·class="sub"><form·class="search-form"><span></span><div·id="sidebar-button"·tabindex="-1"><a·href="../../alloc/all.html"·title="show·sidebar"></a></div><input·class="search-input"·name="search"·aria-label="Run·search·in·the·documentation"·autocomplete="off"·spellcheck="false"·placeholder="Click·or·press·‘S’·to·search,·‘?’·for·more·options…"·type="search"><div·id="help-button"·tabindex="-1"><a·href="../../help.html"·title="help">?</a></div><div·id="settings-menu"·tabindex="-1"><a·href="../../settings.html"·title="settings"><img·width="22"·height="22"·alt="Change·settings"·src="../../static.files/wheel-7b819b6101059cd0.svg"></a></div></form></nav><section·id="main-content"·class="content"><div·class="main-heading"><h1>Struct·<a·href="../index.html">alloc</a>::<wbr><a·href="index.html">vec</a>::<wbr><a·class="struct"·href="#">Drain</a><button·id="copy-path"·title="Copy·item·path·to·clipboard"><img·src="../../static.files/clipboard-7571035ce49a181d.svg"·width="19"·height="18"·alt="Copy·item·path"></button></h1><span·class="out-of-band"><span·class="since"·title="Stable·since·Rust·version·1.6.0">1.6.0</span>···<a·class="src"·href="../../src/alloc/vec/drain.rs.html#22-34">source</a>···<button·id="toggle-all-docs"·title="collapse·all·docs">[<span>&#x2212;</span>]</button></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>
3 <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 <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>.
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="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 <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>];
7 <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"·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">Run</a></div>7 <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"·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">Run</a></div>
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-Drain%3C'a,+T,+A%3E"·class="impl"><a·class="src·rightside"·href="../../src/alloc/vec/drain.rs.html#43-137">source</a><a·href="#impl-Drain%3C'a,+T,+A%3E"·class="anchor">§</a><h3·class="code-header">impl&lt;'a,·T,·A:·<a·class="trait"·href="../alloc/trait.Allocator.html"·title="trait·alloc::alloc::Allocator">Allocator</a>&gt;·<a·class="struct"·href="struct.Drain.html"·title="struct·alloc::vec::Drain">Drain</a>&lt;'a,·T,·A&gt;</h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.as_slice"·class="method"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.46.0">1.46.0</span>···<a·class="src"·href="../../src/alloc/vec/drain.rs.html#57-59">source</a></span><h4·class="code-header">pub·fn·<a·href="#method.as_slice"·class="fn">as_slice</a>(&amp;self)·-&gt;·&amp;<a·class="primitive"·href="../../core/primitive.slice.html">[T]</a></h4></section></summary><div·class="docblock"><p>Returns·the·remaining·items·of·this·iterator·as·a·slice.</p>8 </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.78.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>
9 <h5·id="examples"><a·class="doc-anchor"·href="#examples">§</a>Examples</h5>9 <h5·id="examples"><a·class="doc-anchor"·href="#examples">§</a>Examples</h5>
10 <div·class="example-wrap"><pre·class="rust·rust-example-rendered"><code><span·class="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 <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>];
11 <span·class="kw">let·</span><span·class="kw-2">mut·</span>drain·=·vec.drain(..);11 <span·class="kw">let·</span><span·class="kw-2">mut·</span>drain·=·vec.drain(..);
12 <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="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>]);
13 <span·class="kw">let·_·</span>=·drain.next().unwrap();13 <span·class="kw">let·_·</span>=·drain.next().unwrap();
14 <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"·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">Run</a></div>14 <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"·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">Run</a></div>
15 </div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.allocator"·class="method"><a·class="src·rightside"·href="../../src/alloc/vec/drain.rs.html#65-67">source</a><h4·class="code-header">pub·fn·<a·href="#method.allocator"·class="fn">allocator</a>(&amp;self)·-&gt;·<a·class="primitive"·href="../../core/primitive.reference.html">&amp;A</a></h4></section><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>allocator_api</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/32838">#32838</a>)</span></div></span></summary><div·class="docblock"><p>Returns·a·reference·to·the·underlying·allocator.</p>15 </div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.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.78.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>
16 </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 </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>
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="attr">#![feature(drain_keep_rest)]18 <div·class="example-wrap"><pre·class="rust·rust-example-rendered"><code><span·class="attr">#![feature(drain_keep_rest)]
  
19 </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><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>];
20 <span·class="kw">let·</span><span·class="kw-2">mut·</span>drain·=·vec.drain(..);20 <span·class="kw">let·</span><span·class="kw-2">mut·</span>drain·=·vec.drain(..);
  
Offset 24, 218 lines modifiedOffset 24, 218 lines modified
  
24 <span·class="comment">//·This·call·keeps·'b'·and·'c'·in·the·vec.24 <span·class="comment">//·This·call·keeps·'b'·and·'c'·in·the·vec.
25 </span>drain.keep_rest();25 </span>drain.keep_rest();
  
26 <span·class="comment">//·If·we·wouldn't·call·`keep_rest()`,26 <span·class="comment">//·If·we·wouldn't·call·`keep_rest()`,
27 //·`vec`·would·be·empty.27 //·`vec`·would·be·empty.
28 </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"·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">Run</a></div>28 </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"·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">Run</a></div>
29 </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:·6657,·SHA:·559f58dee09c504c7c459281981764475f6433579bbdb0cba250bed8857d2c68·...·]/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></div><h2·id="trait-implementations"·class="section-header">Trait·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.78.0/core/convert/trait.AsRef.html"·title="trait·core::convert::AsRef">AsRef</a>&lt;<a·class="primitive"·href="https://doc.rust-lang.org/1.78.0/core/primitive.slice.html">[T]</a>&gt;·for·<a·class="struct"·href="struct.Drain.html[·...·truncated·by·diffoscope;·len:·7305,·SHA:·ab61ba6587d86aab7f90cc786d859fa17a7fbdb0b4a2655cc6154edd2dc9639e·...·]/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.78.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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(B,·Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.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.78.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.7[·...·truncated·by·diffoscope;·len:·3,·SHA:·7b1bd53949b752d143d871408483b5382371b5bc48d195d0c040ec93cfa2748b·...·]/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:·74b709f2c818a4eda5d85ea863eb2d8af72c87564dbab2746e67feafb0cbb9a3·...·]/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.78.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:·d66ed7e195a53e9945339ef1976aed455dcf80228d8e5b7b0c69a64c3983fea1·...·]/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.78.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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(B,·Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/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:·f8bdf1e28866c7668477ab391452c7cfa7fd52cc69b633e782a157931421b39b·...·]/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.78.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:·c264047794019a6dcf05728ba6a6ee1f8f07c7209958b3366ba94546b527ecdc·...·]/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.78.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:·7166,·SHA:·34c827db54ad638ae51155ead98f9c1714dc6a1e9bb0f2e6635323a9e5460fe3·...·]/core/primitive.usize.html">usize</a>&gt;(38 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·7922,·SHA:·9622d355e9de76f1da5c181035b5446b513b2addbf7430bfb18f9f0f8af31669·...·]/core/primitive.usize.html">usize</a>&gt;(
39 ····&amp;mut·self39 ····&amp;mut·self
40 )·-&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">where40 )·-&gt;·<a·class="enum"·href="https://doc.rust-lang.org/1.78.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.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title=[·...·truncated·by·diffoscope;·len:·381,·SHA:·88c48923c9b7ea5cc47c1087c60e09656e81d4671c58071ba2bef826335388bc·...·]/core/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
41 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></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:·602d17b58d1cf716882ddc867fc66cfda4f899bef17b038a48553e9133f60097·...·]/core/primitive.usize.html">usize</a><div·class="where">where41 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></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:·89791450da70cbd536c3cf8fbf2dd9891668362f9a252d3ee098222d19960bae·...·]/core/primitive.usize.html">usize</a><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,·counting·the·number·of·iterations·and·returning·it.·<a·href="../../core/iter/traits/iterator/trait.I[·...·truncated·by·diffoscope;·len:·675,·SHA:·5b5aaec46c04cf77d2fa06e88cd6f0a2bd8d201412bc325302bd2f8f21b39207·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;<div·class="where">where42 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.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:·84ae0beb16240102bae2355bb8c543b17f3f107e3c06b320839aa401eebb1945·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&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'>Consumes·the·iterator,·returning·the·last·element.·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.last[·...·truncated·by·diffoscope;·len:·2964,·SHA:·6b808f54a13578d2e276864bb3eb79ae7b452b8959e79f7ea7ab1180574b77fc·...·]/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.78.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.78.0/cor[·...·truncated·by·diffoscope;·len:·3504,·SHA:·6d21b6d637e0b2e9953a37a26fd19e00da089147d4acaf696c94d448de4ce419·...·]/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.78.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:·5667b9b6c9778ff3b9d23ed0a110e7ab9d3fccc786fdcaca8c17edf996236439·...·]/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.78.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:·e83c903581753673e083ce8dd809879a2fc81ab3050eb6db267d7fa26b15e035·...·]/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.78.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:·1c6bb9803ee8832ebd4c28a08a952178165595b6870cf35d3c89454b9da828b2·...·]/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.78.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.78.0/core/iter/traits/it[·...·truncated·by·diffoscope;·len:·1329,·SHA:·d9299c8edc606ed82f24d61ce441bec451141d684c2a9a75074f5b19c57f196c·...·]/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.78.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:·c1b5e692e89c9c809075ee8ee72fb15a9ec46c075b08450e1f707d672a224750·...·]/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.78.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:·98627729f77dcf1c9d258f343354ba600b7134c6b3929080f231e8de7155b70b·...·]/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.78.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.78.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.78.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:·d6282409add0999f2130eb6bbe6d0473ce96bf2544799e8bc22156f3c2d2e0dd·...·]/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.78.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:·7301b6beba7b6885849be90a625df68ef739a5374af456c51fe2e81d91a25363·...·]/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.78.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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::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:·fb4c9589a16c7b6d697c109d1193d2f1e763e5dd967101c2fd92b32416972229·...·]/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.78.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:·98f6effefa44d759c249143d83623f0055d937382bfc398b7e1f5e92cd413657·...·]/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.78.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:·7abbad666ec88a1053b8aca2a481d629a3ef3596eddb570c381205fa2d859a52·...·]/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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·916,·SHA:·30d0b2a76513c5a880e9aee43e92b18805845cfcfe5783f62dc090167a439e63·...·]/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.78.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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·140,·SHA:·752f473b57e7444ebfddf5ea7fd40a332e83ec55524a6c31b5ee0f82a5dea819·...·]/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:·7da07154834a15b8ae55b4fd41479da070ccbd27e071909f81698570c306a081·...·]/core/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.78.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:·76aa2ad154f88085ee3f8a22721a7e6812680bac785d19059532407f50da1801·...·]/core/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.78.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:·c89169e5bf1c4724c7b411e568b6dad6475896f2606f557b3d708359ef71f5cc·...·]/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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·1052,·SHA:·110b47c7083083d565fcfc89337fddc8e5c87e81b2f720f3f7b0ded55e8500fb·...·]/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.78.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:·53634008856676c70c32b501f7ec498c1f86d123cc9b5b898256a69895ff31fc·...·]/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.78.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:·8464264e074dde5d84f0414ab3b5b2d8da83f3c9e3ca04c45458241580a8c80d·...·]/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.78.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.78.0/core/iter/adapte[·...·truncated·by·diffoscope;·len:·175,·SHA:·16fe7225bf05b478e2828b347c3d23ded9a22f89d8887a2c65d9f7b3faf1b0e7·...·]/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:·77dd41e041d66c618d306e900a9159cf1b00478b8f37e5692be62119a1d4fcda·...·]/core/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.78.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:·00ccbb673c11ed48d8c6aa2a3f8984fb298202e7bccfa42f1ac21290fcc0fb06·...·]/core/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.78.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:·c18326af66652e52fa627bfd0312af7fa2ad0ddc162b12a46e61047a031b0264·...·]/core/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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·1234,·SHA:·3b805567411cdcebed740f9e8d400dbe7fb487504f40e284544a140155090fdf·...·]/core/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.78.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:·39eeddf219b211245393e51a591d5064c740fa9be49d88883d8a6474679741ad·...·]/core/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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·1058,·SHA:·b390dbdda8d7e93604b5ecd906a93efd03fe19bdaf41cf12893fd361bf974307·...·]/core/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.78.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:·9369fa85b74ff841f7401949cadba6dfbbbeead2a99568f20dcfd5aab20d61ab·...·]/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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·1163,·SHA:·5772149166d344bf8fa5ebbd9db8693a8f2e5f031c50338e8f1523ef72f814d6·...·]/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:·a25e81a74cc82c1837477e2b0cea682fff9f43550640901b8010ac501ca69e3d·...·]/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.78.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:·6216516fe581c401abda3c95818192e8f030e2008c9bbdbaafebba16f33ea9bd·...·]/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.78.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:·de8f1023275132502c1569b0ef9a557dc98eaf60aae97cdb916e52f9f55100aa·...·]/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.78.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:·485843399c56e24bdf020ff0610d0ce1f62fbac5530d9880a1a7417105e3d70f·...·]/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.78.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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(<a·class="primitive"·href="https://doc.rust-lang.org/1.78.0/core/primitive.reference.html">&amp;mut·St</a>,·Self::<a·class="associatedty[·...·truncated·by·diffoscope;·len:·449,·SHA:·f12c268a8a8111b9e7126ad78bf5523a63733caa63d187c4fe792309ea41acdf·...·]/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:·8b31595e3cee3022819032aac82e3df712188a2a6dcc20da6939262e5e528591·...·]/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.78.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.78.0/core/iter/trai[·...·truncated·by·diffoscope;·len:·690,·SHA:·371190e5c1bf9b7dde6e84447965a69946212b977b9eb6d89048fbe34c5dda1c·...·]/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.78.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.78.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:·9b6a337a3ad68c2a987b52450c153f87a04a8ed9e83603d26077fe6e70d61edf·...·]/core/iter/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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·976,·SHA:·2a9182f6fe88e0b8a9b1ae1f46cace940cc0b8736033c354c0f0ccbf1c196e7a·...·]/core/iter/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.78.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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;[Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtyp[·...·truncated·by·diffoscope;·len:·135,·SHA:·0b06a6094d42ccbc8bce5b01c4383961fe7f1967f05e4c9f1ff33e71e425fb26·...·]/core/primitive.array.html">N</a>])·-&gt;·R,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iter_map_windows</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/87155">#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.78.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:·238f6b49b3e28d725c57040edaa60bfbb34f140155e6af1d30eab52da1c7274f·...·]/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.78.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:·0d33056cee8a4f9b70b573c0adecc2f3599a2f8d9fa9f2c2044e9118ab134f73·...·]/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:·cfd3edf89fe5aca24b994f83b0d7da765620394e35140e694d98233d4d92481b·...·]/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.78.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.78.0/core/op[·...·truncated·by·diffoscope;·len:·841,·SHA:·9cba1b175fb3726d7f1f01da9be7c1a56568a68e4ce7915a468b730902daf8d3·...·]/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.78.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:·772,·SHA:·31d2052382378512fa905c6d5297d384eac7b7f126141ce561719c0e27cc9d39·...·]/core/primitive.reference.html">&amp;mut·Self</a><div·class="where">where89 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·934,·SHA:·ea20d2e0fe9388580ea08100baa9120b5e9b6cb48f43fc846f15db8b9649e7f6·...·]/core/primitive.reference.html">&amp;mut·Self</a><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:·98760b16b1ed91f9558e6e2637724a4608316181d5f6f4d236e896a83eca9af9·...·]/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.78.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.78.0/core/it[·...·truncated·by·diffoscope;·len:·523,·SHA:·97064c705f6f4bdf74469c54fabcf580d21893127d1b4cd9a9c1018a717ef153·...·]/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.78.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.78.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:·e5d524e874326d0b9b733f5ee809c6595cde869afab0cc3d4ba8454093f420da·...·]/core/primitive.reference.html">&amp;mut·E</a><div·class="where">where92 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.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.78.0/core/iter/tr[·...·truncated·by·diffoscope;·len:·728,·SHA:·01937c2dc314c259495665570ae249c94b4a5b0719718f5f1188e6fc64ecf487·...·]/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.78.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.78.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:·b0297783e056393a542c4058b42c18523a86c961c1b6ce3bc94342c1a2c10c58·...·]/core/primitive.tuple.html">(B,·B)</a><div·class="where">where94 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></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:·00bd47017b1bdd1bbe2c3fc932d955a8aa2f7f5eff8c00e3001ae28a982a5883·...·]/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.78.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.78.0/core/default/trait.Default.html"·title="trait·core::default::Default">Default</a>·+·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/collect/trait.Extend.html"·title="trait·core::iter::traits::collec[·...·truncated·by·diffoscope;·len:·95,·SHA:·8b3be1d0042cae0550f865faf5849221240bdf04eb1b2107605b72d48c3ad29c·...·]/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:·5a1bcc1ddfc5fccf50d61bf2b8879dae247aa12c0b23ba2f437fd2a345cabac7·...·]/core/primitive.usize.html">usize</a><div·class="where">where97 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·995,·SHA:·bec3765fdab56713186e2454cd84738b5b28e3280a2f3d5a25cefdbc3089b520·...·]/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.78.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>·+·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/double_ended/trait.DoubleEndedIterator.html"·title="trait·core::iter::trai[·...·truncated·by·diffoscope;·len:·132,·SHA:·e5b2cf5f56946ede1e190ed09879c5821e2de04cf8e5d145142eeb40c6340982·...·]/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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(<a·class="primitive"·href="https://doc.rust-lang.org/1.78.0/core/primitive.reference.html">&amp;T</a>)·-&gt;·<a·class="primitive"·href="[·...·truncated·by·diffoscope;·len:·32,·SHA:·63d052a8ced32bf927ffadd7e884c08caf4970e85dfdf6be0e568d49b174da96·...·]/core/primitive.bool.html">bool</a>,</div></h4></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:·97056c44eac6a0f986fb2c8edec37302cc06edf44a6c6f7153a5d8623d8d6c0d·...·]/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.78.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:·0c224636c18baa273f69de21f90083317f2ea0b7367a3f0d0f1c0ace55a36f79·...·]/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.78.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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·135,·SHA:·51ff5f5c7ebd8440623ea71b125c5a5837e809e308fe1a13fbe19cddb941dbd9·...·]/core/primitive.bool.html">bool</a>,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iter_is_partitioned</code>&nbsp;<a·href="https://github.com/rust-lang/rust/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:·6f406a351b93047f56fa70265a6bf28ec6874f75cd6cc5a39d51c7af462f2992·...·]/core/iter/traits/iterator/trait.Iterator.html#method.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.78.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:·2c74873f4e5ba70004a1c7edd1cc3f9e2d91271295dd1591e2d26848df4c02ba·...·]/core/iter/traits/iterator/trait.Iterator.html#method.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.78.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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(B,·Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.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.78.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:·eecdce021399d206eb3ef5af12ee7663b4eb0dca55b0f411c7fa66f605b6b2e2·...·]/core/iter/traits/iterator/trait.Iterator.html#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.78.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:·52912e82c4b0a760d06f77eb4ee3a59ba70dd76cb532954900c73ae94c652674·...·]/core/iter/traits/iterator/trait.Iterator.html#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.78.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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.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.78.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.78.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:·ffdacd6b524bc823efebbf23dc0f77317a07fe9c8b691f2ea18db7aa0c08b146·...·]/core/iter/traits/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.78.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:·1d6c4809cea8748e901d3f94777f450d430f3161f6ac05ed1c178d9327f966a3·...·]/core/iter/traits/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.78.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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(B,·Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::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:·dbe3a08fe63abd47570741e71208c31aaf51152feac5917db07665a1f56bb3e3·...·]/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.78.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:·b60215068a6d9721be05f81098c51167d7138c4042f140cad42f77c4df43f597·...·]/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.78.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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·352,·SHA:·e7c3c296abe2c0a183967153e4ae7fd50bafa2ae7088e3e78b3b48fee253adc6·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::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:·a9dce8bb557b5a11426bf2ffcbd5eea7c6c870833e3ee5bb072dcaaa11687b0c·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_reduce"·class="fn">try_reduce</a>&lt;F,·R&gt;(119 operation.·<a·href="https://doc.rust-lang.org/1.78.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:·7a18fdd041b1a001b4a8feb289ee127fd9240232239269eb35dc3b8f74783ec9·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_reduce"·class="fn">try_reduce</a>&lt;F,·R&gt;(
120 ····&amp;mut·self,120 ····&amp;mut·self,
121 ····f:·F121 ····f:·F
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.78.0/core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&gt;::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/ops/try_trait/trait.Try.html#associatedtype.Residual"·title="type[·...·truncated·by·diffoscope;·len:·754,·SHA:·6fb4dfdb6b4da68921c1e7f8b75d99cf293d58318d684a840254ce9576957bea·...·]/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.78.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>(Self::<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,124 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·140,·SHA:·c27972e6fa3464c9476eaa185e8657edb6bb294f148403f3d079285294a9f909·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·R,
125 ····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;,125 ····R:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.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.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;,
Max diff block lines reached; 138553/317806 bytes (43.60%) of diff not shown.
271 KB
./usr/share/doc/rust-web-doc/html/alloc/vec/struct.ExtractIf.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="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.write(`<link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/SourceSerif4-Regular-46f98efaafac5295.ttf.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/FiraSans-Regular-018c141bf0843ffd.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/FiraSans-Medium-8f9a781e4970d388.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/SourceCodePro-Regular-562dcc5011b6de7d.ttf.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/SourceCodePro-Semibold-d899c5a5c4aeb14a.ttf.woff2">`)</script><link·rel="stylesheet"·href="../../static.files/normalize-76eba96aa4d2e634.css"><link·rel="stylesheet"·href="../../static.files/rustdoc-35f9e32502181f1e.css"><meta·name="rustdoc-vars"·data-root-path="../../"·data-static-root-path="../../static.files/"·data-current-crate="alloc"·data-themes=""·data-resource-suffix="1.78.0"·data-rustdoc-version="1.78.0"·data-channel="1.78.0"·data-search-js="search-42d8da7a6b9792c2.js"·data-settings-js="settings-4313503d2e1961c2.js"·><script·src="../../static.files/storage-4c98445ec4002617.js"></script><script·defer·src="sidebar-items1.78.0.js"></script><script·defer·src="../../static.files/main-12cf3b4f4f9dc36d.js"></script><noscript><link·rel="stylesheet"·href="../../static.files/noscript-04d5337699b92874.css"></noscript><link·rel="alternate·icon"·type="image/png"·href="../../static.files/favicon-16x16-8b506e7a72182f1c.png"><link·rel="alternate·icon"·type="image/png"·href="../../static.files/favicon-32x32-422f7d1d52889060.png"><link·rel="icon"·type="image/svg+xml"·href="../../static.files/favicon-2c020d218678b618.svg"></head><body·class="rustdoc·struct"><!--[if·lte·IE·11]><div·class="warning">This·old·browser·is·unsupported·and·will·most·likely·display·funky·things.</div><![endif]--><nav·class="mobile-topbar"><button·class="sidebar-menu-toggle"·title="show·sidebar"></button><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-151179464ae7ed46.svg"·alt=""></a></nav><nav·class="sidebar"><div·class="sidebar-crate"><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-151179464ae7ed46.svg"·alt="logo"></a><h2><a·href="../../alloc/index.html">alloc</a><span·class="version">1.78.0</span></h2></div><h2·class="location"><a·href="#">ExtractIf</a></h2><div·class="sidebar-elems"><section><h3><a·href="#implementations">Methods</a></h3><ul·class="block·method"><li><a·href="#method.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">Debug</a></li><li><a·href="#impl-Drop-for-ExtractIf%3C'_,+T,+F,+A%3E">Drop</a></li><li><a·href="#impl-Iterator-for-ExtractIf%3C'_,+T,+F,+A%3E">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">!UnwindSafe</a></li><li><a·href="#impl-Freeze-for-ExtractIf%3C'a,+T,+F,+A%3E">Freeze</a></li><li><a·href="#impl-RefUnwindSafe-for-ExtractIf%3C'a,+T,+F,+A%3E">RefUnwindSafe</a></li><li><a·href="#impl-Send-for-ExtractIf%3C'a,+T,+F,+A%3E">Send</a></li><li><a·href="#impl-Sync-for-ExtractIf%3C'a,+T,+F,+A%3E">Sync</a></li><li><a·href="#impl-Unpin-for-ExtractIf%3C'a,+T,+F,+A%3E">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">Any</a></li><li><a·href="#impl-Borrow%3CT%3E-for-T">Borrow&lt;T&gt;</a></li><li><a·href="#impl-BorrowMut%3CT%3E-for-T">BorrowMut&lt;T&gt;</a></li><li><a·href="#impl-From%3CT%3E-for-T">From&lt;T&gt;</a></li><li><a·href="#impl-Into%3CU%3E-for-T">Into&lt;U&gt;</a></li><li><a·href="#impl-IntoIterator-for-I">IntoIterator</a></li><li><a·href="#impl-TryFrom%3CU%3E-for-T">TryFrom&lt;U&gt;</a></li><li><a·href="#impl-TryInto%3CU%3E-for-T">TryInto&lt;U&gt;</a></li></ul></section><h2><a·href="index.html">In·alloc::vec</a></h2></div></nav><div·class="sidebar-resizer"></div>1 <!DOCTYPE·html><html·lang="en"><head><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.write(`<link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/SourceSerif4-Regular-46f98efaafac5295.ttf.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/FiraSans-Regular-018c141bf0843ffd.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/FiraSans-Medium-8f9a781e4970d388.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/SourceCodePro-Regular-562dcc5011b6de7d.ttf.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/SourceCodePro-Semibold-d899c5a5c4aeb14a.ttf.woff2">`)</script><link·rel="stylesheet"·href="../../static.files/normalize-76eba96aa4d2e634.css"><link·rel="stylesheet"·href="../../static.files/rustdoc-35f9e32502181f1e.css"><meta·name="rustdoc-vars"·data-root-path="../../"·data-static-root-path="../../static.files/"·data-current-crate="alloc"·data-themes=""·data-resource-suffix="1.78.0"·data-rustdoc-version="1.78.0"·data-channel="1.78.0"·data-search-js="search-42d8da7a6b9792c2.js"·data-settings-js="settings-4313503d2e1961c2.js"·><script·src="../../static.files/storage-4c98445ec4002617.js"></script><script·defer·src="sidebar-items1.78.0.js"></script><script·defer·src="../../static.files/main-12cf3b4f4f9dc36d.js"></script><noscript><link·rel="stylesheet"·href="../../static.files/noscript-04d5337699b92874.css"></noscript><link·rel="alternate·icon"·type="image/png"·href="../../static.files/favicon-16x16-8b506e7a72182f1c.png"><link·rel="alternate·icon"·type="image/png"·href="../../static.files/favicon-32x32-422f7d1d52889060.png"><link·rel="icon"·type="image/svg+xml"·href="../../static.files/favicon-2c020d218678b618.svg"></head><body·class="rustdoc·struct"><!--[if·lte·IE·11]><div·class="warning">This·old·browser·is·unsupported·and·will·most·likely·display·funky·things.</div><![endif]--><nav·class="mobile-topbar"><button·class="sidebar-menu-toggle"·title="show·sidebar"></button><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-151179464ae7ed46.svg"·alt=""></a></nav><nav·class="sidebar"><div·class="sidebar-crate"><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-151179464ae7ed46.svg"·alt="logo"></a><h2><a·href="../../alloc/index.html">alloc</a><span·class="version">1.78.0</span></h2></div><h2·class="location"><a·href="#">ExtractIf</a></h2><div·class="sidebar-elems"><section><h3><a·href="#implementations">Methods</a></h3><ul·class="block·method"><li><a·href="#method.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">Debug</a></li><li><a·href="#impl-Drop-for-ExtractIf%3C'_,+T,+F,+A%3E">Drop</a></li><li><a·href="#impl-Iterator-for-ExtractIf%3C'_,+T,+F,+A%3E">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">!UnwindSafe</a></li><li><a·href="#impl-Freeze-for-ExtractIf%3C'a,+T,+F,+A%3E">Freeze</a></li><li><a·href="#impl-RefUnwindSafe-for-ExtractIf%3C'a,+T,+F,+A%3E">RefUnwindSafe</a></li><li><a·href="#impl-Send-for-ExtractIf%3C'a,+T,+F,+A%3E">Send</a></li><li><a·href="#impl-Sync-for-ExtractIf%3C'a,+T,+F,+A%3E">Sync</a></li><li><a·href="#impl-Unpin-for-ExtractIf%3C'a,+T,+F,+A%3E">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">Any</a></li><li><a·href="#impl-Borrow%3CT%3E-for-T">Borrow&lt;T&gt;</a></li><li><a·href="#impl-BorrowMut%3CT%3E-for-T">BorrowMut&lt;T&gt;</a></li><li><a·href="#impl-From%3CT%3E-for-T">From&lt;T&gt;</a></li><li><a·href="#impl-Into%3CU%3E-for-T">Into&lt;U&gt;</a></li><li><a·href="#impl-IntoIterator-for-I">IntoIterator</a></li><li><a·href="#impl-TryFrom%3CU%3E-for-T">TryFrom&lt;U&gt;</a></li><li><a·href="#impl-TryInto%3CU%3E-for-T">TryInto&lt;U&gt;</a></li></ul></section><h2><a·href="index.html">In·alloc::vec</a></h2></div></nav><div·class="sidebar-resizer"></div>
2 ····<main><div·class="width-limiter"><nav·class="sub"><form·class="search-form"><span></span><div·id="sidebar-button"·tabindex="-1"><a·href="../../alloc/all.html"·title="show·sidebar"></a></div><input·class="search-input"·name="search"·aria-label="Run·search·in·the·documentation"·autocomplete="off"·spellcheck="false"·placeholder="Click·or·press·‘S’·to·search,·‘?’·for·more·options…"·type="search"><div·id="help-button"·tabindex="-1"><a·href="../../help.html"·title="help">?</a></div><div·id="settings-menu"·tabindex="-1"><a·href="../../settings.html"·title="settings"><img·width="22"·height="22"·alt="Change·settings"·src="../../static.files/wheel-7b819b6101059cd0.svg"></a></div></form></nav><section·id="main-content"·class="content"><div·class="main-heading"><h1>Struct·<a·href="../index.html">alloc</a>::<wbr><a·href="index.html">vec</a>::<wbr><a·class="struct"·href="#">ExtractIf</a><button·id="copy-path"·title="Copy·item·path·to·clipboard"><img·src="../../static.files/clipboard-7571035ce49a181d.svg"·width="19"·height="18"·alt="Copy·item·path"></button></h1><span·class="out-of-band"><a·class="src"·href="../../src/alloc/vec/extract_if.rs.html#23-40">source</a>···<button·id="toggle-all-docs"·title="collapse·all·docs">[<span>&#x2212;</span>]</button></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">where2 ····<main><div·class="width-limiter"><nav·class="sub"><form·class="search-form"><span></span><div·id="sidebar-button"·tabindex="-1"><a·href="../../alloc/all.html"·title="show·sidebar"></a></div><input·class="search-input"·name="search"·aria-label="Run·search·in·the·documentation"·autocomplete="off"·spellcheck="false"·placeholder="Click·or·press·‘S’·to·search,·‘?’·for·more·options…"·type="search"><div·id="help-button"·tabindex="-1"><a·href="../../help.html"·title="help">?</a></div><div·id="settings-menu"·tabindex="-1"><a·href="../../settings.html"·title="settings"><img·width="22"·height="22"·alt="Change·settings"·src="../../static.files/wheel-7b819b6101059cd0.svg"></a></div></form></nav><section·id="main-content"·class="content"><div·class="main-heading"><h1>Struct·<a·href="../index.html">alloc</a>::<wbr><a·href="index.html">vec</a>::<wbr><a·class="struct"·href="#">ExtractIf</a><button·id="copy-path"·title="Copy·item·path·to·clipboard"><img·src="../../static.files/clipboard-7571035ce49a181d.svg"·width="19"·height="18"·alt="Copy·item·path"></button></h1><span·class="out-of-band"><a·class="src"·href="../../src/alloc/vec/extract_if.rs.html#23-40">source</a>···<button·id="toggle-all-docs"·title="collapse·all·docs">[<span>&#x2212;</span>]</button></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
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.reference.html">&amp;mut·T</a>)·-&gt;·<a·class="primitive"·href="../../core/primitive.bool.html">bool</a>,</div>{·<span·class="comment">/*·private·fields·*/</span>·}</code></pre><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>extract_if</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/43244">#43244</a>)</span></div></span><details·class="toggle·top-doc"·open><summary·class="hideme"><span>Expand·description</span></summary><div·class="docblock"><p>An·iterator·which·uses·a·closure·to·determine·if·an·element·should·be·removed.</p>3 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(<a·class="primitive"·href="https://doc.rust-lang.org/1.78.0/core/primitive.reference.html">&amp;mut·T</a>)·-&gt;·<a·class="primitive"·hr[·...·truncated·by·diffoscope;·len:·36,·SHA:·043df48cfec746bfcafe095bde31580d363117402af6fb43b62085ddd20eaaf8·...·]/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>
4 <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 <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>.
5 See·its·documentation·for·more.</p>5 See·its·documentation·for·more.</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="attr">#![feature(extract_if)]7 <div·class="example-wrap"><pre·class="rust·rust-example-rendered"><code><span·class="attr">#![feature(extract_if)]
  
8 </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><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>];
9 <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"·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">Run</a></div>9 <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"·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">Run</a></div>
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-ExtractIf%3C'_,+T,+F,+A%3E"·class="impl"><a·class="src·rightside"·href="../../src/alloc/vec/extract_if.rs.html#42-52">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">where10 </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#42-52">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
11 ····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:·929b5e7b23e07fc9466fffcc5f709889b2481e43f69b22c53b8362556434a04b·...·]/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 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(<a·class="primitive"·href="https://doc.rust-lang.org/1.78.0/core/primitive.reference.html">&amp;mut·T</a>)·-&gt;·<a·class="primitive"·hr[·...·truncated·by·diffoscope;·len:·472,·SHA:·5be0737a2ce111de982d1b25fbb36fb6bfeacf4dbd0ac1ee7c6050eb95d889cc·...·]/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>
12 </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#21">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">where12 </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#21">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
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>·+·<a·clas[·...·truncated·by·diffoscope;·len:·1343,·SHA:·21901180544d3ef3bad670922de4932692b79285cb60384a2555ffdbb1f3a45d·...·]/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">where13 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(<a·class="primitive"·href="https://doc.rust-lang.org/1.78.0/core/primitive.reference.html">&amp;mut·T</a>)·-&gt;·<a·class="primitive"·hr[·...·truncated·by·diffoscope;·len:·1451,·SHA:·415a40260f6c2d805bfabf850f3531f063fdeb07ddc0de35b571ad62f8da2f2a·...·]/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
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:·1065,·SHA:·ff7a7720ee21a98e9ccbb5f6a9b724cb9d144d3117bbd5c328aa5e6143c713b2·...·]/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">where14 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(<a·class="primitive"·href="https://doc.rust-lang.org/1.78.0/core/primitive.reference.html">&amp;mut·T</a>)·-&gt;·<a·class="primitive"·hr[·...·truncated·by·diffoscope;·len:·1227,·SHA:·76e27f88d7ab64e7adc59024926f45c52f38d39ac3ac5e6b56c908242ae35953·...·]/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
15 ····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:·2437,·SHA:·02eabdbdb8d899ad83c9376650bb5785396ab9c8b5047dd130f15ca32ffc92e4·...·]/core/primitive.usize.html">usize</a>&gt;(15 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(<a·class="primitive"·href="https://doc.rust-lang.org/1.78.0/core/primitive.reference.html">&amp;mut·T</a>)·-&gt;·<a·class="primitive"·hr[·...·truncated·by·diffoscope;·len:·2842,·SHA:·8a3b01c3afb4faaf5976ee1e4f21865439acf2e8d08444dd883f38d798970974·...·]/core/primitive.usize.html">usize</a>&gt;(
16 ····&amp;mut·self16 ····&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.78.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.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title=[·...·truncated·by·diffoscope;·len:·381,·SHA:·88c48923c9b7ea5cc47c1087c60e09656e81d4671c58071ba2bef826335388bc·...·]/core/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:·602d17b58d1cf716882ddc867fc66cfda4f899bef17b038a48553e9133f60097·...·]/core/primitive.usize.html">usize</a><div·class="where">where18 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></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:·89791450da70cbd536c3cf8fbf2dd9891668362f9a252d3ee098222d19960bae·...·]/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:·5b5aaec46c04cf77d2fa06e88cd6f0a2bd8d201412bc325302bd2f8f21b39207·...·]/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.78.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:·84ae0beb16240102bae2355bb8c543b17f3f107e3c06b320839aa401eebb1945·...·]/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:·6b808f54a13578d2e276864bb3eb79ae7b452b8959e79f7ea7ab1180574b77fc·...·]/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.78.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.78.0/cor[·...·truncated·by·diffoscope;·len:·3504,·SHA:·6d21b6d637e0b2e9953a37a26fd19e00da089147d4acaf696c94d448de4ce419·...·]/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.78.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:·5667b9b6c9778ff3b9d23ed0a110e7ab9d3fccc786fdcaca8c17edf996236439·...·]/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.78.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:·e83c903581753673e083ce8dd809879a2fc81ab3050eb6db267d7fa26b15e035·...·]/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.78.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:·1c6bb9803ee8832ebd4c28a08a952178165595b6870cf35d3c89454b9da828b2·...·]/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.78.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.78.0/core/iter/traits/it[·...·truncated·by·diffoscope;·len:·1329,·SHA:·d9299c8edc606ed82f24d61ce441bec451141d684c2a9a75074f5b19c57f196c·...·]/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.78.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:·c1b5e692e89c9c809075ee8ee72fb15a9ec46c075b08450e1f707d672a224750·...·]/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.78.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:·98627729f77dcf1c9d258f343354ba600b7134c6b3929080f231e8de7155b70b·...·]/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.78.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.78.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.78.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:·d6282409add0999f2130eb6bbe6d0473ce96bf2544799e8bc22156f3c2d2e0dd·...·]/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.78.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:·7301b6beba7b6885849be90a625df68ef739a5374af456c51fe2e81d91a25363·...·]/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.78.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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::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:·fb4c9589a16c7b6d697c109d1193d2f1e763e5dd967101c2fd92b32416972229·...·]/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.78.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:·98f6effefa44d759c249143d83623f0055d937382bfc398b7e1f5e92cd413657·...·]/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.78.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:·7abbad666ec88a1053b8aca2a481d629a3ef3596eddb570c381205fa2d859a52·...·]/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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·916,·SHA:·30d0b2a76513c5a880e9aee43e92b18805845cfcfe5783f62dc090167a439e63·...·]/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.78.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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·140,·SHA:·752f473b57e7444ebfddf5ea7fd40a332e83ec55524a6c31b5ee0f82a5dea819·...·]/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:·7da07154834a15b8ae55b4fd41479da070ccbd27e071909f81698570c306a081·...·]/core/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.78.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:·76aa2ad154f88085ee3f8a22721a7e6812680bac785d19059532407f50da1801·...·]/core/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.78.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:·c89169e5bf1c4724c7b411e568b6dad6475896f2606f557b3d708359ef71f5cc·...·]/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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·1052,·SHA:·110b47c7083083d565fcfc89337fddc8e5c87e81b2f720f3f7b0ded55e8500fb·...·]/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.78.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:·53634008856676c70c32b501f7ec498c1f86d123cc9b5b898256a69895ff31fc·...·]/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.78.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:·8464264e074dde5d84f0414ab3b5b2d8da83f3c9e3ca04c45458241580a8c80d·...·]/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.78.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.78.0/core/iter/adapte[·...·truncated·by·diffoscope;·len:·175,·SHA:·16fe7225bf05b478e2828b347c3d23ded9a22f89d8887a2c65d9f7b3faf1b0e7·...·]/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:·77dd41e041d66c618d306e900a9159cf1b00478b8f37e5692be62119a1d4fcda·...·]/core/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.78.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:·00ccbb673c11ed48d8c6aa2a3f8984fb298202e7bccfa42f1ac21290fcc0fb06·...·]/core/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.78.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:·c18326af66652e52fa627bfd0312af7fa2ad0ddc162b12a46e61047a031b0264·...·]/core/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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·1234,·SHA:·3b805567411cdcebed740f9e8d400dbe7fb487504f40e284544a140155090fdf·...·]/core/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.78.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:·39eeddf219b211245393e51a591d5064c740fa9be49d88883d8a6474679741ad·...·]/core/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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·1058,·SHA:·b390dbdda8d7e93604b5ecd906a93efd03fe19bdaf41cf12893fd361bf974307·...·]/core/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.78.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:·9369fa85b74ff841f7401949cadba6dfbbbeead2a99568f20dcfd5aab20d61ab·...·]/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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·1163,·SHA:·5772149166d344bf8fa5ebbd9db8693a8f2e5f031c50338e8f1523ef72f814d6·...·]/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:·a25e81a74cc82c1837477e2b0cea682fff9f43550640901b8010ac501ca69e3d·...·]/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.78.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:·6216516fe581c401abda3c95818192e8f030e2008c9bbdbaafebba16f33ea9bd·...·]/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.78.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:·de8f1023275132502c1569b0ef9a557dc98eaf60aae97cdb916e52f9f55100aa·...·]/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.78.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:·485843399c56e24bdf020ff0610d0ce1f62fbac5530d9880a1a7417105e3d70f·...·]/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.78.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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(<a·class="primitive"·href="https://doc.rust-lang.org/1.78.0/core/primitive.reference.html">&amp;mut·St</a>,·Self::<a·class="associatedty[·...·truncated·by·diffoscope;·len:·449,·SHA:·f12c268a8a8111b9e7126ad78bf5523a63733caa63d187c4fe792309ea41acdf·...·]/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:·8b31595e3cee3022819032aac82e3df712188a2a6dcc20da6939262e5e528591·...·]/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.78.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.78.0/core/iter/trai[·...·truncated·by·diffoscope;·len:·690,·SHA:·371190e5c1bf9b7dde6e84447965a69946212b977b9eb6d89048fbe34c5dda1c·...·]/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.78.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.78.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:·9b6a337a3ad68c2a987b52450c153f87a04a8ed9e83603d26077fe6e70d61edf·...·]/core/iter/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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·976,·SHA:·2a9182f6fe88e0b8a9b1ae1f46cace940cc0b8736033c354c0f0ccbf1c196e7a·...·]/core/iter/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.78.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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;[Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtyp[·...·truncated·by·diffoscope;·len:·135,·SHA:·0b06a6094d42ccbc8bce5b01c4383961fe7f1967f05e4c9f1ff33e71e425fb26·...·]/core/primitive.array.html">N</a>])·-&gt;·R,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iter_map_windows</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/87155">#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.78.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:·238f6b49b3e28d725c57040edaa60bfbb34f140155e6af1d30eab52da1c7274f·...·]/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.78.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:·0d33056cee8a4f9b70b573c0adecc2f3599a2f8d9fa9f2c2044e9118ab134f73·...·]/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:·cfd3edf89fe5aca24b994f83b0d7da765620394e35140e694d98233d4d92481b·...·]/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.78.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.78.0/core/op[·...·truncated·by·diffoscope;·len:·841,·SHA:·9cba1b175fb3726d7f1f01da9be7c1a56568a68e4ce7915a468b730902daf8d3·...·]/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.78.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:·772,·SHA:·31d2052382378512fa905c6d5297d384eac7b7f126141ce561719c0e27cc9d39·...·]/core/primitive.reference.html">&amp;mut·Self</a><div·class="where">where66 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·934,·SHA:·ea20d2e0fe9388580ea08100baa9120b5e9b6cb48f43fc846f15db8b9649e7f6·...·]/core/primitive.reference.html">&amp;mut·Self</a><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:·98760b16b1ed91f9558e6e2637724a4608316181d5f6f4d236e896a83eca9af9·...·]/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.78.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.78.0/core/it[·...·truncated·by·diffoscope;·len:·523,·SHA:·97064c705f6f4bdf74469c54fabcf580d21893127d1b4cd9a9c1018a717ef153·...·]/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.78.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.78.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:·e5d524e874326d0b9b733f5ee809c6595cde869afab0cc3d4ba8454093f420da·...·]/core/primitive.reference.html">&amp;mut·E</a><div·class="where">where69 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.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.78.0/core/iter/tr[·...·truncated·by·diffoscope;·len:·728,·SHA:·01937c2dc314c259495665570ae249c94b4a5b0719718f5f1188e6fc64ecf487·...·]/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.78.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.78.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:·b0297783e056393a542c4058b42c18523a86c961c1b6ce3bc94342c1a2c10c58·...·]/core/primitive.tuple.html">(B,·B)</a><div·class="where">where71 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></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:·00bd47017b1bdd1bbe2c3fc932d955a8aa2f7f5eff8c00e3001ae28a982a5883·...·]/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.78.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.78.0/core/default/trait.Default.html"·title="trait·core::default::Default">Default</a>·+·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/collect/trait.Extend.html"·title="trait·core::iter::traits::collec[·...·truncated·by·diffoscope;·len:·95,·SHA:·8b3be1d0042cae0550f865faf5849221240bdf04eb1b2107605b72d48c3ad29c·...·]/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:·f8b50287f3e106633ed79a84072d3ddd9d98672efd685d2433c61b5549ce051e·...·]/core/primitive.bool.html">bool</a><div·class="where">where74 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·972,·SHA:·6de765542031617a9c28ac98fe6df619e58e62d9c65ec5b1c185a7152b8944e5·...·]/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.78.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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·135,·SHA:·51ff5f5c7ebd8440623ea71b125c5a5837e809e308fe1a13fbe19cddb941dbd9·...·]/core/primitive.bool.html">bool</a>,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iter_is_partitioned</code>&nbsp;<a·href="https://github.com/rust-lang/rust/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:·6f406a351b93047f56fa70265a6bf28ec6874f75cd6cc5a39d51c7af462f2992·...·]/core/iter/traits/iterator/trait.Iterator.html#method.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.78.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:·2c74873f4e5ba70004a1c7edd1cc3f9e2d91271295dd1591e2d26848df4c02ba·...·]/core/iter/traits/iterator/trait.Iterator.html#method.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.78.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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(B,·Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.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.78.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:·eecdce021399d206eb3ef5af12ee7663b4eb0dca55b0f411c7fa66f605b6b2e2·...·]/core/iter/traits/iterator/trait.Iterator.html#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.78.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:·52912e82c4b0a760d06f77eb4ee3a59ba70dd76cb532954900c73ae94c652674·...·]/core/iter/traits/iterator/trait.Iterator.html#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.78.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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.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.78.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.78.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:·ffdacd6b524bc823efebbf23dc0f77317a07fe9c8b691f2ea18db7aa0c08b146·...·]/core/iter/traits/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.78.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:·1d6c4809cea8748e901d3f94777f450d430f3161f6ac05ed1c178d9327f966a3·...·]/core/iter/traits/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.78.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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(B,·Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::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:·dbe3a08fe63abd47570741e71208c31aaf51152feac5917db07665a1f56bb3e3·...·]/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.78.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:·b60215068a6d9721be05f81098c51167d7138c4042f140cad42f77c4df43f597·...·]/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.78.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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·352,·SHA:·e7c3c296abe2c0a183967153e4ae7fd50bafa2ae7088e3e78b3b48fee253adc6·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::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:·a9dce8bb557b5a11426bf2ffcbd5eea7c6c870833e3ee5bb072dcaaa11687b0c·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_reduce"·class="fn">try_reduce</a>&lt;F,·R&gt;(91 operation.·<a·href="https://doc.rust-lang.org/1.78.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:·7a18fdd041b1a001b4a8feb289ee127fd9240232239269eb35dc3b8f74783ec9·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_reduce"·class="fn">try_reduce</a>&lt;F,·R&gt;(
92 ····&amp;mut·self,92 ····&amp;mut·self,
93 ····f:·F93 ····f:·F
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.78.0/core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&gt;::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/ops/try_trait/trait.Try.html#associatedtype.Residual"·title="type[·...·truncated·by·diffoscope;·len:·754,·SHA:·6fb4dfdb6b4da68921c1e7f8b75d99cf293d58318d684a840254ce9576957bea·...·]/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.78.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:·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:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·140,·SHA:·c27972e6fa3464c9476eaa185e8657edb6bb294f148403f3d079285294a9f909·...·]/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·=·Self::<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.78.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.78.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.78.0/core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&gt;::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/ops/try_trait/trait.Try.html#associatedtype.Residual"·title="type[·...·truncated·by·diffoscope;·len:·412,·SHA:·22b8cbb007e5cce82b9d13a65bfa56aa8d83c32541fac25f4d9b3857b0540908·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;&gt;,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iterator_try_reduce</code>&nbsp;<a·href="https://github.com/rust-lang/rust/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:·65b80c848af6e465c8c5aef4ec8d3faaa399d30c8427c9507fda7b3bd1d3ea93·...·]/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.78.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:·bc0d658d56e348823de15386e1cd4ab49109f3a7a055a4573a19391b47071193·...·]/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.78.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:·95a840b532d3d621bde4032d63854eb0a481248e2b4bbb3ef058dbffb4dae4fa·...·]/core/primitive.bool.html">bool</a><div·class="where">where101 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·1018,·SHA:·e61cd6bdd36729cc38e57fcaea2ccb91a23a5acbda3c8986071f19bf1ecfc52a·...·]/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.78.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:·f828c62edd4fe85e217286f359b56c116e14ed18bb292ba1cc13d3ed7146909e·...·]/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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·1172,·SHA:·e64ab74d116d286191ad43d9d9e10411fc011c23724aa806e9a8f9b0be0757e3·...·]/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.78.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:·21d7086b3ce0092e3f7a6a41174339bbd8724e7d186158db4db3385a73d94e8e·...·]/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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·1051,·SHA:·ecc0b8fccd861464760f9ae047ff6ab98c91a1db010cb5fa59a8c2ab883db7c4·...·]/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.78.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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·130,·SHA:·130a13019dc175d02304b4f550157e2f13ac15c2f25a979c74161d10b146ab89·...·]/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:·ac4da3337aac1ec10038e246be9cb719eeb5af1acc709f5a6a25b91900c56f53·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_find"·class="fn">try_find</a>&lt;F,·R&gt;(108 the·first·non-none·result.·<a·href="https://doc.rust-lang.org/1.78.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:·8ced1b10e78750774c5c8ed995ed83dcd13983aa75d329acf8069da106ab9f4a·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_find"·class="fn">try_find</a>&lt;F,·R&gt;(
109 ····&amp;mut·self,109 ····&amp;mut·self,
110 ····f:·F110 ····f:·F
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.78.0/core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&gt;::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/ops/try_trait/trait.Try.html#associatedtype.Residual"·title="type[·...·truncated·by·diffoscope;·len:·626,·SHA:·95f9831257b68862cbcbf54f0ad2ff4e597a4c9f763112d1da8a0897dadcf872·...·]/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.78.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;·R,113 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·R,
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.78.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.78.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</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·returns115 ····&lt;R·as·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&gt;::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/ops/try_trait/trait.Try.html#associatedtype.Residual"·title="type[·...·truncated·by·diffoscope;·len:·412,·SHA:·22b8cbb007e5cce82b9d13a65bfa56aa8d83c32541fac25f4d9b3857b0540908·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;&gt;,</div></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"·title=[·...·truncated·by·diffoscope;·len:·500,·SHA:·6f6d3020318163bcda361341111df240626dda893c7c1abae6fd12048bcff7a2·...·]/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.78.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:·fa9d94b216f6e4ce6035b4762e3bf17cb86a0272db0a55a056f05c68bcaeb0da·...·]/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.78.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::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">where118 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·1190,·SHA:·882e9e9a037f916d0ed4aa6d749399e6e01ca81811eacfc54a484818cb5d5029·...·]/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 ····B:·<a·class="trait"·href="../../core/cmp/trait.Ord.html"·title="trait·core::cmp::Ord">Ord</a>,119 ····B:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/cmp/trait.Ord.html"·title="trait·core::cmp::Ord">Ord</a>,
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.78.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::Iterator::Item">Item</a>)·-&gt;·B,</div></h4></section></summary><div·class='docblock'>Returns·the·element·that·gives·the·maximum·value·from·the121 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/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
122 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">where122 specified·function.·<a·href="https://doc.rust-lang.org/1.78.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:·0367b1bacc0a7d8e05f1c5181f8c4ea428f3f11edbae0e76811f3ef1d4925e41·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;<div·class="where">where
123 ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,123 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.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::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·the124 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·346,·SHA:·7113e4c2d65a123253bb18971efdc2d49241cfc2dd4c2b18e4cfa4e4d7d4140f·...·]/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
125 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">where125 specified·comparison·function.·<a·href="https://doc.rust-lang.org/1.78.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:·db89d4cca0becf2a4ab904adac2870de6fd83cfad5131f5a1431a67766274f81·...·]/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.78.0/core/cmp/trait.Ord.html"·title="trait·core::cmp::Ord">Ord</a>,
Max diff block lines reached; 79519/277843 bytes (28.62%) of diff not shown.
318 KB
./usr/share/doc/rust-web-doc/html/alloc/vec/struct.IntoIter.html
    
Offset 1, 241 lines modifiedOffset 1, 241 lines modified
1 <!DOCTYPE·html><html·lang="en"><head><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.write(`<link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/SourceSerif4-Regular-46f98efaafac5295.ttf.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/FiraSans-Regular-018c141bf0843ffd.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/FiraSans-Medium-8f9a781e4970d388.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/SourceCodePro-Regular-562dcc5011b6de7d.ttf.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/SourceCodePro-Semibold-d899c5a5c4aeb14a.ttf.woff2">`)</script><link·rel="stylesheet"·href="../../static.files/normalize-76eba96aa4d2e634.css"><link·rel="stylesheet"·href="../../static.files/rustdoc-35f9e32502181f1e.css"><meta·name="rustdoc-vars"·data-root-path="../../"·data-static-root-path="../../static.files/"·data-current-crate="alloc"·data-themes=""·data-resource-suffix="1.78.0"·data-rustdoc-version="1.78.0"·data-channel="1.78.0"·data-search-js="search-42d8da7a6b9792c2.js"·data-settings-js="settings-4313503d2e1961c2.js"·><script·src="../../static.files/storage-4c98445ec4002617.js"></script><script·defer·src="sidebar-items1.78.0.js"></script><script·defer·src="../../static.files/main-12cf3b4f4f9dc36d.js"></script><noscript><link·rel="stylesheet"·href="../../static.files/noscript-04d5337699b92874.css"></noscript><link·rel="alternate·icon"·type="image/png"·href="../../static.files/favicon-16x16-8b506e7a72182f1c.png"><link·rel="alternate·icon"·type="image/png"·href="../../static.files/favicon-32x32-422f7d1d52889060.png"><link·rel="icon"·type="image/svg+xml"·href="../../static.files/favicon-2c020d218678b618.svg"></head><body·class="rustdoc·struct"><!--[if·lte·IE·11]><div·class="warning">This·old·browser·is·unsupported·and·will·most·likely·display·funky·things.</div><![endif]--><nav·class="mobile-topbar"><button·class="sidebar-menu-toggle"·title="show·sidebar"></button><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-151179464ae7ed46.svg"·alt=""></a></nav><nav·class="sidebar"><div·class="sidebar-crate"><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-151179464ae7ed46.svg"·alt="logo"></a><h2><a·href="../../alloc/index.html">alloc</a><span·class="version">1.78.0</span></h2></div><h2·class="location"><a·href="#">IntoIter</a></h2><div·class="sidebar-elems"><section><h3><a·href="#implementations">Methods</a></h3><ul·class="block·method"><li><a·href="#method.allocator">allocator</a></li><li><a·href="#method.as_mut_slice">as_mut_slice</a></li><li><a·href="#method.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">AsRef&lt;[T]&gt;</a></li><li><a·href="#impl-Clone-for-IntoIter%3CT,+A%3E">Clone</a></li><li><a·href="#impl-Debug-for-IntoIter%3CT,+A%3E">Debug</a></li><li><a·href="#impl-Default-for-IntoIter%3CT,+A%3E">Default</a></li><li><a·href="#impl-DoubleEndedIterator-for-IntoIter%3CT,+A%3E">DoubleEndedIterator</a></li><li><a·href="#impl-Drop-for-IntoIter%3CT,+A%3E">Drop</a></li><li><a·href="#impl-ExactSizeIterator-for-IntoIter%3CT,+A%3E">ExactSizeIterator</a></li><li><a·href="#impl-FusedIterator-for-IntoIter%3CT,+A%3E">FusedIterator</a></li><li><a·href="#impl-Iterator-for-IntoIter%3CT,+A%3E">Iterator</a></li><li><a·href="#impl-Send-for-IntoIter%3CT,+A%3E">Send</a></li><li><a·href="#impl-Sync-for-IntoIter%3CT,+A%3E">Sync</a></li><li><a·href="#impl-TrustedLen-for-IntoIter%3CT,+A%3E">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">Freeze</a></li><li><a·href="#impl-RefUnwindSafe-for-IntoIter%3CT,+A%3E">RefUnwindSafe</a></li><li><a·href="#impl-Unpin-for-IntoIter%3CT,+A%3E">Unpin</a></li><li><a·href="#impl-UnwindSafe-for-IntoIter%3CT,+A%3E">UnwindSafe</a></li></ul><h3><a·href="#blanket-implementations">Blanket·Implementations</a></h3><ul·class="block·blanket-implementation"><li><a·href="#impl-Any-for-T">Any</a></li><li><a·href="#impl-Borrow%3CT%3E-for-T">Borrow&lt;T&gt;</a></li><li><a·href="#impl-BorrowMut%3CT%3E-for-T">BorrowMut&lt;T&gt;</a></li><li><a·href="#impl-From%3CT%3E-for-T">From&lt;T&gt;</a></li><li><a·href="#impl-Into%3CU%3E-for-T">Into&lt;U&gt;</a></li><li><a·href="#impl-IntoIterator-for-I">IntoIterator</a></li><li><a·href="#impl-ToOwned-for-T">ToOwned</a></li><li><a·href="#impl-TryFrom%3CU%3E-for-T">TryFrom&lt;U&gt;</a></li><li><a·href="#impl-TryInto%3CU%3E-for-T">TryInto&lt;U&gt;</a></li></ul></section><h2><a·href="index.html">In·alloc::vec</a></h2></div></nav><div·class="sidebar-resizer"></div>1 <!DOCTYPE·html><html·lang="en"><head><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.write(`<link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/SourceSerif4-Regular-46f98efaafac5295.ttf.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/FiraSans-Regular-018c141bf0843ffd.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/FiraSans-Medium-8f9a781e4970d388.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/SourceCodePro-Regular-562dcc5011b6de7d.ttf.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/SourceCodePro-Semibold-d899c5a5c4aeb14a.ttf.woff2">`)</script><link·rel="stylesheet"·href="../../static.files/normalize-76eba96aa4d2e634.css"><link·rel="stylesheet"·href="../../static.files/rustdoc-35f9e32502181f1e.css"><meta·name="rustdoc-vars"·data-root-path="../../"·data-static-root-path="../../static.files/"·data-current-crate="alloc"·data-themes=""·data-resource-suffix="1.78.0"·data-rustdoc-version="1.78.0"·data-channel="1.78.0"·data-search-js="search-42d8da7a6b9792c2.js"·data-settings-js="settings-4313503d2e1961c2.js"·><script·src="../../static.files/storage-4c98445ec4002617.js"></script><script·defer·src="sidebar-items1.78.0.js"></script><script·defer·src="../../static.files/main-12cf3b4f4f9dc36d.js"></script><noscript><link·rel="stylesheet"·href="../../static.files/noscript-04d5337699b92874.css"></noscript><link·rel="alternate·icon"·type="image/png"·href="../../static.files/favicon-16x16-8b506e7a72182f1c.png"><link·rel="alternate·icon"·type="image/png"·href="../../static.files/favicon-32x32-422f7d1d52889060.png"><link·rel="icon"·type="image/svg+xml"·href="../../static.files/favicon-2c020d218678b618.svg"></head><body·class="rustdoc·struct"><!--[if·lte·IE·11]><div·class="warning">This·old·browser·is·unsupported·and·will·most·likely·display·funky·things.</div><![endif]--><nav·class="mobile-topbar"><button·class="sidebar-menu-toggle"·title="show·sidebar"></button><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-151179464ae7ed46.svg"·alt=""></a></nav><nav·class="sidebar"><div·class="sidebar-crate"><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-151179464ae7ed46.svg"·alt="logo"></a><h2><a·href="../../alloc/index.html">alloc</a><span·class="version">1.78.0</span></h2></div><h2·class="location"><a·href="#">IntoIter</a></h2><div·class="sidebar-elems"><section><h3><a·href="#implementations">Methods</a></h3><ul·class="block·method"><li><a·href="#method.allocator">allocator</a></li><li><a·href="#method.as_mut_slice">as_mut_slice</a></li><li><a·href="#method.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">AsRef&lt;[T]&gt;</a></li><li><a·href="#impl-Clone-for-IntoIter%3CT,+A%3E">Clone</a></li><li><a·href="#impl-Debug-for-IntoIter%3CT,+A%3E">Debug</a></li><li><a·href="#impl-Default-for-IntoIter%3CT,+A%3E">Default</a></li><li><a·href="#impl-DoubleEndedIterator-for-IntoIter%3CT,+A%3E">DoubleEndedIterator</a></li><li><a·href="#impl-Drop-for-IntoIter%3CT,+A%3E">Drop</a></li><li><a·href="#impl-ExactSizeIterator-for-IntoIter%3CT,+A%3E">ExactSizeIterator</a></li><li><a·href="#impl-FusedIterator-for-IntoIter%3CT,+A%3E">FusedIterator</a></li><li><a·href="#impl-Iterator-for-IntoIter%3CT,+A%3E">Iterator</a></li><li><a·href="#impl-Send-for-IntoIter%3CT,+A%3E">Send</a></li><li><a·href="#impl-Sync-for-IntoIter%3CT,+A%3E">Sync</a></li><li><a·href="#impl-TrustedLen-for-IntoIter%3CT,+A%3E">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">Freeze</a></li><li><a·href="#impl-RefUnwindSafe-for-IntoIter%3CT,+A%3E">RefUnwindSafe</a></li><li><a·href="#impl-Unpin-for-IntoIter%3CT,+A%3E">Unpin</a></li><li><a·href="#impl-UnwindSafe-for-IntoIter%3CT,+A%3E">UnwindSafe</a></li></ul><h3><a·href="#blanket-implementations">Blanket·Implementations</a></h3><ul·class="block·blanket-implementation"><li><a·href="#impl-Any-for-T">Any</a></li><li><a·href="#impl-Borrow%3CT%3E-for-T">Borrow&lt;T&gt;</a></li><li><a·href="#impl-BorrowMut%3CT%3E-for-T">BorrowMut&lt;T&gt;</a></li><li><a·href="#impl-From%3CT%3E-for-T">From&lt;T&gt;</a></li><li><a·href="#impl-Into%3CU%3E-for-T">Into&lt;U&gt;</a></li><li><a·href="#impl-IntoIterator-for-I">IntoIterator</a></li><li><a·href="#impl-ToOwned-for-T">ToOwned</a></li><li><a·href="#impl-TryFrom%3CU%3E-for-T">TryFrom&lt;U&gt;</a></li><li><a·href="#impl-TryInto%3CU%3E-for-T">TryInto&lt;U&gt;</a></li></ul></section><h2><a·href="index.html">In·alloc::vec</a></h2></div></nav><div·class="sidebar-resizer"></div>
2 ····<main><div·class="width-limiter"><nav·class="sub"><form·class="search-form"><span></span><div·id="sidebar-button"·tabindex="-1"><a·href="../../alloc/all.html"·title="show·sidebar"></a></div><input·class="search-input"·name="search"·aria-label="Run·search·in·the·documentation"·autocomplete="off"·spellcheck="false"·placeholder="Click·or·press·‘S’·to·search,·‘?’·for·more·options…"·type="search"><div·id="help-button"·tabindex="-1"><a·href="../../help.html"·title="help">?</a></div><div·id="settings-menu"·tabindex="-1"><a·href="../../settings.html"·title="settings"><img·width="22"·height="22"·alt="Change·settings"·src="../../static.files/wheel-7b819b6101059cd0.svg"></a></div></form></nav><section·id="main-content"·class="content"><div·class="main-heading"><h1>Struct·<a·href="../index.html">alloc</a>::<wbr><a·href="index.html">vec</a>::<wbr><a·class="struct"·href="#">IntoIter</a><button·id="copy-path"·title="Copy·item·path·to·clipboard"><img·src="../../static.files/clipboard-7571035ce49a181d.svg"·width="19"·height="18"·alt="Copy·item·path"></button></h1><span·class="out-of-band"><span·class="since"·title="Stable·since·Rust·version·1.0.0">1.0.0</span>···<a·class="src"·href="../../src/alloc/vec/into_iter.rs.html#45-61">source</a>···<button·id="toggle-all-docs"·title="collapse·all·docs">[<span>&#x2212;</span>]</button></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 ····<main><div·class="width-limiter"><nav·class="sub"><form·class="search-form"><span></span><div·id="sidebar-button"·tabindex="-1"><a·href="../../alloc/all.html"·title="show·sidebar"></a></div><input·class="search-input"·name="search"·aria-label="Run·search·in·the·documentation"·autocomplete="off"·spellcheck="false"·placeholder="Click·or·press·‘S’·to·search,·‘?’·for·more·options…"·type="search"><div·id="help-button"·tabindex="-1"><a·href="../../help.html"·title="help">?</a></div><div·id="settings-menu"·tabindex="-1"><a·href="../../settings.html"·title="settings"><img·width="22"·height="22"·alt="Change·settings"·src="../../static.files/wheel-7b819b6101059cd0.svg"></a></div></form></nav><section·id="main-content"·class="content"><div·class="main-heading"><h1>Struct·<a·href="../index.html">alloc</a>::<wbr><a·href="index.html">vec</a>::<wbr><a·class="struct"·href="#">IntoIter</a><button·id="copy-path"·title="Copy·item·path·to·clipboard"><img·src="../../static.files/clipboard-7571035ce49a181d.svg"·width="19"·height="18"·alt="Copy·item·path"></button></h1><span·class="out-of-band"><span·class="since"·title="Stable·since·Rust·version·1.0.0">1.0.0</span>···<a·class="src"·href="../../src/alloc/vec/into_iter.rs.html#45-61">source</a>···<button·id="toggle-all-docs"·title="collapse·all·docs">[<span>&#x2212;</span>]</button></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>
3 <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 <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>
4 (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>4 (provided·by·the·<a·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/collect/trait.IntoIterator.html"·title="trait·core::iter::traits::collect::IntoIterator"><code>IntoIterator</code></a>·trait).</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="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 <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>];
7 <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"·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">Run</a></div>7 <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"·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">Run</a></div>
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-IntoIter%3CT,+A%3E"·class="impl"><a·class="src·rightside"·href="../../src/alloc/vec/into_iter.rs.html#70-183">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>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-IntoIter%3CT,+A%3E"·class="impl"><a·class="src·rightside"·href="../../src/alloc/vec/into_iter.rs.html#70-183">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.78.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>
9 <h5·id="examples"><a·class="doc-anchor"·href="#examples">§</a>Examples</h5>9 <h5·id="examples"><a·class="doc-anchor"·href="#examples">§</a>Examples</h5>
10 <div·class="example-wrap"><pre·class="rust·rust-example-rendered"><code><span·class="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 <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>];
11 <span·class="kw">let·</span><span·class="kw-2">mut·</span>into_iter·=·vec.into_iter();11 <span·class="kw">let·</span><span·class="kw-2">mut·</span>into_iter·=·vec.into_iter();
12 <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="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>]);
13 <span·class="kw">let·_·</span>=·into_iter.next().unwrap();13 <span·class="kw">let·_·</span>=·into_iter.next().unwrap();
14 <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"·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">Run</a></div>14 <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"·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">Run</a></div>
15 </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>15 </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.78.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>
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="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 <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>];
18 <span·class="kw">let·</span><span·class="kw-2">mut·</span>into_iter·=·vec.into_iter();18 <span·class="kw">let·</span><span·class="kw-2">mut·</span>into_iter·=·vec.into_iter();
19 <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 <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>]);
20 into_iter.as_mut_slice()[<span·class="number">2</span>]·=·<span·class="string">'z'</span>;20 into_iter.as_mut_slice()[<span·class="number">2</span>]·=·<span·class="string">'z'</span>;
21 <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">'a'</span>);
22 <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">'b'</span>);
23 <span·class="macro">assert_eq!</span>(into_iter.next().unwrap(),·<span·class="string">'z'</span>);</code></pre><a·class="test-arrow"·target="_blank"·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">Run</a></div>23 <span·class="macro">assert_eq!</span>(into_iter.next().unwrap(),·<span·class="string">'z'</span>);</code></pre><a·class="test-arrow"·target="_blank"·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">Run</a></div>
24 </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>24 </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.78.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>
25 </div></details></div></details></div><h2·id="trait-implementations"·class="section-header">Trait·Implementations<a·href="#trait-implementations"·class="anchor">§</a></h2><div·id="trait-implementations-list"><details·class="toggle·implementors-toggle"·open><summary><section·id="impl-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#186-190">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:·4864,·SHA:·64c8fee1d6fb44b288d177860f136a91ff5068efd862d3629ed3fc76d2e298c1·...·]/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">where25 </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#186-190">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.78.0/core/convert/trait.AsRef.html"·title="trait·core::convert::AsRef">AsRef</a>&lt;<a·class="primitive"·href="https://doc.rust-lang.org/1.78.0/core/primitive.slice.html">[T]</a>&gt;·for·<a·class="struct"·href="struct.IntoIter.h[·...·truncated·by·diffoscope;·len:·5242,·SHA:·895fa027c81fb6ea7aeba08d19d655b56e69ea4cfdf45a3ba7261d5d460c5819·...·]/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
26 ····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:·560ac253245aac7581a20929504824bb42a6e09b1e961aae156a2f501c9d6a9c·...·]/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 ····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.78.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:·2125b89b8d8b5b3b49312705f7863b1153c72613af4c2f6ea99233d0baa396a1·...·]/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>
  
27 <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 <div·class="example-wrap"><pre·class="rust·rust-example-rendered"><code><span·class="kw">let·</span>iter:·vec::IntoIter&lt;u8&gt;·=·Default::default();
28 <span·class="macro">assert_eq!</span>(iter.len(),·<span·class="number">0</span>);28 <span·class="macro">assert_eq!</span>(iter.len(),·<span·class="number">0</span>);
29 <span·class="macro">assert_eq!</span>(iter.as_slice(),·<span·class="kw-2">&amp;</span>[]);</code></pre><a·class="test-arrow"·target="_blank"·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">Run</a></div>29 <span·class="macro">assert_eq!</span>(iter.as_slice(),·<span·class="kw-2">&amp;</span>[]);</code></pre><a·class="test-arrow"·target="_blank"·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">Run</a></div>
30 </div></details></div></details><details·class="toggle·implementors-toggle"·open><summary><section·id="impl-DoubleEndedIterator-for-IntoIter%3CT,+A%3E"·class="impl"><a·class="src·rightside"·href="../../src/alloc/vec/into_iter.rs.html#309-350">source</a><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:·f131e1558fce3128c4079f8c74dbf689cf039611057fb6c821eb6c7611037eaa·...·]/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><details·class="toggle·implementors-toggle"·open><summary><section·id="impl-DoubleEndedIterator-for-IntoIter%3CT,+A%3E"·class="impl"><a·class="src·rightside"·href="../../src/alloc/vec/into_iter.rs.html#309-350">source</a><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.78.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:·50b9c10c2a561a38446d6290d949f85d42d71d4a635b3e88f0a4d11b54ff840e·...·]/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.78.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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(B,·Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.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.78.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.7[·...·truncated·by·diffoscope;·len:·3,·SHA:·7b1bd53949b752d143d871408483b5382371b5bc48d195d0c040ec93cfa2748b·...·]/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:·74b709f2c818a4eda5d85ea863eb2d8af72c87564dbab2746e67feafb0cbb9a3·...·]/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.78.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:·d66ed7e195a53e9945339ef1976aed455dcf80228d8e5b7b0c69a64c3983fea1·...·]/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.78.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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(B,·Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/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:·f8bdf1e28866c7668477ab391452c7cfa7fd52cc69b633e782a157931421b39b·...·]/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.78.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:·c264047794019a6dcf05728ba6a6ee1f8f07c7209958b3366ba94546b527ecdc·...·]/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.78.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:·10468,·SHA:·91e0616462d021ff93a46eed175d1c2da0e5407e73221673457ab35cc3148302·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;<div·class="where">where39 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·11683,·SHA:·f73938b2a928a372b5e177f6647f983a0a960ef577bb2699d28d13033d519b6a·...·]/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:·1560,·SHA:·366366fe355c2f140f1dd9286680c6ed0162e5037a68838843c274e31b0f084e·...·]/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.78.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.78.0/cor[·...·truncated·by·diffoscope;·len:·1884,·SHA:·c931bd28a591cdc6ec4677d2fa906a1f20cdb7a9936a5c103ac97accb87a584a·...·]/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.78.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"><a·class="src·rightside"·href="../../src/core/iter/tra[·...·truncated·by·diffoscope;·len:·584,·SHA:·fd3e570373eb5121d35d7e22cdd5dd5fbf7183ee80147135a591fd1285174e82·...·]/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.78.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"><a·class="src·rightside"·hr[·...·truncated·by·diffoscope;·len:·746,·SHA:·f1f70d650c102c8658e13890c7dbfc87418f07e7b522246fb579ec434ef64f7c·...·]/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.78.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:·1017,·SHA:·c0f5f8cfd297e1678ac0ee2fd847fb6f0577665ac326e8e2e9d6414a710c8f98·...·]/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.78.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.78.0/core/iter/traits/it[·...·truncated·by·diffoscope;·len:·1233,·SHA:·f677df2d893dfe0dc1a9d31ebb0ba71a346d265781813e0d664d3f18369b6163·...·]/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.78.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:·c1b5e692e89c9c809075ee8ee72fb15a9ec46c075b08450e1f707d672a224750·...·]/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.78.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:·98627729f77dcf1c9d258f343354ba600b7134c6b3929080f231e8de7155b70b·...·]/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.78.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.78.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.78.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"><a·class="src·rightside"·href="../../src/core/i[·...·truncated·by·diffoscope;·len:·267,·SHA:·1764c9d6d2e39e1367ae2111c28ab846e66ecf12617fbff35e0132e82e5c8b13·...·]/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.78.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"><a·class="src·rights[·...·truncated·by·diffoscope;·len:·375,·SHA:·58419346f92e1709dadb70cc3cf356e3cd27972451bdc6b4fc4267e6f7e8bdae·...·]/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.78.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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::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:·fb4c9589a16c7b6d697c109d1193d2f1e763e5dd967101c2fd92b32416972229·...·]/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.78.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:·98f6effefa44d759c249143d83623f0055d937382bfc398b7e1f5e92cd413657·...·]/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.78.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:·658,·SHA:·e4449b6c00d036dd30444817045eddaf2697443d65789bb5c0b585ed1bc77702·...·]/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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·820,·SHA:·a664bbcbc0891663662e4eb7b4394d0fcd72e568136fc4d34097fea242cc32e7·...·]/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.78.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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·140,·SHA:·752f473b57e7444ebfddf5ea7fd40a332e83ec55524a6c31b5ee0f82a5dea819·...·]/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"><a·class="src·rightside"·href="../../src/core/iter[·...·truncated·by·diffoscope;·len:·285,·SHA:·738ce0440ff568829f40d141e38e2c0da2fd05d2b73d1a574be0ed9baa32e827·...·]/core/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.78.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"><a·class="src·rightside[·...·truncated·by·diffoscope;·len:·393,·SHA:·2e2aa7c9c9c087e7b346da376749064ab8c1894795a2f0a0f646cdc8c7bea997·...·]/core/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.78.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:·767,·SHA:·da0fc5bc95a3398627e0c5836423b719ccea45d351e21ddaa96f793f67f9c6de·...·]/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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·956,·SHA:·faba0521e870dbbd26d466fadba3522e7d29013a9b86376fffafffac11a57e0e·...·]/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.78.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"><a·class="src·rightside"·href="../../src/core/ite[·...·truncated·by·diffoscope;·len:·264,·SHA:·e3fa7ab43c6353bc2216a22d7010c41a8ab50d273a128d15d0eff050c058993a·...·]/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.78.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"><a·class="src·rightsid[·...·truncated·by·diffoscope;·len:·372,·SHA:·03eea0861575eb80d3f7a87a3ba747adb1a33fe7e9ce72aa2172e7a287c63a94·...·]/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.78.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.78.0/core/iter/adapte[·...·truncated·by·diffoscope;·len:·175,·SHA:·16fe7225bf05b478e2828b347c3d23ded9a22f89d8887a2c65d9f7b3faf1b0e7·...·]/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"><a·class="src·rightside"·href="../../src/core/it[·...·truncated·by·diffoscope;·len:·294,·SHA:·c0aee2077af6a4f81ed47e37c84a75b5f9b941875509fbe0b3d352866f825f45·...·]/core/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.78.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"><a·class="src·rightsi[·...·truncated·by·diffoscope;·len:·402,·SHA:·7689a974f800fd069d1b4453ef62d6d6ad1b654462d624d36e3672051d502030·...·]/core/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.78.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:·922,·SHA:·5220bbb4db3c3cd3d7ca7c27520f44f04fe367ee2f0f407fb1d50c0a327a2f99·...·]/core/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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·1138,·SHA:·f6ae06b7de8e94df014341c5cf589a5e4a1298367b2ef7a968ec499c5170a70e·...·]/core/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.78.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:·39eeddf219b211245393e51a591d5064c740fa9be49d88883d8a6474679741ad·...·]/core/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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·1058,·SHA:·b390dbdda8d7e93604b5ecd906a93efd03fe19bdaf41cf12893fd361bf974307·...·]/core/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.78.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:·851,·SHA:·ad2e090d21a034b7c3836ed38a686f4c483f9a929132fef846d48271f749a79c·...·]/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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·1067,·SHA:·415d32e1211c35d3bb405de1d6e51c2102c14cadc3333894f063148dbe0b1f69·...·]/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:·525,·SHA:·6471f48fecadc56edf21fc04794b884b96ce06d339c715e410f5a906e028bc28·...·]/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.78.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:·687,·SHA:·7f5256104c35c5948a2cb42b55f3048c9d2887e48a4a8226537a284f959c562a·...·]/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.78.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"><a·class="src·rightside"·href="../../src/core/iter/traits/[·...·truncated·by·diffoscope;·len:·284,·SHA:·aee83f38f8c40848e159b12a8faa43b9dadf589fe974632a1f15ce2a15834071·...·]/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.78.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"><a·class="src·rightside"·href="[·...·truncated·by·diffoscope;·len:·392,·SHA:·4e7da68f7be2622ef173653eca78d58e1f202b544a2e6abd14d8335c298c93a7·...·]/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.78.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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(<a·class="primitive"·href="https://doc.rust-lang.org/1.78.0/core/primitive.reference.html">&amp;mut·St</a>,·Self::<a·class="associatedty[·...·truncated·by·diffoscope;·len:·449,·SHA:·f12c268a8a8111b9e7126ad78bf5523a63733caa63d187c4fe792309ea41acdf·...·]/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:·459,·SHA:·b825570d9672670eacd8828b3abec12cd1c35433286857de28f5ea8d5e300e03·...·]/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.78.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.78.0/core/iter/trai[·...·truncated·by·diffoscope;·len:·594,·SHA:·02960742fa7892efaa08f289ce85865fc5efb6a4cd138c22e3566ca6fc727d78·...·]/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.78.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.78.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:·9b6a337a3ad68c2a987b52450c153f87a04a8ed9e83603d26077fe6e70d61edf·...·]/core/iter/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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·976,·SHA:·2a9182f6fe88e0b8a9b1ae1f46cace940cc0b8736033c354c0f0ccbf1c196e7a·...·]/core/iter/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.78.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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;[Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtyp[·...·truncated·by·diffoscope;·len:·135,·SHA:·0b06a6094d42ccbc8bce5b01c4383961fe7f1967f05e4c9f1ff33e71e425fb26·...·]/core/primitive.array.html">N</a>])·-&gt;·R,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iter_map_windows</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/87155">#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.78.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"><a·class="src·rightside"·href="../../src/core/iter/[·...·truncated·by·diffoscope;·len:·250,·SHA:·e355ddd0f04b2470ee915aec3ad97857be56b95e6a1f3d733d6c477453f4cf0d·...·]/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.78.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"><a·class="src·rightside"[·...·truncated·by·diffoscope;·len:·358,·SHA:·d91b2ab18e0ce069e262cf523c6ef961f56eecad042ea1e9bcefe33cff28fc8f·...·]/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:·583,·SHA:·b7d7d6125e8980756a2636a6b6e01600057c98a027dcf7d267b1f61538a7b6b0·...·]/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.78.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.78.0/core/op[·...·truncated·by·diffoscope;·len:·745,·SHA:·424783f22102f4446d3ad4d362b1aafdb7531fa777213f97ee138aa878f67bd1·...·]/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.78.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:·676,·SHA:·ae75f35cafbae1e0e695226baca09b0bec6e4a0ed5656a83c3357b29fb00442d·...·]/core/primitive.reference.html">&amp;mut·Self</a><div·class="where">where86 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·838,·SHA:·9b4fd8df7f41e9a76fd4cfca0a233b74b9bd27c3fe8228248abc3f940425a3e3·...·]/core/primitive.reference.html">&amp;mut·Self</a><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:·319,·SHA:·bbb653fcb1f5ad46e04905bf78a76b9dd63ea5d49a2d8cd5b7b36efbb0f7e105·...·]/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.78.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.78.0/core/it[·...·truncated·by·diffoscope;·len:·427,·SHA:·ecfaaac5d1d10c1bc4fcee9a050af0a268bee0b528c2d8ea4e9774440bd8a279·...·]/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.78.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.78.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:·e5d524e874326d0b9b733f5ee809c6595cde869afab0cc3d4ba8454093f420da·...·]/core/primitive.reference.html">&amp;mut·E</a><div·class="where">where89 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.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.78.0/core/iter/tr[·...·truncated·by·diffoscope;·len:·728,·SHA:·01937c2dc314c259495665570ae249c94b4a5b0719718f5f1188e6fc64ecf487·...·]/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.78.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.78.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:·744,·SHA:·a7446142ab67c3f20d866315fbe6cb9c57cd4af012812d6dd19d5061aee6e97b·...·]/core/primitive.tuple.html">(B,·B)</a><div·class="where">where91 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experiment[·...·truncated·by·diffoscope;·len:·879,·SHA:·e773b2222c92d001e295030cb47a780ab0c1132d7fc8e9e3a98de4f532e6c520·...·]/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.78.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.78.0/core/default/trait.Default.html"·title="trait·core::default::Default">Default</a>·+·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/collect/trait.Extend.html"·title="trait·core::iter::traits::collec[·...·truncated·by·diffoscope;·len:·95,·SHA:·8b3be1d0042cae0550f865faf5849221240bdf04eb1b2107605b72d48c3ad29c·...·]/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:·5a1bcc1ddfc5fccf50d61bf2b8879dae247aa12c0b23ba2f437fd2a345cabac7·...·]/core/primitive.usize.html">usize</a><div·class="where">where94 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·995,·SHA:·bec3765fdab56713186e2454cd84738b5b28e3280a2f3d5a25cefdbc3089b520·...·]/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.78.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>·+·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/double_ended/trait.DoubleEndedIterator.html"·title="trait·core::iter::trai[·...·truncated·by·diffoscope;·len:·132,·SHA:·e5b2cf5f56946ede1e190ed09879c5821e2de04cf8e5d145142eeb40c6340982·...·]/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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(<a·class="primitive"·href="https://doc.rust-lang.org/1.78.0/core/primitive.reference.html">&amp;T</a>)·-&gt;·<a·class="primitive"·href="[·...·truncated·by·diffoscope;·len:·32,·SHA:·63d052a8ced32bf927ffadd7e884c08caf4970e85dfdf6be0e568d49b174da96·...·]/core/primitive.bool.html">bool</a>,</div></h4></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:·97056c44eac6a0f986fb2c8edec37302cc06edf44a6c6f7153a5d8623d8d6c0d·...·]/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.78.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:·0c224636c18baa273f69de21f90083317f2ea0b7367a3f0d0f1c0ace55a36f79·...·]/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.78.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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·135,·SHA:·51ff5f5c7ebd8440623ea71b125c5a5837e809e308fe1a13fbe19cddb941dbd9·...·]/core/primitive.bool.html">bool</a>,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iter_is_partitioned</code>&nbsp;<a·href="https://github.com/rust-lang/rust/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:·6f406a351b93047f56fa70265a6bf28ec6874f75cd6cc5a39d51c7af462f2992·...·]/core/iter/traits/iterator/trait.Iterator.html#method.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.78.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:·2c74873f4e5ba70004a1c7edd1cc3f9e2d91271295dd1591e2d26848df4c02ba·...·]/core/iter/traits/iterator/trait.Iterator.html#method.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.78.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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(B,·Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.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.78.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:·eecdce021399d206eb3ef5af12ee7663b4eb0dca55b0f411c7fa66f605b6b2e2·...·]/core/iter/traits/iterator/trait.Iterator.html#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.78.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:·52912e82c4b0a760d06f77eb4ee3a59ba70dd76cb532954900c73ae94c652674·...·]/core/iter/traits/iterator/trait.Iterator.html#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.78.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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.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.78.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.78.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"><a·class="src·rightside"·href="../../src/core/iter[·...·truncated·by·diffoscope;·len:·130,·SHA:·75c0150024fe6cdc702d7337508ab57600248490dd062768204ddb064c9a1b8b·...·]/core/iter/traits/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.78.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"><a·class="src·rightside[·...·truncated·by·diffoscope;·len:·211,·SHA:·924e062acd8127e8d6158162219ee5d57a941854e14063d21d7768edae549431·...·]/core/iter/traits/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.78.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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(B,·Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::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:·dbe3a08fe63abd47570741e71208c31aaf51152feac5917db07665a1f56bb3e3·...·]/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.78.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:·b60215068a6d9721be05f81098c51167d7138c4042f140cad42f77c4df43f597·...·]/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.78.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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·352,·SHA:·e7c3c296abe2c0a183967153e4ae7fd50bafa2ae7088e3e78b3b48fee253adc6·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::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:·a9dce8bb557b5a11426bf2ffcbd5eea7c6c870833e3ee5bb072dcaaa11687b0c·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_reduce"·class="fn">try_reduce</a>&lt;F,·R&gt;(116 operation.·<a·href="https://doc.rust-lang.org/1.78.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:·7a18fdd041b1a001b4a8feb289ee127fd9240232239269eb35dc3b8f74783ec9·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_reduce"·class="fn">try_reduce</a>&lt;F,·R&gt;(
117 ····&amp;mut·self,117 ····&amp;mut·self,
118 ····f:·F118 ····f:·F
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.78.0/core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&gt;::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/ops/try_trait/trait.Try.html#associatedtype.Residual"·title="type[·...·truncated·by·diffoscope;·len:·754,·SHA:·6fb4dfdb6b4da68921c1e7f8b75d99cf293d58318d684a840254ce9576957bea·...·]/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.78.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:·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:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·140,·SHA:·c27972e6fa3464c9476eaa185e8657edb6bb294f148403f3d079285294a9f909·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·R,
122 ····R:·<a·class="trait"·href="../../core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&lt;Output·=·Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;,122 ····R:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.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.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;,
123 ····&lt;R·as·<a·class="trait"·href="../../core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&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·the123 ····&lt;R·as·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&gt;::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/ops/try_trait/trait.Try.html#associatedtype.Residual"·title="type[·...·truncated·by·diffoscope;·len:·412,·SHA:·22b8cbb007e5cce82b9d13a65bfa56aa8d83c32541fac25f4d9b3857b0540908·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;&gt;,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iterator_try_reduce</code>&nbsp;<a·href="https://github.com/rust-lang/rust/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
124 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"><a·class="src·rightside"·href="../../src/core/iter/tr[·...·truncated·by·diffoscope;·len:·272,·SHA:·97959736d897a01242f49f2e45854ab874bf0c9bbe30acad9a49eb73169e457c·...·]/core/primitive.bool.html">bool</a><div·class="where">where124 closure·returns·a·failure,·the·failure·is·propagated·back·to·the·caller·immediately.·<a·href="https://doc.rust-lang.org/1.78.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"><a·class="src·rightside"·h[·...·truncated·by·diffoscope;·len:·380,·SHA:·29c4004d4d8b0c8c9dfe9023f8b2c5ef801d9dc4688893035d182c1ae774c453·...·]/core/primitive.bool.html">bool</a><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.78.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>(Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::[·...·truncated·by·diffoscope;·len:·733,·SHA:·9bb9f0199d90f78ad65c59dbe67a1c751cd5a681130a03bef3b1e8ed907a3bba·...·]/core/primitive.bool.html">bool</a><div·class="where">where126 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·922,·SHA:·f4fd532c280e18f28bd6dda6c2a129e2e92114b67f27235bb5fd39f725be9c43·...·]/core/primitive.bool.html">bool</a><div·class="where">where
Max diff block lines reached; 143579/325837 bytes (44.06%) of diff not shown.
307 KB
./usr/share/doc/rust-web-doc/html/alloc/vec/struct.Splice.html
    
Offset 1, 230 lines modifiedOffset 1, 230 lines modified
1 <!DOCTYPE·html><html·lang="en"><head><meta·charset="utf-8"><meta·name="viewport"·content="width=device-width,·initial-scale=1.0"><meta·name="generator"·content="rustdoc"><meta·name="description"·content="A·splicing·iterator·for·`Vec`."><title>Splice·in·alloc::vec·-·Rust</title><script>·if·(window.location.protocol·!==·"file:")·document.write(`<link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/SourceSerif4-Regular-46f98efaafac5295.ttf.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/FiraSans-Regular-018c141bf0843ffd.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/FiraSans-Medium-8f9a781e4970d388.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/SourceCodePro-Regular-562dcc5011b6de7d.ttf.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/SourceCodePro-Semibold-d899c5a5c4aeb14a.ttf.woff2">`)</script><link·rel="stylesheet"·href="../../static.files/normalize-76eba96aa4d2e634.css"><link·rel="stylesheet"·href="../../static.files/rustdoc-35f9e32502181f1e.css"><meta·name="rustdoc-vars"·data-root-path="../../"·data-static-root-path="../../static.files/"·data-current-crate="alloc"·data-themes=""·data-resource-suffix="1.78.0"·data-rustdoc-version="1.78.0"·data-channel="1.78.0"·data-search-js="search-42d8da7a6b9792c2.js"·data-settings-js="settings-4313503d2e1961c2.js"·><script·src="../../static.files/storage-4c98445ec4002617.js"></script><script·defer·src="sidebar-items1.78.0.js"></script><script·defer·src="../../static.files/main-12cf3b4f4f9dc36d.js"></script><noscript><link·rel="stylesheet"·href="../../static.files/noscript-04d5337699b92874.css"></noscript><link·rel="alternate·icon"·type="image/png"·href="../../static.files/favicon-16x16-8b506e7a72182f1c.png"><link·rel="alternate·icon"·type="image/png"·href="../../static.files/favicon-32x32-422f7d1d52889060.png"><link·rel="icon"·type="image/svg+xml"·href="../../static.files/favicon-2c020d218678b618.svg"></head><body·class="rustdoc·struct"><!--[if·lte·IE·11]><div·class="warning">This·old·browser·is·unsupported·and·will·most·likely·display·funky·things.</div><![endif]--><nav·class="mobile-topbar"><button·class="sidebar-menu-toggle"·title="show·sidebar"></button><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-151179464ae7ed46.svg"·alt=""></a></nav><nav·class="sidebar"><div·class="sidebar-crate"><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-151179464ae7ed46.svg"·alt="logo"></a><h2><a·href="../../alloc/index.html">alloc</a><span·class="version">1.78.0</span></h2></div><h2·class="location"><a·href="#">Splice</a></h2><div·class="sidebar-elems"><section><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">Debug</a></li><li><a·href="#impl-DoubleEndedIterator-for-Splice%3C'_,+I,+A%3E">DoubleEndedIterator</a></li><li><a·href="#impl-Drop-for-Splice%3C'_,+I,+A%3E">Drop</a></li><li><a·href="#impl-ExactSizeIterator-for-Splice%3C'_,+I,+A%3E">ExactSizeIterator</a></li><li><a·href="#impl-Iterator-for-Splice%3C'_,+I,+A%3E">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">Freeze</a></li><li><a·href="#impl-RefUnwindSafe-for-Splice%3C'a,+I,+A%3E">RefUnwindSafe</a></li><li><a·href="#impl-Send-for-Splice%3C'a,+I,+A%3E">Send</a></li><li><a·href="#impl-Sync-for-Splice%3C'a,+I,+A%3E">Sync</a></li><li><a·href="#impl-Unpin-for-Splice%3C'a,+I,+A%3E">Unpin</a></li><li><a·href="#impl-UnwindSafe-for-Splice%3C'a,+I,+A%3E">UnwindSafe</a></li></ul><h3><a·href="#blanket-implementations">Blanket·Implementations</a></h3><ul·class="block·blanket-implementation"><li><a·href="#impl-Any-for-T">Any</a></li><li><a·href="#impl-Borrow%3CT%3E-for-T">Borrow&lt;T&gt;</a></li><li><a·href="#impl-BorrowMut%3CT%3E-for-T">BorrowMut&lt;T&gt;</a></li><li><a·href="#impl-From%3CT%3E-for-T">From&lt;T&gt;</a></li><li><a·href="#impl-Into%3CU%3E-for-T">Into&lt;U&gt;</a></li><li><a·href="#impl-IntoIterator-for-I">IntoIterator</a></li><li><a·href="#impl-TryFrom%3CU%3E-for-T">TryFrom&lt;U&gt;</a></li><li><a·href="#impl-TryInto%3CU%3E-for-T">TryInto&lt;U&gt;</a></li></ul></section><h2><a·href="index.html">In·alloc::vec</a></h2></div></nav><div·class="sidebar-resizer"></div>1 <!DOCTYPE·html><html·lang="en"><head><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.write(`<link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/SourceSerif4-Regular-46f98efaafac5295.ttf.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/FiraSans-Regular-018c141bf0843ffd.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/FiraSans-Medium-8f9a781e4970d388.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/SourceCodePro-Regular-562dcc5011b6de7d.ttf.woff2"><link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/SourceCodePro-Semibold-d899c5a5c4aeb14a.ttf.woff2">`)</script><link·rel="stylesheet"·href="../../static.files/normalize-76eba96aa4d2e634.css"><link·rel="stylesheet"·href="../../static.files/rustdoc-35f9e32502181f1e.css"><meta·name="rustdoc-vars"·data-root-path="../../"·data-static-root-path="../../static.files/"·data-current-crate="alloc"·data-themes=""·data-resource-suffix="1.78.0"·data-rustdoc-version="1.78.0"·data-channel="1.78.0"·data-search-js="search-42d8da7a6b9792c2.js"·data-settings-js="settings-4313503d2e1961c2.js"·><script·src="../../static.files/storage-4c98445ec4002617.js"></script><script·defer·src="sidebar-items1.78.0.js"></script><script·defer·src="../../static.files/main-12cf3b4f4f9dc36d.js"></script><noscript><link·rel="stylesheet"·href="../../static.files/noscript-04d5337699b92874.css"></noscript><link·rel="alternate·icon"·type="image/png"·href="../../static.files/favicon-16x16-8b506e7a72182f1c.png"><link·rel="alternate·icon"·type="image/png"·href="../../static.files/favicon-32x32-422f7d1d52889060.png"><link·rel="icon"·type="image/svg+xml"·href="../../static.files/favicon-2c020d218678b618.svg"></head><body·class="rustdoc·struct"><!--[if·lte·IE·11]><div·class="warning">This·old·browser·is·unsupported·and·will·most·likely·display·funky·things.</div><![endif]--><nav·class="mobile-topbar"><button·class="sidebar-menu-toggle"·title="show·sidebar"></button><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-151179464ae7ed46.svg"·alt=""></a></nav><nav·class="sidebar"><div·class="sidebar-crate"><a·class="logo-container"·href="../../alloc/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-151179464ae7ed46.svg"·alt="logo"></a><h2><a·href="../../alloc/index.html">alloc</a><span·class="version">1.78.0</span></h2></div><h2·class="location"><a·href="#">Splice</a></h2><div·class="sidebar-elems"><section><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">Debug</a></li><li><a·href="#impl-DoubleEndedIterator-for-Splice%3C'_,+I,+A%3E">DoubleEndedIterator</a></li><li><a·href="#impl-Drop-for-Splice%3C'_,+I,+A%3E">Drop</a></li><li><a·href="#impl-ExactSizeIterator-for-Splice%3C'_,+I,+A%3E">ExactSizeIterator</a></li><li><a·href="#impl-Iterator-for-Splice%3C'_,+I,+A%3E">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">Freeze</a></li><li><a·href="#impl-RefUnwindSafe-for-Splice%3C'a,+I,+A%3E">RefUnwindSafe</a></li><li><a·href="#impl-Send-for-Splice%3C'a,+I,+A%3E">Send</a></li><li><a·href="#impl-Sync-for-Splice%3C'a,+I,+A%3E">Sync</a></li><li><a·href="#impl-Unpin-for-Splice%3C'a,+I,+A%3E">Unpin</a></li><li><a·href="#impl-UnwindSafe-for-Splice%3C'a,+I,+A%3E">UnwindSafe</a></li></ul><h3><a·href="#blanket-implementations">Blanket·Implementations</a></h3><ul·class="block·blanket-implementation"><li><a·href="#impl-Any-for-T">Any</a></li><li><a·href="#impl-Borrow%3CT%3E-for-T">Borrow&lt;T&gt;</a></li><li><a·href="#impl-BorrowMut%3CT%3E-for-T">BorrowMut&lt;T&gt;</a></li><li><a·href="#impl-From%3CT%3E-for-T">From&lt;T&gt;</a></li><li><a·href="#impl-Into%3CU%3E-for-T">Into&lt;U&gt;</a></li><li><a·href="#impl-IntoIterator-for-I">IntoIterator</a></li><li><a·href="#impl-TryFrom%3CU%3E-for-T">TryFrom&lt;U&gt;</a></li><li><a·href="#impl-TryInto%3CU%3E-for-T">TryInto&lt;U&gt;</a></li></ul></section><h2><a·href="index.html">In·alloc::vec</a></h2></div></nav><div·class="sidebar-resizer"></div>
2 ····<main><div·class="width-limiter"><nav·class="sub"><form·class="search-form"><span></span><div·id="sidebar-button"·tabindex="-1"><a·href="../../alloc/all.html"·title="show·sidebar"></a></div><input·class="search-input"·name="search"·aria-label="Run·search·in·the·documentation"·autocomplete="off"·spellcheck="false"·placeholder="Click·or·press·‘S’·to·search,·‘?’·for·more·options…"·type="search"><div·id="help-button"·tabindex="-1"><a·href="../../help.html"·title="help">?</a></div><div·id="settings-menu"·tabindex="-1"><a·href="../../settings.html"·title="settings"><img·width="22"·height="22"·alt="Change·settings"·src="../../static.files/wheel-7b819b6101059cd0.svg"></a></div></form></nav><section·id="main-content"·class="content"><div·class="main-heading"><h1>Struct·<a·href="../index.html">alloc</a>::<wbr><a·href="index.html">vec</a>::<wbr><a·class="struct"·href="#">Splice</a><button·id="copy-path"·title="Copy·item·path·to·clipboard"><img·src="../../static.files/clipboard-7571035ce49a181d.svg"·width="19"·height="18"·alt="Copy·item·path"></button></h1><span·class="out-of-band"><span·class="since"·title="Stable·since·Rust·version·1.21.0">1.21.0</span>···<a·class="src"·href="../../src/alloc/vec/splice.rs.html#21-28">source</a>···<button·id="toggle-all-docs"·title="collapse·all·docs">[<span>&#x2212;</span>]</button></span></div><pre·class="rust·item-decl"><code>pub·struct·Splice&lt;'a,·I:·<a·class="trait"·href="../../core/iter/traits/iterator/trait.Iterator.html"·title="trait·core::iter::traits::iterator::Iterator">Iterator</a>·+·'a,·A:·<a·class="trait"·href="../alloc/trait.Allocator.html"·title="trait·alloc::alloc::Allocator">Allocator</a>·+·'a·=·<a·class="struct"·href="../alloc/struct.Global.html"·title="struct·alloc::alloc::Global">Global</a>&gt;·{·<span·class="comment">/*·private·fields·*/</span>·}</code></pre><details·class="toggle·top-doc"·open><summary·class="hideme"><span>Expand·description</span></summary><div·class="docblock"><p>A·splicing·iterator·for·<code>Vec</code>.</p>2 ····<main><div·class="width-limiter"><nav·class="sub"><form·class="search-form"><span></span><div·id="sidebar-button"·tabindex="-1"><a·href="../../alloc/all.html"·title="show·sidebar"></a></div><input·class="search-input"·name="search"·aria-label="Run·search·in·the·documentation"·autocomplete="off"·spellcheck="false"·placeholder="Click·or·press·‘S’·to·search,·‘?’·for·more·options…"·type="search"><div·id="help-button"·tabindex="-1"><a·href="../../help.html"·title="help">?</a></div><div·id="settings-menu"·tabindex="-1"><a·href="../../settings.html"·title="settings"><img·width="22"·height="22"·alt="Change·settings"·src="../../static.files/wheel-7b819b6101059cd0.svg"></a></div></form></nav><section·id="main-content"·class="content"><div·class="main-heading"><h1>Struct·<a·href="../index.html">alloc</a>::<wbr><a·href="index.html">vec</a>::<wbr><a·class="struct"·href="#">Splice</a><button·id="copy-path"·title="Copy·item·path·to·clipboard"><img·src="../../static.files/clipboard-7571035ce49a181d.svg"·width="19"·height="18"·alt="Copy·item·path"></button></h1><span·class="out-of-band"><span·class="since"·title="Stable·since·Rust·version·1.21.0">1.21.0</span>···<a·class="src"·href="../../src/alloc/vec/splice.rs.html#21-28">source</a>···<button·id="toggle-all-docs"·title="collapse·all·docs">[<span>&#x2212;</span>]</button></span></div><pre·class="rust·item-decl"><code>pub·struct·Splice&lt;'a,·I:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.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>
3 <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 <p>This·struct·is·created·by·<a·href="struct.Vec.html#method.splice"·title="method·alloc::vec::Vec::splice"><code>Vec::splice()</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="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 <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>];
7 <span·class="kw">let·</span>new·=·[<span·class="number">7</span>,·<span·class="number">8</span>];7 <span·class="kw">let·</span>new·=·[<span·class="number">7</span>,·<span·class="number">8</span>];
8 <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"·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">Run</a></div>8 <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"·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">Run</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-Splice%3C'a,+I,+A%3E"·class="impl"><a·class="src·rightside"·href="../../src/alloc/vec/splice.rs.html#19">source</a><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">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-Splice%3C'a,+I,+A%3E"·class="impl"><a·class="src·rightside"·href="../../src/alloc/vec/splice.rs.html#19">source</a><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.78.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
10 ····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:·5509,·SHA:·393f36853915dec26cf2fa05a5b9a17a2b191dec3010dd1d40b67c5a98d9d345·...·]/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 ····I::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.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:·6130,·SHA:·9e66d23b42c0ede2a456cec6b291baabe60cd6ba73ea5a5e62bf2ffb70c00bdc·...·]/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.78.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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(B,·Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.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.78.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.7[·...·truncated·by·diffoscope;·len:·3,·SHA:·7b1bd53949b752d143d871408483b5382371b5bc48d195d0c040ec93cfa2748b·...·]/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:·74b709f2c818a4eda5d85ea863eb2d8af72c87564dbab2746e67feafb0cbb9a3·...·]/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.78.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:·d66ed7e195a53e9945339ef1976aed455dcf80228d8e5b7b0c69a64c3983fea1·...·]/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.78.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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(B,·Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/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:·f8bdf1e28866c7668477ab391452c7cfa7fd52cc69b633e782a157931421b39b·...·]/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.78.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:·c264047794019a6dcf05728ba6a6ee1f8f07c7209958b3366ba94546b527ecdc·...·]/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.78.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:·8111,·SHA:·6cf86ec6e6f5ad6853094a61236dbff81e2764563eed6041113d2780bbc17811·...·]/core/primitive.usize.html">usize</a>&gt;(19 ····P:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·9056,·SHA:·810ec6ad8e0c262a66fc135115fcc4f02b6450fb7c140676f9b8fe20998ea740·...·]/core/primitive.usize.html">usize</a>&gt;(
20 ····&amp;mut·self20 ····&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.78.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.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title=[·...·truncated·by·diffoscope;·len:·381,·SHA:·88c48923c9b7ea5cc47c1087c60e09656e81d4671c58071ba2bef826335388bc·...·]/core/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:·602d17b58d1cf716882ddc867fc66cfda4f899bef17b038a48553e9133f60097·...·]/core/primitive.usize.html">usize</a><div·class="where">where22 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></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:·89791450da70cbd536c3cf8fbf2dd9891668362f9a252d3ee098222d19960bae·...·]/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:·675,·SHA:·5b5aaec46c04cf77d2fa06e88cd6f0a2bd8d201412bc325302bd2f8f21b39207·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;<div·class="where">where23 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.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:·84ae0beb16240102bae2355bb8c543b17f3f107e3c06b320839aa401eebb1945·...·]/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>,</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:·6b808f54a13578d2e276864bb3eb79ae7b452b8959e79f7ea7ab1180574b77fc·...·]/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.78.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.78.0/cor[·...·truncated·by·diffoscope;·len:·3504,·SHA:·6d21b6d637e0b2e9953a37a26fd19e00da089147d4acaf696c94d448de4ce419·...·]/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.78.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:·5667b9b6c9778ff3b9d23ed0a110e7ab9d3fccc786fdcaca8c17edf996236439·...·]/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.78.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:·e83c903581753673e083ce8dd809879a2fc81ab3050eb6db267d7fa26b15e035·...·]/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.78.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:·1c6bb9803ee8832ebd4c28a08a952178165595b6870cf35d3c89454b9da828b2·...·]/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.78.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.78.0/core/iter/traits/it[·...·truncated·by·diffoscope;·len:·1329,·SHA:·d9299c8edc606ed82f24d61ce441bec451141d684c2a9a75074f5b19c57f196c·...·]/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.78.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:·c1b5e692e89c9c809075ee8ee72fb15a9ec46c075b08450e1f707d672a224750·...·]/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.78.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:·98627729f77dcf1c9d258f343354ba600b7134c6b3929080f231e8de7155b70b·...·]/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.78.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.78.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.78.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:·d6282409add0999f2130eb6bbe6d0473ce96bf2544799e8bc22156f3c2d2e0dd·...·]/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.78.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:·7301b6beba7b6885849be90a625df68ef739a5374af456c51fe2e81d91a25363·...·]/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.78.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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::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"><a·class="src·rightside"·href="../../src/core/iter/trai[·...·truncated·by·diffoscope;·len:·127,·SHA:·5238321d215b910f044f9638586628a89571c45ec4e36df23ae20b21ba6e10b1·...·]/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.78.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"><a·class="src·rightside"·hre[·...·truncated·by·diffoscope;·len:·208,·SHA:·38524c602f1bc9eaf954354aa8333fa04d32179b67ed32fce58d91c5f4c96d80·...·]/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.78.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:·7abbad666ec88a1053b8aca2a481d629a3ef3596eddb570c381205fa2d859a52·...·]/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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·916,·SHA:·30d0b2a76513c5a880e9aee43e92b18805845cfcfe5783f62dc090167a439e63·...·]/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.78.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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·140,·SHA:·752f473b57e7444ebfddf5ea7fd40a332e83ec55524a6c31b5ee0f82a5dea819·...·]/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:·7da07154834a15b8ae55b4fd41479da070ccbd27e071909f81698570c306a081·...·]/core/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.78.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:·76aa2ad154f88085ee3f8a22721a7e6812680bac785d19059532407f50da1801·...·]/core/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.78.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:·c89169e5bf1c4724c7b411e568b6dad6475896f2606f557b3d708359ef71f5cc·...·]/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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·1052,·SHA:·110b47c7083083d565fcfc89337fddc8e5c87e81b2f720f3f7b0ded55e8500fb·...·]/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.78.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:·53634008856676c70c32b501f7ec498c1f86d123cc9b5b898256a69895ff31fc·...·]/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.78.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:·8464264e074dde5d84f0414ab3b5b2d8da83f3c9e3ca04c45458241580a8c80d·...·]/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.78.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.78.0/core/iter/adapte[·...·truncated·by·diffoscope;·len:·175,·SHA:·16fe7225bf05b478e2828b347c3d23ded9a22f89d8887a2c65d9f7b3faf1b0e7·...·]/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:·77dd41e041d66c618d306e900a9159cf1b00478b8f37e5692be62119a1d4fcda·...·]/core/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.78.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:·00ccbb673c11ed48d8c6aa2a3f8984fb298202e7bccfa42f1ac21290fcc0fb06·...·]/core/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.78.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:·c18326af66652e52fa627bfd0312af7fa2ad0ddc162b12a46e61047a031b0264·...·]/core/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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·1234,·SHA:·3b805567411cdcebed740f9e8d400dbe7fb487504f40e284544a140155090fdf·...·]/core/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.78.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:·39eeddf219b211245393e51a591d5064c740fa9be49d88883d8a6474679741ad·...·]/core/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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·1058,·SHA:·b390dbdda8d7e93604b5ecd906a93efd03fe19bdaf41cf12893fd361bf974307·...·]/core/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.78.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:·9369fa85b74ff841f7401949cadba6dfbbbeead2a99568f20dcfd5aab20d61ab·...·]/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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·1163,·SHA:·5772149166d344bf8fa5ebbd9db8693a8f2e5f031c50338e8f1523ef72f814d6·...·]/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:·a25e81a74cc82c1837477e2b0cea682fff9f43550640901b8010ac501ca69e3d·...·]/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.78.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:·6216516fe581c401abda3c95818192e8f030e2008c9bbdbaafebba16f33ea9bd·...·]/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.78.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:·de8f1023275132502c1569b0ef9a557dc98eaf60aae97cdb916e52f9f55100aa·...·]/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.78.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:·485843399c56e24bdf020ff0610d0ce1f62fbac5530d9880a1a7417105e3d70f·...·]/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.78.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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(<a·class="primitive"·href="https://doc.rust-lang.org/1.78.0/core/primitive.reference.html">&amp;mut·St</a>,·Self::<a·class="associatedty[·...·truncated·by·diffoscope;·len:·449,·SHA:·f12c268a8a8111b9e7126ad78bf5523a63733caa63d187c4fe792309ea41acdf·...·]/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:·8b31595e3cee3022819032aac82e3df712188a2a6dcc20da6939262e5e528591·...·]/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.78.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.78.0/core/iter/trai[·...·truncated·by·diffoscope;·len:·690,·SHA:·371190e5c1bf9b7dde6e84447965a69946212b977b9eb6d89048fbe34c5dda1c·...·]/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.78.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.78.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:·9b6a337a3ad68c2a987b52450c153f87a04a8ed9e83603d26077fe6e70d61edf·...·]/core/iter/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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·976,·SHA:·2a9182f6fe88e0b8a9b1ae1f46cace940cc0b8736033c354c0f0ccbf1c196e7a·...·]/core/iter/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.78.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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;[Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtyp[·...·truncated·by·diffoscope;·len:·135,·SHA:·0b06a6094d42ccbc8bce5b01c4383961fe7f1967f05e4c9f1ff33e71e425fb26·...·]/core/primitive.array.html">N</a>])·-&gt;·R,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iter_map_windows</code>&nbsp;<a·href="https://github.com/rust-lang/rust/issues/87155">#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.78.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:·238f6b49b3e28d725c57040edaa60bfbb34f140155e6af1d30eab52da1c7274f·...·]/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.78.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:·0d33056cee8a4f9b70b573c0adecc2f3599a2f8d9fa9f2c2044e9118ab134f73·...·]/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:·cfd3edf89fe5aca24b994f83b0d7da765620394e35140e694d98233d4d92481b·...·]/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.78.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.78.0/core/op[·...·truncated·by·diffoscope;·len:·841,·SHA:·9cba1b175fb3726d7f1f01da9be7c1a56568a68e4ce7915a468b730902daf8d3·...·]/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.78.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:·772,·SHA:·31d2052382378512fa905c6d5297d384eac7b7f126141ce561719c0e27cc9d39·...·]/core/primitive.reference.html">&amp;mut·Self</a><div·class="where">where70 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·934,·SHA:·ea20d2e0fe9388580ea08100baa9120b5e9b6cb48f43fc846f15db8b9649e7f6·...·]/core/primitive.reference.html">&amp;mut·Self</a><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:·98760b16b1ed91f9558e6e2637724a4608316181d5f6f4d236e896a83eca9af9·...·]/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.78.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.78.0/core/it[·...·truncated·by·diffoscope;·len:·523,·SHA:·97064c705f6f4bdf74469c54fabcf580d21893127d1b4cd9a9c1018a717ef153·...·]/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.78.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.78.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:·e5d524e874326d0b9b733f5ee809c6595cde869afab0cc3d4ba8454093f420da·...·]/core/primitive.reference.html">&amp;mut·E</a><div·class="where">where73 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.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.78.0/core/iter/tr[·...·truncated·by·diffoscope;·len:·728,·SHA:·01937c2dc314c259495665570ae249c94b4a5b0719718f5f1188e6fc64ecf487·...·]/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.78.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.78.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:·b0297783e056393a542c4058b42c18523a86c961c1b6ce3bc94342c1a2c10c58·...·]/core/primitive.tuple.html">(B,·B)</a><div·class="where">where75 ····Self:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></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:·00bd47017b1bdd1bbe2c3fc932d955a8aa2f7f5eff8c00e3001ae28a982a5883·...·]/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.78.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.78.0/core/default/trait.Default.html"·title="trait·core::default::Default">Default</a>·+·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/collect/trait.Extend.html"·title="trait·core::iter::traits::collec[·...·truncated·by·diffoscope;·len:·95,·SHA:·8b3be1d0042cae0550f865faf5849221240bdf04eb1b2107605b72d48c3ad29c·...·]/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:·5a1bcc1ddfc5fccf50d61bf2b8879dae247aa12c0b23ba2f437fd2a345cabac7·...·]/core/primitive.usize.html">usize</a><div·class="where">where78 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·995,·SHA:·bec3765fdab56713186e2454cd84738b5b28e3280a2f3d5a25cefdbc3089b520·...·]/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.78.0/core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>·+·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/double_ended/trait.DoubleEndedIterator.html"·title="trait·core::iter::trai[·...·truncated·by·diffoscope;·len:·132,·SHA:·e5b2cf5f56946ede1e190ed09879c5821e2de04cf8e5d145142eeb40c6340982·...·]/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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(<a·class="primitive"·href="https://doc.rust-lang.org/1.78.0/core/primitive.reference.html">&amp;T</a>)·-&gt;·<a·class="primitive"·href="[·...·truncated·by·diffoscope;·len:·32,·SHA:·63d052a8ced32bf927ffadd7e884c08caf4970e85dfdf6be0e568d49b174da96·...·]/core/primitive.bool.html">bool</a>,</div></h4></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:·97056c44eac6a0f986fb2c8edec37302cc06edf44a6c6f7153a5d8623d8d6c0d·...·]/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.78.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:·0c224636c18baa273f69de21f90083317f2ea0b7367a3f0d0f1c0ace55a36f79·...·]/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.78.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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·135,·SHA:·51ff5f5c7ebd8440623ea71b125c5a5837e809e308fe1a13fbe19cddb941dbd9·...·]/core/primitive.bool.html">bool</a>,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iter_is_partitioned</code>&nbsp;<a·href="https://github.com/rust-lang/rust/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:·6f406a351b93047f56fa70265a6bf28ec6874f75cd6cc5a39d51c7af462f2992·...·]/core/iter/traits/iterator/trait.Iterator.html#method.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.78.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:·2c74873f4e5ba70004a1c7edd1cc3f9e2d91271295dd1591e2d26848df4c02ba·...·]/core/iter/traits/iterator/trait.Iterator.html#method.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.78.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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(B,·Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.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.78.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:·eecdce021399d206eb3ef5af12ee7663b4eb0dca55b0f411c7fa66f605b6b2e2·...·]/core/iter/traits/iterator/trait.Iterator.html#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.78.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:·52912e82c4b0a760d06f77eb4ee3a59ba70dd76cb532954900c73ae94c652674·...·]/core/iter/traits/iterator/trait.Iterator.html#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.78.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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.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.78.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.78.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:·ffdacd6b524bc823efebbf23dc0f77317a07fe9c8b691f2ea18db7aa0c08b146·...·]/core/iter/traits/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.78.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:·1d6c4809cea8748e901d3f94777f450d430f3161f6ac05ed1c178d9327f966a3·...·]/core/iter/traits/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.78.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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(B,·Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::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:·dbe3a08fe63abd47570741e71208c31aaf51152feac5917db07665a1f56bb3e3·...·]/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.78.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:·b60215068a6d9721be05f81098c51167d7138c4042f140cad42f77c4df43f597·...·]/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.78.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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·352,·SHA:·e7c3c296abe2c0a183967153e4ae7fd50bafa2ae7088e3e78b3b48fee253adc6·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::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:·a9dce8bb557b5a11426bf2ffcbd5eea7c6c870833e3ee5bb072dcaaa11687b0c·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_reduce"·class="fn">try_reduce</a>&lt;F,·R&gt;(100 operation.·<a·href="https://doc.rust-lang.org/1.78.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:·7a18fdd041b1a001b4a8feb289ee127fd9240232239269eb35dc3b8f74783ec9·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_reduce"·class="fn">try_reduce</a>&lt;F,·R&gt;(
101 ····&amp;mut·self,101 ····&amp;mut·self,
102 ····f:·F102 ····f:·F
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.78.0/core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&gt;::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/ops/try_trait/trait.Try.html#associatedtype.Residual"·title="type[·...·truncated·by·diffoscope;·len:·754,·SHA:·6fb4dfdb6b4da68921c1e7f8b75d99cf293d58318d684a840254ce9576957bea·...·]/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.78.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:·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:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·140,·SHA:·c27972e6fa3464c9476eaa185e8657edb6bb294f148403f3d079285294a9f909·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·R,
106 ····R:·<a·class="trait"·href="../../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;,106 ····R:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.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.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;,
107 ····&lt;R·as·<a·class="trait"·href="../../core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&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·the107 ····&lt;R·as·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&gt;::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/ops/try_trait/trait.Try.html#associatedtype.Residual"·title="type[·...·truncated·by·diffoscope;·len:·412,·SHA:·22b8cbb007e5cce82b9d13a65bfa56aa8d83c32541fac25f4d9b3857b0540908·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;&gt;,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iterator_try_reduce</code>&nbsp;<a·href="https://github.com/rust-lang/rust/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
108 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:·65b80c848af6e465c8c5aef4ec8d3faaa399d30c8427c9507fda7b3bd1d3ea93·...·]/core/primitive.bool.html">bool</a><div·class="where">where108 closure·returns·a·failure,·the·failure·is·propagated·back·to·the·caller·immediately.·<a·href="https://doc.rust-lang.org/1.78.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:·bc0d658d56e348823de15386e1cd4ab49109f3a7a055a4573a19391b47071193·...·]/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.78.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:·829,·SHA:·95a840b532d3d621bde4032d63854eb0a481248e2b4bbb3ef058dbffb4dae4fa·...·]/core/primitive.bool.html">bool</a><div·class="where">where110 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·1018,·SHA:·e61cd6bdd36729cc38e57fcaea2ccb91a23a5acbda3c8986071f19bf1ecfc52a·...·]/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.78.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:·956,·SHA:·f828c62edd4fe85e217286f359b56c116e14ed18bb292ba1cc13d3ed7146909e·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;<div·class="where">where112 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·1172,·SHA:·e64ab74d116d286191ad43d9d9e10411fc011c23724aa806e9a8f9b0be0757e3·...·]/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.78.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;Self::<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:·21d7086b3ce0092e3f7a6a41174339bbd8724e7d186158db4db3385a73d94e8e·...·]/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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype[·...·truncated·by·diffoscope;·len:·1051,·SHA:·ecc0b8fccd861464760f9ae047ff6ab98c91a1db010cb5fa59a8c2ab883db7c4·...·]/core/option/enum.Option.html"·title="enum·core::option::Option">Option</a>&lt;B&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.78.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:·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·returns116 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·130,·SHA:·130a13019dc175d02304b4f550157e2f13ac15c2f25a979c74161d10b146ab89·...·]/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.try_find"·class="method·trait-impl"><a·class="src·rightside"·href="../../src/core/iter[·...·truncated·by·diffoscope;·len:·134,·SHA:·ac4da3337aac1ec10038e246be9cb719eeb5af1acc709f5a6a25b91900c56f53·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_find"·class="fn">try_find</a>&lt;F,·R&gt;(117 the·first·non-none·result.·<a·href="https://doc.rust-lang.org/1.78.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:·8ced1b10e78750774c5c8ed995ed83dcd13983aa75d329acf8069da106ab9f4a·...·]/core/iter/traits/iterator/trait.Iterator.html#method.try_find"·class="fn">try_find</a>&lt;F,·R&gt;(
118 ····&amp;mut·self,118 ····&amp;mut·self,
119 ····f:·F119 ····f:·F
120 )·-&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">where120 )·-&gt;·&lt;&lt;R·as·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&gt;::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/ops/try_trait/trait.Try.html#associatedtype.Residual"·title="type[·...·truncated·by·diffoscope;·len:·626,·SHA:·95f9831257b68862cbcbf54f0ad2ff4e597a4c9f763112d1da8a0897dadcf872·...·]/core/ops/try_trait/trait.Residual.html#associatedtype.TryType"·title="type·core::ops::try_trait::Residual::TryType">TryType</a><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.78.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;·R,122 ····F:·<a·class="trait"·href="https://doc.rust-lang.org/1.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&amp;Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·-&gt;·R,
123 ····R:·<a·class="trait"·href="../../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.78.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.78.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.78.0/core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>&gt;::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/ops/try_trait/trait.Try.html#associatedtype.Residual"·title="type[·...·truncated·by·diffoscope;·len:·412,·SHA:·22b8cbb007e5cce82b9d13a65bfa56aa8d83c32541fac25f4d9b3857b0540908·...·]/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>&gt;&gt;,</div></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.78.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:·fa9d94b216f6e4ce6035b4762e3bf17cb86a0272db0a55a056f05c68bcaeb0da·...·]/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.78.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.78.0/core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="https://doc.rust-lang.org/1.78.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item[·...·truncated·by·diffoscope;·len:·1189,·SHA:·5d7c1922225f55c116c958103921a86cb5416f658d19ceb4428fb21528622af5·...·]/core/primitive.usize.html">usize</a>&gt;<div·class="where">where
Max diff block lines reached; 82890/314526 bytes (26.35%) of diff not shown.
1020 KB
./usr/share/doc/rust-web-doc/html/alloc/vec/struct.Vec.html
    
Offset 49, 28 lines modifiedOffset 49, 28 lines modified
  
49 <span·class="kw">while·let·</span><span·class="prelude-val">Some</span>(top)·=·stack.pop()·{49 <span·class="kw">while·let·</span><span·class="prelude-val">Some</span>(top)·=·stack.pop()·{
50 ····<span·class="comment">//·Prints·3,·2,·150 ····<span·class="comment">//·Prints·3,·2,·1
51 ····</span><span·class="macro">println!</span>(<span·class="string">"{top}"</span>);51 ····</span><span·class="macro">println!</span>(<span·class="string">"{top}"</span>);
52 }</code></pre><a·class="test-arrow"·target="_blank"·href="https://play.rust-lang.org/?code=%23!%5Ballow(unused)%5D%0Afn+main()+%7B%0A++++let+mut+stack+=+Vec::new();%0A++++%0A++++stack.push(1);%0A++++stack.push(2);%0A++++stack.push(3);%0A++++%0A++++while+let+Some(top)+=+stack.pop()+%7B%0A++++++++//+Prints+3,+2,+1%0A++++++++println!(%22%7Btop%7D%22);%0A++++%7D%0A%7D&amp;edition=2021">Run</a></div>52 }</code></pre><a·class="test-arrow"·target="_blank"·href="https://play.rust-lang.org/?code=%23!%5Ballow(unused)%5D%0Afn+main()+%7B%0A++++let+mut+stack+=+Vec::new();%0A++++%0A++++stack.push(1);%0A++++stack.push(2);%0A++++stack.push(3);%0A++++%0A++++while+let+Some(top)+=+stack.pop()+%7B%0A++++++++//+Prints+3,+2,+1%0A++++++++println!(%22%7Btop%7D%22);%0A++++%7D%0A%7D&amp;edition=2021">Run</a></div>
53 <h2·id="indexing"><a·class="doc-anchor"·href="#indexing">§</a>Indexing</h2>53 <h2·id="indexing"><a·class="doc-anchor"·href="#indexing">§</a>Indexing</h2>
54 <p>The·<code>Vec</code>·type·allows·access·to·values·by·index,·because·it·implements·the54 <p>The·<code>Vec</code>·type·allows·access·to·values·by·index,·because·it·implements·the
55 <a·href="../../core/ops/index/trait.Index.html"·title="trait·core::ops::index::Index"><code>Index</code></a>·trait.·An·example·will·be·more·explicit:</p>55 <a·href="https://doc.rust-lang.org/1.78.0/core/ops/index/trait.Index.html"·title="trait·core::ops::index::Index"><code>Index</code></a>·trait.·An·example·will·be·more·explicit:</p>
  
56 <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">2</span>,·<span·class="number">4</span>,·<span·class="number">6</span>];56 <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">2</span>,·<span·class="number">4</span>,·<span·class="number">6</span>];
57 <span·class="macro">println!</span>(<span·class="string">"{}"</span>,·v[<span·class="number">1</span>]);·<span·class="comment">//·it·will·display·'2'</span></code></pre><a·class="test-arrow"·target="_blank"·href="https://play.rust-lang.org/?code=%23!%5Ballow(unused)%5D%0Afn+main()+%7B%0A++++let+v+=+vec!%5B0,+2,+4,+6%5D;%0A++++println!(%22%7B%7D%22,+v%5B1%5D);+//+it+will+display+'2'%0A%7D&amp;edition=2021">Run</a></div>57 <span·class="macro">println!</span>(<span·class="string">"{}"</span>,·v[<span·class="number">1</span>]);·<span·class="comment">//·it·will·display·'2'</span></code></pre><a·class="test-arrow"·target="_blank"·href="https://play.rust-lang.org/?code=%23!%5Ballow(unused)%5D%0Afn+main()+%7B%0A++++let+v+=+vec!%5B0,+2,+4,+6%5D;%0A++++println!(%22%7B%7D%22,+v%5B1%5D);+//+it+will+display+'2'%0A%7D&amp;edition=2021">Run</a></div>
58 <p>However·be·careful:·if·you·try·to·access·an·index·which·isn’t·in·the·<code>Vec</code>,58 <p>However·be·careful:·if·you·try·to·access·an·index·which·isn’t·in·the·<code>Vec</code>,
59 your·software·will·panic!·You·cannot·do·this:</p>59 your·software·will·panic!·You·cannot·do·this:</p>
  
60 <div·class="example-wrap·should_panic"><a·href="#"·class="tooltip"·title="This·example·panics">ⓘ</a><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">2</span>,·<span·class="number">4</span>,·<span·class="number">6</span>];60 <div·class="example-wrap·should_panic"><a·href="#"·class="tooltip"·title="This·example·panics">ⓘ</a><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">2</span>,·<span·class="number">4</span>,·<span·class="number">6</span>];
61 <span·class="macro">println!</span>(<span·class="string">"{}"</span>,·v[<span·class="number">6</span>]);·<span·class="comment">//·it·will·panic!</span></code></pre><a·class="test-arrow"·target="_blank"·href="https://play.rust-lang.org/?code=%23!%5Ballow(unused)%5D%0Afn+main()+%7B%0A++++let+v+=+vec!%5B0,+2,+4,+6%5D;%0A++++println!(%22%7B%7D%22,+v%5B6%5D);+//+it+will+panic!%0A%7D&amp;edition=2021">Run</a></div>61 <span·class="macro">println!</span>(<span·class="string">"{}"</span>,·v[<span·class="number">6</span>]);·<span·class="comment">//·it·will·panic!</span></code></pre><a·class="test-arrow"·target="_blank"·href="https://play.rust-lang.org/?code=%23!%5Ballow(unused)%5D%0Afn+main()+%7B%0A++++let+v+=+vec!%5B0,+2,+4,+6%5D;%0A++++println!(%22%7B%7D%22,+v%5B6%5D);+//+it+will+panic!%0A%7D&amp;edition=2021">Run</a></div>
62 <p>Use·<a·href="../../core/primitive.slice.html#method.get"·title="method·slice::get"><code>get</code></a>·and·<a·href="../../core/primitive.slice.html#method.get_mut"·title="method·slice::get_mut"><code>get_mut</code></a>·if·you·want·to·check·whether·the·index·is·in62 <p>Use·<a·href="https://doc.rust-lang.org/1.78.0/core/primitive.slice.html#method.get"·title="method·slice::get"><code>get</code></a>·and·<a·href="https://doc.rust-lang.org/1.78.0/core/primitive.slice.html#method.get_mut"·title="method·slice::get_mut"><code>get_mut</code></a>·if·you·want·to·check·whether·the·index·is·in
63 the·<code>Vec</code>.</p>63 the·<code>Vec</code>.</p>
64 <h2·id="slicing"><a·class="doc-anchor"·href="#slicing">§</a>Slicing</h2>64 <h2·id="slicing"><a·class="doc-anchor"·href="#slicing">§</a>Slicing</h2>
65 <p>A·<code>Vec</code>·can·be·mutable.·On·the·other·hand,·slices·are·read-only·objects.65 <p>A·<code>Vec</code>·can·be·mutable.·On·the·other·hand,·slices·are·read-only·objects.
66 To·get·a·<a·href="../../core/primitive.slice.html"·title="primitive·slice">slice</a>,·use·<a·href="../../core/primitive.reference.html"·title="primitive·reference"><code>&amp;</code></a>.·Example:</p>66 To·get·a·<a·href="https://doc.rust-lang.org/1.78.0/core/primitive.slice.html"·title="primitive·slice">slice</a>,·use·<a·href="https://doc.rust-lang.org/1.78.0/core/primitive.reference.html"·title="primitive·reference"><code>&amp;</code></a>.·Example:</p>
  
67 <div·class="example-wrap"><pre·class="rust·rust-example-rendered"><code><span·class="kw">fn·</span>read_slice(slice:·<span·class="kw-2">&amp;</span>[usize])·{67 <div·class="example-wrap"><pre·class="rust·rust-example-rendered"><code><span·class="kw">fn·</span>read_slice(slice:·<span·class="kw-2">&amp;</span>[usize])·{
68 ····<span·class="comment">//·...68 ····<span·class="comment">//·...
69 </span>}69 </span>}
  
70 <span·class="kw">let·</span>v·=·<span·class="macro">vec!</span>[<span·class="number">0</span>,·<span·class="number">1</span>];70 <span·class="kw">let·</span>v·=·<span·class="macro">vec!</span>[<span·class="number">0</span>,·<span·class="number">1</span>];
71 read_slice(<span·class="kw-2">&amp;</span>v);71 read_slice(<span·class="kw-2">&amp;</span>v);
Offset 78, 15 lines modifiedOffset 78, 15 lines modified
78 <span·class="comment">//·...·and·that's·all!78 <span·class="comment">//·...·and·that's·all!
79 //·you·can·also·do·it·like·this:79 //·you·can·also·do·it·like·this:
80 </span><span·class="kw">let·</span>u:·<span·class="kw-2">&amp;</span>[usize]·=·<span·class="kw-2">&amp;</span>v;80 </span><span·class="kw">let·</span>u:·<span·class="kw-2">&amp;</span>[usize]·=·<span·class="kw-2">&amp;</span>v;
81 <span·class="comment">//·or·like·this:81 <span·class="comment">//·or·like·this:
82 </span><span·class="kw">let·</span>u:·<span·class="kw-2">&amp;</span>[<span·class="kw">_</span>]·=·<span·class="kw-2">&amp;</span>v;</code></pre><a·class="test-arrow"·target="_blank"·href="https://play.rust-lang.org/?code=%23!%5Ballow(unused)%5D%0Afn+main()+%7B%0A++++fn+read_slice(slice:+%26%5Busize%5D)+%7B%0A++++++++//+...%0A++++%7D%0A++++%0A++++let+v+=+vec!%5B0,+1%5D;%0A++++read_slice(%26v);%0A++++%0A++++//+...+and+that's+all!%0A++++//+you+can+also+do+it+like+this:%0A++++let+u:+%26%5Busize%5D+=+%26v;%0A++++//+or+like+this:%0A++++let+u:+%26%5B_%5D+=+%26v;%0A%7D&amp;edition=2021">Run</a></div>82 </span><span·class="kw">let·</span>u:·<span·class="kw-2">&amp;</span>[<span·class="kw">_</span>]·=·<span·class="kw-2">&amp;</span>v;</code></pre><a·class="test-arrow"·target="_blank"·href="https://play.rust-lang.org/?code=%23!%5Ballow(unused)%5D%0Afn+main()+%7B%0A++++fn+read_slice(slice:+%26%5Busize%5D)+%7B%0A++++++++//+...%0A++++%7D%0A++++%0A++++let+v+=+vec!%5B0,+1%5D;%0A++++read_slice(%26v);%0A++++%0A++++//+...+and+that's+all!%0A++++//+you+can+also+do+it+like+this:%0A++++let+u:+%26%5Busize%5D+=+%26v;%0A++++//+or+like+this:%0A++++let+u:+%26%5B_%5D+=+%26v;%0A%7D&amp;edition=2021">Run</a></div>
83 <p>In·Rust,·it’s·more·common·to·pass·slices·as·arguments·rather·than·vectors83 <p>In·Rust,·it’s·more·common·to·pass·slices·as·arguments·rather·than·vectors
84 when·you·just·want·to·provide·read·access.·The·same·goes·for·<a·href="../string/struct.String.html"·title="struct·alloc::string::String"><code>String</code></a>·and84 when·you·just·want·to·provide·read·access.·The·same·goes·for·<a·href="../string/struct.String.html"·title="struct·alloc::string::String"><code>String</code></a>·and
85 <a·href="../../core/primitive.str.html"·title="primitive·str"><code>&amp;str</code></a>.</p>85 <a·href="https://doc.rust-lang.org/1.78.0/core/primitive.str.html"·title="primitive·str"><code>&amp;str</code></a>.</p>
86 <h2·id="capacity-and-reallocation"><a·class="doc-anchor"·href="#capacity-and-reallocation">§</a>Capacity·and·reallocation</h2>86 <h2·id="capacity-and-reallocation"><a·class="doc-anchor"·href="#capacity-and-reallocation">§</a>Capacity·and·reallocation</h2>
87 <p>The·capacity·of·a·vector·is·the·amount·of·space·allocated·for·any·future87 <p>The·capacity·of·a·vector·is·the·amount·of·space·allocated·for·any·future
88 elements·that·will·be·added·onto·the·vector.·This·is·not·to·be·confused·with88 elements·that·will·be·added·onto·the·vector.·This·is·not·to·be·confused·with
89 the·<em>length</em>·of·a·vector,·which·specifies·the·number·of·actual·elements89 the·<em>length</em>·of·a·vector,·which·specifies·the·number·of·actual·elements
90 within·the·vector.·If·a·vector’s·length·exceeds·its·capacity,·its·capacity90 within·the·vector.·If·a·vector’s·length·exceeds·its·capacity,·its·capacity
91 will·automatically·be·increased,·but·its·elements·will·have·to·be91 will·automatically·be·increased,·but·its·elements·will·have·to·be
92 reallocated.</p>92 reallocated.</p>
Offset 109, 15 lines modifiedOffset 109, 15 lines modified
109 The·pointer·will·never·be·null,·so·this·type·is·null-pointer-optimized.</p>109 The·pointer·will·never·be·null,·so·this·type·is·null-pointer-optimized.</p>
110 <p>However,·the·pointer·might·not·actually·point·to·allocated·memory.·In·particular,110 <p>However,·the·pointer·might·not·actually·point·to·allocated·memory.·In·particular,
111 if·you·construct·a·<code>Vec</code>·with·capacity·0·via·<a·href="struct.Vec.html#method.new"·title="associated·function·alloc::vec::Vec::new"><code>Vec::new</code></a>,·<a·href="../macro.vec.html"·title="macro·alloc::vec"><code>vec![]</code></a>,111 if·you·construct·a·<code>Vec</code>·with·capacity·0·via·<a·href="struct.Vec.html#method.new"·title="associated·function·alloc::vec::Vec::new"><code>Vec::new</code></a>,·<a·href="../macro.vec.html"·title="macro·alloc::vec"><code>vec![]</code></a>,
112 <a·href="struct.Vec.html#method.with_capacity"·title="associated·function·alloc::vec::Vec::with_capacity"><code>Vec::with_capacity(0)</code></a>,·or·by·calling·<a·href="struct.Vec.html#method.shrink_to_fit"·title="method·alloc::vec::Vec::shrink_to_fit"><code>shrink_to_fit</code></a>112 <a·href="struct.Vec.html#method.with_capacity"·title="associated·function·alloc::vec::Vec::with_capacity"><code>Vec::with_capacity(0)</code></a>,·or·by·calling·<a·href="struct.Vec.html#method.shrink_to_fit"·title="method·alloc::vec::Vec::shrink_to_fit"><code>shrink_to_fit</code></a>
113 on·an·empty·Vec,·it·will·not·allocate·memory.·Similarly,·if·you·store·zero-sized113 on·an·empty·Vec,·it·will·not·allocate·memory.·Similarly,·if·you·store·zero-sized
114 types·inside·a·<code>Vec</code>,·it·will·not·allocate·space·for·them.·<em>Note·that·in·this·case114 types·inside·a·<code>Vec</code>,·it·will·not·allocate·space·for·them.·<em>Note·that·in·this·case
115 the·<code>Vec</code>·might·not·report·a·<a·href="struct.Vec.html#method.capacity"·title="method·alloc::vec::Vec::capacity"><code>capacity</code></a>·of·0</em>.·<code>Vec</code>·will·allocate·if·and·only115 the·<code>Vec</code>·might·not·report·a·<a·href="struct.Vec.html#method.capacity"·title="method·alloc::vec::Vec::capacity"><code>capacity</code></a>·of·0</em>.·<code>Vec</code>·will·allocate·if·and·only
116 if·<code><a·href="../../core/mem/fn.size_of.html"·title="fn·core::mem::size_of">mem::size_of::&lt;T&gt;</a>()·*·<a·href="struct.Vec.html#method.capacity"·title="method·alloc::vec::Vec::capacity">capacity</a>()·&gt;·0</code>.·In·general,·<code>Vec</code>’s·allocation116 if·<code><a·href="https://doc.rust-lang.org/1.78.0/core/mem/fn.size_of.html"·title="fn·core::mem::size_of">mem::size_of::&lt;T&gt;</a>()·*·<a·href="struct.Vec.html#method.capacity"·title="method·alloc::vec::Vec::capacity">capacity</a>()·&gt;·0</code>.·In·general,·<code>Vec</code>’s·allocation
117 details·are·very·subtle··if·you·intend·to·allocate·memory·using·a·<code>Vec</code>117 details·are·very·subtle··if·you·intend·to·allocate·memory·using·a·<code>Vec</code>
118 and·use·it·for·something·else·(either·to·pass·to·unsafe·code,·or·to·build·your118 and·use·it·for·something·else·(either·to·pass·to·unsafe·code,·or·to·build·your
119 own·memory-backed·collection),·be·sure·to·deallocate·this·memory·by·using119 own·memory-backed·collection),·be·sure·to·deallocate·this·memory·by·using
120 <code>from_raw_parts</code>·to·recover·the·<code>Vec</code>·and·then·dropping·it.</p>120 <code>from_raw_parts</code>·to·recover·the·<code>Vec</code>·and·then·dropping·it.</p>
121 <p>If·a·<code>Vec</code>·<em>has</em>·allocated·memory,·then·the·memory·it·points·to·is·on·the·heap121 <p>If·a·<code>Vec</code>·<em>has</em>·allocated·memory,·then·the·memory·it·points·to·is·on·the·heap
122 (as·defined·by·the·allocator·Rust·is·configured·to·use·by·default),·and·its122 (as·defined·by·the·allocator·Rust·is·configured·to·use·by·default),·and·its
123 pointer·points·to·<a·href="struct.Vec.html#method.len"·title="method·alloc::vec::Vec::len"><code>len</code></a>·initialized,·contiguous·elements·in·order·(what123 pointer·points·to·<a·href="struct.Vec.html#method.len"·title="method·alloc::vec::Vec::len"><code>len</code></a>·initialized,·contiguous·elements·in·order·(what
Offset 134, 15 lines modifiedOffset 134, 15 lines modified
134 ············|134 ············|
135 ············v135 ············v
136 Heap···+--------+--------+--------+--------+136 Heap···+--------+--------+--------+--------+
137 ·······|····&#39;a&#39;·|····&#39;b&#39;·|·uninit·|·uninit·|137 ·······|····&#39;a&#39;·|····&#39;b&#39;·|·uninit·|·uninit·|
138 ·······+--------+--------+--------+--------+138 ·······+--------+--------+--------+--------+
139 </code></pre></div>139 </code></pre></div>
140 <ul>140 <ul>
141 <li><strong>uninit</strong>·represents·memory·that·is·not·initialized,·see·<a·href="../../core/mem/maybe_uninit/union.MaybeUninit.html"·title="union·core::mem::maybe_uninit::MaybeUninit"><code>MaybeUninit</code></a>.</li>141 <li><strong>uninit</strong>·represents·memory·that·is·not·initialized,·see·<a·href="https://doc.rust-lang.org/1.78.0/core/mem/maybe_uninit/union.MaybeUninit.html"·title="union·core::mem::maybe_uninit::MaybeUninit"><code>MaybeUninit</code></a>.</li>
142 <li>Note:·the·ABI·is·not·stable·and·<code>Vec</code>·makes·no·guarantees·about·its·memory142 <li>Note:·the·ABI·is·not·stable·and·<code>Vec</code>·makes·no·guarantees·about·its·memory
143 layout·(including·the·order·of·fields).</li>143 layout·(including·the·order·of·fields).</li>
144 </ul>144 </ul>
145 <p><code>Vec</code>·will·never·perform·a·“small·optimization”·where·elements·are·actually145 <p><code>Vec</code>·will·never·perform·a·“small·optimization”·where·elements·are·actually
146 stored·on·the·stack·for·two·reasons:</p>146 stored·on·the·stack·for·two·reasons:</p>
147 <ul>147 <ul>
148 <li>148 <li>
Offset 188, 15 lines modifiedOffset 188, 15 lines modified
188 and·then·increasing·the·length·to·match,·is·always·valid.</p>188 and·then·increasing·the·length·to·match,·is·always·valid.</p>
189 <p>Currently,·<code>Vec</code>·does·not·guarantee·the·order·in·which·elements·are·dropped.189 <p>Currently,·<code>Vec</code>·does·not·guarantee·the·order·in·which·elements·are·dropped.
190 The·order·has·changed·in·the·past·and·may·change·again.</p>190 The·order·has·changed·in·the·past·and·may·change·again.</p>
191 </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-Vec%3CT%3E"·class="impl"><a·class="src·rightside"·href="../../src/alloc/vec/mod.rs.html#407-606">source</a><a·href="#impl-Vec%3CT%3E"·class="anchor">§</a><h3·class="code-header">impl&lt;T&gt;·<a·class="struct"·href="struct.Vec.html"·title="struct·alloc::vec::Vec">Vec</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="const·since·1.39.0">const:·1.39.0</span>···<a·class="src"·href="../../src/alloc/vec/mod.rs.html#422-424">source</a></span><h4·class="code-header">pub·const·fn·<a·href="#method.new"·class="fn">new</a>()·-&gt;·Self</h4></section></summary><div·class="docblock"><p>Constructs·a·new,·empty·<code>Vec&lt;T&gt;</code>.</p>191 </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-Vec%3CT%3E"·class="impl"><a·class="src·rightside"·href="../../src/alloc/vec/mod.rs.html#407-606">source</a><a·href="#impl-Vec%3CT%3E"·class="anchor">§</a><h3·class="code-header">impl&lt;T&gt;·<a·class="struct"·href="struct.Vec.html"·title="struct·alloc::vec::Vec">Vec</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="const·since·1.39.0">const:·1.39.0</span>···<a·class="src"·href="../../src/alloc/vec/mod.rs.html#422-424">source</a></span><h4·class="code-header">pub·const·fn·<a·href="#method.new"·class="fn">new</a>()·-&gt;·Self</h4></section></summary><div·class="docblock"><p>Constructs·a·new,·empty·<code>Vec&lt;T&gt;</code>.</p>
192 <p>The·vector·will·not·allocate·until·elements·are·pushed·onto·it.</p>192 <p>The·vector·will·not·allocate·until·elements·are·pushed·onto·it.</p>
193 <h5·id="examples-1"><a·class="doc-anchor"·href="#examples-1">§</a>Examples</h5>193 <h5·id="examples-1"><a·class="doc-anchor"·href="#examples-1">§</a>Examples</h5>
194 <div·class="example-wrap"><pre·class="rust·rust-example-rendered"><code><span·class="kw">let·</span><span·class="kw-2">mut·</span>vec:·Vec&lt;i32&gt;·=·Vec::new();</code></pre><a·class="test-arrow"·target="_blank"·href="https://play.rust-lang.org/?code=%23!%5Ballow(unused)%5D%0A%23!%5Ballow(unused_mut)%5D%0Afn+main()+%7B%0A++++let+mut+vec:+Vec%3Ci32%3E+=+Vec::new();%0A%7D&amp;edition=2021">Run</a></div>194 <div·class="example-wrap"><pre·class="rust·rust-example-rendered"><code><span·class="kw">let·</span><span·class="kw-2">mut·</span>vec:·Vec&lt;i32&gt;·=·Vec::new();</code></pre><a·class="test-arrow"·target="_blank"·href="https://play.rust-lang.org/?code=%23!%5Ballow(unused)%5D%0A%23!%5Ballow(unused_mut)%5D%0Afn+main()+%7B%0A++++let+mut+vec:+Vec%3Ci32%3E+=+Vec::new();%0A%7D&amp;edition=2021">Run</a></div>
195 </div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.with_capacity"·class="method"><a·class="src·rightside"·href="../../src/alloc/vec/mod.rs.html#480-482">source</a><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;·Self</h4></section></summary><div·class="docblock"><p>Constructs·a·new,·empty·<code>Vec&lt;T&gt;</code>·with·at·least·the·specified·capacity.</p>195 </div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.with_capacity"·class="method"><a·class="src·rightside"·href="../../src/alloc/vec/mod.rs.html#480-482">source</a><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.78.0/core/primitive.usize.html">usize</a>)·-&gt;·Self</h4></section></summary><div·class="docblock"><p>Constructs·a·new,·empty·<code>Vec&lt;T&gt;</code>·with·at·least·the·specified·capacity.</p>
196 <p>The·vector·will·be·able·to·hold·at·least·<code>capacity</code>·elements·without196 <p>The·vector·will·be·able·to·hold·at·least·<code>capacity</code>·elements·without
197 reallocating.·This·method·is·allowed·to·allocate·for·more·elements·than197 reallocating.·This·method·is·allowed·to·allocate·for·more·elements·than
198 <code>capacity</code>.·If·<code>capacity</code>·is·0,·the·vector·will·not·allocate.</p>198 <code>capacity</code>.·If·<code>capacity</code>·is·0,·the·vector·will·not·allocate.</p>
199 <p>It·is·important·to·note·that·although·the·returned·vector·has·the199 <p>It·is·important·to·note·that·although·the·returned·vector·has·the
200 minimum·<em>capacity</em>·specified,·the·vector·will·have·a·zero·<em>length</em>.·For200 minimum·<em>capacity</em>·specified,·the·vector·will·have·a·zero·<em>length</em>.·For
201 an·explanation·of·the·difference·between·length·and·capacity,·see201 an·explanation·of·the·difference·between·length·and·capacity,·see
202 <em><a·href="#capacity-and-reallocation">Capacity·and·reallocation</a></em>.</p>202 <em><a·href="#capacity-and-reallocation">Capacity·and·reallocation</a></em>.</p>
Offset 225, 25 lines modifiedOffset 225, 25 lines modified
225 <span·class="macro">assert_eq!</span>(vec.len(),·<span·class="number">11</span>);225 <span·class="macro">assert_eq!</span>(vec.len(),·<span·class="number">11</span>);
226 <span·class="macro">assert!</span>(vec.capacity()·&gt;=·<span·class="number">11</span>);226 <span·class="macro">assert!</span>(vec.capacity()·&gt;=·<span·class="number">11</span>);
  
227 <span·class="comment">//·A·vector·of·a·zero-sized·type·will·always·over-allocate,·since·no227 <span·class="comment">//·A·vector·of·a·zero-sized·type·will·always·over-allocate,·since·no
228 //·allocation·is·necessary228 //·allocation·is·necessary
229 </span><span·class="kw">let·</span>vec_units·=·Vec::&lt;()&gt;::with_capacity(<span·class="number">10</span>);229 </span><span·class="kw">let·</span>vec_units·=·Vec::&lt;()&gt;::with_capacity(<span·class="number">10</span>);
230 <span·class="macro">assert_eq!</span>(vec_units.capacity(),·usize::MAX);</code></pre><a·class="test-arrow"·target="_blank"·href="https://play.rust-lang.org/?code=%23!%5Ballow(unused)%5D%0A%23%5Ballow(unused_extern_crates)%5D%0Aextern+crate+r%23alloc;%0Afn+main()+%7B%0A++++let+mut+vec+=+Vec::with_capacity(10);%0A++++%0A++++//+The+vector+contains+no+items,+even+though+it+has+capacity+for+more%0A++++assert_eq!(vec.len(),+0);%0A++++assert!(vec.capacity()+%3E=+10);%0A++++%0A++++//+These+are+all+done+without+reallocating...%0A++++for+i+in+0..10+%7B%0A++++++++vec.push(i);%0A++++%7D%0A++++assert_eq!(vec.len(),+10);%0A++++assert!(vec.capacity()+%3E=+10);%0A++++%0A++++//+...but+this+may+make+the+vector+reallocate%0A++++vec.push(11);%0A++++assert_eq!(vec.len(),+11);%0A++++assert!(vec.capacity()+%3E=+11);%0A++++%0A++++//+A+vector+of+a+zero-sized+type+will+always+over-allocate,+since+no%0A++++//+allocation+is+necessary%0A++++let+vec_units+=+Vec::%3C()%3E::with_capacity(10);%0A++++assert_eq!(vec_units.capacity(),+usize::MAX);%0A%7D&amp;edition=2021">Run</a></div>230 <span·class="macro">assert_eq!</span>(vec_units.capacity(),·usize::MAX);</code></pre><a·class="test-arrow"·target="_blank"·href="https://play.rust-lang.org/?code=%23!%5Ballow(unused)%5D%0A%23%5Ballow(unused_extern_crates)%5D%0Aextern+crate+r%23alloc;%0Afn+main()+%7B%0A++++let+mut+vec+=+Vec::with_capacity(10);%0A++++%0A++++//+The+vector+contains+no+items,+even+though+it+has+capacity+for+more%0A++++assert_eq!(vec.len(),+0);%0A++++assert!(vec.capacity()+%3E=+10);%0A++++%0A++++//+These+are+all+done+without+reallocating...%0A++++for+i+in+0..10+%7B%0A++++++++vec.push(i);%0A++++%7D%0A++++assert_eq!(vec.len(),+10);%0A++++assert!(vec.capacity()+%3E=+10);%0A++++%0A++++//+...but+this+may+make+the+vector+reallocate%0A++++vec.push(11);%0A++++assert_eq!(vec.len(),+11);%0A++++assert!(vec.capacity()+%3E=+11);%0A++++%0A++++//+A+vector+of+a+zero-sized+type+will+always+over-allocate,+since+no%0A++++//+allocation+is+necessary%0A++++let+vec_units+=+Vec::%3C()%3E::with_capacity(10);%0A++++assert_eq!(vec_units.capacity(),+usize::MAX);%0A%7D&amp;edition=2021">Run</a></div>
231 </div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.try_with_capacity"·class="method"><a·class="src·rightside"·href="../../src/alloc/vec/mod.rs.html#496-498">source</a><h4·class="code-header">pub·fn·<a·href="#method.try_with_capacity"·class="fn">try_with_capacity</a>(capacity:·<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;Self,·<a·class="struct"·href="../collections/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>Constructs·a·new,·empty·<code>Vec&lt;T&gt;</code>·with·at·least·the·specified·capacity.</p>231 </div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.try_with_capacity"·class="method"><a·class="src·rightside"·href="../../src/alloc/vec/mod.rs.html#496-498">source</a><h4·class="code-header">pub·fn·<a·href="#method.try_with_capacity"·class="fn">try_with_capacity</a>(capacity:·<a·class="primitive"·href="https://doc.rust-lang.org/1.78.0/core/primitive.usize.html">usize</a>)·-&gt;·<a·class="enum"·href="https://doc.rust-lang.org/1.78.0/core/result/enum.Result.html"·title="enum·core::result::Result">Result</a>&lt;Self,·<a·class="struct"·href="../collections/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>Constructs·a·new,·empty·<code>Vec&lt;T&gt;</code>·with·at·least·the·specified·capacity.</p>
232 <p>The·vector·will·be·able·to·hold·at·least·<code>capacity</code>·elements·without232 <p>The·vector·will·be·able·to·hold·at·least·<code>capacity</code>·elements·without
233 reallocating.·This·method·is·allowed·to·allocate·for·more·elements·than233 reallocating.·This·method·is·allowed·to·allocate·for·more·elements·than
234 <code>capacity</code>.·If·<code>capacity</code>·is·0,·the·vector·will·not·allocate.</p>234 <code>capacity</code>.·If·<code>capacity</code>·is·0,·the·vector·will·not·allocate.</p>
235 <h5·id="errors"><a·class="doc-anchor"·href="#errors">§</a>Errors</h5>235 <h5·id="errors"><a·class="doc-anchor"·href="#errors">§</a>Errors</h5>
236 <p>Returns·an·error·if·the·capacity·exceeds·<code>isize::MAX</code>·<em>bytes</em>,236 <p>Returns·an·error·if·the·capacity·exceeds·<code>isize::MAX</code>·<em>bytes</em>,
237 or·if·the·allocator·reports·allocation·failure.</p>237 or·if·the·allocator·reports·allocation·failure.</p>
238 </div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.from_raw_parts"·class="method"><a·class="src·rightside"·href="../../src/alloc/vec/mod.rs.html#603-605">source</a><h4·class="code-header">pub·unsafe·fn·<a·href="#method.from_raw_parts"·class="fn">from_raw_parts</a>(238 </div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.from_raw_parts"·class="method"><a·class="src·rightside"·href="../../src/alloc/vec/mod.rs.html#603-605">source</a><h4·class="code-header">pub·unsafe·fn·<a·href="#method.from_raw_parts"·class="fn">from_raw_parts</a>(
239 ····ptr:·<a·class="primitive"·href="../../core/primitive.pointer.html">*mut·T</a>,239 ····ptr:·<a·class="primitive"·href="https://doc.rust-lang.org/1.78.0/core/primitive.pointer.html">*mut·T</a>,
240 ····length:·<a·class="primitive"·href="../../core/primitive.usize.html">usize</a>,240 ····length:·<a·class="primitive"·href="https://doc.rust-lang.org/1.78.0/core/primitive.usize.html">usize</a>,
241 ····capacity:·<a·class="primitive"·href="../../core/primitive.usize.html">usize</a>241 ····capacity:·<a·class="primitive"·href="https://doc.rust-lang.org/1.78.0/core/primitive.usize.html">usize</a>
242 )·-&gt;·Self</h4></section></summary><div·class="docblock"><p>Creates·a·<code>Vec&lt;T&gt;</code>·directly·from·a·pointer,·a·length,·and·a·capacity.</p>242 )·-&gt;·Self</h4></section></summary><div·class="docblock"><p>Creates·a·<code>Vec&lt;T&gt;</code>·directly·from·a·pointer,·a·length,·and·a·capacity.</p>
243 <h5·id="safety"><a·class="doc-anchor"·href="#safety">§</a>Safety</h5>243 <h5·id="safety"><a·class="doc-anchor"·href="#safety">§</a>Safety</h5>
244 <p>This·is·highly·unsafe,·due·to·the·number·of·invariants·that·aren’t244 <p>This·is·highly·unsafe,·due·to·the·number·of·invariants·that·aren’t
245 checked:</p>245 checked:</p>
246 <ul>246 <ul>
247 <li><code>ptr</code>·must·have·been·allocated·using·the·global·allocator,·such·as·via247 <li><code>ptr</code>·must·have·been·allocated·using·the·global·allocator,·such·as·via
248 the·<a·href="../alloc/fn.alloc.html"·title="fn·alloc::alloc::alloc"><code>alloc::alloc</code></a>·function.</li>248 the·<a·href="../alloc/fn.alloc.html"·title="fn·alloc::alloc::alloc"><code>alloc::alloc</code></a>·function.</li>
Offset 254, 15 lines modifiedOffset 254, 15 lines modified
254 <li>The·size·of·<code>T</code>·times·the·<code>capacity</code>·(ie.·the·allocated·size·in·bytes)·needs254 <li>The·size·of·<code>T</code>·times·the·<code>capacity</code>·(ie.·the·allocated·size·in·bytes)·needs
255 to·be·the·same·size·as·the·pointer·was·allocated·with.·(Because·similar·to255 to·be·the·same·size·as·the·pointer·was·allocated·with.·(Because·similar·to
256 alignment,·<a·href="../alloc/trait.GlobalAlloc.html#tymethod.dealloc"·title="method·alloc::alloc::GlobalAlloc::dealloc"><code>dealloc</code></a>·must·be·called·with·the·same·layout·<code>size</code>.)</li>256 alignment,·<a·href="../alloc/trait.GlobalAlloc.html#tymethod.dealloc"·title="method·alloc::alloc::GlobalAlloc::dealloc"><code>dealloc</code></a>·must·be·called·with·the·same·layout·<code>size</code>.)</li>
257 <li><code>length</code>·needs·to·be·less·than·or·equal·to·<code>capacity</code>.</li>257 <li><code>length</code>·needs·to·be·less·than·or·equal·to·<code>capacity</code>.</li>
258 <li>The·first·<code>length</code>·values·must·be·properly·initialized·values·of·type·<code>T</code>.</li>258 <li>The·first·<code>length</code>·values·must·be·properly·initialized·values·of·type·<code>T</code>.</li>
259 <li><code>capacity</code>·needs·to·be·the·capacity·that·the·pointer·was·allocated·with.</li>259 <li><code>capacity</code>·needs·to·be·the·capacity·that·the·pointer·was·allocated·with.</li>
260 <li>The·allocated·size·in·bytes·must·be·no·larger·than·<code>isize::MAX</code>.260 <li>The·allocated·size·in·bytes·must·be·no·larger·than·<code>isize::MAX</code>.
261 See·the·safety·documentation·of·<a·href="../../core/primitive.pointer.html#method.offset"·title="method·pointer::offset"><code>pointer::offset</code></a>.</li>261 See·the·safety·documentation·of·<a·href="https://doc.rust-lang.org/1.78.0/core/primitive.pointer.html#method.offset"·title="method·pointer::offset"><code>pointer::offset</code></a>.</li>
Max diff block lines reached; 1020530/1040133 bytes (98.12%) of diff not shown.
1.89 KB
./usr/share/doc/rust-web-doc/html/trait.impl/core/async_iter/async_iter/trait.AsyncIterator.js
1.71 KB
js-beautify {}
    
Offset 1, 11 lines modifiedOffset 1, 11 lines modified
1 (function()·{1 (function()·{
2 ····var·implementors·=·{2 ····var·implementors·=·{
3 ········"alloc":·[3 ········"alloc":·[
4 ············["impl&lt;S:·?<a·class=\"trait\"·href=\"core/marker/trait.Sized.html\"·title=\"trait·core::marker::Sized\">Sized</a>·+·<a·class=\"trait\"·href=\"core/async_iter/async_iter/trait.AsyncIterator.html\"·title=\"trait·core::async_iter::async_iter::AsyncIterator\">AsyncIterator</a>·+·<a·class=\"trait\[·...·truncated·by·diffoscope;·len:·116,·SHA:·a8885522659779f531bef242a97fc1d5999cd242adf5d3c08cfaf7ea63d053b4·...·]core/async_iter/async_iter/trait.AsyncIterator.html\"·title=\"trait·core::async_iter::async_iter::AsyncIterator\">AsyncIterator</a>·for·<a·class=\"struct\"·href=\"alloc/boxed/struct.Box.html\"·title=\"struct·alloc::boxed::Box\">Box</a>&lt;S&gt;"]4 ············["impl&lt;S:·?<a·class=\"trait\"·href=\"https://doc.rust-lang.org/1.78.0/core/marker/trait.Sized.html\"·title=\"trait·core::marker::Sized\">Sized</a>·+·<a·class=\"trait\"·href=\"https://doc.rust-lang.org/1.78.0/core/async_iter/async_iter/trait.AsyncIterator.html\"·title=\"trait·core::async_iter:[·...·truncated·by·diffoscope;·len:·248,·SHA:·bee55624c68a4a37b106674558ec0dcc3e35d409752ad00287dff5d7034eb1de·...·]core/async_iter/async_iter/trait.AsyncIterator.html\"·title=\"trait·core::async_iter::async_iter::AsyncIterator\">AsyncIterator</a>·for·<a·class=\"struct\"·href=\"alloc/boxed/struct.Box.html\"·title=\"struct·alloc::boxed::Box\">Box</a>&lt;S&gt;"]
5 ········],5 ········],
6 ········"core":·[],6 ········"core":·[],
7 ········"std":·[]7 ········"std":·[]
8 ····};8 ····};
9 ····if·(window.register_implementors)·{9 ····if·(window.register_implementors)·{
10 ········window.register_implementors(implementors);10 ········window.register_implementors(implementors);
11 ····}·else·{11 ····}·else·{
7.26 KB
./usr/share/doc/rust-web-doc/html/trait.impl/core/borrow/trait.Borrow.js
7.12 KB
js-beautify {}
    
Offset 1, 17 lines modifiedOffset 1, 17 lines modified
1 (function()·{1 (function()·{
2 ····var·implementors·=·{2 ····var·implementors·=·{
3 ········"alloc":·[3 ········"alloc":·[
4 ············["impl·<a·class=\"trait\"·href=\"alloc/borrow/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=\"alloc/string/struct.String.html\"·title=\"struct·alloc::string::String\">String</a>"],4 ············["impl·<a·class=\"trait\"·href=\"alloc/borrow/trait.Borrow.html\"·title=\"trait·alloc::borrow::Borrow\">Borrow</a>&lt;<a·class=\"primitive\"·href=\"https://doc.rust-lang.org/1.78.0/core/primitive.str.html\">str</a>&gt;·for·<a·class=\"struct\"·href=\"alloc/string/struct.String.html\"·title=\"struct·alloc::string::String\">String</a>"],
5 ············["impl·<a·class=\"trait\"·href=\"alloc/borrow/trait.Borrow.html\"·title=\"trait·alloc::borrow::Borrow\">Borrow</a>&lt;<a·class=\"struct\"·href=\"core/ffi/c_str/struct.CStr.html\"·title=\"struct·core::ffi::c_str::CStr\">CStr</a>&gt;·for·<a·class=\"struct\"·href=\"alloc/ffi/struct.CString.html\"·title=\"struct·alloc::ffi::CString\">CString</a>"],5 ············["impl·<a·class=\"trait\"·href=\"alloc/borrow/trait.Borrow.html\"·title=\"trait·alloc::borrow::Borrow\">Borrow</a>&lt;<a·class=\"struct\"·href=\"https://doc.rust-lang.org/1.78.0/core/ffi/c_str/struct.CStr.html\"·title=\"struct·core::ffi::c_str::CStr\">CStr</a>&gt;·for·<a·class=\"struct\"·href=\"alloc/ffi/struct.CString.html\"·title=\"struct·alloc::ffi::CString\">CString</a>"],
6 ············["impl&lt;'a,·B&gt;·<a·class=\"trait\"·href=\"alloc/borrow/trait.Borrow.html\"·title=\"trait·alloc::borrow::Borrow\">Borrow</a>&lt;B&gt;·for·<a·class=\"enum\"·href=\"alloc/borrow/enum.Cow.html\"·title=\"enum·alloc::borrow::Cow\">Cow</a>&lt;'a,·B&gt;<div·class=\"where\">where\n····B:·<a·class=\"trait\"·href=\"alloc/borrow/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>"],6 ············["impl&lt;'a,·B&gt;·<a·class=\"trait\"·href=\"alloc/borrow/trait.Borrow.html\"·title=\"trait·alloc::borrow::Borrow\">Borrow</a>&lt;B&gt;·for·<a·class=\"enum\"·href=\"alloc/borrow/enum.Cow.html\"·title=\"enum·alloc::borrow::Cow\">Cow</a>&lt;'a,·B&gt;<div·class=\"where\">where\n····B:·<a·class=\"trait\"·href=\"alloc/borrow/trait.ToOwned.html\"·title=\"trait·alloc::borrow::ToOwned\">ToOwned</a>·+·?<a·class=\"trait\"·href=\"https://doc.rust-lang.org/1.78.0/core/marker/trait.Sized.html\"·title=\"trait·core::marker::Sized\">Sized</a>,</div>"],
7 ············["impl&lt;T,·A:·<a·class=\"trait\"·href=\"alloc/alloc/trait.Allocator.html\"·title=\"trait·alloc::alloc::Allocator\">Allocator</a>&gt;·<a·class=\"trait\"·href=\"alloc/borrow/trait.Borrow.html\"·title=\"trait·alloc::borrow::Borrow\">Borrow</a>&lt;<a·class=\"primitive\"·href=\"core/primitive.slice.html\">[T]</a>&gt;·for·<a·class=\"struct\"·href=\"alloc/vec/struct.Vec.html\"·title=\"struct·alloc::vec::Vec\">Vec</a>&lt;T,·A&gt;"],7 ············["impl&lt;T,·A:·<a·class=\"trait\"·href=\"alloc/alloc/trait.Allocator.html\"·title=\"trait·alloc::alloc::Allocator\">Allocator</a>&gt;·<a·class=\"trait\"·href=\"alloc/borrow/trait.Borrow.html\"·title=\"trait·alloc::borrow::Borrow\">Borrow</a>&lt;<a·class=\"primitive\"·href=\"https://doc.rust-lang.org/1.78.0/core/primitive.slice.html\">[T]</a>&gt;·for·<a·class=\"struct\"·href=\"alloc/vec/struct.Vec.html\"·title=\"struct·alloc::vec::Vec\">Vec</a>&lt;T,·A&gt;"],
8 ············["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/alloc/trait.Allocator.html\"·title=\"trait·alloc::alloc::Allocator\">Allocator</a>&gt;·<a·class=\"trait\"·href=\"alloc/borrow/trait.Borrow.html\"·title=\"trait·alloc::borrow::Borrow\">Borrow</a>&lt;T&gt;·for·<a·class=\"struct\"·href=\"alloc/boxed/struct.Box.html\"·title=\"struct·alloc::boxed::Box\">Box</a>&lt;T,·A&gt;"],8 ············["impl&lt;T:·?<a·class=\"trait\"·href=\"https://doc.rust-lang.org/1.78.0/core/marker/trait.Sized.html\"·title=\"trait·core::marker::Sized\">Sized</a>,·A:·<a·class=\"trait\"·href=\"alloc/alloc/trait.Allocator.html\"·title=\"trait·alloc::alloc::Allocator\">Allocator</a>&gt;·<a·class=\"trait\"·href=\"alloc/borrow/trait.Borrow.html\"·title=\"trait·alloc::borrow::Borrow\">Borrow</a>&lt;T&gt;·for·<a·class=\"struct\"·href=\"alloc/boxed/struct.Box.html\"·title=\"struct·alloc::boxed::Box\">Box</a>&lt;T,·A&gt;"],
9 ············["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/alloc/trait.Allocator.html\"·title=\"trait·alloc::alloc::Allocator\">Allocator</a>&gt;·<a·class=\"trait\"·href=\"alloc/borrow/trait.Borrow.html\"·title=\"trait·alloc::borrow::Borrow\">Borrow</a>&lt;T&gt;·for·<a·class=\"struct\"·href=\"alloc/rc/struct.Rc.html\"·title=\"struct·alloc::rc::Rc\">Rc</a>&lt;T,·A&gt;"],9 ············["impl&lt;T:·?<a·class=\"trait\"·href=\"https://doc.rust-lang.org/1.78.0/core/marker/trait.Sized.html\"·title=\"trait·core::marker::Sized\">Sized</a>,·A:·<a·class=\"trait\"·href=\"alloc/alloc/trait.Allocator.html\"·title=\"trait·alloc::alloc::Allocator\">Allocator</a>&gt;·<a·class=\"trait\"·href=\"alloc/borrow/trait.Borrow.html\"·title=\"trait·alloc::borrow::Borrow\">Borrow</a>&lt;T&gt;·for·<a·class=\"struct\"·href=\"alloc/rc/struct.Rc.html\"·title=\"struct·alloc::rc::Rc\">Rc</a>&lt;T,·A&gt;"],
10 ············["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/alloc/trait.Allocator.html\"·title=\"trait·alloc::alloc::Allocator\">Allocator</a>&gt;·<a·class=\"trait\"·href=\"alloc/borrow/trait.Borrow.html\"·title=\"trait·alloc::borrow::Borrow\">Borrow</a>&lt;T&gt;·for·<a·class=\"struct\"·href=\"alloc/sync/struct.Arc.html\"·title=\"struct·alloc::sync::Arc\">Arc</a>&lt;T,·A&gt;"]10 ············["impl&lt;T:·?<a·class=\"trait\"·href=\"https://doc.rust-lang.org/1.78.0/core/marker/trait.Sized.html\"·title=\"trait·core::marker::Sized\">Sized</a>,·A:·<a·class=\"trait\"·href=\"alloc/alloc/trait.Allocator.html\"·title=\"trait·alloc::alloc::Allocator\">Allocator</a>&gt;·<a·class=\"trait\"·href=\"alloc/borrow/trait.Borrow.html\"·title=\"trait·alloc::borrow::Borrow\">Borrow</a>&lt;T&gt;·for·<a·class=\"struct\"·href=\"alloc/sync/struct.Arc.html\"·title=\"struct·alloc::sync::Arc\">Arc</a>&lt;T,·A&gt;"]
11 ········],11 ········],
12 ········"core":·[],12 ········"core":·[],
13 ········"std":·[13 ········"std":·[
14 ············["impl·<a·class=\"trait\"·href=\"std/borrow/trait.Borrow.html\"·title=\"trait·std::borrow::Borrow\">Borrow</a>&lt;<a·class=\"struct\"·href=\"std/ffi/struct.OsStr.html\"·title=\"struct·std::ffi::OsStr\">OsStr</a>&gt;·for·<a·class=\"struct\"·href=\"std/ffi/struct.OsString.html\"·title=\"struct·std::ffi::OsString\">OsString</a>"],14 ············["impl·<a·class=\"trait\"·href=\"std/borrow/trait.Borrow.html\"·title=\"trait·std::borrow::Borrow\">Borrow</a>&lt;<a·class=\"struct\"·href=\"std/ffi/struct.OsStr.html\"·title=\"struct·std::ffi::OsStr\">OsStr</a>&gt;·for·<a·class=\"struct\"·href=\"std/ffi/struct.OsString.html\"·title=\"struct·std::ffi::OsString\">OsString</a>"],
15 ············["impl·<a·class=\"trait\"·href=\"std/borrow/trait.Borrow.html\"·title=\"trait·std::borrow::Borrow\">Borrow</a>&lt;<a·class=\"struct\"·href=\"std/path/struct.Path.html\"·title=\"struct·std::path::Path\">Path</a>&gt;·for·<a·class=\"struct\"·href=\"std/path/struct.PathBuf.html\"·title=\"struct·std::path::PathBuf\">PathBuf</a>"]15 ············["impl·<a·class=\"trait\"·href=\"std/borrow/trait.Borrow.html\"·title=\"trait·std::borrow::Borrow\">Borrow</a>&lt;<a·class=\"struct\"·href=\"std/path/struct.Path.html\"·title=\"struct·std::path::Path\">Path</a>&gt;·for·<a·class=\"struct\"·href=\"std/path/struct.PathBuf.html\"·title=\"struct·std::path::PathBuf\">PathBuf</a>"]
16 ········]16 ········]
17 ····};17 ····};
3.0 KB
./usr/share/doc/rust-web-doc/html/trait.impl/core/borrow/trait.BorrowMut.js
2.86 KB
js-beautify {}
    
Offset 1, 13 lines modifiedOffset 1, 13 lines modified
1 (function()·{1 (function()·{
2 ····var·implementors·=·{2 ····var·implementors·=·{
3 ········"alloc":·[3 ········"alloc":·[
4 ············["impl·<a·class=\"trait\"·href=\"alloc/borrow/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=\"alloc/string/struct.String.html\"·title=\"struct·alloc::string::String\">String</a>"],4 ············["impl·<a·class=\"trait\"·href=\"alloc/borrow/trait.BorrowMut.html\"·title=\"trait·alloc::borrow::BorrowMut\">BorrowMut</a>&lt;<a·class=\"primitive\"·href=\"https://doc.rust-lang.org/1.78.0/core/primitive.str.html\">str</a>&gt;·for·<a·class=\"struct\"·href=\"alloc/string/struct.String.html\"·title=\"struct·alloc::string::String\">String</a>"],
5 ············["impl&lt;T,·A:·<a·class=\"trait\"·href=\"alloc/alloc/trait.Allocator.html\"·title=\"trait·alloc::alloc::Allocator\">Allocator</a>&gt;·<a·class=\"trait\"·href=\"alloc/borrow/trait.BorrowMut.html\"·title=\"trait·alloc::borrow::BorrowMut\">BorrowMut</a>&lt;<a·class=\"primitive\"·href=\"core/primitive.slice.html\">[T]</a>&gt;·for·<a·class=\"struct\"·href=\"alloc/vec/struct.Vec.html\"·title=\"struct·alloc::vec::Vec\">Vec</a>&lt;T,·A&gt;"],5 ············["impl&lt;T,·A:·<a·class=\"trait\"·href=\"alloc/alloc/trait.Allocator.html\"·title=\"trait·alloc::alloc::Allocator\">Allocator</a>&gt;·<a·class=\"trait\"·href=\"alloc/borrow/trait.BorrowMut.html\"·title=\"trait·alloc::borrow::BorrowMut\">BorrowMut</a>&lt;<a·class=\"primitive\"·href=\"https://doc.rust-lang.org/1.78.0/core/primitive.slice.html\">[T]</a>&gt;·for·<a·class=\"struct\"·href=\"alloc/vec/struct.Vec.html\"·title=\"struct·alloc::vec::Vec\">Vec</a>&lt;T,·A&gt;"],
6 ············["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/alloc/trait.Allocator.html\"·title=\"trait·alloc::alloc::Allocator\">Allocator</a>&gt;·<a·class=\"trait\"·href=\"alloc/borrow/trait.BorrowMut.html\"·title=\"trait·alloc::borrow::BorrowMut\">BorrowMut</a>&lt;T&gt;·for·<a·class=\"struct\"·href=\"alloc/boxed/struct.Box.html\"·title=\"struct·alloc::boxed::Box\">Box</a>&lt;T,·A&gt;"]6 ············["impl&lt;T:·?<a·class=\"trait\"·href=\"https://doc.rust-lang.org/1.78.0/core/marker/trait.Sized.html\"·title=\"trait·core::marker::Sized\">Sized</a>,·A:·<a·class=\"trait\"·href=\"alloc/alloc/trait.Allocator.html\"·title=\"trait·alloc::alloc::Allocator\">Allocator</a>&gt;·<a·class=\"trait\"·href=\"alloc/borrow/trait.BorrowMut.html\"·title=\"trait·alloc::borrow::BorrowMut\">BorrowMut</a>&lt;T&gt;·for·<a·class=\"struct\"·href=\"alloc/boxed/struct.Box.html\"·title=\"struct·alloc::boxed::Box\">Box</a>&lt;T,·A&gt;"]
7 ········],7 ········],
8 ········"core":·[],8 ········"core":·[],
9 ········"std":·[]9 ········"std":·[]
10 ····};10 ····};
11 ····if·(window.register_implementors)·{11 ····if·(window.register_implementors)·{
12 ········window.register_implementors(implementors);12 ········window.register_implementors(implementors);
13 ····}·else·{13 ····}·else·{
41.4 KB
./usr/share/doc/rust-web-doc/html/trait.impl/core/clone/trait.Clone.js
41.3 KB
js-beautify {}
Max HTML report size reached
16.2 KB
./usr/share/doc/rust-web-doc/html/trait.impl/core/cmp/trait.Eq.js
16.0 KB
js-beautify {}
Max HTML report size reached
12.7 KB
./usr/share/doc/rust-web-doc/html/trait.impl/core/cmp/trait.Ord.js
12.5 KB
js-beautify {}
Max HTML report size reached
51.5 KB
./usr/share/doc/rust-web-doc/html/trait.impl/core/cmp/trait.PartialEq.js
51.4 KB
js-beautify {}
Max HTML report size reached
14.2 KB
./usr/share/doc/rust-web-doc/html/trait.impl/core/cmp/trait.PartialOrd.js
14.0 KB
js-beautify {}
Max HTML report size reached
4.0 KB
./usr/share/doc/rust-web-doc/html/trait.impl/core/convert/trait.AsMut.js
3.86 KB
js-beautify {}
    
Offset 1, 14 lines modifiedOffset 1, 14 lines modified
1 (function()·{1 (function()·{
2 ····var·implementors·=·{2 ····var·implementors·=·{
3 ········"alloc":·[3 ········"alloc":·[
4 ············["impl·<a·class=\"trait\"·href=\"core/convert/trait.AsMut.html\"·title=\"trait·core::convert::AsMut\">AsMut</a>&lt;<a·class=\"primitive\"·href=\"core/primitive.str.html\">str</a>&gt;·for·<a·class=\"struct\"·href=\"alloc/string/struct.String.html\"·title=\"struct·alloc::string::String\">String</a>"],4 ············["impl·<a·class=\"trait\"·href=\"https://doc.rust-lang.org/1.78.0/core/convert/trait.AsMut.html\"·title=\"trait·core::convert::AsMut\">AsMut</a>&lt;<a·class=\"primitive\"·href=\"https://doc.rust-lang.org/1.78.0/core/primitive.str.html\">str</a>&gt;·for·<a·class=\"struct\"·href=\"alloc/string/struct.String.html\"·title=\"struct·alloc::string::String\">String</a>"],
5 ············["impl&lt;T,·A:·<a·class=\"trait\"·href=\"alloc/alloc/trait.Allocator.html\"·title=\"trait·alloc::alloc::Allocator\">Allocator</a>&gt;·<a·class=\"trait\"·href=\"core/convert/trait.AsMut.html\"·title=\"trait·core::convert::AsMut\">AsMut</a>&lt;<a·class=\"primitive\"·href=\"core/primitive.slice.html\">[T]</a>&gt;·for·<a·class=\"struct\"·href=\"alloc/vec/struct.Vec.html\"·title=\"struct·alloc::vec::Vec\">Vec</a>&lt;T,·A&gt;"],5 ············["impl&lt;T,·A:·<a·class=\"trait\"·href=\"alloc/alloc/trait.Allocator.html\"·title=\"trait·alloc::alloc::Allocator\">Allocator</a>&gt;·<a·class=\"trait\"·href=\"https://doc.rust-lang.org/1.78.0/core/convert/trait.AsMut.html\"·title=\"trait·core::convert::AsMut\">AsMut</a>&lt;<a·class=\"primitive\"·href=\"https://doc.rust-lang.org/1.78.0/core/primitive.slice.html\">[T]</a>&gt;·for·<a·class=\"struct\"·href=\"alloc/vec/struct.Vec.html\"·title=\"struct·alloc::vec::Vec\">Vec</a>&lt;T,·A&gt;"],
6 ············["impl&lt;T,·A:·<a·class=\"trait\"·href=\"alloc/alloc/trait.Allocator.html\"·title=\"trait·alloc::alloc::Allocator\">Allocator</a>&gt;·<a·class=\"trait\"·href=\"core/convert/trait.AsMut.html\"·title=\"trait·core::convert::AsMut\">AsMut</a>&lt;<a·class=\"struct\"·href=\"alloc/vec/struct.Vec.html\"·title=\"struct·alloc::vec::Vec\">Vec</a>&lt;T,·A&gt;&gt;·for·<a·class=\"struct\"·href=\"alloc/vec/struct.Vec.html\"·title=\"struct·alloc::vec::Vec\">Vec</a>&lt;T,·A&gt;"],6 ············["impl&lt;T,·A:·<a·class=\"trait\"·href=\"alloc/alloc/trait.Allocator.html\"·title=\"trait·alloc::alloc::Allocator\">Allocator</a>&gt;·<a·class=\"trait\"·href=\"https://doc.rust-lang.org/1.78.0/core/convert/trait.AsMut.html\"·title=\"trait·core::convert::AsMut\">AsMut</a>&lt;<a·class=\"struct\"·href=\"alloc/vec/struct.Vec.html\"·title=\"struct·alloc::vec::Vec\">Vec</a>&lt;T,·A&gt;&gt;·for·<a·class=\"struct\"·href=\"alloc/vec/struct.Vec.html\"·title=\"struct·alloc::vec::Vec\">Vec</a>&lt;T,·A&gt;"],
7 ············["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/alloc/trait.Allocator.html\"·title=\"trait·alloc::alloc::Allocator\">Allocator</a>&gt;·<a·class=\"trait\"·href=\"core/convert/trait.AsMut.html\"·title=\"trait·core::convert::AsMut\">AsMut</a>&lt;T&gt;·for·<a·class=\"struct\"·href=\"alloc/boxed/struct.Box.html\"·title=\"struct·alloc::boxed::Box\">Box</a>&lt;T,·A&gt;"]7 ············["impl&lt;T:·?<a·class=\"trait\"·href=\"https://doc.rust-lang.org/1.78.0/core/marker/trait.Sized.html\"·title=\"trait·core::marker::Sized\">Sized</a>,·A:·<a·class=\"trait\"·href=\"alloc/alloc/trait.Allocator.html\"·title=\"trait·alloc::alloc::Allocator\">Allocator</a>&gt;·<a·class=\"trait\"·href[·...·truncated·by·diffoscope;·len:·36,·SHA:·03afe516ffb4a2d1365e5587b8e49710e7eda5bb0e76d92fb73010ed96f7045e·...·]core/convert/trait.AsMut.html\"·title=\"trait·core::convert::AsMut\">AsMut</a>&lt;T&gt;·for·<a·class=\"struct\"·href=\"alloc/boxed/struct.Box.html\"·title=\"struct·alloc::boxed::Box\">Box</a>&lt;T,·A&gt;"]
8 ········],8 ········],
9 ········"core":·[],9 ········"core":·[],
10 ········"std":·[]10 ········"std":·[]
11 ····};11 ····};
12 ····if·(window.register_implementors)·{12 ····if·(window.register_implementors)·{
13 ········window.register_implementors(implementors);13 ········window.register_implementors(implementors);
14 ····}·else·{14 ····}·else·{
13.0 KB
./usr/share/doc/rust-web-doc/html/trait.impl/core/convert/trait.AsRef.js
12.8 KB
js-beautify {}
Max HTML report size reached
96.4 KB
./usr/share/doc/rust-web-doc/html/trait.impl/core/convert/trait.From.js
96.3 KB
js-beautify {}
Max HTML report size reached
7.68 KB
./usr/share/doc/rust-web-doc/html/trait.impl/core/convert/trait.TryFrom.js
7.54 KB
js-beautify {}
    
Offset 1, 15 lines modifiedOffset 1, 15 lines modified
1 (function()·{1 (function()·{
2 ····var·implementors·=·{2 ····var·implementors·=·{
3 ········"alloc":·[3 ········"alloc":·[
4 ············["impl&lt;T,·A:·<a·class=\"trait\"·href=\"alloc/alloc/trait.Allocator.html\"·title=\"trait·alloc::alloc::Allocator\">Allocator</a>,·const·N:·<a·class=\"primitive\"·href=\"core/primitive.usize.html\">usize</a>&gt;·<a·class=\"trait\"·href=\"core/convert/trait.TryFrom.html\"·title=\"trait·core::convert::TryFrom\">TryFrom</a>&lt;<a·class=\"struct\"·href=\"alloc/sync/struct.Arc.html\"·title=\"struct·alloc::sync::Arc\">Arc</a>&lt[·...·truncated·by·diffoscope;·len:·213,·SHA:·93270084695c8729e7b3cd04b81cf52b1516e175bf79556a0b7d2457e86898e6·...·]core/primitive.array.html\">[T;·N]</a>,·A&gt;"],4 ············["impl&lt;T,·A:·<a·class=\"trait\"·href=\"alloc/alloc/trait.Allocator.html\"·title=\"trait·alloc::alloc::Allocator\">Allocator</a>,·const·N:·<a·class=\"primitive\"·href=\"https://doc.rust-lang.org/1.78.0/core/primitive.usize.html\">usize</a>&gt;·<a·class=\"trait\"·href=\"https://doc.rust-lang.org/1.78.0/core/convert/trait.TryFrom.html\"·title=\"trait·core::convert::TryFrom\">TryFrom</a>&lt;<a·class=\"struct\"·href=\"alloc/s[·...·truncated·by·diffoscope;·len:·345,·SHA:·198f765d99cea35b7ce69a90aced8e99f591f2fd1cbf48da2079bd4dd8197f00·...·]core/primitive.array.html\">[T;·N]</a>,·A&gt;"],
5 ············["impl&lt;T,·A:·<a·class=\"trait\"·href=\"alloc/alloc/trait.Allocator.html\"·title=\"trait·alloc::alloc::Allocator\">Allocator</a>,·const·N:·<a·class=\"primitive\"·href=\"core/primitive.usize.html\">usize</a>&gt;·<a·class=\"trait\"·href=\"core/convert/trait.TryFrom.html\"·title=\"trait·core::convert::TryFrom\">TryFrom</a>&lt;<a·class=\"struct\"·href=\"alloc/vec/struct.Vec.html\"·title=\"struct·alloc::vec::Vec\">Vec</a>&lt;T[·...·truncated·by·diffoscope;·len:·46,·SHA:·ab88f73cff621daad44f947a78d3bdbc665c733649535bab67b7180b9ce16fab·...·]core/primitive.array.html\">[T;·N]</a>"],5 ············["impl&lt;T,·A:·<a·class=\"trait\"·href=\"alloc/alloc/trait.Allocator.html\"·title=\"trait·alloc::alloc::Allocator\">Allocator</a>,·const·N:·<a·class=\"primitive\"·href=\"https://doc.rust-lang.org/1.78.0/core/primitive.usize.html\">usize</a>&gt;·<a·class=\"trait\"·href=\"https://doc.rust-lang.org/1.78.0/core/convert/trait.TryFrom.html\"·title=\"trait·core::convert::TryFrom\">TryFrom</a>&lt;<a·class=\"struct\"·href=\"alloc/v[·...·truncated·by·diffoscope;·len:·145,·SHA:·7430b0f23ca31bfbf6d4da50d2b328a3aaccb846734ea8dc91b2fe7c53500592·...·]core/primitive.array.html\">[T;·N]</a>"],
6 ············["impl&lt;T,·const·N:·<a·class=\"primitive\"·href=\"core/primitive.usize.html\">usize</a>&gt;·<a·class=\"trait\"·href=\"core/convert/trait.TryFrom.html\"·title=\"trait·core::convert::TryFrom\">TryFrom</a>&lt;<a·class=\"struct\"·href=\"alloc/boxed/struct.Box.html\"·title=\"struct·alloc::boxed::Box\">Box</a>&[·...·truncated·by·diffoscope;·len:·214,·SHA:·650220956aa55e90c041bccdbc18b0d42740d5004773750b274761ff3793cbfb·...·]core/primitive.array.html\">[T;·N]</a>&gt;"],6 ············["impl&lt;T,·const·N:·<a·class=\"primitive\"·href=\"https://doc.rust-lang.org/1.78.0/core/primitive.usize.html\">usize</a>&gt;·<a·class=\"trait\"·href=\"https://doc.rust-lang.org/1.78.0/core/convert/trait.TryFrom.html\"·title=\"trait·core::convert::TryFrom\">TryFrom</a>&lt;<a·class=\"struct\"·href=\"alloc/b[·...·truncated·by·diffoscope;·len:·346,·SHA:·db2a668bcdd6139fbef1d54aab9dd61cd3ecb67f85be907165c3769d7c8b37e9·...·]core/primitive.array.html\">[T;·N]</a>&gt;"],
7 ············["impl&lt;T,·const·N:·<a·class=\"primitive\"·href=\"core/primitive.usize.html\">usize</a>&gt;·<a·class=\"trait\"·href=\"core/convert/trait.TryFrom.html\"·title=\"trait·core::convert::TryFrom\">TryFrom</a>&lt;<a·class=\"struct\"·href=\"alloc/rc/struct.Rc.html\"·title=\"struct·alloc::rc::Rc\">Rc</a>&lt;<a·cla[·...·truncated·by·diffoscope;·len:·196,·SHA:·9e40b00cb10267e1c042e8508cf18cce278c8dc926fa35966bc0eb43866d0de9·...·]core/primitive.array.html\">[T;·N]</a>&gt;"],7 ············["impl&lt;T,·const·N:·<a·class=\"primitive\"·href=\"https://doc.rust-lang.org/1.78.0/core/primitive.usize.html\">usize</a>&gt;·<a·class=\"trait\"·href=\"https://doc.rust-lang.org/1.78.0/core/convert/trait.TryFrom.html\"·title=\"trait·core::convert::TryFrom\">TryFrom</a>&lt;<a·class=\"struct\"·href=\"alloc/r[·...·truncated·by·diffoscope;·len:·328,·SHA:·241659fa0c5eb9b5181ece207c50d4e7224814f4fadadd35b919d9e9ec23cee5·...·]core/primitive.array.html\">[T;·N]</a>&gt;"],
8 ············["impl&lt;T,·const·N:·<a·class=\"primitive\"·href=\"core/primitive.usize.html\">usize</a>&gt;·<a·class=\"trait\"·href=\"core/convert/trait.TryFrom.html\"·title=\"trait·core::convert::TryFrom\">TryFrom</a>&lt;<a·class=\"struct\"·href=\"alloc/vec/struct.Vec.html\"·title=\"struct·alloc::vec::Vec\">Vec</a>&lt;T[·...·truncated·by·diffoscope;·len:·146,·SHA:·4b179ddc73754212ae37f5daa8a4ed5d1e61217f41f48c1d758047c447634e0d·...·]core/primitive.array.html\">[T;·N]</a>&gt;"]8 ············["impl&lt;T,·const·N:·<a·class=\"primitive\"·href=\"https://doc.rust-lang.org/1.78.0/core/primitive.usize.html\">usize</a>&gt;·<a·class=\"trait\"·href=\"https://doc.rust-lang.org/1.78.0/core/convert/trait.TryFrom.html\"·title=\"trait·core::convert::TryFrom\">TryFrom</a>&lt;<a·class=\"struct\"·href=\"alloc/v[·...·truncated·by·diffoscope;·len:·245,·SHA:·ab5e4652eb59c3f2a89306f6af4f6a0705c3f0df3c0254b6251a7e69b4fa0f1e·...·]core/primitive.array.html\">[T;·N]</a>&gt;"]
9 ········],9 ········],
10 ········"core":·[],10 ········"core":·[],
11 ········"std":·[11 ········"std":·[
12 ············["impl·<a·class=\"trait\"·href=\"std/convert/trait.TryFrom.html\"·title=\"trait·std::convert::TryFrom\">TryFrom</a>&lt;<a·class=\"struct\"·href=\"std/os/windows/io/struct.HandleOrInvalid.html\"·title=\"struct·std::os::windows::io::HandleOrInvalid\">HandleOrInvalid</a>&gt;·for·<a·class=\"struct\"·href=\"std/os/windows/io/struct.OwnedHandle.html\"·title=\"struct·std::os::windows::io::OwnedHandle\">OwnedHandle</a>"],12 ············["impl·<a·class=\"trait\"·href=\"std/convert/trait.TryFrom.html\"·title=\"trait·std::convert::TryFrom\">TryFrom</a>&lt;<a·class=\"struct\"·href=\"std/os/windows/io/struct.HandleOrInvalid.html\"·title=\"struct·std::os::windows::io::HandleOrInvalid\">HandleOrInvalid</a>&gt;·for·<a·class=\"struct\"·href=\"std/os/windows/io/struct.OwnedHandle.html\"·title=\"struct·std::os::windows::io::OwnedHandle\">OwnedHandle</a>"],
13 ············["impl·<a·class=\"trait\"·href=\"std/convert/trait.TryFrom.html\"·title=\"trait·std::convert::TryFrom\">TryFrom</a>&lt;<a·class=\"struct\"·href=\"std/os/windows/io/struct.HandleOrNull.html\"·title=\"struct·std::os::windows::io::HandleOrNull\">HandleOrNull</a>&gt;·for·<a·class=\"struct\"·href=\"std/os/windows/io/struct.OwnedHandle.html\"·title=\"struct·std::os::windows::io::OwnedHandle\">OwnedHandle</a>"],13 ············["impl·<a·class=\"trait\"·href=\"std/convert/trait.TryFrom.html\"·title=\"trait·std::convert::TryFrom\">TryFrom</a>&lt;<a·class=\"struct\"·href=\"std/os/windows/io/struct.HandleOrNull.html\"·title=\"struct·std::os::windows::io::HandleOrNull\">HandleOrNull</a>&gt;·for·<a·class=\"struct\"·href=\"std/os/windows/io/struct.OwnedHandle.html\"·title=\"struct·std::os::windows::io::OwnedHandle\">OwnedHandle</a>"],
14 ············["impl&lt;'a&gt;·<a·class=\"trait\"·href=\"std/convert/trait.TryFrom.html\"·title=\"trait·std::convert::TryFrom\">TryFrom</a>&lt;&amp;'a·<a·class=\"struct\"·href=\"std/ffi/struct.OsStr.html\"·title=\"struct·std::ffi::OsStr\">OsStr</a>&gt;·for·&amp;'a·<a·class=\"primitive\"·href=\"std/primitive.str.html\">str</a>"]14 ············["impl&lt;'a&gt;·<a·class=\"trait\"·href=\"std/convert/trait.TryFrom.html\"·title=\"trait·std::convert::TryFrom\">TryFrom</a>&lt;&amp;'a·<a·class=\"struct\"·href=\"std/ffi/struct.OsStr.html\"·title=\"struct·std::ffi::OsStr\">OsStr</a>&gt;·for·&amp;'a·<a·class=\"primitive\"·href=\"std/primitive.str.html\">str</a>"]
15 ········]15 ········]
27.0 KB
./usr/share/doc/rust-web-doc/html/trait.impl/core/default/trait.Default.js
26.8 KB
js-beautify {}
Max HTML report size reached
8.76 KB
./usr/share/doc/rust-web-doc/html/trait.impl/core/error/trait.Error.js
8.62 KB
js-beautify {}
Max HTML report size reached
55.2 KB
./usr/share/doc/rust-web-doc/html/trait.impl/core/fmt/trait.Debug.js
55.0 KB
js-beautify {}
Max HTML report size reached
10.6 KB
./usr/share/doc/rust-web-doc/html/trait.impl/core/fmt/trait.Display.js
10.5 KB
js-beautify {}
Max HTML report size reached
3.27 KB
./usr/share/doc/rust-web-doc/html/trait.impl/core/fmt/trait.Pointer.js
3.14 KB
js-beautify {}
    
Offset 1, 13 lines modifiedOffset 1, 13 lines modified
1 (function()·{1 (function()·{
2 ····var·implementors·=·{2 ····var·implementors·=·{
3 ········"alloc":·[3 ········"alloc":·[
4 ············["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/alloc/trait.Allocator.html\"·title=\"trait·alloc::alloc::Allocator\">Allocator</a>&gt;·<a·class=\"trait\"·href=\"alloc/fmt/trait.Pointer.html\"·title=\"trait·alloc::fmt::Pointer\">Pointer</a>·for·<a·class=\"struct\"·href=\"alloc/boxed/struct.Box.html\"·title=\"struct·alloc::boxed::Box\">Box</a>&lt;T,·A&gt;"],4 ············["impl&lt;T:·?<a·class=\"trait\"·href=\"https://doc.rust-lang.org/1.78.0/core/marker/trait.Sized.html\"·title=\"trait·core::marker::Sized\">Sized</a>,·A:·<a·class=\"trait\"·href=\"alloc/alloc/trait.Allocator.html\"·title=\"trait·alloc::alloc::Allocator\">Allocator</a>&gt;·<a·class=\"trait\"·href=\"alloc/fmt/trait.Pointer.html\"·title=\"trait·alloc::fmt::Pointer\">Pointer</a>·for·<a·class=\"struct\"·href=\"alloc/boxed/struct.Box.html\"·title=\"struct·alloc::boxed::Box\">Box</a>&lt;T,·A&gt;"],
5 ············["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/alloc/trait.Allocator.html\"·title=\"trait·alloc::alloc::Allocator\">Allocator</a>&gt;·<a·class=\"trait\"·href=\"alloc/fmt/trait.Pointer.html\"·title=\"trait·alloc::fmt::Pointer\">Pointer</a>·for·<a·class=\"struct\"·href=\"alloc/rc/struct.Rc.html\"·title=\"struct·alloc::rc::Rc\">Rc</a>&lt;T,·A&gt;"],5 ············["impl&lt;T:·?<a·class=\"trait\"·href=\"https://doc.rust-lang.org/1.78.0/core/marker/trait.Sized.html\"·title=\"trait·core::marker::Sized\">Sized</a>,·A:·<a·class=\"trait\"·href=\"alloc/alloc/trait.Allocator.html\"·title=\"trait·alloc::alloc::Allocator\">Allocator</a>&gt;·<a·class=\"trait\"·href=\"alloc/fmt/trait.Pointer.html\"·title=\"trait·alloc::fmt::Pointer\">Pointer</a>·for·<a·class=\"struct\"·href=\"alloc/rc/struct.Rc.html\"·title=\"struct·alloc::rc::Rc\">Rc</a>&lt;T,·A&gt;"],
6 ············["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/alloc/trait.Allocator.html\"·title=\"trait·alloc::alloc::Allocator\">Allocator</a>&gt;·<a·class=\"trait\"·href=\"alloc/fmt/trait.Pointer.html\"·title=\"trait·alloc::fmt::Pointer\">Pointer</a>·for·<a·class=\"struct\"·href=\"alloc/sync/struct.Arc.html\"·title=\"struct·alloc::sync::Arc\">Arc</a>&lt;T,·A&gt;"]6 ············["impl&lt;T:·?<a·class=\"trait\"·href=\"https://doc.rust-lang.org/1.78.0/core/marker/trait.Sized.html\"·title=\"trait·core::marker::Sized\">Sized</a>,·A:·<a·class=\"trait\"·href=\"alloc/alloc/trait.Allocator.html\"·title=\"trait·alloc::alloc::Allocator\">Allocator</a>&gt;·<a·class=\"trait\"·href=\"alloc/fmt/trait.Pointer.html\"·title=\"trait·alloc::fmt::Pointer\">Pointer</a>·for·<a·class=\"struct\"·href=\"alloc/sync/struct.Arc.html\"·title=\"struct·alloc::sync::Arc\">Arc</a>&lt;T,·A&gt;"]
7 ········],7 ········],
8 ········"core":·[],8 ········"core":·[],
9 ········"std":·[]9 ········"std":·[]
10 ····};10 ····};
11 ····if·(window.register_implementors)·{11 ····if·(window.register_implementors)·{
12 ········window.register_implementors(implementors);12 ········window.register_implementors(implementors);
13 ····}·else·{13 ····}·else·{
1.96 KB
./usr/share/doc/rust-web-doc/html/trait.impl/core/future/future/trait.Future.js
1.8 KB
js-beautify {}
    
Offset 1, 11 lines modifiedOffset 1, 11 lines modified
1 (function()·{1 (function()·{
2 ····var·implementors·=·{2 ····var·implementors·=·{
3 ········"alloc":·[3 ········"alloc":·[
4 ············["impl&lt;F:·?<a·class=\"trait\"·href=\"core/marker/trait.Sized.html\"·title=\"trait·core::marker::Sized\">Sized</a>·+·<a·class=\"trait\"·href=\"core/future/future/trait.Future.html\"·title=\"trait·core::future::future::Future\">Future</a>·+·<a·class=\"trait\"·href=\"core/marker/trait.Unpin.html[·...·truncated·by·diffoscope;·len:·198,·SHA:·fa2cf0bab99fd58108cf4eb8ed3e322669f728d2801f1aa7c16f1a5ba83a6da9·...·]core/future/future/trait.Future.html\"·title=\"trait·core::future::future::Future\">Future</a>·for·<a·class=\"struct\"·href=\"alloc/boxed/struct.Box.html\"·title=\"struct·alloc::boxed::Box\">Box</a>&lt;F,·A&gt;"]4 ············["impl&lt;F:·?<a·class=\"trait\"·href=\"https://doc.rust-lang.org/1.78.0/core/marker/trait.Sized.html\"·title=\"trait·core::marker::Sized\">Sized</a>·+·<a·class=\"trait\"·href=\"https://doc.rust-lang.org/1.78.0/core/future/future/trait.Future.html\"·title=\"trait·core::future::future::Future\">F[·...·truncated·by·diffoscope;·len:·330,·SHA:·eedd6eb2cb482588a8f1d505b24dbb8987573b3ac694143421b72b2800a0249b·...·]core/future/future/trait.Future.html\"·title=\"trait·core::future::future::Future\">Future</a>·for·<a·class=\"struct\"·href=\"alloc/boxed/struct.Box.html\"·title=\"struct·alloc::boxed::Box\">Box</a>&lt;F,·A&gt;"]
5 ········],5 ········],
6 ········"core":·[],6 ········"core":·[],
7 ········"std":·[]7 ········"std":·[]
8 ····};8 ····};
9 ····if·(window.register_implementors)·{9 ····if·(window.register_implementors)·{
10 ········window.register_implementors(implementors);10 ········window.register_implementors(implementors);
11 ····}·else·{11 ····}·else·{
12.9 KB
./usr/share/doc/rust-web-doc/html/trait.impl/core/hash/trait.Hash.js
12.7 KB
js-beautify {}
Max HTML report size reached
1.85 KB
./usr/share/doc/rust-web-doc/html/trait.impl/core/hash/trait.Hasher.js
1.71 KB
js-beautify {}
    
Offset 1, 11 lines modifiedOffset 1, 11 lines modified
1 (function()·{1 (function()·{
2 ····var·implementors·=·{2 ····var·implementors·=·{
3 ········"alloc":·[3 ········"alloc":·[
4 ············["impl&lt;T:·?<a·class=\"trait\"·href=\"core/marker/trait.Sized.html\"·title=\"trait·core::marker::Sized\">Sized</a>·+·<a·class=\"trait\"·href=\"core/hash/trait.Hasher.html\"·title=\"trait·core::hash::Hasher\">Hasher</a>,·A:·<a·class=\"trait\"·href=\"alloc/alloc/trait.Allocator.html\"·title=\"tr[·...·truncated·by·diffoscope;·len:·74,·SHA:·95de70063de51bc3649b4e4ba6e0e03e94e2356777ce46246b799a1e05b2b19b·...·]core/hash/trait.Hasher.html\"·title=\"trait·core::hash::Hasher\">Hasher</a>·for·<a·class=\"struct\"·href=\"alloc/boxed/struct.Box.html\"·title=\"struct·alloc::boxed::Box\">Box</a>&lt;T,·A&gt;"]4 ············["impl&lt;T:·?<a·class=\"trait\"·href=\"https://doc.rust-lang.org/1.78.0/core/marker/trait.Sized.html\"·title=\"trait·core::marker::Sized\">Sized</a>·+·<a·class=\"trait\"·href=\"https://doc.rust-lang.org/1.78.0/core/hash/trait.Hasher.html\"·title=\"trait·core::hash::Hasher\">Hasher</a>,·A:·<a·cl[·...·truncated·by·diffoscope;·len:·173,·SHA:·0f3a39f439e57d6d68f75196fa1622fdf890262d3b529326bc2eaf08f1c54ed3·...·]core/hash/trait.Hasher.html\"·title=\"trait·core::hash::Hasher\">Hasher</a>·for·<a·class=\"struct\"·href=\"alloc/boxed/struct.Box.html\"·title=\"struct·alloc::boxed::Box\">Box</a>&lt;T,·A&gt;"]
5 ········],5 ········],
6 ········"core":·[],6 ········"core":·[],
7 ········"std":·[7 ········"std":·[
8 ············["impl·<a·class=\"trait\"·href=\"std/hash/trait.Hasher.html\"·title=\"trait·std::hash::Hasher\">Hasher</a>·for·<a·class=\"struct\"·href=\"std/collections/hash_map/struct.DefaultHasher.html\"·title=\"struct·std::collections::hash_map::DefaultHasher\">DefaultHasher</a>"]8 ············["impl·<a·class=\"trait\"·href=\"std/hash/trait.Hasher.html\"·title=\"trait·std::hash::Hasher\">Hasher</a>·for·<a·class=\"struct\"·href=\"std/collections/hash_map/struct.DefaultHasher.html\"·title=\"struct·std::collections::hash_map::DefaultHasher\">DefaultHasher</a>"]
9 ········]9 ········]
10 ····};10 ····};
11 ····if·(window.register_implementors)·{11 ····if·(window.register_implementors)·{
22.5 KB
./usr/share/doc/rust-web-doc/html/trait.impl/core/iter/traits/collect/trait.Extend.js
22.3 KB
js-beautify {}
Max HTML report size reached
17.8 KB
./usr/share/doc/rust-web-doc/html/trait.impl/core/iter/traits/collect/trait.FromIterator.js
17.6 KB
js-beautify {}
Max HTML report size reached
17.3 KB
./usr/share/doc/rust-web-doc/html/trait.impl/core/iter/traits/collect/trait.IntoIterator.js
17.1 KB
js-beautify {}
Max HTML report size reached
27.7 KB
./usr/share/doc/rust-web-doc/html/trait.impl/core/iter/traits/double_ended/trait.DoubleEndedIterator.js
27.4 KB
js-beautify {}
Max HTML report size reached
26.5 KB
./usr/share/doc/rust-web-doc/html/trait.impl/core/iter/traits/exact_size/trait.ExactSizeIterator.js
26.3 KB
js-beautify {}
Max HTML report size reached
39.0 KB
./usr/share/doc/rust-web-doc/html/trait.impl/core/iter/traits/iterator/trait.Iterator.js
38.8 KB
js-beautify {}
Max HTML report size reached
35.2 KB
./usr/share/doc/rust-web-doc/html/trait.impl/core/iter/traits/marker/trait.FusedIterator.js
35.1 KB
js-beautify {}
Max HTML report size reached
6.79 KB
./usr/share/doc/rust-web-doc/html/trait.impl/core/iter/traits/marker/trait.TrustedLen.js
6.62 KB
js-beautify {}
    
Offset 1, 17 lines modifiedOffset 1, 17 lines modified
1 (function()·{1 (function()·{
2 ····var·implementors·=·{2 ····var·implementors·=·{
3 ········"alloc":·[3 ········"alloc":·[
4 ············["impl&lt;T&gt;·<a·class=\"trait\"·href=\"core/iter/traits/marker/trait.TrustedLen.html\"·title=\"trait·core::iter::traits::marker::TrustedLen\">TrustedLen</a>·for·<a·class=\"struct\"·href=\"alloc/collections/vec_deque/struct.Iter.html\"·title=\"struct·alloc::collections::vec_deque::Iter\">Iter</a>&lt;'_,·T&gt;"],4 ············["impl&lt;T&gt;·<a·class=\"trait\"·href=\"https://doc.rust-lang.org/1.78.0/core/iter/traits/marker/trait.TrustedLen.html\"·title=\"trait·core::iter::traits::marker::TrustedLen\">TrustedLen</a>·for·<a·class=\"struct\"·href=\"alloc/collections/vec_deque/struct.Iter.html\"·title=\"struct·alloc::collections::vec_deque::Iter\">Iter</a>&lt;'_,·T&gt;"],
5 ············["impl&lt;T&gt;·<a·class=\"trait\"·href=\"core/iter/traits/marker/trait.TrustedLen.html\"·title=\"trait·core::iter::traits::marker::TrustedLen\">TrustedLen</a>·for·<a·class=\"struct\"·href=\"alloc/collections/vec_deque/struct.IterMut.html\"·title=\"struct·alloc::collections::vec_deque::IterMut\">IterMut</a>&lt;'_,·T&gt;"],5 ············["impl&lt;T&gt;·<a·class=\"trait\"·href=\"https://doc.rust-lang.org/1.78.0/core/iter/traits/marker/trait.TrustedLen.html\"·title=\"trait·core::iter::traits::marker::TrustedLen\">TrustedLen</a>·for·<a·class=\"struct\"·href=\"alloc/collections/vec_deque/struct.IterMut.html\"·title=\"struct·alloc::collections::vec_deque::IterMut\">IterMut</a>&lt;'_,·T&gt;"],
6 ············["impl&lt;T,·A:·<a·class=\"trait\"·href=\"alloc/alloc/trait.Allocator.html\"·title=\"trait·alloc::alloc::Allocator\">Allocator</a>&gt;·<a·class=\"trait\"·href=\"core/iter/traits/marker/trait.TrustedLen.html\"·title=\"trait·core::iter::traits::marker::TrustedLen\">TrustedLen</a>·for·<a·class=\"struct\"·href=\"alloc/collections/vec_deque/struct.IntoIter.html\"·title=\"struct·alloc::collections::vec_deque::IntoIter\">IntoIter</a>&lt;T,·A&gt;"],6 ············["impl&lt;T,·A:·<a·class=\"trait\"·href=\"alloc/alloc/trait.Allocator.html\"·title=\"trait·alloc::alloc::Allocator\">Allocator</a>&gt;·<a·class=\"trait\"·href=\"https://doc.rust-lang.org/1.78.0/core/iter/traits/marker/trait.TrustedLen.html\"·title=\"trait·core::iter::traits::marker::TrustedLen\">TrustedLen</a>·for·<a·class=\"struct\"·href=\"alloc/collections/vec_deque/struct.IntoIter.html\"·title=\"struct·alloc::collections::vec_deque::IntoIter\">IntoIter</a>&lt;T,·A&gt;"],
7 ············["impl&lt;T,·A:·<a·class=\"trait\"·href=\"alloc/alloc/trait.Allocator.html\"·title=\"trait·alloc::alloc::Allocator\">Allocator</a>&gt;·<a·class=\"trait\"·href=\"core/iter/traits/marker/trait.TrustedLen.html\"·title=\"trait·core::iter::traits::marker::TrustedLen\">TrustedLen</a>·for·<a·class=\"struct\"·href=\"alloc/vec/struct.Drain.html\"·title=\"struct·alloc::vec::Drain\">Drain</a>&lt;'_,·T,·A&gt;"],7 ············["impl&lt;T,·A:·<a·class=\"trait\"·href=\"alloc/alloc/trait.Allocator.html\"·title=\"trait·alloc::alloc::Allocator\">Allocator</a>&gt;·<a·class=\"trait\"·href=\"https://doc.rust-lang.org/1.78.0/core/iter/traits/marker/trait.TrustedLen.html\"·title=\"trait·core::iter::traits::marker::TrustedLen\">TrustedLen</a>·for·<a·class=\"struct\"·href=\"alloc/vec/struct.Drain.html\"·title=\"struct·alloc::vec::Drain\">Drain</a>&lt;'_,·T,·A&gt;"],
8 ············["impl&lt;T,·A:·<a·class=\"trait\"·href=\"alloc/alloc/trait.Allocator.html\"·title=\"trait·alloc::alloc::Allocator\">Allocator</a>&gt;·<a·class=\"trait\"·href=\"core/iter/traits/marker/trait.TrustedLen.html\"·title=\"trait·core::iter::traits::marker::TrustedLen\">TrustedLen</a>·for·<a·class=\"struct\"·href=\"alloc/vec/struct.IntoIter.html\"·title=\"struct·alloc::vec::IntoIter\">IntoIter</a>&lt;T,·A&gt;"],8 ············["impl&lt;T,·A:·<a·class=\"trait\"·href=\"alloc/alloc/trait.Allocator.html\"·title=\"trait·alloc::alloc::Allocator\">Allocator</a>&gt;·<a·class=\"trait\"·href=\"https://doc.rust-lang.org/1.78.0/core/iter/traits/marker/trait.TrustedLen.html\"·title=\"trait·core::iter::traits::marker::TrustedLen\">TrustedLen</a>·for·<a·class=\"struct\"·href=\"alloc/vec/struct.IntoIter.html\"·title=\"struct·alloc::vec::IntoIter\">IntoIter</a>&lt;T,·A&gt;"],
9 ············["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/alloc/trait.Allocator.html\"·title=\"trait·alloc::alloc::Allocator\">Allocator</a>&gt;·<a·class=\"trait\"·href=\"core/iter/traits/marker/trait.TrustedLen.html\"·title=\"trait·core::iter::traits::marker::TrustedLen\">TrustedLen</a>·for·<a·class=\"struct\"·href=\"alloc/collections/binary_heap/struct.DrainSorted.html\"·title=\"struct·alloc::collections::binary_heap::DrainSorted\">DrainSorted</a>&lt;'_,·T,·A&gt;"],9 ············["impl&lt;T:·<a·class=\"trait\"·href=\"https://doc.rust-lang.org/1.78.0/core/cmp/trait.Ord.html\"·title=\"trait·core::cmp::Ord\">Ord</a>,·A:·<a·class=\"trait\"·href=\"alloc/alloc/trait.Allocator.html\"·title=\"trait·alloc::alloc::Allocator\">Allocator</a>&gt;·<a·class=\"trait\"·href=\"https://d[·...·truncated·by·diffoscope;·len:·24,·SHA:·9c32837262219ec2cb78e82a6f1be07302207808c51f11797102a853054c5c59·...·]core/iter/traits/marker/trait.TrustedLen.html\"·title=\"trait·core::iter::traits::marker::TrustedLen\">TrustedLen</a>·for·<a·class=\"struct\"·href=\"alloc/collections/binary_heap/struct.DrainSorted.html\"·title=\"struct·alloc::collections::binary_heap::DrainSorted\">DrainSorted</a>&lt;'_,·T,·A&gt;"],
10 ············["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/alloc/trait.Allocator.html\"·title=\"trait·alloc::alloc::Allocator\">Allocator</a>&gt;·<a·class=\"trait\"·href=\"core/iter/traits/marker/trait.TrustedLen.html\"·title=\"trait·core::iter::traits::marker::TrustedLen\">TrustedLen</a>·for·<a·class=\"struct\"·href=\"alloc/collections/binary_heap/struct.IntoIterSorted.html\"·title=\"struct·alloc::collections::binary_heap::IntoIterSorted\">IntoIterSorted</a>&lt;T,·A&gt;"]10 ············["impl&lt;T:·<a·class=\"trait\"·href=\"https://doc.rust-lang.org/1.78.0/core/cmp/trait.Ord.html\"·title=\"trait·core::cmp::Ord\">Ord</a>,·A:·<a·class=\"trait\"·href=\"alloc/alloc/trait.Allocator.html\"·title=\"trait·alloc::alloc::Allocator\">Allocator</a>&gt;·<a·class=\"trait\"·href=\"https://d[·...·truncated·by·diffoscope;·len:·24,·SHA:·9c32837262219ec2cb78e82a6f1be07302207808c51f11797102a853054c5c59·...·]core/iter/traits/marker/trait.TrustedLen.html\"·title=\"trait·core::iter::traits::marker::TrustedLen\">TrustedLen</a>·for·<a·class=\"struct\"·href=\"alloc/collections/binary_heap/struct.IntoIterSorted.html\"·title=\"struct·alloc::collections::binary_heap::IntoIterSorted\">IntoIterSorted</a>&lt;T,·A&gt;"]
11 ········],11 ········],
12 ········"core":·[],12 ········"core":·[],
13 ········"std":·[]13 ········"std":·[]
14 ····};14 ····};
15 ····if·(window.register_implementors)·{15 ····if·(window.register_implementors)·{
16 ········window.register_implementors(implementors);16 ········window.register_implementors(implementors);
17 ····}·else·{17 ····}·else·{
1.68 KB
./usr/share/doc/rust-web-doc/html/trait.impl/core/marker/trait.Copy.js
1.55 KB
js-beautify {}
    
Offset 1, 11 lines modifiedOffset 1, 11 lines modified
1 (function()·{1 (function()·{
2 ····var·implementors·=·{2 ····var·implementors·=·{
3 ········"alloc":·[3 ········"alloc":·[
4 ············["impl·<a·class=\"trait\"·href=\"core/marker/trait.Copy.html\"·title=\"trait·core::marker::Copy\">Copy</a>·for·<a·class=\"struct\"·href=\"alloc/alloc/struct.Global.html\"·title=\"struct·alloc::alloc::Global\">Global</a>"]4 ············["impl·<a·class=\"trait\"·href=\"https://doc.rust-lang.org/1.78.0/core/marker/trait.Copy.html\"·title=\"trait·core::marker::Copy\">Copy</a>·for·<a·class=\"struct\"·href=\"alloc/alloc/struct.Global.html\"·title=\"struct·alloc::alloc::Global\">Global</a>"]
5 ········],5 ········],
6 ········"core":·[],6 ········"core":·[],
7 ········"proc_macro":·[7 ········"proc_macro":·[
8 ············["impl·<a·class=\"trait\"·href=\"core/marker/trait.Copy.html\"·title=\"trait·core::marker::Copy\">Copy</a>·for·<a·class=\"enum\"·href=\"proc_macro/enum.Delimiter.html\"·title=\"enum·proc_macro::Delimiter\">Delimiter</a>"],8 ············["impl·<a·class=\"trait\"·href=\"core/marker/trait.Copy.html\"·title=\"trait·core::marker::Copy\">Copy</a>·for·<a·class=\"enum\"·href=\"proc_macro/enum.Delimiter.html\"·title=\"enum·proc_macro::Delimiter\">Delimiter</a>"],
9 ············["impl·<a·class=\"trait\"·href=\"core/marker/trait.Copy.html\"·title=\"trait·core::marker::Copy\">Copy</a>·for·<a·class=\"enum\"·href=\"proc_macro/enum.Level.html\"·title=\"enum·proc_macro::Level\">Level</a>"],9 ············["impl·<a·class=\"trait\"·href=\"core/marker/trait.Copy.html\"·title=\"trait·core::marker::Copy\">Copy</a>·for·<a·class=\"enum\"·href=\"proc_macro/enum.Level.html\"·title=\"enum·proc_macro::Level\">Level</a>"],
10 ············["impl·<a·class=\"trait\"·href=\"core/marker/trait.Copy.html\"·title=\"trait·core::marker::Copy\">Copy</a>·for·<a·class=\"enum\"·href=\"proc_macro/enum.Spacing.html\"·title=\"enum·proc_macro::Spacing\">Spacing</a>"],10 ············["impl·<a·class=\"trait\"·href=\"core/marker/trait.Copy.html\"·title=\"trait·core::marker::Copy\">Copy</a>·for·<a·class=\"enum\"·href=\"proc_macro/enum.Spacing.html\"·title=\"enum·proc_macro::Spacing\">Spacing</a>"],
11 ············["impl·<a·class=\"trait\"·href=\"core/marker/trait.Copy.html\"·title=\"trait·core::marker::Copy\">Copy</a>·for·<a·class=\"struct\"·href=\"proc_macro/struct.Span.html\"·title=\"struct·proc_macro::Span\">Span</a>"]11 ············["impl·<a·class=\"trait\"·href=\"core/marker/trait.Copy.html\"·title=\"trait·core::marker::Copy\">Copy</a>·for·<a·class=\"struct\"·href=\"proc_macro/struct.Span.html\"·title=\"struct·proc_macro::Span\">Span</a>"]
64.7 KB
./usr/share/doc/rust-web-doc/html/trait.impl/core/marker/trait.Freeze.js
64.5 KB
js-beautify {}
Max HTML report size reached
86.7 KB
./usr/share/doc/rust-web-doc/html/trait.impl/core/marker/trait.Send.js
86.5 KB
js-beautify {}
Max HTML report size reached
6.66 KB
./usr/share/doc/rust-web-doc/html/trait.impl/core/marker/trait.StructuralPartialEq.js
6.49 KB
js-beautify {}
    
Offset 1, 19 lines modifiedOffset 1, 19 lines modified
1 (function()·{1 (function()·{
2 ····var·implementors·=·{2 ····var·implementors·=·{
3 ········"alloc":·[3 ········"alloc":·[
4 ············["impl·<a·class=\"trait\"·href=\"core/marker/trait.StructuralPartialEq.html\"·title=\"trait·core::marker::StructuralPartialEq\">StructuralPartialEq</a>·for·<a·class=\"enum\"·href=\"alloc/collections/enum.TryReserveErrorKind.html\"·title=\"enum·alloc::collections::TryReserveErrorKind\">TryReserveErrorKind</a>"],4 ············["impl·<a·class=\"trait\"·href=\"https://doc.rust-lang.org/1.78.0/core/marker/trait.StructuralPartialEq.html\"·title=\"trait·core::marker::StructuralPartialEq\">StructuralPartialEq</a>·for·<a·class=\"enum\"·href=\"alloc/collections/enum.TryReserveErrorKind.html\"·title=\"enum·alloc::collections::TryReserveErrorKind\">TryReserveErrorKind</a>"],
5 ············["impl·<a·class=\"trait\"·href=\"core/marker/trait.StructuralPartialEq.html\"·title=\"trait·core::marker::StructuralPartialEq\">StructuralPartialEq</a>·for·<a·class=\"struct\"·href=\"alloc/collections/btree_map/struct.UnorderedKeyError.html\"·title=\"struct·alloc::collections::btree_map::UnorderedKeyError\">UnorderedKeyError</a>"],5 ············["impl·<a·class=\"trait\"·href=\"https://doc.rust-lang.org/1.78.0/core/marker/trait.StructuralPartialEq.html\"·title=\"trait·core::marker::StructuralPartialEq\">StructuralPartialEq</a>·for·<a·class=\"struct\"·href=\"alloc/collections/btree_map/struct.UnorderedKeyError.html\"·title=\"struct·alloc::collections::btree_map::UnorderedKeyError\">UnorderedKeyError</a>"],
6 ············["impl·<a·class=\"trait\"·href=\"core/marker/trait.StructuralPartialEq.html\"·title=\"trait·core::marker::StructuralPartialEq\">StructuralPartialEq</a>·for·<a·class=\"struct\"·href=\"alloc/collections/struct.TryReserveError.html\"·title=\"struct·alloc::collections::TryReserveError\">TryReserveError</a>"],6 ············["impl·<a·class=\"trait\"·href=\"https://doc.rust-lang.org/1.78.0/core/marker/trait.StructuralPartialEq.html\"·title=\"trait·core::marker::StructuralPartialEq\">StructuralPartialEq</a>·for·<a·class=\"struct\"·href=\"alloc/collections/struct.TryReserveError.html\"·title=\"struct·alloc::collections::TryReserveError\">TryReserveError</a>"],
7 ············["impl·<a·class=\"trait\"·href=\"core/marker/trait.StructuralPartialEq.html\"·title=\"trait·core::marker::StructuralPartialEq\">StructuralPartialEq</a>·for·<a·class=\"struct\"·href=\"alloc/ffi/c_str/struct.FromVecWithNulError.html\"·title=\"struct·alloc::ffi::c_str::FromVecWithNulError\">FromVecWithNulError</a>"],7 ············["impl·<a·class=\"trait\"·href=\"https://doc.rust-lang.org/1.78.0/core/marker/trait.StructuralPartialEq.html\"·title=\"trait·core::marker::StructuralPartialEq\">StructuralPartialEq</a>·for·<a·class=\"struct\"·href=\"alloc/ffi/c_str/struct.FromVecWithNulError.html\"·title=\"struct·alloc::ffi::c_str::FromVecWithNulError\">FromVecWithNulError</a>"],
8 ············["impl·<a·class=\"trait\"·href=\"core/marker/trait.StructuralPartialEq.html\"·title=\"trait·core::marker::StructuralPartialEq\">StructuralPartialEq</a>·for·<a·class=\"struct\"·href=\"alloc/ffi/c_str/struct.IntoStringError.html\"·title=\"struct·alloc::ffi::c_str::IntoStringError\">IntoStringError</a>"],8 ············["impl·<a·class=\"trait\"·href=\"https://doc.rust-lang.org/1.78.0/core/marker/trait.StructuralPartialEq.html\"·title=\"trait·core::marker::StructuralPartialEq\">StructuralPartialEq</a>·for·<a·class=\"struct\"·href=\"alloc/ffi/c_str/struct.IntoStringError.html\"·title=\"struct·alloc::ffi::c_str::IntoStringError\">IntoStringError</a>"],
9 ············["impl·<a·class=\"trait\"·href=\"core/marker/trait.StructuralPartialEq.html\"·title=\"trait·core::marker::StructuralPartialEq\">StructuralPartialEq</a>·for·<a·class=\"struct\"·href=\"alloc/ffi/c_str/struct.NulError.html\"·title=\"struct·alloc::ffi::c_str::NulError\">NulError</a>"],9 ············["impl·<a·class=\"trait\"·href=\"https://doc.rust-lang.org/1.78.0/core/marker/trait.StructuralPartialEq.html\"·title=\"trait·core::marker::StructuralPartialEq\">StructuralPartialEq</a>·for·<a·class=\"struct\"·href=\"alloc/ffi/c_str/struct.NulError.html\"·title=\"struct·alloc::ffi::c_str::NulError\">NulError</a>"],
10 ············["impl·<a·class=\"trait\"·href=\"core/marker/trait.StructuralPartialEq.html\"·title=\"trait·core::marker::StructuralPartialEq\">StructuralPartialEq</a>·for·<a·class=\"struct\"·href=\"alloc/ffi/struct.CString.html\"·title=\"struct·alloc::ffi::CString\">CString</a>"],10 ············["impl·<a·class=\"trait\"·href=\"https://doc.rust-lang.org/1.78.0/core/marker/trait.StructuralPartialEq.html\"·title=\"trait·core::marker::StructuralPartialEq\">StructuralPartialEq</a>·for·<a·class=\"struct\"·href=\"alloc/ffi/struct.CString.html\"·title=\"struct·alloc::ffi::CString\">CString</a>"],
11 ············["impl·<a·class=\"trait\"·href=\"core/marker/trait.StructuralPartialEq.html\"·title=\"trait·core::marker::StructuralPartialEq\">StructuralPartialEq</a>·for·<a·class=\"struct\"·href=\"alloc/string/struct.FromUtf8Error.html\"·title=\"struct·alloc::string::FromUtf8Error\">FromUtf8Error</a>"],11 ············["impl·<a·class=\"trait\"·href=\"https://doc.rust-lang.org/1.78.0/core/marker/trait.StructuralPartialEq.html\"·title=\"trait·core::marker::StructuralPartialEq\">StructuralPartialEq</a>·for·<a·class=\"struct\"·href=\"alloc/string/struct.FromUtf8Error.html\"·title=\"struct·alloc::string::FromUtf8Error\">FromUtf8Error</a>"],
12 ············["impl·<a·class=\"trait\"·href=\"core/marker/trait.StructuralPartialEq.html\"·title=\"trait·core::marker::StructuralPartialEq\">StructuralPartialEq</a>·for·<a·class=\"struct\"·href=\"alloc/string/struct.String.html\"·title=\"struct·alloc::string::String\">String</a>"]12 ············["impl·<a·class=\"trait\"·href=\"https://doc.rust-lang.org/1.78.0/core/marker/trait.StructuralPartialEq.html\"·title=\"trait·core::marker::StructuralPartialEq\">StructuralPartialEq</a>·for·<a·class=\"struct\"·href=\"alloc/string/struct.String.html\"·title=\"struct·alloc::string::String\">String</a>"]
13 ········],13 ········],
14 ········"core":·[],14 ········"core":·[],
15 ········"proc_macro":·[15 ········"proc_macro":·[
16 ············["impl·<a·class=\"trait\"·href=\"core/marker/trait.StructuralPartialEq.html\"·title=\"trait·core::marker::StructuralPartialEq\">StructuralPartialEq</a>·for·<a·class=\"enum\"·href=\"proc_macro/enum.Delimiter.html\"·title=\"enum·proc_macro::Delimiter\">Delimiter</a>"],16 ············["impl·<a·class=\"trait\"·href=\"core/marker/trait.StructuralPartialEq.html\"·title=\"trait·core::marker::StructuralPartialEq\">StructuralPartialEq</a>·for·<a·class=\"enum\"·href=\"proc_macro/enum.Delimiter.html\"·title=\"enum·proc_macro::Delimiter\">Delimiter</a>"],
17 ············["impl·<a·class=\"trait\"·href=\"core/marker/trait.StructuralPartialEq.html\"·title=\"trait·core::marker::StructuralPartialEq\">StructuralPartialEq</a>·for·<a·class=\"enum\"·href=\"proc_macro/enum.Spacing.html\"·title=\"enum·proc_macro::Spacing\">Spacing</a>"]17 ············["impl·<a·class=\"trait\"·href=\"core/marker/trait.StructuralPartialEq.html\"·title=\"trait·core::marker::StructuralPartialEq\">StructuralPartialEq</a>·for·<a·class=\"enum\"·href=\"proc_macro/enum.Spacing.html\"·title=\"enum·proc_macro::Spacing\">Spacing</a>"]
18 ········],18 ········],
19 ········"std":·[19 ········"std":·[
86.7 KB
./usr/share/doc/rust-web-doc/html/trait.impl/core/marker/trait.Sync.js
86.5 KB
js-beautify {}
Max HTML report size reached
66.0 KB
./usr/share/doc/rust-web-doc/html/trait.impl/core/marker/trait.Unpin.js
65.9 KB
js-beautify {}
Max HTML report size reached
3.2 KB
./usr/share/doc/rust-web-doc/html/trait.impl/core/ops/arith/trait.Add.js
3.06 KB
js-beautify {}
    
Offset 1, 13 lines modifiedOffset 1, 13 lines modified
1 (function()·{1 (function()·{
2 ····var·implementors·=·{2 ····var·implementors·=·{
3 ········"alloc":·[3 ········"alloc":·[
4 ············["impl·<a·class=\"trait\"·href=\"core/ops/arith/trait.Add.html\"·title=\"trait·core::ops::arith::Add\">Add</a>&lt;&amp;<a·class=\"primitive\"·href=\"core/primitive.str.html\">str</a>&gt;·for·<a·class=\"struct\"·href=\"alloc/string/struct.String.html\"·title=\"struct·alloc::string::String\">String</a>"],4 ············["impl·<a·class=\"trait\"·href=\"https://doc.rust-lang.org/1.78.0/core/ops/arith/trait.Add.html\"·title=\"trait·core::ops::arith::Add\">Add</a>&lt;&amp;<a·class=\"primitive\"·href=\"https://doc.rust-lang.org/1.78.0/core/primitive.str.html\">str</a>&gt;·for·<a·class=\"struct\"·href=\"alloc/string/struct.String.html\"·title=\"struct·alloc::string::String\">String</a>"],
5 ············["impl&lt;'a&gt;·<a·class=\"trait\"·href=\"core/ops/arith/trait.Add.html\"·title=\"trait·core::ops::arith::Add\">Add</a>·for·<a·class=\"enum\"·href=\"alloc/borrow/enum.Cow.html\"·title=\"enum·alloc::borrow::Cow\">Cow</a>&lt;'a,·<a·class=\"primitive\"·href=\"core/primitive.str.html\">str</a>&gt;"],5 ············["impl&lt;'a&gt;·<a·class=\"trait\"·href=\"https://doc.rust-lang.org/1.78.0/core/ops/arith/trait.Add.html\"·title=\"trait·core::ops::arith::Add\">Add</a>·for·<a·class=\"enum\"·href=\"alloc/borrow/enum.Cow.html\"·title=\"enum·alloc::borrow::Cow\">Cow</a>&lt;'a,·<a·class=\"primitive\"·href=\"https://[·...·truncated·by·diffoscope;·len:·25,·SHA:·eae6b019cda0f601209917b39165912f1be44908e74c3d4e94ab4ecd4623db0c·...·]core/primitive.str.html\">str</a>&gt;"],
6 ············["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=\"alloc/borrow/enum.Cow.html\"·title=\"enum·alloc::borrow::Cow\">Cow</a>[·...·truncated·by·diffoscope;·len:·38,·SHA:·a264348171d64fd35cd318d754e249470d5122965b3d1f28996ab87d61f36e36·...·]core/primitive.str.html\">str</a>&gt;"]6 ············["impl&lt;'a&gt;·<a·class=\"trait\"·href=\"https://doc.rust-lang.org/1.78.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.78.0/core/primitive.str.html\">str</a>&gt;·for·<a·class=\"enum\"·href=\"allo[·...·truncated·by·diffoscope;·len:·137,·SHA:·18815633524c1736b41300da0e442ba1eb6be309600d240c1ec8fa0206252b12·...·]core/primitive.str.html\">str</a>&gt;"]
7 ········],7 ········],
8 ········"core":·[],8 ········"core":·[],
9 ········"std":·[9 ········"std":·[
10 ············["impl·<a·class=\"trait\"·href=\"std/ops/trait.Add.html\"·title=\"trait·std::ops::Add\">Add</a>&lt;<a·class=\"struct\"·href=\"std/time/struct.Duration.html\"·title=\"struct·std::time::Duration\">Duration</a>&gt;·for·<a·class=\"struct\"·href=\"std/time/struct.Instant.html\"·title=\"struct·std::time::Instant\">Instant</a>"],10 ············["impl·<a·class=\"trait\"·href=\"std/ops/trait.Add.html\"·title=\"trait·std::ops::Add\">Add</a>&lt;<a·class=\"struct\"·href=\"std/time/struct.Duration.html\"·title=\"struct·std::time::Duration\">Duration</a>&gt;·for·<a·class=\"struct\"·href=\"std/time/struct.Instant.html\"·title=\"struct·std::time::Instant\">Instant</a>"],
11 ············["impl·<a·class=\"trait\"·href=\"std/ops/trait.Add.html\"·title=\"trait·std::ops::Add\">Add</a>&lt;<a·class=\"struct\"·href=\"std/time/struct.Duration.html\"·title=\"struct·std::time::Duration\">Duration</a>&gt;·for·<a·class=\"struct\"·href=\"std/time/struct.SystemTime.html\"·title=\"struct·std::time::SystemTime\">SystemTime</a>"]11 ············["impl·<a·class=\"trait\"·href=\"std/ops/trait.Add.html\"·title=\"trait·std::ops::Add\">Add</a>&lt;<a·class=\"struct\"·href=\"std/time/struct.Duration.html\"·title=\"struct·std::time::Duration\">Duration</a>&gt;·for·<a·class=\"struct\"·href=\"std/time/struct.SystemTime.html\"·title=\"struct·std::time::SystemTime\">SystemTime</a>"]
12 ········]12 ········]
13 ····};13 ····};
3.35 KB
./usr/share/doc/rust-web-doc/html/trait.impl/core/ops/arith/trait.AddAssign.js
3.2 KB
js-beautify {}
    
Offset 1, 13 lines modifiedOffset 1, 13 lines modified
1 (function()·{1 (function()·{
2 ····var·implementors·=·{2 ····var·implementors·=·{
3 ········"alloc":·[3 ········"alloc":·[
4 ············["impl·<a·class=\"trait\"·href=\"core/ops/arith/trait.AddAssign.html\"·title=\"trait·core::ops::arith::AddAssign\">AddAssign</a>&lt;&amp;<a·class=\"primitive\"·href=\"core/primitive.str.html\">str</a>&gt;·for·<a·class=\"struct\"·href=\"alloc/string/struct.String.html\"·title=\"struct·alloc::string::String\">String</a>"],4 ············["impl·<a·class=\"trait\"·href=\"https://doc.rust-lang.org/1.78.0/core/ops/arith/trait.AddAssign.html\"·title=\"trait·core::ops::arith::AddAssign\">AddAssign</a>&lt;&amp;<a·class=\"primitive\"·href=\"https://doc.rust-lang.org/1.78.0/core/primitive.str.html\">str</a>&gt;·for·<a·class=\"struct\"·href=\"alloc/string/struct.String.html\"·title=\"struct·alloc::string::String\">String</a>"],
5 ············["impl&lt;'a&gt;·<a·class=\"trait\"·href=\"core/ops/arith/trait.AddAssign.html\"·title=\"trait·core::ops::arith::AddAssign\">AddAssign</a>·for·<a·class=\"enum\"·href=\"alloc/borrow/enum.Cow.html\"·title=\"enum·alloc::borrow::Cow\">Cow</a>&lt;'a,·<a·class=\"primitive\"·href=\"core/primitive.str.html\">str</a>&gt;"],5 ············["impl&lt;'a&gt;·<a·class=\"trait\"·href=\"https://doc.rust-lang.org/1.78.0/core/ops/arith/trait.AddAssign.html\"·title=\"trait·core::ops::arith::AddAssign\">AddAssign</a>·for·<a·class=\"enum\"·href=\"alloc/borrow/enum.Cow.html\"·title=\"enum·alloc::borrow::Cow\">Cow</a>&lt;'a,·<a·class=\"primitive[·...·truncated·by·diffoscope;·len:·43,·SHA:·a1849b8025a3fe5c8c2b4fb2c82bc7beceb5ae8ead2e347ea51e3d2b84248e2a·...·]core/primitive.str.html\">str</a>&gt;"],
6 ············["impl&lt;'a&gt;·<a·class=\"trait\"·href=\"core/ops/arith/trait.AddAssign.html\"·title=\"trait·core::ops::arith::AddAssign\">AddAssign</a>&lt;&amp;'a·<a·class=\"primitive\"·href=\"core/primitive.str.html\">str</a>&gt;·for·<a·class=\"enum\"·href=\"alloc/borrow/enum.Cow.html\"·title=\"enum·alloc::bor[·...·truncated·by·diffoscope;·len:·56,·SHA:·8d2d5e0165a57a36e93f837e68f304b8b3f7de373d06bff00e78e1286d1ebf34·...·]core/primitive.str.html\">str</a>&gt;"]6 ············["impl&lt;'a&gt;·<a·class=\"trait\"·href=\"https://doc.rust-lang.org/1.78.0/core/ops/arith/trait.AddAssign.html\"·title=\"trait·core::ops::arith::AddAssign\">AddAssign</a>&lt;&amp;'a·<a·class=\"primitive\"·href=\"https://doc.rust-lang.org/1.78.0/core/primitive.str.html\">str</a>&gt;·for·<a·class=\"[·...·truncated·by·diffoscope;·len:·155,·SHA:·ec708b41aaa9afc75b06f1ab67350fef2fe4d404273decd004115068f98a1b2e·...·]core/primitive.str.html\">str</a>&gt;"]
7 ········],7 ········],
8 ········"core":·[],8 ········"core":·[],
9 ········"std":·[9 ········"std":·[
10 ············["impl·<a·class=\"trait\"·href=\"std/ops/trait.AddAssign.html\"·title=\"trait·std::ops::AddAssign\">AddAssign</a>&lt;<a·class=\"struct\"·href=\"std/time/struct.Duration.html\"·title=\"struct·std::time::Duration\">Duration</a>&gt;·for·<a·class=\"struct\"·href=\"std/time/struct.Instant.html\"·title=\"struct·std::time::Instant\">Instant</a>"],10 ············["impl·<a·class=\"trait\"·href=\"std/ops/trait.AddAssign.html\"·title=\"trait·std::ops::AddAssign\">AddAssign</a>&lt;<a·class=\"struct\"·href=\"std/time/struct.Duration.html\"·title=\"struct·std::time::Duration\">Duration</a>&gt;·for·<a·class=\"struct\"·href=\"std/time/struct.Instant.html\"·title=\"struct·std::time::Instant\">Instant</a>"],
11 ············["impl·<a·class=\"trait\"·href=\"std/ops/trait.AddAssign.html\"·title=\"trait·std::ops::AddAssign\">AddAssign</a>&lt;<a·class=\"struct\"·href=\"std/time/struct.Duration.html\"·title=\"struct·std::time::Duration\">Duration</a>&gt;·for·<a·class=\"struct\"·href=\"std/time/struct.SystemTime.html\"·title=\"struct·std::time::SystemTime\">SystemTime</a>"]11 ············["impl·<a·class=\"trait\"·href=\"std/ops/trait.AddAssign.html\"·title=\"trait·std::ops::AddAssign\">AddAssign</a>&lt;<a·class=\"struct\"·href=\"std/time/struct.Duration.html\"·title=\"struct·std::time::Duration\">Duration</a>&gt;·for·<a·class=\"struct\"·href=\"std/time/struct.SystemTime.html\"·title=\"struct·std::time::SystemTime\">SystemTime</a>"]
12 ········]12 ········]
13 ····};13 ····};
4.04 KB
./usr/share/doc/rust-web-doc/html/trait.impl/core/ops/arith/trait.Sub.js
3.89 KB
js-beautify {}
    
Offset 1, 11 lines modifiedOffset 1, 11 lines modified
1 (function()·{1 (function()·{
2 ····var·implementors·=·{2 ····var·implementors·=·{
3 ········"alloc":·[3 ········"alloc":·[
4 ············["impl&lt;T:·<a·class=\"trait\"·href=\"core/cmp/trait.Ord.html\"·title=\"trait·core::cmp::Ord\">Ord</a>·+·<a·class=\"trait\"·href=\"core/clone/trait.Clone.html\"·title=\"trait·core::clone::Clone\">Clone</a>,·A:·<a·class=\"trait\"·href=\"alloc/alloc/trait.Allocator.html\"·title=\"trait·alloc::al[·...·truncated·by·diffoscope;·len:·164,·SHA:·564773fedb48bda90e915fb975b8df37508684defeba177fe1cad7bbba1beb68·...·]core/ops/arith/trait.Sub.html\"·title=\"trait·core::ops::arith::Sub\">Sub</a>&lt;&amp;<a·class=\"struct\"·href=\"alloc/collections/btree_set/struct.BTreeSet.html\"·title=\"struct·alloc::collections::btree_set::BTreeSet\">BTreeSet</a>&lt;T,·A&gt;&gt;·for·&amp;<a·class=\"struct\"·href=\"alloc/collections/btree_set/struct.BTreeSet.html\"·title=\"struct·alloc::collections::btree_set::BTreeSet\">BTreeSet</a>&lt;T,·A&gt;"]4 ············["impl&lt;T:·<a·class=\"trait\"·href=\"https://doc.rust-lang.org/1.78.0/core/cmp/trait.Ord.html\"·title=\"trait·core::cmp::Ord\">Ord</a>·+·<a·class=\"trait\"·href=\"https://doc.rust-lang.org/1.78.0/core/clone/trait.Clone.html\"·title=\"trait·core::clone::Clone\">Clone</a>,·A:·<a·class=\"trait\"[·...·truncated·by·diffoscope;·len:·296,·SHA:·62a7edb563ea6cec39f39a410d320034feaf754b28363df451f0958ba9397f68·...·]core/ops/arith/trait.Sub.html\"·title=\"trait·core::ops::arith::Sub\">Sub</a>&lt;&amp;<a·class=\"struct\"·href=\"alloc/collections/btree_set/struct.BTreeSet.html\"·title=\"struct·alloc::collections::btree_set::BTreeSet\">BTreeSet</a>&lt;T,·A&gt;&gt;·for·&amp;<a·class=\"struct\"·href=\"alloc/collections/btree_set/struct.BTreeSet.html\"·title=\"struct·alloc::collections::btree_set::BTreeSet\">BTreeSet</a>&lt;T,·A&gt;"]
5 ········],5 ········],
6 ········"core":·[],6 ········"core":·[],
7 ········"std":·[7 ········"std":·[
8 ············["impl·<a·class=\"trait\"·href=\"std/ops/trait.Sub.html\"·title=\"trait·std::ops::Sub\">Sub</a>·for·<a·class=\"struct\"·href=\"std/time/struct.Instant.html\"·title=\"struct·std::time::Instant\">Instant</a>"],8 ············["impl·<a·class=\"trait\"·href=\"std/ops/trait.Sub.html\"·title=\"trait·std::ops::Sub\">Sub</a>·for·<a·class=\"struct\"·href=\"std/time/struct.Instant.html\"·title=\"struct·std::time::Instant\">Instant</a>"],
9 ············["impl·<a·class=\"trait\"·href=\"std/ops/trait.Sub.html\"·title=\"trait·std::ops::Sub\">Sub</a>&lt;<a·class=\"struct\"·href=\"std/time/struct.Duration.html\"·title=\"struct·std::time::Duration\">Duration</a>&gt;·for·<a·class=\"struct\"·href=\"std/time/struct.Instant.html\"·title=\"struct·std::time::Instant\">Instant</a>"],9 ············["impl·<a·class=\"trait\"·href=\"std/ops/trait.Sub.html\"·title=\"trait·std::ops::Sub\">Sub</a>&lt;<a·class=\"struct\"·href=\"std/time/struct.Duration.html\"·title=\"struct·std::time::Duration\">Duration</a>&gt;·for·<a·class=\"struct\"·href=\"std/time/struct.Instant.html\"·title=\"struct·std::time::Instant\">Instant</a>"],
10 ············["impl·<a·class=\"trait\"·href=\"std/ops/trait.Sub.html\"·title=\"trait·std::ops::Sub\">Sub</a>&lt;<a·class=\"struct\"·href=\"std/time/struct.Duration.html\"·title=\"struct·std::time::Duration\">Duration</a>&gt;·for·<a·class=\"struct\"·href=\"std/time/struct.SystemTime.html\"·title=\"struct·std::time::SystemTime\">SystemTime</a>"],10 ············["impl·<a·class=\"trait\"·href=\"std/ops/trait.Sub.html\"·title=\"trait·std::ops::Sub\">Sub</a>&lt;<a·class=\"struct\"·href=\"std/time/struct.Duration.html\"·title=\"struct·std::time::Duration\">Duration</a>&gt;·for·<a·class=\"struct\"·href=\"std/time/struct.SystemTime.html\"·title=\"struct·std::time::SystemTime\">SystemTime</a>"],
11 ············["impl&lt;T,·S&gt;·<a·class=\"trait\"·href=\"std/ops/trait.Sub.html\"·title=\"trait·std::ops::Sub\">Sub</a>&lt;&amp;<a·class=\"struct\"·href=\"std/collections/hash_set/struct.HashSet.html\"·title=\"struct·std::collections::hash_set::HashSet\">HashSet</a>&lt;T,·S&gt;&gt;·for·&amp;<a·class=\"struct\"·href=\"std/collections/hash_set/struct.HashSet.html\"·title=\"struct·std::collections::hash_set::HashSet\">HashSet</a>&lt;T,·S&gt;<div·class=\"where\">where\n····T:·<a·class=\"trait\"·href=\"std/cmp/trait.Eq.html\"·title=\"trait·std::cmp::Eq\">Eq</a>·+·<a·class=\"trait\"·href=\"std/hash/trait.Hash.html\"·title=\"trait·std::hash::Hash\">Hash</a>·+·<a·class=\"trait\"·href=\"std/clone/trait.Clone.html\"·title=\"trait·std::clone::Clone\">Clone</a>,\n····S:·<a·class=\"trait\"·href=\"std/hash/trait.BuildHasher.html\"·title=\"trait·std::hash::BuildHasher\">BuildHasher</a>·+·<a·class=\"trait\"·href=\"std/default/trait.Default.html\"·title=\"trait·std::default::Default\">Default</a>,</div>"]11 ············["impl&lt;T,·S&gt;·<a·class=\"trait\"·href=\"std/ops/trait.Sub.html\"·title=\"trait·std::ops::Sub\">Sub</a>&lt;&amp;<a·class=\"struct\"·href=\"std/collections/hash_set/struct.HashSet.html\"·title=\"struct·std::collections::hash_set::HashSet\">HashSet</a>&lt;T,·S&gt;&gt;·for·&amp;<a·class=\"struct\"·href=\"std/collections/hash_set/struct.HashSet.html\"·title=\"struct·std::collections::hash_set::HashSet\">HashSet</a>&lt;T,·S&gt;<div·class=\"where\">where\n····T:·<a·class=\"trait\"·href=\"std/cmp/trait.Eq.html\"·title=\"trait·std::cmp::Eq\">Eq</a>·+·<a·class=\"trait\"·href=\"std/hash/trait.Hash.html\"·title=\"trait·std::hash::Hash\">Hash</a>·+·<a·class=\"trait\"·href=\"std/clone/trait.Clone.html\"·title=\"trait·std::clone::Clone\">Clone</a>,\n····S:·<a·class=\"trait\"·href=\"std/hash/trait.BuildHasher.html\"·title=\"trait·std::hash::BuildHasher\">BuildHasher</a>·+·<a·class=\"trait\"·href=\"std/default/trait.Default.html\"·title=\"trait·std::default::Default\">Default</a>,</div>"]
2.08 KB
./usr/share/doc/rust-web-doc/html/trait.impl/core/ops/async_function/trait.AsyncFn.js
1.91 KB
js-beautify {}
    
Offset 1, 11 lines modifiedOffset 1, 11 lines modified
1 (function()·{1 (function()·{
2 ····var·implementors·=·{2 ····var·implementors·=·{
3 ········"alloc":·[3 ········"alloc":·[
4 ············["impl&lt;Args:·<a·class=\"trait\"·href=\"core/marker/trait.Tuple.html\"·title=\"trait·core::marker::Tuple\">Tuple</a>,·F:·<a·class=\"trait\"·href=\"core/ops/async_function/trait.AsyncFn.html\"·title=\"trait·core::ops::async_function::AsyncFn\">AsyncFn</a>&lt;Args&gt;·+·?<a·class=\"trait\"·href=\"[·...·truncated·by·diffoscope;·len:·226,·SHA:·55d727dda9ab6281fb967ed3710b64501da41934e8b32056d010b193cd346059·...·]core/ops/async_function/trait.AsyncFn.html\"·title=\"trait·core::ops::async_function::AsyncFn\">AsyncFn</a>&lt;Args&gt;·for·<a·class=\"struct\"·href=\"alloc/boxed/struct.Box.html\"·title=\"struct·alloc::boxed::Box\">Box</a>&lt;F,·A&gt;"]4 ············["impl&lt;Args:·<a·class=\"trait\"·href=\"https://doc.rust-lang.org/1.78.0/core/marker/trait.Tuple.html\"·title=\"trait·core::marker::Tuple\">Tuple</a>,·F:·<a·class=\"trait\"·href=\"https://doc.rust-lang.org/1.78.0/core/ops/async_function/trait.AsyncFn.html\"·title=\"trait·core::ops::async_functio[·...·truncated·by·diffoscope;·len:·358,·SHA:·98bf8bd7b7fba705b802b3cfd951d62c1cd920c292ed3a2a148f02c52cbfb007·...·]core/ops/async_function/trait.AsyncFn.html\"·title=\"trait·core::ops::async_function::AsyncFn\">AsyncFn</a>&lt;Args&gt;·for·<a·class=\"struct\"·href=\"alloc/boxed/struct.Box.html\"·title=\"struct·alloc::boxed::Box\">Box</a>&lt;F,·A&gt;"]
5 ········],5 ········],
6 ········"core":·[],6 ········"core":·[],
7 ········"std":·[]7 ········"std":·[]
8 ····};8 ····};
9 ····if·(window.register_implementors)·{9 ····if·(window.register_implementors)·{
10 ········window.register_implementors(implementors);10 ········window.register_implementors(implementors);
11 ····}·else·{11 ····}·else·{
2.12 KB
./usr/share/doc/rust-web-doc/html/trait.impl/core/ops/async_function/trait.AsyncFnMut.js
1.95 KB
js-beautify {}
    
Offset 1, 11 lines modifiedOffset 1, 11 lines modified
1 (function()·{1 (function()·{
2 ····var·implementors·=·{2 ····var·implementors·=·{
3 ········"alloc":·[3 ········"alloc":·[
4 ············["impl&lt;Args:·<a·class=\"trait\"·href=\"core/marker/trait.Tuple.html\"·title=\"trait·core::marker::Tuple\">Tuple</a>,·F:·<a·class=\"trait\"·href=\"core/ops/async_function/trait.AsyncFnMut.html\"·title=\"trait·core::ops::async_function::AsyncFnMut\">AsyncFnMut</a>&lt;Args&gt;·+·?<a·class=\"trait\[·...·truncated·by·diffoscope;·len:·235,·SHA:·7422d40e603d8e9afa4c538643ea0d3a5ff65a0d51d94248b21d07a07cbac19a·...·]core/ops/async_function/trait.AsyncFnMut.html\"·title=\"trait·core::ops::async_function::AsyncFnMut\">AsyncFnMut</a>&lt;Args&gt;·for·<a·class=\"struct\"·href=\"alloc/boxed/struct.Box.html\"·title=\"struct·alloc::boxed::Box\">Box</a>&lt;F,·A&gt;"]4 ············["impl&lt;Args:·<a·class=\"trait\"·href=\"https://doc.rust-lang.org/1.78.0/core/marker/trait.Tuple.html\"·title=\"trait·core::marker::Tuple\">Tuple</a>,·F:·<a·class=\"trait\"·href=\"https://doc.rust-lang.org/1.78.0/core/ops/async_function/trait.AsyncFnMut.html\"·title=\"trait·core::ops::async_func[·...·truncated·by·diffoscope;·len:·367,·SHA:·7ed4507417f840832b9d0bb22d39afaf85c205b08bc4feb50fa0f65fe4491b19·...·]core/ops/async_function/trait.AsyncFnMut.html\"·title=\"trait·core::ops::async_function::AsyncFnMut\">AsyncFnMut</a>&lt;Args&gt;·for·<a·class=\"struct\"·href=\"alloc/boxed/struct.Box.html\"·title=\"struct·alloc::boxed::Box\">Box</a>&lt;F,·A&gt;"]
5 ········],5 ········],
6 ········"core":·[],6 ········"core":·[],
7 ········"std":·[]7 ········"std":·[]
8 ····};8 ····};
9 ····if·(window.register_implementors)·{9 ····if·(window.register_implementors)·{
10 ········window.register_implementors(implementors);10 ········window.register_implementors(implementors);
11 ····}·else·{11 ····}·else·{
2.13 KB
./usr/share/doc/rust-web-doc/html/trait.impl/core/ops/async_function/trait.AsyncFnOnce.js
1.96 KB
js-beautify {}
    
Offset 1, 11 lines modifiedOffset 1, 11 lines modified
1 (function()·{1 (function()·{
2 ····var·implementors·=·{2 ····var·implementors·=·{
3 ········"alloc":·[3 ········"alloc":·[
4 ············["impl&lt;Args:·<a·class=\"trait\"·href=\"core/marker/trait.Tuple.html\"·title=\"trait·core::marker::Tuple\">Tuple</a>,·F:·<a·class=\"trait\"·href=\"core/ops/async_function/trait.AsyncFnOnce.html\"·title=\"trait·core::ops::async_function::AsyncFnOnce\">AsyncFnOnce</a>&lt;Args&gt;·+·?<a·class=\"tra[·...·truncated·by·diffoscope;·len:·238,·SHA:·27a90a7d726a18c9912cfd22e42b213523ce109a80f129a8497986e1e0634e91·...·]core/ops/async_function/trait.AsyncFnOnce.html\"·title=\"trait·core::ops::async_function::AsyncFnOnce\">AsyncFnOnce</a>&lt;Args&gt;·for·<a·class=\"struct\"·href=\"alloc/boxed/struct.Box.html\"·title=\"struct·alloc::boxed::Box\">Box</a>&lt;F,·A&gt;"]4 ············["impl&lt;Args:·<a·class=\"trait\"·href=\"https://doc.rust-lang.org/1.78.0/core/marker/trait.Tuple.html\"·title=\"trait·core::marker::Tuple\">Tuple</a>,·F:·<a·class=\"trait\"·href=\"https://doc.rust-lang.org/1.78.0/core/ops/async_function/trait.AsyncFnOnce.html\"·title=\"trait·core::ops::async_fun[·...·truncated·by·diffoscope;·len:·370,·SHA:·7109b574c6b0079ac0dd9a41bee9b26ccee62ed149cef7cd3ecfb4c855650cc6·...·]core/ops/async_function/trait.AsyncFnOnce.html\"·title=\"trait·core::ops::async_function::AsyncFnOnce\">AsyncFnOnce</a>&lt;Args&gt;·for·<a·class=\"struct\"·href=\"alloc/boxed/struct.Box.html\"·title=\"struct·alloc::boxed::Box\">Box</a>&lt;F,·A&gt;"]
5 ········],5 ········],
6 ········"core":·[],6 ········"core":·[],
7 ········"std":·[]7 ········"std":·[]
8 ····};8 ····};
9 ····if·(window.register_implementors)·{9 ····if·(window.register_implementors)·{
10 ········window.register_implementors(implementors);10 ········window.register_implementors(implementors);
11 ····}·else·{11 ····}·else·{
3.23 KB
./usr/share/doc/rust-web-doc/html/trait.impl/core/ops/bit/trait.BitAnd.js
3.09 KB
js-beautify {}
    
Offset 1, 11 lines modifiedOffset 1, 11 lines modified
1 (function()·{1 (function()·{
2 ····var·implementors·=·{2 ····var·implementors·=·{
3 ········"alloc":·[3 ········"alloc":·[
4 ············["impl&lt;T:·<a·class=\"trait\"·href=\"core/cmp/trait.Ord.html\"·title=\"trait·core::cmp::Ord\">Ord</a>·+·<a·class=\"trait\"·href=\"core/clone/trait.Clone.html\"·title=\"trait·core::clone::Clone\">Clone</a>,·A:·<a·class=\"trait\"·href=\"alloc/alloc/trait.Allocator.html\"·title=\"trait·alloc::al[·...·truncated·by·diffoscope;·len:·164,·SHA:·564773fedb48bda90e915fb975b8df37508684defeba177fe1cad7bbba1beb68·...·]core/ops/bit/trait.BitAnd.html\"·title=\"trait·core::ops::bit::BitAnd\">BitAnd</a>&lt;&amp;<a·class=\"struct\"·href=\"alloc/collections/btree_set/struct.BTreeSet.html\"·title=\"struct·alloc::collections::btree_set::BTreeSet\">BTreeSet</a>&lt;T,·A&gt;&gt;·for·&amp;<a·class=\"struct\"·href=\"alloc/collections/btree_set/struct.BTreeSet.html\"·title=\"struct·alloc::collections::btree_set::BTreeSet\">BTreeSet</a>&lt;T,·A&gt;"]4 ············["impl&lt;T:·<a·class=\"trait\"·href=\"https://doc.rust-lang.org/1.78.0/core/cmp/trait.Ord.html\"·title=\"trait·core::cmp::Ord\">Ord</a>·+·<a·class=\"trait\"·href=\"https://doc.rust-lang.org/1.78.0/core/clone/trait.Clone.html\"·title=\"trait·core::clone::Clone\">Clone</a>,·A:·<a·class=\"trait\"[·...·truncated·by·diffoscope;·len:·296,·SHA:·62a7edb563ea6cec39f39a410d320034feaf754b28363df451f0958ba9397f68·...·]core/ops/bit/trait.BitAnd.html\"·title=\"trait·core::ops::bit::BitAnd\">BitAnd</a>&lt;&amp;<a·class=\"struct\"·href=\"alloc/collections/btree_set/struct.BTreeSet.html\"·title=\"struct·alloc::collections::btree_set::BTreeSet\">BTreeSet</a>&lt;T,·A&gt;&gt;·for·&amp;<a·class=\"struct\"·href=\"alloc/collections/btree_set/struct.BTreeSet.html\"·title=\"struct·alloc::collections::btree_set::BTreeSet\">BTreeSet</a>&lt;T,·A&gt;"]
5 ········],5 ········],
6 ········"core":·[],6 ········"core":·[],
7 ········"std":·[7 ········"std":·[
8 ············["impl&lt;T,·S&gt;·<a·class=\"trait\"·href=\"std/ops/trait.BitAnd.html\"·title=\"trait·std::ops::BitAnd\">BitAnd</a>&lt;&amp;<a·class=\"struct\"·href=\"std/collections/hash_set/struct.HashSet.html\"·title=\"struct·std::collections::hash_set::HashSet\">HashSet</a>&lt;T,·S&gt;&gt;·for·&amp;<a·class=\"struct\"·href=\"std/collections/hash_set/struct.HashSet.html\"·title=\"struct·std::collections::hash_set::HashSet\">HashSet</a>&lt;T,·S&gt;<div·class=\"where\">where\n····T:·<a·class=\"trait\"·href=\"std/cmp/trait.Eq.html\"·title=\"trait·std::cmp::Eq\">Eq</a>·+·<a·class=\"trait\"·href=\"std/hash/trait.Hash.html\"·title=\"trait·std::hash::Hash\">Hash</a>·+·<a·class=\"trait\"·href=\"std/clone/trait.Clone.html\"·title=\"trait·std::clone::Clone\">Clone</a>,\n····S:·<a·class=\"trait\"·href=\"std/hash/trait.BuildHasher.html\"·title=\"trait·std::hash::BuildHasher\">BuildHasher</a>·+·<a·class=\"trait\"·href=\"std/default/trait.Default.html\"·title=\"trait·std::default::Default\">Default</a>,</div>"]8 ············["impl&lt;T,·S&gt;·<a·class=\"trait\"·href=\"std/ops/trait.BitAnd.html\"·title=\"trait·std::ops::BitAnd\">BitAnd</a>&lt;&amp;<a·class=\"struct\"·href=\"std/collections/hash_set/struct.HashSet.html\"·title=\"struct·std::collections::hash_set::HashSet\">HashSet</a>&lt;T,·S&gt;&gt;·for·&amp;<a·class=\"struct\"·href=\"std/collections/hash_set/struct.HashSet.html\"·title=\"struct·std::collections::hash_set::HashSet\">HashSet</a>&lt;T,·S&gt;<div·class=\"where\">where\n····T:·<a·class=\"trait\"·href=\"std/cmp/trait.Eq.html\"·title=\"trait·std::cmp::Eq\">Eq</a>·+·<a·class=\"trait\"·href=\"std/hash/trait.Hash.html\"·title=\"trait·std::hash::Hash\">Hash</a>·+·<a·class=\"trait\"·href=\"std/clone/trait.Clone.html\"·title=\"trait·std::clone::Clone\">Clone</a>,\n····S:·<a·class=\"trait\"·href=\"std/hash/trait.BuildHasher.html\"·title=\"trait·std::hash::BuildHasher\">BuildHasher</a>·+·<a·class=\"trait\"·href=\"std/default/trait.Default.html\"·title=\"trait·std::default::Default\">Default</a>,</div>"]
9 ········]9 ········]
10 ····};10 ····};
11 ····if·(window.register_implementors)·{11 ····if·(window.register_implementors)·{
3.22 KB
./usr/share/doc/rust-web-doc/html/trait.impl/core/ops/bit/trait.BitOr.js
3.08 KB
js-beautify {}
    
Offset 1, 11 lines modifiedOffset 1, 11 lines modified
1 (function()·{1 (function()·{
2 ····var·implementors·=·{2 ····var·implementors·=·{
3 ········"alloc":·[3 ········"alloc":·[
4 ············["impl&lt;T:·<a·class=\"trait\"·href=\"core/cmp/trait.Ord.html\"·title=\"trait·core::cmp::Ord\">Ord</a>·+·<a·class=\"trait\"·href=\"core/clone/trait.Clone.html\"·title=\"trait·core::clone::Clone\">Clone</a>,·A:·<a·class=\"trait\"·href=\"alloc/alloc/trait.Allocator.html\"·title=\"trait·alloc::al[·...·truncated·by·diffoscope;·len:·164,·SHA:·564773fedb48bda90e915fb975b8df37508684defeba177fe1cad7bbba1beb68·...·]core/ops/bit/trait.BitOr.html\"·title=\"trait·core::ops::bit::BitOr\">BitOr</a>&lt;&amp;<a·class=\"struct\"·href=\"alloc/collections/btree_set/struct.BTreeSet.html\"·title=\"struct·alloc::collections::btree_set::BTreeSet\">BTreeSet</a>&lt;T,·A&gt;&gt;·for·&amp;<a·class=\"struct\"·href=\"alloc/collections/btree_set/struct.BTreeSet.html\"·title=\"struct·alloc::collections::btree_set::BTreeSet\">BTreeSet</a>&lt;T,·A&gt;"]4 ············["impl&lt;T:·<a·class=\"trait\"·href=\"https://doc.rust-lang.org/1.78.0/core/cmp/trait.Ord.html\"·title=\"trait·core::cmp::Ord\">Ord</a>·+·<a·class=\"trait\"·href=\"https://doc.rust-lang.org/1.78.0/core/clone/trait.Clone.html\"·title=\"trait·core::clone::Clone\">Clone</a>,·A:·<a·class=\"trait\"[·...·truncated·by·diffoscope;·len:·296,·SHA:·62a7edb563ea6cec39f39a410d320034feaf754b28363df451f0958ba9397f68·...·]core/ops/bit/trait.BitOr.html\"·title=\"trait·core::ops::bit::BitOr\">BitOr</a>&lt;&amp;<a·class=\"struct\"·href=\"alloc/collections/btree_set/struct.BTreeSet.html\"·title=\"struct·alloc::collections::btree_set::BTreeSet\">BTreeSet</a>&lt;T,·A&gt;&gt;·for·&amp;<a·class=\"struct\"·href=\"alloc/collections/btree_set/struct.BTreeSet.html\"·title=\"struct·alloc::collections::btree_set::BTreeSet\">BTreeSet</a>&lt;T,·A&gt;"]
5 ········],5 ········],
6 ········"core":·[],6 ········"core":·[],
7 ········"std":·[7 ········"std":·[
8 ············["impl&lt;T,·S&gt;·<a·class=\"trait\"·href=\"std/ops/trait.BitOr.html\"·title=\"trait·std::ops::BitOr\">BitOr</a>&lt;&amp;<a·class=\"struct\"·href=\"std/collections/hash_set/struct.HashSet.html\"·title=\"struct·std::collections::hash_set::HashSet\">HashSet</a>&lt;T,·S&gt;&gt;·for·&amp;<a·class=\"struct\"·href=\"std/collections/hash_set/struct.HashSet.html\"·title=\"struct·std::collections::hash_set::HashSet\">HashSet</a>&lt;T,·S&gt;<div·class=\"where\">where\n····T:·<a·class=\"trait\"·href=\"std/cmp/trait.Eq.html\"·title=\"trait·std::cmp::Eq\">Eq</a>·+·<a·class=\"trait\"·href=\"std/hash/trait.Hash.html\"·title=\"trait·std::hash::Hash\">Hash</a>·+·<a·class=\"trait\"·href=\"std/clone/trait.Clone.html\"·title=\"trait·std::clone::Clone\">Clone</a>,\n····S:·<a·class=\"trait\"·href=\"std/hash/trait.BuildHasher.html\"·title=\"trait·std::hash::BuildHasher\">BuildHasher</a>·+·<a·class=\"trait\"·href=\"std/default/trait.Default.html\"·title=\"trait·std::default::Default\">Default</a>,</div>"]8 ············["impl&lt;T,·S&gt;·<a·class=\"trait\"·href=\"std/ops/trait.BitOr.html\"·title=\"trait·std::ops::BitOr\">BitOr</a>&lt;&amp;<a·class=\"struct\"·href=\"std/collections/hash_set/struct.HashSet.html\"·title=\"struct·std::collections::hash_set::HashSet\">HashSet</a>&lt;T,·S&gt;&gt;·for·&amp;<a·class=\"struct\"·href=\"std/collections/hash_set/struct.HashSet.html\"·title=\"struct·std::collections::hash_set::HashSet\">HashSet</a>&lt;T,·S&gt;<div·class=\"where\">where\n····T:·<a·class=\"trait\"·href=\"std/cmp/trait.Eq.html\"·title=\"trait·std::cmp::Eq\">Eq</a>·+·<a·class=\"trait\"·href=\"std/hash/trait.Hash.html\"·title=\"trait·std::hash::Hash\">Hash</a>·+·<a·class=\"trait\"·href=\"std/clone/trait.Clone.html\"·title=\"trait·std::clone::Clone\">Clone</a>,\n····S:·<a·class=\"trait\"·href=\"std/hash/trait.BuildHasher.html\"·title=\"trait·std::hash::BuildHasher\">BuildHasher</a>·+·<a·class=\"trait\"·href=\"std/default/trait.Default.html\"·title=\"trait·std::default::Default\">Default</a>,</div>"]
9 ········]9 ········]
10 ····};10 ····};
11 ····if·(window.register_implementors)·{11 ····if·(window.register_implementors)·{
3.23 KB
./usr/share/doc/rust-web-doc/html/trait.impl/core/ops/bit/trait.BitXor.js
3.09 KB
js-beautify {}
    
Offset 1, 11 lines modifiedOffset 1, 11 lines modified
1 (function()·{1 (function()·{
2 ····var·implementors·=·{2 ····var·implementors·=·{
3 ········"alloc":·[3 ········"alloc":·[
4 ············["impl&lt;T:·<a·class=\"trait\"·href=\"core/cmp/trait.Ord.html\"·title=\"trait·core::cmp::Ord\">Ord</a>·+·<a·class=\"trait\"·href=\"core/clone/trait.Clone.html\"·title=\"trait·core::clone::Clone\">Clone</a>,·A:·<a·class=\"trait\"·href=\"alloc/alloc/trait.Allocator.html\"·title=\"trait·alloc::al[·...·truncated·by·diffoscope;·len:·164,·SHA:·564773fedb48bda90e915fb975b8df37508684defeba177fe1cad7bbba1beb68·...·]core/ops/bit/trait.BitXor.html\"·title=\"trait·core::ops::bit::BitXor\">BitXor</a>&lt;&amp;<a·class=\"struct\"·href=\"alloc/collections/btree_set/struct.BTreeSet.html\"·title=\"struct·alloc::collections::btree_set::BTreeSet\">BTreeSet</a>&lt;T,·A&gt;&gt;·for·&amp;<a·class=\"struct\"·href=\"alloc/collections/btree_set/struct.BTreeSet.html\"·title=\"struct·alloc::collections::btree_set::BTreeSet\">BTreeSet</a>&lt;T,·A&gt;"]4 ············["impl&lt;T:·<a·class=\"trait\"·href=\"https://doc.rust-lang.org/1.78.0/core/cmp/trait.Ord.html\"·title=\"trait·core::cmp::Ord\">Ord</a>·+·<a·class=\"trait\"·href=\"https://doc.rust-lang.org/1.78.0/core/clone/trait.Clone.html\"·title=\"trait·core::clone::Clone\">Clone</a>,·A:·<a·class=\"trait\"[·...·truncated·by·diffoscope;·len:·296,·SHA:·62a7edb563ea6cec39f39a410d320034feaf754b28363df451f0958ba9397f68·...·]core/ops/bit/trait.BitXor.html\"·title=\"trait·core::ops::bit::BitXor\">BitXor</a>&lt;&amp;<a·class=\"struct\"·href=\"alloc/collections/btree_set/struct.BTreeSet.html\"·title=\"struct·alloc::collections::btree_set::BTreeSet\">BTreeSet</a>&lt;T,·A&gt;&gt;·for·&amp;<a·class=\"struct\"·href=\"alloc/collections/btree_set/struct.BTreeSet.html\"·title=\"struct·alloc::collections::btree_set::BTreeSet\">BTreeSet</a>&lt;T,·A&gt;"]
5 ········],5 ········],
6 ········"core":·[],6 ········"core":·[],
7 ········"std":·[7 ········"std":·[
8 ············["impl&lt;T,·S&gt;·<a·class=\"trait\"·href=\"std/ops/trait.BitXor.html\"·title=\"trait·std::ops::BitXor\">BitXor</a>&lt;&amp;<a·class=\"struct\"·href=\"std/collections/hash_set/struct.HashSet.html\"·title=\"struct·std::collections::hash_set::HashSet\">HashSet</a>&lt;T,·S&gt;&gt;·for·&amp;<a·class=\"struct\"·href=\"std/collections/hash_set/struct.HashSet.html\"·title=\"struct·std::collections::hash_set::HashSet\">HashSet</a>&lt;T,·S&gt;<div·class=\"where\">where\n····T:·<a·class=\"trait\"·href=\"std/cmp/trait.Eq.html\"·title=\"trait·std::cmp::Eq\">Eq</a>·+·<a·class=\"trait\"·href=\"std/hash/trait.Hash.html\"·title=\"trait·std::hash::Hash\">Hash</a>·+·<a·class=\"trait\"·href=\"std/clone/trait.Clone.html\"·title=\"trait·std::clone::Clone\">Clone</a>,\n····S:·<a·class=\"trait\"·href=\"std/hash/trait.BuildHasher.html\"·title=\"trait·std::hash::BuildHasher\">BuildHasher</a>·+·<a·class=\"trait\"·href=\"std/default/trait.Default.html\"·title=\"trait·std::default::Default\">Default</a>,</div>"]8 ············["impl&lt;T,·S&gt;·<a·class=\"trait\"·href=\"std/ops/trait.BitXor.html\"·title=\"trait·std::ops::BitXor\">BitXor</a>&lt;&amp;<a·class=\"struct\"·href=\"std/collections/hash_set/struct.HashSet.html\"·title=\"struct·std::collections::hash_set::HashSet\">HashSet</a>&lt;T,·S&gt;&gt;·for·&amp;<a·class=\"struct\"·href=\"std/collections/hash_set/struct.HashSet.html\"·title=\"struct·std::collections::hash_set::HashSet\">HashSet</a>&lt;T,·S&gt;<div·class=\"where\">where\n····T:·<a·class=\"trait\"·href=\"std/cmp/trait.Eq.html\"·title=\"trait·std::cmp::Eq\">Eq</a>·+·<a·class=\"trait\"·href=\"std/hash/trait.Hash.html\"·title=\"trait·std::hash::Hash\">Hash</a>·+·<a·class=\"trait\"·href=\"std/clone/trait.Clone.html\"·title=\"trait·std::clone::Clone\">Clone</a>,\n····S:·<a·class=\"trait\"·href=\"std/hash/trait.BuildHasher.html\"·title=\"trait·std::hash::BuildHasher\">BuildHasher</a>·+·<a·class=\"trait\"·href=\"std/default/trait.Default.html\"·title=\"trait·std::default::Default\">Default</a>,</div>"]
9 ········]9 ········]
10 ····};10 ····};
11 ····if·(window.register_implementors)·{11 ····if·(window.register_implementors)·{
3.74 KB
./usr/share/doc/rust-web-doc/html/trait.impl/core/ops/coroutine/trait.Coroutine.js
3.58 KB
js-beautify {}
    
Offset 1, 12 lines modifiedOffset 1, 12 lines modified
1 (function()·{1 (function()·{
2 ····var·implementors·=·{2 ····var·implementors·=·{
3 ········"alloc":·[3 ········"alloc":·[
4 ············["impl&lt;G:·?<a·class=\"trait\"·href=\"core/marker/trait.Sized.html\"·title=\"trait·core::marker::Sized\">Sized</a>·+·<a·class=\"trait\"·href=\"core/ops/coroutine/trait.Coroutine.html\"·title=\"trait·core::ops::coroutine::Coroutine\">Coroutine</a>&lt;R&gt;·+·<a·class=\"trait\"·href=\"core/marke[·...·truncated·by·diffoscope;·len:·219,·SHA:·ab930984f414ca9367d03573283fb4ea467ebb6bf3a2ea3dd1d6058ee537e0df·...·]core/ops/coroutine/trait.Coroutine.html\"·title=\"trait·core::ops::coroutine::Coroutine\">Coroutine</a>&lt;R&gt;·for·<a·class=\"struct\"·href=\"alloc/boxed/struct.Box.html\"·title=\"struct·alloc::boxed::Box\">Box</a>&lt;G,·A&gt;"],4 ············["impl&lt;G:·?<a·class=\"trait\"·href=\"https://doc.rust-lang.org/1.78.0/core/marker/trait.Sized.html\"·title=\"trait·core::marker::Sized\">Sized</a>·+·<a·class=\"trait\"·href=\"https://doc.rust-lang.org/1.78.0/core/ops/coroutine/trait.Coroutine.html\"·title=\"trait·core::ops::coroutine::Corouti[·...·truncated·by·diffoscope;·len:·351,·SHA:·b3a336cefbfc3c264281b309cfc6fcf7a5ac7b0c38482b4f69a2996f81bf4d64·...·]core/ops/coroutine/trait.Coroutine.html\"·title=\"trait·core::ops::coroutine::Coroutine\">Coroutine</a>&lt;R&gt;·for·<a·class=\"struct\"·href=\"alloc/boxed/struct.Box.html\"·title=\"struct·alloc::boxed::Box\">Box</a>&lt;G,·A&gt;"],
5 ············["impl&lt;G:·?<a·class=\"trait\"·href=\"core/marker/trait.Sized.html\"·title=\"trait·core::marker::Sized\">Sized</a>·+·<a·class=\"trait\"·href=\"core/ops/coroutine/trait.Coroutine.html\"·title=\"trait·core::ops::coroutine::Coroutine\">Coroutine</a>&lt;R&gt;,·R,·A&gt;·<a·class=\"trait\"·href=\"co[·...·truncated·by·diffoscope;·len:·142,·SHA:·48b8fe859f6e148a39b75e04c49a168986a155d33659cb340f984c090a4aabee·...·]core/pin/struct.Pin.html\"·title=\"struct·core::pin::Pin\">Pin</a>&lt;<a·class=\"struct\"·href=\"alloc/boxed/struct.Box.html\"·title=\"struct·alloc::boxed::Box\">Box</a>&lt;G,·A&gt;&gt;<div·class=\"where\">where\n····A:·'static·+·<a·class=\"trait\"·href=\"alloc/alloc/trait.Allocator.html\"·title=\"trait·alloc::alloc::Allocator\">Allocator</a>,</div>"]5 ············["impl&lt;G:·?<a·class=\"trait\"·href=\"https://doc.rust-lang.org/1.78.0/core/marker/trait.Sized.html\"·title=\"trait·core::marker::Sized\">Sized</a>·+·<a·class=\"trait\"·href=\"https://doc.rust-lang.org/1.78.0/core/ops/coroutine/trait.Coroutine.html\"·title=\"trait·core::ops::coroutine::Corouti[·...·truncated·by·diffoscope;·len:·274,·SHA:·5f743dd53c38c070898096454e84e34ee5ae7f5ec4626a60873fdda8a23f6052·...·]core/pin/struct.Pin.html\"·title=\"struct·core::pin::Pin\">Pin</a>&lt;<a·class=\"struct\"·href=\"alloc/boxed/struct.Box.html\"·title=\"struct·alloc::boxed::Box\">Box</a>&lt;G,·A&gt;&gt;<div·class=\"where\">where\n····A:·'static·+·<a·class=\"trait\"·href=\"alloc/alloc/trait.Allocator.html\"·title=\"trait·alloc::alloc::Allocator\">Allocator</a>,</div>"]
6 ········],6 ········],
7 ········"core":·[],7 ········"core":·[],
8 ········"std":·[]8 ········"std":·[]
9 ····};9 ····};
10 ····if·(window.register_implementors)·{10 ····if·(window.register_implementors)·{
11 ········window.register_implementors(implementors);11 ········window.register_implementors(implementors);
12 ····}·else·{12 ····}·else·{
10.0 KB
./usr/share/doc/rust-web-doc/html/trait.impl/core/ops/deref/trait.Deref.js
9.87 KB
js-beautify {}
Max HTML report size reached
6.21 KB
./usr/share/doc/rust-web-doc/html/trait.impl/core/ops/deref/trait.DerefMut.js
6.06 KB
js-beautify {}
    
Offset 1, 16 lines modifiedOffset 1, 16 lines modified
1 (function()·{1 (function()·{
2 ····var·implementors·=·{2 ····var·implementors·=·{
3 ········"alloc":·[3 ········"alloc":·[
4 ············["impl·<a·class=\"trait\"·href=\"core/ops/deref/trait.DerefMut.html\"·title=\"trait·core::ops::deref::DerefMut\">DerefMut</a>·for·<a·class=\"struct\"·href=\"alloc/string/struct.String.html\"·title=\"struct·alloc::string::String\">String</a>"],4 ············["impl·<a·class=\"trait\"·href=\"https://doc.rust-lang.org/1.78.0/core/ops/deref/trait.DerefMut.html\"·title=\"trait·core::ops::deref::DerefMut\">DerefMut</a>·for·<a·class=\"struct\"·href=\"alloc/string/struct.String.html\"·title=\"struct·alloc::string::String\">String</a>"],
5 ············["impl&lt;T&gt;·<a·class=\"trait\"·href=\"core/ops/deref/trait.DerefMut.html\"·title=\"trait·core::ops::deref::DerefMut\">DerefMut</a>·for·<a·class=\"struct\"·href=\"alloc/rc/struct.UniqueRc.html\"·title=\"struct·alloc::rc::UniqueRc\">UniqueRc</a>&lt;T&gt;"],5 ············["impl&lt;T&gt;·<a·class=\"trait\"·href=\"https://doc.rust-lang.org/1.78.0/core/ops/deref/trait.DerefMut.html\"·title=\"trait·core::ops::deref::DerefMut\">DerefMut</a>·for·<a·class=\"struct\"·href=\"alloc/rc/struct.UniqueRc.html\"·title=\"struct·alloc::rc::UniqueRc\">UniqueRc</a>&lt;T&gt;"],
6 ············["impl&lt;T,·A:·<a·class=\"trait\"·href=\"alloc/alloc/trait.Allocator.html\"·title=\"trait·alloc::alloc::Allocator\">Allocator</a>&gt;·<a·class=\"trait\"·href=\"core/ops/deref/trait.DerefMut.html\"·title=\"trait·core::ops::deref::DerefMut\">DerefMut</a>·for·<a·class=\"struct\"·href=\"alloc/vec/struct.Vec.html\"·title=\"struct·alloc::vec::Vec\">Vec</a>&lt;T,·A&gt;"],6 ············["impl&lt;T,·A:·<a·class=\"trait\"·href=\"alloc/alloc/trait.Allocator.html\"·title=\"trait·alloc::alloc::Allocator\">Allocator</a>&gt;·<a·class=\"trait\"·href=\"https://doc.rust-lang.org/1.78.0/core/ops/deref/trait.DerefMut.html\"·title=\"trait·core::ops::deref::DerefMut\">DerefMut</a>·for·<a·class=\"struct\"·href=\"alloc/vec/struct.Vec.html\"·title=\"struct·alloc::vec::Vec\">Vec</a>&lt;T,·A&gt;"],
7 ············["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/alloc/trait.Allocator.html\"·title=\"trait·alloc::alloc::Allocator\">Allocator</a>&gt;·<a·class=\"trait\"·href=\"core/ops/deref/trait.DerefMut.html\"·title=\"trait·core::ops::deref::DerefMut\">DerefMut</a>·for·<a·class=\"struct\"·href=\"alloc/collections/binary_heap/struct.PeekMut.html\"·title=\"struct·alloc::collections::binary_heap::PeekMut\">PeekMut</a>&lt;'_,·T,·A&gt;"],7 ············["impl&lt;T:·<a·class=\"trait\"·href=\"https://doc.rust-lang.org/1.78.0/core/cmp/trait.Ord.html\"·title=\"trait·core::cmp::Ord\">Ord</a>,·A:·<a·class=\"trait\"·href=\"alloc/alloc/trait.Allocator.html\"·title=\"trait·alloc::alloc::Allocator\">Allocator</a>&gt;·<a·class=\"trait\"·href=\"https://d[·...·truncated·by·diffoscope;·len:·24,·SHA:·9c32837262219ec2cb78e82a6f1be07302207808c51f11797102a853054c5c59·...·]core/ops/deref/trait.DerefMut.html\"·title=\"trait·core::ops::deref::DerefMut\">DerefMut</a>·for·<a·class=\"struct\"·href=\"alloc/collections/binary_heap/struct.PeekMut.html\"·title=\"struct·alloc::collections::binary_heap::PeekMut\">PeekMut</a>&lt;'_,·T,·A&gt;"],
8 ············["impl&lt;T:·?<a·class=\"trait\"·href=\"core/marker/trait.Sized.html\"·title=\"trait·core::marker::Sized\">Sized</a>&gt;·<a·class=\"trait\"·href=\"core/ops/deref/trait.DerefMut.html\"·title=\"trait·core::ops::deref::DerefMut\">DerefMut</a>·for·<a·class=\"struct\"·href=\"alloc/boxed/struct.ThinBox.html\"·title=\"struct·alloc::boxed::ThinBox\">ThinBox</a>&lt;T&gt;"],8 ············["impl&lt;T:·?<a·class=\"trait\"·href=\"https://doc.rust-lang.org/1.78.0/core/marker/trait.Sized.html\"·title=\"trait·core::marker::Sized\">Sized</a>&gt;·<a·class=\"trait\"·href=\"https://doc.rust-lang.org/1.78.0/core/ops/deref/trait.DerefMut.html\"·title=\"trait·core::ops::deref::DerefMut\">DerefMut</a>·for·<a·class=\"struct\"·href=\"alloc/boxed/struct.ThinBox.html\"·title=\"struct·alloc::boxed::ThinBox\">ThinBox</a>&lt;T&gt;"],
9 ············["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/alloc/trait.Allocator.html\"·title=\"trait·alloc::alloc::Allocator\">Allocator</a>&gt;·<a·class=\"trait\"·href=\"core/ops/deref/trait.DerefMut.html\"·title=\"trait·core::ops::deref::DerefMut\">DerefMut</a>·for·<a·class=\"struct\"·href=\"alloc/boxed/struct.Box.html\"·title=\"struct·alloc::boxed::Box\">Box</a>&lt;T,·A&gt;"]9 ············["impl&lt;T:·?<a·class=\"trait\"·href=\"https://doc.rust-lang.org/1.78.0/core/marker/trait.Sized.html\"·title=\"trait·core::marker::Sized\">Sized</a>,·A:·<a·class=\"trait\"·href=\"alloc/alloc/trait.Allocator.html\"·title=\"trait·alloc::alloc::Allocator\">Allocator</a>&gt;·<a·class=\"trait\"·href[·...·truncated·by·diffoscope;·len:·36,·SHA:·03afe516ffb4a2d1365e5587b8e49710e7eda5bb0e76d92fb73010ed96f7045e·...·]core/ops/deref/trait.DerefMut.html\"·title=\"trait·core::ops::deref::DerefMut\">DerefMut</a>·for·<a·class=\"struct\"·href=\"alloc/boxed/struct.Box.html\"·title=\"struct·alloc::boxed::Box\">Box</a>&lt;T,·A&gt;"]
10 ········],10 ········],
11 ········"core":·[],11 ········"core":·[],
12 ········"std":·[12 ········"std":·[
13 ············["impl·<a·class=\"trait\"·href=\"std/ops/trait.DerefMut.html\"·title=\"trait·std::ops::DerefMut\">DerefMut</a>·for·<a·class=\"struct\"·href=\"std/ffi/struct.OsString.html\"·title=\"struct·std::ffi::OsString\">OsString</a>"],13 ············["impl·<a·class=\"trait\"·href=\"std/ops/trait.DerefMut.html\"·title=\"trait·std::ops::DerefMut\">DerefMut</a>·for·<a·class=\"struct\"·href=\"std/ffi/struct.OsString.html\"·title=\"struct·std::ffi::OsString\">OsString</a>"],
14 ············["impl·<a·class=\"trait\"·href=\"std/ops/trait.DerefMut.html\"·title=\"trait·std::ops::DerefMut\">DerefMut</a>·for·<a·class=\"struct\"·href=\"std/path/struct.PathBuf.html\"·title=\"struct·std::path::PathBuf\">PathBuf</a>"],14 ············["impl·<a·class=\"trait\"·href=\"std/ops/trait.DerefMut.html\"·title=\"trait·std::ops::DerefMut\">DerefMut</a>·for·<a·class=\"struct\"·href=\"std/path/struct.PathBuf.html\"·title=\"struct·std::path::PathBuf\">PathBuf</a>"],
15 ············["impl&lt;'a&gt;·<a·class=\"trait\"·href=\"std/ops/trait.DerefMut.html\"·title=\"trait·std::ops::DerefMut\">DerefMut</a>·for·<a·class=\"struct\"·href=\"std/io/struct.IoSliceMut.html\"·title=\"struct·std::io::IoSliceMut\">IoSliceMut</a>&lt;'a&gt;"],15 ············["impl&lt;'a&gt;·<a·class=\"trait\"·href=\"std/ops/trait.DerefMut.html\"·title=\"trait·std::ops::DerefMut\">DerefMut</a>·for·<a·class=\"struct\"·href=\"std/io/struct.IoSliceMut.html\"·title=\"struct·std::io::IoSliceMut\">IoSliceMut</a>&lt;'a&gt;"],
16 ············["impl&lt;T:·?<a·class=\"trait\"·href=\"std/marker/trait.Sized.html\"·title=\"trait·std::marker::Sized\">Sized</a>&gt;·<a·class=\"trait\"·href=\"std/ops/trait.DerefMut.html\"·title=\"trait·std::ops::DerefMut\">DerefMut</a>·for·<a·class=\"struct\"·href=\"std/sync/struct.MappedMutexGuard.html\"·title=\"struct·std::sync::MappedMutexGuard\">MappedMutexGuard</a>&lt;'_,·T&gt;"],16 ············["impl&lt;T:·?<a·class=\"trait\"·href=\"std/marker/trait.Sized.html\"·title=\"trait·std::marker::Sized\">Sized</a>&gt;·<a·class=\"trait\"·href=\"std/ops/trait.DerefMut.html\"·title=\"trait·std::ops::DerefMut\">DerefMut</a>·for·<a·class=\"struct\"·href=\"std/sync/struct.MappedMutexGuard.html\"·title=\"struct·std::sync::MappedMutexGuard\">MappedMutexGuard</a>&lt;'_,·T&gt;"],
20.4 KB
./usr/share/doc/rust-web-doc/html/trait.impl/core/ops/drop/trait.Drop.js
20.3 KB
js-beautify {}
Max HTML report size reached
1.95 KB
./usr/share/doc/rust-web-doc/html/trait.impl/core/ops/function/trait.Fn.js
1.81 KB
js-beautify {}
    
Offset 1, 11 lines modifiedOffset 1, 11 lines modified
1 (function()·{1 (function()·{
2 ····var·implementors·=·{2 ····var·implementors·=·{
3 ········"alloc":·[3 ········"alloc":·[
4 ············["impl&lt;Args:·<a·class=\"trait\"·href=\"core/marker/trait.Tuple.html\"·title=\"trait·core::marker::Tuple\">Tuple</a>,·F:·<a·class=\"trait\"·href=\"core/ops/function/trait.Fn.html\"·title=\"trait·core::ops::function::Fn\">Fn</a>&lt;Args&gt;·+·?<a·class=\"trait\"·href=\"core/marker/trait.Sized.htm[·...·truncated·by·diffoscope;·len:·199,·SHA:·704da5744f5a44cc04375be81726b6ce50b4819e79ba0569ee9ddcceebfdf643·...·]core/ops/function/trait.Fn.html\"·title=\"trait·core::ops::function::Fn\">Fn</a>&lt;Args&gt;·for·<a·class=\"struct\"·href=\"alloc/boxed/struct.Box.html\"·title=\"struct·alloc::boxed::Box\">Box</a>&lt;F,·A&gt;"]4 ············["impl&lt;Args:·<a·class=\"trait\"·href=\"https://doc.rust-lang.org/1.78.0/core/marker/trait.Tuple.html\"·title=\"trait·core::marker::Tuple\">Tuple</a>,·F:·<a·class=\"trait\"·href=\"https://doc.rust-lang.org/1.78.0/core/ops/function/trait.Fn.html\"·title=\"trait·core::ops::function::Fn\">Fn</a>&lt[·...·truncated·by·diffoscope;·len:·331,·SHA:·25e64e0f963422e175437c76ba4ced256ae23f25f33dcafa81e758a4abb4515c·...·]core/ops/function/trait.Fn.html\"·title=\"trait·core::ops::function::Fn\">Fn</a>&lt;Args&gt;·for·<a·class=\"struct\"·href=\"alloc/boxed/struct.Box.html\"·title=\"struct·alloc::boxed::Box\">Box</a>&lt;F,·A&gt;"]
5 ········],5 ········],
6 ········"core":·[],6 ········"core":·[],
7 ········"std":·[]7 ········"std":·[]
8 ····};8 ····};
9 ····if·(window.register_implementors)·{9 ····if·(window.register_implementors)·{
10 ········window.register_implementors(implementors);10 ········window.register_implementors(implementors);
11 ····}·else·{11 ····}·else·{
1.99 KB
./usr/share/doc/rust-web-doc/html/trait.impl/core/ops/function/trait.FnMut.js
1.84 KB
js-beautify {}
    
Offset 1, 11 lines modifiedOffset 1, 11 lines modified
1 (function()·{1 (function()·{
2 ····var·implementors·=·{2 ····var·implementors·=·{
3 ········"alloc":·[3 ········"alloc":·[
4 ············["impl&lt;Args:·<a·class=\"trait\"·href=\"core/marker/trait.Tuple.html\"·title=\"trait·core::marker::Tuple\">Tuple</a>,·F:·<a·class=\"trait\"·href=\"core/ops/function/trait.FnMut.html\"·title=\"trait·core::ops::function::FnMut\">FnMut</a>&lt;Args&gt;·+·?<a·class=\"trait\"·href=\"core/marker/trait.[·...·truncated·by·diffoscope;·len:·208,·SHA:·df86eabb6b7fefdafa0527bb7106c2cc95c4f55a98bf43b6232a66986f156df3·...·]core/ops/function/trait.FnMut.html\"·title=\"trait·core::ops::function::FnMut\">FnMut</a>&lt;Args&gt;·for·<a·class=\"struct\"·href=\"alloc/boxed/struct.Box.html\"·title=\"struct·alloc::boxed::Box\">Box</a>&lt;F,·A&gt;"]4 ············["impl&lt;Args:·<a·class=\"trait\"·href=\"https://doc.rust-lang.org/1.78.0/core/marker/trait.Tuple.html\"·title=\"trait·core::marker::Tuple\">Tuple</a>,·F:·<a·class=\"trait\"·href=\"https://doc.rust-lang.org/1.78.0/core/ops/function/trait.FnMut.html\"·title=\"trait·core::ops::function::FnMut\">FnM[·...·truncated·by·diffoscope;·len:·340,·SHA:·98bb2b448bc74fcc70bab9fe846e089f7e6cd0cf2d90230ffa09c609ece2d04e·...·]core/ops/function/trait.FnMut.html\"·title=\"trait·core::ops::function::FnMut\">FnMut</a>&lt;Args&gt;·for·<a·class=\"struct\"·href=\"alloc/boxed/struct.Box.html\"·title=\"struct·alloc::boxed::Box\">Box</a>&lt;F,·A&gt;"]
5 ········],5 ········],
6 ········"core":·[],6 ········"core":·[],
7 ········"std":·[]7 ········"std":·[]
8 ····};8 ····};
9 ····if·(window.register_implementors)·{9 ····if·(window.register_implementors)·{
10 ········window.register_implementors(implementors);10 ········window.register_implementors(implementors);
11 ····}·else·{11 ····}·else·{
2.0 KB
./usr/share/doc/rust-web-doc/html/trait.impl/core/ops/function/trait.FnOnce.js
1.85 KB
js-beautify {}
    
Offset 1, 11 lines modifiedOffset 1, 11 lines modified
1 (function()·{1 (function()·{
2 ····var·implementors·=·{2 ····var·implementors·=·{
3 ········"alloc":·[3 ········"alloc":·[
4 ············["impl&lt;Args:·<a·class=\"trait\"·href=\"core/marker/trait.Tuple.html\"·title=\"trait·core::marker::Tuple\">Tuple</a>,·F:·<a·class=\"trait\"·href=\"core/ops/function/trait.FnOnce.html\"·title=\"trait·core::ops::function::FnOnce\">FnOnce</a>&lt;Args&gt;·+·?<a·class=\"trait\"·href=\"core/marker/tra[·...·truncated·by·diffoscope;·len:·211,·SHA:·11df55dd88dac238c327c1ca403aac4dba7d325b8ffe35488f96fee1242a9339·...·]core/ops/function/trait.FnOnce.html\"·title=\"trait·core::ops::function::FnOnce\">FnOnce</a>&lt;Args&gt;·for·<a·class=\"struct\"·href=\"alloc/boxed/struct.Box.html\"·title=\"struct·alloc::boxed::Box\">Box</a>&lt;F,·A&gt;"]4 ············["impl&lt;Args:·<a·class=\"trait\"·href=\"https://doc.rust-lang.org/1.78.0/core/marker/trait.Tuple.html\"·title=\"trait·core::marker::Tuple\">Tuple</a>,·F:·<a·class=\"trait\"·href=\"https://doc.rust-lang.org/1.78.0/core/ops/function/trait.FnOnce.html\"·title=\"trait·core::ops::function::FnOnce\">F[·...·truncated·by·diffoscope;·len:·343,·SHA:·a16cb9364fb87d0ffd1a1e8adfb9797c3abd0d15a61ea224290dfbae420a7e97·...·]core/ops/function/trait.FnOnce.html\"·title=\"trait·core::ops::function::FnOnce\">FnOnce</a>&lt;Args&gt;·for·<a·class=\"struct\"·href=\"alloc/boxed/struct.Box.html\"·title=\"struct·alloc::boxed::Box\">Box</a>&lt;F,·A&gt;"]
5 ········],5 ········],
6 ········"core":·[],6 ········"core":·[],
7 ········"std":·[]7 ········"std":·[]
8 ····};8 ····};
9 ····if·(window.register_implementors)·{9 ····if·(window.register_implementors)·{
10 ········window.register_implementors(implementors);10 ········window.register_implementors(implementors);
11 ····}·else·{11 ····}·else·{
8.11 KB
./usr/share/doc/rust-web-doc/html/trait.impl/core/ops/index/trait.Index.js
7.97 KB
js-beautify {}
Max HTML report size reached
4.03 KB
./usr/share/doc/rust-web-doc/html/trait.impl/core/ops/index/trait.IndexMut.js
3.88 KB
js-beautify {}
    
Offset 1, 13 lines modifiedOffset 1, 13 lines modified
1 (function()·{1 (function()·{
2 ····var·implementors·=·{2 ····var·implementors·=·{
3 ········"alloc":·[3 ········"alloc":·[
4 ············["impl&lt;I&gt;·<a·class=\"trait\"·href=\"core/ops/index/trait.IndexMut.html\"·title=\"trait·core::ops::index::IndexMut\">IndexMut</a>&lt;I&gt;·for·<a·class=\"struct\"·href=\"alloc/string/struct.String.html\"·title=\"struct·alloc::string::String\">String</a><div·class=\"where\">where\n····I:·<a·cl[·...·truncated·by·diffoscope;·len:·146,·SHA:·3155a9b69e66a1bd6e436d11ee8ca33c0eacb8f3a7fc4a53a51490006fb35782·...·]core/primitive.str.html\">str</a>&gt;,</div>"],4 ············["impl&lt;I&gt;·<a·class=\"trait\"·href=\"https://doc.rust-lang.org/1.78.0/core/ops/index/trait.IndexMut.html\"·title=\"trait·core::ops::index::IndexMut\">IndexMut</a>&lt;I&gt;·for·<a·class=\"struct\"·href=\"alloc/string/struct.String.html\"·title=\"struct·alloc::string::String\">String</a><div·cl[·...·truncated·by·diffoscope;·len:·212,·SHA:·791fd0aff555d44f57c92aeb8686dd16cb4b1dd01e2a1256ed066f52a9bb03bf·...·]core/primitive.str.html\">str</a>&gt;,</div>"],
5 ············["impl&lt;T,·A:·<a·class=\"trait\"·href=\"alloc/alloc/trait.Allocator.html\"·title=\"trait·alloc::alloc::Allocator\">Allocator</a>&gt;·<a·class=\"trait\"·href=\"core/ops/index/trait.IndexMut.html\"·title=\"trait·core::ops::index::IndexMut\">IndexMut</a>&lt;<a·class=\"primitive\"·href=\"core/primitive.usize.html\">usize</a>&gt;·for·<a·class=\"struct\"·href=\"alloc/collections/vec_deque/struct.VecDeque.html\"·title=\"struct·alloc::collections::vec_deque::VecDeque\">VecDeque</a>&lt;T,·A&gt;"],5 ············["impl&lt;T,·A:·<a·class=\"trait\"·href=\"alloc/alloc/trait.Allocator.html\"·title=\"trait·alloc::alloc::Allocator\">Allocator</a>&gt;·<a·class=\"trait\"·href=\"https://doc.rust-lang.org/1.78.0/core/ops/index/trait.IndexMut.html\"·title=\"trait·core::ops::index::IndexMut\">IndexMut</a>&lt;<a·class=\"primitive\"·href=\"https://doc.rust-lang.org/1.78.0/core/primitive.usize.html\">usize</a>&gt;·for·<a·class=\"struct\"·href=\"alloc/collections/vec_deque/struct.VecDeque.html\"·title=\"struct·alloc::collections::vec_deque::VecDeque\">VecDeque</a>&lt;T,·A&gt;"],
6 ············["impl&lt;T,·I:·<a·class=\"trait\"·href=\"alloc/slice/trait.SliceIndex.html\"·title=\"trait·alloc::slice::SliceIndex\">SliceIndex</a>&lt;<a·class=\"primitive\"·href=\"core/primitive.slice.html\">[T]</a>&gt;,·A:·<a·class=\"trait\"·href=\"alloc/alloc/trait.Allocator.html\"·title=\"trait·alloc::alloc::Allocator\">Allocator</a>&gt;·<a·class=\"trait\"·href=\"core/ops/index/trait.IndexMut.html\"·title=\"trait·core::ops::index::IndexMut\">IndexMut</a>&lt;I&gt;·for·<a·class=\"struct\"·href=\"alloc/vec/struct.Vec.html\"·title=\"struct·alloc::vec::Vec\">Vec</a>&lt;T,·A&gt;"]6 ············["impl&lt;T,·I:·<a·class=\"trait\"·href=\"alloc/slice/trait.SliceIndex.html\"·title=\"trait·alloc::slice::SliceIndex\">SliceIndex</a>&lt;<a·class=\"primitive\"·href=\"https://doc.rust-lang.org/1.78.0/core/primitive.slice.html\">[T]</a>&gt;,·A:·<a·class=\"trait\"·href=\"alloc/alloc/trait.Allocator.html\"·title=\"trait·alloc::alloc::Allocator\">Allocator</a>&gt;·<a·class=\"trait\"·href=\"https://doc.rust-lang.org/1.78.0/core/ops/index/trait.IndexMut.html\"·title=\"trait·core::ops::index::IndexMut\">IndexMut</a>&lt;I&gt;·for·<a·class=\"struct\"·href=\"alloc/vec/struct.Vec.html\"·title=\"struct·alloc::vec::Vec\">Vec</a>&lt;T,·A&gt;"]
7 ········],7 ········],
8 ········"core":·[],8 ········"core":·[],
9 ········"std":·[9 ········"std":·[
10 ············["impl·<a·class=\"trait\"·href=\"std/ops/trait.IndexMut.html\"·title=\"trait·std::ops::IndexMut\">IndexMut</a>&lt;<a·class=\"struct\"·href=\"std/ops/struct.RangeFull.html\"·title=\"struct·std::ops::RangeFull\">RangeFull</a>&gt;·for·<a·class=\"struct\"·href=\"std/ffi/struct.OsString.html\"·title=\"struct·std::ffi::OsString\">OsString</a>"]10 ············["impl·<a·class=\"trait\"·href=\"std/ops/trait.IndexMut.html\"·title=\"trait·std::ops::IndexMut\">IndexMut</a>&lt;<a·class=\"struct\"·href=\"std/ops/struct.RangeFull.html\"·title=\"struct·std::ops::RangeFull\">RangeFull</a>&gt;·for·<a·class=\"struct\"·href=\"std/ffi/struct.OsString.html\"·title=\"struct·std::ffi::OsString\">OsString</a>"]
11 ········]11 ········]
12 ····};12 ····};
13 ····if·(window.register_implementors)·{13 ····if·(window.register_implementors)·{
9.34 KB
./usr/share/doc/rust-web-doc/html/trait.impl/core/ops/unsize/trait.CoerceUnsized.js
9.18 KB
js-beautify {}
Max HTML report size reached
8.4 KB
./usr/share/doc/rust-web-doc/html/trait.impl/core/ops/unsize/trait.DispatchFromDyn.js
8.23 KB
js-beautify {}
Max HTML report size reached
106 KB
./usr/share/doc/rust-web-doc/html/trait.impl/core/panic/unwind_safe/trait.RefUnwindSafe.js
106 KB
js-beautify {}
Max HTML report size reached
92.6 KB
./usr/share/doc/rust-web-doc/html/trait.impl/core/panic/unwind_safe/trait.UnwindSafe.js
92.5 KB
js-beautify {}
Max HTML report size reached
28.0 KB
./usr/share/doc/rust-web-doc/html/type.impl/alloc/alloc/struct.LayoutError.js
27.8 KB
js-beautify {}
Max HTML report size reached
56.8 KB
./usr/share/doc/rust-web-doc/html/type.impl/core/convert/enum.Infallible.js
56.6 KB
js-beautify {}
Max HTML report size reached
305 KB
./usr/share/doc/rust-web-doc/html/type.impl/core/result/enum.Result.js
305 KB
js-beautify {}
Max HTML report size reached